@schukai/monster 3.98.1 → 3.98.3

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.
@@ -28,7 +28,7 @@ import { isFunction } from "../../types/is.mjs";
28
28
  import { FieldSetStyleSheet } from "./stylesheet/field-set.mjs";
29
29
  import "../layout/collapse.mjs";
30
30
  import "./toggle-switch.mjs";
31
- import {getLocaleOfDocument} from "../../dom/locale.mjs";
31
+ import { getLocaleOfDocument } from "../../dom/locale.mjs";
32
32
 
33
33
  export { FieldSet };
34
34
 
@@ -121,7 +121,7 @@ class FieldSet extends CustomControl {
121
121
  templates: {
122
122
  main: getTemplate(),
123
123
  },
124
- labels:getTranslations(),
124
+ labels: getTranslations(),
125
125
  classes: {},
126
126
  disabled: false,
127
127
  features: {
@@ -249,74 +249,73 @@ class FieldSet extends CustomControl {
249
249
  function getTranslations() {
250
250
  const locale = getLocaleOfDocument();
251
251
  switch (locale.language) {
252
- case 'de':
252
+ case "de":
253
253
  return {
254
254
  toggleSwitchOn: "✔",
255
255
  toggleSwitchOff: "✖",
256
256
  toggleSwitchLabel: "Erweitern",
257
- title: ""
257
+ title: "",
258
258
  };
259
- case 'fr':
259
+ case "fr":
260
260
  return {
261
261
  toggleSwitchOn: "✔",
262
262
  toggleSwitchOff: "✖",
263
263
  toggleSwitchLabel: "Développer",
264
- title: ""
264
+ title: "",
265
265
  };
266
- case 'sp':
266
+ case "sp":
267
267
  return {
268
268
  toggleSwitchOn: "✔",
269
269
  toggleSwitchOff: "✖",
270
270
  toggleSwitchLabel: "Expandir",
271
- title: ""
271
+ title: "",
272
272
  };
273
- case 'it':
273
+ case "it":
274
274
  return {
275
275
  toggleSwitchOn: "✔",
276
276
  toggleSwitchOff: "✖",
277
277
  toggleSwitchLabel: "Espandi",
278
- title: ""
278
+ title: "",
279
279
  };
280
- case 'pl':
280
+ case "pl":
281
281
  return {
282
282
  toggleSwitchOn: "✔",
283
283
  toggleSwitchOff: "✖",
284
284
  toggleSwitchLabel: "Rozwiń",
285
- title: ""
285
+ title: "",
286
286
  };
287
- case 'no':
287
+ case "no":
288
288
  return {
289
289
  toggleSwitchOn: "✔",
290
290
  toggleSwitchOff: "✖",
291
291
  toggleSwitchLabel: "Utvid",
292
- title: ""
292
+ title: "",
293
293
  };
294
- case 'dk':
294
+ case "dk":
295
295
  return {
296
296
  toggleSwitchOn: "✔",
297
297
  toggleSwitchOff: "✖",
298
298
  toggleSwitchLabel: "Udvid",
299
- title: ""
299
+ title: "",
300
300
  };
301
- case 'sw':
301
+ case "sw":
302
302
  return {
303
303
  toggleSwitchOn: "✔",
304
304
  toggleSwitchOff: "✖",
305
305
  toggleSwitchLabel: "Expandera",
306
- title: ""
306
+ title: "",
307
307
  };
308
308
  default:
309
- case 'en':
309
+ case "en":
310
310
  return {
311
311
  toggleSwitchOn: "✔",
312
312
  toggleSwitchOff: "✖",
313
313
  toggleSwitchLabel: "Expand",
314
- title: ""
314
+ title: "",
315
315
  };
316
316
  }
317
317
  }
318
318
 
319
-
320
319
  /**
321
320
  * @private
322
321
  */
@@ -61,7 +61,7 @@ import {
61
61
  getDocumentTranslations,
62
62
  Translations,
63
63
  } from "../../i18n/translations.mjs";
64
- import {getLocaleOfDocument} from "../../dom/locale.mjs";
64
+ import { getLocaleOfDocument } from "../../dom/locale.mjs";
65
65
 
66
66
  export {
67
67
  Select,
@@ -759,7 +759,7 @@ class Select extends CustomControl {
759
759
  function getTranslations() {
760
760
  const locale = getLocaleOfDocument();
761
761
  switch (locale.language) {
762
- case 'de':
762
+ case "de":
763
763
  return {
764
764
  "cannot-be-loaded": "Kann nicht geladen werden",
765
765
  "no-options-available": "Keine Optionen verfügbar.",
@@ -768,12 +768,14 @@ function getTranslations() {
768
768
  "summary-text": {
769
769
  zero: "Keine Einträge ausgewählt",
770
770
  one: '<span class="monster-badge-primary-pill">1</span> Eintrag ausgewählt',
771
- other: '<span class="monster-badge-primary-pill">${count}</span> Einträge ausgewählt',
771
+ other:
772
+ '<span class="monster-badge-primary-pill">${count}</span> Einträge ausgewählt',
772
773
  },
773
774
  "no-options": "Leider gibt es keine Optionen in der Liste.",
774
- "no-options-found": "Keine Optionen in der Liste verfügbar. Bitte ändern Sie den Filter."
775
+ "no-options-found":
776
+ "Keine Optionen in der Liste verfügbar. Bitte ändern Sie den Filter.",
775
777
  };
776
- case 'fr':
778
+ case "fr":
777
779
  return {
778
780
  "cannot-be-loaded": "Impossible de charger",
779
781
  "no-options-available": "Aucune option disponible.",
@@ -782,13 +784,16 @@ function getTranslations() {
782
784
  "summary-text": {
783
785
  zero: "Aucune entrée sélectionnée",
784
786
  one: '<span class="monster-badge-primary-pill">1</span> entrée sélectionnée',
785
- other: '<span class="monster-badge-primary-pill">${count}</span> entrées sélectionnées',
787
+ other:
788
+ '<span class="monster-badge-primary-pill">${count}</span> entrées sélectionnées',
786
789
  },
787
- "no-options": "Malheureusement, il n'y a pas d'options disponibles dans la liste.",
788
- "no-options-found": "Aucune option disponible dans la liste. Veuillez modifier le filtre."
790
+ "no-options":
791
+ "Malheureusement, il n'y a pas d'options disponibles dans la liste.",
792
+ "no-options-found":
793
+ "Aucune option disponible dans la liste. Veuillez modifier le filtre.",
789
794
  };
790
795
 
791
- case 'sp':
796
+ case "sp":
792
797
  return {
793
798
  "cannot-be-loaded": "No se puede cargar",
794
799
  "no-options-available": "No hay opciones disponibles.",
@@ -797,12 +802,15 @@ function getTranslations() {
797
802
  "summary-text": {
798
803
  zero: "No se seleccionaron entradas",
799
804
  one: '<span class="monster-badge-primary-pill">1</span> entrada seleccionada',
800
- other: '<span class="monster-badge-primary-pill">${count}</span> entradas seleccionadas',
805
+ other:
806
+ '<span class="monster-badge-primary-pill">${count}</span> entradas seleccionadas',
801
807
  },
802
- "no-options": "Desafortunadamente, no hay opciones disponibles en la lista.",
803
- "no-options-found": "No hay opciones disponibles en la lista. Considere modificar el filtro."
808
+ "no-options":
809
+ "Desafortunadamente, no hay opciones disponibles en la lista.",
810
+ "no-options-found":
811
+ "No hay opciones disponibles en la lista. Considere modificar el filtro.",
804
812
  };
805
- case 'it':
813
+ case "it":
806
814
  return {
807
815
  "cannot-be-loaded": "Non può essere caricato",
808
816
  "no-options-available": "Nessuna opzione disponibile.",
@@ -811,12 +819,14 @@ function getTranslations() {
811
819
  "summary-text": {
812
820
  zero: "Nessuna voce selezionata",
813
821
  one: '<span class="monster-badge-primary-pill">1</span> voce selezionata',
814
- other: '<span class="monster-badge-primary-pill">${count}</span> voci selezionate',
822
+ other:
823
+ '<span class="monster-badge-primary-pill">${count}</span> voci selezionate',
815
824
  },
816
825
  "no-options": "Purtroppo, non ci sono opzioni disponibili nella lista.",
817
- "no-options-found": "Nessuna opzione disponibile nella lista. Si prega di modificare il filtro."
826
+ "no-options-found":
827
+ "Nessuna opzione disponibile nella lista. Si prega di modificare il filtro.",
818
828
  };
819
- case 'pl':
829
+ case "pl":
820
830
  return {
821
831
  "cannot-be-loaded": "Nie można załadować",
822
832
  "no-options-available": "Brak dostępnych opcji.",
@@ -825,12 +835,14 @@ function getTranslations() {
825
835
  "summary-text": {
826
836
  zero: "Nie wybrano żadnych wpisów",
827
837
  one: '<span class="monster-badge-primary-pill">1</span> wpis został wybrany',
828
- other: '<span class="monster-badge-primary-pill">${count}</span> wpisy zostały wybrane',
838
+ other:
839
+ '<span class="monster-badge-primary-pill">${count}</span> wpisy zostały wybrane',
829
840
  },
830
841
  "no-options": "Niestety, nie ma dostępnych opcji na liście.",
831
- "no-options-found": "Brak dostępnych opcji na liście. Rozważ zmianę filtra."
842
+ "no-options-found":
843
+ "Brak dostępnych opcji na liście. Rozważ zmianę filtra.",
832
844
  };
833
- case 'no':
845
+ case "no":
834
846
  return {
835
847
  "cannot-be-loaded": "Kan ikke lastes",
836
848
  "no-options-available": "Ingen alternativer tilgjengelig.",
@@ -839,13 +851,16 @@ function getTranslations() {
839
851
  "summary-text": {
840
852
  zero: "Ingen oppføringer ble valgt",
841
853
  one: '<span class="monster-badge-primary-pill">1</span> oppføring valgt',
842
- other: '<span class="monster-badge-primary-pill">${count}</span> oppføringer valgt',
854
+ other:
855
+ '<span class="monster-badge-primary-pill">${count}</span> oppføringer valgt',
843
856
  },
844
- "no-options": "Dessverre er det ingen alternativer tilgjengelig i listen.",
845
- "no-options-found": "Ingen alternativer tilgjengelig listen. Vurder å endre filteret."
857
+ "no-options":
858
+ "Dessverre er det ingen alternativer tilgjengelig i listen.",
859
+ "no-options-found":
860
+ "Ingen alternativer tilgjengelig på listen. Vurder å endre filteret.",
846
861
  };
847
862
 
848
- case 'dk':
863
+ case "dk":
849
864
  return {
850
865
  "cannot-be-loaded": "Kan ikke indlæses",
851
866
  "no-options-available": "Ingen muligheder tilgængelige.",
@@ -854,12 +869,15 @@ function getTranslations() {
854
869
  "summary-text": {
855
870
  zero: "Ingen indlæg blev valgt",
856
871
  one: '<span class="monster-badge-primary-pill">1</span> indlæg blev valgt',
857
- other: '<span class="monster-badge-primary-pill">${count}</span> indlæg blev valgt',
872
+ other:
873
+ '<span class="monster-badge-primary-pill">${count}</span> indlæg blev valgt',
858
874
  },
859
- "no-options": "Desværre er der ingen muligheder tilgængelige på listen.",
860
- "no-options-found": "Ingen muligheder tilgængelige på listen. Overvej at ændre filteret."
875
+ "no-options":
876
+ "Desværre er der ingen muligheder tilgængelige på listen.",
877
+ "no-options-found":
878
+ "Ingen muligheder tilgængelige på listen. Overvej at ændre filteret.",
861
879
  };
862
- case 'sw':
880
+ case "sw":
863
881
  return {
864
882
  "cannot-be-loaded": "Kan inte laddas",
865
883
  "no-options-available": "Inga alternativ tillgängliga.",
@@ -868,14 +886,16 @@ function getTranslations() {
868
886
  "summary-text": {
869
887
  zero: "Inga poster valdes",
870
888
  one: '<span class="monster-badge-primary-pill">1</span> post valdes',
871
- other: '<span class="monster-badge-primary-pill">${count}</span> poster valdes',
889
+ other:
890
+ '<span class="monster-badge-primary-pill">${count}</span> poster valdes',
872
891
  },
873
892
  "no-options": "Tyvärr finns det inga alternativ tillgängliga i listan.",
874
- "no-options-found": "Inga alternativ finns tillgängliga i listan. Överväg att modifiera filtret."
893
+ "no-options-found":
894
+ "Inga alternativ finns tillgängliga i listan. Överväg att modifiera filtret.",
875
895
  };
876
896
 
877
897
  default:
878
- case 'en':
898
+ case "en":
879
899
  return {
880
900
  "cannot-be-loaded": "Cannot be loaded",
881
901
  "no-options-available": "No options available.",
@@ -884,15 +904,17 @@ function getTranslations() {
884
904
  "summary-text": {
885
905
  zero: "No entries were selected",
886
906
  one: '<span class="monster-badge-primary-pill">1</span> entry was selected',
887
- other: '<span class="monster-badge-primary-pill">${count}</span> entries were selected',
907
+ other:
908
+ '<span class="monster-badge-primary-pill">${count}</span> entries were selected',
888
909
  },
889
- "no-options": "Unfortunately, there are no options available in the list.",
890
- "no-options-found": "No options are available in the list. Please consider modifying the filter."
910
+ "no-options":
911
+ "Unfortunately, there are no options available in the list.",
912
+ "no-options-found":
913
+ "No options are available in the list. Please consider modifying the filter.",
891
914
  };
892
915
  }
893
916
  }
894
917
 
895
-
896
918
  /**
897
919
  * @private
898
920
  */
@@ -22,7 +22,7 @@ import { isString } from "../../types/is.mjs";
22
22
  import { generateUniqueConfigKey } from "../host/util.mjs";
23
23
  import { Collapse, nameSymbol } from "./collapse.mjs";
24
24
  import { instanceSymbol } from "../../constants.mjs";
25
- import {getLocaleOfDocument} from "../../dom/locale.mjs";
25
+ import { getLocaleOfDocument } from "../../dom/locale.mjs";
26
26
 
27
27
  export { Details };
28
28
 
@@ -142,47 +142,46 @@ class Details extends Collapse {
142
142
  function getTranslations() {
143
143
  const locale = getLocaleOfDocument();
144
144
  switch (locale.language) {
145
- case 'de':
145
+ case "de":
146
146
  return {
147
- button: "Details"
147
+ button: "Details",
148
148
  };
149
- case 'fr':
149
+ case "fr":
150
150
  return {
151
- button: "Détails"
151
+ button: "Détails",
152
152
  };
153
- case 'sp':
153
+ case "sp":
154
154
  return {
155
- button: "Detalles"
155
+ button: "Detalles",
156
156
  };
157
- case 'it':
157
+ case "it":
158
158
  return {
159
- button: "Dettagli"
159
+ button: "Dettagli",
160
160
  };
161
- case 'pl':
161
+ case "pl":
162
162
  return {
163
- button: "Szczegóły"
163
+ button: "Szczegóły",
164
164
  };
165
- case 'no':
165
+ case "no":
166
166
  return {
167
- button: "Detaljer"
167
+ button: "Detaljer",
168
168
  };
169
- case 'dk':
169
+ case "dk":
170
170
  return {
171
- button: "Detaljer"
171
+ button: "Detaljer",
172
172
  };
173
- case 'sw':
173
+ case "sw":
174
174
  return {
175
- button: "Detaljer"
175
+ button: "Detaljer",
176
176
  };
177
177
  default:
178
- case 'en':
178
+ case "en":
179
179
  return {
180
- button: "Details"
180
+ button: "Details",
181
181
  };
182
182
  }
183
183
  }
184
184
 
185
-
186
185
  /**
187
186
  * @private
188
187
  * @return {Select}
@@ -59,7 +59,7 @@ import {
59
59
  popperInstanceSymbol,
60
60
  setEventListenersModifiers,
61
61
  } from "../form/util/popper.mjs";
62
- import {getLocaleOfDocument} from "../../dom/locale.mjs";
62
+ import { getLocaleOfDocument } from "../../dom/locale.mjs";
63
63
 
64
64
  export { Tabs };
65
65
 
@@ -380,47 +380,46 @@ class Tabs extends CustomElement {
380
380
  function getTranslations() {
381
381
  const locale = getLocaleOfDocument();
382
382
  switch (locale.language) {
383
- case 'de':
383
+ case "de":
384
384
  return {
385
- "new-tab-label": "Neuer Tab"
385
+ "new-tab-label": "Neuer Tab",
386
386
  };
387
- case 'fr':
387
+ case "fr":
388
388
  return {
389
- "new-tab-label": "Nouvel Onglet"
389
+ "new-tab-label": "Nouvel Onglet",
390
390
  };
391
- case 'sp':
391
+ case "sp":
392
392
  return {
393
- "new-tab-label": "Nueva Pestaña"
393
+ "new-tab-label": "Nueva Pestaña",
394
394
  };
395
- case 'it':
395
+ case "it":
396
396
  return {
397
- "new-tab-label": "Nuova Scheda"
397
+ "new-tab-label": "Nuova Scheda",
398
398
  };
399
- case 'pl':
399
+ case "pl":
400
400
  return {
401
- "new-tab-label": "Nowa Karta"
401
+ "new-tab-label": "Nowa Karta",
402
402
  };
403
- case 'no':
403
+ case "no":
404
404
  return {
405
- "new-tab-label": "Ny Fane"
405
+ "new-tab-label": "Ny Fane",
406
406
  };
407
- case 'dk':
407
+ case "dk":
408
408
  return {
409
- "new-tab-label": "Ny Fane"
409
+ "new-tab-label": "Ny Fane",
410
410
  };
411
- case 'sw':
411
+ case "sw":
412
412
  return {
413
- "new-tab-label": "Ny Flik"
413
+ "new-tab-label": "Ny Flik",
414
414
  };
415
415
  default:
416
- case 'en':
416
+ case "en":
417
417
  return {
418
- "new-tab-label": "New Tab"
418
+ "new-tab-label": "New Tab",
419
419
  };
420
420
  }
421
421
  }
422
422
 
423
-
424
423
  /**
425
424
  * @private
426
425
  */