@webalternatif/js-core 1.1.2 → 1.1.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.
- package/dist/cjs/array.js +46 -46
- package/dist/cjs/dom.js +154 -123
- package/dist/cjs/eventDispatcher.js +126 -86
- package/dist/cjs/i18n/agenda/en.js +65 -0
- package/dist/cjs/i18n/agenda/fr.js +67 -0
- package/dist/cjs/i18n/agenda/index.js +2 -0
- package/dist/cjs/i18n/ajaxform/en.js +5 -0
- package/dist/cjs/i18n/ajaxform/fr.js +5 -0
- package/dist/cjs/i18n/ajaxform/index.js +2 -0
- package/dist/cjs/i18n/ajaxupload/en.js +11 -0
- package/dist/cjs/i18n/ajaxupload/fr.js +11 -0
- package/dist/cjs/i18n/ajaxupload/index.js +2 -0
- package/dist/cjs/i18n/autocomplete/en.js +3 -0
- package/dist/cjs/i18n/autocomplete/fr.js +3 -0
- package/dist/cjs/i18n/autocomplete/index.js +2 -0
- package/dist/cjs/i18n/confirm/en.js +5 -0
- package/dist/cjs/i18n/confirm/fr.js +5 -0
- package/dist/cjs/i18n/confirm/index.js +2 -0
- package/dist/cjs/i18n/core/en.js +4 -0
- package/dist/cjs/i18n/core/fr.js +4 -0
- package/dist/cjs/i18n/core/index.js +2 -0
- package/dist/cjs/i18n/datagrid/en.js +8 -0
- package/dist/cjs/i18n/datagrid/fr.js +8 -0
- package/dist/cjs/i18n/datagrid/index.js +2 -0
- package/dist/cjs/i18n/date/en.js +47 -0
- package/dist/cjs/i18n/date/fr.js +47 -0
- package/dist/cjs/i18n/date/index.js +2 -0
- package/dist/cjs/i18n/datetimepicker/en.js +27 -0
- package/dist/cjs/i18n/datetimepicker/fr.js +27 -0
- package/dist/cjs/i18n/datetimepicker/index.js +2 -0
- package/dist/cjs/i18n/dialog/en.js +3 -0
- package/dist/cjs/i18n/dialog/fr.js +3 -0
- package/dist/cjs/i18n/dialog/index.js +2 -0
- package/dist/cjs/i18n/fulldayeventagenda/en.js +65 -0
- package/dist/cjs/i18n/fulldayeventagenda/fr.js +67 -0
- package/dist/cjs/i18n/fulldayeventagenda/index.js +2 -0
- package/dist/cjs/i18n/index.js +30 -0
- package/dist/cjs/i18n/richtexteditor/en.js +56 -0
- package/dist/cjs/i18n/richtexteditor/fr.js +56 -0
- package/dist/cjs/i18n/richtexteditor/index.js +2 -0
- package/dist/cjs/i18n/select/en.js +3 -0
- package/dist/cjs/i18n/select/fr.js +3 -0
- package/dist/cjs/i18n/select/index.js +2 -0
- package/dist/cjs/i18n/timepicker/en.js +3 -0
- package/dist/cjs/i18n/timepicker/fr.js +3 -0
- package/dist/cjs/i18n/timepicker/index.js +2 -0
- package/dist/cjs/i18n/useragenda/en.js +65 -0
- package/dist/cjs/i18n/useragenda/fr.js +67 -0
- package/dist/cjs/i18n/useragenda/index.js +2 -0
- package/dist/cjs/i18n.js +16 -25
- package/dist/cjs/index.js +24 -54
- package/dist/cjs/is.js +26 -45
- package/dist/cjs/math.js +27 -38
- package/dist/cjs/random.js +10 -23
- package/dist/cjs/string.js +162 -166
- package/dist/cjs/stringPrototype.js +10 -10
- package/dist/cjs/traversal.js +92 -61
- package/dist/cjs/utils.js +51 -43
- package/dist/esm/array.js +31 -20
- package/dist/esm/dom.js +142 -102
- package/dist/esm/eventDispatcher.js +123 -77
- package/dist/esm/i18n/agenda/en.js +65 -0
- package/dist/esm/i18n/agenda/fr.js +67 -0
- package/dist/esm/i18n/agenda/index.js +2 -0
- package/dist/esm/i18n/ajaxform/en.js +5 -0
- package/dist/esm/i18n/ajaxform/fr.js +5 -0
- package/dist/esm/i18n/ajaxform/index.js +2 -0
- package/dist/esm/i18n/ajaxupload/en.js +11 -0
- package/dist/esm/i18n/ajaxupload/fr.js +11 -0
- package/dist/esm/i18n/ajaxupload/index.js +2 -0
- package/dist/esm/i18n/autocomplete/en.js +3 -0
- package/dist/esm/i18n/autocomplete/fr.js +3 -0
- package/dist/esm/i18n/autocomplete/index.js +2 -0
- package/dist/esm/i18n/confirm/en.js +5 -0
- package/dist/esm/i18n/confirm/fr.js +5 -0
- package/dist/esm/i18n/confirm/index.js +2 -0
- package/dist/esm/i18n/core/en.js +4 -0
- package/dist/esm/i18n/core/fr.js +4 -0
- package/dist/esm/i18n/core/index.js +2 -0
- package/dist/esm/i18n/datagrid/en.js +8 -0
- package/dist/esm/i18n/datagrid/fr.js +8 -0
- package/dist/esm/i18n/datagrid/index.js +2 -0
- package/dist/esm/i18n/date/en.js +47 -0
- package/dist/esm/i18n/date/fr.js +47 -0
- package/dist/esm/i18n/date/index.js +2 -0
- package/dist/esm/i18n/datetimepicker/en.js +27 -0
- package/dist/esm/i18n/datetimepicker/fr.js +27 -0
- package/dist/esm/i18n/datetimepicker/index.js +2 -0
- package/dist/esm/i18n/dialog/en.js +3 -0
- package/dist/esm/i18n/dialog/fr.js +3 -0
- package/dist/esm/i18n/dialog/index.js +2 -0
- package/dist/esm/i18n/fulldayeventagenda/en.js +65 -0
- package/dist/esm/i18n/fulldayeventagenda/fr.js +67 -0
- package/dist/esm/i18n/fulldayeventagenda/index.js +2 -0
- package/dist/esm/i18n/index.js +30 -0
- package/dist/esm/i18n/richtexteditor/en.js +56 -0
- package/dist/esm/i18n/richtexteditor/fr.js +56 -0
- package/dist/esm/i18n/richtexteditor/index.js +2 -0
- package/dist/esm/i18n/select/en.js +3 -0
- package/dist/esm/i18n/select/fr.js +3 -0
- package/dist/esm/i18n/select/index.js +2 -0
- package/dist/esm/i18n/timepicker/en.js +3 -0
- package/dist/esm/i18n/timepicker/fr.js +3 -0
- package/dist/esm/i18n/timepicker/index.js +2 -0
- package/dist/esm/i18n/useragenda/en.js +65 -0
- package/dist/esm/i18n/useragenda/fr.js +67 -0
- package/dist/esm/i18n/useragenda/index.js +2 -0
- package/dist/esm/i18n.js +11 -10
- package/dist/esm/index.js +14 -13
- package/dist/esm/is.js +23 -22
- package/dist/esm/math.js +14 -13
- package/dist/esm/random.js +9 -9
- package/dist/esm/string.js +134 -99
- package/dist/esm/stringPrototype.js +8 -5
- package/dist/esm/traversal.js +79 -36
- package/dist/esm/utils.js +45 -24
- package/package.json +3 -2
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'pick a date': 'Pick a date',
|
|
3
|
+
monday: 'Monday',
|
|
4
|
+
tuesday: 'Tuesday',
|
|
5
|
+
wednesday: 'Wednesday',
|
|
6
|
+
thursday: 'Thursday',
|
|
7
|
+
friday: 'Friday',
|
|
8
|
+
saturday: 'Saturday',
|
|
9
|
+
sunday: 'Sunday',
|
|
10
|
+
mon: 'Mon',
|
|
11
|
+
tue: 'Tue',
|
|
12
|
+
wed: 'Wed',
|
|
13
|
+
thu: 'Thu',
|
|
14
|
+
fri: 'Fri',
|
|
15
|
+
sat: 'Sat',
|
|
16
|
+
sun: 'Sun',
|
|
17
|
+
mo: 'Mo',
|
|
18
|
+
tu: 'Tu',
|
|
19
|
+
we: 'We',
|
|
20
|
+
th: 'Th',
|
|
21
|
+
fr: 'Fr',
|
|
22
|
+
sa: 'Sa',
|
|
23
|
+
su: 'Su',
|
|
24
|
+
january: 'January',
|
|
25
|
+
february: 'February',
|
|
26
|
+
march: 'March',
|
|
27
|
+
april: 'April',
|
|
28
|
+
may: 'May',
|
|
29
|
+
june: 'June',
|
|
30
|
+
july: 'July',
|
|
31
|
+
august: 'August',
|
|
32
|
+
september: 'September',
|
|
33
|
+
october: 'October',
|
|
34
|
+
november: 'November',
|
|
35
|
+
december: 'December',
|
|
36
|
+
jan: 'Jan.',
|
|
37
|
+
feb: 'Feb.',
|
|
38
|
+
mar: 'Mar.',
|
|
39
|
+
apr: 'Apr.',
|
|
40
|
+
'may.': 'May',
|
|
41
|
+
jun: 'Jun.',
|
|
42
|
+
'jul.': 'Jul.',
|
|
43
|
+
aug: 'Aug.',
|
|
44
|
+
sept: 'Sept.',
|
|
45
|
+
oct: 'Oct.',
|
|
46
|
+
nov: 'Nov.',
|
|
47
|
+
dec: 'Dec.',
|
|
48
|
+
today: 'Today',
|
|
49
|
+
prev_day: 'Previous day',
|
|
50
|
+
next_day: 'Next day',
|
|
51
|
+
prev_week: 'Previous week',
|
|
52
|
+
next_week: 'Next week',
|
|
53
|
+
prev_month: 'Previous month',
|
|
54
|
+
next_month: 'Next month',
|
|
55
|
+
week: 'Week',
|
|
56
|
+
month: 'Month',
|
|
57
|
+
day: 'Day',
|
|
58
|
+
am: 'am',
|
|
59
|
+
pm: 'pm',
|
|
60
|
+
new_event: 'New event',
|
|
61
|
+
date_title_month: 'MMMM yyyy',
|
|
62
|
+
date_title_week: 'MMM d yyyy',
|
|
63
|
+
date_title_day: 'EEEE d, MMMM yyyy',
|
|
64
|
+
date_col_day: 'EE d, MMM'
|
|
65
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'pick a date': 'Choisir une date',
|
|
3
|
+
monday: 'Lundi',
|
|
4
|
+
tuesday: 'Mardi',
|
|
5
|
+
wednesday: 'Mercredi',
|
|
6
|
+
thursday: 'Jeudi',
|
|
7
|
+
friday: 'Vendredi',
|
|
8
|
+
saturday: 'Samedi',
|
|
9
|
+
sunday: 'Dimanche',
|
|
10
|
+
mon: 'Lun',
|
|
11
|
+
tue: 'Mar',
|
|
12
|
+
wed: 'Mer',
|
|
13
|
+
thu: 'Jeu',
|
|
14
|
+
fri: 'Ven',
|
|
15
|
+
sat: 'Sam',
|
|
16
|
+
sun: 'Dim',
|
|
17
|
+
mo: 'Lu',
|
|
18
|
+
tu: 'Ma',
|
|
19
|
+
we: 'Me',
|
|
20
|
+
th: 'Je',
|
|
21
|
+
fr: 'Ve',
|
|
22
|
+
sa: 'Sa',
|
|
23
|
+
su: 'Di',
|
|
24
|
+
january: 'Janvier',
|
|
25
|
+
february: 'Février',
|
|
26
|
+
march: 'Mars',
|
|
27
|
+
april: 'Avril',
|
|
28
|
+
may: 'Mai',
|
|
29
|
+
june: 'Juin',
|
|
30
|
+
july: 'Juillet',
|
|
31
|
+
august: 'Août',
|
|
32
|
+
september: 'Septembre',
|
|
33
|
+
october: 'Octobre',
|
|
34
|
+
november: 'Novembre',
|
|
35
|
+
december: 'Décembre',
|
|
36
|
+
jan: 'Janv.',
|
|
37
|
+
feb: 'Fév.',
|
|
38
|
+
mar: 'Mars',
|
|
39
|
+
apr: 'Avr.',
|
|
40
|
+
'may.': 'Mai',
|
|
41
|
+
jun: 'Juin',
|
|
42
|
+
'jul.': 'Juil.',
|
|
43
|
+
aug: 'Août',
|
|
44
|
+
sept: 'Sept.',
|
|
45
|
+
oct: 'Oct.',
|
|
46
|
+
nov: 'Nov.',
|
|
47
|
+
dec: 'Déc.',
|
|
48
|
+
today: function today() {
|
|
49
|
+
return "Aujourd'hui";
|
|
50
|
+
},
|
|
51
|
+
prev_day: 'Jour précédent',
|
|
52
|
+
next_day: 'Jour suivant',
|
|
53
|
+
prev_week: 'Semaine précédente',
|
|
54
|
+
next_week: 'Semaine suivante',
|
|
55
|
+
prev_month: 'Mois précédent',
|
|
56
|
+
next_month: 'Mois suivant',
|
|
57
|
+
week: 'Semaine',
|
|
58
|
+
month: 'Mois',
|
|
59
|
+
day: 'Jour',
|
|
60
|
+
am: 'h',
|
|
61
|
+
pm: 'h',
|
|
62
|
+
new_event: 'Nouvel événement',
|
|
63
|
+
date_title_month: 'MMMM yyyy',
|
|
64
|
+
date_title_week: 'd MMMM yyyy',
|
|
65
|
+
date_title_day: 'EEEE d MMMM yyyy',
|
|
66
|
+
date_col_day: '[<div class="nameWeekDay">]E[</div>][<div class="numMonthDay">]d[</div>]'
|
|
67
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as _core from './core/index.js';
|
|
2
|
+
export { _core as core };
|
|
3
|
+
import * as _agenda from './agenda/index.js';
|
|
4
|
+
export { _agenda as agenda };
|
|
5
|
+
import * as _ajaxform from './ajaxform/index.js';
|
|
6
|
+
export { _ajaxform as ajaxform };
|
|
7
|
+
import * as _ajaxupload from './ajaxupload/index.js';
|
|
8
|
+
export { _ajaxupload as ajaxupload };
|
|
9
|
+
import * as _autocomplete from './autocomplete/index.js';
|
|
10
|
+
export { _autocomplete as autocomplete };
|
|
11
|
+
import * as _confirm from './confirm/index.js';
|
|
12
|
+
export { _confirm as confirm };
|
|
13
|
+
import * as _datagrid from './datagrid/index.js';
|
|
14
|
+
export { _datagrid as datagrid };
|
|
15
|
+
import * as _date from './date/index.js';
|
|
16
|
+
export { _date as date };
|
|
17
|
+
import * as _datetimepicker from './datetimepicker/index.js';
|
|
18
|
+
export { _datetimepicker as datetimepicker };
|
|
19
|
+
import * as _dialog from './dialog/index.js';
|
|
20
|
+
export { _dialog as dialog };
|
|
21
|
+
import * as _fulldayeventagenda from './fulldayeventagenda/index.js';
|
|
22
|
+
export { _fulldayeventagenda as fulldayeventagenda };
|
|
23
|
+
import * as _richtexteditor from './richtexteditor/index.js';
|
|
24
|
+
export { _richtexteditor as richtexteditor };
|
|
25
|
+
import * as _select from './select/index.js';
|
|
26
|
+
export { _select as select };
|
|
27
|
+
import * as _timepicker from './timepicker/index.js';
|
|
28
|
+
export { _timepicker as timepicker };
|
|
29
|
+
import * as _useragenda from './useragenda/index.js';
|
|
30
|
+
export { _useragenda as useragenda };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
undo: 'Undo',
|
|
3
|
+
redo: 'Redo',
|
|
4
|
+
heading: 'Heading',
|
|
5
|
+
font: 'Font',
|
|
6
|
+
fontsize: 'Font size',
|
|
7
|
+
fontsizepx: 'Font size',
|
|
8
|
+
bold: 'Bold',
|
|
9
|
+
italic: 'Italic',
|
|
10
|
+
underline: 'Underline',
|
|
11
|
+
strikethrough: 'Strikethrough',
|
|
12
|
+
subscript: 'Subscript',
|
|
13
|
+
superscript: 'Superscript',
|
|
14
|
+
text_color: 'Text color',
|
|
15
|
+
backcolor: 'Background text color',
|
|
16
|
+
alignleft: 'Left align',
|
|
17
|
+
aligncenter: 'Centrer',
|
|
18
|
+
alignright: 'Right align',
|
|
19
|
+
alignjustify: 'Justify',
|
|
20
|
+
link: 'Add a link',
|
|
21
|
+
unlink: 'Remove a link',
|
|
22
|
+
insertimage: 'Insert a picture',
|
|
23
|
+
'add a link': 'Add a link',
|
|
24
|
+
'text of link': 'Text of the link',
|
|
25
|
+
anchor: 'Anchor',
|
|
26
|
+
invalid_url: 'Invalid URL',
|
|
27
|
+
url_link: 'URL of the link',
|
|
28
|
+
open_in_new_tab: 'Ouvrir dans un nouvel onglet',
|
|
29
|
+
'import': 'import',
|
|
30
|
+
'insert image': 'Insert a picture',
|
|
31
|
+
upload_image: 'Upload a picture',
|
|
32
|
+
from_url: 'import from a URL',
|
|
33
|
+
'drag here': 'Drag an image here.',
|
|
34
|
+
'you can also': 'You can also',
|
|
35
|
+
'select image to import': 'Sélectionner an image to import',
|
|
36
|
+
paste_url_image: 'Paste the URL of the image :',
|
|
37
|
+
overview_image_from_url: 'If the URL is correct, you will see an overview here',
|
|
38
|
+
'no image found': 'No image found at this URL',
|
|
39
|
+
loading: 'Loading...',
|
|
40
|
+
validate: 'Validate',
|
|
41
|
+
cancel: 'Cancel',
|
|
42
|
+
unordered_list: 'Unordered list',
|
|
43
|
+
ordered_list: 'Ordered list',
|
|
44
|
+
indent: 'Indent',
|
|
45
|
+
outdent: 'Outdent',
|
|
46
|
+
hr: 'Horizontal ruler',
|
|
47
|
+
table: 'Table',
|
|
48
|
+
tableProperties: 'Table properties',
|
|
49
|
+
columnSize: 'Column width',
|
|
50
|
+
rowSize: 'Row height',
|
|
51
|
+
verticalAlignment: 'Vertical alignment',
|
|
52
|
+
alignTop: 'Top',
|
|
53
|
+
alignMiddle: 'Middle',
|
|
54
|
+
alignBottom: 'Bottom',
|
|
55
|
+
alignUndefined: 'Undefined'
|
|
56
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
undo: 'Annuler',
|
|
3
|
+
redo: 'Rétablir',
|
|
4
|
+
heading: 'Titre',
|
|
5
|
+
font: 'Police de caractères',
|
|
6
|
+
fontsize: 'Taille',
|
|
7
|
+
fontsizepx: 'Taille',
|
|
8
|
+
bold: 'Gras',
|
|
9
|
+
italic: 'Italique',
|
|
10
|
+
underline: 'Souligné',
|
|
11
|
+
strikethrough: 'Barré',
|
|
12
|
+
subscript: 'Indice',
|
|
13
|
+
superscript: 'Exposant',
|
|
14
|
+
text_color: 'Couleur du texte',
|
|
15
|
+
backcolor: 'Couleur d\'arrière plan du texte',
|
|
16
|
+
alignleft: 'Aligner à gauche',
|
|
17
|
+
aligncenter: 'Centrer',
|
|
18
|
+
alignright: 'Aligner à droite',
|
|
19
|
+
alignjustify: 'Justifer',
|
|
20
|
+
link: 'Ajouter un lien',
|
|
21
|
+
unlink: 'Supprimer un lien',
|
|
22
|
+
insertimage: 'Insérer une image',
|
|
23
|
+
'add a link': 'Ajouter un lien',
|
|
24
|
+
'text of link': 'Texte du lien',
|
|
25
|
+
anchor: 'Ancre',
|
|
26
|
+
invalid_url: 'L\'URL est invalide',
|
|
27
|
+
url_link: 'URL du lien',
|
|
28
|
+
open_in_new_tab: 'Open in new tab',
|
|
29
|
+
'import': 'Importer',
|
|
30
|
+
'insert image': 'Insérer une image',
|
|
31
|
+
upload_image: 'Uploader une image',
|
|
32
|
+
from_url: 'À partir d\'une URL',
|
|
33
|
+
'drag here': 'Faîtes glisser une image ici.',
|
|
34
|
+
'you can also': 'Vous pouvez aussi',
|
|
35
|
+
'select image to import': 'Sélectionner l\'image à importer',
|
|
36
|
+
paste_url_image: 'Coller l\'URL de l\'image ici :',
|
|
37
|
+
overview_image_from_url: 'Si l\'URL est correcte, vous en verrez un aperçu ici',
|
|
38
|
+
'no image found': 'Aucune image trouvée à cette adresse',
|
|
39
|
+
loading: 'Chargement en cours',
|
|
40
|
+
validate: 'Valider',
|
|
41
|
+
cancel: 'Annuler',
|
|
42
|
+
unordered_list: 'Liste non ordonnée',
|
|
43
|
+
ordered_list: 'Liste numérotée',
|
|
44
|
+
indent: 'Incrémenter',
|
|
45
|
+
outdent: 'Décrémenter',
|
|
46
|
+
hr: 'Ligne horizontale',
|
|
47
|
+
table: 'Tableau',
|
|
48
|
+
tableProperties: 'Propriétés du tableau',
|
|
49
|
+
columnSize: 'Largeur de la colonne',
|
|
50
|
+
rowSize: 'Hauteur de la ligne',
|
|
51
|
+
verticalAlignment: 'Alignement vertical',
|
|
52
|
+
alignTop: 'Haut',
|
|
53
|
+
alignMiddle: 'Centré',
|
|
54
|
+
alignBottom: 'Bas',
|
|
55
|
+
alignUndefined: 'Indéfini'
|
|
56
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'pick a date': 'Pick a date',
|
|
3
|
+
monday: 'Monday',
|
|
4
|
+
tuesday: 'Tuesday',
|
|
5
|
+
wednesday: 'Wednesday',
|
|
6
|
+
thursday: 'Thursday',
|
|
7
|
+
friday: 'Friday',
|
|
8
|
+
saturday: 'Saturday',
|
|
9
|
+
sunday: 'Sunday',
|
|
10
|
+
mon: 'Mon',
|
|
11
|
+
tue: 'Tue',
|
|
12
|
+
wed: 'Wed',
|
|
13
|
+
thu: 'Thu',
|
|
14
|
+
fri: 'Fri',
|
|
15
|
+
sat: 'Sat',
|
|
16
|
+
sun: 'Sun',
|
|
17
|
+
mo: 'Mo',
|
|
18
|
+
tu: 'Tu',
|
|
19
|
+
we: 'We',
|
|
20
|
+
th: 'Th',
|
|
21
|
+
fr: 'Fr',
|
|
22
|
+
sa: 'Sa',
|
|
23
|
+
su: 'Su',
|
|
24
|
+
january: 'January',
|
|
25
|
+
february: 'February',
|
|
26
|
+
march: 'March',
|
|
27
|
+
april: 'April',
|
|
28
|
+
may: 'May',
|
|
29
|
+
june: 'June',
|
|
30
|
+
july: 'July',
|
|
31
|
+
august: 'August',
|
|
32
|
+
september: 'September',
|
|
33
|
+
october: 'October',
|
|
34
|
+
november: 'November',
|
|
35
|
+
december: 'December',
|
|
36
|
+
jan: 'Jan.',
|
|
37
|
+
feb: 'Feb.',
|
|
38
|
+
mar: 'Mar.',
|
|
39
|
+
apr: 'Apr.',
|
|
40
|
+
'may.': 'May',
|
|
41
|
+
jun: 'Jun.',
|
|
42
|
+
'jul.': 'Jul.',
|
|
43
|
+
aug: 'Aug.',
|
|
44
|
+
sept: 'Sept.',
|
|
45
|
+
oct: 'Oct.',
|
|
46
|
+
nov: 'Nov.',
|
|
47
|
+
dec: 'Dec.',
|
|
48
|
+
today: 'Today',
|
|
49
|
+
prev_day: 'Previous day',
|
|
50
|
+
next_day: 'Next day',
|
|
51
|
+
prev_week: 'Previous week',
|
|
52
|
+
next_week: 'Next week',
|
|
53
|
+
prev_month: 'Previous month',
|
|
54
|
+
next_month: 'Next month',
|
|
55
|
+
week: 'Week',
|
|
56
|
+
month: 'Month',
|
|
57
|
+
day: 'Day',
|
|
58
|
+
am: 'am',
|
|
59
|
+
pm: 'pm',
|
|
60
|
+
new_event: 'New event',
|
|
61
|
+
date_title_month: 'MMMM yyyy',
|
|
62
|
+
date_title_week: 'MMM d yyyy',
|
|
63
|
+
date_title_day: 'EEEE d, MMMM yyyy',
|
|
64
|
+
date_col_day: '[<div class="nameWeekDay">]E[</div>][<div class="numMonthDay">]d[</div>]'
|
|
65
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'pick a date': 'Choisir une date',
|
|
3
|
+
monday: 'Lundi',
|
|
4
|
+
tuesday: 'Mardi',
|
|
5
|
+
wednesday: 'Mercredi',
|
|
6
|
+
thursday: 'Jeudi',
|
|
7
|
+
friday: 'Vendredi',
|
|
8
|
+
saturday: 'Samedi',
|
|
9
|
+
sunday: 'Dimanche',
|
|
10
|
+
mon: 'Lun',
|
|
11
|
+
tue: 'Mar',
|
|
12
|
+
wed: 'Mer',
|
|
13
|
+
thu: 'Jeu',
|
|
14
|
+
fri: 'Ven',
|
|
15
|
+
sat: 'Sam',
|
|
16
|
+
sun: 'Dim',
|
|
17
|
+
mo: 'Lu',
|
|
18
|
+
tu: 'Ma',
|
|
19
|
+
we: 'Me',
|
|
20
|
+
th: 'Je',
|
|
21
|
+
fr: 'Ve',
|
|
22
|
+
sa: 'Sa',
|
|
23
|
+
su: 'Di',
|
|
24
|
+
january: 'Janvier',
|
|
25
|
+
february: 'Février',
|
|
26
|
+
march: 'Mars',
|
|
27
|
+
april: 'Avril',
|
|
28
|
+
may: 'Mai',
|
|
29
|
+
june: 'Juin',
|
|
30
|
+
july: 'Juillet',
|
|
31
|
+
august: 'Août',
|
|
32
|
+
september: 'Septembre',
|
|
33
|
+
october: 'Octobre',
|
|
34
|
+
november: 'Novembre',
|
|
35
|
+
december: 'Décembre',
|
|
36
|
+
jan: 'Janv.',
|
|
37
|
+
feb: 'Fév.',
|
|
38
|
+
mar: 'Mars',
|
|
39
|
+
apr: 'Avr.',
|
|
40
|
+
'may.': 'Mai',
|
|
41
|
+
jun: 'Juin',
|
|
42
|
+
'jul.': 'Juil.',
|
|
43
|
+
aug: 'Août',
|
|
44
|
+
sept: 'Sept.',
|
|
45
|
+
oct: 'Oct.',
|
|
46
|
+
nov: 'Nov.',
|
|
47
|
+
dec: 'Déc.',
|
|
48
|
+
today: function today() {
|
|
49
|
+
return "Aujourd'hui";
|
|
50
|
+
},
|
|
51
|
+
prev_day: 'Jour précédent',
|
|
52
|
+
next_day: 'Jour suivant',
|
|
53
|
+
prev_week: 'Semaine précédente',
|
|
54
|
+
next_week: 'Semaine suivante',
|
|
55
|
+
prev_month: 'Mois précédent',
|
|
56
|
+
next_month: 'Mois suivant',
|
|
57
|
+
week: 'Semaine',
|
|
58
|
+
month: 'Mois',
|
|
59
|
+
day: 'Jour',
|
|
60
|
+
am: 'h',
|
|
61
|
+
pm: 'h',
|
|
62
|
+
new_event: 'Nouvel événement',
|
|
63
|
+
date_title_month: 'MMMM yyyy',
|
|
64
|
+
date_title_week: 'd MMMM yyyy',
|
|
65
|
+
date_title_day: 'EEEE d MMMM yyyy',
|
|
66
|
+
date_col_day: '[<div class="nameWeekDay">]E[</div>][<div class="numMonthDay">]d[</div>]'
|
|
67
|
+
};
|
package/dist/esm/i18n.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as i18n from "
|
|
1
|
+
import * as i18n from "./i18n/index.js";
|
|
2
2
|
import { isFunction, isUndefined } from "./is.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
var _translate = function translate(lang, ns, label) {
|
|
4
|
+
var language = lang;
|
|
5
5
|
if (isUndefined(label)) {
|
|
6
6
|
if (isUndefined(ns)) {
|
|
7
7
|
label = lang;
|
|
@@ -12,23 +12,24 @@ export const translate = function (lang, ns, label) {
|
|
|
12
12
|
}
|
|
13
13
|
language = getLang();
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
var translationExists = !isUndefined(i18n[ns]) && !isUndefined(i18n[ns][language]) && !isUndefined(i18n[ns][language][label]);
|
|
16
16
|
if (translationExists) {
|
|
17
|
-
|
|
17
|
+
var tr = i18n[ns][language][label];
|
|
18
18
|
return isFunction(tr) ? tr() : tr;
|
|
19
19
|
}
|
|
20
20
|
if (lang !== 'en') {
|
|
21
|
-
return
|
|
21
|
+
return _translate('en', ns, label);
|
|
22
22
|
}
|
|
23
23
|
return label;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
export { _translate as translate };
|
|
26
|
+
export var _ = _translate;
|
|
27
|
+
var _lang;
|
|
28
|
+
export var getLang = function getLang() {
|
|
28
29
|
if (!_lang) setLang();
|
|
29
30
|
return _lang;
|
|
30
31
|
};
|
|
31
|
-
export
|
|
32
|
+
export var setLang = function setLang(lang) {
|
|
32
33
|
if (!lang) {
|
|
33
34
|
if (typeof navigator !== 'undefined' && navigator.language) {
|
|
34
35
|
lang = navigator.language;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
7
|
import * as stringFunctions from './string.js';
|
|
2
8
|
import './stringPrototype.js';
|
|
3
9
|
import * as arrayFunctions from './array.js';
|
|
@@ -7,18 +13,13 @@ import * as math from './math.js';
|
|
|
7
13
|
import * as utils from './utils.js';
|
|
8
14
|
import * as i18n from './i18n.js';
|
|
9
15
|
import eventDispatcher from './eventDispatcher.js';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
...math,
|
|
19
|
-
...utils,
|
|
20
|
-
...i18n,
|
|
21
|
-
eventDispatcher
|
|
22
|
-
};
|
|
16
|
+
var webf = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, stringFunctions), arrayFunctions), traversal), {}, {
|
|
17
|
+
dom: dom,
|
|
18
|
+
isWindow: isWindow,
|
|
19
|
+
isDomElement: isDomElement,
|
|
20
|
+
getStyle: getStyle
|
|
21
|
+
}, math), utils), i18n), {}, {
|
|
22
|
+
eventDispatcher: eventDispatcher
|
|
23
|
+
});
|
|
23
24
|
export default webf;
|
|
24
25
|
export { stringFunctions, arrayFunctions, traversal, getStyle, dom, math, utils, eventDispatcher };
|
package/dist/esm/is.js
CHANGED
|
@@ -1,52 +1,53 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
import { inArray } from "./array.js";
|
|
2
|
-
export
|
|
3
|
+
export var isString = function isString(str) {
|
|
3
4
|
return typeof str == 'string' || Object.prototype.toString.call(str) === '[object String]';
|
|
4
5
|
};
|
|
5
|
-
export
|
|
6
|
-
return !!o && !isArray(o) &&
|
|
6
|
+
export var isObject = function isObject(o) {
|
|
7
|
+
return !!o && !isArray(o) && _typeof(o) === 'object';
|
|
7
8
|
};
|
|
8
|
-
export
|
|
9
|
+
export var isFunction = function isFunction(f) {
|
|
9
10
|
return !!f && typeof f === 'function';
|
|
10
11
|
};
|
|
11
|
-
export
|
|
12
|
+
export var isPlainObject = function isPlainObject(o) {
|
|
12
13
|
if (false === isObject(o)) return false;
|
|
13
14
|
if (undefined === o.constructor) return true;
|
|
14
15
|
if (false === isObject(o.constructor.prototype)) return false;
|
|
15
16
|
if (o.constructor.prototype.hasOwnProperty('isPrototypeOf') === false) return false;
|
|
16
17
|
return true;
|
|
17
18
|
};
|
|
18
|
-
export
|
|
19
|
+
export var isBoolean = function isBoolean(b) {
|
|
19
20
|
return b === true || b === false;
|
|
20
21
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
22
|
+
export var isBool = isBoolean;
|
|
23
|
+
export var isUndefined = function isUndefined(v) {
|
|
23
24
|
return typeof v === 'undefined';
|
|
24
25
|
};
|
|
25
|
-
export
|
|
26
|
+
export var isArrayLike = function isArrayLike(o) {
|
|
26
27
|
return null !== o && !isString(o) && !isFunction(o) && isInt(o.length) && o.length >= 0 && Number.isFinite(o.length);
|
|
27
28
|
};
|
|
28
|
-
export
|
|
29
|
+
export var isArray = function isArray(a) {
|
|
29
30
|
return Array.isArray(a);
|
|
30
31
|
};
|
|
31
|
-
export
|
|
32
|
+
export var isDate = function isDate(o) {
|
|
32
33
|
return !!o && Object.prototype.toString.call(o) === '[object Date]';
|
|
33
34
|
};
|
|
34
|
-
export
|
|
35
|
+
export var isEvent = function isEvent(o) {
|
|
35
36
|
return isObject(o) && (!!o.preventDefault || /\[object Event\]/.test(o.constructor.toString()));
|
|
36
37
|
};
|
|
37
|
-
export
|
|
38
|
+
export var isInteger = function isInteger(n) {
|
|
38
39
|
return /^[\-]?\d+$/.test(n + '');
|
|
39
40
|
};
|
|
40
|
-
export
|
|
41
|
-
export
|
|
41
|
+
export var isInt = isInteger;
|
|
42
|
+
export var isFloat = function isFloat(n) {
|
|
42
43
|
return /^[\-]?\d+(\.\d+)?$/.test(n + '');
|
|
43
44
|
};
|
|
44
|
-
export
|
|
45
|
-
|
|
45
|
+
export var isScalar = function isScalar(value) {
|
|
46
|
+
var type = _typeof(value);
|
|
46
47
|
return value === null || inArray(type, ['string', 'number', 'bigint', 'symbol', 'boolean']);
|
|
47
48
|
};
|
|
48
|
-
export
|
|
49
|
-
|
|
49
|
+
export var isEventSupported = function () {
|
|
50
|
+
var TAGNAMES = {
|
|
50
51
|
select: 'input',
|
|
51
52
|
change: 'input',
|
|
52
53
|
submit: 'form',
|
|
@@ -56,14 +57,14 @@ export const isEventSupported = function () {
|
|
|
56
57
|
abort: 'img'
|
|
57
58
|
};
|
|
58
59
|
function isEventSupported(eventName) {
|
|
59
|
-
|
|
60
|
+
var el = document.createElement(TAGNAMES[eventName] || 'div');
|
|
60
61
|
eventName = 'on' + eventName;
|
|
61
|
-
|
|
62
|
+
var isSupported = eventName in el;
|
|
62
63
|
el = null;
|
|
63
64
|
return isSupported;
|
|
64
65
|
}
|
|
65
66
|
return isEventSupported;
|
|
66
67
|
}();
|
|
67
|
-
export
|
|
68
|
+
export var isTouchDevice = function isTouchDevice() {
|
|
68
69
|
return isEventSupported('touchstart');
|
|
69
70
|
};
|