nve-designsystem 3.1.0 → 3.3.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/chunks/chunk.2PCBEMQZ.js +163 -226
- package/chunks/chunk.36O46B5H.js +15 -15
- package/chunks/chunk.4TUIT776.js +78 -96
- package/chunks/chunk.5JY5FUCG.js +965 -1245
- package/chunks/chunk.5P45LHIX.js +668 -96
- package/chunks/chunk.6CTB5ZDJ.js +107 -100
- package/chunks/chunk.B4BZKR24.js +29 -39
- package/chunks/chunk.D5YQDJ7X.js +122 -166
- package/chunks/chunk.EA437WHD.js +5 -5
- package/chunks/chunk.GI7VDIWX.js +14 -15
- package/chunks/chunk.GMYPQTFK.js +18 -20
- package/chunks/chunk.HVTXQL7M.js +191 -215
- package/chunks/chunk.IKV4VH3T.js +18 -16
- package/chunks/chunk.IVVHNXMC.js +26 -27
- package/chunks/chunk.JHOXTQXA.js +65 -74
- package/chunks/chunk.JXOKFADN.js +63 -90
- package/chunks/chunk.K7JGTRV7.js +24 -23
- package/chunks/chunk.KPLQLAWP.js +132 -147
- package/chunks/chunk.LD4M4QGE.js +61 -74
- package/chunks/chunk.MSKEYBDI.js +53 -71
- package/chunks/chunk.NYIIDP5N.js +39 -45
- package/chunks/chunk.RWUUFNUL.js +91 -114
- package/chunks/chunk.SAPQLUO4.js +249 -228
- package/chunks/chunk.SI4ACBFK.js +139 -5
- package/chunks/chunk.TP2GB2HO.js +361 -460
- package/chunks/chunk.UDWRA64J.js +185 -223
- package/chunks/chunk.URTPIBTY.js +119 -151
- package/chunks/chunk.VESXC477.js +63 -66
- package/chunks/chunk.XA43ZQPC.js +198 -313
- package/chunks/chunk.XQ2OKYYA.js +25 -26
- package/chunks/chunk.XZNBUGX7.js +6 -6
- package/chunks/chunk.YHLNUJ7P.js +93 -116
- package/chunks/chunk.ZH2AND3P.js +340 -399
- package/chunks/chunk.ZL53POKZ.js +61 -156
- package/chunks/chunk.js +20 -0
- package/chunks/class-map.js +49 -45
- package/chunks/decorate.js +105 -0
- package/chunks/directive-helpers.js +5 -7
- package/chunks/if-defined.js +5 -5
- package/chunks/lit.js +525 -0
- package/chunks/live.js +24 -24
- package/chunks/nve-alert.component.js +163 -0
- package/chunks/nve-carousel-item.component.js +36 -0
- package/chunks/nve-carousel.component.js +41 -0
- package/chunks/nve-checkbox-group.component.js +114 -0
- package/chunks/nve-checkbox.component.js +28 -0
- package/chunks/nve-dialog.component.js +39 -0
- package/chunks/nve-divider.component.js +23 -0
- package/chunks/nve-drawer.component.js +40 -0
- package/chunks/nve-dropdown.component.js +83 -0
- package/chunks/nve-input.component.js +80 -0
- package/chunks/nve-label.component.js +89 -0
- package/chunks/nve-menu-item.component.js +35 -0
- package/chunks/nve-menu.component.js +17 -0
- package/chunks/nve-option.component.js +27 -0
- package/chunks/nve-popup.component.js +15 -0
- package/chunks/nve-radio-button.component.js +20 -0
- package/chunks/nve-radio-group.component.js +78 -0
- package/chunks/nve-radio.component.js +18 -0
- package/chunks/nve-select.component.js +58 -0
- package/chunks/nve-skeleton.component.js +20 -0
- package/chunks/nve-spinner.component.js +23 -0
- package/chunks/nve-tooltip.component.js +20 -0
- package/chunks/nve-warning-level.component.js +57 -0
- package/chunks/ref.js +75 -84
- package/chunks/shoelace.js +10006 -0
- package/chunks/static-html.js +27 -0
- package/chunks/unsafe-html.js +24 -20
- package/chunks/updateInvalidProperty.js +7 -7
- package/chunks/watch.js +20 -20
- package/components/nve-accordion/nve-accordion.component.js +24 -30
- package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
- package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
- package/components/nve-alert/nve-alert.component.js +2 -227
- package/components/nve-alert/nve-alert.styles.js +45 -27
- package/components/nve-badge/nve-badge.component.js +41 -45
- package/components/nve-badge/nve-badge.styles.js +33 -31
- package/components/nve-button/nve-button.component.d.ts +110 -10
- package/components/nve-button/nve-button.component.js +146 -39
- package/components/nve-button/nve-button.styles.js +214 -157
- package/components/nve-carousel/nve-carousel.component.js +2 -47
- package/components/nve-carousel/nve-carousel.styles.js +6 -6
- package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
- package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
- package/components/nve-checkbox/nve-checkbox.component.js +2 -34
- package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
- package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
- package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
- package/components/nve-combobox/nve-combobox.component.js +222 -440
- package/components/nve-combobox/nve-combobox.styles.js +6 -6
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
- package/components/nve-dialog/nve-dialog-styles.js +6 -6
- package/components/nve-dialog/nve-dialog.component.js +2 -54
- package/components/nve-divider/nve-divider.component.js +2 -30
- package/components/nve-drawer/nve-drawer.component.js +2 -44
- package/components/nve-drawer/nve-drawer.styles.js +6 -6
- package/components/nve-dropdown/nve-dropdown.component.js +2 -79
- package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
- package/components/nve-heading/nve-heading.component.d.ts +29 -0
- package/components/nve-heading/nve-heading.component.js +45 -0
- package/components/nve-heading/nve-heading.styles.d.ts +2 -0
- package/components/nve-heading/nve-heading.styles.js +41 -0
- package/components/nve-icon/nve-icon.component.js +145 -164
- package/components/nve-icon/nve-icon.styles.js +11 -6
- package/components/nve-icon/offline-icons.js +16 -13
- package/components/nve-input/nve-input.component.js +2 -100
- package/components/nve-input/nve-input.styles.js +5 -5
- package/components/nve-label/nve-label.component.js +2 -115
- package/components/nve-label/nve-label.styles.js +5 -5
- package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
- package/components/nve-link-card/nve-link-card.component.js +44 -80
- package/components/nve-link-card/nve-link-card.styles.js +71 -66
- package/components/nve-menu/nve-menu.component.js +2 -22
- package/components/nve-menu/nve-menu.styles.js +5 -5
- package/components/nve-menu-item/nve-menu-item.component.js +2 -43
- package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
- package/components/nve-message-card/nve-message-card.component.js +61 -91
- package/components/nve-message-card/nve-message-card.styles.js +24 -27
- package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
- package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
- package/components/nve-option/nve-option.component.js +2 -41
- package/components/nve-option/nve-option.styles.js +5 -5
- package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
- package/components/nve-paragraph/nve-paragraph.component.js +26 -0
- package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
- package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
- package/components/nve-popup/nve-popup.component.js +2 -22
- package/components/nve-radio/nve-radio.component.js +2 -23
- package/components/nve-radio/nve-radio.styles.js +5 -5
- package/components/nve-radio-button/nve-radio-button.component.js +2 -25
- package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
- package/components/nve-radio-group/nve-radio-group.component.js +2 -119
- package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
- package/components/nve-relative-time/nve-relative-time.component.js +21 -56
- package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
- package/components/nve-select/nve-select.component.js +2 -80
- package/components/nve-select/nve-select.styles.js +6 -6
- package/components/nve-skeleton/nve-skeleton.component.js +2 -27
- package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
- package/components/nve-spinner/nve-spinner.component.js +2 -31
- package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
- package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
- package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
- package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
- package/components/nve-stepper/nve-stepper.component.js +94 -139
- package/components/nve-stepper/nve-stepper.styles.js +5 -5
- package/components/nve-switch/nve-switch.component.js +75 -107
- package/components/nve-switch/nve-switch.styles.js +7 -7
- package/components/nve-tab/nve-tab.component.js +30 -42
- package/components/nve-tab/nve-tab.styles.js +7 -7
- package/components/nve-tab-group/nve-tab-group.component.js +180 -260
- package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
- package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
- package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
- package/components/nve-tag/nve-tag.component.d.ts +3 -3
- package/components/nve-tag/nve-tag.component.js +71 -72
- package/components/nve-tag/nve-tag.styles.js +23 -22
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +112 -173
- package/components/nve-textarea/nve-textarea.styles.js +10 -5
- package/components/nve-tooltip/nve-tooltip.component.js +2 -30
- package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
- package/components/nve-warning-level/nve-warning-level.component.js +2 -78
- package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
- package/css/global.css +13 -55
- package/css/nve.css +1048 -393
- package/css/nve_dark.css +406 -305
- package/css/rme.css +1050 -395
- package/css/rme_dark.css +408 -307
- package/css/shoelace-styles.css +539 -0
- package/css/varsom.css +1046 -391
- package/css/varsom_dark.css +404 -303
- package/custom-elements.json +2905 -12389
- package/fonts/LICENSE.txt +37 -0
- package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
- package/interfaces/NveComponent.interface.js +0 -1
- package/nve-designsystem.d.ts +5 -0
- package/nve-designsystem.js +46 -86
- package/package.json +26 -8
- package/registerIcons/systemLibraryCustomization.js +23 -91
- package/vite-env.d.js +0 -1
- package/chunks/chunk.3RPBFEDE.js +0 -162
- package/chunks/chunk.JCXLDPQF.js +0 -225
- package/chunks/chunk.JQBT7BOV.js +0 -8446
- package/chunks/chunk.MAQXLKQ7.js +0 -598
- package/chunks/lit-element.js +0 -508
- package/chunks/property.js +0 -37
- package/chunks/query.js +0 -13
- package/chunks/state.js +0 -7
- package/chunks/static.js +0 -26
- package/nve-designsystem.css +0 -1
- package/vscode.css-custom-data.json +0 -621
- package/vscode.html-custom-data.json +0 -2354
|
@@ -1,351 +1,194 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as r, t as y } from "../../chunks/property.js";
|
|
6
|
-
import { r as p } from "../../chunks/state.js";
|
|
7
|
-
import "../nve-popup/nve-popup.component.js";
|
|
8
|
-
import "../nve-input/nve-input.component.js";
|
|
9
|
-
import "../nve-menu/nve-menu.component.js";
|
|
10
|
-
import "../nve-option/nve-option.component.js";
|
|
1
|
+
import { a as e, t } from "../../chunks/lit.js";
|
|
2
|
+
import { a as n, o as r, s as i, t as a } from "../../chunks/decorate.js";
|
|
3
|
+
import { t as o } from "../../chunks/unsafe-html.js";
|
|
4
|
+
import { n as s, t as c } from "../../chunks/ref.js";
|
|
11
5
|
import "../nve-icon/nve-icon.component.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
* Søker etter alternativer som matcher søketeksten.
|
|
199
|
-
* @param searchString Søketekst
|
|
200
|
-
* @returns {Option[]} Liste med alternativer som matcher søket
|
|
201
|
-
*/
|
|
202
|
-
searchForOptions(e) {
|
|
203
|
-
const t = e.toLowerCase();
|
|
204
|
-
return this.options.filter((i) => i.label.toLowerCase().includes(t)).sort((i, l) => {
|
|
205
|
-
const a = i.label.toLowerCase().startsWith(t), n = l.label.toLowerCase().startsWith(t);
|
|
206
|
-
return a && !n ? -1 : !a && n ? 1 : 0;
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Velger et alternativ.
|
|
211
|
-
* @param option Alternativet som skal velges
|
|
212
|
-
* @returns {void}
|
|
213
|
-
*/
|
|
214
|
-
selectOption(e) {
|
|
215
|
-
if (this.disabled || this.isMaxNumberOfOptionsSelected()) return;
|
|
216
|
-
const t = [...this.options], i = t.findIndex((l) => l.value === e.value);
|
|
217
|
-
i !== -1 && (t[i].selected = !0, this.selectedOptions.push(e), this.options = t, this.inputValue = "", this.displaySearchResult = !1, this.setPopupActive(!1), this.focusPrefixInputField(), this.emitValueEvent(this.selectedOptions));
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Velger et alternativ med tastatur.
|
|
221
|
-
* @param option Alternativet som skal velges
|
|
222
|
-
* @param event KeyboardEvent
|
|
223
|
-
* @returns {void}
|
|
224
|
-
*/
|
|
225
|
-
selectOptionKeyDown(e, t) {
|
|
226
|
-
t.key === "Enter" && this.selectOption(e);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Fjerner et valgt alternativ.
|
|
230
|
-
* @param option Alternativet som skal fjernes
|
|
231
|
-
* @returns {void}
|
|
232
|
-
*/
|
|
233
|
-
unSelectOption(e) {
|
|
234
|
-
if (this.disabled) return;
|
|
235
|
-
const t = [...this.options], i = [...this.selectedOptions], l = t.findIndex((n) => n.value === e.value), a = i.findIndex(
|
|
236
|
-
(n) => n.value === e.value
|
|
237
|
-
);
|
|
238
|
-
l !== -1 && (t[l].selected = !1), a !== -1 && i.splice(a, 1), this.selectedOptions = i, this.options = t, this.emitValueEvent(i);
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Fjerner ett valgt alternativ med tastatur.
|
|
242
|
-
* @param option Alternativet som skal fjernes
|
|
243
|
-
* @param event KeyboardEvent
|
|
244
|
-
* @returns {void}
|
|
245
|
-
*/
|
|
246
|
-
unSelectOptionKeyDown(e, t) {
|
|
247
|
-
if (t.key === "Enter") {
|
|
248
|
-
this.unSelectOption(e);
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Fjerner en tag med tastatur.
|
|
254
|
-
* @param option Alternativet som skal fjernes
|
|
255
|
-
* @param event KeyboardEvent
|
|
256
|
-
* @returns {void}
|
|
257
|
-
*/
|
|
258
|
-
unSelectOptionKeyDownTag(e, t) {
|
|
259
|
-
if (!(t instanceof KeyboardEvent && t.key !== "Backspace") && (this.unSelectOption(e), this.selectedOptions.length === 0)) {
|
|
260
|
-
this.focusPrefixInputField();
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Setter popupens aktive tilstand.
|
|
266
|
-
* @param active true for å åpne popup, false for å lukke
|
|
267
|
-
*/
|
|
268
|
-
setPopupActive(e) {
|
|
269
|
-
this.isPopupActive === e || this.disabled || (this.isPopupActive = e, this.shadowRoot?.querySelector(".open-icon")?.classList?.toggle("active"));
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Basert på om brukeren presser ArrowDown eller ArrowUp, fokuser på riktig element
|
|
273
|
-
* @param option Event.key string ArrowDown || ArrowUp
|
|
274
|
-
*/
|
|
275
|
-
focusNextOption(e) {
|
|
276
|
-
const t = Array.from(this.shadowRoot?.querySelectorAll("nve-option") || []), i = t.findIndex((a) => a === this.shadowRoot?.activeElement);
|
|
277
|
-
let l = i;
|
|
278
|
-
e === "ArrowDown" ? i < t.length - 1 && (l = i + 1) : e === "ArrowUp" && i > 0 && (l = i - 1), t[l] && t[l].focus();
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Focuserer den siste sl-taggen i prefix slotten
|
|
282
|
-
*/
|
|
283
|
-
focusLastTag() {
|
|
284
|
-
const e = Array.from(this.shadowRoot?.querySelectorAll("sl-tag") || []), t = e[e.length - 1];
|
|
285
|
-
t && t.focus();
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Toggle valg av alternativ i søkeresultatlisten.
|
|
289
|
-
* @param option Alternativet som skal toggles
|
|
290
|
-
* @param index Indeks i søkeresultatlisten
|
|
291
|
-
* @returns {void}
|
|
292
|
-
*/
|
|
293
|
-
toggleOptionInListWithSearchHits(e, t) {
|
|
294
|
-
if (this.disabled || this.shouldDisplayOptionAsDisabled(e)) return;
|
|
295
|
-
const i = [...this.listWithSearchHits], l = i[t].selected;
|
|
296
|
-
i[t].selected = !i[t].selected, this.listWithSearchHits = i, l === !0 ? this.unSelectOption(e) : this.selectOption(e);
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Toggle valg av alternativ i søkeresultatlisten med tastatur (kun Enter).
|
|
300
|
-
* @param option Alternativet som skal toggles
|
|
301
|
-
* @param index i søkeresultatlisten
|
|
302
|
-
* @param event KeyboardEvent
|
|
303
|
-
* @returns {void}
|
|
304
|
-
*/
|
|
305
|
-
toggleOptionInListWithSearchHitsKeyDown(e, t, i) {
|
|
306
|
-
i instanceof KeyboardEvent && i.key !== "Enter" || this.toggleOptionInListWithSearchHits(e, t);
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Legger til utheving av søketreff i label.
|
|
310
|
-
* @param label Label til alternativet
|
|
311
|
-
* @returns {TemplateResult} HTML med uthevet søketreff
|
|
312
|
-
*
|
|
313
|
-
*/
|
|
314
|
-
addHighlightingToSearchResult(e) {
|
|
315
|
-
const t = e.replace(new RegExp(this.inputValue, "i"), (i) => `<b>${i}</b>`);
|
|
316
|
-
return h` ${v(t)} `;
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* Sjekker om maksimalt antall alternativer er valgt.
|
|
320
|
-
*/
|
|
321
|
-
isMaxNumberOfOptionsSelected() {
|
|
322
|
-
return this.selectedOptions.length === this.max;
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Sjekker om et alternativ skal vises som deaktivert.
|
|
326
|
-
* Hvis disabled er true, vises alle alternativer som deaktivert.
|
|
327
|
-
* Hvis maksimalt antall alternativer er valgt, vises alle alternativer som ikke er valgt som deaktivert.
|
|
328
|
-
*/
|
|
329
|
-
shouldDisplayOptionAsDisabled(e) {
|
|
330
|
-
return this.disabled ? !0 : this.isMaxNumberOfOptionsSelected() ? !e?.selected : !1;
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Sjekker om en bokstav er trykket på tastaturet.
|
|
334
|
-
* @param event KeyboardEvent
|
|
335
|
-
* @returns {boolean} true hvis en bokstav er trykket
|
|
336
|
-
*/
|
|
337
|
-
isAPrintableCharacterPressed(e) {
|
|
338
|
-
return e.code.startsWith("Key");
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Setter fokus på prefix input ref
|
|
342
|
-
* @returns {void}
|
|
343
|
-
*/
|
|
344
|
-
focusPrefixInputField() {
|
|
345
|
-
this.prefixInputRef.value?.focus();
|
|
346
|
-
}
|
|
347
|
-
render() {
|
|
348
|
-
return h`
|
|
6
|
+
import l from "./nve-combobox.styles.js";
|
|
7
|
+
import "../../chunks/nve-popup.component.js";
|
|
8
|
+
import "../../chunks/nve-input.component.js";
|
|
9
|
+
import "../../chunks/nve-menu.component.js";
|
|
10
|
+
import "../../chunks/nve-option.component.js";
|
|
11
|
+
//#region src/components/nve-combobox/nve-combobox.component.ts
|
|
12
|
+
var u = class extends t {
|
|
13
|
+
static {
|
|
14
|
+
this.styles = [l];
|
|
15
|
+
}
|
|
16
|
+
constructor() {
|
|
17
|
+
super(), this.helpText = void 0, this.requiredLabel = "*Obligatorisk", this.errorMessage = "-!ERROR!-", this.options = [], this.max = Infinity, this.min = void 0, this.disabled = !1, this.filled = !1, this.required = !1, this.size = "medium", this.testId = void 0, this.listWithSearchHits = [], this.displaySearchResult = !1, this.selectedOptions = [], this.inputValue = "", this.isPopupActive = !1, this.error = !1, this.prefixInputRef = c(), this.boundHandleOutsideClick = this.handleOutsideClick.bind(this);
|
|
18
|
+
}
|
|
19
|
+
firstUpdated() {
|
|
20
|
+
this.selectedOptions = this.options.filter((e) => e?.selected);
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
super.connectedCallback(), document.addEventListener("click", this.boundHandleOutsideClick, !0), this.closest("form")?.addEventListener("submit", this.handleSubmit.bind(this));
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
document.removeEventListener("click", this.boundHandleOutsideClick, !0), this.closest("form")?.removeEventListener("submit", this.handleSubmit.bind(this)), super.disconnectedCallback();
|
|
27
|
+
}
|
|
28
|
+
handleOutsideClick(e) {
|
|
29
|
+
!this.shadowRoot?.contains(e.target) && !this.contains(e.target) && this.isPopupActive && (this.setPopupActive(!1), this.listWithSearchHits = [], this.inputValue = "", this.displaySearchResult = !1);
|
|
30
|
+
}
|
|
31
|
+
emitValueEvent(e) {
|
|
32
|
+
this.dispatchEvent(new CustomEvent("value", {
|
|
33
|
+
bubbles: !0,
|
|
34
|
+
cancelable: !1,
|
|
35
|
+
composed: !0,
|
|
36
|
+
detail: { value: e }
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
emitInvalidEvent() {
|
|
40
|
+
this.dispatchEvent(new CustomEvent("invalid", {
|
|
41
|
+
bubbles: !0,
|
|
42
|
+
cancelable: !1,
|
|
43
|
+
composed: !0
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
handleFocus() {
|
|
47
|
+
this.displaySearchResult = !1, this.focusPrefixInputField(), this.handleInput(), this.setPopupActive(!0);
|
|
48
|
+
}
|
|
49
|
+
handleClick() {
|
|
50
|
+
this.focusPrefixInputField(), this.setPopupActive(!0);
|
|
51
|
+
}
|
|
52
|
+
togglePopupActive(e) {
|
|
53
|
+
e.stopPropagation(), this.setPopupActive(!this.isPopupActive);
|
|
54
|
+
}
|
|
55
|
+
handleSubmit(e) {
|
|
56
|
+
e.preventDefault(), this.checkValidity();
|
|
57
|
+
}
|
|
58
|
+
checkValidity() {
|
|
59
|
+
let e = this.selectedOptions.length;
|
|
60
|
+
e >= (this.min === void 0 ? 0 : this.min) && e <= this.max ? this.resetValidation() : this.makeInvalid();
|
|
61
|
+
}
|
|
62
|
+
makeInvalid() {
|
|
63
|
+
this.errorMessage = this.errorMessage, this.error = !0, this.emitInvalidEvent(), this.toggleValidationAttributes(!1);
|
|
64
|
+
}
|
|
65
|
+
resetValidation() {
|
|
66
|
+
this.error = !1, this.toggleValidationAttributes(!0);
|
|
67
|
+
}
|
|
68
|
+
toggleValidationAttributes(e) {
|
|
69
|
+
this.toggleAttribute("data-valid", e), this.toggleAttribute("data-user-valid", e), this.toggleAttribute("data-invalid", !e), this.toggleAttribute("data-user-invalid", !e);
|
|
70
|
+
}
|
|
71
|
+
handleInput() {
|
|
72
|
+
let e = this.prefixInputRef.value;
|
|
73
|
+
if (e && e.value) {
|
|
74
|
+
this.inputValue = e.value;
|
|
75
|
+
let t = this.searchForOptions(e.value);
|
|
76
|
+
this.updateListWithSearchHits(t);
|
|
77
|
+
} else this.displaySearchResult = !1;
|
|
78
|
+
}
|
|
79
|
+
handleKeyboardNavigationInput(e) {
|
|
80
|
+
if (!this.disabled) switch (e.key) {
|
|
81
|
+
case "ArrowDown":
|
|
82
|
+
e.preventDefault(), this.setPopupActive(!0), this.shadowRoot?.querySelector("nve-option")?.focus();
|
|
83
|
+
return;
|
|
84
|
+
case "ArrowUp":
|
|
85
|
+
e.preventDefault(), this.setPopupActive(!0);
|
|
86
|
+
let t = this.shadowRoot?.querySelectorAll("nve-option");
|
|
87
|
+
t && setTimeout(() => {
|
|
88
|
+
t[t.length - 1].focus();
|
|
89
|
+
}, 0);
|
|
90
|
+
return;
|
|
91
|
+
case "Escape":
|
|
92
|
+
!this.isPopupActive && this.inputValue.length > 0 && (this.inputValue = ""), this.setPopupActive(!1);
|
|
93
|
+
return;
|
|
94
|
+
case "Enter":
|
|
95
|
+
case "Space":
|
|
96
|
+
this.setPopupActive(!this.isPopupActive);
|
|
97
|
+
return;
|
|
98
|
+
case "Backspace":
|
|
99
|
+
this.inputValue === "" && this.focusLastTag();
|
|
100
|
+
return;
|
|
101
|
+
default: this.isAPrintableCharacterPressed(e) && this.focusPrefixInputField();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
handleKeyboardNavigationListBox(e) {
|
|
105
|
+
if (!this.disabled) switch (e.key) {
|
|
106
|
+
case "Escape":
|
|
107
|
+
this.setPopupActive(!1);
|
|
108
|
+
return;
|
|
109
|
+
case "ArrowUp":
|
|
110
|
+
case "ArrowDown":
|
|
111
|
+
this.focusNextOption(e.key), e.preventDefault();
|
|
112
|
+
return;
|
|
113
|
+
case "ArrowRight":
|
|
114
|
+
case "ArrowLeft":
|
|
115
|
+
case "BackSpace":
|
|
116
|
+
this.focusPrefixInputField();
|
|
117
|
+
return;
|
|
118
|
+
default: this.isAPrintableCharacterPressed(e) && this.focusPrefixInputField();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
updateListWithSearchHits(e) {
|
|
122
|
+
this.listWithSearchHits = [...e], this.displaySearchResult = !0, this.setPopupActive(!0);
|
|
123
|
+
}
|
|
124
|
+
searchForOptions(e) {
|
|
125
|
+
let t = e.toLowerCase();
|
|
126
|
+
return this.options.filter((e) => e.label.toLowerCase().includes(t)).sort((e, n) => {
|
|
127
|
+
let r = e.label.toLowerCase().startsWith(t), i = n.label.toLowerCase().startsWith(t);
|
|
128
|
+
return r && !i ? -1 : !r && i ? 1 : 0;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
selectOption(e) {
|
|
132
|
+
if (this.disabled || this.isMaxNumberOfOptionsSelected()) return;
|
|
133
|
+
let t = [...this.options], n = t.findIndex((t) => t.value === e.value);
|
|
134
|
+
n !== -1 && (t[n].selected = !0, this.selectedOptions.push(e), this.options = t, this.inputValue = "", this.displaySearchResult = !1, this.setPopupActive(!1), this.focusPrefixInputField(), this.emitValueEvent(this.selectedOptions));
|
|
135
|
+
}
|
|
136
|
+
selectOptionKeyDown(e, t) {
|
|
137
|
+
t.key === "Enter" && this.selectOption(e);
|
|
138
|
+
}
|
|
139
|
+
unSelectOption(e) {
|
|
140
|
+
if (this.disabled) return;
|
|
141
|
+
let t = [...this.options], n = [...this.selectedOptions], r = t.findIndex((t) => t.value === e.value), i = n.findIndex((t) => t.value === e.value);
|
|
142
|
+
r !== -1 && (t[r].selected = !1), i !== -1 && n.splice(i, 1), this.selectedOptions = n, this.options = t, this.emitValueEvent(n);
|
|
143
|
+
}
|
|
144
|
+
unSelectOptionKeyDown(e, t) {
|
|
145
|
+
if (t.key === "Enter") {
|
|
146
|
+
this.unSelectOption(e);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
unSelectOptionKeyDownTag(e, t) {
|
|
151
|
+
if (!(t instanceof KeyboardEvent && t.key !== "Backspace") && (this.unSelectOption(e), this.selectedOptions.length === 0)) {
|
|
152
|
+
this.focusPrefixInputField();
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
setPopupActive(e) {
|
|
157
|
+
this.isPopupActive === e || this.disabled || (this.isPopupActive = e, this.shadowRoot?.querySelector(".open-icon")?.classList?.toggle("active"));
|
|
158
|
+
}
|
|
159
|
+
focusNextOption(e) {
|
|
160
|
+
let t = Array.from(this.shadowRoot?.querySelectorAll("nve-option") || []), n = t.findIndex((e) => e === this.shadowRoot?.activeElement), r = n;
|
|
161
|
+
e === "ArrowDown" ? n < t.length - 1 && (r = n + 1) : e === "ArrowUp" && n > 0 && (r = n - 1), t[r] && t[r].focus();
|
|
162
|
+
}
|
|
163
|
+
focusLastTag() {
|
|
164
|
+
let e = Array.from(this.shadowRoot?.querySelectorAll("sl-tag") || []), t = e[e.length - 1];
|
|
165
|
+
t && t.focus();
|
|
166
|
+
}
|
|
167
|
+
toggleOptionInListWithSearchHits(e, t) {
|
|
168
|
+
if (this.disabled || this.shouldDisplayOptionAsDisabled(e)) return;
|
|
169
|
+
let n = [...this.listWithSearchHits], r = n[t].selected;
|
|
170
|
+
n[t].selected = !n[t].selected, this.listWithSearchHits = n, r === !0 ? this.unSelectOption(e) : this.selectOption(e);
|
|
171
|
+
}
|
|
172
|
+
toggleOptionInListWithSearchHitsKeyDown(e, t, n) {
|
|
173
|
+
n instanceof KeyboardEvent && n.key !== "Enter" || this.toggleOptionInListWithSearchHits(e, t);
|
|
174
|
+
}
|
|
175
|
+
addHighlightingToSearchResult(t) {
|
|
176
|
+
return e` ${o(t.replace(new RegExp(this.inputValue, "i"), (e) => `<b>${e}</b>`))} `;
|
|
177
|
+
}
|
|
178
|
+
isMaxNumberOfOptionsSelected() {
|
|
179
|
+
return this.selectedOptions.length === this.max;
|
|
180
|
+
}
|
|
181
|
+
shouldDisplayOptionAsDisabled(e) {
|
|
182
|
+
return this.disabled ? !0 : this.isMaxNumberOfOptionsSelected() ? !e?.selected : !1;
|
|
183
|
+
}
|
|
184
|
+
isAPrintableCharacterPressed(e) {
|
|
185
|
+
return e.code.startsWith("Key");
|
|
186
|
+
}
|
|
187
|
+
focusPrefixInputField() {
|
|
188
|
+
this.prefixInputRef.value?.focus();
|
|
189
|
+
}
|
|
190
|
+
render() {
|
|
191
|
+
return e`
|
|
349
192
|
<nve-popup placement="bottom" sync="width" .active="${this.isPopupActive}" distance="8">
|
|
350
193
|
<nve-input
|
|
351
194
|
tabindex="0"
|
|
@@ -365,7 +208,7 @@ let s = class extends d {
|
|
|
365
208
|
?filled=${this.filled}
|
|
366
209
|
?required=${this.required}
|
|
367
210
|
>
|
|
368
|
-
${this.selectedOptions.map((
|
|
211
|
+
${this.selectedOptions.map((t) => e`
|
|
369
212
|
<sl-tag
|
|
370
213
|
size="${this.size}"
|
|
371
214
|
variant="neutral"
|
|
@@ -373,11 +216,11 @@ let s = class extends d {
|
|
|
373
216
|
slot="prefix"
|
|
374
217
|
saturation="default"
|
|
375
218
|
variant="neutral"
|
|
376
|
-
@sl-remove="${() => this.unSelectOption(
|
|
377
|
-
@keydown="${(
|
|
219
|
+
@sl-remove="${() => this.unSelectOption(t)}"
|
|
220
|
+
@keydown="${(e) => this.unSelectOptionKeyDownTag(t, e)}"
|
|
378
221
|
.removable=${!this.disabled}
|
|
379
222
|
>
|
|
380
|
-
${
|
|
223
|
+
${t.label}
|
|
381
224
|
</sl-tag>
|
|
382
225
|
`)}
|
|
383
226
|
|
|
@@ -390,10 +233,10 @@ let s = class extends d {
|
|
|
390
233
|
?filled=${this.filled}
|
|
391
234
|
?disabled=${this.disabled}
|
|
392
235
|
.value="${this.inputValue}"
|
|
393
|
-
${
|
|
236
|
+
${s(this.prefixInputRef)}
|
|
394
237
|
/>
|
|
395
238
|
|
|
396
|
-
${
|
|
239
|
+
${e`
|
|
397
240
|
<span class="open-icon-wrapper" slot="suffix">
|
|
398
241
|
<nve-icon
|
|
399
242
|
class="open-icon ${this.disabled && "disabled"}"
|
|
@@ -404,12 +247,12 @@ let s = class extends d {
|
|
|
404
247
|
></nve-icon>
|
|
405
248
|
</span>
|
|
406
249
|
`}
|
|
407
|
-
${this.error &&
|
|
250
|
+
${this.error && e`
|
|
408
251
|
<nve-icon slot="suffix" size="small" name="error" style="font-size: 1.5rem; color: #cc0000"> </nve-icon>
|
|
409
252
|
`}
|
|
410
253
|
</nve-input>
|
|
411
254
|
|
|
412
|
-
${this.error && this.errorMessage ?
|
|
255
|
+
${this.error && this.errorMessage ? e`<span slot="anchor" class="text--error">${this.errorMessage}</span>` : this.helpText && e`<span slot="anchor" class="text-help">${this.helpText}</span>`}
|
|
413
256
|
|
|
414
257
|
<div
|
|
415
258
|
id="listbox"
|
|
@@ -423,100 +266,39 @@ let s = class extends d {
|
|
|
423
266
|
?disabled=${this.disabled}
|
|
424
267
|
?filled=${this.filled}
|
|
425
268
|
>
|
|
426
|
-
${this.displaySearchResult === !0 ? this.listWithSearchHits.length > 0 ? this.listWithSearchHits.map(
|
|
427
|
-
(e, t) => h`
|
|
269
|
+
${this.displaySearchResult === !0 ? this.listWithSearchHits.length > 0 ? this.listWithSearchHits.map((t, n) => e`
|
|
428
270
|
<nve-option
|
|
429
271
|
tabindex="-1"
|
|
430
|
-
@keydown="${(
|
|
431
|
-
@click="${() => this.toggleOptionInListWithSearchHits(
|
|
432
|
-
value="${
|
|
433
|
-
?disabled=${this.shouldDisplayOptionAsDisabled(
|
|
434
|
-
.selected="${
|
|
272
|
+
@keydown="${(e) => this.toggleOptionInListWithSearchHitsKeyDown(t, n, e)}"
|
|
273
|
+
@click="${() => this.toggleOptionInListWithSearchHits(t, n)}"
|
|
274
|
+
value="${t.value}"
|
|
275
|
+
?disabled=${this.shouldDisplayOptionAsDisabled(t)}
|
|
276
|
+
.selected="${t.selected}"
|
|
435
277
|
>
|
|
436
|
-
${this.addHighlightingToSearchResult(
|
|
278
|
+
${this.addHighlightingToSearchResult(t.label)}
|
|
437
279
|
</nve-option>
|
|
438
|
-
`
|
|
439
|
-
|
|
440
|
-
${this.displaySearchResult === !1 ? this.options.map(
|
|
441
|
-
(e) => h`
|
|
280
|
+
`) : e` <nve-option disabled>Ingen resultater</nve-option> ` : ""}
|
|
281
|
+
${this.displaySearchResult === !1 ? this.options.map((t) => e`
|
|
442
282
|
<nve-option
|
|
443
283
|
tabindex="-1"
|
|
444
|
-
value="${
|
|
445
|
-
@keydown="${(
|
|
446
|
-
@click="${() =>
|
|
447
|
-
?disabled=${this.shouldDisplayOptionAsDisabled(
|
|
448
|
-
.selected="${
|
|
284
|
+
value="${t.value}"
|
|
285
|
+
@keydown="${(e) => t.selected ? this.unSelectOptionKeyDown(t, e) : this.selectOptionKeyDown(t, e)}"
|
|
286
|
+
@click="${() => t.selected ? this.unSelectOption(t) : this.selectOption(t)}"
|
|
287
|
+
?disabled=${this.shouldDisplayOptionAsDisabled(t)}
|
|
288
|
+
.selected="${t.selected}"
|
|
449
289
|
>
|
|
450
|
-
${
|
|
290
|
+
${t.label}
|
|
451
291
|
</nve-option>
|
|
452
|
-
`
|
|
453
|
-
) : ""}
|
|
292
|
+
`) : ""}
|
|
454
293
|
</div>
|
|
455
294
|
</nve-popup>
|
|
456
295
|
`;
|
|
457
|
-
|
|
458
|
-
};
|
|
459
|
-
s.styles = [u];
|
|
460
|
-
o([
|
|
461
|
-
r()
|
|
462
|
-
], s.prototype, "label", 2);
|
|
463
|
-
o([
|
|
464
|
-
r()
|
|
465
|
-
], s.prototype, "placeholder", 2);
|
|
466
|
-
o([
|
|
467
|
-
r()
|
|
468
|
-
], s.prototype, "helpText", 2);
|
|
469
|
-
o([
|
|
470
|
-
r()
|
|
471
|
-
], s.prototype, "requiredLabel", 2);
|
|
472
|
-
o([
|
|
473
|
-
r()
|
|
474
|
-
], s.prototype, "errorMessage", 2);
|
|
475
|
-
o([
|
|
476
|
-
r({ type: Array })
|
|
477
|
-
], s.prototype, "options", 2);
|
|
478
|
-
o([
|
|
479
|
-
r({ type: Number })
|
|
480
|
-
], s.prototype, "max", 2);
|
|
481
|
-
o([
|
|
482
|
-
r({ type: String })
|
|
483
|
-
], s.prototype, "min", 2);
|
|
484
|
-
o([
|
|
485
|
-
r({ type: Boolean })
|
|
486
|
-
], s.prototype, "disabled", 2);
|
|
487
|
-
o([
|
|
488
|
-
r({ type: Boolean })
|
|
489
|
-
], s.prototype, "filled", 2);
|
|
490
|
-
o([
|
|
491
|
-
r({ type: Boolean })
|
|
492
|
-
], s.prototype, "required", 2);
|
|
493
|
-
o([
|
|
494
|
-
r({ type: String, reflect: !0 })
|
|
495
|
-
], s.prototype, "size", 2);
|
|
496
|
-
o([
|
|
497
|
-
r({ type: String })
|
|
498
|
-
], s.prototype, "testId", 2);
|
|
499
|
-
o([
|
|
500
|
-
p()
|
|
501
|
-
], s.prototype, "listWithSearchHits", 2);
|
|
502
|
-
o([
|
|
503
|
-
p()
|
|
504
|
-
], s.prototype, "displaySearchResult", 2);
|
|
505
|
-
o([
|
|
506
|
-
p()
|
|
507
|
-
], s.prototype, "selectedOptions", 2);
|
|
508
|
-
o([
|
|
509
|
-
p()
|
|
510
|
-
], s.prototype, "inputValue", 2);
|
|
511
|
-
o([
|
|
512
|
-
p()
|
|
513
|
-
], s.prototype, "isPopupActive", 2);
|
|
514
|
-
o([
|
|
515
|
-
p()
|
|
516
|
-
], s.prototype, "error", 2);
|
|
517
|
-
s = o([
|
|
518
|
-
y("nve-combobox")
|
|
519
|
-
], s);
|
|
520
|
-
export {
|
|
521
|
-
s as default
|
|
296
|
+
}
|
|
522
297
|
};
|
|
298
|
+
a([r()], u.prototype, "label", void 0), a([r()], u.prototype, "placeholder", void 0), a([r()], u.prototype, "helpText", void 0), a([r()], u.prototype, "requiredLabel", void 0), a([r()], u.prototype, "errorMessage", void 0), a([r({ type: Array })], u.prototype, "options", void 0), a([r({ type: Number })], u.prototype, "max", void 0), a([r({ type: String })], u.prototype, "min", void 0), a([r({ type: Boolean })], u.prototype, "disabled", void 0), a([r({ type: Boolean })], u.prototype, "filled", void 0), a([r({ type: Boolean })], u.prototype, "required", void 0), a([r({
|
|
299
|
+
type: String,
|
|
300
|
+
reflect: !0
|
|
301
|
+
})], u.prototype, "size", void 0), a([r({ type: String })], u.prototype, "testId", void 0), a([n()], u.prototype, "listWithSearchHits", void 0), a([n()], u.prototype, "displaySearchResult", void 0), a([n()], u.prototype, "selectedOptions", void 0), a([n()], u.prototype, "inputValue", void 0), a([n()], u.prototype, "isPopupActive", void 0), a([n()], u.prototype, "error", void 0), u = a([i("nve-combobox")], u);
|
|
302
|
+
var d = u;
|
|
303
|
+
//#endregion
|
|
304
|
+
export { d as default };
|