@sebgroup/green-core 2.0.2 → 2.1.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.
@@ -40,6 +40,10 @@ export declare class GdsDropdown<ValueT = any> extends GdsFormControlElement<Val
40
40
  * The value of the dropdown will be an array of the selected values.
41
41
  */
42
42
  multiple: boolean;
43
+ /**
44
+ * Whether the dropdown should be clearable.
45
+ */
46
+ clearable: boolean;
43
47
  /**
44
48
  * Whether the dropdown should be rendered as a combobox.
45
49
  * When set to true, the dropdown will render an input field instead of a button.
@@ -5,7 +5,7 @@ import {
5
5
  __privateMethod,
6
6
  __privateSet
7
7
  } from "../../chunks/chunk.QU3DSPNU.js";
8
- var _optionElements, _GdsDropdown_instances, shouldShowFooter_fn, _renderCombobox, _renderTriggerButton, _calcMaxHeight, _dispatchUISateEvent, _handlePopoverStateChange, _handleSearchFieldInput, _handleSearchFieldKeyDown, _handleListboxKeyDown, _handleOptionFocusChange, handleSelectionChange_fn, _dispatchInputEvent, _dispatchChangeEvent, registerAutoCloseListener_fn, unregisterAutoCloseListener_fn, _blurCloseListener, _tabCloseListener;
8
+ var _optionElements, _GdsDropdown_instances, shouldShowFooter_fn, _renderCombobox, _renderTriggerButton, _calcMaxHeight, _dispatchUISateEvent, _handlePopoverStateChange, _handleClearButton, _handleSearchFieldInput, _handleSearchFieldKeyDown, _handleListboxKeyDown, _handleOptionFocusChange, handleSelectionChange_fn, _dispatchInputEvent, _dispatchChangeEvent, registerAutoCloseListener_fn, unregisterAutoCloseListener_fn, _blurCloseListener, _tabCloseListener;
9
9
  import { localized, msg, str } from "@lit/localize";
10
10
  import { property, query, queryAsync } from "lit/decorators.js";
11
11
  import { ifDefined } from "lit/directives/if-defined.js";
@@ -24,6 +24,7 @@ import { watch } from "../../utils/decorators/watch.js";
24
24
  import { GdsFormControlElement } from "../form/form-control.js";
25
25
  import { IconCheckmark } from "../icon/icons/checkmark.component.js";
26
26
  import { IconChevronBottom } from "../icon/icons/chevron-bottom.component.js";
27
+ import { IconCrossLarge } from "../icon/icons/cross-large.component.js";
27
28
  import { GdsPopover } from "../popover/popover.component.js";
28
29
  import DropdownStyles from "./dropdown.styles.js";
29
30
  export * from "../../primitives/listbox/option.component.js";
@@ -35,6 +36,7 @@ let GdsDropdown = class extends GdsFormControlElement {
35
36
  this.open = false;
36
37
  this.searchable = false;
37
38
  this.multiple = false;
39
+ this.clearable = false;
38
40
  this.combobox = false;
39
41
  this.compareWith = (a, b) => a === b;
40
42
  this.searchFilter = (q, o) => o.innerHTML.toLowerCase().includes(q.toLowerCase());
@@ -132,6 +134,11 @@ let GdsDropdown = class extends GdsFormControlElement {
132
134
  this.open = e.detail.open;
133
135
  }
134
136
  });
137
+ __privateAdd(this, _handleClearButton, (e) => {
138
+ e.preventDefault();
139
+ e.stopPropagation();
140
+ this.value = void 0;
141
+ });
135
142
  /**
136
143
  * Event handler for filtering the options in the dropdown.
137
144
  *
@@ -243,10 +250,10 @@ let GdsDropdown = class extends GdsFormControlElement {
243
250
  get displayValue() {
244
251
  let displayValue;
245
252
  if (Array.isArray(this.value)) {
246
- this.value.length > 2 ? displayValue = msg(str`${this.value.length} selected`) : displayValue = this.value.reduce(
253
+ displayValue = this.value.slice(0, 5).reduce(
247
254
  (acc, cur) => acc + this.options.find((v) => v.value === cur)?.innerText + ", ",
248
255
  ""
249
- ).slice(0, -2);
256
+ ).slice(0, -2).replace(/(.{25})(.*)/, "$1...");
250
257
  } else {
251
258
  displayValue = this.options.find((v) => v.selected)?.innerText;
252
259
  }
@@ -319,7 +326,35 @@ let GdsDropdown = class extends GdsFormControlElement {
319
326
  id="field"
320
327
  >
321
328
  <slot name="lead" slot="lead"></slot>
322
- ${this.combobox && !this.multiple ? __privateGet(this, _renderCombobox).call(this) : __privateGet(this, _renderTriggerButton).call(this)}
329
+ ${when(
330
+ this.value && this.multiple && this.value.length > 0,
331
+ () => html`<gds-badge
332
+ slot="lead"
333
+ aria-label=${msg(
334
+ str`${this.value.length} options selected`
335
+ )}
336
+ >
337
+ ${this.value.length}</gds-badge
338
+ >`
339
+ )}
340
+ ${when(
341
+ this.clearable && this.value && !this.disabled,
342
+ () => html`<gds-button
343
+ id="clear-btn"
344
+ rank="tertiary"
345
+ size=${this.size === "small" ? "xs" : "small"}
346
+ label="${msg("Clear selection")}"
347
+ @click=${__privateGet(this, _handleClearButton)}
348
+ slot="trail"
349
+ >
350
+ <gds-icon-cross-large></gds-icon-cross-large>
351
+ </gds-button>`
352
+ )}
353
+ ${when(this.combobox && !this.multiple, () => __privateGet(this, _renderCombobox).call(this))}
354
+ ${when(
355
+ !this.combobox || this.multiple,
356
+ () => __privateGet(this, _renderTriggerButton).call(this)
357
+ )}
323
358
  <gds-icon-chevron-bottom slot="trail"></gds-icon-chevron-bottom>
324
359
  </gds-field-base>
325
360
 
@@ -420,6 +455,7 @@ _renderTriggerButton = new WeakMap();
420
455
  _calcMaxHeight = new WeakMap();
421
456
  _dispatchUISateEvent = new WeakMap();
422
457
  _handlePopoverStateChange = new WeakMap();
458
+ _handleClearButton = new WeakMap();
423
459
  _handleSearchFieldInput = new WeakMap();
424
460
  _handleSearchFieldKeyDown = new WeakMap();
425
461
  _handleListboxKeyDown = new WeakMap();
@@ -470,6 +506,9 @@ __decorateClass([
470
506
  __decorateClass([
471
507
  property({ type: Boolean, reflect: true })
472
508
  ], GdsDropdown.prototype, "multiple", 2);
509
+ __decorateClass([
510
+ property({ type: Boolean, reflect: true })
511
+ ], GdsDropdown.prototype, "clearable", 2);
473
512
  __decorateClass([
474
513
  property({ type: Boolean, reflect: true })
475
514
  ], GdsDropdown.prototype, "combobox", 2);
@@ -536,7 +575,8 @@ GdsDropdown = __decorateClass([
536
575
  GdsListbox,
537
576
  GdsPopover,
538
577
  IconCheckmark,
539
- IconChevronBottom
578
+ IconChevronBottom,
579
+ IconCrossLarge
540
580
  ]
541
581
  }),
542
582
  localized()
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Juli`,
5
5
  "s15a852e9f9a50fa5": `Juni`,
6
6
  "s17e3edbe032f79ec": `\xC5bn kalender-popup`,
7
+ "s1910f3ebccaec414": str`${0} valgte`,
7
8
  "s1a2dda8f763a68bd": `Januar`,
8
9
  "s1e118319b5202c41": `Man`,
9
10
  "s1e187019b5262aa6": `Maj`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Annuller`,
12
13
  "s307db9af9905317d": `Formularfejloversigt`,
13
14
  "s39938ecdae568740": `September`,
15
+ "s39943b8a5733f5d2": `Automatisk afvisningstimer`,
14
16
  "s3b8a6245b12fa2ad": `Br\xF8dkrummer`,
15
17
  "s407a88a592a0987c": `August`,
16
18
  "s46d6587089bd0356": `N\xE6ste m\xE5ned`,
17
19
  "s49730f3d5751a433": `Indl\xE6ser...`,
18
20
  "s5052d10b539eabf0": `Marts`,
19
- "s58bfb494feb8eb02": str`${0} valgt`,
20
21
  "s5d929ff1619ac0c9": `S\xF8g`,
21
22
  "s5e8250fb85d64c23": `Luk`,
22
23
  "s5febcd9b311c16fe": `Rul til h\xF8jre`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `\xC5bn kontekstmenu`,
30
31
  "s83c436ed1bc16dfb": `Vis flere oplysninger`,
31
32
  "s8ade4e9d5e804d6a": `F\xF8rste tilg\xE6ngelige dato`,
33
+ "s8f18916860db5d80": `Ryd valg`,
34
+ "s979f38023babd06d": `Afvis advarsel`,
32
35
  "s9836b719fa8ef857": `L\xF8r`,
33
36
  "s987ac119fac8d621": `S\xF8n`,
34
37
  "s9af3c72c33088826": str`Der er ${0} fejl, der skal rettes, før du kan fortsætte:`,
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Juli`,
5
5
  "s15a852e9f9a50fa5": `Juni`,
6
6
  "s17e3edbe032f79ec": `Kalender-Modal \xF6ffnen`,
7
+ "s1910f3ebccaec414": str`${0} ausgewählt`,
7
8
  "s1a2dda8f763a68bd": `Januar`,
8
9
  "s1e118319b5202c41": `Mo`,
9
10
  "s1e187019b5262aa6": `Mai`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Abbrechen`,
12
13
  "s307db9af9905317d": `Formularfehler\xFCbersicht`,
13
14
  "s39938ecdae568740": `September`,
15
+ "s39943b8a5733f5d2": `Automatischer Schlie\xDF-Timer`,
14
16
  "s3b8a6245b12fa2ad": `Brotkr\xFCmelnavigation`,
15
17
  "s407a88a592a0987c": `August`,
16
18
  "s46d6587089bd0356": `N\xE4chster Monat`,
17
19
  "s49730f3d5751a433": `Laden...`,
18
20
  "s5052d10b539eabf0": `M\xE4rz`,
19
- "s58bfb494feb8eb02": str`${0} ausgewählt`,
20
21
  "s5d929ff1619ac0c9": `Suche`,
21
22
  "s5e8250fb85d64c23": `Schlie\xDFen`,
22
23
  "s5febcd9b311c16fe": `Nach rechts scrollen`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `Kontextmen\xFC \xF6ffnen`,
30
31
  "s83c436ed1bc16dfb": `Weitere Informationen anzeigen`,
31
32
  "s8ade4e9d5e804d6a": `Erstes verf\xFCgbares Datum`,
33
+ "s8f18916860db5d80": `Auswahl l\xF6schen`,
34
+ "s979f38023babd06d": `Benachrichtigung schlie\xDFen`,
32
35
  "s9836b719fa8ef857": `Sa`,
33
36
  "s987ac119fac8d621": `So`,
34
37
  "s9af3c72c33088826": str`Es gibt ${0} Fehler zu beheben, bevor du fortfahren kannst:`,
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Hein\xE4`,
5
5
  "s15a852e9f9a50fa5": `Kes\xE4`,
6
6
  "s17e3edbe032f79ec": `Avaa kalenteri-modal`,
7
+ "s1910f3ebccaec414": str`${0} valittu`,
7
8
  "s1a2dda8f763a68bd": `Tammikuu`,
8
9
  "s1e118319b5202c41": `Ma`,
9
10
  "s1e187019b5262aa6": `Touko`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Peruuta`,
12
13
  "s307db9af9905317d": `Lomakkeen virheiden yhteenveto`,
13
14
  "s39938ecdae568740": `Syys`,
15
+ "s39943b8a5733f5d2": `Automaattinen sulkeutumisaika`,
14
16
  "s3b8a6245b12fa2ad": `Murupolku`,
15
17
  "s407a88a592a0987c": `Elokuu`,
16
18
  "s46d6587089bd0356": `Seuraava kuukausi`,
17
19
  "s49730f3d5751a433": `Ladataan...`,
18
20
  "s5052d10b539eabf0": `Maalis`,
19
- "s58bfb494feb8eb02": str`${0} valittua`,
20
21
  "s5d929ff1619ac0c9": `Hae`,
21
22
  "s5e8250fb85d64c23": `Sulje`,
22
23
  "s5febcd9b311c16fe": `Vierit\xE4 oikealle`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `Avaa pikavalikko`,
30
31
  "s83c436ed1bc16dfb": `N\xE4yt\xE4 lis\xE4\xE4 tietoja`,
31
32
  "s8ade4e9d5e804d6a": `Ensimm\xE4inen saatavilla oleva p\xE4iv\xE4m\xE4\xE4r\xE4`,
33
+ "s8f18916860db5d80": `Tyhjenn\xE4 valinta`,
34
+ "s979f38023babd06d": `Ohita h\xE4lytys`,
32
35
  "s9836b719fa8ef857": `La`,
33
36
  "s987ac119fac8d621": `Su`,
34
37
  "s9af3c72c33088826": str`On ${0} virhettä, jotka täytyy korjata ennen kuin voit jatkaa:`,
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Juillet`,
5
5
  "s15a852e9f9a50fa5": `Juin`,
6
6
  "s17e3edbe032f79ec": `Ouvrir le calendrier modal`,
7
+ "s1910f3ebccaec414": str`${0} options sélectionnés`,
7
8
  "s1a2dda8f763a68bd": `Janvier`,
8
9
  "s1e118319b5202c41": `Lun`,
9
10
  "s1e187019b5262aa6": `Mai`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Annuler`,
12
13
  "s307db9af9905317d": `R\xE9sum\xE9 des erreurs du formulaire`,
13
14
  "s39938ecdae568740": `Septembre`,
15
+ "s39943b8a5733f5d2": `Minuterie de fermeture automatique`,
14
16
  "s3b8a6245b12fa2ad": `Fil d'Ariane`,
15
17
  "s407a88a592a0987c": `Ao\xFBt`,
16
18
  "s46d6587089bd0356": `Mois suivant`,
17
19
  "s49730f3d5751a433": `Chargement...`,
18
20
  "s5052d10b539eabf0": `Mars`,
19
- "s58bfb494feb8eb02": str`${0} sélectionné(s)`,
20
21
  "s5d929ff1619ac0c9": `Rechercher`,
21
22
  "s5e8250fb85d64c23": `Fermer`,
22
23
  "s5febcd9b311c16fe": `Faire d\xE9filer \xE0 droite`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `Ouvrir le menu contextuel`,
30
31
  "s83c436ed1bc16dfb": `Afficher plus d'informations`,
31
32
  "s8ade4e9d5e804d6a": `Premi\xE8re date disponible`,
33
+ "s8f18916860db5d80": `Effacer la s\xE9lection`,
34
+ "s979f38023babd06d": `Fermer l'alerte`,
32
35
  "s9836b719fa8ef857": `Sam`,
33
36
  "s987ac119fac8d621": `Dim`,
34
37
  "s9af3c72c33088826": str`Il y a ${0} erreur(s) à corriger avant de pouvoir continuer :`,
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Luglio`,
5
5
  "s15a852e9f9a50fa5": `Giugno`,
6
6
  "s17e3edbe032f79ec": `Apri la finestra del calendario`,
7
+ "s1910f3ebccaec414": str`${0} opzioni selezionate`,
7
8
  "s1a2dda8f763a68bd": `Gennaio`,
8
9
  "s1e118319b5202c41": `Lun`,
9
10
  "s1e187019b5262aa6": `Maggio`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Annulla`,
12
13
  "s307db9af9905317d": `Riepilogo degli errori del modulo`,
13
14
  "s39938ecdae568740": `Settembre`,
15
+ "s39943b8a5733f5d2": `Timer di chiusura automatica`,
14
16
  "s3b8a6245b12fa2ad": `Percorso di navigazione`,
15
17
  "s407a88a592a0987c": `Agosto`,
16
18
  "s46d6587089bd0356": `Mese successivo`,
17
19
  "s49730f3d5751a433": `Caricamento...`,
18
20
  "s5052d10b539eabf0": `Marzo`,
19
- "s58bfb494feb8eb02": str`${0} selezionato`,
20
21
  "s5d929ff1619ac0c9": `Cerca`,
21
22
  "s5e8250fb85d64c23": `Chiudi`,
22
23
  "s5febcd9b311c16fe": `Scorri a destra`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `Apri il menu contestuale`,
30
31
  "s83c436ed1bc16dfb": `Mostra pi\xF9 informazioni`,
31
32
  "s8ade4e9d5e804d6a": `Prima data disponibile`,
33
+ "s8f18916860db5d80": `Rimuovi selezione`,
34
+ "s979f38023babd06d": `Chiudi avviso`,
32
35
  "s9836b719fa8ef857": `Sab`,
33
36
  "s987ac119fac8d621": `Dom`,
34
37
  "s9af3c72c33088826": str`Ci sono ${0} errori da correggere prima di poter continuare:`,
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Juli`,
5
5
  "s15a852e9f9a50fa5": `Juni`,
6
6
  "s17e3edbe032f79ec": `Open kalenderpop-up`,
7
+ "s1910f3ebccaec414": str`${0} geselecteerd`,
7
8
  "s1a2dda8f763a68bd": `Januari`,
8
9
  "s1e118319b5202c41": `Ma`,
9
10
  "s1e187019b5262aa6": `Mei`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Annuleren`,
12
13
  "s307db9af9905317d": `Formulierfoutoverzicht`,
13
14
  "s39938ecdae568740": `September`,
15
+ "s39943b8a5733f5d2": `Automatisch sluiten timer`,
14
16
  "s3b8a6245b12fa2ad": `Kruimelpad`,
15
17
  "s407a88a592a0987c": `Augustus`,
16
18
  "s46d6587089bd0356": `Volgende maand`,
17
19
  "s49730f3d5751a433": `Laden...`,
18
20
  "s5052d10b539eabf0": `Maart`,
19
- "s58bfb494feb8eb02": str`${0} geselecteerd`,
20
21
  "s5d929ff1619ac0c9": `Zoeken`,
21
22
  "s5e8250fb85d64c23": `Sluiten`,
22
23
  "s5febcd9b311c16fe": `Scroll rechts`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `Open contextmenu`,
30
31
  "s83c436ed1bc16dfb": `Toon meer informatie`,
31
32
  "s8ade4e9d5e804d6a": `Eerste beschikbare datum`,
33
+ "s8f18916860db5d80": `Wis selectie`,
34
+ "s979f38023babd06d": `Waarschuwing sluiten`,
32
35
  "s9836b719fa8ef857": `Za`,
33
36
  "s987ac119fac8d621": `Zo`,
34
37
  "s9af3c72c33088826": str`Er zijn ${0} fouten die gecorrigeerd moeten worden voordat je verder kunt gaan:`,
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Juli`,
5
5
  "s15a852e9f9a50fa5": `Juni`,
6
6
  "s17e3edbe032f79ec": `\xC5pne kalendermodal`,
7
+ "s1910f3ebccaec414": str`${0} valgte`,
7
8
  "s1a2dda8f763a68bd": `Januar`,
8
9
  "s1e118319b5202c41": `Man`,
9
10
  "s1e187019b5262aa6": `Mai`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Avbryt`,
12
13
  "s307db9af9905317d": `Skjema feil oppsummering`,
13
14
  "s39938ecdae568740": `September`,
15
+ "s39943b8a5733f5d2": `Automatisk lukk-timer`,
14
16
  "s3b8a6245b12fa2ad": `Br\xF8dsmuler`,
15
17
  "s407a88a592a0987c": `August`,
16
18
  "s46d6587089bd0356": `Neste m\xE5ned`,
17
19
  "s49730f3d5751a433": `Laster...`,
18
20
  "s5052d10b539eabf0": `Mars`,
19
- "s58bfb494feb8eb02": str`${0} valgt`,
20
21
  "s5d929ff1619ac0c9": `S\xF8k`,
21
22
  "s5e8250fb85d64c23": `Lukk`,
22
23
  "s5febcd9b311c16fe": `Rull til h\xF8yre`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `\xC5pne kontekstmeny`,
30
31
  "s83c436ed1bc16dfb": `Vis mer informasjon`,
31
32
  "s8ade4e9d5e804d6a": `F\xF8rste tilgjengelige dato`,
33
+ "s8f18916860db5d80": `Ryd valg`,
34
+ "s979f38023babd06d": `Lukk varsel`,
32
35
  "s9836b719fa8ef857": `L\xF8r`,
33
36
  "s987ac119fac8d621": `S\xF8n`,
34
37
  "s9af3c72c33088826": str`Det er ${0} feil som må rettes før du kan fortsette:`,
@@ -2,6 +2,7 @@ export declare const templates: {
2
2
  s15a16ae9f99f19bf: string;
3
3
  s15a852e9f9a50fa5: string;
4
4
  s17e3edbe032f79ec: string;
5
+ s1910f3ebccaec414: import("@lit/localize").StrResult;
5
6
  s1a2dda8f763a68bd: string;
6
7
  s1e118319b5202c41: string;
7
8
  s1e187019b5262aa6: string;
@@ -9,12 +10,12 @@ export declare const templates: {
9
10
  s2ceb11be2290bb1b: string;
10
11
  s307db9af9905317d: string;
11
12
  s39938ecdae568740: string;
13
+ s39943b8a5733f5d2: string;
12
14
  s3b8a6245b12fa2ad: string;
13
15
  s407a88a592a0987c: string;
14
16
  s46d6587089bd0356: string;
15
17
  s49730f3d5751a433: string;
16
18
  s5052d10b539eabf0: string;
17
- s58bfb494feb8eb02: import("@lit/localize").StrResult;
18
19
  s5d929ff1619ac0c9: string;
19
20
  s5e8250fb85d64c23: string;
20
21
  s5febcd9b311c16fe: string;
@@ -27,6 +28,8 @@ export declare const templates: {
27
28
  s7fd3469f78111589: string;
28
29
  s83c436ed1bc16dfb: string;
29
30
  s8ade4e9d5e804d6a: string;
31
+ s8f18916860db5d80: string;
32
+ s979f38023babd06d: string;
30
33
  s9836b719fa8ef857: string;
31
34
  s987ac119fac8d621: string;
32
35
  s9af3c72c33088826: import("@lit/localize").StrResult;
@@ -4,6 +4,7 @@ const templates = {
4
4
  "s15a16ae9f99f19bf": `Juli`,
5
5
  "s15a852e9f9a50fa5": `Juni`,
6
6
  "s17e3edbe032f79ec": `\xD6ppna kalender`,
7
+ "s1910f3ebccaec414": str`${0} valda alternativ`,
7
8
  "s1a2dda8f763a68bd": `Januari`,
8
9
  "s1e118319b5202c41": `M\xE5n`,
9
10
  "s1e187019b5262aa6": `Maj`,
@@ -11,12 +12,12 @@ const templates = {
11
12
  "s2ceb11be2290bb1b": `Avbryt`,
12
13
  "s307db9af9905317d": `Sammanfattning av formul\xE4rfel`,
13
14
  "s39938ecdae568740": `September`,
15
+ "s39943b8a5733f5d2": `Automatisk st\xE4ngningstimer`,
14
16
  "s3b8a6245b12fa2ad": `Br\xF6dsmulor`,
15
17
  "s407a88a592a0987c": `Augusti`,
16
18
  "s46d6587089bd0356": `N\xE4sta m\xE5nad`,
17
19
  "s49730f3d5751a433": `Laddar...`,
18
20
  "s5052d10b539eabf0": `Mars`,
19
- "s58bfb494feb8eb02": str`${0} valda`,
20
21
  "s5d929ff1619ac0c9": `S\xF6k`,
21
22
  "s5e8250fb85d64c23": `St\xE4ng`,
22
23
  "s5febcd9b311c16fe": `Scrolla h\xF6ger`,
@@ -29,6 +30,8 @@ const templates = {
29
30
  "s7fd3469f78111589": `\xD6ppna meny`,
30
31
  "s83c436ed1bc16dfb": `Visa mer information`,
31
32
  "s8ade4e9d5e804d6a": `F\xF6rsta tillg\xE4ngliga datum`,
33
+ "s8f18916860db5d80": `Rensa val`,
34
+ "s979f38023babd06d": `St\xE4ng varning`,
32
35
  "s9836b719fa8ef857": `L\xF6r`,
33
36
  "s987ac119fac8d621": `S\xF6n`,
34
37
  "s9af3c72c33088826": str`Det finns ${0} fel att åtgärda innan du kan fortsätta:`,
@@ -6,6 +6,7 @@ export declare const GdsDropdown: (props: React.ComponentProps<ReturnType<typeof
6
6
  open?: boolean | undefined;
7
7
  searchable?: boolean | undefined;
8
8
  multiple?: boolean | undefined;
9
+ clearable?: boolean | undefined;
9
10
  combobox?: boolean | undefined;
10
11
  compareWith?: ((a: any, b: any) => boolean) | undefined;
11
12
  searchFilter?: ((q: string, o: import("../../../primitives/listbox/option.component").GdsOption) => boolean) | undefined;
@@ -1,5 +1,5 @@
1
- export * from './badge/index.js';
2
1
  export * from './alert/index.js';
2
+ export * from './badge/index.js';
3
3
  export * from './blur/index.js';
4
4
  export * from './breadcrumbs/index.js';
5
5
  export * from './button/index.js';
@@ -12,9 +12,9 @@ export * from './datepicker/index.js';
12
12
  export * from './details/index.js';
13
13
  export * from './dialog/index.js';
14
14
  export * from './div/index.js';
15
- export * from './divider/index.js';
16
15
  export * from './dropdown/index.js';
17
16
  export * from './fab/index.js';
17
+ export * from './divider/index.js';
18
18
  export * from './filter-chips/index.js';
19
19
  export * from './flex/index.js';
20
20
  export * from './form-summary/index.js';
@@ -49,6 +49,11 @@ export * from './filter-chip/index.js';
49
49
  export * from './formatted-account/index.js';
50
50
  export * from './formatted-date/index.js';
51
51
  export * from './formatted-number/index.js';
52
+ export * from './radio-group/index.js';
53
+ export * from './segment/index.js';
54
+ export * from './sensitive-account/index.js';
55
+ export * from './sensitive-date/index.js';
56
+ export * from './sensitive-number/index.js';
52
57
  export * from './icons/icon-ai/index.js';
53
58
  export * from './icons/icon-airplane-up/index.js';
54
59
  export * from './icons/icon-archive/index.js';
@@ -341,8 +346,3 @@ export * from './icons/icon-youtube/index.js';
341
346
  export * from './icons/icon-zap/index.js';
342
347
  export * from './icons/icon-zoom-in/index.js';
343
348
  export * from './icons/icon-zoom-out/index.js';
344
- export * from './radio-group/index.js';
345
- export * from './segment/index.js';
346
- export * from './sensitive-account/index.js';
347
- export * from './sensitive-date/index.js';
348
- export * from './sensitive-number/index.js';
@@ -1,5 +1,5 @@
1
- export * from "./badge/index.js";
2
1
  export * from "./alert/index.js";
2
+ export * from "./badge/index.js";
3
3
  export * from "./blur/index.js";
4
4
  export * from "./breadcrumbs/index.js";
5
5
  export * from "./button/index.js";
@@ -12,9 +12,9 @@ export * from "./datepicker/index.js";
12
12
  export * from "./details/index.js";
13
13
  export * from "./dialog/index.js";
14
14
  export * from "./div/index.js";
15
- export * from "./divider/index.js";
16
15
  export * from "./dropdown/index.js";
17
16
  export * from "./fab/index.js";
17
+ export * from "./divider/index.js";
18
18
  export * from "./filter-chips/index.js";
19
19
  export * from "./flex/index.js";
20
20
  export * from "./form-summary/index.js";
@@ -49,6 +49,11 @@ export * from "./filter-chip/index.js";
49
49
  export * from "./formatted-account/index.js";
50
50
  export * from "./formatted-date/index.js";
51
51
  export * from "./formatted-number/index.js";
52
+ export * from "./radio-group/index.js";
53
+ export * from "./segment/index.js";
54
+ export * from "./sensitive-account/index.js";
55
+ export * from "./sensitive-date/index.js";
56
+ export * from "./sensitive-number/index.js";
52
57
  export * from "./icons/icon-ai/index.js";
53
58
  export * from "./icons/icon-airplane-up/index.js";
54
59
  export * from "./icons/icon-archive/index.js";
@@ -341,8 +346,3 @@ export * from "./icons/icon-youtube/index.js";
341
346
  export * from "./icons/icon-zap/index.js";
342
347
  export * from "./icons/icon-zoom-in/index.js";
343
348
  export * from "./icons/icon-zoom-out/index.js";
344
- export * from "./radio-group/index.js";
345
- export * from "./segment/index.js";
346
- export * from "./sensitive-account/index.js";
347
- export * from "./sensitive-date/index.js";
348
- export * from "./sensitive-number/index.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sebgroup/green-core",
3
3
  "description": "A carefully crafted set of Web Components, laying the foundation of the Green Design System.",
4
- "version": "2.0.2",
4
+ "version": "2.1.0",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  import "../../chunks/chunk.QU3DSPNU.js";
2
2
  import { html as litHtml } from "lit";
3
- const VER_SUFFIX = "-bc423d";
3
+ const VER_SUFFIX = "-1683a7";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])