@norwegian/core-components 7.20.2 → 7.22.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/assets/icons/large/illustration-airplane.svg +38 -0
- package/assets/icons/small/grid--disabled.svg +11 -0
- package/assets/icons/small/grid--light.svg +11 -0
- package/assets/icons/small/grid.svg +11 -0
- package/assets/icons/small/link--light.svg +3 -0
- package/assets/icons/small/link.svg +3 -0
- package/assets/icons/small/list--disabled.svg +8 -0
- package/assets/icons/small/list--light.svg +8 -0
- package/assets/icons/small/list.svg +8 -0
- package/assets/icons/small/world.svg +10 -0
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +20 -5
- package/esm2022/lib/components/icon/icon.component.mjs +2 -2
- package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +1 -1
- package/esm2022/lib/components/toggle/models/options.model.mjs +4 -1
- package/esm2022/lib/components/toggle/toggle.component.mjs +13 -3
- package/fesm2022/norwegian-core-components.mjs +34 -9
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/autocomplete/autocomplete.component.d.ts +20 -1
- package/lib/components/toggle/models/options.model.d.ts +2 -1
- package/lib/components/toggle/toggle.component.d.ts +12 -1
- package/package.json +1 -1
|
@@ -22,12 +22,24 @@ export declare class AutocompleteComponent extends NasComponentBase implements O
|
|
|
22
22
|
span: ElementRef;
|
|
23
23
|
results: ElementRef;
|
|
24
24
|
labelElement: ElementRef<HTMLElement>;
|
|
25
|
+
/**
|
|
26
|
+
* @property Input
|
|
27
|
+
* @description
|
|
28
|
+
* The ID of the native input element
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
25
31
|
/**
|
|
26
32
|
* @property Input
|
|
27
33
|
* @description
|
|
28
34
|
* A label that will appear inside the text field.
|
|
29
35
|
*/
|
|
30
36
|
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* @property Input
|
|
39
|
+
* @description
|
|
40
|
+
* Sets the label of the input inside the input field, default value is true
|
|
41
|
+
*/
|
|
42
|
+
labelInside: boolean;
|
|
31
43
|
/**
|
|
32
44
|
* @property Input
|
|
33
45
|
* @description
|
|
@@ -40,6 +52,12 @@ export declare class AutocompleteComponent extends NasComponentBase implements O
|
|
|
40
52
|
* An icon that will appear inside the text field.
|
|
41
53
|
*/
|
|
42
54
|
icon: string;
|
|
55
|
+
/**
|
|
56
|
+
* @property Input
|
|
57
|
+
* @description
|
|
58
|
+
* Sets a secondary color theme.
|
|
59
|
+
*/
|
|
60
|
+
secondary: boolean;
|
|
43
61
|
/**
|
|
44
62
|
* @property Input
|
|
45
63
|
* @description
|
|
@@ -109,6 +127,7 @@ export declare class AutocompleteComponent extends NasComponentBase implements O
|
|
|
109
127
|
selectedChange: EventEmitter<AutocompleteModel>;
|
|
110
128
|
openChange: EventEmitter<boolean>;
|
|
111
129
|
modelChange: EventEmitter<string>;
|
|
130
|
+
get inputId(): string;
|
|
112
131
|
private openValue;
|
|
113
132
|
private itemsValue;
|
|
114
133
|
private modelValue;
|
|
@@ -131,5 +150,5 @@ export declare class AutocompleteComponent extends NasComponentBase implements O
|
|
|
131
150
|
onInput(event: Event): void;
|
|
132
151
|
setRemoveIcon(): string;
|
|
133
152
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
134
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "nas-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "items": { "alias": "items"; "required": false; }; "open": { "alias": "open"; "required": false; }; "model": { "alias": "model"; "required": false; }; "disableBackdrop": { "alias": "disableBackdrop"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; }, { "focusOnNext": "focusOnNext"; "selectedChange": "selectedChange"; "openChange": "openChange"; "modelChange": "modelChange"; }, never, never, false, never>;
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "nas-autocomplete", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelInside": { "alias": "labelInside"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "items": { "alias": "items"; "required": false; }; "open": { "alias": "open"; "required": false; }; "model": { "alias": "model"; "required": false; }; "disableBackdrop": { "alias": "disableBackdrop"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "ariaLabelBackdrop": { "alias": "ariaLabelBackdrop"; "required": false; }; "ariaLabelClear": { "alias": "ariaLabelClear"; "required": false; }; }, { "focusOnNext": "focusOnNext"; "selectedChange": "selectedChange"; "openChange": "openChange"; "modelChange": "modelChange"; }, never, never, false, never>;
|
|
135
154
|
}
|
|
@@ -166,6 +166,16 @@ export declare class ToggleComponent extends NasComponentBase implements OnInit
|
|
|
166
166
|
* <nas-toggle scrollable></nas-toggle>
|
|
167
167
|
*/
|
|
168
168
|
scrollable: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* @property Input
|
|
171
|
+
* @description
|
|
172
|
+
* Controls whether '--light' suffix is toggled on icons based on selection state.
|
|
173
|
+
* @example
|
|
174
|
+
* <nas-toggle toggleIconLight></nas-toggle>
|
|
175
|
+
* or
|
|
176
|
+
* <nas-toggle [toggleIconLight]="true"></nas-toggle>
|
|
177
|
+
*/
|
|
178
|
+
toggleIconLight?: boolean;
|
|
169
179
|
iconType: string;
|
|
170
180
|
isRounded: boolean;
|
|
171
181
|
constructor();
|
|
@@ -173,7 +183,8 @@ export declare class ToggleComponent extends NasComponentBase implements OnInit
|
|
|
173
183
|
getOptionId(option: OptionModel): string;
|
|
174
184
|
onChange(option: OptionModel): void;
|
|
175
185
|
mainClasses(): import("@norwegian/core-components").ClassModel;
|
|
186
|
+
getIconName(option: OptionModel): string;
|
|
176
187
|
onClickHref(event: MouseEvent, option: OptionModel): void;
|
|
177
188
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
178
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "nas-toggle", never, { "options": { "alias": "options"; "required": false; }; "large": { "alias": "large"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "small": { "alias": "small"; "required": false; }; "big": { "alias": "big"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "light": { "alias": "light"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "group": { "alias": "group"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; }, { "handleChange": "handleChange"; }, never, never, false, never>;
|
|
189
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "nas-toggle", never, { "options": { "alias": "options"; "required": false; }; "large": { "alias": "large"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "small": { "alias": "small"; "required": false; }; "big": { "alias": "big"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "light": { "alias": "light"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "group": { "alias": "group"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "toggleIconLight": { "alias": "toggleIconLight"; "required": false; }; }, { "handleChange": "handleChange"; }, never, never, false, never>;
|
|
179
190
|
}
|