@norwegian/core-components 5.3.0 → 5.6.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.
@@ -23,6 +23,15 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
23
23
  * ```
24
24
  */
25
25
  title: string;
26
+ /**
27
+ * @description
28
+ * A string input value to set subheader text of component.
29
+ * @example
30
+ * ```html
31
+ * <nas-accordion [subheader]="'This is a subheader'">You can put any kind of elements and content here...</nas-accordion>
32
+ * ```
33
+ */
34
+ subheader: string;
26
35
  /**
27
36
  * @description
28
37
  * A string input value to set icon text of component. Specifies the icon name, defaults to 'small'.
@@ -157,6 +166,22 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
157
166
  * ```
158
167
  */
159
168
  info?: boolean;
169
+ /**
170
+ * A boolean input value to set the accordion to subheader positive style.
171
+ * @example
172
+ * ```html
173
+ * <nas-accordion subheader="This is subheader" subheaderPositive>You can put any kind of elements and content here...</nas-accordion>
174
+ * ```
175
+ */
176
+ subheaderPositive?: boolean;
177
+ /**
178
+ * A boolean input value to set the accordion to subheader negative style.
179
+ * @example
180
+ * ```html
181
+ * <nas-accordion subheader="This is subheader" subheaderNegative>You can put any kind of elements and content here...</nas-accordion>
182
+ * ```
183
+ */
184
+ subheaderNegative?: boolean;
160
185
  /**
161
186
  * @description
162
187
  * Adds custom CSS class to the accordion. Accordion will sett additional custom styling.
@@ -45,6 +45,11 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
45
45
  * Sets spaceless styling.
46
46
  */
47
47
  spaceless?: boolean;
48
+ /**
49
+ * @description
50
+ * Sets stretch styling.
51
+ */
52
+ stretch?: boolean;
48
53
  /**
49
54
  * @description
50
55
  * Sets compact styling.
@@ -7,7 +7,7 @@ import { FormGroup } from '@angular/forms';
7
7
  import { NasComponentBase } from '../../core/base/nas-component.base';
8
8
  /**
9
9
  * @description
10
- * Norwegian Slider Component | Form Controls | Beta
10
+ * Norwegian Slider Component | Form Controls
11
11
  */
12
12
  export declare class SliderComponent extends NasComponentBase implements OnInit, AfterViewInit, AfterViewChecked {
13
13
  private cdr;
@@ -65,6 +65,11 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
65
65
  */
66
66
  get suffix(): string;
67
67
  set suffix(value: string);
68
+ /**
69
+ * @description
70
+ * Overwrites the suffix and adds at the beginning of the value that the slider can have.
71
+ */
72
+ isPrefix?: boolean;
68
73
  /**
69
74
  * @description
70
75
  * The minimum value that the slider can have. The default value is 0.
@@ -75,8 +80,8 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
75
80
  * @description
76
81
  * A custom label for the minimum value. The actual value is still specified by min input.
77
82
  */
78
- get minLabel(): string;
79
- set minLabel(value: string);
83
+ get minLabel(): string | number;
84
+ set minLabel(value: string | number);
80
85
  /**
81
86
  * @description
82
87
  * The maximum value that the slider can have. The default value is 100.
@@ -87,8 +92,8 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
87
92
  * @description
88
93
  * A custom label for the maximum value. The actual value is still specified by max input.
89
94
  */
90
- get maxLabel(): string;
91
- set maxLabel(value: string);
95
+ get maxLabel(): string | number;
96
+ set maxLabel(value: string | number);
92
97
  /**
93
98
  * @description
94
99
  * The values at which the thumb will snap
@@ -146,13 +151,15 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
146
151
  selectedMaxValueChange: EventEmitter<number>;
147
152
  isRange: boolean;
148
153
  showBubble: boolean;
149
- bubbleRangeValue: number;
154
+ bubbleValue: string | number;
150
155
  isIEOrEdge: boolean;
156
+ showBubbleSuffix: boolean;
151
157
  get sliderId(): string;
152
158
  get isBubbleActive(): boolean;
153
159
  set isBubbleActive(value: boolean);
154
- get bubbleValue(): string;
155
160
  get middleLabel(): string;
161
+ get showMinLabelSuffix(): boolean;
162
+ get showMaxLabelSuffix(): boolean;
156
163
  private isBubbleActiveValue;
157
164
  private valueValue;
158
165
  private minValue;
@@ -167,6 +174,8 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
167
174
  private minLabelValue;
168
175
  private maxLabelValue;
169
176
  private suffixLabelValue;
177
+ private maxSelected;
178
+ private minSelected;
170
179
  constructor(cdr: ChangeDetectorRef);
171
180
  ngOnInit(): void;
172
181
  ngAfterViewInit(): void;
@@ -174,4 +183,8 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
174
183
  onSliderInput(event: any, type: string): void;
175
184
  onSliderChange(event: any, type?: string): void;
176
185
  private setBubbleStyle;
186
+ onDisplayBubble(event?: any, type?: string): void;
187
+ private validateRangerSlider;
188
+ private activateBubble;
189
+ private setBubbleValue;
177
190
  }