@webalternatif/js-core 1.0.0 → 1.1.0

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.
Files changed (80) hide show
  1. package/package.json +8 -2
  2. package/.babelrc +0 -12
  3. package/.idea/inspectionProfiles/Project_Default.xml +0 -12
  4. package/.idea/js-core.iml +0 -8
  5. package/.idea/modules.xml +0 -8
  6. package/.idea/php.xml +0 -20
  7. package/.idea/vcs.xml +0 -6
  8. package/i18n/agenda/en.js +0 -73
  9. package/i18n/agenda/fr.js +0 -73
  10. package/i18n/agenda/index.js +0 -2
  11. package/i18n/ajaxform/en.js +0 -5
  12. package/i18n/ajaxform/fr.js +0 -5
  13. package/i18n/ajaxform/index.js +0 -2
  14. package/i18n/ajaxupload/en.js +0 -12
  15. package/i18n/ajaxupload/fr.js +0 -12
  16. package/i18n/ajaxupload/index.js +0 -2
  17. package/i18n/autocomplete/en.js +0 -3
  18. package/i18n/autocomplete/fr.js +0 -3
  19. package/i18n/autocomplete/index.js +0 -2
  20. package/i18n/confirm/en.js +0 -5
  21. package/i18n/confirm/fr.js +0 -5
  22. package/i18n/confirm/index.js +0 -2
  23. package/i18n/core/en.js +0 -4
  24. package/i18n/core/fr.js +0 -4
  25. package/i18n/core/index.js +0 -2
  26. package/i18n/datagrid/en.js +0 -8
  27. package/i18n/datagrid/fr.js +0 -8
  28. package/i18n/datagrid/index.js +0 -2
  29. package/i18n/date/en.js +0 -51
  30. package/i18n/date/fr.js +0 -51
  31. package/i18n/date/index.js +0 -2
  32. package/i18n/datetimepicker/en.js +0 -30
  33. package/i18n/datetimepicker/fr.js +0 -30
  34. package/i18n/datetimepicker/index.js +0 -2
  35. package/i18n/dialog/en.js +0 -3
  36. package/i18n/dialog/fr.js +0 -3
  37. package/i18n/dialog/index.js +0 -2
  38. package/i18n/fulldayeventagenda/en.js +0 -73
  39. package/i18n/fulldayeventagenda/fr.js +0 -73
  40. package/i18n/fulldayeventagenda/index.js +0 -2
  41. package/i18n/index.d.ts +0 -4
  42. package/i18n/index.js +0 -15
  43. package/i18n/richtexteditor/en.js +0 -58
  44. package/i18n/richtexteditor/fr.js +0 -58
  45. package/i18n/richtexteditor/index.js +0 -2
  46. package/i18n/select/en.js +0 -3
  47. package/i18n/select/fr.js +0 -3
  48. package/i18n/select/index.js +0 -2
  49. package/i18n/timepicker/en.js +0 -3
  50. package/i18n/timepicker/fr.js +0 -3
  51. package/i18n/timepicker/index.js +0 -2
  52. package/i18n/useragenda/en.js +0 -74
  53. package/i18n/useragenda/fr.js +0 -73
  54. package/i18n/useragenda/index.js +0 -2
  55. package/jest.config.js +0 -14
  56. package/src/array.js +0 -124
  57. package/src/dom.js +0 -569
  58. package/src/eventDispatcher.js +0 -118
  59. package/src/i18n.js +0 -55
  60. package/src/index.js +0 -33
  61. package/src/is.js +0 -89
  62. package/src/math.js +0 -109
  63. package/src/random.js +0 -40
  64. package/src/string.js +0 -576
  65. package/src/stringPrototype.js +0 -15
  66. package/src/traversal.js +0 -134
  67. package/src/utils.js +0 -130
  68. package/tests/array.test.js +0 -326
  69. package/tests/dom.test.js +0 -239
  70. package/tests/eventdispatcher.test.js +0 -177
  71. package/tests/i18n.test.js +0 -132
  72. package/tests/index.test.js +0 -29
  73. package/tests/is.test.js +0 -354
  74. package/tests/math.test.js +0 -221
  75. package/tests/random.test.js +0 -72
  76. package/tests/string.test.js +0 -1106
  77. package/tests/traversal.test.js +0 -517
  78. package/tests/utils.test.js +0 -371
  79. package/tsconfig.json +0 -16
  80. package/webpack.config.cjs +0 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webalternatif/js-core",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "types": "types/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -29,5 +29,11 @@
29
29
  "jest-environment-jsdom": "^29.7.0",
30
30
  "nodemon": "^3.1.9",
31
31
  "typescript": "^5.7.2"
32
- }
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "types",
36
+ "README.md",
37
+ "LICENSE"
38
+ ]
33
39
  }
package/.babelrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "targets": {
7
- "node": "current"
8
- }
9
- }
10
- ]
11
- ]
12
- }
@@ -1,12 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="GrazieInspection" enabled="false" level="GRAMMAR_ERROR" enabled_by_default="false" />
5
- <inspection_tool class="LanguageDetectionInspection" enabled="false" level="WARNING" enabled_by_default="false" />
6
- <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
7
- <option name="processCode" value="true" />
8
- <option name="processLiterals" value="true" />
9
- <option name="processComments" value="true" />
10
- </inspection_tool>
11
- </profile>
12
- </component>
package/.idea/js-core.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/js-core.iml" filepath="$PROJECT_DIR$/.idea/js-core.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/php.xml DELETED
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="MessDetectorOptionsConfiguration">
4
- <option name="transferred" value="true" />
5
- </component>
6
- <component name="PHPCSFixerOptionsConfiguration">
7
- <option name="transferred" value="true" />
8
- </component>
9
- <component name="PHPCodeSnifferOptionsConfiguration">
10
- <option name="highlightLevel" value="WARNING" />
11
- <option name="transferred" value="true" />
12
- </component>
13
- <component name="PhpProjectSharedConfiguration" php_language_level="8.2" />
14
- <component name="PhpStanOptionsConfiguration">
15
- <option name="transferred" value="true" />
16
- </component>
17
- <component name="PsalmOptionsConfiguration">
18
- <option name="transferred" value="true" />
19
- </component>
20
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
package/i18n/agenda/en.js DELETED
@@ -1,73 +0,0 @@
1
- export default {
2
- 'pick a date': 'Pick a date',
3
-
4
- monday: 'Monday',
5
- tuesday: 'Tuesday',
6
- wednesday: 'Wednesday',
7
- thursday: 'Thursday',
8
- friday: 'Friday',
9
- saturday: 'Saturday',
10
- sunday: 'Sunday',
11
-
12
- mon: 'Mon',
13
- tue: 'Tue',
14
- wed: 'Wed',
15
- thu: 'Thu',
16
- fri: 'Fri',
17
- sat: 'Sat',
18
- sun: 'Sun',
19
-
20
- mo: 'Mo',
21
- tu: 'Tu',
22
- we: 'We',
23
- th: 'Th',
24
- fr: 'Fr',
25
- sa: 'Sa',
26
- su: 'Su',
27
-
28
- january: 'January',
29
- february: 'February',
30
- march: 'March',
31
- april: 'April',
32
- may: 'May',
33
- june: 'June',
34
- july: 'July',
35
- august: 'August',
36
- september: 'September',
37
- october: 'October',
38
- november: 'November',
39
- december: 'December',
40
-
41
- jan: 'Jan.',
42
- feb: 'Feb.',
43
- mar: 'Mar.',
44
- apr: 'Apr.',
45
- 'may.': 'May',
46
- jun: 'Jun.',
47
- 'jul.': 'Jul.',
48
- aug: 'Aug.',
49
- sept: 'Sept.',
50
- oct: 'Oct.',
51
- nov: 'Nov.',
52
- dec: 'Dec.',
53
-
54
- today: 'Today',
55
- prev_day: 'Previous day',
56
- next_day: 'Next day',
57
- prev_week: 'Previous week',
58
- next_week: 'Next week',
59
- prev_month: 'Previous month',
60
- next_month: 'Next month',
61
- week: 'Week',
62
- month: 'Month',
63
- day: 'Day',
64
- am: 'am',
65
- pm: 'pm',
66
-
67
- new_event: 'New event',
68
-
69
- date_title_month: 'MMMM yyyy',
70
- date_title_week: 'MMM d yyyy',
71
- date_title_day: 'EEEE d, MMMM yyyy',
72
- date_col_day: 'EE d, MMM'
73
- }
package/i18n/agenda/fr.js DELETED
@@ -1,73 +0,0 @@
1
- export default {
2
- 'pick a date': 'Choisir une date',
3
-
4
- monday: 'Lundi',
5
- tuesday: 'Mardi',
6
- wednesday: 'Mercredi',
7
- thursday: 'Jeudi',
8
- friday: 'Vendredi',
9
- saturday: 'Samedi',
10
- sunday: 'Dimanche',
11
-
12
- mon: 'Lun',
13
- tue: 'Mar',
14
- wed: 'Mer',
15
- thu: 'Jeu',
16
- fri: 'Ven',
17
- sat: 'Sam',
18
- sun: 'Dim',
19
-
20
- mo: 'Lu',
21
- tu: 'Ma',
22
- we: 'Me',
23
- th: 'Je',
24
- fr: 'Ve',
25
- sa: 'Sa',
26
- su: 'Di',
27
-
28
- january: 'Janvier',
29
- february: 'Février',
30
- march: 'Mars',
31
- april: 'Avril',
32
- may: 'Mai',
33
- june: 'Juin',
34
- july: 'Juillet',
35
- august: 'Août',
36
- september: 'Septembre',
37
- october: 'Octobre',
38
- november: 'Novembre',
39
- december: 'Décembre',
40
-
41
- jan: 'Janv.',
42
- feb: 'Fév.',
43
- mar: 'Mars',
44
- apr: 'Avr.',
45
- 'may.': 'Mai',
46
- jun: 'Juin',
47
- 'jul.': 'Juil.',
48
- aug: 'Août',
49
- sept: 'Sept.',
50
- oct: 'Oct.',
51
- nov: 'Nov.',
52
- dec: 'Déc.',
53
-
54
- today: function() { return "Aujourd'hui"; },
55
- prev_day: 'Jour précédent',
56
- next_day: 'Jour suivant',
57
- prev_week: 'Semaine précédente',
58
- next_week: 'Semaine suivante',
59
- prev_month: 'Mois précédent',
60
- next_month: 'Mois suivant',
61
- week: 'Semaine',
62
- month: 'Mois',
63
- day: 'Jour',
64
- am: 'h',
65
- pm: 'h',
66
-
67
- new_event: 'Nouvel événement',
68
-
69
- date_title_month: 'MMMM yyyy',
70
- date_title_week: 'd MMMM yyyy',
71
- date_title_day: 'EEEE d MMMM yyyy',
72
- date_col_day: 'EE d MMM'
73
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
@@ -1,5 +0,0 @@
1
- export default {
2
- required: function (name) {
3
- return "the field " + name + " is required";
4
- }
5
- }
@@ -1,5 +0,0 @@
1
- export default {
2
- required: function(name) {
3
- return "Le champ " + name + " est requis";
4
- }
5
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
@@ -1,12 +0,0 @@
1
- export default {
2
- invExtension: function(filename, allowedExtensions) {
3
- return "The file " + filename + " is not an extension validation.\nValid extensions : " + allowedExtensions;
4
- },
5
- invSize: function(filename, filesize, sizeLimit) {
6
- return "The file " + filename + " of " + filesize + " exceeds the size limit " + sizeLimit;
7
- },
8
- emptyFile: function(filename) {
9
- return "The file " + filename + " is empty";
10
- }
11
- }
12
-
@@ -1,12 +0,0 @@
1
- export default {
2
- invExtension: function(filename, allowedExtensions) {
3
- return "Le fichier " + filename + " ne possède pas une extension valide.\nExtensions valides : " + allowedExtensions;
4
- },
5
- invSize: function(filename, filesize, sizeLimit) {
6
- return "Le fichier " + filename + " de taille " + filesize + " excède la taille limite autorisée de " + sizeLimit;
7
- },
8
- emptyFile: function(filename) {
9
- return "Le fichier " + filename + " est vide";
10
- }
11
- }
12
-
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
@@ -1,3 +0,0 @@
1
- export default {
2
- noResultFound: 'No result found'
3
- }
@@ -1,3 +0,0 @@
1
- export default {
2
- noResultFound: 'Aucun résultat'
3
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
@@ -1,5 +0,0 @@
1
- export default {
2
- yes: 'Yes',
3
- cancel: 'Cancel',
4
- textConfirm: 'Are you sure to do this ?'
5
- }
@@ -1,5 +0,0 @@
1
- export default {
2
- yes: 'Oui',
3
- cancel: 'Annuler',
4
- textConfirm: 'Voulez vous vraiment faire ça ?'
5
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
package/i18n/core/en.js DELETED
@@ -1,4 +0,0 @@
1
- export default {
2
- byte: 'byte',
3
- unitByte: 'B'
4
- }
package/i18n/core/fr.js DELETED
@@ -1,4 +0,0 @@
1
- export default {
2
- byte: 'octet',
3
- unitByte: 'o'
4
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
@@ -1,8 +0,0 @@
1
- export default {
2
- search: 'Search',
3
- refresh: 'Refresh',
4
- allColumns: 'All columns',
5
- abbrColumn: '#',
6
- today: 'Today',
7
- noDate: 'No date'
8
- }
@@ -1,8 +0,0 @@
1
- export default {
2
- search: 'Rechercher',
3
- refresh: 'Rafraîchir',
4
- allColumns: 'Toutes les colonnes',
5
- abbrColumn: '#',
6
- today: 'Aujourd\'hui',
7
- noDate: 'Sans date'
8
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
package/i18n/date/en.js DELETED
@@ -1,51 +0,0 @@
1
- export default {
2
- monday: 'Monday',
3
- tuesday: 'Tuesday',
4
- wednesday: 'Wednesday',
5
- thursday: 'Thursday',
6
- friday: 'Friday',
7
- saturday: 'Saturday',
8
- sunday: 'Sunday',
9
-
10
- mon: 'Mon',
11
- tue: 'Tue',
12
- wed: 'Wed',
13
- thu: 'Thu',
14
- fri: 'Fri',
15
- sat: 'Sat',
16
- sun: 'Sun',
17
-
18
- mo: 'Mo',
19
- tu: 'Tu',
20
- we: 'We',
21
- th: 'Th',
22
- fr: 'Fr',
23
- sa: 'Sa',
24
- su: 'Su',
25
-
26
- january: 'January',
27
- february: 'February',
28
- march: 'March',
29
- april: 'April',
30
- may: 'May',
31
- june: 'June',
32
- july: 'July',
33
- august: 'August',
34
- september: 'September',
35
- october: 'October',
36
- november: 'November',
37
- december: 'December',
38
-
39
- jan: 'Jan.',
40
- feb: 'Feb.',
41
- mar: 'Mar.',
42
- apr: 'Apr.',
43
- 'may.': 'May',
44
- jun: 'Jun.',
45
- jul: 'Jul.',
46
- aug: 'Aug.',
47
- sept: 'Sept.',
48
- oct: 'Oct.',
49
- nov: 'Nov.',
50
- dec: 'Dec.'
51
- }
package/i18n/date/fr.js DELETED
@@ -1,51 +0,0 @@
1
- export default {
2
- monday: 'lundi',
3
- tuesday: 'mardi',
4
- wednesday: 'mercredi',
5
- thursday: 'jeudi',
6
- friday: 'vendredi',
7
- saturday: 'samedi',
8
- sunday: 'dimanche',
9
-
10
- mon: 'lun',
11
- tue: 'mar',
12
- wed: 'mer',
13
- thu: 'jeu',
14
- fri: 'ven',
15
- sat: 'sam',
16
- sun: 'dim',
17
-
18
- mo: 'Lu',
19
- tu: 'Ma',
20
- we: 'Me',
21
- th: 'Je',
22
- fr: 'Ve',
23
- sa: 'Sa',
24
- su: 'Di',
25
-
26
- january: 'janvier',
27
- february: 'février',
28
- march: 'mars',
29
- april: 'avril',
30
- may: 'mai',
31
- june: 'juin',
32
- july: 'juillet',
33
- august: 'août',
34
- september: 'septembre',
35
- october: 'octobre',
36
- november: 'novembre',
37
- december: 'décembre',
38
-
39
- jan: 'janv.',
40
- feb: 'fév.',
41
- mar: 'mars',
42
- apr: 'avr.',
43
- 'may.': 'mai',
44
- jun: 'juin',
45
- jul: 'juil.',
46
- aug: 'août',
47
- sept: 'sept.',
48
- oct: 'oct.',
49
- nov: 'nov.',
50
- dec: 'déc.'
51
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
@@ -1,30 +0,0 @@
1
- export default {
2
- mo: 'Mo',
3
- tu: 'Tu',
4
- we: 'We',
5
- th: 'Th',
6
- fr: 'Fr',
7
- sa: 'Sa',
8
- su: 'Su',
9
-
10
- january: 'January',
11
- february: 'February',
12
- march: 'March',
13
- april: 'April',
14
- may: 'May',
15
- june: 'June',
16
- july: 'July',
17
- august: 'August',
18
- september: 'September',
19
- october: 'October',
20
- november: 'November',
21
- december: 'December',
22
-
23
- time: 'Time',
24
- hour: 'Hours',
25
- minute: 'Minutes',
26
- second: 'Seconds',
27
-
28
- today: 'Today',
29
- close: 'Close'
30
- }
@@ -1,30 +0,0 @@
1
- export default {
2
- mo: 'Lu',
3
- tu: 'Ma',
4
- we: 'Me',
5
- th: 'Je',
6
- fr: 'Ve',
7
- sa: 'Sa',
8
- su: 'Di',
9
-
10
- january: 'Janvier',
11
- february: 'Février',
12
- march: 'Mars',
13
- april: 'Avril',
14
- may: 'Mai',
15
- june: 'Juin',
16
- july: 'Juillet',
17
- august: 'Août',
18
- september: 'Septembre',
19
- october: 'Octobre',
20
- november: 'Novembre',
21
- december: 'Décembre',
22
-
23
- time: 'Moment',
24
- hour: 'Heures',
25
- minute: 'Minutes',
26
- second: 'Secondes',
27
-
28
- today: "Aujourd'hui",
29
- close: 'Fermer'
30
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
package/i18n/dialog/en.js DELETED
@@ -1,3 +0,0 @@
1
- export default {
2
- close: 'Close'
3
- }
package/i18n/dialog/fr.js DELETED
@@ -1,3 +0,0 @@
1
- export default {
2
- close: 'Fermer'
3
- }
@@ -1,2 +0,0 @@
1
- export {default as en} from './en.js';
2
- export {default as fr} from './fr.js';
@@ -1,73 +0,0 @@
1
- export default {
2
- 'pick a date': 'Pick a date',
3
-
4
- monday: 'Monday',
5
- tuesday: 'Tuesday',
6
- wednesday: 'Wednesday',
7
- thursday: 'Thursday',
8
- friday: 'Friday',
9
- saturday: 'Saturday',
10
- sunday: 'Sunday',
11
-
12
- mon: 'Mon',
13
- tue: 'Tue',
14
- wed: 'Wed',
15
- thu: 'Thu',
16
- fri: 'Fri',
17
- sat: 'Sat',
18
- sun: 'Sun',
19
-
20
- mo: 'Mo',
21
- tu: 'Tu',
22
- we: 'We',
23
- th: 'Th',
24
- fr: 'Fr',
25
- sa: 'Sa',
26
- su: 'Su',
27
-
28
- january: 'January',
29
- february: 'February',
30
- march: 'March',
31
- april: 'April',
32
- may: 'May',
33
- june: 'June',
34
- july: 'July',
35
- august: 'August',
36
- september: 'September',
37
- october: 'October',
38
- november: 'November',
39
- december: 'December',
40
-
41
- jan: 'Jan.',
42
- feb: 'Feb.',
43
- mar: 'Mar.',
44
- apr: 'Apr.',
45
- 'may.': 'May',
46
- jun: 'Jun.',
47
- 'jul.': 'Jul.',
48
- aug: 'Aug.',
49
- sept: 'Sept.',
50
- oct: 'Oct.',
51
- nov: 'Nov.',
52
- dec: 'Dec.',
53
-
54
- today: 'Today',
55
- prev_day: 'Previous day',
56
- next_day: 'Next day',
57
- prev_week: 'Previous week',
58
- next_week: 'Next week',
59
- prev_month: 'Previous month',
60
- next_month: 'Next month',
61
- week: 'Week',
62
- month: 'Month',
63
- day: 'Day',
64
- am: 'am',
65
- pm: 'pm',
66
-
67
- new_event: 'New event',
68
-
69
- date_title_month: 'MMMM yyyy',
70
- date_title_week: 'MMM d yyyy',
71
- date_title_day: 'EEEE d, MMMM yyyy',
72
- date_col_day: 'EE d, MMM'
73
- }