@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
@@ -15,31 +15,36 @@ export declare class SortComponent extends NasComponentBase {
15
15
  checkedOptionObject: SortOptionModel;
16
16
  dropdownOpen: boolean;
17
17
  /**
18
+ * @property Input
18
19
  * @description
19
20
  * model for the sort component. containing all sort options and related meta data.
20
- */
21
+ */
21
22
  model: SortModel;
22
23
  /**
24
+ * @property Input
23
25
  * @description
24
26
  * popup open set & get.
25
- */
27
+ */
26
28
  get open(): boolean;
27
29
  set open(value: boolean);
28
30
  /**
29
- * @description
30
- * checked option set & get.
31
- */
31
+ * @property Input
32
+ * @description
33
+ * checked option set & get.
34
+ */
32
35
  get selectedOption(): SortOptionModel;
33
36
  set selectedOption(option: SortOptionModel);
34
37
  /**
38
+ * @property Output
35
39
  * @description
36
40
  * Listen for option change events.
37
- */
41
+ */
38
42
  selectedOptionChange: EventEmitter<SortOptionModel>;
39
43
  /**
44
+ * @property Output
40
45
  * @description
41
46
  * Listen for apply button click events.
42
- */
47
+ */
43
48
  applyButtonClicked: EventEmitter<SortOptionModel>;
44
49
  constructor();
45
50
  checkSpaceless(option: SortOptionModel, index: number): boolean;
@@ -13,81 +13,68 @@ export declare class SpinnerComponent extends NasComponentBase implements OnInit
13
13
  showRefreshLink: boolean;
14
14
  private refreshSecondValue;
15
15
  /**
16
+ * @property Input
16
17
  * @description
17
18
  * An information message that is displayed on the spinner.
18
19
  * @example
19
- * ```html
20
20
  * <nas-spinner [text]="text"></nas-spinner>
21
- * ```
22
- */
21
+ */
23
22
  text: string;
24
23
  /**
25
- * @description
26
- * An information message that is displayed on the refresh link.
27
- * @example
28
- * ```html
29
- * <nas-spinner [refreshText]="text"></nas-spinner>
30
- * ```
31
- */
24
+ * @property Input
25
+ * @description
26
+ * An information message that is displayed on the refresh link.
27
+ * @example
28
+ * <nas-spinner [refreshText]="text"></nas-spinner>
29
+ */
32
30
  refreshText: string;
33
31
  /**
32
+ * @property Input
34
33
  * @description
35
34
  * Sets small styling.
36
35
  * @example
37
- * ```html
38
36
  * <nas-select small></nas-select>
39
- * ```
40
37
  * or
41
- * ```html
42
38
  * <nas-select [small]="true"></nas-select>
43
- * ```
44
- */
39
+ */
45
40
  small?: boolean;
46
41
  /**
42
+ * @property Input
47
43
  * @description
48
44
  * Sets overlay styling.
49
45
  * @example
50
- * ```html
51
46
  * <nas-select overlay></nas-select>
52
- * ```
53
47
  * or
54
- * ```html
55
48
  * <nas-select [overlay]="true"></nas-select>
56
- * ```
57
- */
49
+ */
58
50
  overlay?: boolean;
59
51
  /**
52
+ * @property Input
60
53
  * @description
61
54
  * Enables the spinner after 500ms. If false again within 500ms, the spinner will not be displayed at all.
62
55
  * @example
63
- * ```html
64
56
  * <nas-spinner [enable]="enable"></nas-spinner>
65
- * ```
66
- */
57
+ */
67
58
  get enable(): boolean;
68
59
  set enable(enable: boolean);
69
60
  /**
61
+ * @property Input
70
62
  * @descriptionp
71
63
  * Sets the number of seconds to wait before showing the refresh link.
72
64
  * @example
73
- * ```html
74
65
  * <nas-spinner [refresh]="10"></nas-spinner>
75
- * ```
76
- */
66
+ */
77
67
  get refresh(): number;
78
68
  set refresh(value: number);
79
69
  /**
80
- * @description
81
- * Block page scrolling.
82
- * @example
83
- * ```html
84
- * <nas-select blockScrolling></nas-select>
85
- * ```
86
- * or
87
- * ```html
88
- * <nas-select [blockScrolling]="true"></nas-select>
89
- * ```
90
- */
70
+ * @property Input
71
+ * @description
72
+ * Block page scrolling.
73
+ * @example
74
+ * <nas-select blockScrolling></nas-select>
75
+ * or
76
+ * <nas-select [blockScrolling]="true"></nas-select>
77
+ */
91
78
  blockScrolling: boolean;
92
79
  constructor(renderer: Renderer2);
93
80
  ngOnInit(): void;
@@ -13,41 +13,48 @@ export declare class SubsidyDiscountComponent extends NasComponentBase {
13
13
  options: Array<SelectOptionModel>;
14
14
  selectedOption: SelectOptionModel;
15
15
  /**
16
+ * @property Input
16
17
  * @description
17
18
  * Add custom label styling.
18
- */
19
+ */
19
20
  label: string;
20
21
  /**
22
+ * @property Input
21
23
  * @description
22
24
  * Set icon on component. Icon need to exist in medium size. Default value is 'family'
23
- */
25
+ */
24
26
  icon: string;
25
27
  /**
28
+ * @property Input
26
29
  * @description
27
30
  * Gets or sets the selected discount value.
28
- */
31
+ */
29
32
  get selectedDiscount(): SubsidyDiscountModel;
30
33
  set selectedDiscount(discount: SubsidyDiscountModel);
31
34
  /**
35
+ * @property Input
32
36
  * @description
33
37
  * Gets or sets discounts value.
34
- */
38
+ */
35
39
  get discounts(): Array<SubsidyDiscountModel>;
36
40
  set discounts(discounts: Array<SubsidyDiscountModel>);
37
41
  /**
42
+ * @property Output
38
43
  * @description
39
44
  * An even that is fired every time the info button is clicked.
40
- */
45
+ */
41
46
  infoButtonClick: EventEmitter<any>;
42
47
  /**
48
+ * @property Output
43
49
  * @description
44
50
  * Fires when info button has a keydown event.
45
- */
51
+ */
46
52
  infoButtonKeydown: EventEmitter<KeyboardEvent>;
47
53
  /**
54
+ * @property Output
48
55
  * @description
49
56
  * An even that is fired every time the info button is clicked.
50
- */
57
+ */
51
58
  discountSelectChange: EventEmitter<SubsidyDiscountModel>;
52
59
  private discountsValue;
53
60
  private selectedDiscountValue;
@@ -12,19 +12,22 @@ import * as i0 from "@angular/core";
12
12
  */
13
13
  export declare class SuggestionsComponent extends NasComponentBase {
14
14
  /**
15
+ * @property Input
15
16
  * @description
16
17
  * Suggestions to be displayed
17
- */
18
+ */
18
19
  suggestions: Array<AirportModel>;
19
20
  /**
21
+ * @property Input
20
22
  * @description
21
23
  * A label for 'or'
22
- */
24
+ */
23
25
  orLabel: string;
24
26
  /**
27
+ * @property Output
25
28
  * @description
26
29
  * Fired when an airport is selected
27
- */
30
+ */
28
31
  airportSelect: EventEmitter<AirportModel>;
29
32
  constructor();
30
33
  onAirportSelect(airport: AirportModel): void;
@@ -11,20 +11,23 @@ export declare class TabGroupComponent extends NasComponentBase implements After
11
11
  private groupId;
12
12
  tabs: QueryList<TabComponent>;
13
13
  /**
14
+ * @property Input
14
15
  * @description
15
16
  * The selected index for the tab group. Default value is 0.
16
- */
17
+ */
17
18
  get selectedIndex(): number;
18
19
  set selectedIndex(value: number);
19
20
  /**
21
+ * @property Input
20
22
  * @description
21
23
  * Makes the tabgroup fit to its container, no width restrictions
22
- */
24
+ */
23
25
  fit: boolean;
24
26
  /**
27
+ * @property Input
25
28
  * @description
26
29
  * Removes shadow effect on tab content
27
- */
30
+ */
28
31
  shadowless: boolean;
29
32
  constructor();
30
33
  ngAfterViewInit(): void;
@@ -1,24 +1,19 @@
1
- /**
2
- * @license
3
- * Copyright Norwegian Air Shuttle. All Rights Reserved.
4
- */
5
- import { OnInit } from '@angular/core';
6
1
  import { NasComponentBase } from '../../core';
7
2
  import * as i0 from "@angular/core";
8
3
  /**
9
4
  * @description
10
5
  * Norwegian Table Component | Layout | Beta
11
6
  */
12
- export declare class TableComponent extends NasComponentBase implements OnInit {
7
+ export declare class TableComponent extends NasComponentBase {
13
8
  /**
9
+ * @property Input
14
10
  * @description
15
11
  * Add caption to the table
16
12
  * @example
17
13
  * <nas-table [caption]="'Awesome caption'"></nas-table>
18
- */
14
+ */
19
15
  caption: string;
20
16
  constructor();
21
- ngOnInit(): void;
22
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
23
18
  static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "nas-table", never, { "caption": { "alias": "caption"; "required": false; }; }, {}, never, ["nas-column-group", "nas-table-row", "nas-table-head", "nas-table-body", "nas-table-foot"], false, never>;
24
19
  }
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { EventEmitter } from '@angular/core';
6
6
  import { NasComponentBase, ClassModel } from '../../core';
7
- import { UntypedFormGroup } from '@angular/forms';
7
+ import { FormGroup } from '@angular/forms';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * @description
@@ -12,74 +12,92 @@ import * as i0 from "@angular/core";
12
12
  */
13
13
  export declare class TextareaComponent extends NasComponentBase {
14
14
  /**
15
+ * @property Input
15
16
  * @description
16
17
  * Sets the label of the input
17
- */
18
+ */
18
19
  label: string;
19
20
  /**
21
+ * @property Input
20
22
  * @description
21
23
  * Should input field be resizeable in the vertical space, defaults to false
22
- */
24
+ */
23
25
  resizable: boolean;
24
26
  /**
27
+ * @property Input
25
28
  * @description
26
29
  * Overrides default height of textarea, in pixels
27
- */
30
+ */
28
31
  height: number;
29
32
  /**
33
+ * @property Input
30
34
  * @description
31
35
  * If resizable, sets the max-height of vertical resizing
32
- */
36
+ */
33
37
  maxHeight: number;
34
38
  /**
35
39
  * @description
36
40
  * Sets aria describedby for accessibility
37
- */
41
+ */
38
42
  ariaDescribedby: string;
39
43
  /**
44
+ * @property Input
40
45
  * @description
41
46
  * Whether the native input element is disabled or not, with disabled styling.
42
- */
47
+ */
43
48
  disabled: boolean;
44
49
  /**
50
+ * @property Input
45
51
  * @description
46
52
  * Whether the control is in an error state.
47
- */
53
+ */
48
54
  error: boolean;
49
55
  /**
56
+ * @property Input
50
57
  * @description
51
58
  * The error message to display when error occur. Error attribute need to be true.
52
- */
59
+ */
53
60
  errorMessage: string;
54
61
  /**
62
+ * @property Input
55
63
  * @description
56
64
  * The ID of the native input element
57
- */
65
+ */
58
66
  id: string;
59
67
  /**
68
+ * @property Input
60
69
  * @description
61
70
  * Sets the info text related to the input
62
- */
71
+ */
63
72
  info: string;
64
73
  /**
74
+ * @property Input
65
75
  * @description
66
76
  * Set loading styling of input
67
- */
77
+ */
68
78
  loading: boolean;
69
79
  /**
80
+ * @property Input
70
81
  * @description
71
82
  * Sets max length on the native input element.
72
- */
83
+ */
73
84
  maxLength: number;
74
85
  /**
86
+ * @property Input
75
87
  * @description
76
88
  * The value of the native input element
77
- */
89
+ */
78
90
  private modelValue;
79
91
  get model(): string;
80
92
  set model(value: string);
93
+ /**
94
+ * @property Output
95
+ * @description
96
+ * Emits a string if the model has changesd
97
+ */
81
98
  modelChange: EventEmitter<string>;
82
99
  /**
100
+ * @property Input
83
101
  * @description
84
102
  * Sets a formControlName directive to the input.
85
103
  * It requires that the consumer included ReactiveFormsModule in it's module.
@@ -88,9 +106,10 @@ export declare class TextareaComponent extends NasComponentBase {
88
106
  * ```html
89
107
  * <nas-textarea [nasFormControlName]="'username'"></nas-textarea>
90
108
  * ```
91
- */
109
+ */
92
110
  nasFormControlName: string;
93
111
  /**
112
+ * @property Input
94
113
  * @description
95
114
  * Adds the parent's form group.
96
115
  * It requires that the consumer included ReactiveFormsModule in it's module.
@@ -99,22 +118,25 @@ export declare class TextareaComponent extends NasComponentBase {
99
118
  * ```html
100
119
  * <nas-textarea [nasFormGroup]="loginGroup"></nas-textarea>
101
120
  * ```
102
- */
103
- nasFormGroup: UntypedFormGroup;
121
+ */
122
+ nasFormGroup: FormGroup;
104
123
  /**
124
+ * @property Input
105
125
  * @description
106
126
  * Whether the element is readonly.
107
- */
127
+ */
108
128
  readonly: boolean;
109
129
  /**
130
+ * @property Input
110
131
  * @description
111
132
  * Sets the required attribute on the native input element.
112
- */
133
+ */
113
134
  required: boolean;
114
135
  /**
136
+ * @property Input
115
137
  * @description
116
138
  * Set spaceless styling (removing spacing)
117
- */
139
+ */
118
140
  spaceless: boolean;
119
141
  constructor();
120
142
  mainClass(): ClassModel;
@@ -1,5 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { UntypedFormGroup } from '@angular/forms';
2
+ import { FormGroup } from '@angular/forms';
3
3
  import { OptionModel } from './models/options.model';
4
4
  import { NasComponentBase } from '../../core/base/nas-component.base';
5
5
  import * as i0 from "@angular/core";
@@ -9,176 +9,152 @@ import * as i0 from "@angular/core";
9
9
  */
10
10
  export declare class ToggleComponent extends NasComponentBase implements OnInit {
11
11
  /**
12
+ * @property Input
12
13
  * @description
13
14
  * Toggle options.
14
15
  * @example
15
- * ```html
16
16
  * <nas-toggle [options]="options"></nas-toggle>
17
- * ```
18
- */
17
+ */
19
18
  options: Array<OptionModel>;
20
19
  /**
20
+ * @property Input
21
21
  * @description
22
22
  * Set icon size large.
23
23
  * @example
24
- * ```html
25
24
  * <nas-toggle large></nas-toggle>
26
- * ```
27
25
  * or
28
- * ```html
29
26
  * <nas-toggle [large]="true"></nas-toggle>
30
- * ```
31
- */
27
+ */
32
28
  large?: boolean;
33
29
  /**
30
+ * @property Input
34
31
  * @description
35
32
  * Set compact styling.
36
33
  * @example
37
- * ```html
38
34
  * <nas-toggle compact></nas-toggle>
39
- * ```
40
35
  * or
41
- * ```html
42
36
  * <nas-toggle [compact]="true"></nas-toggle>
43
- * ```
44
- */
37
+ */
45
38
  compact?: boolean;
46
39
  /**
40
+ * @property Input
47
41
  * @description
48
42
  * Set light styling.
49
43
  * @example
50
- * ```html
51
44
  * <nas-toggle light></nas-toggle>
52
- * ```
53
45
  * or
54
- * ```html
55
46
  * <nas-toggle [light]="true"></nas-toggle>
56
- * ```
57
- */
47
+ */
58
48
  light?: boolean;
59
49
  /**
50
+ * @property Input
60
51
  * @description
61
52
  * Set rounded styling.
62
53
  * @example
63
- * ```html
64
54
  * <nas-toggle rounded></nas-toggle>
65
- * ```
66
55
  * or
67
- * ```html
68
56
  * <nas-toggle [rounded]="true"></nas-toggle>
69
- * ```
70
- */
57
+ */
71
58
  rounded?: boolean;
72
59
  /**
73
- * @description
74
- * Set small size of rounded styling.
75
- * @example
76
- * ```html
77
- * <nas-toggle rounded small></nas-toggle>
78
- * ```
79
- * or
80
- * ```html
81
- * <nas-toggle [rounded]="true" [small]="true"></nas-toggle>
82
- * ```
60
+ * @property Input
61
+ * @description
62
+ * Set small size of rounded styling.
63
+ * @example
64
+ * <nas-toggle rounded small></nas-toggle>
65
+ * or
66
+ * <nas-toggle [rounded]="true" [small]="true"></nas-toggle>
83
67
  */
84
68
  small?: boolean;
85
69
  /**
86
- * @description
87
- * Set big size of rounded styling.
88
- * @example
89
- * ```html
90
- * <nas-toggle rounded big></nas-toggle>
91
- * ```
92
- * or
93
- * ```html
94
- * <nas-toggle [rounded]="true" [big]="true"></nas-toggle>
95
- * ```
70
+ * @property Input
71
+ * @description
72
+ * Set big size of rounded styling.
73
+ * @example
74
+ * <nas-toggle rounded big></nas-toggle>
75
+ * or
76
+ * <nas-toggle [rounded]="true" [big]="true"></nas-toggle>
96
77
  */
97
78
  big?: boolean;
98
79
  /**
80
+ * @property Input
99
81
  * @description
100
82
  * Set the selected option.
101
83
  * @example
102
- * ```html
103
84
  * <nas-toggle [selectedValue]="selectedValue"></nas-toggle>
104
- * ```
105
- */
85
+ */
106
86
  selectedValue: string;
107
87
  /**
88
+ * @property Input
108
89
  * @description
109
90
  * The label for toggle.
110
91
  * @example
111
- * ```html
112
92
  * <nas-toggle [label]="'Toggle label'"></nas-toggle>
113
- */
93
+ */
114
94
  label: string;
115
95
  /**
96
+ * @property Input
116
97
  * @description
117
98
  * Set vertical styling.
118
99
  * @example
119
- * ```html
120
100
  * <nas-toggle vertical></nas-toggle>
121
- * ```
122
101
  * or
123
- * ```html
124
102
  * <nas-toggle [vertical]="true"></nas-toggle>
125
- * ```
126
- */
103
+ */
127
104
  vertical?: boolean;
128
105
  /**
106
+ * @property Input
129
107
  * @description
130
108
  * Set grouped styling.
131
109
  * @example
132
- * ```html
133
110
  * <nas-toggle grouped></nas-toggle>
134
- * ```
135
111
  * or
136
- * ```html
137
112
  * <nas-toggle [grouped]="true"></nas-toggle>
138
- * ```
139
- */
113
+ */
140
114
  grouped?: boolean;
141
115
  /**
116
+ * @property Input
142
117
  * @description
143
118
  * Toggle group name.
144
119
  * @example
145
- * ```html
146
120
  * <nas-toggle [group]="'Group name'"></nas-toggle>
147
- */
121
+ */
148
122
  group: string;
149
123
  /**
124
+ * @property Output
150
125
  * @description
151
126
  * An event that is fired every time a toggle is performed.
152
127
  * @example
153
- * ```html
154
128
  * <nas-toggle (handleChange)="onHandleChange($event)"></nas-toggle>
155
- * ```
156
- */
129
+ */
157
130
  handleChange: EventEmitter<OptionModel>;
158
131
  /**
132
+ * @property Input
159
133
  * @description
160
134
  * Sets a formControlName directive to the input.
161
135
  * It requires that the consumer included ReactiveFormsModule in it's module.
162
136
  * It requiers that the nasFormGroup input is filled.
163
137
  * @example
164
138
  * <nas-toggle [nasFormControlName]="'summer'"></nas-toggle>
165
- */
139
+ */
166
140
  nasFormControlName: string;
167
141
  /**
142
+ * @property Input
168
143
  * @description
169
144
  * Adds the parent's form group.
170
145
  * It requires that the consumer included ReactiveFormsModule in it's module.
171
146
  * It is requiered to be filled if nasFormControlName added.
172
147
  * @example
173
148
  * <nas-toggle [nasFormGroup]="formGroup"></nas-toggle>
174
- */
175
- nasFormGroup: UntypedFormGroup;
149
+ */
150
+ nasFormGroup: FormGroup;
176
151
  /**
152
+ * @property Input
177
153
  * @description
178
154
  * To set horizontal scroll.
179
155
  * @example
180
156
  * <nas-toggle scrollable></nas-toggle>
181
- */
157
+ */
182
158
  scrollable: boolean;
183
159
  iconType: string;
184
160
  isRounded: boolean;