cone.calendar 1.1.0__py3-none-any.whl

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 (202) hide show
  1. cone/calendar/__init__.py +20 -0
  2. cone/calendar/browser/__init__.py +88 -0
  3. cone/calendar/browser/calendar.pt +16 -0
  4. cone/calendar/browser/calendar.py +370 -0
  5. cone/calendar/browser/static/calendar/cone.calendar.css +23 -0
  6. cone/calendar/browser/static/calendar/cone.calendar.js +241 -0
  7. cone/calendar/browser/static/calendar/cone.calendar.min.js +1 -0
  8. cone/calendar/browser/static/fullcalendar/fullcalendar.css +1404 -0
  9. cone/calendar/browser/static/fullcalendar/fullcalendar.js +14206 -0
  10. cone/calendar/browser/static/fullcalendar/fullcalendar.min.css +5 -0
  11. cone/calendar/browser/static/fullcalendar/fullcalendar.min.js +10 -0
  12. cone/calendar/browser/static/fullcalendar/fullcalendar.print.css +208 -0
  13. cone/calendar/browser/static/fullcalendar/fullcalendar.print.min.css +5 -0
  14. cone/calendar/browser/static/fullcalendar/gcal.js +180 -0
  15. cone/calendar/browser/static/fullcalendar/gcal.min.js +6 -0
  16. cone/calendar/browser/static/fullcalendar/locale/af.js +1 -0
  17. cone/calendar/browser/static/fullcalendar/locale/ar-dz.js +1 -0
  18. cone/calendar/browser/static/fullcalendar/locale/ar-ly.js +1 -0
  19. cone/calendar/browser/static/fullcalendar/locale/ar-ma.js +1 -0
  20. cone/calendar/browser/static/fullcalendar/locale/ar-sa.js +1 -0
  21. cone/calendar/browser/static/fullcalendar/locale/ar-tn.js +1 -0
  22. cone/calendar/browser/static/fullcalendar/locale/ar.js +1 -0
  23. cone/calendar/browser/static/fullcalendar/locale/bg.js +1 -0
  24. cone/calendar/browser/static/fullcalendar/locale/ca.js +1 -0
  25. cone/calendar/browser/static/fullcalendar/locale/cs.js +1 -0
  26. cone/calendar/browser/static/fullcalendar/locale/da.js +1 -0
  27. cone/calendar/browser/static/fullcalendar/locale/de-at.js +1 -0
  28. cone/calendar/browser/static/fullcalendar/locale/de.js +1 -0
  29. cone/calendar/browser/static/fullcalendar/locale/el.js +1 -0
  30. cone/calendar/browser/static/fullcalendar/locale/en-au.js +1 -0
  31. cone/calendar/browser/static/fullcalendar/locale/en-ca.js +1 -0
  32. cone/calendar/browser/static/fullcalendar/locale/en-gb.js +1 -0
  33. cone/calendar/browser/static/fullcalendar/locale/en-ie.js +1 -0
  34. cone/calendar/browser/static/fullcalendar/locale/en-nz.js +1 -0
  35. cone/calendar/browser/static/fullcalendar/locale/es-do.js +1 -0
  36. cone/calendar/browser/static/fullcalendar/locale/es.js +1 -0
  37. cone/calendar/browser/static/fullcalendar/locale/eu.js +1 -0
  38. cone/calendar/browser/static/fullcalendar/locale/fa.js +1 -0
  39. cone/calendar/browser/static/fullcalendar/locale/fi.js +1 -0
  40. cone/calendar/browser/static/fullcalendar/locale/fr-ca.js +1 -0
  41. cone/calendar/browser/static/fullcalendar/locale/fr-ch.js +1 -0
  42. cone/calendar/browser/static/fullcalendar/locale/fr.js +1 -0
  43. cone/calendar/browser/static/fullcalendar/locale/gl.js +1 -0
  44. cone/calendar/browser/static/fullcalendar/locale/he.js +1 -0
  45. cone/calendar/browser/static/fullcalendar/locale/hi.js +1 -0
  46. cone/calendar/browser/static/fullcalendar/locale/hr.js +1 -0
  47. cone/calendar/browser/static/fullcalendar/locale/hu.js +1 -0
  48. cone/calendar/browser/static/fullcalendar/locale/id.js +1 -0
  49. cone/calendar/browser/static/fullcalendar/locale/is.js +1 -0
  50. cone/calendar/browser/static/fullcalendar/locale/it.js +1 -0
  51. cone/calendar/browser/static/fullcalendar/locale/ja.js +1 -0
  52. cone/calendar/browser/static/fullcalendar/locale/kk.js +1 -0
  53. cone/calendar/browser/static/fullcalendar/locale/ko.js +1 -0
  54. cone/calendar/browser/static/fullcalendar/locale/lb.js +1 -0
  55. cone/calendar/browser/static/fullcalendar/locale/lt.js +1 -0
  56. cone/calendar/browser/static/fullcalendar/locale/lv.js +1 -0
  57. cone/calendar/browser/static/fullcalendar/locale/mk.js +1 -0
  58. cone/calendar/browser/static/fullcalendar/locale/ms-my.js +1 -0
  59. cone/calendar/browser/static/fullcalendar/locale/ms.js +1 -0
  60. cone/calendar/browser/static/fullcalendar/locale/nb.js +1 -0
  61. cone/calendar/browser/static/fullcalendar/locale/nl-be.js +1 -0
  62. cone/calendar/browser/static/fullcalendar/locale/nl.js +1 -0
  63. cone/calendar/browser/static/fullcalendar/locale/nn.js +1 -0
  64. cone/calendar/browser/static/fullcalendar/locale/pl.js +1 -0
  65. cone/calendar/browser/static/fullcalendar/locale/pt-br.js +1 -0
  66. cone/calendar/browser/static/fullcalendar/locale/pt.js +1 -0
  67. cone/calendar/browser/static/fullcalendar/locale/ro.js +1 -0
  68. cone/calendar/browser/static/fullcalendar/locale/ru.js +1 -0
  69. cone/calendar/browser/static/fullcalendar/locale/sk.js +1 -0
  70. cone/calendar/browser/static/fullcalendar/locale/sl.js +1 -0
  71. cone/calendar/browser/static/fullcalendar/locale/sr-cyrl.js +1 -0
  72. cone/calendar/browser/static/fullcalendar/locale/sr.js +1 -0
  73. cone/calendar/browser/static/fullcalendar/locale/sv.js +1 -0
  74. cone/calendar/browser/static/fullcalendar/locale/th.js +1 -0
  75. cone/calendar/browser/static/fullcalendar/locale/tr.js +1 -0
  76. cone/calendar/browser/static/fullcalendar/locale/uk.js +1 -0
  77. cone/calendar/browser/static/fullcalendar/locale/vi.js +1 -0
  78. cone/calendar/browser/static/fullcalendar/locale/zh-cn.js +1 -0
  79. cone/calendar/browser/static/fullcalendar/locale/zh-tw.js +1 -0
  80. cone/calendar/browser/static/fullcalendar/locale-all.js +5 -0
  81. cone/calendar/browser/static/moment/locale/af.js +73 -0
  82. cone/calendar/browser/static/moment/locale/ar-dz.js +59 -0
  83. cone/calendar/browser/static/moment/locale/ar-ly.js +126 -0
  84. cone/calendar/browser/static/moment/locale/ar-ma.js +60 -0
  85. cone/calendar/browser/static/moment/locale/ar-sa.js +105 -0
  86. cone/calendar/browser/static/moment/locale/ar-tn.js +59 -0
  87. cone/calendar/browser/static/moment/locale/ar.js +142 -0
  88. cone/calendar/browser/static/moment/locale/az.js +105 -0
  89. cone/calendar/browser/static/moment/locale/be.js +134 -0
  90. cone/calendar/browser/static/moment/locale/bg.js +90 -0
  91. cone/calendar/browser/static/moment/locale/bn.js +119 -0
  92. cone/calendar/browser/static/moment/locale/bo.js +119 -0
  93. cone/calendar/browser/static/moment/locale/br.js +108 -0
  94. cone/calendar/browser/static/moment/locale/bs.js +143 -0
  95. cone/calendar/browser/static/moment/locale/ca.js +81 -0
  96. cone/calendar/browser/static/moment/locale/cs.js +172 -0
  97. cone/calendar/browser/static/moment/locale/cv.js +63 -0
  98. cone/calendar/browser/static/moment/locale/cy.js +81 -0
  99. cone/calendar/browser/static/moment/locale/da.js +60 -0
  100. cone/calendar/browser/static/moment/locale/de-at.js +79 -0
  101. cone/calendar/browser/static/moment/locale/de.js +78 -0
  102. cone/calendar/browser/static/moment/locale/dv.js +100 -0
  103. cone/calendar/browser/static/moment/locale/el.js +98 -0
  104. cone/calendar/browser/static/moment/locale/en-au.js +67 -0
  105. cone/calendar/browser/static/moment/locale/en-ca.js +63 -0
  106. cone/calendar/browser/static/moment/locale/en-gb.js +67 -0
  107. cone/calendar/browser/static/moment/locale/en-ie.js +67 -0
  108. cone/calendar/browser/static/moment/locale/en-nz.js +67 -0
  109. cone/calendar/browser/static/moment/locale/eo.js +73 -0
  110. cone/calendar/browser/static/moment/locale/es-do.js +80 -0
  111. cone/calendar/browser/static/moment/locale/es.js +81 -0
  112. cone/calendar/browser/static/moment/locale/et.js +80 -0
  113. cone/calendar/browser/static/moment/locale/eu.js +66 -0
  114. cone/calendar/browser/static/moment/locale/fa.js +107 -0
  115. cone/calendar/browser/static/moment/locale/fi.js +107 -0
  116. cone/calendar/browser/static/moment/locale/fo.js +60 -0
  117. cone/calendar/browser/static/moment/locale/fr-ca.js +60 -0
  118. cone/calendar/browser/static/moment/locale/fr-ch.js +64 -0
  119. cone/calendar/browser/static/moment/locale/fr.js +64 -0
  120. cone/calendar/browser/static/moment/locale/fy.js +73 -0
  121. cone/calendar/browser/static/moment/locale/gd.js +76 -0
  122. cone/calendar/browser/static/moment/locale/gl.js +77 -0
  123. cone/calendar/browser/static/moment/locale/he.js +99 -0
  124. cone/calendar/browser/static/moment/locale/hi.js +124 -0
  125. cone/calendar/browser/static/moment/locale/hr.js +145 -0
  126. cone/calendar/browser/static/moment/locale/hu.js +109 -0
  127. cone/calendar/browser/static/moment/locale/hy-am.js +95 -0
  128. cone/calendar/browser/static/moment/locale/id.js +83 -0
  129. cone/calendar/browser/static/moment/locale/is.js +127 -0
  130. cone/calendar/browser/static/moment/locale/it.js +70 -0
  131. cone/calendar/browser/static/moment/locale/ja.js +76 -0
  132. cone/calendar/browser/static/moment/locale/jv.js +83 -0
  133. cone/calendar/browser/static/moment/locale/ka.js +89 -0
  134. cone/calendar/browser/static/moment/locale/kk.js +87 -0
  135. cone/calendar/browser/static/moment/locale/km.js +58 -0
  136. cone/calendar/browser/static/moment/locale/ko.js +65 -0
  137. cone/calendar/browser/static/moment/locale/ky.js +88 -0
  138. cone/calendar/browser/static/moment/locale/lb.js +137 -0
  139. cone/calendar/browser/static/moment/locale/lo.js +70 -0
  140. cone/calendar/browser/static/moment/locale/lt.js +117 -0
  141. cone/calendar/browser/static/moment/locale/lv.js +97 -0
  142. cone/calendar/browser/static/moment/locale/me.js +111 -0
  143. cone/calendar/browser/static/moment/locale/mi.js +64 -0
  144. cone/calendar/browser/static/moment/locale/mk.js +90 -0
  145. cone/calendar/browser/static/moment/locale/ml.js +81 -0
  146. cone/calendar/browser/static/moment/locale/mr.js +159 -0
  147. cone/calendar/browser/static/moment/locale/ms-my.js +83 -0
  148. cone/calendar/browser/static/moment/locale/ms.js +82 -0
  149. cone/calendar/browser/static/moment/locale/my.js +96 -0
  150. cone/calendar/browser/static/moment/locale/nb.js +63 -0
  151. cone/calendar/browser/static/moment/locale/ne.js +123 -0
  152. cone/calendar/browser/static/moment/locale/nl-be.js +86 -0
  153. cone/calendar/browser/static/moment/locale/nl.js +86 -0
  154. cone/calendar/browser/static/moment/locale/nn.js +60 -0
  155. cone/calendar/browser/static/moment/locale/pa-in.js +124 -0
  156. cone/calendar/browser/static/moment/locale/pl.js +105 -0
  157. cone/calendar/browser/static/moment/locale/pt-br.js +61 -0
  158. cone/calendar/browser/static/moment/locale/pt.js +65 -0
  159. cone/calendar/browser/static/moment/locale/ro.js +75 -0
  160. cone/calendar/browser/static/moment/locale/ru.js +183 -0
  161. cone/calendar/browser/static/moment/locale/se.js +61 -0
  162. cone/calendar/browser/static/moment/locale/si.js +71 -0
  163. cone/calendar/browser/static/moment/locale/sk.js +150 -0
  164. cone/calendar/browser/static/moment/locale/sl.js +162 -0
  165. cone/calendar/browser/static/moment/locale/sq.js +70 -0
  166. cone/calendar/browser/static/moment/locale/sr-cyrl.js +110 -0
  167. cone/calendar/browser/static/moment/locale/sr.js +110 -0
  168. cone/calendar/browser/static/moment/locale/ss.js +89 -0
  169. cone/calendar/browser/static/moment/locale/sv.js +69 -0
  170. cone/calendar/browser/static/moment/locale/sw.js +59 -0
  171. cone/calendar/browser/static/moment/locale/ta.js +130 -0
  172. cone/calendar/browser/static/moment/locale/te.js +89 -0
  173. cone/calendar/browser/static/moment/locale/tet.js +68 -0
  174. cone/calendar/browser/static/moment/locale/th.js +67 -0
  175. cone/calendar/browser/static/moment/locale/tl-ph.js +62 -0
  176. cone/calendar/browser/static/moment/locale/tlh.js +120 -0
  177. cone/calendar/browser/static/moment/locale/tr.js +90 -0
  178. cone/calendar/browser/static/moment/locale/tzl.js +91 -0
  179. cone/calendar/browser/static/moment/locale/tzm-latn.js +58 -0
  180. cone/calendar/browser/static/moment/locale/tzm.js +58 -0
  181. cone/calendar/browser/static/moment/locale/uk.js +146 -0
  182. cone/calendar/browser/static/moment/locale/uz.js +58 -0
  183. cone/calendar/browser/static/moment/locale/vi.js +79 -0
  184. cone/calendar/browser/static/moment/locale/x-pseudo.js +68 -0
  185. cone/calendar/browser/static/moment/locale/yo.js +60 -0
  186. cone/calendar/browser/static/moment/locale/zh-cn.js +127 -0
  187. cone/calendar/browser/static/moment/locale/zh-hk.js +105 -0
  188. cone/calendar/browser/static/moment/locale/zh-tw.js +104 -0
  189. cone/calendar/browser/static/moment/locales.js +8624 -0
  190. cone/calendar/browser/static/moment/locales.min.js +663 -0
  191. cone/calendar/browser/static/moment/moment-with-locales.js +12910 -0
  192. cone/calendar/browser/static/moment/moment-with-locales.min.js +1216 -0
  193. cone/calendar/browser/static/moment/moment.min.js +551 -0
  194. cone/calendar/interfaces.py +14 -0
  195. cone/calendar/locale/cone.calendar.pot +0 -0
  196. cone/calendar/locale/de/LC_MESSAGES/cone.calendar.po +0 -0
  197. cone/calendar/locale/en/LC_MESSAGES/cone.calendar.po +0 -0
  198. cone/calendar/tests/test_calendar.py +340 -0
  199. cone_calendar-1.1.0.dist-info/METADATA +252 -0
  200. cone_calendar-1.1.0.dist-info/RECORD +202 -0
  201. cone_calendar-1.1.0.dist-info/WHEEL +4 -0
  202. cone_calendar-1.1.0.dist-info/licenses/LICENSE.rst +27 -0
@@ -0,0 +1,73 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Afrikaans [af]
3
+ //! author : Werner Mollentze : https://github.com/wernerm
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+ var af = moment.defineLocale('af', {
14
+ months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
15
+ monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
16
+ weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
17
+ weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
18
+ weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
19
+ meridiemParse: /vm|nm/i,
20
+ isPM : function (input) {
21
+ return /^nm$/i.test(input);
22
+ },
23
+ meridiem : function (hours, minutes, isLower) {
24
+ if (hours < 12) {
25
+ return isLower ? 'vm' : 'VM';
26
+ } else {
27
+ return isLower ? 'nm' : 'NM';
28
+ }
29
+ },
30
+ longDateFormat : {
31
+ LT : 'HH:mm',
32
+ LTS : 'HH:mm:ss',
33
+ L : 'DD/MM/YYYY',
34
+ LL : 'D MMMM YYYY',
35
+ LLL : 'D MMMM YYYY HH:mm',
36
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
37
+ },
38
+ calendar : {
39
+ sameDay : '[Vandag om] LT',
40
+ nextDay : '[Môre om] LT',
41
+ nextWeek : 'dddd [om] LT',
42
+ lastDay : '[Gister om] LT',
43
+ lastWeek : '[Laas] dddd [om] LT',
44
+ sameElse : 'L'
45
+ },
46
+ relativeTime : {
47
+ future : 'oor %s',
48
+ past : '%s gelede',
49
+ s : '\'n paar sekondes',
50
+ m : '\'n minuut',
51
+ mm : '%d minute',
52
+ h : '\'n uur',
53
+ hh : '%d ure',
54
+ d : '\'n dag',
55
+ dd : '%d dae',
56
+ M : '\'n maand',
57
+ MM : '%d maande',
58
+ y : '\'n jaar',
59
+ yy : '%d jaar'
60
+ },
61
+ ordinalParse: /\d{1,2}(ste|de)/,
62
+ ordinal : function (number) {
63
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
64
+ },
65
+ week : {
66
+ dow : 1, // Maandag is die eerste dag van die week.
67
+ doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
68
+ }
69
+ });
70
+
71
+ return af;
72
+
73
+ })));
@@ -0,0 +1,59 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Algeria) [ar-dz]
3
+ //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+ var arDz = moment.defineLocale('ar-dz', {
14
+ months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
15
+ monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
16
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
17
+ weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
18
+ weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY HH:mm',
26
+ LLLL : 'dddd D MMMM YYYY HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[اليوم على الساعة] LT',
30
+ nextDay: '[غدا على الساعة] LT',
31
+ nextWeek: 'dddd [على الساعة] LT',
32
+ lastDay: '[أمس على الساعة] LT',
33
+ lastWeek: 'dddd [على الساعة] LT',
34
+ sameElse: 'L'
35
+ },
36
+ relativeTime : {
37
+ future : 'في %s',
38
+ past : 'منذ %s',
39
+ s : 'ثوان',
40
+ m : 'دقيقة',
41
+ mm : '%d دقائق',
42
+ h : 'ساعة',
43
+ hh : '%d ساعات',
44
+ d : 'يوم',
45
+ dd : '%d أيام',
46
+ M : 'شهر',
47
+ MM : '%d أشهر',
48
+ y : 'سنة',
49
+ yy : '%d سنوات'
50
+ },
51
+ week : {
52
+ dow : 0, // Sunday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 1st is the first week of the year.
54
+ }
55
+ });
56
+
57
+ return arDz;
58
+
59
+ })));
@@ -0,0 +1,126 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Lybia) [ar-ly]
3
+ //! author : Ali Hmer: https://github.com/kikoanis
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+ var symbolMap = {
14
+ '1': '1',
15
+ '2': '2',
16
+ '3': '3',
17
+ '4': '4',
18
+ '5': '5',
19
+ '6': '6',
20
+ '7': '7',
21
+ '8': '8',
22
+ '9': '9',
23
+ '0': '0'
24
+ };
25
+ var pluralForm = function (n) {
26
+ return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
27
+ };
28
+ var plurals = {
29
+ s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
30
+ m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
31
+ h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
32
+ d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
33
+ M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
34
+ y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
35
+ };
36
+ var pluralize = function (u) {
37
+ return function (number, withoutSuffix, string, isFuture) {
38
+ var f = pluralForm(number),
39
+ str = plurals[u][pluralForm(number)];
40
+ if (f === 2) {
41
+ str = str[withoutSuffix ? 0 : 1];
42
+ }
43
+ return str.replace(/%d/i, number);
44
+ };
45
+ };
46
+ var months = [
47
+ 'يناير',
48
+ 'فبراير',
49
+ 'مارس',
50
+ 'أبريل',
51
+ 'مايو',
52
+ 'يونيو',
53
+ 'يوليو',
54
+ 'أغسطس',
55
+ 'سبتمبر',
56
+ 'أكتوبر',
57
+ 'نوفمبر',
58
+ 'ديسمبر'
59
+ ];
60
+
61
+ var arLy = moment.defineLocale('ar-ly', {
62
+ months : months,
63
+ monthsShort : months,
64
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
65
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
66
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
67
+ weekdaysParseExact : true,
68
+ longDateFormat : {
69
+ LT : 'HH:mm',
70
+ LTS : 'HH:mm:ss',
71
+ L : 'D/\u200FM/\u200FYYYY',
72
+ LL : 'D MMMM YYYY',
73
+ LLL : 'D MMMM YYYY HH:mm',
74
+ LLLL : 'dddd D MMMM YYYY HH:mm'
75
+ },
76
+ meridiemParse: /ص|م/,
77
+ isPM : function (input) {
78
+ return 'م' === input;
79
+ },
80
+ meridiem : function (hour, minute, isLower) {
81
+ if (hour < 12) {
82
+ return 'ص';
83
+ } else {
84
+ return 'م';
85
+ }
86
+ },
87
+ calendar : {
88
+ sameDay: '[اليوم عند الساعة] LT',
89
+ nextDay: '[غدًا عند الساعة] LT',
90
+ nextWeek: 'dddd [عند الساعة] LT',
91
+ lastDay: '[أمس عند الساعة] LT',
92
+ lastWeek: 'dddd [عند الساعة] LT',
93
+ sameElse: 'L'
94
+ },
95
+ relativeTime : {
96
+ future : 'بعد %s',
97
+ past : 'منذ %s',
98
+ s : pluralize('s'),
99
+ m : pluralize('m'),
100
+ mm : pluralize('m'),
101
+ h : pluralize('h'),
102
+ hh : pluralize('h'),
103
+ d : pluralize('d'),
104
+ dd : pluralize('d'),
105
+ M : pluralize('M'),
106
+ MM : pluralize('M'),
107
+ y : pluralize('y'),
108
+ yy : pluralize('y')
109
+ },
110
+ preparse: function (string) {
111
+ return string.replace(/\u200f/g, '').replace(/،/g, ',');
112
+ },
113
+ postformat: function (string) {
114
+ return string.replace(/\d/g, function (match) {
115
+ return symbolMap[match];
116
+ }).replace(/,/g, '،');
117
+ },
118
+ week : {
119
+ dow : 6, // Saturday is the first day of the week.
120
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
121
+ }
122
+ });
123
+
124
+ return arLy;
125
+
126
+ })));
@@ -0,0 +1,60 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Morocco) [ar-ma]
3
+ //! author : ElFadili Yassine : https://github.com/ElFadiliY
4
+ //! author : Abdel Said : https://github.com/abdelsaid
5
+
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ var arMa = moment.defineLocale('ar-ma', {
15
+ months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
16
+ monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
17
+ weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
18
+ weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
19
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
20
+ weekdaysParseExact : true,
21
+ longDateFormat : {
22
+ LT : 'HH:mm',
23
+ LTS : 'HH:mm:ss',
24
+ L : 'DD/MM/YYYY',
25
+ LL : 'D MMMM YYYY',
26
+ LLL : 'D MMMM YYYY HH:mm',
27
+ LLLL : 'dddd D MMMM YYYY HH:mm'
28
+ },
29
+ calendar : {
30
+ sameDay: '[اليوم على الساعة] LT',
31
+ nextDay: '[غدا على الساعة] LT',
32
+ nextWeek: 'dddd [على الساعة] LT',
33
+ lastDay: '[أمس على الساعة] LT',
34
+ lastWeek: 'dddd [على الساعة] LT',
35
+ sameElse: 'L'
36
+ },
37
+ relativeTime : {
38
+ future : 'في %s',
39
+ past : 'منذ %s',
40
+ s : 'ثوان',
41
+ m : 'دقيقة',
42
+ mm : '%d دقائق',
43
+ h : 'ساعة',
44
+ hh : '%d ساعات',
45
+ d : 'يوم',
46
+ dd : '%d أيام',
47
+ M : 'شهر',
48
+ MM : '%d أشهر',
49
+ y : 'سنة',
50
+ yy : '%d سنوات'
51
+ },
52
+ week : {
53
+ dow : 6, // Saturday is the first day of the week.
54
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
55
+ }
56
+ });
57
+
58
+ return arMa;
59
+
60
+ })));
@@ -0,0 +1,105 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Saudi Arabia) [ar-sa]
3
+ //! author : Suhail Alkowaileet : https://github.com/xsoh
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+ var symbolMap = {
14
+ '1': '١',
15
+ '2': '٢',
16
+ '3': '٣',
17
+ '4': '٤',
18
+ '5': '٥',
19
+ '6': '٦',
20
+ '7': '٧',
21
+ '8': '٨',
22
+ '9': '٩',
23
+ '0': '٠'
24
+ };
25
+ var numberMap = {
26
+ '١': '1',
27
+ '٢': '2',
28
+ '٣': '3',
29
+ '٤': '4',
30
+ '٥': '5',
31
+ '٦': '6',
32
+ '٧': '7',
33
+ '٨': '8',
34
+ '٩': '9',
35
+ '٠': '0'
36
+ };
37
+
38
+ var arSa = moment.defineLocale('ar-sa', {
39
+ months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
40
+ monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
41
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
42
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
43
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
44
+ weekdaysParseExact : true,
45
+ longDateFormat : {
46
+ LT : 'HH:mm',
47
+ LTS : 'HH:mm:ss',
48
+ L : 'DD/MM/YYYY',
49
+ LL : 'D MMMM YYYY',
50
+ LLL : 'D MMMM YYYY HH:mm',
51
+ LLLL : 'dddd D MMMM YYYY HH:mm'
52
+ },
53
+ meridiemParse: /ص|م/,
54
+ isPM : function (input) {
55
+ return 'م' === input;
56
+ },
57
+ meridiem : function (hour, minute, isLower) {
58
+ if (hour < 12) {
59
+ return 'ص';
60
+ } else {
61
+ return 'م';
62
+ }
63
+ },
64
+ calendar : {
65
+ sameDay: '[اليوم على الساعة] LT',
66
+ nextDay: '[غدا على الساعة] LT',
67
+ nextWeek: 'dddd [على الساعة] LT',
68
+ lastDay: '[أمس على الساعة] LT',
69
+ lastWeek: 'dddd [على الساعة] LT',
70
+ sameElse: 'L'
71
+ },
72
+ relativeTime : {
73
+ future : 'في %s',
74
+ past : 'منذ %s',
75
+ s : 'ثوان',
76
+ m : 'دقيقة',
77
+ mm : '%d دقائق',
78
+ h : 'ساعة',
79
+ hh : '%d ساعات',
80
+ d : 'يوم',
81
+ dd : '%d أيام',
82
+ M : 'شهر',
83
+ MM : '%d أشهر',
84
+ y : 'سنة',
85
+ yy : '%d سنوات'
86
+ },
87
+ preparse: function (string) {
88
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
89
+ return numberMap[match];
90
+ }).replace(/،/g, ',');
91
+ },
92
+ postformat: function (string) {
93
+ return string.replace(/\d/g, function (match) {
94
+ return symbolMap[match];
95
+ }).replace(/,/g, '،');
96
+ },
97
+ week : {
98
+ dow : 0, // Sunday is the first day of the week.
99
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
100
+ }
101
+ });
102
+
103
+ return arSa;
104
+
105
+ })));
@@ -0,0 +1,59 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Tunisia) [ar-tn]
3
+ //! author : Nader Toukabri : https://github.com/naderio
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+ var arTn = moment.defineLocale('ar-tn', {
14
+ months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
15
+ monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
16
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
17
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
18
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat: {
21
+ LT: 'HH:mm',
22
+ LTS: 'HH:mm:ss',
23
+ L: 'DD/MM/YYYY',
24
+ LL: 'D MMMM YYYY',
25
+ LLL: 'D MMMM YYYY HH:mm',
26
+ LLLL: 'dddd D MMMM YYYY HH:mm'
27
+ },
28
+ calendar: {
29
+ sameDay: '[اليوم على الساعة] LT',
30
+ nextDay: '[غدا على الساعة] LT',
31
+ nextWeek: 'dddd [على الساعة] LT',
32
+ lastDay: '[أمس على الساعة] LT',
33
+ lastWeek: 'dddd [على الساعة] LT',
34
+ sameElse: 'L'
35
+ },
36
+ relativeTime: {
37
+ future: 'في %s',
38
+ past: 'منذ %s',
39
+ s: 'ثوان',
40
+ m: 'دقيقة',
41
+ mm: '%d دقائق',
42
+ h: 'ساعة',
43
+ hh: '%d ساعات',
44
+ d: 'يوم',
45
+ dd: '%d أيام',
46
+ M: 'شهر',
47
+ MM: '%d أشهر',
48
+ y: 'سنة',
49
+ yy: '%d سنوات'
50
+ },
51
+ week: {
52
+ dow: 1, // Monday is the first day of the week.
53
+ doy: 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+
57
+ return arTn;
58
+
59
+ })));
@@ -0,0 +1,142 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic [ar]
3
+ //! author : Abdel Said: https://github.com/abdelsaid
4
+ //! author : Ahmed Elkhatib
5
+ //! author : forabi https://github.com/forabi
6
+
7
+ ;(function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined'
9
+ && typeof require === 'function' ? factory(require('../moment')) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
+ factory(global.moment)
12
+ }(this, (function (moment) { 'use strict';
13
+
14
+
15
+ var symbolMap = {
16
+ '1': '١',
17
+ '2': '٢',
18
+ '3': '٣',
19
+ '4': '٤',
20
+ '5': '٥',
21
+ '6': '٦',
22
+ '7': '٧',
23
+ '8': '٨',
24
+ '9': '٩',
25
+ '0': '٠'
26
+ };
27
+ var numberMap = {
28
+ '١': '1',
29
+ '٢': '2',
30
+ '٣': '3',
31
+ '٤': '4',
32
+ '٥': '5',
33
+ '٦': '6',
34
+ '٧': '7',
35
+ '٨': '8',
36
+ '٩': '9',
37
+ '٠': '0'
38
+ };
39
+ var pluralForm = function (n) {
40
+ return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
41
+ };
42
+ var plurals = {
43
+ s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
44
+ m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
45
+ h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
46
+ d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
47
+ M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
48
+ y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
49
+ };
50
+ var pluralize = function (u) {
51
+ return function (number, withoutSuffix, string, isFuture) {
52
+ var f = pluralForm(number),
53
+ str = plurals[u][pluralForm(number)];
54
+ if (f === 2) {
55
+ str = str[withoutSuffix ? 0 : 1];
56
+ }
57
+ return str.replace(/%d/i, number);
58
+ };
59
+ };
60
+ var months = [
61
+ 'كانون الثاني يناير',
62
+ 'شباط فبراير',
63
+ 'آذار مارس',
64
+ 'نيسان أبريل',
65
+ 'أيار مايو',
66
+ 'حزيران يونيو',
67
+ 'تموز يوليو',
68
+ 'آب أغسطس',
69
+ 'أيلول سبتمبر',
70
+ 'تشرين الأول أكتوبر',
71
+ 'تشرين الثاني نوفمبر',
72
+ 'كانون الأول ديسمبر'
73
+ ];
74
+
75
+ var ar = moment.defineLocale('ar', {
76
+ months : months,
77
+ monthsShort : months,
78
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
79
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
80
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
81
+ weekdaysParseExact : true,
82
+ longDateFormat : {
83
+ LT : 'HH:mm',
84
+ LTS : 'HH:mm:ss',
85
+ L : 'D/\u200FM/\u200FYYYY',
86
+ LL : 'D MMMM YYYY',
87
+ LLL : 'D MMMM YYYY HH:mm',
88
+ LLLL : 'dddd D MMMM YYYY HH:mm'
89
+ },
90
+ meridiemParse: /ص|م/,
91
+ isPM : function (input) {
92
+ return 'م' === input;
93
+ },
94
+ meridiem : function (hour, minute, isLower) {
95
+ if (hour < 12) {
96
+ return 'ص';
97
+ } else {
98
+ return 'م';
99
+ }
100
+ },
101
+ calendar : {
102
+ sameDay: '[اليوم عند الساعة] LT',
103
+ nextDay: '[غدًا عند الساعة] LT',
104
+ nextWeek: 'dddd [عند الساعة] LT',
105
+ lastDay: '[أمس عند الساعة] LT',
106
+ lastWeek: 'dddd [عند الساعة] LT',
107
+ sameElse: 'L'
108
+ },
109
+ relativeTime : {
110
+ future : 'بعد %s',
111
+ past : 'منذ %s',
112
+ s : pluralize('s'),
113
+ m : pluralize('m'),
114
+ mm : pluralize('m'),
115
+ h : pluralize('h'),
116
+ hh : pluralize('h'),
117
+ d : pluralize('d'),
118
+ dd : pluralize('d'),
119
+ M : pluralize('M'),
120
+ MM : pluralize('M'),
121
+ y : pluralize('y'),
122
+ yy : pluralize('y')
123
+ },
124
+ preparse: function (string) {
125
+ return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
126
+ return numberMap[match];
127
+ }).replace(/،/g, ',');
128
+ },
129
+ postformat: function (string) {
130
+ return string.replace(/\d/g, function (match) {
131
+ return symbolMap[match];
132
+ }).replace(/,/g, '،');
133
+ },
134
+ week : {
135
+ dow : 6, // Saturday is the first day of the week.
136
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
137
+ }
138
+ });
139
+
140
+ return ar;
141
+
142
+ })));