@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 +36 -0
- package/dist/ful.iife.js +46 -5
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +46 -5
- package/dist/ful.mjs.map +1 -1
- package/package.json +5 -5
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"];
|
|
@@ -2205,11 +2223,12 @@ class Dropdown extends ParsedElement {
|
|
|
2205
2223
|
this.#menu = fragment.querySelector("menu");
|
|
2206
2224
|
this.#menu.addEventListener('click', evt => {
|
|
2207
2225
|
evt.stopPropagation();
|
|
2208
|
-
|
|
2226
|
+
const li = evt.target.closest('li');
|
|
2227
|
+
if (!li) {
|
|
2209
2228
|
this.hide();
|
|
2210
2229
|
return;
|
|
2211
2230
|
}
|
|
2212
|
-
this.#change(
|
|
2231
|
+
this.#change(li);
|
|
2213
2232
|
});
|
|
2214
2233
|
this.replaceChildren(fragment);
|
|
2215
2234
|
}
|
|
@@ -2854,6 +2873,18 @@ class Pagination extends ParsedElement {
|
|
|
2854
2873
|
'navigation': "Navigazione pagine",
|
|
2855
2874
|
'previous': "Precedente",
|
|
2856
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",
|
|
2857
2888
|
}
|
|
2858
2889
|
}
|
|
2859
2890
|
static config = {
|
|
@@ -3012,9 +3043,9 @@ class InMemoryTableLoader {
|
|
|
3012
3043
|
this.#data = data;
|
|
3013
3044
|
}
|
|
3014
3045
|
async load(pageRequest, sortRequest, filterRequest) {
|
|
3015
|
-
return {
|
|
3016
|
-
page: this.#data,
|
|
3017
|
-
size: this.#data.length
|
|
3046
|
+
return {
|
|
3047
|
+
page: this.#data,
|
|
3048
|
+
size: this.#data.length
|
|
3018
3049
|
};
|
|
3019
3050
|
}
|
|
3020
3051
|
update(data) {
|
|
@@ -3067,6 +3098,16 @@ class Table extends ParsedElement {
|
|
|
3067
3098
|
'initial': 'Avvia la ricerca per visualizzare i risultati.',
|
|
3068
3099
|
'error': 'Errore nel caricamento dei dati:',
|
|
3069
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é.',
|
|
3070
3111
|
}
|
|
3071
3112
|
}
|
|
3072
3113
|
static config = {
|