locomotivecms 3.2.0.rc1 → 3.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (996) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/locomotive/views/inputs/rte/file_view.js.coffee +3 -0
  3. data/app/assets/javascripts/locomotive/views/inputs/rte/link_view.js.coffee +0 -1
  4. data/app/assets/stylesheets/locomotive/old/form/_rte.scss +6 -0
  5. data/app/controllers/locomotive/passwords_controller.rb +1 -3
  6. data/app/controllers/locomotive/sessions_controller.rb +1 -3
  7. data/app/inputs/locomotive/rte_input.rb +1 -1
  8. data/app/views/locomotive/shared/rte/_image_popover.html.slim +1 -0
  9. data/app/views/locomotive/shared/rte/_link_popover.html.slim +1 -2
  10. data/app/views/locomotive/shared/rte/_toolbar.html.slim +1 -1
  11. data/config/locales/simple_form.en.yml +1 -0
  12. data/config/locales/simple_form.fr.yml +1 -0
  13. data/lib/locomotive/version.rb +1 -1
  14. data/spec/requests/locomotive/steam/cache_spec.rb +1 -1
  15. data/vendor/assets/javascripts/locomotive/wysihtml5/parser_rules/advanced.js +8 -3
  16. metadata +4 -986
  17. data/vendor/assets/components/locomotive_sources/backbone/LICENSE +0 -22
  18. data/vendor/assets/components/locomotive_sources/backbone/backbone-min.js +0 -2
  19. data/vendor/assets/components/locomotive_sources/backbone/backbone-min.map +0 -1
  20. data/vendor/assets/components/locomotive_sources/backbone/backbone.js +0 -1894
  21. data/vendor/assets/components/locomotive_sources/backbone/bower.json +0 -8
  22. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/Gruntfile.js +0 -82
  23. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/LICENSE +0 -20
  24. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/README.md +0 -92
  25. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bootstrap-tagsinput.jquery.json +0 -27
  26. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bower.json +0 -42
  27. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.js +0 -87
  28. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js +0 -7
  29. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js.map +0 -1
  30. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-typeahead.css +0 -49
  31. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.css +0 -55
  32. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.js +0 -663
  33. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.less +0 -50
  34. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js +0 -7
  35. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js.map +0 -1
  36. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.zip +0 -0
  37. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.css +0 -67
  38. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.js +0 -15
  39. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs2.js +0 -74
  40. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs3.js +0 -95
  41. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/cities.json +0 -16
  42. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/citynames.json +0 -16
  43. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/bootstrap-2.3.2.html +0 -666
  44. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/index.html +0 -742
  45. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/karma.conf.js +0 -20
  46. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/package.json +0 -47
  47. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-angular.js +0 -87
  48. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-typeahead.css +0 -49
  49. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.css +0 -55
  50. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.js +0 -663
  51. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/CONTRIBUTING.md +0 -38
  52. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/Gruntfile.js +0 -191
  53. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/LICENSE +0 -21
  54. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/README.md +0 -37
  55. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/bower.json +0 -35
  56. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker-standalone.css +0 -103
  57. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css +0 -373
  58. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css +0 -5
  59. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js +0 -9
  60. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/component.json +0 -9
  61. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/composer.json +0 -28
  62. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ChangeLog.md +0 -222
  63. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ContributorsGuide.md +0 -126
  64. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Events.md +0 -96
  65. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Extras.md +0 -95
  66. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/FAQ.md +0 -22
  67. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Functions.md +0 -670
  68. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Installing.md +0 -161
  69. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Options.md +0 -473
  70. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Changelog.md +0 -6
  71. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Contributors guide.md +0 -6
  72. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/index.md +0 -592
  73. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/mkdocs.yml +0 -17
  74. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/package.json +0 -43
  75. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +0 -2552
  76. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less +0 -352
  77. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/bootstrap-datetimepicker-build.less +0 -17
  78. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.CSS.nuspec +0 -34
  79. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.nuspec +0 -34
  80. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/NuGet.exe +0 -0
  81. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/install.ps1 +0 -2
  82. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/_bootstrap-datetimepicker.scss +0 -343
  83. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build.scss +0 -16
  84. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js +0 -88
  85. data/vendor/assets/components/locomotive_sources/jquery-timeago/CNAME +0 -1
  86. data/vendor/assets/components/locomotive_sources/jquery-timeago/CONTRIBUTING.md +0 -37
  87. data/vendor/assets/components/locomotive_sources/jquery-timeago/LICENSE.txt +0 -22
  88. data/vendor/assets/components/locomotive_sources/jquery-timeago/README.markdown +0 -119
  89. data/vendor/assets/components/locomotive_sources/jquery-timeago/Rakefile +0 -22
  90. data/vendor/assets/components/locomotive_sources/jquery-timeago/bower.json +0 -12
  91. data/vendor/assets/components/locomotive_sources/jquery-timeago/clock.png +0 -0
  92. data/vendor/assets/components/locomotive_sources/jquery-timeago/composer.json +0 -32
  93. data/vendor/assets/components/locomotive_sources/jquery-timeago/contrib/timeago-koext.js +0 -14
  94. data/vendor/assets/components/locomotive_sources/jquery-timeago/index.html +0 -221
  95. data/vendor/assets/components/locomotive_sources/jquery-timeago/jquery.timeago.js +0 -225
  96. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/README.md +0 -27
  97. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.af.js +0 -20
  98. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ar.js +0 -96
  99. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.bg.js +0 -18
  100. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.bs.js +0 -49
  101. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ca.js +0 -18
  102. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.cs.js +0 -24
  103. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.cy.js +0 -20
  104. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.da.js +0 -18
  105. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.de.js +0 -18
  106. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.dv.js +0 -22
  107. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.el.js +0 -18
  108. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.en-short.js +0 -20
  109. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.en.js +0 -20
  110. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.es-short.js +0 -20
  111. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.es.js +0 -18
  112. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.et.js +0 -18
  113. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.eu.js +0 -17
  114. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fa-short.js +0 -20
  115. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fa.js +0 -22
  116. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fi.js +0 -28
  117. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fr-short.js +0 -16
  118. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fr.js +0 -17
  119. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.gl.js +0 -18
  120. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.he.js +0 -16
  121. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.hr.js +0 -49
  122. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.hu.js +0 -18
  123. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.hy.js +0 -18
  124. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.id.js +0 -18
  125. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.is.js +0 -19
  126. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.it-short.js +0 -20
  127. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.it.js +0 -16
  128. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ja.js +0 -19
  129. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.jv.js +0 -18
  130. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ko.js +0 -20
  131. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ky.js +0 -34
  132. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.lt.js +0 -20
  133. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.lv.js +0 -20
  134. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.mk.js +0 -20
  135. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.nl.js +0 -20
  136. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.no.js +0 -18
  137. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pl.js +0 -31
  138. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt-br-short.js +0 -20
  139. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt-br.js +0 -18
  140. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt-short.js +0 -20
  141. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt.js +0 -16
  142. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ro.js +0 -18
  143. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.rs.js +0 -49
  144. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ru.js +0 -34
  145. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.rw.js +0 -20
  146. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.si.js +0 -18
  147. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sk.js +0 -18
  148. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sl.js +0 -40
  149. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sr.js +0 -49
  150. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sv.js +0 -18
  151. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.th.js +0 -20
  152. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.tr.js +0 -16
  153. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.uk.js +0 -34
  154. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.uz.js +0 -19
  155. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.vi.js +0 -20
  156. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.zh-CN.js +0 -20
  157. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.zh-TW.js +0 -20
  158. data/vendor/assets/components/locomotive_sources/jquery-timeago/package.json +0 -37
  159. data/vendor/assets/components/locomotive_sources/jquery-timeago/timeago.jquery.json +0 -30
  160. data/vendor/assets/components/locomotive_sources/jquery/MIT-LICENSE.txt +0 -21
  161. data/vendor/assets/components/locomotive_sources/jquery/bower.json +0 -28
  162. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.js +0 -9210
  163. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.js +0 -5
  164. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.map +0 -1
  165. data/vendor/assets/components/locomotive_sources/jquery/src/ajax.js +0 -786
  166. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/jsonp.js +0 -89
  167. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/load.js +0 -75
  168. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/parseJSON.js +0 -13
  169. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/parseXML.js +0 -28
  170. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/script.js +0 -64
  171. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/var/nonce.js +0 -5
  172. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/var/rquery.js +0 -3
  173. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/xhr.js +0 -136
  174. data/vendor/assets/components/locomotive_sources/jquery/src/attributes.js +0 -11
  175. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/attr.js +0 -141
  176. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/classes.js +0 -158
  177. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/prop.js +0 -94
  178. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/support.js +0 -35
  179. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/val.js +0 -161
  180. data/vendor/assets/components/locomotive_sources/jquery/src/callbacks.js +0 -205
  181. data/vendor/assets/components/locomotive_sources/jquery/src/core.js +0 -502
  182. data/vendor/assets/components/locomotive_sources/jquery/src/core/access.js +0 -60
  183. data/vendor/assets/components/locomotive_sources/jquery/src/core/init.js +0 -123
  184. data/vendor/assets/components/locomotive_sources/jquery/src/core/parseHTML.js +0 -39
  185. data/vendor/assets/components/locomotive_sources/jquery/src/core/ready.js +0 -97
  186. data/vendor/assets/components/locomotive_sources/jquery/src/core/var/rsingleTag.js +0 -4
  187. data/vendor/assets/components/locomotive_sources/jquery/src/css.js +0 -450
  188. data/vendor/assets/components/locomotive_sources/jquery/src/css/addGetHookIf.js +0 -22
  189. data/vendor/assets/components/locomotive_sources/jquery/src/css/curCSS.js +0 -57
  190. data/vendor/assets/components/locomotive_sources/jquery/src/css/defaultDisplay.js +0 -70
  191. data/vendor/assets/components/locomotive_sources/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  192. data/vendor/assets/components/locomotive_sources/jquery/src/css/support.js +0 -96
  193. data/vendor/assets/components/locomotive_sources/jquery/src/css/swap.js +0 -28
  194. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/cssExpand.js +0 -3
  195. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/getStyles.js +0 -12
  196. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/isHidden.js +0 -13
  197. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/rmargin.js +0 -3
  198. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/rnumnonpx.js +0 -5
  199. data/vendor/assets/components/locomotive_sources/jquery/src/data.js +0 -178
  200. data/vendor/assets/components/locomotive_sources/jquery/src/data/Data.js +0 -181
  201. data/vendor/assets/components/locomotive_sources/jquery/src/data/accepts.js +0 -20
  202. data/vendor/assets/components/locomotive_sources/jquery/src/data/var/data_priv.js +0 -5
  203. data/vendor/assets/components/locomotive_sources/jquery/src/data/var/data_user.js +0 -5
  204. data/vendor/assets/components/locomotive_sources/jquery/src/deferred.js +0 -149
  205. data/vendor/assets/components/locomotive_sources/jquery/src/deprecated.js +0 -13
  206. data/vendor/assets/components/locomotive_sources/jquery/src/dimensions.js +0 -50
  207. data/vendor/assets/components/locomotive_sources/jquery/src/effects.js +0 -648
  208. data/vendor/assets/components/locomotive_sources/jquery/src/effects/Tween.js +0 -114
  209. data/vendor/assets/components/locomotive_sources/jquery/src/effects/animatedSelector.js +0 -13
  210. data/vendor/assets/components/locomotive_sources/jquery/src/event.js +0 -868
  211. data/vendor/assets/components/locomotive_sources/jquery/src/event/ajax.js +0 -13
  212. data/vendor/assets/components/locomotive_sources/jquery/src/event/alias.js +0 -39
  213. data/vendor/assets/components/locomotive_sources/jquery/src/event/support.js +0 -9
  214. data/vendor/assets/components/locomotive_sources/jquery/src/exports/amd.js +0 -24
  215. data/vendor/assets/components/locomotive_sources/jquery/src/exports/global.js +0 -32
  216. data/vendor/assets/components/locomotive_sources/jquery/src/intro.js +0 -44
  217. data/vendor/assets/components/locomotive_sources/jquery/src/jquery.js +0 -37
  218. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation.js +0 -580
  219. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/_evalUrl.js +0 -18
  220. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/support.js +0 -32
  221. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/var/rcheckableType.js +0 -3
  222. data/vendor/assets/components/locomotive_sources/jquery/src/offset.js +0 -207
  223. data/vendor/assets/components/locomotive_sources/jquery/src/outro.js +0 -1
  224. data/vendor/assets/components/locomotive_sources/jquery/src/queue.js +0 -142
  225. data/vendor/assets/components/locomotive_sources/jquery/src/queue/delay.js +0 -22
  226. data/vendor/assets/components/locomotive_sources/jquery/src/selector-native.js +0 -172
  227. data/vendor/assets/components/locomotive_sources/jquery/src/selector-sizzle.js +0 -14
  228. data/vendor/assets/components/locomotive_sources/jquery/src/selector.js +0 -1
  229. data/vendor/assets/components/locomotive_sources/jquery/src/serialize.js +0 -111
  230. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.js +0 -2067
  231. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  232. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  233. data/vendor/assets/components/locomotive_sources/jquery/src/traversing.js +0 -199
  234. data/vendor/assets/components/locomotive_sources/jquery/src/traversing/findFilter.js +0 -100
  235. data/vendor/assets/components/locomotive_sources/jquery/src/traversing/var/rneedsContext.js +0 -6
  236. data/vendor/assets/components/locomotive_sources/jquery/src/var/arr.js +0 -3
  237. data/vendor/assets/components/locomotive_sources/jquery/src/var/class2type.js +0 -4
  238. data/vendor/assets/components/locomotive_sources/jquery/src/var/concat.js +0 -5
  239. data/vendor/assets/components/locomotive_sources/jquery/src/var/hasOwn.js +0 -5
  240. data/vendor/assets/components/locomotive_sources/jquery/src/var/indexOf.js +0 -5
  241. data/vendor/assets/components/locomotive_sources/jquery/src/var/pnum.js +0 -3
  242. data/vendor/assets/components/locomotive_sources/jquery/src/var/push.js +0 -5
  243. data/vendor/assets/components/locomotive_sources/jquery/src/var/rnotwhite.js +0 -3
  244. data/vendor/assets/components/locomotive_sources/jquery/src/var/slice.js +0 -5
  245. data/vendor/assets/components/locomotive_sources/jquery/src/var/strundefined.js +0 -3
  246. data/vendor/assets/components/locomotive_sources/jquery/src/var/support.js +0 -4
  247. data/vendor/assets/components/locomotive_sources/jquery/src/var/toString.js +0 -5
  248. data/vendor/assets/components/locomotive_sources/jquery/src/wrap.js +0 -79
  249. data/vendor/assets/components/locomotive_sources/moment-timezone/LICENSE +0 -20
  250. data/vendor/assets/components/locomotive_sources/moment-timezone/README.md +0 -36
  251. data/vendor/assets/components/locomotive_sources/moment-timezone/bower.json +0 -18
  252. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.js +0 -1189
  253. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.min.js +0 -7
  254. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.js +0 -1189
  255. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.min.js +0 -7
  256. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone.min.js +0 -6
  257. data/vendor/assets/components/locomotive_sources/moment-timezone/changelog.md +0 -101
  258. data/vendor/assets/components/locomotive_sources/moment-timezone/composer.json +0 -43
  259. data/vendor/assets/components/locomotive_sources/moment-timezone/data/meta/latest.json +0 -5012
  260. data/vendor/assets/components/locomotive_sources/moment-timezone/data/packed/latest.json +0 -590
  261. data/vendor/assets/components/locomotive_sources/moment-timezone/data/unpacked/latest.json +0 -124081
  262. data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone-utils.js +0 -316
  263. data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone.js +0 -599
  264. data/vendor/assets/components/locomotive_sources/moment/CHANGELOG.md +0 -496
  265. data/vendor/assets/components/locomotive_sources/moment/LICENSE +0 -22
  266. data/vendor/assets/components/locomotive_sources/moment/README.md +0 -58
  267. data/vendor/assets/components/locomotive_sources/moment/bower.json +0 -22
  268. data/vendor/assets/components/locomotive_sources/moment/locale/af.js +0 -73
  269. data/vendor/assets/components/locomotive_sources/moment/locale/ar-ma.js +0 -59
  270. data/vendor/assets/components/locomotive_sources/moment/locale/ar-sa.js +0 -103
  271. data/vendor/assets/components/locomotive_sources/moment/locale/ar-tn.js +0 -57
  272. data/vendor/assets/components/locomotive_sources/moment/locale/ar.js +0 -136
  273. data/vendor/assets/components/locomotive_sources/moment/locale/az.js +0 -104
  274. data/vendor/assets/components/locomotive_sources/moment/locale/be.js +0 -134
  275. data/vendor/assets/components/locomotive_sources/moment/locale/bg.js +0 -90
  276. data/vendor/assets/components/locomotive_sources/moment/locale/bn.js +0 -113
  277. data/vendor/assets/components/locomotive_sources/moment/locale/bo.js +0 -110
  278. data/vendor/assets/components/locomotive_sources/moment/locale/br.js +0 -107
  279. data/vendor/assets/components/locomotive_sources/moment/locale/bs.js +0 -141
  280. data/vendor/assets/components/locomotive_sources/moment/locale/ca.js +0 -79
  281. data/vendor/assets/components/locomotive_sources/moment/locale/cs.js +0 -171
  282. data/vendor/assets/components/locomotive_sources/moment/locale/cv.js +0 -63
  283. data/vendor/assets/components/locomotive_sources/moment/locale/cy.js +0 -79
  284. data/vendor/assets/components/locomotive_sources/moment/locale/da.js +0 -60
  285. data/vendor/assets/components/locomotive_sources/moment/locale/de-at.js +0 -77
  286. data/vendor/assets/components/locomotive_sources/moment/locale/de.js +0 -76
  287. data/vendor/assets/components/locomotive_sources/moment/locale/dv.js +0 -99
  288. data/vendor/assets/components/locomotive_sources/moment/locale/el.js +0 -98
  289. data/vendor/assets/components/locomotive_sources/moment/locale/en-au.js +0 -66
  290. data/vendor/assets/components/locomotive_sources/moment/locale/en-ca.js +0 -63
  291. data/vendor/assets/components/locomotive_sources/moment/locale/en-gb.js +0 -67
  292. data/vendor/assets/components/locomotive_sources/moment/locale/en-ie.js +0 -67
  293. data/vendor/assets/components/locomotive_sources/moment/locale/en-nz.js +0 -66
  294. data/vendor/assets/components/locomotive_sources/moment/locale/eo.js +0 -73
  295. data/vendor/assets/components/locomotive_sources/moment/locale/es.js +0 -79
  296. data/vendor/assets/components/locomotive_sources/moment/locale/et.js +0 -80
  297. data/vendor/assets/components/locomotive_sources/moment/locale/eu.js +0 -64
  298. data/vendor/assets/components/locomotive_sources/moment/locale/fa.js +0 -105
  299. data/vendor/assets/components/locomotive_sources/moment/locale/fi.js +0 -107
  300. data/vendor/assets/components/locomotive_sources/moment/locale/fo.js +0 -60
  301. data/vendor/assets/components/locomotive_sources/moment/locale/fr-ca.js +0 -58
  302. data/vendor/assets/components/locomotive_sources/moment/locale/fr-ch.js +0 -62
  303. data/vendor/assets/components/locomotive_sources/moment/locale/fr.js +0 -62
  304. data/vendor/assets/components/locomotive_sources/moment/locale/fy.js +0 -71
  305. data/vendor/assets/components/locomotive_sources/moment/locale/gd.js +0 -76
  306. data/vendor/assets/components/locomotive_sources/moment/locale/gl.js +0 -75
  307. data/vendor/assets/components/locomotive_sources/moment/locale/he.js +0 -82
  308. data/vendor/assets/components/locomotive_sources/moment/locale/hi.js +0 -123
  309. data/vendor/assets/components/locomotive_sources/moment/locale/hr.js +0 -143
  310. data/vendor/assets/components/locomotive_sources/moment/locale/hu.js +0 -109
  311. data/vendor/assets/components/locomotive_sources/moment/locale/hy-am.js +0 -95
  312. data/vendor/assets/components/locomotive_sources/moment/locale/id.js +0 -83
  313. data/vendor/assets/components/locomotive_sources/moment/locale/is.js +0 -127
  314. data/vendor/assets/components/locomotive_sources/moment/locale/it.js +0 -70
  315. data/vendor/assets/components/locomotive_sources/moment/locale/ja.js +0 -65
  316. data/vendor/assets/components/locomotive_sources/moment/locale/jv.js +0 -83
  317. data/vendor/assets/components/locomotive_sources/moment/locale/ka.js +0 -89
  318. data/vendor/assets/components/locomotive_sources/moment/locale/kk.js +0 -87
  319. data/vendor/assets/components/locomotive_sources/moment/locale/km.js +0 -58
  320. data/vendor/assets/components/locomotive_sources/moment/locale/ko.js +0 -68
  321. data/vendor/assets/components/locomotive_sources/moment/locale/lb.js +0 -134
  322. data/vendor/assets/components/locomotive_sources/moment/locale/lo.js +0 -69
  323. data/vendor/assets/components/locomotive_sources/moment/locale/lt.js +0 -115
  324. data/vendor/assets/components/locomotive_sources/moment/locale/lv.js +0 -96
  325. data/vendor/assets/components/locomotive_sources/moment/locale/me.js +0 -109
  326. data/vendor/assets/components/locomotive_sources/moment/locale/mk.js +0 -90
  327. data/vendor/assets/components/locomotive_sources/moment/locale/ml.js +0 -71
  328. data/vendor/assets/components/locomotive_sources/moment/locale/mr.js +0 -158
  329. data/vendor/assets/components/locomotive_sources/moment/locale/ms-my.js +0 -82
  330. data/vendor/assets/components/locomotive_sources/moment/locale/ms.js +0 -82
  331. data/vendor/assets/components/locomotive_sources/moment/locale/my.js +0 -93
  332. data/vendor/assets/components/locomotive_sources/moment/locale/nb.js +0 -61
  333. data/vendor/assets/components/locomotive_sources/moment/locale/ne.js +0 -121
  334. data/vendor/assets/components/locomotive_sources/moment/locale/nl.js +0 -71
  335. data/vendor/assets/components/locomotive_sources/moment/locale/nn.js +0 -60
  336. data/vendor/assets/components/locomotive_sources/moment/locale/pl.js +0 -105
  337. data/vendor/assets/components/locomotive_sources/moment/locale/pt-br.js +0 -60
  338. data/vendor/assets/components/locomotive_sources/moment/locale/pt.js +0 -64
  339. data/vendor/assets/components/locomotive_sources/moment/locale/ro.js +0 -74
  340. data/vendor/assets/components/locomotive_sources/moment/locale/ru.js +0 -166
  341. data/vendor/assets/components/locomotive_sources/moment/locale/se.js +0 -61
  342. data/vendor/assets/components/locomotive_sources/moment/locale/si.js +0 -66
  343. data/vendor/assets/components/locomotive_sources/moment/locale/sk.js +0 -150
  344. data/vendor/assets/components/locomotive_sources/moment/locale/sl.js +0 -160
  345. data/vendor/assets/components/locomotive_sources/moment/locale/sq.js +0 -69
  346. data/vendor/assets/components/locomotive_sources/moment/locale/sr-cyrl.js +0 -108
  347. data/vendor/assets/components/locomotive_sources/moment/locale/sr.js +0 -108
  348. data/vendor/assets/components/locomotive_sources/moment/locale/sv.js +0 -67
  349. data/vendor/assets/components/locomotive_sources/moment/locale/sw.js +0 -58
  350. data/vendor/assets/components/locomotive_sources/moment/locale/ta.js +0 -129
  351. data/vendor/assets/components/locomotive_sources/moment/locale/te.js +0 -88
  352. data/vendor/assets/components/locomotive_sources/moment/locale/th.js +0 -65
  353. data/vendor/assets/components/locomotive_sources/moment/locale/tl-ph.js +0 -62
  354. data/vendor/assets/components/locomotive_sources/moment/locale/tlh.js +0 -119
  355. data/vendor/assets/components/locomotive_sources/moment/locale/tr.js +0 -90
  356. data/vendor/assets/components/locomotive_sources/moment/locale/tzl.js +0 -87
  357. data/vendor/assets/components/locomotive_sources/moment/locale/tzm-latn.js +0 -58
  358. data/vendor/assets/components/locomotive_sources/moment/locale/tzm.js +0 -58
  359. data/vendor/assets/components/locomotive_sources/moment/locale/uk.js +0 -146
  360. data/vendor/assets/components/locomotive_sources/moment/locale/uz.js +0 -58
  361. data/vendor/assets/components/locomotive_sources/moment/locale/vi.js +0 -66
  362. data/vendor/assets/components/locomotive_sources/moment/locale/zh-cn.js +0 -127
  363. data/vendor/assets/components/locomotive_sources/moment/locale/zh-tw.js +0 -101
  364. data/vendor/assets/components/locomotive_sources/moment/min/locales.js +0 -7548
  365. data/vendor/assets/components/locomotive_sources/moment/min/locales.min.js +0 -72
  366. data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.js +0 -11144
  367. data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.min.js +0 -74
  368. data/vendor/assets/components/locomotive_sources/moment/min/moment.min.js +0 -7
  369. data/vendor/assets/components/locomotive_sources/moment/min/tests.js +0 -46196
  370. data/vendor/assets/components/locomotive_sources/moment/moment.js +0 -3606
  371. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/check-overflow.js +0 -34
  372. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/date-from-array.js +0 -21
  373. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-anything.js +0 -101
  374. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-array.js +0 -136
  375. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-object.js +0 -16
  376. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-array.js +0 -50
  377. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-format.js +0 -104
  378. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string.js +0 -120
  379. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/local.js +0 -5
  380. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js +0 -22
  381. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/utc.js +0 -5
  382. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/valid.js +0 -37
  383. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/abs.js +0 -18
  384. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/add-subtract.js +0 -21
  385. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/as.js +0 -55
  386. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/bubble.js +0 -61
  387. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/constructor.js +0 -41
  388. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/create.js +0 -117
  389. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/duration.js +0 -12
  390. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/get.js +0 -25
  391. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/humanize.js +0 -64
  392. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/iso-string.js +0 -52
  393. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/prototype.js +0 -48
  394. data/vendor/assets/components/locomotive_sources/moment/src/lib/format/format.js +0 -92
  395. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/calendar.js +0 -15
  396. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/constructor.js +0 -2
  397. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/en.js +0 -15
  398. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/formats.js +0 -23
  399. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/invalid.js +0 -5
  400. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/lists.js +0 -48
  401. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locale.js +0 -35
  402. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locales.js +0 -118
  403. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/ordinal.js +0 -7
  404. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/pre-post-format.js +0 -3
  405. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/prototype.js +0 -76
  406. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/relative.js +0 -29
  407. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/set.js +0 -16
  408. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/add-subtract.js +0 -52
  409. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/calendar.js +0 -21
  410. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/clone.js +0 -5
  411. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/compare.js +0 -57
  412. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/constructor.js +0 -74
  413. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/creation-data.js +0 -9
  414. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/diff.js +0 -61
  415. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/format.js +0 -28
  416. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/from.js +0 -17
  417. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/get-set.js +0 -43
  418. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/locale.js +0 -34
  419. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/min-max.js +0 -63
  420. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/moment.js +0 -28
  421. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/now.js +0 -3
  422. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/prototype.js +0 -149
  423. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/start-end-of.js +0 -52
  424. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to-type.js +0 -34
  425. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to.js +0 -17
  426. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/valid.js +0 -15
  427. data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/regex.js +0 -54
  428. data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/token.js +0 -32
  429. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/aliases.js +0 -29
  430. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/constants.js +0 -9
  431. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-month.js +0 -32
  432. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-week.js +0 -162
  433. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-year.js +0 -32
  434. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/hour.js +0 -129
  435. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/millisecond.js +0 -64
  436. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/minute.js +0 -24
  437. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/month.js +0 -209
  438. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/offset.js +0 -219
  439. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/quarter.js +0 -27
  440. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/second.js +0 -24
  441. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timestamp.js +0 -20
  442. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timezone.js +0 -16
  443. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/units.js +0 -20
  444. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-calendar-utils.js +0 -65
  445. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-year.js +0 -101
  446. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week.js +0 -61
  447. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/year.js +0 -70
  448. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-ceil.js +0 -7
  449. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-floor.js +0 -7
  450. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/compare-arrays.js +0 -16
  451. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/defaults.js +0 -10
  452. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/deprecate.js +0 -33
  453. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/extend.js +0 -19
  454. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/has-own-prop.js +0 -3
  455. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/hooks.js +0 -13
  456. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-array.js +0 -3
  457. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-date.js +0 -3
  458. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-function.js +0 -3
  459. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-undefined.js +0 -3
  460. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/map.js +0 -7
  461. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/to-int.js +0 -12
  462. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/zero-fill.js +0 -7
  463. data/vendor/assets/components/locomotive_sources/moment/src/locale/af.js +0 -63
  464. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-ma.js +0 -50
  465. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-sa.js +0 -94
  466. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-tn.js +0 -48
  467. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar.js +0 -127
  468. data/vendor/assets/components/locomotive_sources/moment/src/locale/az.js +0 -95
  469. data/vendor/assets/components/locomotive_sources/moment/src/locale/be.js +0 -125
  470. data/vendor/assets/components/locomotive_sources/moment/src/locale/bg.js +0 -81
  471. data/vendor/assets/components/locomotive_sources/moment/src/locale/bn.js +0 -104
  472. data/vendor/assets/components/locomotive_sources/moment/src/locale/bo.js +0 -101
  473. data/vendor/assets/components/locomotive_sources/moment/src/locale/br.js +0 -98
  474. data/vendor/assets/components/locomotive_sources/moment/src/locale/bs.js +0 -132
  475. data/vendor/assets/components/locomotive_sources/moment/src/locale/ca.js +0 -70
  476. data/vendor/assets/components/locomotive_sources/moment/src/locale/cs.js +0 -162
  477. data/vendor/assets/components/locomotive_sources/moment/src/locale/cv.js +0 -53
  478. data/vendor/assets/components/locomotive_sources/moment/src/locale/cy.js +0 -70
  479. data/vendor/assets/components/locomotive_sources/moment/src/locale/da.js +0 -51
  480. data/vendor/assets/components/locomotive_sources/moment/src/locale/de-at.js +0 -67
  481. data/vendor/assets/components/locomotive_sources/moment/src/locale/de.js +0 -66
  482. data/vendor/assets/components/locomotive_sources/moment/src/locale/dv.js +0 -89
  483. data/vendor/assets/components/locomotive_sources/moment/src/locale/el.js +0 -86
  484. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-au.js +0 -57
  485. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ca.js +0 -54
  486. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-gb.js +0 -58
  487. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ie.js +0 -58
  488. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-nz.js +0 -56
  489. data/vendor/assets/components/locomotive_sources/moment/src/locale/eo.js +0 -64
  490. data/vendor/assets/components/locomotive_sources/moment/src/locale/es.js +0 -70
  491. data/vendor/assets/components/locomotive_sources/moment/src/locale/et.js +0 -71
  492. data/vendor/assets/components/locomotive_sources/moment/src/locale/eu.js +0 -55
  493. data/vendor/assets/components/locomotive_sources/moment/src/locale/fa.js +0 -96
  494. data/vendor/assets/components/locomotive_sources/moment/src/locale/fi.js +0 -98
  495. data/vendor/assets/components/locomotive_sources/moment/src/locale/fo.js +0 -51
  496. data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ca.js +0 -49
  497. data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ch.js +0 -53
  498. data/vendor/assets/components/locomotive_sources/moment/src/locale/fr.js +0 -53
  499. data/vendor/assets/components/locomotive_sources/moment/src/locale/fy.js +0 -62
  500. data/vendor/assets/components/locomotive_sources/moment/src/locale/gd.js +0 -67
  501. data/vendor/assets/components/locomotive_sources/moment/src/locale/gl.js +0 -66
  502. data/vendor/assets/components/locomotive_sources/moment/src/locale/he.js +0 -73
  503. data/vendor/assets/components/locomotive_sources/moment/src/locale/hi.js +0 -114
  504. data/vendor/assets/components/locomotive_sources/moment/src/locale/hr.js +0 -134
  505. data/vendor/assets/components/locomotive_sources/moment/src/locale/hu.js +0 -100
  506. data/vendor/assets/components/locomotive_sources/moment/src/locale/hy-am.js +0 -86
  507. data/vendor/assets/components/locomotive_sources/moment/src/locale/id.js +0 -74
  508. data/vendor/assets/components/locomotive_sources/moment/src/locale/is.js +0 -118
  509. data/vendor/assets/components/locomotive_sources/moment/src/locale/it.js +0 -61
  510. data/vendor/assets/components/locomotive_sources/moment/src/locale/ja.js +0 -56
  511. data/vendor/assets/components/locomotive_sources/moment/src/locale/jv.js +0 -73
  512. data/vendor/assets/components/locomotive_sources/moment/src/locale/ka.js +0 -80
  513. data/vendor/assets/components/locomotive_sources/moment/src/locale/kk.js +0 -77
  514. data/vendor/assets/components/locomotive_sources/moment/src/locale/km.js +0 -49
  515. data/vendor/assets/components/locomotive_sources/moment/src/locale/ko.js +0 -59
  516. data/vendor/assets/components/locomotive_sources/moment/src/locale/lb.js +0 -125
  517. data/vendor/assets/components/locomotive_sources/moment/src/locale/lo.js +0 -60
  518. data/vendor/assets/components/locomotive_sources/moment/src/locale/lt.js +0 -106
  519. data/vendor/assets/components/locomotive_sources/moment/src/locale/lv.js +0 -87
  520. data/vendor/assets/components/locomotive_sources/moment/src/locale/me.js +0 -99
  521. data/vendor/assets/components/locomotive_sources/moment/src/locale/mk.js +0 -81
  522. data/vendor/assets/components/locomotive_sources/moment/src/locale/ml.js +0 -62
  523. data/vendor/assets/components/locomotive_sources/moment/src/locale/mr.js +0 -149
  524. data/vendor/assets/components/locomotive_sources/moment/src/locale/ms-my.js +0 -73
  525. data/vendor/assets/components/locomotive_sources/moment/src/locale/ms.js +0 -73
  526. data/vendor/assets/components/locomotive_sources/moment/src/locale/my.js +0 -84
  527. data/vendor/assets/components/locomotive_sources/moment/src/locale/nb.js +0 -52
  528. data/vendor/assets/components/locomotive_sources/moment/src/locale/ne.js +0 -112
  529. data/vendor/assets/components/locomotive_sources/moment/src/locale/nl.js +0 -62
  530. data/vendor/assets/components/locomotive_sources/moment/src/locale/nn.js +0 -51
  531. data/vendor/assets/components/locomotive_sources/moment/src/locale/pl.js +0 -95
  532. data/vendor/assets/components/locomotive_sources/moment/src/locale/pt-br.js +0 -51
  533. data/vendor/assets/components/locomotive_sources/moment/src/locale/pt.js +0 -55
  534. data/vendor/assets/components/locomotive_sources/moment/src/locale/ro.js +0 -65
  535. data/vendor/assets/components/locomotive_sources/moment/src/locale/ru.js +0 -156
  536. data/vendor/assets/components/locomotive_sources/moment/src/locale/se.js +0 -51
  537. data/vendor/assets/components/locomotive_sources/moment/src/locale/si.js +0 -56
  538. data/vendor/assets/components/locomotive_sources/moment/src/locale/sk.js +0 -141
  539. data/vendor/assets/components/locomotive_sources/moment/src/locale/sl.js +0 -150
  540. data/vendor/assets/components/locomotive_sources/moment/src/locale/sq.js +0 -60
  541. data/vendor/assets/components/locomotive_sources/moment/src/locale/sr-cyrl.js +0 -99
  542. data/vendor/assets/components/locomotive_sources/moment/src/locale/sr.js +0 -99
  543. data/vendor/assets/components/locomotive_sources/moment/src/locale/sv.js +0 -58
  544. data/vendor/assets/components/locomotive_sources/moment/src/locale/sw.js +0 -49
  545. data/vendor/assets/components/locomotive_sources/moment/src/locale/ta.js +0 -120
  546. data/vendor/assets/components/locomotive_sources/moment/src/locale/te.js +0 -78
  547. data/vendor/assets/components/locomotive_sources/moment/src/locale/th.js +0 -56
  548. data/vendor/assets/components/locomotive_sources/moment/src/locale/tl-ph.js +0 -53
  549. data/vendor/assets/components/locomotive_sources/moment/src/locale/tlh.js +0 -109
  550. data/vendor/assets/components/locomotive_sources/moment/src/locale/tr.js +0 -81
  551. data/vendor/assets/components/locomotive_sources/moment/src/locale/tzl.js +0 -78
  552. data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm-latn.js +0 -49
  553. data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm.js +0 -49
  554. data/vendor/assets/components/locomotive_sources/moment/src/locale/uk.js +0 -137
  555. data/vendor/assets/components/locomotive_sources/moment/src/locale/uz.js +0 -49
  556. data/vendor/assets/components/locomotive_sources/moment/src/locale/vi.js +0 -57
  557. data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-cn.js +0 -118
  558. data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-tw.js +0 -91
  559. data/vendor/assets/components/locomotive_sources/moment/src/moment.js +0 -71
  560. data/vendor/assets/components/locomotive_sources/moment/templates/amd-named.js +0 -7
  561. data/vendor/assets/components/locomotive_sources/moment/templates/amd.js +0 -7
  562. data/vendor/assets/components/locomotive_sources/moment/templates/default.js +0 -5
  563. data/vendor/assets/components/locomotive_sources/moment/templates/globals.js +0 -5
  564. data/vendor/assets/components/locomotive_sources/moment/templates/locale-header.js +0 -6
  565. data/vendor/assets/components/locomotive_sources/moment/templates/test-header.js +0 -6
  566. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/Gemfile +0 -3
  567. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/Gruntfile.js +0 -110
  568. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/LICENSE +0 -8
  569. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/README.md +0 -91
  570. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.3.2.html +0 -4
  571. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.1.html +0 -4
  572. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.2.html +0 -4
  573. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.3.html +0 -4
  574. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.4.html +0 -4
  575. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.5.html +0 -4
  576. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.5.1.html +0 -4
  577. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.5.2.html +0 -4
  578. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_config.yml +0 -13
  579. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/footer-links.html +0 -9
  580. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/footer.html +0 -10
  581. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/head.html +0 -13
  582. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/navbar.html +0 -21
  583. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/select2-select.html +0 -55
  584. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_layouts/default.html +0 -489
  585. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_layouts/minimal.html +0 -7
  586. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_extends.sass +0 -4
  587. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_mixins.sass +0 -9
  588. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_select2-result-repository.sass +0 -40
  589. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_variables.sass +0 -1
  590. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/css/bootstrap.min.css +0 -5
  591. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/css/gh-pages.sass +0 -103
  592. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/css/select2-bootstrap.css +0 -495
  593. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/favicon.ico +0 -0
  594. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.eot +0 -0
  595. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.svg +0 -288
  596. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.ttf +0 -0
  597. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.woff +0 -0
  598. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.woff2 +0 -0
  599. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/index.html +0 -77
  600. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/js/bootstrap.min.js +0 -7
  601. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/js/respond.min.js +0 -5
  602. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/master.html +0 -4
  603. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/bower.json +0 -20
  604. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/compass/stylesheets/select2-bootstrap.scss +0 -1
  605. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.3.2.html +0 -1668
  606. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.1.html +0 -1662
  607. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.2.html +0 -1662
  608. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.3.html +0 -1662
  609. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.4.html +0 -1662
  610. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.5.html +0 -1662
  611. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.5.1.html +0 -1662
  612. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.5.2.html +0 -1662
  613. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/css/bootstrap.min.css +0 -5
  614. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/css/gh-pages.css +0 -142
  615. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/css/select2-bootstrap.css +0 -495
  616. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/favicon.ico +0 -0
  617. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  618. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.svg +0 -288
  619. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  620. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  621. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  622. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/index.html +0 -293
  623. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/js/bootstrap.min.js +0 -7
  624. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/js/respond.min.js +0 -5
  625. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/master.html +0 -1662
  626. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/build.less +0 -3
  627. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/build.scss +0 -3
  628. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap-css.rb +0 -11
  629. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap.less +0 -480
  630. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap.scss +0 -480
  631. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap/version.rb +0 -9
  632. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/package.json +0 -48
  633. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/select2-bootstrap-css.gemspec +0 -22
  634. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/select2-bootstrap.css +0 -495
  635. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/select2-bootstrap.min.css +0 -1
  636. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/less_test.js +0 -25
  637. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/scss_test.js +0 -25
  638. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/support/less.patch +0 -416
  639. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/support/scss.patch +0 -4
  640. data/vendor/assets/components/locomotive_sources/select2/CONTRIBUTING.md +0 -204
  641. data/vendor/assets/components/locomotive_sources/select2/Gruntfile.js +0 -370
  642. data/vendor/assets/components/locomotive_sources/select2/LICENSE.md +0 -21
  643. data/vendor/assets/components/locomotive_sources/select2/README.md +0 -105
  644. data/vendor/assets/components/locomotive_sources/select2/bower.json +0 -12
  645. data/vendor/assets/components/locomotive_sources/select2/component.json +0 -19
  646. data/vendor/assets/components/locomotive_sources/select2/composer.json +0 -25
  647. data/vendor/assets/components/locomotive_sources/select2/dist/css/select2.css +0 -482
  648. data/vendor/assets/components/locomotive_sources/select2/dist/css/select2.min.css +0 -1
  649. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ar.js +0 -3
  650. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/az.js +0 -3
  651. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/bg.js +0 -3
  652. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ca.js +0 -3
  653. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/cs.js +0 -3
  654. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/da.js +0 -3
  655. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/de.js +0 -3
  656. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/en.js +0 -3
  657. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/es.js +0 -3
  658. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/et.js +0 -3
  659. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/eu.js +0 -3
  660. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/fa.js +0 -3
  661. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/fi.js +0 -3
  662. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/fr.js +0 -3
  663. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/gl.js +0 -3
  664. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/he.js +0 -3
  665. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/hi.js +0 -3
  666. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/hr.js +0 -3
  667. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/hu.js +0 -3
  668. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/id.js +0 -3
  669. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/is.js +0 -3
  670. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/it.js +0 -3
  671. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ja.js +0 -3
  672. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ko.js +0 -3
  673. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/lt.js +0 -3
  674. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/lv.js +0 -3
  675. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/mk.js +0 -3
  676. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ms.js +0 -3
  677. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/nb.js +0 -3
  678. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/nl.js +0 -3
  679. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/pl.js +0 -3
  680. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/pt-BR.js +0 -3
  681. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/pt.js +0 -3
  682. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ro.js +0 -3
  683. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ru.js +0 -3
  684. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sk.js +0 -3
  685. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sr-Cyrl.js +0 -3
  686. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sr.js +0 -3
  687. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sv.js +0 -3
  688. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/th.js +0 -3
  689. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/tr.js +0 -3
  690. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/uk.js +0 -3
  691. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/vi.js +0 -3
  692. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/zh-CN.js +0 -3
  693. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/zh-TW.js +0 -3
  694. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.full.js +0 -6281
  695. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.full.min.js +0 -3
  696. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.js +0 -5571
  697. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.min.js +0 -2
  698. data/vendor/assets/components/locomotive_sources/select2/docs/README.md +0 -38
  699. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/basics.html +0 -65
  700. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/data.html +0 -128
  701. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/disabled-mode.html +0 -43
  702. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/disabled-results.html +0 -32
  703. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/hide-search.html +0 -25
  704. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/localization-rtl-diacritics.html +0 -90
  705. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/matcher.html +0 -43
  706. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/multiple-max.html +0 -28
  707. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/placeholders.html +0 -37
  708. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/programmatic-control.html +0 -156
  709. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/tags.html +0 -33
  710. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/themes-templating-responsive-design.html +0 -111
  711. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/tokenizer.html +0 -36
  712. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/footer.html +0 -20
  713. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/ga.html +0 -9
  714. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/head.html +0 -19
  715. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/js-source-states.html +0 -62
  716. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/announcements-4.0.html +0 -26
  717. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/examples.html +0 -96
  718. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/options-old.html +0 -55
  719. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/options.html +0 -77
  720. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/navigation.html +0 -53
  721. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/notice-previous.html +0 -7
  722. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/adapters.html +0 -209
  723. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/backwards-compatibility.html +0 -200
  724. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/core-options.html +0 -790
  725. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/dropdown.html +0 -308
  726. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/events.html +0 -50
  727. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/setting-default-options.html +0 -37
  728. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility.html +0 -10
  729. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/initial-selection.html +0 -50
  730. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/introduction.html +0 -18
  731. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/matcher.html +0 -50
  732. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/query-function.html +0 -50
  733. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/text-input.html +0 -32
  734. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core.html +0 -9
  735. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core/amd-support.html +0 -38
  736. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core/data-attributes.html +0 -72
  737. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core/options.html +0 -58
  738. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data.html +0 -9
  739. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data/ajax.html +0 -109
  740. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data/array.html +0 -53
  741. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data/select.html +0 -57
  742. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown.html +0 -9
  743. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown/filtering.html +0 -23
  744. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown/placement.html +0 -29
  745. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown/selections.html +0 -17
  746. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/events.html +0 -8
  747. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/events/internal.html +0 -9
  748. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/events/jquery.html +0 -29
  749. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/introduction.html +0 -9
  750. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/not-written.html +0 -3
  751. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections.html +0 -10
  752. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/clearing-selections.html +0 -17
  753. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/multiple.html +0 -17
  754. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/placeholder.html +0 -53
  755. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/templating.html +0 -23
  756. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/social-buttons.html +0 -10
  757. data/vendor/assets/components/locomotive_sources/select2/docs/_layouts/default.html +0 -57
  758. data/vendor/assets/components/locomotive_sources/select2/docs/_layouts/home.html +0 -23
  759. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_alert.scss +0 -47
  760. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_anchorjs.scss +0 -27
  761. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_buttons.scss +0 -20
  762. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_code.scss +0 -16
  763. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_examples.scss +0 -90
  764. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_featurette.scss +0 -16
  765. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_footer.scss +0 -42
  766. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_hamburger.scss +0 -49
  767. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_home.scss +0 -31
  768. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_jumbotron.scss +0 -24
  769. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_layout.scss +0 -14
  770. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_nav.scss +0 -58
  771. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_prettify.scss +0 -51
  772. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_result-repository.scss +0 -62
  773. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_sidenav.scss +0 -152
  774. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_social.scss +0 -35
  775. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_typography.scss +0 -6
  776. data/vendor/assets/components/locomotive_sources/select2/docs/announcements-4.0.html +0 -752
  777. data/vendor/assets/components/locomotive_sources/select2/docs/community.html +0 -154
  778. data/vendor/assets/components/locomotive_sources/select2/docs/css/s2-docs.scss +0 -19
  779. data/vendor/assets/components/locomotive_sources/select2/docs/examples.html +0 -254
  780. data/vendor/assets/components/locomotive_sources/select2/docs/images/logo.png +0 -0
  781. data/vendor/assets/components/locomotive_sources/select2/docs/index.html +0 -238
  782. data/vendor/assets/components/locomotive_sources/select2/docs/options-old.html +0 -37
  783. data/vendor/assets/components/locomotive_sources/select2/docs/options.html +0 -37
  784. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/css/bootstrap.min.css +0 -5
  785. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/css/font-awesome.min.css +0 -4
  786. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/FontAwesome.otf +0 -0
  787. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.eot +0 -0
  788. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.svg +0 -655
  789. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.ttf +0 -0
  790. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.woff +0 -0
  791. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.woff2 +0 -0
  792. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ak.png +0 -0
  793. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/al.png +0 -0
  794. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ar.png +0 -0
  795. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/az.png +0 -0
  796. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ca.png +0 -0
  797. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/co.png +0 -0
  798. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ct.png +0 -0
  799. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/de.png +0 -0
  800. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/fl.png +0 -0
  801. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ga.png +0 -0
  802. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/hi.png +0 -0
  803. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ia.png +0 -0
  804. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/id.png +0 -0
  805. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/il.png +0 -0
  806. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/in.png +0 -0
  807. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ks.png +0 -0
  808. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ky.png +0 -0
  809. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/la.png +0 -0
  810. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ma.png +0 -0
  811. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/md.png +0 -0
  812. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/me.png +0 -0
  813. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mi.png +0 -0
  814. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mn.png +0 -0
  815. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mo.png +0 -0
  816. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ms.png +0 -0
  817. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mt.png +0 -0
  818. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nc.png +0 -0
  819. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nd.png +0 -0
  820. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ne.png +0 -0
  821. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nh.png +0 -0
  822. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nj.png +0 -0
  823. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nm.png +0 -0
  824. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nv.png +0 -0
  825. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ny.png +0 -0
  826. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/oh.png +0 -0
  827. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ok.png +0 -0
  828. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/or.png +0 -0
  829. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/pa.png +0 -0
  830. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ri.png +0 -0
  831. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/sc.png +0 -0
  832. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/sd.png +0 -0
  833. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/tn.png +0 -0
  834. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/tx.png +0 -0
  835. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ut.png +0 -0
  836. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/va.png +0 -0
  837. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/vt.png +0 -0
  838. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wa.png +0 -0
  839. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wi.png +0 -0
  840. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wv.png +0 -0
  841. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wy.png +0 -0
  842. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/anchor.min.js +0 -6
  843. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/bootstrap.min.js +0 -6
  844. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/jquery.min.js +0 -4
  845. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/placeholders.jquery.min.js +0 -2
  846. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/prettify.min.js +0 -28
  847. data/vendor/assets/components/locomotive_sources/select2/package.json +0 -66
  848. data/vendor/assets/components/locomotive_sources/select2/select2.jquery.json +0 -32
  849. data/vendor/assets/components/locomotive_sources/select2/src/js/banner.end.js +0 -6
  850. data/vendor/assets/components/locomotive_sources/select2/src/js/banner.start.js +0 -6
  851. data/vendor/assets/components/locomotive_sources/select2/src/js/jquery.mousewheel.shim.js +0 -6
  852. data/vendor/assets/components/locomotive_sources/select2/src/js/jquery.select2.js +0 -58
  853. data/vendor/assets/components/locomotive_sources/select2/src/js/jquery.shim.js +0 -14
  854. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/containerCss.js +0 -56
  855. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/dropdownCss.js +0 -56
  856. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/initSelection.js +0 -42
  857. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/inputData.js +0 -127
  858. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/matcher.js +0 -42
  859. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/query.js +0 -26
  860. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/utils.js +0 -43
  861. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/core.js +0 -545
  862. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/ajax.js +0 -101
  863. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/array.js +0 -79
  864. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/base.js +0 -40
  865. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/maximumInputLength.js +0 -31
  866. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/maximumSelectionLength.js +0 -31
  867. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/minimumInputLength.js +0 -30
  868. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/select.js +0 -285
  869. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/tags.js +0 -119
  870. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/tokenizer.js +0 -93
  871. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/defaults.js +0 -396
  872. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/diacritics.js +0 -847
  873. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown.js +0 -42
  874. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/attachBody.js +0 -216
  875. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/attachContainer.js +0 -18
  876. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/closeOnSelect.js +0 -32
  877. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/hidePlaceholder.js +0 -42
  878. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/infiniteScroll.js +0 -89
  879. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/minimumResultsForSearch.js +0 -39
  880. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/search.js +0 -95
  881. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/selectOnClose.js +0 -40
  882. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/stopPropagation.js +0 -38
  883. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ar.js +0 -36
  884. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/az.js +0 -27
  885. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/bg.js +0 -47
  886. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ca.js +0 -52
  887. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/cs.js +0 -61
  888. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/da.js +0 -40
  889. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/de.js +0 -37
  890. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/en.js +0 -44
  891. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/es.js +0 -52
  892. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/et.js +0 -53
  893. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/eu.js +0 -51
  894. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/fa.js +0 -38
  895. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/fi.js +0 -27
  896. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/fr.js +0 -46
  897. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/gl.js +0 -51
  898. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/he.js +0 -56
  899. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/hi.js +0 -39
  900. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/hr.js +0 -44
  901. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/hu.js +0 -27
  902. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/id.js +0 -30
  903. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/is.js +0 -41
  904. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/it.js +0 -48
  905. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ja.js +0 -36
  906. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ko.js +0 -36
  907. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/lt.js +0 -51
  908. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/lv.js +0 -51
  909. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/mk.js +0 -47
  910. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ms.js +0 -30
  911. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/nb.js +0 -35
  912. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/nl.js +0 -43
  913. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js +0 -45
  914. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pt-BR.js +0 -46
  915. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pt.js +0 -40
  916. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ro.js +0 -48
  917. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ru.js +0 -58
  918. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sk.js +0 -56
  919. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sr-Cyrl.js +0 -55
  920. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sr.js +0 -55
  921. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sv.js +0 -37
  922. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/th.js +0 -33
  923. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/tr.js +0 -33
  924. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/uk.js +0 -43
  925. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/vi.js +0 -37
  926. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/zh-CN.js +0 -36
  927. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/zh-TW.js +0 -33
  928. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/keys.js +0 -25
  929. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/options.js +0 -122
  930. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/results.js +0 -516
  931. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/allowClear.js +0 -97
  932. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/base.js +0 -158
  933. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/clickMask.js +0 -29
  934. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/eventRelay.js +0 -45
  935. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/multiple.js +0 -109
  936. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/placeholder.js +0 -49
  937. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/search.js +0 -222
  938. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/single.js +0 -93
  939. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/stopPropagation.js +0 -38
  940. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/translation.js +0 -36
  941. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/utils.js +0 -262
  942. data/vendor/assets/components/locomotive_sources/select2/src/js/wrapper.end.js +0 -12
  943. data/vendor/assets/components/locomotive_sources/select2/src/js/wrapper.start.js +0 -23
  944. data/vendor/assets/components/locomotive_sources/select2/src/scss/_dropdown.scss +0 -73
  945. data/vendor/assets/components/locomotive_sources/select2/src/scss/_multiple.scss +0 -35
  946. data/vendor/assets/components/locomotive_sources/select2/src/scss/_single.scss +0 -34
  947. data/vendor/assets/components/locomotive_sources/select2/src/scss/core.scss +0 -48
  948. data/vendor/assets/components/locomotive_sources/select2/src/scss/mixins/_gradients.scss +0 -13
  949. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/_defaults.scss +0 -34
  950. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/_multiple.scss +0 -93
  951. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/_single.scss +0 -124
  952. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/layout.scss +0 -64
  953. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/default/_multiple.scss +0 -94
  954. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/default/_single.scss +0 -83
  955. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/default/layout.scss +0 -97
  956. data/vendor/assets/components/locomotive_sources/select2/tests/a11y/search-tests.js +0 -51
  957. data/vendor/assets/components/locomotive_sources/select2/tests/a11y/selection-tests.js +0 -154
  958. data/vendor/assets/components/locomotive_sources/select2/tests/data/array-tests.js +0 -290
  959. data/vendor/assets/components/locomotive_sources/select2/tests/data/base-tests.js +0 -29
  960. data/vendor/assets/components/locomotive_sources/select2/tests/data/inputData-tests.js +0 -158
  961. data/vendor/assets/components/locomotive_sources/select2/tests/data/maximumInputLength-tests.js +0 -138
  962. data/vendor/assets/components/locomotive_sources/select2/tests/data/maximumSelectionLength-tests.js +0 -202
  963. data/vendor/assets/components/locomotive_sources/select2/tests/data/minimumInputLength-tests.js +0 -138
  964. data/vendor/assets/components/locomotive_sources/select2/tests/data/select-tests.js +0 -457
  965. data/vendor/assets/components/locomotive_sources/select2/tests/data/tags-tests.js +0 -241
  966. data/vendor/assets/components/locomotive_sources/select2/tests/data/tokenizer-tests.js +0 -171
  967. data/vendor/assets/components/locomotive_sources/select2/tests/dropdown/dropdownCss-tests.js +0 -104
  968. data/vendor/assets/components/locomotive_sources/select2/tests/dropdown/selectOnClose-tests.js +0 -137
  969. data/vendor/assets/components/locomotive_sources/select2/tests/dropdown/stopPropagation-tests.js +0 -33
  970. data/vendor/assets/components/locomotive_sources/select2/tests/helpers.js +0 -46
  971. data/vendor/assets/components/locomotive_sources/select2/tests/integration.html +0 -19
  972. data/vendor/assets/components/locomotive_sources/select2/tests/integration/select2-methods.js +0 -139
  973. data/vendor/assets/components/locomotive_sources/select2/tests/options/data-tests.js +0 -44
  974. data/vendor/assets/components/locomotive_sources/select2/tests/options/deprecated-tests.js +0 -250
  975. data/vendor/assets/components/locomotive_sources/select2/tests/options/translation-tests.js +0 -28
  976. data/vendor/assets/components/locomotive_sources/select2/tests/options/width-tests.js +0 -66
  977. data/vendor/assets/components/locomotive_sources/select2/tests/selection/allowClear-tests.js +0 -218
  978. data/vendor/assets/components/locomotive_sources/select2/tests/selection/containerCss-tests.js +0 -104
  979. data/vendor/assets/components/locomotive_sources/select2/tests/selection/multiple-tests.js +0 -149
  980. data/vendor/assets/components/locomotive_sources/select2/tests/selection/placeholder-tests.js +0 -74
  981. data/vendor/assets/components/locomotive_sources/select2/tests/selection/search-tests.js +0 -139
  982. data/vendor/assets/components/locomotive_sources/select2/tests/selection/single-tests.js +0 -117
  983. data/vendor/assets/components/locomotive_sources/select2/tests/selection/stopPropagation-tests.js +0 -33
  984. data/vendor/assets/components/locomotive_sources/select2/tests/unit.html +0 -91
  985. data/vendor/assets/components/locomotive_sources/select2/tests/utils/decorator-tests.js +0 -189
  986. data/vendor/assets/components/locomotive_sources/select2/tests/utils/escapeMarkup-tests.js +0 -36
  987. data/vendor/assets/components/locomotive_sources/select2/tests/vendor/jquery-1.7.2.js +0 -9404
  988. data/vendor/assets/components/locomotive_sources/select2/tests/vendor/qunit-1.14.0.css +0 -237
  989. data/vendor/assets/components/locomotive_sources/select2/tests/vendor/qunit-1.14.0.js +0 -2288
  990. data/vendor/assets/components/locomotive_sources/select2/vendor/jquery-2.1.0.js +0 -9111
  991. data/vendor/assets/components/locomotive_sources/underscore/LICENSE +0 -23
  992. data/vendor/assets/components/locomotive_sources/underscore/README.md +0 -22
  993. data/vendor/assets/components/locomotive_sources/underscore/bower.json +0 -7
  994. data/vendor/assets/components/locomotive_sources/underscore/underscore-min.js +0 -6
  995. data/vendor/assets/components/locomotive_sources/underscore/underscore-min.map +0 -1
  996. data/vendor/assets/components/locomotive_sources/underscore/underscore.js +0 -1548
@@ -1,17 +0,0 @@
1
- site_name: Bootstrap 3 Datepicker
2
- theme: bootstrap
3
- extra_javascript: ['//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.js','//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/src/js/bootstrap-datetimepicker.js']
4
- extra_css: ['//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/build/css/bootstrap-datetimepicker.css']
5
- repo_url: https://github.com/Eonasdan/bootstrap-datetimepicker
6
- pages:
7
- - ['index.md', 'Usage']
8
- - ['Installing.md', 'Installing']
9
- - ['Functions.md', 'Functions']
10
- - ['Options.md', 'Options']
11
- - ['Events.md', 'Events']
12
- - ['Changelog.md', 'Change Log']
13
- - ['ContributorsGuide.md', 'Dev Guide']
14
- - ['Extras.md', 'Extras']
15
- - ['FAQ.md', 'FAQs']
16
- - ['Version 4 Changelog.md', '']
17
- - ['Version 4 Contributors guide.md', '']
@@ -1,43 +0,0 @@
1
- {
2
- "author": {
3
- "name": "Jonathan Peterson"
4
- },
5
- "bugs": {
6
- "url": "https://github.com/eonasdan/bootstrap-datetimepicker/issues"
7
- },
8
- "dependencies": {
9
- "moment": "~2.8",
10
- "moment-timezone" : "~0.4",
11
- "bootstrap": "^3.3",
12
- "jquery": ">=1.8.3 <2.2.0"
13
- },
14
- "description": "A date/time picker component designed to work with Bootstrap 3 and Momentjs. For usage, installation and demos see Project Site on GitHub",
15
- "devDependencies": {
16
- "grunt": "latest",
17
- "grunt-contrib-jasmine": "^0.7.0",
18
- "grunt-contrib-jshint": "latest",
19
- "grunt-contrib-less": "latest",
20
- "grunt-contrib-uglify": "latest",
21
- "grunt-jscs": "latest",
22
- "grunt-string-replace": "latest",
23
- "load-grunt-tasks": "latest",
24
- "grunt-nuget": "^0.1.4"
25
- },
26
- "homepage": "http://eonasdan.github.io/bootstrap-datetimepicker/",
27
- "keywords": [
28
- "twitter-bootstrap",
29
- "bootstrap",
30
- "datepicker",
31
- "datetimepicker",
32
- "timepicker",
33
- "moment"
34
- ],
35
- "license": "MIT",
36
- "main": "src/js/bootstrap-datetimepicker.js",
37
- "name": "eonasdan-bootstrap-datetimepicker",
38
- "repository": {
39
- "type": "git",
40
- "url": "https://github.com/eonasdan/bootstrap-datetimepicker.git"
41
- },
42
- "version": "4.17.37"
43
- }
@@ -1,2552 +0,0 @@
1
- /*! version : 4.17.37
2
- =========================================================
3
- bootstrap-datetimejs
4
- https://github.com/Eonasdan/bootstrap-datetimepicker
5
- Copyright (c) 2015 Jonathan Peterson
6
- =========================================================
7
- */
8
- /*
9
- The MIT License (MIT)
10
-
11
- Copyright (c) 2015 Jonathan Peterson
12
-
13
- Permission is hereby granted, free of charge, to any person obtaining a copy
14
- of this software and associated documentation files (the "Software"), to deal
15
- in the Software without restriction, including without limitation the rights
16
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
- copies of the Software, and to permit persons to whom the Software is
18
- furnished to do so, subject to the following conditions:
19
-
20
- The above copyright notice and this permission notice shall be included in
21
- all copies or substantial portions of the Software.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
- THE SOFTWARE.
30
- */
31
- /*global define:false */
32
- /*global exports:false */
33
- /*global require:false */
34
- /*global jQuery:false */
35
- /*global moment:false */
36
- (function (factory) {
37
- 'use strict';
38
- if (typeof define === 'function' && define.amd) {
39
- // AMD is used - Register as an anonymous module.
40
- define(['jquery', 'moment'], factory);
41
- } else if (typeof exports === 'object') {
42
- factory(require('jquery'), require('moment'));
43
- } else {
44
- // Neither AMD nor CommonJS used. Use global variables.
45
- if (typeof jQuery === 'undefined') {
46
- throw 'bootstrap-datetimepicker requires jQuery to be loaded first';
47
- }
48
- if (typeof moment === 'undefined') {
49
- throw 'bootstrap-datetimepicker requires Moment.js to be loaded first';
50
- }
51
- factory(jQuery, moment);
52
- }
53
- }(function ($, moment) {
54
- 'use strict';
55
- if (!moment) {
56
- throw new Error('bootstrap-datetimepicker requires Moment.js to be loaded first');
57
- }
58
-
59
- var dateTimePicker = function (element, options) {
60
- var picker = {},
61
- date,
62
- viewDate,
63
- unset = true,
64
- input,
65
- component = false,
66
- widget = false,
67
- use24Hours,
68
- minViewModeNumber = 0,
69
- actualFormat,
70
- parseFormats,
71
- currentViewMode,
72
- datePickerModes = [
73
- {
74
- clsName: 'days',
75
- navFnc: 'M',
76
- navStep: 1
77
- },
78
- {
79
- clsName: 'months',
80
- navFnc: 'y',
81
- navStep: 1
82
- },
83
- {
84
- clsName: 'years',
85
- navFnc: 'y',
86
- navStep: 10
87
- },
88
- {
89
- clsName: 'decades',
90
- navFnc: 'y',
91
- navStep: 100
92
- }
93
- ],
94
- viewModes = ['days', 'months', 'years', 'decades'],
95
- verticalModes = ['top', 'bottom', 'auto'],
96
- horizontalModes = ['left', 'right', 'auto'],
97
- toolbarPlacements = ['default', 'top', 'bottom'],
98
- keyMap = {
99
- 'up': 38,
100
- 38: 'up',
101
- 'down': 40,
102
- 40: 'down',
103
- 'left': 37,
104
- 37: 'left',
105
- 'right': 39,
106
- 39: 'right',
107
- 'tab': 9,
108
- 9: 'tab',
109
- 'escape': 27,
110
- 27: 'escape',
111
- 'enter': 13,
112
- 13: 'enter',
113
- 'pageUp': 33,
114
- 33: 'pageUp',
115
- 'pageDown': 34,
116
- 34: 'pageDown',
117
- 'shift': 16,
118
- 16: 'shift',
119
- 'control': 17,
120
- 17: 'control',
121
- 'space': 32,
122
- 32: 'space',
123
- 't': 84,
124
- 84: 't',
125
- 'delete': 46,
126
- 46: 'delete'
127
- },
128
- keyState = {},
129
-
130
- /********************************************************************************
131
- *
132
- * Private functions
133
- *
134
- ********************************************************************************/
135
- getMoment = function (d) {
136
- var tzEnabled = false,
137
- returnMoment,
138
- currentZoneOffset,
139
- incomingZoneOffset,
140
- timeZoneIndicator,
141
- dateWithTimeZoneInfo;
142
-
143
- if (moment.tz !== undefined && options.timeZone !== undefined && options.timeZone !== null && options.timeZone !== '') {
144
- tzEnabled = true;
145
- }
146
- if (d === undefined || d === null) {
147
- if (tzEnabled) {
148
- returnMoment = moment().tz(options.timeZone).startOf('d');
149
- } else {
150
- returnMoment = moment().startOf('d');
151
- }
152
- } else {
153
- if (tzEnabled) {
154
- currentZoneOffset = moment().tz(options.timeZone).utcOffset();
155
- incomingZoneOffset = moment(d, parseFormats, options.useStrict).utcOffset();
156
- if (incomingZoneOffset !== currentZoneOffset) {
157
- timeZoneIndicator = moment().tz(options.timeZone).format('Z');
158
- dateWithTimeZoneInfo = moment(d, parseFormats, options.useStrict).format('YYYY-MM-DD[T]HH:mm:ss') + timeZoneIndicator;
159
- returnMoment = moment(dateWithTimeZoneInfo, parseFormats, options.useStrict).tz(options.timeZone);
160
- } else {
161
- returnMoment = moment(d, parseFormats, options.useStrict).tz(options.timeZone);
162
- }
163
- } else {
164
- returnMoment = moment(d, parseFormats, options.useStrict);
165
- }
166
- }
167
- return returnMoment;
168
- },
169
- isEnabled = function (granularity) {
170
- if (typeof granularity !== 'string' || granularity.length > 1) {
171
- throw new TypeError('isEnabled expects a single character string parameter');
172
- }
173
- switch (granularity) {
174
- case 'y':
175
- return actualFormat.indexOf('Y') !== -1;
176
- case 'M':
177
- return actualFormat.indexOf('M') !== -1;
178
- case 'd':
179
- return actualFormat.toLowerCase().indexOf('d') !== -1;
180
- case 'h':
181
- case 'H':
182
- return actualFormat.toLowerCase().indexOf('h') !== -1;
183
- case 'm':
184
- return actualFormat.indexOf('m') !== -1;
185
- case 's':
186
- return actualFormat.indexOf('s') !== -1;
187
- default:
188
- return false;
189
- }
190
- },
191
- hasTime = function () {
192
- return (isEnabled('h') || isEnabled('m') || isEnabled('s'));
193
- },
194
-
195
- hasDate = function () {
196
- return (isEnabled('y') || isEnabled('M') || isEnabled('d'));
197
- },
198
-
199
- getDatePickerTemplate = function () {
200
- var headTemplate = $('<thead>')
201
- .append($('<tr>')
202
- .append($('<th>').addClass('prev').attr('data-action', 'previous')
203
- .append($('<span>').addClass(options.icons.previous))
204
- )
205
- .append($('<th>').addClass('picker-switch').attr('data-action', 'pickerSwitch').attr('colspan', (options.calendarWeeks ? '6' : '5')))
206
- .append($('<th>').addClass('next').attr('data-action', 'next')
207
- .append($('<span>').addClass(options.icons.next))
208
- )
209
- ),
210
- contTemplate = $('<tbody>')
211
- .append($('<tr>')
212
- .append($('<td>').attr('colspan', (options.calendarWeeks ? '8' : '7')))
213
- );
214
-
215
- return [
216
- $('<div>').addClass('datepicker-days')
217
- .append($('<table>').addClass('table-condensed')
218
- .append(headTemplate)
219
- .append($('<tbody>'))
220
- ),
221
- $('<div>').addClass('datepicker-months')
222
- .append($('<table>').addClass('table-condensed')
223
- .append(headTemplate.clone())
224
- .append(contTemplate.clone())
225
- ),
226
- $('<div>').addClass('datepicker-years')
227
- .append($('<table>').addClass('table-condensed')
228
- .append(headTemplate.clone())
229
- .append(contTemplate.clone())
230
- ),
231
- $('<div>').addClass('datepicker-decades')
232
- .append($('<table>').addClass('table-condensed')
233
- .append(headTemplate.clone())
234
- .append(contTemplate.clone())
235
- )
236
- ];
237
- },
238
-
239
- getTimePickerMainTemplate = function () {
240
- var topRow = $('<tr>'),
241
- middleRow = $('<tr>'),
242
- bottomRow = $('<tr>');
243
-
244
- if (isEnabled('h')) {
245
- topRow.append($('<td>')
246
- .append($('<a>').attr({href: '#', tabindex: '-1', 'title': options.tooltips.incrementHour}).addClass('btn').attr('data-action', 'incrementHours')
247
- .append($('<span>').addClass(options.icons.up))));
248
- middleRow.append($('<td>')
249
- .append($('<span>').addClass('timepicker-hour').attr({'data-time-component':'hours', 'title': options.tooltips.pickHour}).attr('data-action', 'showHours')));
250
- bottomRow.append($('<td>')
251
- .append($('<a>').attr({href: '#', tabindex: '-1', 'title': options.tooltips.decrementHour}).addClass('btn').attr('data-action', 'decrementHours')
252
- .append($('<span>').addClass(options.icons.down))));
253
- }
254
- if (isEnabled('m')) {
255
- if (isEnabled('h')) {
256
- topRow.append($('<td>').addClass('separator'));
257
- middleRow.append($('<td>').addClass('separator').html(':'));
258
- bottomRow.append($('<td>').addClass('separator'));
259
- }
260
- topRow.append($('<td>')
261
- .append($('<a>').attr({href: '#', tabindex: '-1', 'title': options.tooltips.incrementMinute}).addClass('btn').attr('data-action', 'incrementMinutes')
262
- .append($('<span>').addClass(options.icons.up))));
263
- middleRow.append($('<td>')
264
- .append($('<span>').addClass('timepicker-minute').attr({'data-time-component': 'minutes', 'title': options.tooltips.pickMinute}).attr('data-action', 'showMinutes')));
265
- bottomRow.append($('<td>')
266
- .append($('<a>').attr({href: '#', tabindex: '-1', 'title': options.tooltips.decrementMinute}).addClass('btn').attr('data-action', 'decrementMinutes')
267
- .append($('<span>').addClass(options.icons.down))));
268
- }
269
- if (isEnabled('s')) {
270
- if (isEnabled('m')) {
271
- topRow.append($('<td>').addClass('separator'));
272
- middleRow.append($('<td>').addClass('separator').html(':'));
273
- bottomRow.append($('<td>').addClass('separator'));
274
- }
275
- topRow.append($('<td>')
276
- .append($('<a>').attr({href: '#', tabindex: '-1', 'title': options.tooltips.incrementSecond}).addClass('btn').attr('data-action', 'incrementSeconds')
277
- .append($('<span>').addClass(options.icons.up))));
278
- middleRow.append($('<td>')
279
- .append($('<span>').addClass('timepicker-second').attr({'data-time-component': 'seconds', 'title': options.tooltips.pickSecond}).attr('data-action', 'showSeconds')));
280
- bottomRow.append($('<td>')
281
- .append($('<a>').attr({href: '#', tabindex: '-1', 'title': options.tooltips.decrementSecond}).addClass('btn').attr('data-action', 'decrementSeconds')
282
- .append($('<span>').addClass(options.icons.down))));
283
- }
284
-
285
- if (!use24Hours) {
286
- topRow.append($('<td>').addClass('separator'));
287
- middleRow.append($('<td>')
288
- .append($('<button>').addClass('btn btn-primary').attr({'data-action': 'togglePeriod', tabindex: '-1', 'title': options.tooltips.togglePeriod})));
289
- bottomRow.append($('<td>').addClass('separator'));
290
- }
291
-
292
- return $('<div>').addClass('timepicker-picker')
293
- .append($('<table>').addClass('table-condensed')
294
- .append([topRow, middleRow, bottomRow]));
295
- },
296
-
297
- getTimePickerTemplate = function () {
298
- var hoursView = $('<div>').addClass('timepicker-hours')
299
- .append($('<table>').addClass('table-condensed')),
300
- minutesView = $('<div>').addClass('timepicker-minutes')
301
- .append($('<table>').addClass('table-condensed')),
302
- secondsView = $('<div>').addClass('timepicker-seconds')
303
- .append($('<table>').addClass('table-condensed')),
304
- ret = [getTimePickerMainTemplate()];
305
-
306
- if (isEnabled('h')) {
307
- ret.push(hoursView);
308
- }
309
- if (isEnabled('m')) {
310
- ret.push(minutesView);
311
- }
312
- if (isEnabled('s')) {
313
- ret.push(secondsView);
314
- }
315
-
316
- return ret;
317
- },
318
-
319
- getToolbar = function () {
320
- var row = [];
321
- if (options.showTodayButton) {
322
- row.push($('<td>').append($('<a>').attr({'data-action':'today', 'title': options.tooltips.today}).append($('<span>').addClass(options.icons.today))));
323
- }
324
- if (!options.sideBySide && hasDate() && hasTime()) {
325
- row.push($('<td>').append($('<a>').attr({'data-action':'togglePicker', 'title': options.tooltips.selectTime}).append($('<span>').addClass(options.icons.time))));
326
- }
327
- if (options.showClear) {
328
- row.push($('<td>').append($('<a>').attr({'data-action':'clear', 'title': options.tooltips.clear}).append($('<span>').addClass(options.icons.clear))));
329
- }
330
- if (options.showClose) {
331
- row.push($('<td>').append($('<a>').attr({'data-action':'close', 'title': options.tooltips.close}).append($('<span>').addClass(options.icons.close))));
332
- }
333
- return $('<table>').addClass('table-condensed').append($('<tbody>').append($('<tr>').append(row)));
334
- },
335
-
336
- getTemplate = function () {
337
- var template = $('<div>').addClass('bootstrap-datetimepicker-widget dropdown-menu'),
338
- dateView = $('<div>').addClass('datepicker').append(getDatePickerTemplate()),
339
- timeView = $('<div>').addClass('timepicker').append(getTimePickerTemplate()),
340
- content = $('<ul>').addClass('list-unstyled'),
341
- toolbar = $('<li>').addClass('picker-switch' + (options.collapse ? ' accordion-toggle' : '')).append(getToolbar());
342
-
343
- if (options.inline) {
344
- template.removeClass('dropdown-menu');
345
- }
346
-
347
- if (use24Hours) {
348
- template.addClass('usetwentyfour');
349
- }
350
- if (isEnabled('s') && !use24Hours) {
351
- template.addClass('wider');
352
- }
353
-
354
- if (options.sideBySide && hasDate() && hasTime()) {
355
- template.addClass('timepicker-sbs');
356
- if (options.toolbarPlacement === 'top') {
357
- template.append(toolbar);
358
- }
359
- template.append(
360
- $('<div>').addClass('row')
361
- .append(dateView.addClass('col-md-6'))
362
- .append(timeView.addClass('col-md-6'))
363
- );
364
- if (options.toolbarPlacement === 'bottom') {
365
- template.append(toolbar);
366
- }
367
- return template;
368
- }
369
-
370
- if (options.toolbarPlacement === 'top') {
371
- content.append(toolbar);
372
- }
373
- if (hasDate()) {
374
- content.append($('<li>').addClass((options.collapse && hasTime() ? 'collapse in' : '')).append(dateView));
375
- }
376
- if (options.toolbarPlacement === 'default') {
377
- content.append(toolbar);
378
- }
379
- if (hasTime()) {
380
- content.append($('<li>').addClass((options.collapse && hasDate() ? 'collapse' : '')).append(timeView));
381
- }
382
- if (options.toolbarPlacement === 'bottom') {
383
- content.append(toolbar);
384
- }
385
- return template.append(content);
386
- },
387
-
388
- dataToOptions = function () {
389
- var eData,
390
- dataOptions = {};
391
-
392
- if (element.is('input') || options.inline) {
393
- eData = element.data();
394
- } else {
395
- eData = element.find('input').data();
396
- }
397
-
398
- if (eData.dateOptions && eData.dateOptions instanceof Object) {
399
- dataOptions = $.extend(true, dataOptions, eData.dateOptions);
400
- }
401
-
402
- $.each(options, function (key) {
403
- var attributeName = 'date' + key.charAt(0).toUpperCase() + key.slice(1);
404
- if (eData[attributeName] !== undefined) {
405
- dataOptions[key] = eData[attributeName];
406
- }
407
- });
408
- return dataOptions;
409
- },
410
-
411
- place = function () {
412
- var position = (component || element).position(),
413
- offset = (component || element).offset(),
414
- vertical = options.widgetPositioning.vertical,
415
- horizontal = options.widgetPositioning.horizontal,
416
- parent;
417
-
418
- if (options.widgetParent) {
419
- parent = options.widgetParent.append(widget);
420
- } else if (element.is('input')) {
421
- parent = element.after(widget).parent();
422
- } else if (options.inline) {
423
- parent = element.append(widget);
424
- return;
425
- } else {
426
- parent = element;
427
- element.children().first().after(widget);
428
- }
429
-
430
- // Top and bottom logic
431
- if (vertical === 'auto') {
432
- if (offset.top + widget.height() * 1.5 >= $(window).height() + $(window).scrollTop() &&
433
- widget.height() + element.outerHeight() < offset.top) {
434
- vertical = 'top';
435
- } else {
436
- vertical = 'bottom';
437
- }
438
- }
439
-
440
- // Left and right logic
441
- if (horizontal === 'auto') {
442
- if (parent.width() < offset.left + widget.outerWidth() / 2 &&
443
- offset.left + widget.outerWidth() > $(window).width()) {
444
- horizontal = 'right';
445
- } else {
446
- horizontal = 'left';
447
- }
448
- }
449
-
450
- if (vertical === 'top') {
451
- widget.addClass('top').removeClass('bottom');
452
- } else {
453
- widget.addClass('bottom').removeClass('top');
454
- }
455
-
456
- if (horizontal === 'right') {
457
- widget.addClass('pull-right');
458
- } else {
459
- widget.removeClass('pull-right');
460
- }
461
-
462
- // find the first parent element that has a relative css positioning
463
- if (parent.css('position') !== 'relative') {
464
- parent = parent.parents().filter(function () {
465
- return $(this).css('position') === 'relative';
466
- }).first();
467
- }
468
-
469
- if (parent.length === 0) {
470
- throw new Error('datetimepicker component should be placed within a relative positioned container');
471
- }
472
-
473
- widget.css({
474
- top: vertical === 'top' ? 'auto' : position.top + element.outerHeight(),
475
- bottom: vertical === 'top' ? position.top + element.outerHeight() : 'auto',
476
- left: horizontal === 'left' ? (parent === element ? 0 : position.left) : 'auto',
477
- right: horizontal === 'left' ? 'auto' : parent.outerWidth() - element.outerWidth() - (parent === element ? 0 : position.left)
478
- });
479
- },
480
-
481
- notifyEvent = function (e) {
482
- if (e.type === 'dp.change' && ((e.date && e.date.isSame(e.oldDate)) || (!e.date && !e.oldDate))) {
483
- return;
484
- }
485
- element.trigger(e);
486
- },
487
-
488
- viewUpdate = function (e) {
489
- if (e === 'y') {
490
- e = 'YYYY';
491
- }
492
- notifyEvent({
493
- type: 'dp.update',
494
- change: e,
495
- viewDate: viewDate.clone()
496
- });
497
- },
498
-
499
- showMode = function (dir) {
500
- if (!widget) {
501
- return;
502
- }
503
- if (dir) {
504
- currentViewMode = Math.max(minViewModeNumber, Math.min(3, currentViewMode + dir));
505
- }
506
- widget.find('.datepicker > div').hide().filter('.datepicker-' + datePickerModes[currentViewMode].clsName).show();
507
- },
508
-
509
- fillDow = function () {
510
- var row = $('<tr>'),
511
- currentDate = viewDate.clone().startOf('w').startOf('d');
512
-
513
- if (options.calendarWeeks === true) {
514
- row.append($('<th>').addClass('cw').text('#'));
515
- }
516
-
517
- while (currentDate.isBefore(viewDate.clone().endOf('w'))) {
518
- row.append($('<th>').addClass('dow').text(currentDate.format('dd')));
519
- currentDate.add(1, 'd');
520
- }
521
- widget.find('.datepicker-days thead').append(row);
522
- },
523
-
524
- isInDisabledDates = function (testDate) {
525
- return options.disabledDates[testDate.format('YYYY-MM-DD')] === true;
526
- },
527
-
528
- isInEnabledDates = function (testDate) {
529
- return options.enabledDates[testDate.format('YYYY-MM-DD')] === true;
530
- },
531
-
532
- isInDisabledHours = function (testDate) {
533
- return options.disabledHours[testDate.format('H')] === true;
534
- },
535
-
536
- isInEnabledHours = function (testDate) {
537
- return options.enabledHours[testDate.format('H')] === true;
538
- },
539
-
540
- isValid = function (targetMoment, granularity) {
541
- if (!targetMoment.isValid()) {
542
- return false;
543
- }
544
- if (options.disabledDates && granularity === 'd' && isInDisabledDates(targetMoment)) {
545
- return false;
546
- }
547
- if (options.enabledDates && granularity === 'd' && !isInEnabledDates(targetMoment)) {
548
- return false;
549
- }
550
- if (options.minDate && targetMoment.isBefore(options.minDate, granularity)) {
551
- return false;
552
- }
553
- if (options.maxDate && targetMoment.isAfter(options.maxDate, granularity)) {
554
- return false;
555
- }
556
- if (options.daysOfWeekDisabled && granularity === 'd' && options.daysOfWeekDisabled.indexOf(targetMoment.day()) !== -1) {
557
- return false;
558
- }
559
- if (options.disabledHours && (granularity === 'h' || granularity === 'm' || granularity === 's') && isInDisabledHours(targetMoment)) {
560
- return false;
561
- }
562
- if (options.enabledHours && (granularity === 'h' || granularity === 'm' || granularity === 's') && !isInEnabledHours(targetMoment)) {
563
- return false;
564
- }
565
- if (options.disabledTimeIntervals && (granularity === 'h' || granularity === 'm' || granularity === 's')) {
566
- var found = false;
567
- $.each(options.disabledTimeIntervals, function () {
568
- if (targetMoment.isBetween(this[0], this[1])) {
569
- found = true;
570
- return false;
571
- }
572
- });
573
- if (found) {
574
- return false;
575
- }
576
- }
577
- return true;
578
- },
579
-
580
- fillMonths = function () {
581
- var spans = [],
582
- monthsShort = viewDate.clone().startOf('y').startOf('d');
583
- while (monthsShort.isSame(viewDate, 'y')) {
584
- spans.push($('<span>').attr('data-action', 'selectMonth').addClass('month').text(monthsShort.format('MMM')));
585
- monthsShort.add(1, 'M');
586
- }
587
- widget.find('.datepicker-months td').empty().append(spans);
588
- },
589
-
590
- updateMonths = function () {
591
- var monthsView = widget.find('.datepicker-months'),
592
- monthsViewHeader = monthsView.find('th'),
593
- months = monthsView.find('tbody').find('span');
594
-
595
- monthsViewHeader.eq(0).find('span').attr('title', options.tooltips.prevYear);
596
- monthsViewHeader.eq(1).attr('title', options.tooltips.selectYear);
597
- monthsViewHeader.eq(2).find('span').attr('title', options.tooltips.nextYear);
598
-
599
- monthsView.find('.disabled').removeClass('disabled');
600
-
601
- if (!isValid(viewDate.clone().subtract(1, 'y'), 'y')) {
602
- monthsViewHeader.eq(0).addClass('disabled');
603
- }
604
-
605
- monthsViewHeader.eq(1).text(viewDate.year());
606
-
607
- if (!isValid(viewDate.clone().add(1, 'y'), 'y')) {
608
- monthsViewHeader.eq(2).addClass('disabled');
609
- }
610
-
611
- months.removeClass('active');
612
- if (date.isSame(viewDate, 'y') && !unset) {
613
- months.eq(date.month()).addClass('active');
614
- }
615
-
616
- months.each(function (index) {
617
- if (!isValid(viewDate.clone().month(index), 'M')) {
618
- $(this).addClass('disabled');
619
- }
620
- });
621
- },
622
-
623
- updateYears = function () {
624
- var yearsView = widget.find('.datepicker-years'),
625
- yearsViewHeader = yearsView.find('th'),
626
- startYear = viewDate.clone().subtract(5, 'y'),
627
- endYear = viewDate.clone().add(6, 'y'),
628
- html = '';
629
-
630
- yearsViewHeader.eq(0).find('span').attr('title', options.tooltips.prevDecade);
631
- yearsViewHeader.eq(1).attr('title', options.tooltips.selectDecade);
632
- yearsViewHeader.eq(2).find('span').attr('title', options.tooltips.nextDecade);
633
-
634
- yearsView.find('.disabled').removeClass('disabled');
635
-
636
- if (options.minDate && options.minDate.isAfter(startYear, 'y')) {
637
- yearsViewHeader.eq(0).addClass('disabled');
638
- }
639
-
640
- yearsViewHeader.eq(1).text(startYear.year() + '-' + endYear.year());
641
-
642
- if (options.maxDate && options.maxDate.isBefore(endYear, 'y')) {
643
- yearsViewHeader.eq(2).addClass('disabled');
644
- }
645
-
646
- while (!startYear.isAfter(endYear, 'y')) {
647
- html += '<span data-action="selectYear" class="year' + (startYear.isSame(date, 'y') && !unset ? ' active' : '') + (!isValid(startYear, 'y') ? ' disabled' : '') + '">' + startYear.year() + '</span>';
648
- startYear.add(1, 'y');
649
- }
650
-
651
- yearsView.find('td').html(html);
652
- },
653
-
654
- updateDecades = function () {
655
- var decadesView = widget.find('.datepicker-decades'),
656
- decadesViewHeader = decadesView.find('th'),
657
- startDecade = moment({y: viewDate.year() - (viewDate.year() % 100) - 1}),
658
- endDecade = startDecade.clone().add(100, 'y'),
659
- startedAt = startDecade.clone(),
660
- html = '';
661
-
662
- decadesViewHeader.eq(0).find('span').attr('title', options.tooltips.prevCentury);
663
- decadesViewHeader.eq(2).find('span').attr('title', options.tooltips.nextCentury);
664
-
665
- decadesView.find('.disabled').removeClass('disabled');
666
-
667
- if (startDecade.isSame(moment({y: 1900})) || (options.minDate && options.minDate.isAfter(startDecade, 'y'))) {
668
- decadesViewHeader.eq(0).addClass('disabled');
669
- }
670
-
671
- decadesViewHeader.eq(1).text(startDecade.year() + '-' + endDecade.year());
672
-
673
- if (startDecade.isSame(moment({y: 2000})) || (options.maxDate && options.maxDate.isBefore(endDecade, 'y'))) {
674
- decadesViewHeader.eq(2).addClass('disabled');
675
- }
676
-
677
- while (!startDecade.isAfter(endDecade, 'y')) {
678
- html += '<span data-action="selectDecade" class="decade' + (startDecade.isSame(date, 'y') ? ' active' : '') +
679
- (!isValid(startDecade, 'y') ? ' disabled' : '') + '" data-selection="' + (startDecade.year() + 6) + '">' + (startDecade.year() + 1) + ' - ' + (startDecade.year() + 12) + '</span>';
680
- startDecade.add(12, 'y');
681
- }
682
- html += '<span></span><span></span><span></span>'; //push the dangling block over, at least this way it's even
683
-
684
- decadesView.find('td').html(html);
685
- decadesViewHeader.eq(1).text((startedAt.year() + 1) + '-' + (startDecade.year()));
686
- },
687
-
688
- fillDate = function () {
689
- var daysView = widget.find('.datepicker-days'),
690
- daysViewHeader = daysView.find('th'),
691
- currentDate,
692
- html = [],
693
- row,
694
- clsName,
695
- i;
696
-
697
- if (!hasDate()) {
698
- return;
699
- }
700
-
701
- daysViewHeader.eq(0).find('span').attr('title', options.tooltips.prevMonth);
702
- daysViewHeader.eq(1).attr('title', options.tooltips.selectMonth);
703
- daysViewHeader.eq(2).find('span').attr('title', options.tooltips.nextMonth);
704
-
705
- daysView.find('.disabled').removeClass('disabled');
706
- daysViewHeader.eq(1).text(viewDate.format(options.dayViewHeaderFormat));
707
-
708
- if (!isValid(viewDate.clone().subtract(1, 'M'), 'M')) {
709
- daysViewHeader.eq(0).addClass('disabled');
710
- }
711
- if (!isValid(viewDate.clone().add(1, 'M'), 'M')) {
712
- daysViewHeader.eq(2).addClass('disabled');
713
- }
714
-
715
- currentDate = viewDate.clone().startOf('M').startOf('w').startOf('d');
716
-
717
- for (i = 0; i < 42; i++) { //always display 42 days (should show 6 weeks)
718
- if (currentDate.weekday() === 0) {
719
- row = $('<tr>');
720
- if (options.calendarWeeks) {
721
- row.append('<td class="cw">' + currentDate.week() + '</td>');
722
- }
723
- html.push(row);
724
- }
725
- clsName = '';
726
- if (currentDate.isBefore(viewDate, 'M')) {
727
- clsName += ' old';
728
- }
729
- if (currentDate.isAfter(viewDate, 'M')) {
730
- clsName += ' new';
731
- }
732
- if (currentDate.isSame(date, 'd') && !unset) {
733
- clsName += ' active';
734
- }
735
- if (!isValid(currentDate, 'd')) {
736
- clsName += ' disabled';
737
- }
738
- if (currentDate.isSame(getMoment(), 'd')) {
739
- clsName += ' today';
740
- }
741
- if (currentDate.day() === 0 || currentDate.day() === 6) {
742
- clsName += ' weekend';
743
- }
744
- row.append('<td data-action="selectDay" data-day="' + currentDate.format('L') + '" class="day' + clsName + '">' + currentDate.date() + '</td>');
745
- currentDate.add(1, 'd');
746
- }
747
-
748
- daysView.find('tbody').empty().append(html);
749
-
750
- updateMonths();
751
-
752
- updateYears();
753
-
754
- updateDecades();
755
- },
756
-
757
- fillHours = function () {
758
- var table = widget.find('.timepicker-hours table'),
759
- currentHour = viewDate.clone().startOf('d'),
760
- html = [],
761
- row = $('<tr>');
762
-
763
- if (viewDate.hour() > 11 && !use24Hours) {
764
- currentHour.hour(12);
765
- }
766
- while (currentHour.isSame(viewDate, 'd') && (use24Hours || (viewDate.hour() < 12 && currentHour.hour() < 12) || viewDate.hour() > 11)) {
767
- if (currentHour.hour() % 4 === 0) {
768
- row = $('<tr>');
769
- html.push(row);
770
- }
771
- row.append('<td data-action="selectHour" class="hour' + (!isValid(currentHour, 'h') ? ' disabled' : '') + '">' + currentHour.format(use24Hours ? 'HH' : 'hh') + '</td>');
772
- currentHour.add(1, 'h');
773
- }
774
- table.empty().append(html);
775
- },
776
-
777
- fillMinutes = function () {
778
- var table = widget.find('.timepicker-minutes table'),
779
- currentMinute = viewDate.clone().startOf('h'),
780
- html = [],
781
- row = $('<tr>'),
782
- step = options.stepping === 1 ? 5 : options.stepping;
783
-
784
- while (viewDate.isSame(currentMinute, 'h')) {
785
- if (currentMinute.minute() % (step * 4) === 0) {
786
- row = $('<tr>');
787
- html.push(row);
788
- }
789
- row.append('<td data-action="selectMinute" class="minute' + (!isValid(currentMinute, 'm') ? ' disabled' : '') + '">' + currentMinute.format('mm') + '</td>');
790
- currentMinute.add(step, 'm');
791
- }
792
- table.empty().append(html);
793
- },
794
-
795
- fillSeconds = function () {
796
- var table = widget.find('.timepicker-seconds table'),
797
- currentSecond = viewDate.clone().startOf('m'),
798
- html = [],
799
- row = $('<tr>');
800
-
801
- while (viewDate.isSame(currentSecond, 'm')) {
802
- if (currentSecond.second() % 20 === 0) {
803
- row = $('<tr>');
804
- html.push(row);
805
- }
806
- row.append('<td data-action="selectSecond" class="second' + (!isValid(currentSecond, 's') ? ' disabled' : '') + '">' + currentSecond.format('ss') + '</td>');
807
- currentSecond.add(5, 's');
808
- }
809
-
810
- table.empty().append(html);
811
- },
812
-
813
- fillTime = function () {
814
- var toggle, newDate, timeComponents = widget.find('.timepicker span[data-time-component]');
815
-
816
- if (!use24Hours) {
817
- toggle = widget.find('.timepicker [data-action=togglePeriod]');
818
- newDate = date.clone().add((date.hours() >= 12) ? -12 : 12, 'h');
819
-
820
- toggle.text(date.format('A'));
821
-
822
- if (isValid(newDate, 'h')) {
823
- toggle.removeClass('disabled');
824
- } else {
825
- toggle.addClass('disabled');
826
- }
827
- }
828
- timeComponents.filter('[data-time-component=hours]').text(date.format(use24Hours ? 'HH' : 'hh'));
829
- timeComponents.filter('[data-time-component=minutes]').text(date.format('mm'));
830
- timeComponents.filter('[data-time-component=seconds]').text(date.format('ss'));
831
-
832
- fillHours();
833
- fillMinutes();
834
- fillSeconds();
835
- },
836
-
837
- update = function () {
838
- if (!widget) {
839
- return;
840
- }
841
- fillDate();
842
- fillTime();
843
- },
844
-
845
- setValue = function (targetMoment) {
846
- var oldDate = unset ? null : date;
847
-
848
- // case of calling setValue(null or false)
849
- if (!targetMoment) {
850
- unset = true;
851
- input.val('');
852
- element.data('date', '');
853
- notifyEvent({
854
- type: 'dp.change',
855
- date: false,
856
- oldDate: oldDate
857
- });
858
- update();
859
- return;
860
- }
861
-
862
- targetMoment = targetMoment.clone().locale(options.locale);
863
-
864
- if (options.stepping !== 1) {
865
- targetMoment.minutes((Math.round(targetMoment.minutes() / options.stepping) * options.stepping) % 60).seconds(0);
866
- }
867
-
868
- if (isValid(targetMoment)) {
869
- date = targetMoment;
870
- viewDate = date.clone();
871
- input.val(date.format(actualFormat));
872
- element.data('date', date.format(actualFormat));
873
- unset = false;
874
- update();
875
- notifyEvent({
876
- type: 'dp.change',
877
- date: date.clone(),
878
- oldDate: oldDate
879
- });
880
- } else {
881
- if (!options.keepInvalid) {
882
- input.val(unset ? '' : date.format(actualFormat));
883
- }
884
- notifyEvent({
885
- type: 'dp.error',
886
- date: targetMoment
887
- });
888
- }
889
- },
890
-
891
- hide = function () {
892
- ///<summary>Hides the widget. Possibly will emit dp.hide</summary>
893
- var transitioning = false;
894
- if (!widget) {
895
- return picker;
896
- }
897
- // Ignore event if in the middle of a picker transition
898
- widget.find('.collapse').each(function () {
899
- var collapseData = $(this).data('collapse');
900
- if (collapseData && collapseData.transitioning) {
901
- transitioning = true;
902
- return false;
903
- }
904
- return true;
905
- });
906
- if (transitioning) {
907
- return picker;
908
- }
909
- if (component && component.hasClass('btn')) {
910
- component.toggleClass('active');
911
- }
912
- widget.hide();
913
-
914
- $(window).off('resize', place);
915
- widget.off('click', '[data-action]');
916
- widget.off('mousedown', false);
917
-
918
- widget.remove();
919
- widget = false;
920
-
921
- notifyEvent({
922
- type: 'dp.hide',
923
- date: date.clone()
924
- });
925
-
926
- input.blur();
927
-
928
- return picker;
929
- },
930
-
931
- clear = function () {
932
- setValue(null);
933
- },
934
-
935
- /********************************************************************************
936
- *
937
- * Widget UI interaction functions
938
- *
939
- ********************************************************************************/
940
- actions = {
941
- next: function () {
942
- var navFnc = datePickerModes[currentViewMode].navFnc;
943
- viewDate.add(datePickerModes[currentViewMode].navStep, navFnc);
944
- fillDate();
945
- viewUpdate(navFnc);
946
- },
947
-
948
- previous: function () {
949
- var navFnc = datePickerModes[currentViewMode].navFnc;
950
- viewDate.subtract(datePickerModes[currentViewMode].navStep, navFnc);
951
- fillDate();
952
- viewUpdate(navFnc);
953
- },
954
-
955
- pickerSwitch: function () {
956
- showMode(1);
957
- },
958
-
959
- selectMonth: function (e) {
960
- var month = $(e.target).closest('tbody').find('span').index($(e.target));
961
- viewDate.month(month);
962
- if (currentViewMode === minViewModeNumber) {
963
- setValue(date.clone().year(viewDate.year()).month(viewDate.month()));
964
- if (!options.inline) {
965
- hide();
966
- }
967
- } else {
968
- showMode(-1);
969
- fillDate();
970
- }
971
- viewUpdate('M');
972
- },
973
-
974
- selectYear: function (e) {
975
- var year = parseInt($(e.target).text(), 10) || 0;
976
- viewDate.year(year);
977
- if (currentViewMode === minViewModeNumber) {
978
- setValue(date.clone().year(viewDate.year()));
979
- if (!options.inline) {
980
- hide();
981
- }
982
- } else {
983
- showMode(-1);
984
- fillDate();
985
- }
986
- viewUpdate('YYYY');
987
- },
988
-
989
- selectDecade: function (e) {
990
- var year = parseInt($(e.target).data('selection'), 10) || 0;
991
- viewDate.year(year);
992
- if (currentViewMode === minViewModeNumber) {
993
- setValue(date.clone().year(viewDate.year()));
994
- if (!options.inline) {
995
- hide();
996
- }
997
- } else {
998
- showMode(-1);
999
- fillDate();
1000
- }
1001
- viewUpdate('YYYY');
1002
- },
1003
-
1004
- selectDay: function (e) {
1005
- var day = viewDate.clone();
1006
- if ($(e.target).is('.old')) {
1007
- day.subtract(1, 'M');
1008
- }
1009
- if ($(e.target).is('.new')) {
1010
- day.add(1, 'M');
1011
- }
1012
- setValue(day.date(parseInt($(e.target).text(), 10)));
1013
- if (!hasTime() && !options.keepOpen && !options.inline) {
1014
- hide();
1015
- }
1016
- },
1017
-
1018
- incrementHours: function () {
1019
- var newDate = date.clone().add(1, 'h');
1020
- if (isValid(newDate, 'h')) {
1021
- setValue(newDate);
1022
- }
1023
- },
1024
-
1025
- incrementMinutes: function () {
1026
- var newDate = date.clone().add(options.stepping, 'm');
1027
- if (isValid(newDate, 'm')) {
1028
- setValue(newDate);
1029
- }
1030
- },
1031
-
1032
- incrementSeconds: function () {
1033
- var newDate = date.clone().add(1, 's');
1034
- if (isValid(newDate, 's')) {
1035
- setValue(newDate);
1036
- }
1037
- },
1038
-
1039
- decrementHours: function () {
1040
- var newDate = date.clone().subtract(1, 'h');
1041
- if (isValid(newDate, 'h')) {
1042
- setValue(newDate);
1043
- }
1044
- },
1045
-
1046
- decrementMinutes: function () {
1047
- var newDate = date.clone().subtract(options.stepping, 'm');
1048
- if (isValid(newDate, 'm')) {
1049
- setValue(newDate);
1050
- }
1051
- },
1052
-
1053
- decrementSeconds: function () {
1054
- var newDate = date.clone().subtract(1, 's');
1055
- if (isValid(newDate, 's')) {
1056
- setValue(newDate);
1057
- }
1058
- },
1059
-
1060
- togglePeriod: function () {
1061
- setValue(date.clone().add((date.hours() >= 12) ? -12 : 12, 'h'));
1062
- },
1063
-
1064
- togglePicker: function (e) {
1065
- var $this = $(e.target),
1066
- $parent = $this.closest('ul'),
1067
- expanded = $parent.find('.in'),
1068
- closed = $parent.find('.collapse:not(.in)'),
1069
- collapseData;
1070
-
1071
- if (expanded && expanded.length) {
1072
- collapseData = expanded.data('collapse');
1073
- if (collapseData && collapseData.transitioning) {
1074
- return;
1075
- }
1076
- if (expanded.collapse) { // if collapse plugin is available through bootstrap.js then use it
1077
- expanded.collapse('hide');
1078
- closed.collapse('show');
1079
- } else { // otherwise just toggle in class on the two views
1080
- expanded.removeClass('in');
1081
- closed.addClass('in');
1082
- }
1083
- if ($this.is('span')) {
1084
- $this.toggleClass(options.icons.time + ' ' + options.icons.date);
1085
- } else {
1086
- $this.find('span').toggleClass(options.icons.time + ' ' + options.icons.date);
1087
- }
1088
-
1089
- // NOTE: uncomment if toggled state will be restored in show()
1090
- //if (component) {
1091
- // component.find('span').toggleClass(options.icons.time + ' ' + options.icons.date);
1092
- //}
1093
- }
1094
- },
1095
-
1096
- showPicker: function () {
1097
- widget.find('.timepicker > div:not(.timepicker-picker)').hide();
1098
- widget.find('.timepicker .timepicker-picker').show();
1099
- },
1100
-
1101
- showHours: function () {
1102
- widget.find('.timepicker .timepicker-picker').hide();
1103
- widget.find('.timepicker .timepicker-hours').show();
1104
- },
1105
-
1106
- showMinutes: function () {
1107
- widget.find('.timepicker .timepicker-picker').hide();
1108
- widget.find('.timepicker .timepicker-minutes').show();
1109
- },
1110
-
1111
- showSeconds: function () {
1112
- widget.find('.timepicker .timepicker-picker').hide();
1113
- widget.find('.timepicker .timepicker-seconds').show();
1114
- },
1115
-
1116
- selectHour: function (e) {
1117
- var hour = parseInt($(e.target).text(), 10);
1118
-
1119
- if (!use24Hours) {
1120
- if (date.hours() >= 12) {
1121
- if (hour !== 12) {
1122
- hour += 12;
1123
- }
1124
- } else {
1125
- if (hour === 12) {
1126
- hour = 0;
1127
- }
1128
- }
1129
- }
1130
- setValue(date.clone().hours(hour));
1131
- actions.showPicker.call(picker);
1132
- },
1133
-
1134
- selectMinute: function (e) {
1135
- setValue(date.clone().minutes(parseInt($(e.target).text(), 10)));
1136
- actions.showPicker.call(picker);
1137
- },
1138
-
1139
- selectSecond: function (e) {
1140
- setValue(date.clone().seconds(parseInt($(e.target).text(), 10)));
1141
- actions.showPicker.call(picker);
1142
- },
1143
-
1144
- clear: clear,
1145
-
1146
- today: function () {
1147
- var todaysDate = getMoment();
1148
- if (isValid(todaysDate, 'd')) {
1149
- setValue(todaysDate);
1150
- }
1151
- },
1152
-
1153
- close: hide
1154
- },
1155
-
1156
- doAction = function (e) {
1157
- if ($(e.currentTarget).is('.disabled')) {
1158
- return false;
1159
- }
1160
- actions[$(e.currentTarget).data('action')].apply(picker, arguments);
1161
- return false;
1162
- },
1163
-
1164
- show = function () {
1165
- ///<summary>Shows the widget. Possibly will emit dp.show and dp.change</summary>
1166
- var currentMoment,
1167
- useCurrentGranularity = {
1168
- 'year': function (m) {
1169
- return m.month(0).date(1).hours(0).seconds(0).minutes(0);
1170
- },
1171
- 'month': function (m) {
1172
- return m.date(1).hours(0).seconds(0).minutes(0);
1173
- },
1174
- 'day': function (m) {
1175
- return m.hours(0).seconds(0).minutes(0);
1176
- },
1177
- 'hour': function (m) {
1178
- return m.seconds(0).minutes(0);
1179
- },
1180
- 'minute': function (m) {
1181
- return m.seconds(0);
1182
- }
1183
- };
1184
-
1185
- if (input.prop('disabled') || (!options.ignoreReadonly && input.prop('readonly')) || widget) {
1186
- return picker;
1187
- }
1188
- if (input.val() !== undefined && input.val().trim().length !== 0) {
1189
- setValue(parseInputDate(input.val().trim()));
1190
- } else if (options.useCurrent && unset && ((input.is('input') && input.val().trim().length === 0) || options.inline)) {
1191
- currentMoment = getMoment();
1192
- if (typeof options.useCurrent === 'string') {
1193
- currentMoment = useCurrentGranularity[options.useCurrent](currentMoment);
1194
- }
1195
- setValue(currentMoment);
1196
- }
1197
-
1198
- widget = getTemplate();
1199
-
1200
- fillDow();
1201
- fillMonths();
1202
-
1203
- widget.find('.timepicker-hours').hide();
1204
- widget.find('.timepicker-minutes').hide();
1205
- widget.find('.timepicker-seconds').hide();
1206
-
1207
- update();
1208
- showMode();
1209
-
1210
- $(window).on('resize', place);
1211
- widget.on('click', '[data-action]', doAction); // this handles clicks on the widget
1212
- widget.on('mousedown', false);
1213
-
1214
- if (component && component.hasClass('btn')) {
1215
- component.toggleClass('active');
1216
- }
1217
- widget.show();
1218
- place();
1219
-
1220
- if (options.focusOnShow && !input.is(':focus')) {
1221
- input.focus();
1222
- }
1223
-
1224
- notifyEvent({
1225
- type: 'dp.show'
1226
- });
1227
- return picker;
1228
- },
1229
-
1230
- toggle = function () {
1231
- /// <summary>Shows or hides the widget</summary>
1232
- return (widget ? hide() : show());
1233
- },
1234
-
1235
- parseInputDate = function (inputDate) {
1236
- if (options.parseInputDate === undefined) {
1237
- if (moment.isMoment(inputDate) || inputDate instanceof Date) {
1238
- inputDate = moment(inputDate);
1239
- } else {
1240
- inputDate = getMoment(inputDate);
1241
- }
1242
- } else {
1243
- inputDate = options.parseInputDate(inputDate);
1244
- }
1245
- inputDate.locale(options.locale);
1246
- return inputDate;
1247
- },
1248
-
1249
- keydown = function (e) {
1250
- var handler = null,
1251
- index,
1252
- index2,
1253
- pressedKeys = [],
1254
- pressedModifiers = {},
1255
- currentKey = e.which,
1256
- keyBindKeys,
1257
- allModifiersPressed,
1258
- pressed = 'p';
1259
-
1260
- keyState[currentKey] = pressed;
1261
-
1262
- for (index in keyState) {
1263
- if (keyState.hasOwnProperty(index) && keyState[index] === pressed) {
1264
- pressedKeys.push(index);
1265
- if (parseInt(index, 10) !== currentKey) {
1266
- pressedModifiers[index] = true;
1267
- }
1268
- }
1269
- }
1270
-
1271
- for (index in options.keyBinds) {
1272
- if (options.keyBinds.hasOwnProperty(index) && typeof (options.keyBinds[index]) === 'function') {
1273
- keyBindKeys = index.split(' ');
1274
- if (keyBindKeys.length === pressedKeys.length && keyMap[currentKey] === keyBindKeys[keyBindKeys.length - 1]) {
1275
- allModifiersPressed = true;
1276
- for (index2 = keyBindKeys.length - 2; index2 >= 0; index2--) {
1277
- if (!(keyMap[keyBindKeys[index2]] in pressedModifiers)) {
1278
- allModifiersPressed = false;
1279
- break;
1280
- }
1281
- }
1282
- if (allModifiersPressed) {
1283
- handler = options.keyBinds[index];
1284
- break;
1285
- }
1286
- }
1287
- }
1288
- }
1289
-
1290
- if (handler) {
1291
- handler.call(picker, widget);
1292
- e.stopPropagation();
1293
- e.preventDefault();
1294
- }
1295
- },
1296
-
1297
- keyup = function (e) {
1298
- keyState[e.which] = 'r';
1299
- e.stopPropagation();
1300
- e.preventDefault();
1301
- },
1302
-
1303
- change = function (e) {
1304
- var val = $(e.target).val().trim(),
1305
- parsedDate = val ? parseInputDate(val) : null;
1306
- setValue(parsedDate);
1307
- e.stopImmediatePropagation();
1308
- return false;
1309
- },
1310
-
1311
- attachDatePickerElementEvents = function () {
1312
- input.on({
1313
- 'change': change,
1314
- 'blur': options.debug ? '' : hide,
1315
- 'keydown': keydown,
1316
- 'keyup': keyup,
1317
- 'focus': options.allowInputToggle ? show : ''
1318
- });
1319
-
1320
- if (element.is('input')) {
1321
- input.on({
1322
- 'focus': show
1323
- });
1324
- } else if (component) {
1325
- component.on('click', toggle);
1326
- component.on('mousedown', false);
1327
- }
1328
- },
1329
-
1330
- detachDatePickerElementEvents = function () {
1331
- input.off({
1332
- 'change': change,
1333
- 'blur': blur,
1334
- 'keydown': keydown,
1335
- 'keyup': keyup,
1336
- 'focus': options.allowInputToggle ? hide : ''
1337
- });
1338
-
1339
- if (element.is('input')) {
1340
- input.off({
1341
- 'focus': show
1342
- });
1343
- } else if (component) {
1344
- component.off('click', toggle);
1345
- component.off('mousedown', false);
1346
- }
1347
- },
1348
-
1349
- indexGivenDates = function (givenDatesArray) {
1350
- // Store given enabledDates and disabledDates as keys.
1351
- // This way we can check their existence in O(1) time instead of looping through whole array.
1352
- // (for example: options.enabledDates['2014-02-27'] === true)
1353
- var givenDatesIndexed = {};
1354
- $.each(givenDatesArray, function () {
1355
- var dDate = parseInputDate(this);
1356
- if (dDate.isValid()) {
1357
- givenDatesIndexed[dDate.format('YYYY-MM-DD')] = true;
1358
- }
1359
- });
1360
- return (Object.keys(givenDatesIndexed).length) ? givenDatesIndexed : false;
1361
- },
1362
-
1363
- indexGivenHours = function (givenHoursArray) {
1364
- // Store given enabledHours and disabledHours as keys.
1365
- // This way we can check their existence in O(1) time instead of looping through whole array.
1366
- // (for example: options.enabledHours['2014-02-27'] === true)
1367
- var givenHoursIndexed = {};
1368
- $.each(givenHoursArray, function () {
1369
- givenHoursIndexed[this] = true;
1370
- });
1371
- return (Object.keys(givenHoursIndexed).length) ? givenHoursIndexed : false;
1372
- },
1373
-
1374
- initFormatting = function () {
1375
- var format = options.format || 'L LT';
1376
-
1377
- actualFormat = format.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, function (formatInput) {
1378
- var newinput = date.localeData().longDateFormat(formatInput) || formatInput;
1379
- return newinput.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, function (formatInput2) { //temp fix for #740
1380
- return date.localeData().longDateFormat(formatInput2) || formatInput2;
1381
- });
1382
- });
1383
-
1384
-
1385
- parseFormats = options.extraFormats ? options.extraFormats.slice() : [];
1386
- if (parseFormats.indexOf(format) < 0 && parseFormats.indexOf(actualFormat) < 0) {
1387
- parseFormats.push(actualFormat);
1388
- }
1389
-
1390
- use24Hours = (actualFormat.toLowerCase().indexOf('a') < 1 && actualFormat.replace(/\[.*?\]/g, '').indexOf('h') < 1);
1391
-
1392
- if (isEnabled('y')) {
1393
- minViewModeNumber = 2;
1394
- }
1395
- if (isEnabled('M')) {
1396
- minViewModeNumber = 1;
1397
- }
1398
- if (isEnabled('d')) {
1399
- minViewModeNumber = 0;
1400
- }
1401
-
1402
- currentViewMode = Math.max(minViewModeNumber, currentViewMode);
1403
-
1404
- if (!unset) {
1405
- setValue(date);
1406
- }
1407
- };
1408
-
1409
- /********************************************************************************
1410
- *
1411
- * Public API functions
1412
- * =====================
1413
- *
1414
- * Important: Do not expose direct references to private objects or the options
1415
- * object to the outer world. Always return a clone when returning values or make
1416
- * a clone when setting a private variable.
1417
- *
1418
- ********************************************************************************/
1419
- picker.destroy = function () {
1420
- ///<summary>Destroys the widget and removes all attached event listeners</summary>
1421
- hide();
1422
- detachDatePickerElementEvents();
1423
- element.removeData('DateTimePicker');
1424
- element.removeData('date');
1425
- };
1426
-
1427
- picker.toggle = toggle;
1428
-
1429
- picker.show = show;
1430
-
1431
- picker.hide = hide;
1432
-
1433
- picker.disable = function () {
1434
- ///<summary>Disables the input element, the component is attached to, by adding a disabled="true" attribute to it.
1435
- ///If the widget was visible before that call it is hidden. Possibly emits dp.hide</summary>
1436
- hide();
1437
- if (component && component.hasClass('btn')) {
1438
- component.addClass('disabled');
1439
- }
1440
- input.prop('disabled', true);
1441
- return picker;
1442
- };
1443
-
1444
- picker.enable = function () {
1445
- ///<summary>Enables the input element, the component is attached to, by removing disabled attribute from it.</summary>
1446
- if (component && component.hasClass('btn')) {
1447
- component.removeClass('disabled');
1448
- }
1449
- input.prop('disabled', false);
1450
- return picker;
1451
- };
1452
-
1453
- picker.ignoreReadonly = function (ignoreReadonly) {
1454
- if (arguments.length === 0) {
1455
- return options.ignoreReadonly;
1456
- }
1457
- if (typeof ignoreReadonly !== 'boolean') {
1458
- throw new TypeError('ignoreReadonly () expects a boolean parameter');
1459
- }
1460
- options.ignoreReadonly = ignoreReadonly;
1461
- return picker;
1462
- };
1463
-
1464
- picker.options = function (newOptions) {
1465
- if (arguments.length === 0) {
1466
- return $.extend(true, {}, options);
1467
- }
1468
-
1469
- if (!(newOptions instanceof Object)) {
1470
- throw new TypeError('options() options parameter should be an object');
1471
- }
1472
- $.extend(true, options, newOptions);
1473
- $.each(options, function (key, value) {
1474
- if (picker[key] !== undefined) {
1475
- picker[key](value);
1476
- } else {
1477
- throw new TypeError('option ' + key + ' is not recognized!');
1478
- }
1479
- });
1480
- return picker;
1481
- };
1482
-
1483
- picker.date = function (newDate) {
1484
- ///<signature helpKeyword="$.fn.datetimepicker.date">
1485
- ///<summary>Returns the component's model current date, a moment object or null if not set.</summary>
1486
- ///<returns type="Moment">date.clone()</returns>
1487
- ///</signature>
1488
- ///<signature>
1489
- ///<summary>Sets the components model current moment to it. Passing a null value unsets the components model current moment. Parsing of the newDate parameter is made using moment library with the options.format and options.useStrict components configuration.</summary>
1490
- ///<param name="newDate" locid="$.fn.datetimepicker.date_p:newDate">Takes string, Date, moment, null parameter.</param>
1491
- ///</signature>
1492
- if (arguments.length === 0) {
1493
- if (unset) {
1494
- return null;
1495
- }
1496
- return date.clone();
1497
- }
1498
-
1499
- if (newDate !== null && typeof newDate !== 'string' && !moment.isMoment(newDate) && !(newDate instanceof Date)) {
1500
- throw new TypeError('date() parameter must be one of [null, string, moment or Date]');
1501
- }
1502
-
1503
- setValue(newDate === null ? null : parseInputDate(newDate));
1504
- return picker;
1505
- };
1506
-
1507
- picker.format = function (newFormat) {
1508
- ///<summary>test su</summary>
1509
- ///<param name="newFormat">info about para</param>
1510
- ///<returns type="string|boolean">returns foo</returns>
1511
- if (arguments.length === 0) {
1512
- return options.format;
1513
- }
1514
-
1515
- if ((typeof newFormat !== 'string') && ((typeof newFormat !== 'boolean') || (newFormat !== false))) {
1516
- throw new TypeError('format() expects a sting or boolean:false parameter ' + newFormat);
1517
- }
1518
-
1519
- options.format = newFormat;
1520
- if (actualFormat) {
1521
- initFormatting(); // reinit formatting
1522
- }
1523
- return picker;
1524
- };
1525
-
1526
- picker.timeZone = function (newZone) {
1527
- if (arguments.length === 0) {
1528
- return options.timeZone;
1529
- }
1530
-
1531
- options.timeZone = newZone;
1532
-
1533
- return picker;
1534
- };
1535
-
1536
- picker.dayViewHeaderFormat = function (newFormat) {
1537
- if (arguments.length === 0) {
1538
- return options.dayViewHeaderFormat;
1539
- }
1540
-
1541
- if (typeof newFormat !== 'string') {
1542
- throw new TypeError('dayViewHeaderFormat() expects a string parameter');
1543
- }
1544
-
1545
- options.dayViewHeaderFormat = newFormat;
1546
- return picker;
1547
- };
1548
-
1549
- picker.extraFormats = function (formats) {
1550
- if (arguments.length === 0) {
1551
- return options.extraFormats;
1552
- }
1553
-
1554
- if (formats !== false && !(formats instanceof Array)) {
1555
- throw new TypeError('extraFormats() expects an array or false parameter');
1556
- }
1557
-
1558
- options.extraFormats = formats;
1559
- if (parseFormats) {
1560
- initFormatting(); // reinit formatting
1561
- }
1562
- return picker;
1563
- };
1564
-
1565
- picker.disabledDates = function (dates) {
1566
- ///<signature helpKeyword="$.fn.datetimepicker.disabledDates">
1567
- ///<summary>Returns an array with the currently set disabled dates on the component.</summary>
1568
- ///<returns type="array">options.disabledDates</returns>
1569
- ///</signature>
1570
- ///<signature>
1571
- ///<summary>Setting this takes precedence over options.minDate, options.maxDate configuration. Also calling this function removes the configuration of
1572
- ///options.enabledDates if such exist.</summary>
1573
- ///<param name="dates" locid="$.fn.datetimepicker.disabledDates_p:dates">Takes an [ string or Date or moment ] of values and allows the user to select only from those days.</param>
1574
- ///</signature>
1575
- if (arguments.length === 0) {
1576
- return (options.disabledDates ? $.extend({}, options.disabledDates) : options.disabledDates);
1577
- }
1578
-
1579
- if (!dates) {
1580
- options.disabledDates = false;
1581
- update();
1582
- return picker;
1583
- }
1584
- if (!(dates instanceof Array)) {
1585
- throw new TypeError('disabledDates() expects an array parameter');
1586
- }
1587
- options.disabledDates = indexGivenDates(dates);
1588
- options.enabledDates = false;
1589
- update();
1590
- return picker;
1591
- };
1592
-
1593
- picker.enabledDates = function (dates) {
1594
- ///<signature helpKeyword="$.fn.datetimepicker.enabledDates">
1595
- ///<summary>Returns an array with the currently set enabled dates on the component.</summary>
1596
- ///<returns type="array">options.enabledDates</returns>
1597
- ///</signature>
1598
- ///<signature>
1599
- ///<summary>Setting this takes precedence over options.minDate, options.maxDate configuration. Also calling this function removes the configuration of options.disabledDates if such exist.</summary>
1600
- ///<param name="dates" locid="$.fn.datetimepicker.enabledDates_p:dates">Takes an [ string or Date or moment ] of values and allows the user to select only from those days.</param>
1601
- ///</signature>
1602
- if (arguments.length === 0) {
1603
- return (options.enabledDates ? $.extend({}, options.enabledDates) : options.enabledDates);
1604
- }
1605
-
1606
- if (!dates) {
1607
- options.enabledDates = false;
1608
- update();
1609
- return picker;
1610
- }
1611
- if (!(dates instanceof Array)) {
1612
- throw new TypeError('enabledDates() expects an array parameter');
1613
- }
1614
- options.enabledDates = indexGivenDates(dates);
1615
- options.disabledDates = false;
1616
- update();
1617
- return picker;
1618
- };
1619
-
1620
- picker.daysOfWeekDisabled = function (daysOfWeekDisabled) {
1621
- if (arguments.length === 0) {
1622
- return options.daysOfWeekDisabled.splice(0);
1623
- }
1624
-
1625
- if ((typeof daysOfWeekDisabled === 'boolean') && !daysOfWeekDisabled) {
1626
- options.daysOfWeekDisabled = false;
1627
- update();
1628
- return picker;
1629
- }
1630
-
1631
- if (!(daysOfWeekDisabled instanceof Array)) {
1632
- throw new TypeError('daysOfWeekDisabled() expects an array parameter');
1633
- }
1634
- options.daysOfWeekDisabled = daysOfWeekDisabled.reduce(function (previousValue, currentValue) {
1635
- currentValue = parseInt(currentValue, 10);
1636
- if (currentValue > 6 || currentValue < 0 || isNaN(currentValue)) {
1637
- return previousValue;
1638
- }
1639
- if (previousValue.indexOf(currentValue) === -1) {
1640
- previousValue.push(currentValue);
1641
- }
1642
- return previousValue;
1643
- }, []).sort();
1644
- if (options.useCurrent && !options.keepInvalid) {
1645
- var tries = 0;
1646
- while (!isValid(date, 'd')) {
1647
- date.add(1, 'd');
1648
- if (tries === 7) {
1649
- throw 'Tried 7 times to find a valid date';
1650
- }
1651
- tries++;
1652
- }
1653
- setValue(date);
1654
- }
1655
- update();
1656
- return picker;
1657
- };
1658
-
1659
- picker.maxDate = function (maxDate) {
1660
- if (arguments.length === 0) {
1661
- return options.maxDate ? options.maxDate.clone() : options.maxDate;
1662
- }
1663
-
1664
- if ((typeof maxDate === 'boolean') && maxDate === false) {
1665
- options.maxDate = false;
1666
- update();
1667
- return picker;
1668
- }
1669
-
1670
- if (typeof maxDate === 'string') {
1671
- if (maxDate === 'now' || maxDate === 'moment') {
1672
- maxDate = getMoment();
1673
- }
1674
- }
1675
-
1676
- var parsedDate = parseInputDate(maxDate);
1677
-
1678
- if (!parsedDate.isValid()) {
1679
- throw new TypeError('maxDate() Could not parse date parameter: ' + maxDate);
1680
- }
1681
- if (options.minDate && parsedDate.isBefore(options.minDate)) {
1682
- throw new TypeError('maxDate() date parameter is before options.minDate: ' + parsedDate.format(actualFormat));
1683
- }
1684
- options.maxDate = parsedDate;
1685
- if (options.useCurrent && !options.keepInvalid && date.isAfter(maxDate)) {
1686
- setValue(options.maxDate);
1687
- }
1688
- if (viewDate.isAfter(parsedDate)) {
1689
- viewDate = parsedDate.clone().subtract(options.stepping, 'm');
1690
- }
1691
- update();
1692
- return picker;
1693
- };
1694
-
1695
- picker.minDate = function (minDate) {
1696
- if (arguments.length === 0) {
1697
- return options.minDate ? options.minDate.clone() : options.minDate;
1698
- }
1699
-
1700
- if ((typeof minDate === 'boolean') && minDate === false) {
1701
- options.minDate = false;
1702
- update();
1703
- return picker;
1704
- }
1705
-
1706
- if (typeof minDate === 'string') {
1707
- if (minDate === 'now' || minDate === 'moment') {
1708
- minDate = getMoment();
1709
- }
1710
- }
1711
-
1712
- var parsedDate = parseInputDate(minDate);
1713
-
1714
- if (!parsedDate.isValid()) {
1715
- throw new TypeError('minDate() Could not parse date parameter: ' + minDate);
1716
- }
1717
- if (options.maxDate && parsedDate.isAfter(options.maxDate)) {
1718
- throw new TypeError('minDate() date parameter is after options.maxDate: ' + parsedDate.format(actualFormat));
1719
- }
1720
- options.minDate = parsedDate;
1721
- if (options.useCurrent && !options.keepInvalid && date.isBefore(minDate)) {
1722
- setValue(options.minDate);
1723
- }
1724
- if (viewDate.isBefore(parsedDate)) {
1725
- viewDate = parsedDate.clone().add(options.stepping, 'm');
1726
- }
1727
- update();
1728
- return picker;
1729
- };
1730
-
1731
- picker.defaultDate = function (defaultDate) {
1732
- ///<signature helpKeyword="$.fn.datetimepicker.defaultDate">
1733
- ///<summary>Returns a moment with the options.defaultDate option configuration or false if not set</summary>
1734
- ///<returns type="Moment">date.clone()</returns>
1735
- ///</signature>
1736
- ///<signature>
1737
- ///<summary>Will set the picker's inital date. If a boolean:false value is passed the options.defaultDate parameter is cleared.</summary>
1738
- ///<param name="defaultDate" locid="$.fn.datetimepicker.defaultDate_p:defaultDate">Takes a string, Date, moment, boolean:false</param>
1739
- ///</signature>
1740
- if (arguments.length === 0) {
1741
- return options.defaultDate ? options.defaultDate.clone() : options.defaultDate;
1742
- }
1743
- if (!defaultDate) {
1744
- options.defaultDate = false;
1745
- return picker;
1746
- }
1747
-
1748
- if (typeof defaultDate === 'string') {
1749
- if (defaultDate === 'now' || defaultDate === 'moment') {
1750
- defaultDate = getMoment();
1751
- }
1752
- }
1753
-
1754
- var parsedDate = parseInputDate(defaultDate);
1755
- if (!parsedDate.isValid()) {
1756
- throw new TypeError('defaultDate() Could not parse date parameter: ' + defaultDate);
1757
- }
1758
- if (!isValid(parsedDate)) {
1759
- throw new TypeError('defaultDate() date passed is invalid according to component setup validations');
1760
- }
1761
-
1762
- options.defaultDate = parsedDate;
1763
-
1764
- if ((options.defaultDate && options.inline) || input.val().trim() === '') {
1765
- setValue(options.defaultDate);
1766
- }
1767
- return picker;
1768
- };
1769
-
1770
- picker.locale = function (locale) {
1771
- if (arguments.length === 0) {
1772
- return options.locale;
1773
- }
1774
-
1775
- if (!moment.localeData(locale)) {
1776
- throw new TypeError('locale() locale ' + locale + ' is not loaded from moment locales!');
1777
- }
1778
-
1779
- options.locale = locale;
1780
- date.locale(options.locale);
1781
- viewDate.locale(options.locale);
1782
-
1783
- if (actualFormat) {
1784
- initFormatting(); // reinit formatting
1785
- }
1786
- if (widget) {
1787
- hide();
1788
- show();
1789
- }
1790
- return picker;
1791
- };
1792
-
1793
- picker.stepping = function (stepping) {
1794
- if (arguments.length === 0) {
1795
- return options.stepping;
1796
- }
1797
-
1798
- stepping = parseInt(stepping, 10);
1799
- if (isNaN(stepping) || stepping < 1) {
1800
- stepping = 1;
1801
- }
1802
- options.stepping = stepping;
1803
- return picker;
1804
- };
1805
-
1806
- picker.useCurrent = function (useCurrent) {
1807
- var useCurrentOptions = ['year', 'month', 'day', 'hour', 'minute'];
1808
- if (arguments.length === 0) {
1809
- return options.useCurrent;
1810
- }
1811
-
1812
- if ((typeof useCurrent !== 'boolean') && (typeof useCurrent !== 'string')) {
1813
- throw new TypeError('useCurrent() expects a boolean or string parameter');
1814
- }
1815
- if (typeof useCurrent === 'string' && useCurrentOptions.indexOf(useCurrent.toLowerCase()) === -1) {
1816
- throw new TypeError('useCurrent() expects a string parameter of ' + useCurrentOptions.join(', '));
1817
- }
1818
- options.useCurrent = useCurrent;
1819
- return picker;
1820
- };
1821
-
1822
- picker.collapse = function (collapse) {
1823
- if (arguments.length === 0) {
1824
- return options.collapse;
1825
- }
1826
-
1827
- if (typeof collapse !== 'boolean') {
1828
- throw new TypeError('collapse() expects a boolean parameter');
1829
- }
1830
- if (options.collapse === collapse) {
1831
- return picker;
1832
- }
1833
- options.collapse = collapse;
1834
- if (widget) {
1835
- hide();
1836
- show();
1837
- }
1838
- return picker;
1839
- };
1840
-
1841
- picker.icons = function (icons) {
1842
- if (arguments.length === 0) {
1843
- return $.extend({}, options.icons);
1844
- }
1845
-
1846
- if (!(icons instanceof Object)) {
1847
- throw new TypeError('icons() expects parameter to be an Object');
1848
- }
1849
- $.extend(options.icons, icons);
1850
- if (widget) {
1851
- hide();
1852
- show();
1853
- }
1854
- return picker;
1855
- };
1856
-
1857
- picker.tooltips = function (tooltips) {
1858
- if (arguments.length === 0) {
1859
- return $.extend({}, options.tooltips);
1860
- }
1861
-
1862
- if (!(tooltips instanceof Object)) {
1863
- throw new TypeError('tooltips() expects parameter to be an Object');
1864
- }
1865
- $.extend(options.tooltips, tooltips);
1866
- if (widget) {
1867
- hide();
1868
- show();
1869
- }
1870
- return picker;
1871
- };
1872
-
1873
- picker.useStrict = function (useStrict) {
1874
- if (arguments.length === 0) {
1875
- return options.useStrict;
1876
- }
1877
-
1878
- if (typeof useStrict !== 'boolean') {
1879
- throw new TypeError('useStrict() expects a boolean parameter');
1880
- }
1881
- options.useStrict = useStrict;
1882
- return picker;
1883
- };
1884
-
1885
- picker.sideBySide = function (sideBySide) {
1886
- if (arguments.length === 0) {
1887
- return options.sideBySide;
1888
- }
1889
-
1890
- if (typeof sideBySide !== 'boolean') {
1891
- throw new TypeError('sideBySide() expects a boolean parameter');
1892
- }
1893
- options.sideBySide = sideBySide;
1894
- if (widget) {
1895
- hide();
1896
- show();
1897
- }
1898
- return picker;
1899
- };
1900
-
1901
- picker.viewMode = function (viewMode) {
1902
- if (arguments.length === 0) {
1903
- return options.viewMode;
1904
- }
1905
-
1906
- if (typeof viewMode !== 'string') {
1907
- throw new TypeError('viewMode() expects a string parameter');
1908
- }
1909
-
1910
- if (viewModes.indexOf(viewMode) === -1) {
1911
- throw new TypeError('viewMode() parameter must be one of (' + viewModes.join(', ') + ') value');
1912
- }
1913
-
1914
- options.viewMode = viewMode;
1915
- currentViewMode = Math.max(viewModes.indexOf(viewMode), minViewModeNumber);
1916
-
1917
- showMode();
1918
- return picker;
1919
- };
1920
-
1921
- picker.toolbarPlacement = function (toolbarPlacement) {
1922
- if (arguments.length === 0) {
1923
- return options.toolbarPlacement;
1924
- }
1925
-
1926
- if (typeof toolbarPlacement !== 'string') {
1927
- throw new TypeError('toolbarPlacement() expects a string parameter');
1928
- }
1929
- if (toolbarPlacements.indexOf(toolbarPlacement) === -1) {
1930
- throw new TypeError('toolbarPlacement() parameter must be one of (' + toolbarPlacements.join(', ') + ') value');
1931
- }
1932
- options.toolbarPlacement = toolbarPlacement;
1933
-
1934
- if (widget) {
1935
- hide();
1936
- show();
1937
- }
1938
- return picker;
1939
- };
1940
-
1941
- picker.widgetPositioning = function (widgetPositioning) {
1942
- if (arguments.length === 0) {
1943
- return $.extend({}, options.widgetPositioning);
1944
- }
1945
-
1946
- if (({}).toString.call(widgetPositioning) !== '[object Object]') {
1947
- throw new TypeError('widgetPositioning() expects an object variable');
1948
- }
1949
- if (widgetPositioning.horizontal) {
1950
- if (typeof widgetPositioning.horizontal !== 'string') {
1951
- throw new TypeError('widgetPositioning() horizontal variable must be a string');
1952
- }
1953
- widgetPositioning.horizontal = widgetPositioning.horizontal.toLowerCase();
1954
- if (horizontalModes.indexOf(widgetPositioning.horizontal) === -1) {
1955
- throw new TypeError('widgetPositioning() expects horizontal parameter to be one of (' + horizontalModes.join(', ') + ')');
1956
- }
1957
- options.widgetPositioning.horizontal = widgetPositioning.horizontal;
1958
- }
1959
- if (widgetPositioning.vertical) {
1960
- if (typeof widgetPositioning.vertical !== 'string') {
1961
- throw new TypeError('widgetPositioning() vertical variable must be a string');
1962
- }
1963
- widgetPositioning.vertical = widgetPositioning.vertical.toLowerCase();
1964
- if (verticalModes.indexOf(widgetPositioning.vertical) === -1) {
1965
- throw new TypeError('widgetPositioning() expects vertical parameter to be one of (' + verticalModes.join(', ') + ')');
1966
- }
1967
- options.widgetPositioning.vertical = widgetPositioning.vertical;
1968
- }
1969
- update();
1970
- return picker;
1971
- };
1972
-
1973
- picker.calendarWeeks = function (calendarWeeks) {
1974
- if (arguments.length === 0) {
1975
- return options.calendarWeeks;
1976
- }
1977
-
1978
- if (typeof calendarWeeks !== 'boolean') {
1979
- throw new TypeError('calendarWeeks() expects parameter to be a boolean value');
1980
- }
1981
-
1982
- options.calendarWeeks = calendarWeeks;
1983
- update();
1984
- return picker;
1985
- };
1986
-
1987
- picker.showTodayButton = function (showTodayButton) {
1988
- if (arguments.length === 0) {
1989
- return options.showTodayButton;
1990
- }
1991
-
1992
- if (typeof showTodayButton !== 'boolean') {
1993
- throw new TypeError('showTodayButton() expects a boolean parameter');
1994
- }
1995
-
1996
- options.showTodayButton = showTodayButton;
1997
- if (widget) {
1998
- hide();
1999
- show();
2000
- }
2001
- return picker;
2002
- };
2003
-
2004
- picker.showClear = function (showClear) {
2005
- if (arguments.length === 0) {
2006
- return options.showClear;
2007
- }
2008
-
2009
- if (typeof showClear !== 'boolean') {
2010
- throw new TypeError('showClear() expects a boolean parameter');
2011
- }
2012
-
2013
- options.showClear = showClear;
2014
- if (widget) {
2015
- hide();
2016
- show();
2017
- }
2018
- return picker;
2019
- };
2020
-
2021
- picker.widgetParent = function (widgetParent) {
2022
- if (arguments.length === 0) {
2023
- return options.widgetParent;
2024
- }
2025
-
2026
- if (typeof widgetParent === 'string') {
2027
- widgetParent = $(widgetParent);
2028
- }
2029
-
2030
- if (widgetParent !== null && (typeof widgetParent !== 'string' && !(widgetParent instanceof $))) {
2031
- throw new TypeError('widgetParent() expects a string or a jQuery object parameter');
2032
- }
2033
-
2034
- options.widgetParent = widgetParent;
2035
- if (widget) {
2036
- hide();
2037
- show();
2038
- }
2039
- return picker;
2040
- };
2041
-
2042
- picker.keepOpen = function (keepOpen) {
2043
- if (arguments.length === 0) {
2044
- return options.keepOpen;
2045
- }
2046
-
2047
- if (typeof keepOpen !== 'boolean') {
2048
- throw new TypeError('keepOpen() expects a boolean parameter');
2049
- }
2050
-
2051
- options.keepOpen = keepOpen;
2052
- return picker;
2053
- };
2054
-
2055
- picker.focusOnShow = function (focusOnShow) {
2056
- if (arguments.length === 0) {
2057
- return options.focusOnShow;
2058
- }
2059
-
2060
- if (typeof focusOnShow !== 'boolean') {
2061
- throw new TypeError('focusOnShow() expects a boolean parameter');
2062
- }
2063
-
2064
- options.focusOnShow = focusOnShow;
2065
- return picker;
2066
- };
2067
-
2068
- picker.inline = function (inline) {
2069
- if (arguments.length === 0) {
2070
- return options.inline;
2071
- }
2072
-
2073
- if (typeof inline !== 'boolean') {
2074
- throw new TypeError('inline() expects a boolean parameter');
2075
- }
2076
-
2077
- options.inline = inline;
2078
- return picker;
2079
- };
2080
-
2081
- picker.clear = function () {
2082
- clear();
2083
- return picker;
2084
- };
2085
-
2086
- picker.keyBinds = function (keyBinds) {
2087
- options.keyBinds = keyBinds;
2088
- return picker;
2089
- };
2090
-
2091
- picker.getMoment = function (d) {
2092
- return getMoment(d);
2093
- };
2094
-
2095
- picker.debug = function (debug) {
2096
- if (typeof debug !== 'boolean') {
2097
- throw new TypeError('debug() expects a boolean parameter');
2098
- }
2099
-
2100
- options.debug = debug;
2101
- return picker;
2102
- };
2103
-
2104
- picker.allowInputToggle = function (allowInputToggle) {
2105
- if (arguments.length === 0) {
2106
- return options.allowInputToggle;
2107
- }
2108
-
2109
- if (typeof allowInputToggle !== 'boolean') {
2110
- throw new TypeError('allowInputToggle() expects a boolean parameter');
2111
- }
2112
-
2113
- options.allowInputToggle = allowInputToggle;
2114
- return picker;
2115
- };
2116
-
2117
- picker.showClose = function (showClose) {
2118
- if (arguments.length === 0) {
2119
- return options.showClose;
2120
- }
2121
-
2122
- if (typeof showClose !== 'boolean') {
2123
- throw new TypeError('showClose() expects a boolean parameter');
2124
- }
2125
-
2126
- options.showClose = showClose;
2127
- return picker;
2128
- };
2129
-
2130
- picker.keepInvalid = function (keepInvalid) {
2131
- if (arguments.length === 0) {
2132
- return options.keepInvalid;
2133
- }
2134
-
2135
- if (typeof keepInvalid !== 'boolean') {
2136
- throw new TypeError('keepInvalid() expects a boolean parameter');
2137
- }
2138
- options.keepInvalid = keepInvalid;
2139
- return picker;
2140
- };
2141
-
2142
- picker.datepickerInput = function (datepickerInput) {
2143
- if (arguments.length === 0) {
2144
- return options.datepickerInput;
2145
- }
2146
-
2147
- if (typeof datepickerInput !== 'string') {
2148
- throw new TypeError('datepickerInput() expects a string parameter');
2149
- }
2150
-
2151
- options.datepickerInput = datepickerInput;
2152
- return picker;
2153
- };
2154
-
2155
- picker.parseInputDate = function (parseInputDate) {
2156
- if (arguments.length === 0) {
2157
- return options.parseInputDate;
2158
- }
2159
-
2160
- if (typeof parseInputDate !== 'function') {
2161
- throw new TypeError('parseInputDate() sholud be as function');
2162
- }
2163
-
2164
- options.parseInputDate = parseInputDate;
2165
-
2166
- return picker;
2167
- };
2168
-
2169
- picker.disabledTimeIntervals = function (disabledTimeIntervals) {
2170
- ///<signature helpKeyword="$.fn.datetimepicker.disabledTimeIntervals">
2171
- ///<summary>Returns an array with the currently set disabled dates on the component.</summary>
2172
- ///<returns type="array">options.disabledTimeIntervals</returns>
2173
- ///</signature>
2174
- ///<signature>
2175
- ///<summary>Setting this takes precedence over options.minDate, options.maxDate configuration. Also calling this function removes the configuration of
2176
- ///options.enabledDates if such exist.</summary>
2177
- ///<param name="dates" locid="$.fn.datetimepicker.disabledTimeIntervals_p:dates">Takes an [ string or Date or moment ] of values and allows the user to select only from those days.</param>
2178
- ///</signature>
2179
- if (arguments.length === 0) {
2180
- return (options.disabledTimeIntervals ? $.extend({}, options.disabledTimeIntervals) : options.disabledTimeIntervals);
2181
- }
2182
-
2183
- if (!disabledTimeIntervals) {
2184
- options.disabledTimeIntervals = false;
2185
- update();
2186
- return picker;
2187
- }
2188
- if (!(disabledTimeIntervals instanceof Array)) {
2189
- throw new TypeError('disabledTimeIntervals() expects an array parameter');
2190
- }
2191
- options.disabledTimeIntervals = disabledTimeIntervals;
2192
- update();
2193
- return picker;
2194
- };
2195
-
2196
- picker.disabledHours = function (hours) {
2197
- ///<signature helpKeyword="$.fn.datetimepicker.disabledHours">
2198
- ///<summary>Returns an array with the currently set disabled hours on the component.</summary>
2199
- ///<returns type="array">options.disabledHours</returns>
2200
- ///</signature>
2201
- ///<signature>
2202
- ///<summary>Setting this takes precedence over options.minDate, options.maxDate configuration. Also calling this function removes the configuration of
2203
- ///options.enabledHours if such exist.</summary>
2204
- ///<param name="hours" locid="$.fn.datetimepicker.disabledHours_p:hours">Takes an [ int ] of values and disallows the user to select only from those hours.</param>
2205
- ///</signature>
2206
- if (arguments.length === 0) {
2207
- return (options.disabledHours ? $.extend({}, options.disabledHours) : options.disabledHours);
2208
- }
2209
-
2210
- if (!hours) {
2211
- options.disabledHours = false;
2212
- update();
2213
- return picker;
2214
- }
2215
- if (!(hours instanceof Array)) {
2216
- throw new TypeError('disabledHours() expects an array parameter');
2217
- }
2218
- options.disabledHours = indexGivenHours(hours);
2219
- options.enabledHours = false;
2220
- if (options.useCurrent && !options.keepInvalid) {
2221
- var tries = 0;
2222
- while (!isValid(date, 'h')) {
2223
- date.add(1, 'h');
2224
- if (tries === 24) {
2225
- throw 'Tried 24 times to find a valid date';
2226
- }
2227
- tries++;
2228
- }
2229
- setValue(date);
2230
- }
2231
- update();
2232
- return picker;
2233
- };
2234
-
2235
- picker.enabledHours = function (hours) {
2236
- ///<signature helpKeyword="$.fn.datetimepicker.enabledHours">
2237
- ///<summary>Returns an array with the currently set enabled hours on the component.</summary>
2238
- ///<returns type="array">options.enabledHours</returns>
2239
- ///</signature>
2240
- ///<signature>
2241
- ///<summary>Setting this takes precedence over options.minDate, options.maxDate configuration. Also calling this function removes the configuration of options.disabledHours if such exist.</summary>
2242
- ///<param name="hours" locid="$.fn.datetimepicker.enabledHours_p:hours">Takes an [ int ] of values and allows the user to select only from those hours.</param>
2243
- ///</signature>
2244
- if (arguments.length === 0) {
2245
- return (options.enabledHours ? $.extend({}, options.enabledHours) : options.enabledHours);
2246
- }
2247
-
2248
- if (!hours) {
2249
- options.enabledHours = false;
2250
- update();
2251
- return picker;
2252
- }
2253
- if (!(hours instanceof Array)) {
2254
- throw new TypeError('enabledHours() expects an array parameter');
2255
- }
2256
- options.enabledHours = indexGivenHours(hours);
2257
- options.disabledHours = false;
2258
- if (options.useCurrent && !options.keepInvalid) {
2259
- var tries = 0;
2260
- while (!isValid(date, 'h')) {
2261
- date.add(1, 'h');
2262
- if (tries === 24) {
2263
- throw 'Tried 24 times to find a valid date';
2264
- }
2265
- tries++;
2266
- }
2267
- setValue(date);
2268
- }
2269
- update();
2270
- return picker;
2271
- };
2272
-
2273
- picker.viewDate = function (newDate) {
2274
- ///<signature helpKeyword="$.fn.datetimepicker.viewDate">
2275
- ///<summary>Returns the component's model current viewDate, a moment object or null if not set.</summary>
2276
- ///<returns type="Moment">viewDate.clone()</returns>
2277
- ///</signature>
2278
- ///<signature>
2279
- ///<summary>Sets the components model current moment to it. Passing a null value unsets the components model current moment. Parsing of the newDate parameter is made using moment library with the options.format and options.useStrict components configuration.</summary>
2280
- ///<param name="newDate" locid="$.fn.datetimepicker.date_p:newDate">Takes string, viewDate, moment, null parameter.</param>
2281
- ///</signature>
2282
- if (arguments.length === 0) {
2283
- return viewDate.clone();
2284
- }
2285
-
2286
- if (!newDate) {
2287
- viewDate = date.clone();
2288
- return picker;
2289
- }
2290
-
2291
- if (typeof newDate !== 'string' && !moment.isMoment(newDate) && !(newDate instanceof Date)) {
2292
- throw new TypeError('viewDate() parameter must be one of [string, moment or Date]');
2293
- }
2294
-
2295
- viewDate = parseInputDate(newDate);
2296
- viewUpdate();
2297
- return picker;
2298
- };
2299
-
2300
- // initializing element and component attributes
2301
- if (element.is('input')) {
2302
- input = element;
2303
- } else {
2304
- input = element.find(options.datepickerInput);
2305
- if (input.size() === 0) {
2306
- input = element.find('input');
2307
- } else if (!input.is('input')) {
2308
- throw new Error('CSS class "' + options.datepickerInput + '" cannot be applied to non input element');
2309
- }
2310
- }
2311
-
2312
- if (element.hasClass('input-group')) {
2313
- // in case there is more then one 'input-group-addon' Issue #48
2314
- if (element.find('.datepickerbutton').size() === 0) {
2315
- component = element.find('.input-group-addon');
2316
- } else {
2317
- component = element.find('.datepickerbutton');
2318
- }
2319
- }
2320
-
2321
- if (!options.inline && !input.is('input')) {
2322
- throw new Error('Could not initialize DateTimePicker without an input element');
2323
- }
2324
-
2325
- // Set defaults for date here now instead of in var declaration
2326
- date = getMoment();
2327
- viewDate = date.clone();
2328
-
2329
- $.extend(true, options, dataToOptions());
2330
-
2331
- picker.options(options);
2332
-
2333
- initFormatting();
2334
-
2335
- attachDatePickerElementEvents();
2336
-
2337
- if (input.prop('disabled')) {
2338
- picker.disable();
2339
- }
2340
- if (input.is('input') && input.val().trim().length !== 0) {
2341
- setValue(parseInputDate(input.val().trim()));
2342
- }
2343
- else if (options.defaultDate && input.attr('placeholder') === undefined) {
2344
- setValue(options.defaultDate);
2345
- }
2346
- if (options.inline) {
2347
- show();
2348
- }
2349
- return picker;
2350
- };
2351
-
2352
- /********************************************************************************
2353
- *
2354
- * jQuery plugin constructor and defaults object
2355
- *
2356
- ********************************************************************************/
2357
-
2358
- $.fn.datetimepicker = function (options) {
2359
- return this.each(function () {
2360
- var $this = $(this);
2361
- if (!$this.data('DateTimePicker')) {
2362
- // create a private copy of the defaults object
2363
- options = $.extend(true, {}, $.fn.datetimepicker.defaults, options);
2364
- $this.data('DateTimePicker', dateTimePicker($this, options));
2365
- }
2366
- });
2367
- };
2368
-
2369
- $.fn.datetimepicker.defaults = {
2370
- timeZone: 'Etc/UTC',
2371
- format: false,
2372
- dayViewHeaderFormat: 'MMMM YYYY',
2373
- extraFormats: false,
2374
- stepping: 1,
2375
- minDate: false,
2376
- maxDate: false,
2377
- useCurrent: true,
2378
- collapse: true,
2379
- locale: moment.locale(),
2380
- defaultDate: false,
2381
- disabledDates: false,
2382
- enabledDates: false,
2383
- icons: {
2384
- time: 'glyphicon glyphicon-time',
2385
- date: 'glyphicon glyphicon-calendar',
2386
- up: 'glyphicon glyphicon-chevron-up',
2387
- down: 'glyphicon glyphicon-chevron-down',
2388
- previous: 'glyphicon glyphicon-chevron-left',
2389
- next: 'glyphicon glyphicon-chevron-right',
2390
- today: 'glyphicon glyphicon-screenshot',
2391
- clear: 'glyphicon glyphicon-trash',
2392
- close: 'glyphicon glyphicon-remove'
2393
- },
2394
- tooltips: {
2395
- today: 'Go to today',
2396
- clear: 'Clear selection',
2397
- close: 'Close the picker',
2398
- selectMonth: 'Select Month',
2399
- prevMonth: 'Previous Month',
2400
- nextMonth: 'Next Month',
2401
- selectYear: 'Select Year',
2402
- prevYear: 'Previous Year',
2403
- nextYear: 'Next Year',
2404
- selectDecade: 'Select Decade',
2405
- prevDecade: 'Previous Decade',
2406
- nextDecade: 'Next Decade',
2407
- prevCentury: 'Previous Century',
2408
- nextCentury: 'Next Century',
2409
- pickHour: 'Pick Hour',
2410
- incrementHour: 'Increment Hour',
2411
- decrementHour: 'Decrement Hour',
2412
- pickMinute: 'Pick Minute',
2413
- incrementMinute: 'Increment Minute',
2414
- decrementMinute: 'Decrement Minute',
2415
- pickSecond: 'Pick Second',
2416
- incrementSecond: 'Increment Second',
2417
- decrementSecond: 'Decrement Second',
2418
- togglePeriod: 'Toggle Period',
2419
- selectTime: 'Select Time'
2420
- },
2421
- useStrict: false,
2422
- sideBySide: false,
2423
- daysOfWeekDisabled: false,
2424
- calendarWeeks: false,
2425
- viewMode: 'days',
2426
- toolbarPlacement: 'default',
2427
- showTodayButton: false,
2428
- showClear: false,
2429
- showClose: false,
2430
- widgetPositioning: {
2431
- horizontal: 'auto',
2432
- vertical: 'auto'
2433
- },
2434
- widgetParent: null,
2435
- ignoreReadonly: false,
2436
- keepOpen: false,
2437
- focusOnShow: true,
2438
- inline: false,
2439
- keepInvalid: false,
2440
- datepickerInput: '.datepickerinput',
2441
- keyBinds: {
2442
- up: function (widget) {
2443
- if (!widget) {
2444
- return;
2445
- }
2446
- var d = this.date() || this.getMoment();
2447
- if (widget.find('.datepicker').is(':visible')) {
2448
- this.date(d.clone().subtract(7, 'd'));
2449
- } else {
2450
- this.date(d.clone().add(this.stepping(), 'm'));
2451
- }
2452
- },
2453
- down: function (widget) {
2454
- if (!widget) {
2455
- this.show();
2456
- return;
2457
- }
2458
- var d = this.date() || this.getMoment();
2459
- if (widget.find('.datepicker').is(':visible')) {
2460
- this.date(d.clone().add(7, 'd'));
2461
- } else {
2462
- this.date(d.clone().subtract(this.stepping(), 'm'));
2463
- }
2464
- },
2465
- 'control up': function (widget) {
2466
- if (!widget) {
2467
- return;
2468
- }
2469
- var d = this.date() || this.getMoment();
2470
- if (widget.find('.datepicker').is(':visible')) {
2471
- this.date(d.clone().subtract(1, 'y'));
2472
- } else {
2473
- this.date(d.clone().add(1, 'h'));
2474
- }
2475
- },
2476
- 'control down': function (widget) {
2477
- if (!widget) {
2478
- return;
2479
- }
2480
- var d = this.date() || this.getMoment();
2481
- if (widget.find('.datepicker').is(':visible')) {
2482
- this.date(d.clone().add(1, 'y'));
2483
- } else {
2484
- this.date(d.clone().subtract(1, 'h'));
2485
- }
2486
- },
2487
- left: function (widget) {
2488
- if (!widget) {
2489
- return;
2490
- }
2491
- var d = this.date() || this.getMoment();
2492
- if (widget.find('.datepicker').is(':visible')) {
2493
- this.date(d.clone().subtract(1, 'd'));
2494
- }
2495
- },
2496
- right: function (widget) {
2497
- if (!widget) {
2498
- return;
2499
- }
2500
- var d = this.date() || this.getMoment();
2501
- if (widget.find('.datepicker').is(':visible')) {
2502
- this.date(d.clone().add(1, 'd'));
2503
- }
2504
- },
2505
- pageUp: function (widget) {
2506
- if (!widget) {
2507
- return;
2508
- }
2509
- var d = this.date() || this.getMoment();
2510
- if (widget.find('.datepicker').is(':visible')) {
2511
- this.date(d.clone().subtract(1, 'M'));
2512
- }
2513
- },
2514
- pageDown: function (widget) {
2515
- if (!widget) {
2516
- return;
2517
- }
2518
- var d = this.date() || this.getMoment();
2519
- if (widget.find('.datepicker').is(':visible')) {
2520
- this.date(d.clone().add(1, 'M'));
2521
- }
2522
- },
2523
- enter: function () {
2524
- this.hide();
2525
- },
2526
- escape: function () {
2527
- this.hide();
2528
- },
2529
- //tab: function (widget) { //this break the flow of the form. disabling for now
2530
- // var toggle = widget.find('.picker-switch a[data-action="togglePicker"]');
2531
- // if(toggle.length > 0) toggle.click();
2532
- //},
2533
- 'control space': function (widget) {
2534
- if (widget.find('.timepicker').is(':visible')) {
2535
- widget.find('.btn[data-action="togglePeriod"]').click();
2536
- }
2537
- },
2538
- t: function () {
2539
- this.date(this.getMoment());
2540
- },
2541
- 'delete': function () {
2542
- this.clear();
2543
- }
2544
- },
2545
- debug: false,
2546
- allowInputToggle: false,
2547
- disabledTimeIntervals: false,
2548
- disabledHours: false,
2549
- enabledHours: false,
2550
- viewDate: false
2551
- };
2552
- }));