@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.
Files changed (111) hide show
  1. package/esm2022/lib/components/accordion/accordion.component.mjs +17 -12
  2. package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +1 -1
  3. package/esm2022/lib/components/airport-select/airport-select.component.mjs +13 -1
  4. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +7 -1
  5. package/esm2022/lib/components/backdrop/backdrop.component.mjs +3 -1
  6. package/esm2022/lib/components/box/box.component.mjs +4 -4
  7. package/esm2022/lib/components/button/button.component.mjs +5 -1
  8. package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -1
  9. package/esm2022/lib/components/chip/chip.component.mjs +2 -7
  10. package/esm2022/lib/components/container/container.component.mjs +1 -1
  11. package/esm2022/lib/components/continue/continue.component.mjs +6 -1
  12. package/esm2022/lib/components/cover/cover.component.mjs +1 -1
  13. package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +1 -1
  14. package/esm2022/lib/components/datepicker/datepicker.component.mjs +16 -1
  15. package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +17 -1
  16. package/esm2022/lib/components/divider/divider.component.mjs +1 -1
  17. package/esm2022/lib/components/dropdown/dropdown.component.mjs +2 -1
  18. package/esm2022/lib/components/filter/filter.component.mjs +36 -2
  19. package/esm2022/lib/components/grid/grid.component.mjs +1 -1
  20. package/esm2022/lib/components/icon/icon.component.mjs +1 -1
  21. package/esm2022/lib/components/icon-list/icon-list.component.mjs +1 -1
  22. package/esm2022/lib/components/icon-list/icon-list.model.mjs +1 -1
  23. package/esm2022/lib/components/info/info.component.mjs +5 -4
  24. package/esm2022/lib/components/input/input.component.mjs +6 -1
  25. package/esm2022/lib/components/journey/journey.component.mjs +5 -7
  26. package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +7 -5
  27. package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +22 -25
  28. package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +12 -4
  29. package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +18 -20
  30. package/esm2022/lib/components/list/list.component.mjs +1 -1
  31. package/esm2022/lib/components/modal/modal.component.mjs +5 -7
  32. package/esm2022/lib/components/number-field/number-field.component.mjs +4 -2
  33. package/esm2022/lib/components/page-footer/page-footer.component.mjs +2 -4
  34. package/esm2022/lib/components/page-header/page-header.component.mjs +30 -12
  35. package/esm2022/lib/components/page-header/page-header.module.mjs +5 -4
  36. package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +1 -1
  37. package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +11 -7
  38. package/esm2022/lib/components/phone-number/phone-number.component.mjs +11 -15
  39. package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +3 -4
  40. package/esm2022/lib/components/radio/radio.component.mjs +4 -2
  41. package/esm2022/lib/components/select/select.component.mjs +11 -7
  42. package/esm2022/lib/components/simple-list/simple-list.component.mjs +1 -1
  43. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +9 -5
  44. package/esm2022/lib/components/slider/slider.component.mjs +32 -18
  45. package/esm2022/lib/components/sort/sort.component.mjs +11 -7
  46. package/esm2022/lib/components/spinner/spinner.component.mjs +13 -18
  47. package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +13 -7
  48. package/esm2022/lib/components/suggestions/suggestions.component.mjs +3 -2
  49. package/esm2022/lib/components/tab-group/tab-group.component.mjs +3 -2
  50. package/esm2022/lib/components/table/table.component.mjs +1 -3
  51. package/esm2022/lib/components/textarea/textarea.component.mjs +6 -1
  52. package/esm2022/lib/components/toggle/toggle.component.mjs +5 -5
  53. package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +26 -31
  54. package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +3 -2
  55. package/fesm2022/norwegian-core-components.mjs +371 -221
  56. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  57. package/lib/components/accordion/accordion.component.d.ts +81 -78
  58. package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +2 -2
  59. package/lib/components/airport-select/airport-select.component.d.ts +38 -2
  60. package/lib/components/autocomplete/autocomplete.component.d.ts +15 -2
  61. package/lib/components/backdrop/backdrop.component.d.ts +3 -0
  62. package/lib/components/box/box.component.d.ts +13 -3
  63. package/lib/components/button/button.component.d.ts +26 -0
  64. package/lib/components/checkbox/checkbox.component.d.ts +18 -2
  65. package/lib/components/chip/chip.component.d.ts +5 -21
  66. package/lib/components/container/container.component.d.ts +6 -0
  67. package/lib/components/continue/continue.component.d.ts +14 -0
  68. package/lib/components/cover/cover.component.d.ts +13 -3
  69. package/lib/components/datepicker/calendar/calendar.component.d.ts +2 -2
  70. package/lib/components/datepicker/datepicker.component.d.ts +33 -2
  71. package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +42 -0
  72. package/lib/components/divider/divider.component.d.ts +9 -0
  73. package/lib/components/dropdown/dropdown.component.d.ts +8 -0
  74. package/lib/components/filter/filter.component.d.ts +108 -2
  75. package/lib/components/grid/grid.component.d.ts +12 -0
  76. package/lib/components/icon/icon.component.d.ts +5 -8
  77. package/lib/components/icon-list/icon-list.component.d.ts +5 -0
  78. package/lib/components/icon-list/icon-list.model.d.ts +1 -0
  79. package/lib/components/info/info.component.d.ts +7 -18
  80. package/lib/components/input/input.component.d.ts +30 -5
  81. package/lib/components/journey/journey.component.d.ts +9 -16
  82. package/lib/components/journey-availability/journey-availability.component.d.ts +8 -8
  83. package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +29 -34
  84. package/lib/components/journey-selection/journey-selection.component.d.ts +14 -3
  85. package/lib/components/journey-stopover/journey-stopover.component.d.ts +35 -43
  86. package/lib/components/list/list.component.d.ts +8 -0
  87. package/lib/components/modal/modal.component.d.ts +16 -34
  88. package/lib/components/number-field/number-field.component.d.ts +26 -12
  89. package/lib/components/page-footer/page-footer.component.d.ts +9 -16
  90. package/lib/components/page-header/page-header.component.d.ts +30 -15
  91. package/lib/components/page-header/page-header.module.d.ts +2 -1
  92. package/lib/components/passenger-select/models/passengers.model.d.ts +2 -2
  93. package/lib/components/passenger-select/passenger-select.component.d.ts +33 -18
  94. package/lib/components/phone-number/phone-number.component.d.ts +80 -108
  95. package/lib/components/premium-toggle/premium-toggle.component.d.ts +9 -13
  96. package/lib/components/radio/radio.component.d.ts +35 -18
  97. package/lib/components/select/select.component.d.ts +47 -29
  98. package/lib/components/simple-list/simple-list.component.d.ts +16 -8
  99. package/lib/components/slide-toggle/slide-toggle.component.d.ts +16 -9
  100. package/lib/components/slider/slider.component.d.ts +51 -28
  101. package/lib/components/sort/sort.component.d.ts +12 -7
  102. package/lib/components/spinner/spinner.component.d.ts +24 -37
  103. package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +14 -7
  104. package/lib/components/suggestions/suggestions.component.d.ts +6 -3
  105. package/lib/components/tab-group/tab-group.component.d.ts +6 -3
  106. package/lib/components/table/table.component.d.ts +3 -8
  107. package/lib/components/textarea/textarea.component.d.ts +42 -20
  108. package/lib/components/toggle/toggle.component.d.ts +44 -68
  109. package/lib/components/trip-summary/trip-summary.component.d.ts +68 -82
  110. package/lib/components/weather-icon/weather-icon.component.d.ts +12 -6
  111. package/package.json +3 -3
@@ -13,74 +13,88 @@ import * as i0 from "@angular/core";
13
13
  export declare class PageHeaderComponent extends NasComponentBase implements OnDestroy, AfterViewInit {
14
14
  private changeDetector;
15
15
  /**
16
+ * @property Input
16
17
  * @description
17
18
  * Sets the menu text. Defaults to "Menu".
18
- */
19
+ */
19
20
  menuText: string;
20
21
  /**
22
+ * @property Input
21
23
  * @description
22
24
  * Sets the close text. Defaults to "Close".
23
- */
25
+ */
24
26
  closeText: string;
25
27
  /**
28
+ * @property Input
26
29
  * @description
27
30
  * Sets the search label for search field. Defaults to "Search".
28
- */
31
+ */
29
32
  searchText: string;
30
33
  /**
34
+ * @property Input
31
35
  * @description
32
36
  * Url to the search form. Added to the action attribute on native form element.
33
- */
37
+ */
34
38
  searchForm: string;
35
39
  /**
40
+ * @property Input
36
41
  * @description
37
42
  * Show the profile section.
38
- */
43
+ */
39
44
  displayProfile: boolean;
40
45
  /**
41
- * @description
42
- * Will display the Norwegian Reward logo, set this to true display it. It's false by default.
46
+ * @property Input
47
+ * @description
48
+ * Will display the Norwegian Reward logo, set this to true display it. It's false by default.
43
49
  */
44
50
  reward: boolean;
45
51
  /**
52
+ * @property Input
46
53
  * @description
47
54
  * Is user authenticated. Only valid if displayProfile is true
48
- */
55
+ */
49
56
  isAuthenticated: boolean;
50
57
  /**
58
+ * @property Input
51
59
  * @description
52
60
  * Url to the front-/homepage.
53
- */
61
+ */
54
62
  frontPageUrl: string;
55
63
  /**
64
+ * @property Input
56
65
  * @description
57
66
  * Use router link instead of href on links
58
- */
67
+ */
59
68
  useRouterLink: boolean;
60
69
  /**
70
+ * @property Input
61
71
  * @description
62
72
  * Sets z-index to 0
63
- */
73
+ */
64
74
  nozindex?: boolean;
65
75
  /**
76
+ * @property Input
66
77
  * @description
67
78
  * Link to logout.
68
- */
79
+ */
69
80
  logOutLink: IconListModel;
70
81
  /**
82
+ * @property Input
71
83
  * @description
72
84
  * Link to profile.
73
- */
85
+ */
74
86
  profileLink: IconListModel;
75
87
  /**
88
+ * @property Input
76
89
  * @description
77
90
  * links to display with icon in header.
78
- */
91
+ */
79
92
  links: Array<IconListModel>;
80
93
  /**
94
+ * @property Output
81
95
  * @description
82
96
  * Notifies consumer that menu is expanded or collapsed
83
- */
97
+ */
84
98
  openChange: EventEmitter<boolean>;
85
99
  expanded: boolean;
86
100
  animateOut: boolean;
@@ -92,6 +106,7 @@ export declare class PageHeaderComponent extends NasComponentBase implements OnD
92
106
  menuClick({ target }: any): void;
93
107
  handleToggle(force: boolean): any;
94
108
  private handleKeyDown;
109
+ onLinkClick(link: IconListModel): void;
95
110
  static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
96
111
  static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "nas-page-header", 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>;
97
112
  }
@@ -6,8 +6,9 @@ import * as i4 from "@angular/common";
6
6
  import * as i5 from "../icon/icon.module";
7
7
  import * as i6 from "../../core/directives/nas-class/nas-class.module";
8
8
  import * as i7 from "@angular/router";
9
+ import * as i8 from "../button/button.module";
9
10
  export declare class PageHeaderModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<PageHeaderModule, [typeof i1.PageHeaderComponent, typeof i2.HamburgerComponent, typeof i3.SearchComponent], [typeof i4.CommonModule, typeof i5.IconModule, typeof i6.NasClassModule, typeof i7.RouterModule], [typeof i1.PageHeaderComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PageHeaderModule, [typeof i1.PageHeaderComponent, typeof i2.HamburgerComponent, typeof i3.SearchComponent], [typeof i4.CommonModule, typeof i5.IconModule, typeof i6.NasClassModule, typeof i7.RouterModule, typeof i8.ButtonModule], [typeof i1.PageHeaderComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<PageHeaderModule>;
13
14
  }
@@ -1,9 +1,9 @@
1
1
  import { PassengerType } from '../enums/passenger-type.enum';
2
- import { UntypedFormGroup } from '@angular/forms';
2
+ import { FormGroup } from '@angular/forms';
3
3
  export interface PassengersModel {
4
4
  label: string;
5
5
  type: PassengerType;
6
6
  count?: number;
7
7
  formControlName?: string;
8
- formGroup?: UntypedFormGroup;
8
+ formGroup?: FormGroup;
9
9
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
4
  */
5
5
  import { EventEmitter, OnInit, QueryList } from '@angular/core';
6
- import { UntypedFormGroup } from '@angular/forms';
6
+ import { FormGroup } from '@angular/forms';
7
7
  import { PassengerType } from './enums/passenger-type.enum';
8
8
  import { PassengersModel } from './models/passengers.model';
9
9
  import { NasComponentBase } from '../../core/base/nas-component.base';
@@ -18,39 +18,46 @@ export declare class PassengerSelectComponent extends NasComponentBase implement
18
18
  totalCount: number;
19
19
  isGroupBooking: boolean;
20
20
  /**
21
+ * @property Input
21
22
  * @description
22
23
  * An array of different passenger types that will be displayed.
23
- */
24
+ */
24
25
  passengers: PassengersModel[];
25
26
  /**
27
+ * @property Input
26
28
  * @description
27
29
  * The total maximum amount of passengers.
28
- */
30
+ */
29
31
  maxPaxCount: number;
30
32
  /**
33
+ * @property Input
31
34
  * @description
32
35
  * The minimum amount of adults that can be selected.
33
- */
36
+ */
34
37
  minAdultCount: number;
35
38
  /**
39
+ * @property Input
36
40
  * @description
37
41
  * The limit for when the total amount of passengers exceeds to be a group booking.
38
- */
42
+ */
39
43
  groupBookingLimit: number;
40
44
  /**
45
+ * @property Input
41
46
  * @description
42
47
  * A title that will be added to the dropdown.
43
- */
48
+ */
44
49
  title: string;
45
50
  /**
51
+ * @property Input
46
52
  * @description
47
53
  * A label for the adults passenger type.
48
- */
54
+ */
49
55
  adultsLabel: string;
50
56
  /**
57
+ * @property Input
51
58
  * @description
52
59
  * A label for the children passenger type.
53
- */
60
+ */
54
61
  childrenLabel: string;
55
62
  /**
56
63
  * @description
@@ -58,48 +65,56 @@ export declare class PassengerSelectComponent extends NasComponentBase implement
58
65
  */
59
66
  infantsLabel: string;
60
67
  /**
68
+ * @property Input
61
69
  * @description
62
70
  * A label that will appear when total number of selected passengers exceeds the group booking limit
63
- */
71
+ */
64
72
  groupBookingLabel: string;
65
73
  /**
74
+ * @property Input
66
75
  * @description
67
76
  * Adds the parent's form group.
68
77
  * It requires that the consumer included ReactiveFormsModule in it's module.
69
78
  * It is requiered to be filled if nasFormControlName added.
70
- */
71
- nasFormGroup: UntypedFormGroup;
79
+ */
80
+ nasFormGroup: FormGroup;
72
81
  /**
82
+ * @property Input
73
83
  * @description
74
84
  * Sets a formControlName directive to the input.
75
85
  * It requires that the consumer included ReactiveFormsModule in it's module.
76
86
  * It requiers that the nasFormGroup input is filled.
77
- */
87
+ */
78
88
  nasFormControlGroupBooking: string;
79
89
  /**
90
+ * @property Input
80
91
  * @description
81
92
  * ARIA label for the subtract buttons.
82
- */
93
+ */
83
94
  ariaLabelSubtract: string;
84
95
  /**
96
+ * @property Input
85
97
  * @description
86
98
  * ARIA label for the add buttons.
87
99
  */
88
100
  ariaLabelAdd: string;
89
101
  /**
102
+ * @property Output
90
103
  * @description
91
104
  * An event that is fired every time a passenger selection change is performed.
92
- */
105
+ */
93
106
  passengersChange: EventEmitter<PassengersModel[]>;
94
107
  /**
95
- * @description
96
- * An event that is fired every time a passenger selection change is performed.
97
- */
108
+ * @property Output
109
+ * @description
110
+ * An event that is fired every time a passenger selection change is performed.
111
+ */
98
112
  focusOnNext: EventEmitter<any>;
99
113
  /**
114
+ * @property Output
100
115
  * @description
101
116
  * An event that is fired every time a passenger selection change is performed.
102
- */
117
+ */
103
118
  focusOnPrevious: EventEmitter<any>;
104
119
  constructor();
105
120
  ngOnInit(): void;
@@ -6,7 +6,7 @@ import { EventEmitter } from '@angular/core';
6
6
  import { NasComponentBase } from '../../core/base/nas-component.base';
7
7
  import { SelectOptionModel } from '../select/models/select-option.model';
8
8
  import { ClassModel } from '../../core/models/class.model';
9
- import { UntypedFormGroup } from '@angular/forms';
9
+ import { FormGroup } from '@angular/forms';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
12
  * @description
@@ -14,265 +14,237 @@ import * as i0 from "@angular/core";
14
14
  */
15
15
  export declare class PhoneNumberComponent extends NasComponentBase {
16
16
  /**
17
+ * @property Input
17
18
  * @description
18
19
  * A record containing country codes.
19
20
  * @example
20
- * ```html
21
21
  * <nas-phone-number [options]="options"></nas-phone-number>
22
- * ```
23
- */
22
+ */
24
23
  options: Array<SelectOptionModel>;
25
24
  /**
25
+ * @property Input
26
26
  * @description
27
27
  * Preferred options will be listed on top.
28
28
  * @example
29
- * ```html
30
29
  * <nas-phone-number [preferred-options]="preferredOptions"></nas-phone-number>
31
- * ```
32
- */
30
+ */
33
31
  preferredOptions: Array<SelectOptionModel>;
34
32
  /**
35
- * @description
36
- * Single Phone number prefix/country code, if exists will replace the dropdown selector for countrycode
37
- * @example
38
- * ```html
39
- * <nas-phone-number [prefixCountryCode]="'+47'"></nas-phone-number>
40
- * ```
41
- */
33
+ * @property Input
34
+ * @description
35
+ * Single Phone number prefix/country code, if exists will replace the dropdown selector for countrycode
36
+ * @example
37
+ * <nas-phone-number [prefixCountryCode]="'+47'"></nas-phone-number>
38
+ */
42
39
  prefixCountryCode: string;
43
40
  /**
44
- * @description
45
- * A record containing label for phone number.
46
- * @example
47
- * ```html
48
- * <nas-phone-number [label]="phone number"></nas-phone-number>
49
- * ```
50
- */
41
+ * @property Input
42
+ * @description
43
+ * A record containing label for phone number.
44
+ * @example
45
+ * <nas-phone-number [label]="phone number"></nas-phone-number>
46
+ */
51
47
  label: string;
52
48
  /**
53
- * @description
54
- * A record containing label for options. Only in use when preferredOptions are used.
55
- * @example
56
- * ```html
57
- * <nas-phone-number><nas-optgroup [label]="optionsLabel">...</nas-phone-number>
58
- * ```
59
- */
49
+ * @property Input
50
+ * @description
51
+ * A record containing label for options. Only in use when preferredOptions are used.
52
+ * @example
53
+ * <nas-phone-number><nas-optgroup [label]="optionsLabel">...</nas-phone-number>
54
+ */
60
55
  optionsLabel: string;
61
56
  /**
62
- * @description
63
- * A record containing label for preferredOptions. Only in use when preferredOptions are used.
64
- * @example
65
- * ```html
66
- * <nas-phone-number><nas-optgroup [label]="preferredOptionsLabel">...</nas-phone-number>
67
- * ```
68
- */
57
+ * @property Input
58
+ * @description
59
+ * A record containing label for preferredOptions. Only in use when preferredOptions are used.
60
+ * @example
61
+ * <nas-phone-number><nas-optgroup [label]="preferredOptionsLabel">...</nas-phone-number>
62
+ */
69
63
  preferredOptionsLabel: string;
70
64
  /**
71
- * @description
72
- * A record containing place holder for native input element of phone number.
73
- * @example
74
- * ```html
75
- * <nas-phone-number [placeholder]="phone number"></nas-phone-number>
76
- * ```
77
- */
65
+ * @property Input
66
+ * @description
67
+ * A record containing place holder for native input element of phone number.
68
+ * @example
69
+ * <nas-phone-number [placeholder]="phone number"></nas-phone-number>
70
+ */
78
71
  placeholder: string;
79
72
  /**
73
+ * @property Input
80
74
  * @description
81
75
  * The ID of the native input element
82
76
  * @example
83
- * ```html
84
77
  * <nas-phone-number [id]="'phoneNumber'"></nas-phone-number>
85
- * ```
86
- */
78
+ */
87
79
  id: string;
88
80
  /**
81
+ * @property Input
89
82
  * @description
90
83
  * The type of the native input element. Default value is number
91
84
  * @example
92
- * ```html
93
85
  * <nas-phone-number [type]="'text'"></nas-phone-number>
94
- * ```
95
- */
86
+ */
96
87
  type: string;
97
88
  /**
89
+ * @property Input
98
90
  * @description
99
91
  * Whether the control is in an error state.
100
92
  * @example
101
- * ```html
102
93
  * <nas-phone-number error></nas-phone-number>
103
- * ```
104
- */
94
+ */
105
95
  error: boolean;
106
96
  /**
97
+ * @property Input
107
98
  * @description
108
99
  * Whether the native input element is disabled or no, with disabled styling.
109
100
  * @example
110
- * ```html
111
101
  * <nas-phone-number disabled></nas-phone-number>
112
- * ```
113
- */
102
+ */
114
103
  disabled: boolean;
115
104
  /**
105
+ * @property Input
116
106
  * @description
117
107
  * Set spaceless styling (removing spacing)
118
108
  * @example
119
- * ```html
120
109
  * <nas-phone-number spaceless></nas-phone-number>
121
- * ```
122
- */
110
+ */
123
111
  spaceless: boolean;
124
112
  /**
113
+ * @property Input
125
114
  * @description
126
115
  * Set loading styling of input
127
116
  * @example
128
- * ```html
129
117
  * <nas-phone-number loading></nas-phone-number>
130
- * ```
131
- */
118
+ */
132
119
  loading: boolean;
133
120
  /**
121
+ * @property Input
134
122
  * @description
135
123
  * The error message to display when error occur. Error attribute need to be true.
136
124
  * @example
137
- * ```html
138
125
  * <nas-phone-number [errorMessage]="'please fill in the phone number field'"></nas-phone-number>
139
- * ```
140
- */
126
+ */
141
127
  errorMessage: string;
142
128
  /**
129
+ * @property Input
143
130
  * @description
144
131
  * Sets the info text related to the input
145
132
  * @example
146
- * ```html
147
133
  * <nas-phone-number [info]="'please write 8 digit phone number without spaces'"></nas-phone-number>
148
- * ```
149
- */
134
+ */
150
135
  info: string;
151
136
  /**
137
+ * @property Input
152
138
  * @description
153
139
  * Sets the icon on the input
154
140
  * @example
155
- * ```html
156
141
  * <nas-phone-number [icon]="'remove'"></nas-phone-number>
157
- * ```
158
- */
142
+ */
159
143
  icon: string;
160
144
  /**
145
+ * @property Input
161
146
  * @description
162
147
  * Whether the element is readonly.
163
148
  * @example
164
- * ```html
165
149
  * <nas-phone-number readonly></nas-phone-number>
166
- * ```
167
- */
150
+ */
168
151
  readonly: boolean;
169
152
  /**
153
+ * @property Input
170
154
  * @description
171
155
  * Sets aria describedby for accessibility
172
156
  * @example
173
- * ```html
174
157
  * <nas-phone-number [aria-describedby]="'phone number field'"></nas-phone-number>
175
- * ```
176
- */
158
+ */
177
159
  ariaDescribedby: string;
178
160
  /**
161
+ * @property Input
179
162
  * @description
180
163
  * Sets the required attribute on the native input element.
181
164
  * @example
182
- * ```html
183
165
  * <nas-phone-number required></nas-phone-number>
184
- * ```
185
- */
166
+ */
186
167
  required: boolean;
187
168
  /**
169
+ * @property Input
188
170
  * @description
189
171
  * Sets a formControlName directive to the select.
190
172
  * It requires that the consumer included ReactiveFormsModule in it's module.
191
173
  * It requiers that the nasFormGroup input is filled.
192
174
  * @example
193
- * ```html
194
175
  * <nas-phone-number [nasFormControlName]="'phoneNumber'"></nas-phone-number>
195
- * ```
196
- */
176
+ */
197
177
  nasFormControlName: string;
198
178
  /**
179
+ * @property Input
199
180
  * @description
200
181
  * Sets a formControlName directive to the select.
201
182
  * It requires that the consumer included ReactiveFormsModule in it's module.
202
183
  * It requiers that the nasFormGroup input is filled.
203
184
  * @example
204
- * ```html
205
185
  * <nas-phone-number [nasFormControlNamePrefix]="'phoneNumberPrefix'"></nas-phone-number>
206
- * ```
207
- */
186
+ */
208
187
  nasFormControlNamePrefix: string;
209
188
  /**
189
+ * @property Input
210
190
  * @description
211
191
  * Adds the parent's form group.
212
192
  * It requires that the consumer included ReactiveFormsModule in it's module.
213
193
  * It is requiered to be filled if nasFormControlName added.
214
194
  * @example
215
- * ```html
216
195
  * <nas-phone-number [nasFormGroup]="myForm"></nas-phone-number>
217
- * ```
218
- */
219
- nasFormGroup: UntypedFormGroup;
196
+ */
197
+ nasFormGroup: FormGroup;
220
198
  /**
199
+ * @property Input
221
200
  * @description
222
201
  * A model binded with native input element of phone number component.
223
202
  * @example
224
- * ```html
225
203
  * <nas-phone-number [(model)]="model"></nas-phone-number>
226
- * ```
227
- */
204
+ */
228
205
  private modelValue;
229
206
  get model(): string;
230
207
  set model(value: string);
231
208
  /**
232
- * @description
233
- * An output event that fies when input value changes.
234
- * @example
235
- * ```html
209
+ * @property Output
210
+ * @description
211
+ * An output event that fies when input value changes.
212
+ * @example
236
213
  * <nas-phone-number (modelChange)="onModelChange()"></nas-phone-number>
237
- * ```
238
214
  */
239
215
  modelChange: EventEmitter<string>;
240
216
  /**
217
+ * @property Input
241
218
  * @description
242
219
  * Add custom CSS class to the selector.
243
220
  * @example
244
- * ```html
245
221
  * <nas-phone-number [cssClass]="cssClass"></nas-phone-number>
246
- * ```
247
- */
222
+ */
248
223
  cssClass: ClassModel;
249
224
  /**
225
+ * @property Input
250
226
  * @description
251
227
  * The default selected value.
252
228
  * @example
253
- * ```html
254
229
  * <nas-phone-number [selectedValue]="selectedValue"></nas-phone-number>
255
- * ```
256
- */
230
+ */
257
231
  selectedValue: SelectOptionModel;
258
232
  /**
233
+ * @property Input
259
234
  * @description
260
235
  * Gets or sets the selected value.
261
236
  * @example
262
- * ```html
263
237
  * <nas-phone-number [(selected)]="selected"></nas-phone-number>
264
- * ```
265
- */
238
+ */
266
239
  get selected(): SelectOptionModel;
267
240
  set selected(option: SelectOptionModel);
268
241
  /**
242
+ * @property Output
269
243
  * @description
270
244
  * An event that is fired every time a selection is done.
271
245
  * @example
272
- * ```html
273
246
  * <nas-phone-number (selectedChange)="onSelectedChange($event)"></nas-phone-number>
274
- * ```
275
- */
247
+ */
276
248
  selectedChange: EventEmitter<SelectOptionModel>;
277
249
  constructor();
278
250
  mainClass(): ClassModel;
@@ -10,40 +10,36 @@ export declare class PremiumToggleComponent extends NasComponentBase implements
10
10
  selectedValue: OptionModel;
11
11
  options: Array<OptionModel>;
12
12
  /**
13
+ * @property Input
13
14
  * @description
14
15
  * Sets the initial selected value on the toggle. Is either 'standard' or 'premium'.
15
16
  * @example
16
- * ```html
17
17
  * <nas-premium-toggle [defaultValue]="'premium'"></nas-premium-toggle>
18
- * ```
19
- */
18
+ */
20
19
  defaultValue: string;
21
20
  /**
21
+ * @property Input
22
22
  * @description
23
23
  * A label for the standard alternative.
24
- * @example
25
- * ```html
24
+ * @example\
26
25
  * <nas-premium-toggle [standardLabel]="'Standard'"></nas-premium-toggle>
27
- * ```
28
- */
26
+ */
29
27
  standardLabel: string;
30
28
  /**
29
+ * @property Input
31
30
  * @description
32
31
  * A label for the premium alternative.
33
32
  * @example
34
- * ```html
35
33
  * <nas-premium-toggle [premiumLabel]="'Premium'"></nas-premium-toggle>
36
- * ```
37
- */
34
+ */
38
35
  premiumLabel: string;
39
36
  /**
37
+ * @property Output
40
38
  * @description
41
39
  * An event that is fired every time a toggle is performed.
42
40
  * @example
43
- * ```html
44
41
  * <nas-premium-toggle (handleChange)="onHandleChange($event)"></nas-premium-toggle>
45
- * ```
46
- */
42
+ */
47
43
  handleChange: EventEmitter<string>;
48
44
  constructor();
49
45
  ngOnInit(): void;