@optionfactory/ful 7.0.0 → 7.0.2

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/dist/ful.d.mts CHANGED
@@ -407,6 +407,20 @@ export class InputFile extends Input {
407
407
  maxtotalsizeexceeded: string;
408
408
  maxfilesexceeded: string;
409
409
  };
410
+ es: {
411
+ dropzonelabel: string;
412
+ unaccepptablefiletype: string;
413
+ maxfilesizeexceeded: string;
414
+ maxtotalsizeexceeded: string;
415
+ maxfilesexceeded: string;
416
+ };
417
+ fr: {
418
+ dropzonelabel: string;
419
+ unaccepptablefiletype: string;
420
+ maxfilesizeexceeded: string;
421
+ maxtotalsizeexceeded: string;
422
+ maxfilesexceeded: string;
423
+ };
410
424
  };
411
425
  static templates: {
412
426
  items: string;
@@ -515,6 +529,18 @@ export class Pagination extends ParsedElement {
515
529
  previous: string;
516
530
  next: string;
517
531
  };
532
+ es: {
533
+ showing: string;
534
+ navigation: string;
535
+ previous: string;
536
+ next: string;
537
+ };
538
+ fr: {
539
+ showing: string;
540
+ navigation: string;
541
+ previous: string;
542
+ next: string;
543
+ };
518
544
  };
519
545
  static config: {
520
546
  prevIcon: string;
@@ -625,6 +651,16 @@ export class Table extends ParsedElement {
625
651
  error: string;
626
652
  nodata: string;
627
653
  };
654
+ es: {
655
+ initial: string;
656
+ error: string;
657
+ nodata: string;
658
+ };
659
+ fr: {
660
+ initial: string;
661
+ error: string;
662
+ nodata: string;
663
+ };
628
664
  };
629
665
  static config: {
630
666
  searchIcon: string;
package/dist/ful.iife.js CHANGED
@@ -1708,7 +1708,11 @@ var ful = (function (exports, ftl) {
1708
1708
  const r = new Date();
1709
1709
  switch (match[3]) {
1710
1710
  case 'd':
1711
+ const originalDay = r.getDate();
1711
1712
  r.setDate(r.getDate() + offset * sign);
1713
+ if (r.getDate() !== originalDay) {
1714
+ r.setDate(0);
1715
+ }
1712
1716
  break;
1713
1717
  case 'm':
1714
1718
  r.setMonth(r.getMonth() + offset * sign);
@@ -1785,6 +1789,20 @@ var ful = (function (exports, ftl) {
1785
1789
  'maxfilesizeexceeded': "La dimensione massima di un file è di {0}",
1786
1790
  'maxtotalsizeexceeded': "La dimensione massima complessiva dei file è di {0}",
1787
1791
  'maxfilesexceeded': "Numero massimo di file superato",
1792
+ },
1793
+ es: {
1794
+ 'dropzonelabel': 'Haz clic o arrastra tus archivos aquí',
1795
+ 'unaccepptablefiletype': "Solo se admiten archivos de tipo {0}",
1796
+ 'maxfilesizeexceeded': "El tamaño máximo de archivo admitido es {0}",
1797
+ 'maxtotalsizeexceeded': "El tamaño total máximo admitido es {0}",
1798
+ 'maxfilesexceeded': "Se ha superado el número máximo de archivos"
1799
+ },
1800
+ fr: {
1801
+ 'dropzonelabel': 'Cliquez ou déposez vos fichiers ici',
1802
+ 'unaccepptablefiletype': "Seuls les fichiers de type {0} sont pris en charge",
1803
+ 'maxfilesizeexceeded': "La taille maximale de fichier prise en charge est {0}",
1804
+ 'maxtotalsizeexceeded': "La taille totale maximale prise en charge est {0}",
1805
+ 'maxfilesexceeded': "Nombre maximal de fichiers dépassé"
1788
1806
  }
1789
1807
  }
1790
1808
  static observed = ['value', 'readonly:presence', 'required:presence', "accept:csv", 'multiple:presence', "itemlist:presence", "dropzone:presence", "maxfiles:number", "maxfilesize:number", "maxtotalsize:number"];
@@ -2206,11 +2224,12 @@ var ful = (function (exports, ftl) {
2206
2224
  this.#menu = fragment.querySelector("menu");
2207
2225
  this.#menu.addEventListener('click', evt => {
2208
2226
  evt.stopPropagation();
2209
- if (!evt.target.matches('li')) {
2227
+ const li = evt.target.closest('li');
2228
+ if (!li) {
2210
2229
  this.hide();
2211
2230
  return;
2212
2231
  }
2213
- this.#change(evt.target);
2232
+ this.#change(li);
2214
2233
  });
2215
2234
  this.replaceChildren(fragment);
2216
2235
  }
@@ -2855,6 +2874,18 @@ var ful = (function (exports, ftl) {
2855
2874
  'navigation': "Navigazione pagine",
2856
2875
  'previous': "Precedente",
2857
2876
  'next': "Successivo",
2877
+ },
2878
+ es: {
2879
+ 'showing': 'Página {0} de {1}',
2880
+ 'navigation': "Navegación de páginas",
2881
+ 'previous': "Anterior",
2882
+ 'next': "Siguiente",
2883
+ },
2884
+ fr: {
2885
+ 'showing': 'Page {0} sur {1}',
2886
+ 'navigation': "Navigation des pages",
2887
+ 'previous': "Précédent",
2888
+ 'next': "Suivant",
2858
2889
  }
2859
2890
  }
2860
2891
  static config = {
@@ -3013,9 +3044,9 @@ var ful = (function (exports, ftl) {
3013
3044
  this.#data = data;
3014
3045
  }
3015
3046
  async load(pageRequest, sortRequest, filterRequest) {
3016
- return {
3017
- page: this.#data,
3018
- size: this.#data.length
3047
+ return {
3048
+ page: this.#data,
3049
+ size: this.#data.length
3019
3050
  };
3020
3051
  }
3021
3052
  update(data) {
@@ -3068,6 +3099,16 @@ var ful = (function (exports, ftl) {
3068
3099
  'initial': 'Avvia la ricerca per visualizzare i risultati.',
3069
3100
  'error': 'Errore nel caricamento dei dati:',
3070
3101
  'nodata': 'Nessun elemento trovato.',
3102
+ },
3103
+ es: {
3104
+ 'initial': 'Inicia la búsqueda para ver los resultados.',
3105
+ 'error': 'Error al cargar los datos:',
3106
+ 'nodata': 'No se encontraron elementos.',
3107
+ },
3108
+ fr: {
3109
+ 'initial': 'Lancez la recherche pour voir les résultats.',
3110
+ 'error': 'Erreur lors du chargement des données :',
3111
+ 'nodata': 'Aucun élément trouvé.',
3071
3112
  }
3072
3113
  }
3073
3114
  static config = {