@optionfactory/ful 7.0.1 → 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.mjs CHANGED
@@ -1707,7 +1707,11 @@ class InputLocalDate extends Input {
1707
1707
  const r = new Date();
1708
1708
  switch (match[3]) {
1709
1709
  case 'd':
1710
+ const originalDay = r.getDate();
1710
1711
  r.setDate(r.getDate() + offset * sign);
1712
+ if (r.getDate() !== originalDay) {
1713
+ r.setDate(0);
1714
+ }
1711
1715
  break;
1712
1716
  case 'm':
1713
1717
  r.setMonth(r.getMonth() + offset * sign);
@@ -1784,6 +1788,20 @@ class InputFile extends Input {
1784
1788
  'maxfilesizeexceeded': "La dimensione massima di un file è di {0}",
1785
1789
  'maxtotalsizeexceeded': "La dimensione massima complessiva dei file è di {0}",
1786
1790
  'maxfilesexceeded': "Numero massimo di file superato",
1791
+ },
1792
+ es: {
1793
+ 'dropzonelabel': 'Haz clic o arrastra tus archivos aquí',
1794
+ 'unaccepptablefiletype': "Solo se admiten archivos de tipo {0}",
1795
+ 'maxfilesizeexceeded': "El tamaño máximo de archivo admitido es {0}",
1796
+ 'maxtotalsizeexceeded': "El tamaño total máximo admitido es {0}",
1797
+ 'maxfilesexceeded': "Se ha superado el número máximo de archivos"
1798
+ },
1799
+ fr: {
1800
+ 'dropzonelabel': 'Cliquez ou déposez vos fichiers ici',
1801
+ 'unaccepptablefiletype': "Seuls les fichiers de type {0} sont pris en charge",
1802
+ 'maxfilesizeexceeded': "La taille maximale de fichier prise en charge est {0}",
1803
+ 'maxtotalsizeexceeded': "La taille totale maximale prise en charge est {0}",
1804
+ 'maxfilesexceeded': "Nombre maximal de fichiers dépassé"
1787
1805
  }
1788
1806
  }
1789
1807
  static observed = ['value', 'readonly:presence', 'required:presence', "accept:csv", 'multiple:presence', "itemlist:presence", "dropzone:presence", "maxfiles:number", "maxfilesize:number", "maxtotalsize:number"];
@@ -2855,6 +2873,18 @@ class Pagination extends ParsedElement {
2855
2873
  'navigation': "Navigazione pagine",
2856
2874
  'previous': "Precedente",
2857
2875
  'next': "Successivo",
2876
+ },
2877
+ es: {
2878
+ 'showing': 'Página {0} de {1}',
2879
+ 'navigation': "Navegación de páginas",
2880
+ 'previous': "Anterior",
2881
+ 'next': "Siguiente",
2882
+ },
2883
+ fr: {
2884
+ 'showing': 'Page {0} sur {1}',
2885
+ 'navigation': "Navigation des pages",
2886
+ 'previous': "Précédent",
2887
+ 'next': "Suivant",
2858
2888
  }
2859
2889
  }
2860
2890
  static config = {
@@ -3013,9 +3043,9 @@ class InMemoryTableLoader {
3013
3043
  this.#data = data;
3014
3044
  }
3015
3045
  async load(pageRequest, sortRequest, filterRequest) {
3016
- return {
3017
- page: this.#data,
3018
- size: this.#data.length
3046
+ return {
3047
+ page: this.#data,
3048
+ size: this.#data.length
3019
3049
  };
3020
3050
  }
3021
3051
  update(data) {
@@ -3068,6 +3098,16 @@ class Table extends ParsedElement {
3068
3098
  'initial': 'Avvia la ricerca per visualizzare i risultati.',
3069
3099
  'error': 'Errore nel caricamento dei dati:',
3070
3100
  'nodata': 'Nessun elemento trovato.',
3101
+ },
3102
+ es: {
3103
+ 'initial': 'Inicia la búsqueda para ver los resultados.',
3104
+ 'error': 'Error al cargar los datos:',
3105
+ 'nodata': 'No se encontraron elementos.',
3106
+ },
3107
+ fr: {
3108
+ 'initial': 'Lancez la recherche pour voir les résultats.',
3109
+ 'error': 'Erreur lors du chargement des données :',
3110
+ 'nodata': 'Aucun élément trouvé.',
3071
3111
  }
3072
3112
  }
3073
3113
  static config = {