trusty-cms 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (765) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -23
  3. data/Gemfile.lock +51 -62
  4. data/app/assets/bower_components/jquery-ui/README.md +12 -0
  5. data/app/assets/bower_components/jquery-ui/bower.json +12 -0
  6. data/app/assets/bower_components/jquery-ui/component.json +13 -0
  7. data/app/assets/bower_components/jquery-ui/composer.json +69 -0
  8. data/app/assets/bower_components/jquery-ui/jquery-ui.js +18686 -0
  9. data/app/assets/bower_components/jquery-ui/jquery-ui.min.js +13 -0
  10. data/app/assets/bower_components/jquery-ui/package.json +16 -0
  11. data/app/assets/bower_components/jquery-ui/themes/base/accordion.css +23 -0
  12. data/app/assets/bower_components/jquery-ui/themes/base/all.css +12 -0
  13. data/app/assets/bower_components/jquery-ui/themes/base/autocomplete.css +16 -0
  14. data/app/assets/bower_components/jquery-ui/themes/base/base.css +30 -0
  15. data/app/assets/bower_components/jquery-ui/themes/base/button.css +82 -0
  16. data/app/assets/bower_components/jquery-ui/themes/base/checkboxradio.css +34 -0
  17. data/app/assets/bower_components/jquery-ui/themes/base/controlgroup.css +65 -0
  18. data/app/assets/bower_components/jquery-ui/themes/base/core.css +97 -0
  19. data/app/assets/bower_components/jquery-ui/themes/base/datepicker.css +185 -0
  20. data/app/assets/bower_components/jquery-ui/themes/base/dialog.css +101 -0
  21. data/app/assets/bower_components/jquery-ui/themes/base/draggable.css +12 -0
  22. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_444444_256x240.png +0 -0
  23. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_555555_256x240.png +0 -0
  24. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_777620_256x240.png +0 -0
  25. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_777777_256x240.png +0 -0
  26. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_cc0000_256x240.png +0 -0
  27. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_ffffff_256x240.png +0 -0
  28. data/app/assets/bower_components/jquery-ui/themes/base/jquery-ui.css +1312 -0
  29. data/app/assets/bower_components/jquery-ui/themes/base/jquery-ui.min.css +7 -0
  30. data/app/assets/bower_components/jquery-ui/themes/base/menu.css +64 -0
  31. data/app/assets/bower_components/jquery-ui/themes/base/progressbar.css +28 -0
  32. data/app/assets/bower_components/jquery-ui/themes/base/resizable.css +78 -0
  33. data/app/assets/bower_components/jquery-ui/themes/base/selectable.css +17 -0
  34. data/app/assets/bower_components/jquery-ui/themes/base/selectmenu.css +50 -0
  35. data/app/assets/bower_components/jquery-ui/themes/base/slider.css +75 -0
  36. data/app/assets/bower_components/jquery-ui/themes/base/sortable.css +12 -0
  37. data/app/assets/bower_components/jquery-ui/themes/base/spinner.css +52 -0
  38. data/app/assets/bower_components/jquery-ui/themes/base/tabs.css +51 -0
  39. data/app/assets/bower_components/jquery-ui/themes/base/theme.css +444 -0
  40. data/app/assets/bower_components/jquery-ui/themes/base/tooltip.css +19 -0
  41. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
  42. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_glass_40_111111_1x400.png +0 -0
  43. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
  44. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  45. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
  46. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
  47. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
  48. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
  49. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_222222_256x240.png +0 -0
  50. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_4ca300_256x240.png +0 -0
  51. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_bbbbbb_256x240.png +0 -0
  52. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_ededed_256x240.png +0 -0
  53. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_ffcf29_256x240.png +0 -0
  54. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_ffffff_256x240.png +0 -0
  55. data/app/assets/bower_components/jquery-ui/themes/black-tie/jquery-ui.css +1312 -0
  56. data/app/assets/bower_components/jquery-ui/themes/black-tie/jquery-ui.min.css +7 -0
  57. data/app/assets/bower_components/jquery-ui/themes/black-tie/theme.css +444 -0
  58. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
  59. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
  60. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
  61. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  62. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
  63. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
  64. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-icons_004276_256x240.png +0 -0
  65. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-icons_cc0000_256x240.png +0 -0
  66. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-icons_ffffff_256x240.png +0 -0
  67. data/app/assets/bower_components/jquery-ui/themes/blitzer/jquery-ui.css +1312 -0
  68. data/app/assets/bower_components/jquery-ui/themes/blitzer/jquery-ui.min.css +7 -0
  69. data/app/assets/bower_components/jquery-ui/themes/blitzer/theme.css +444 -0
  70. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  71. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  72. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_glass_50_3baae3_1x400.png +0 -0
  73. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  74. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  75. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  76. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  77. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  78. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_2694e8_256x240.png +0 -0
  79. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_2e83ff_256x240.png +0 -0
  80. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_3d80b3_256x240.png +0 -0
  81. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_72a7cf_256x240.png +0 -0
  82. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_ffffff_256x240.png +0 -0
  83. data/app/assets/bower_components/jquery-ui/themes/cupertino/jquery-ui.css +1312 -0
  84. data/app/assets/bower_components/jquery-ui/themes/cupertino/jquery-ui.min.css +7 -0
  85. data/app/assets/bower_components/jquery-ui/themes/cupertino/theme.css +444 -0
  86. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  87. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  88. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  89. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  90. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  91. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  92. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_loop_25_000000_21x21.png +0 -0
  93. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_222222_256x240.png +0 -0
  94. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_4b8e0b_256x240.png +0 -0
  95. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_a83300_256x240.png +0 -0
  96. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_cccccc_256x240.png +0 -0
  97. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_ffffff_256x240.png +0 -0
  98. data/app/assets/bower_components/jquery-ui/themes/dark-hive/jquery-ui.css +1312 -0
  99. data/app/assets/bower_components/jquery-ui/themes/dark-hive/jquery-ui.min.css +7 -0
  100. data/app/assets/bower_components/jquery-ui/themes/dark-hive/theme.css +444 -0
  101. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
  102. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
  103. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-small_20_333333_2x2.png +0 -0
  104. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
  105. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-small_40_00498f_2x2.png +0 -0
  106. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
  107. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_00498f_256x240.png +0 -0
  108. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_98d2fb_256x240.png +0 -0
  109. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_9ccdfc_256x240.png +0 -0
  110. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_ffffff_256x240.png +0 -0
  111. data/app/assets/bower_components/jquery-ui/themes/dot-luv/jquery-ui.css +1312 -0
  112. data/app/assets/bower_components/jquery-ui/themes/dot-luv/jquery-ui.min.css +7 -0
  113. data/app/assets/bower_components/jquery-ui/themes/dot-luv/theme.css +444 -0
  114. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
  115. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
  116. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
  117. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
  118. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
  119. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_454545_256x240.png +0 -0
  120. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_734d99_256x240.png +0 -0
  121. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_8d78a5_256x240.png +0 -0
  122. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_a8a3ae_256x240.png +0 -0
  123. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_ebccce_256x240.png +0 -0
  124. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_ffffff_256x240.png +0 -0
  125. data/app/assets/bower_components/jquery-ui/themes/eggplant/jquery-ui.css +1312 -0
  126. data/app/assets/bower_components/jquery-ui/themes/eggplant/jquery-ui.min.css +7 -0
  127. data/app/assets/bower_components/jquery-ui/themes/eggplant/theme.css +444 -0
  128. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
  129. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
  130. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
  131. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
  132. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
  133. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
  134. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_0a82eb_256x240.png +0 -0
  135. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_0b54d5_256x240.png +0 -0
  136. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_5fa5e3_256x240.png +0 -0
  137. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_fcdd4a_256x240.png +0 -0
  138. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_ffffff_256x240.png +0 -0
  139. data/app/assets/bower_components/jquery-ui/themes/excite-bike/jquery-ui.css +1312 -0
  140. data/app/assets/bower_components/jquery-ui/themes/excite-bike/jquery-ui.min.css +7 -0
  141. data/app/assets/bower_components/jquery-ui/themes/excite-bike/theme.css +444 -0
  142. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  143. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  144. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  145. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  146. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_0073ea_256x240.png +0 -0
  147. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_454545_256x240.png +0 -0
  148. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_666666_256x240.png +0 -0
  149. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_ff0084_256x240.png +0 -0
  150. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_ffffff_256x240.png +0 -0
  151. data/app/assets/bower_components/jquery-ui/themes/flick/jquery-ui.css +1312 -0
  152. data/app/assets/bower_components/jquery-ui/themes/flick/jquery-ui.min.css +7 -0
  153. data/app/assets/bower_components/jquery-ui/themes/flick/theme.css +444 -0
  154. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
  155. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
  156. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
  157. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
  158. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
  159. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_dots-small_35_35414f_2x2.png +0 -0
  160. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
  161. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_454545_256x240.png +0 -0
  162. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_88a206_256x240.png +0 -0
  163. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_c02669_256x240.png +0 -0
  164. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_e1e463_256x240.png +0 -0
  165. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_ffeb33_256x240.png +0 -0
  166. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_ffffff_256x240.png +0 -0
  167. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/jquery-ui.css +1312 -0
  168. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/jquery-ui.min.css +7 -0
  169. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/theme.css +444 -0
  170. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
  171. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_glass_25_cb842e_1x400.png +0 -0
  172. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_glass_70_ede4d4_1x400.png +0 -0
  173. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
  174. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  175. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
  176. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
  177. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_c47a23_256x240.png +0 -0
  178. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_cb672b_256x240.png +0 -0
  179. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_f08000_256x240.png +0 -0
  180. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_f35f07_256x240.png +0 -0
  181. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_ff7519_256x240.png +0 -0
  182. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_ffffff_256x240.png +0 -0
  183. data/app/assets/bower_components/jquery-ui/themes/humanity/jquery-ui.css +1312 -0
  184. data/app/assets/bower_components/jquery-ui/themes/humanity/jquery-ui.min.css +7 -0
  185. data/app/assets/bower_components/jquery-ui/themes/humanity/theme.css +444 -0
  186. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
  187. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
  188. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
  189. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
  190. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
  191. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
  192. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
  193. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
  194. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
  195. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_4eb305_256x240.png +0 -0
  196. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_72b42d_256x240.png +0 -0
  197. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_cd0a0a_256x240.png +0 -0
  198. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_ffffff_256x240.png +0 -0
  199. data/app/assets/bower_components/jquery-ui/themes/le-frog/jquery-ui.css +1312 -0
  200. data/app/assets/bower_components/jquery-ui/themes/le-frog/jquery-ui.min.css +7 -0
  201. data/app/assets/bower_components/jquery-ui/themes/le-frog/theme.css +444 -0
  202. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_glass_15_5f391b_1x400.png +0 -0
  203. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
  204. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
  205. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
  206. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
  207. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
  208. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_inset-soft_10_201913_1x100.png +0 -0
  209. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_222222_256x240.png +0 -0
  210. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_9bcc60_256x240.png +0 -0
  211. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_add978_256x240.png +0 -0
  212. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_e3ddc9_256x240.png +0 -0
  213. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_f1fd86_256x240.png +0 -0
  214. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_ffffff_256x240.png +0 -0
  215. data/app/assets/bower_components/jquery-ui/themes/mint-choc/jquery-ui.css +1312 -0
  216. data/app/assets/bower_components/jquery-ui/themes/mint-choc/jquery-ui.min.css +7 -0
  217. data/app/assets/bower_components/jquery-ui/themes/mint-choc/theme.css +444 -0
  218. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  219. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
  220. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  221. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  222. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  223. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_3383bb_256x240.png +0 -0
  224. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_454545_256x240.png +0 -0
  225. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
  226. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_999999_256x240.png +0 -0
  227. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_fbc856_256x240.png +0 -0
  228. data/app/assets/bower_components/jquery-ui/themes/overcast/jquery-ui.css +1312 -0
  229. data/app/assets/bower_components/jquery-ui/themes/overcast/jquery-ui.min.css +7 -0
  230. data/app/assets/bower_components/jquery-ui/themes/overcast/theme.css +444 -0
  231. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
  232. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
  233. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
  234. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
  235. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
  236. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
  237. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
  238. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
  239. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
  240. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_222222_256x240.png +0 -0
  241. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_3572ac_256x240.png +0 -0
  242. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_8c291d_256x240.png +0 -0
  243. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_b83400_256x240.png +0 -0
  244. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_fbdb93_256x240.png +0 -0
  245. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_ffffff_256x240.png +0 -0
  246. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/jquery-ui.css +1312 -0
  247. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/jquery-ui.min.css +7 -0
  248. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/theme.css +444 -0
  249. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  250. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  251. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  252. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  253. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  254. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  255. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_217bc0_256x240.png +0 -0
  256. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  257. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_469bdd_256x240.png +0 -0
  258. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  259. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  260. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  261. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  262. data/app/assets/bower_components/jquery-ui/themes/redmond/jquery-ui.css +1312 -0
  263. data/app/assets/bower_components/jquery-ui/themes/redmond/jquery-ui.min.css +7 -0
  264. data/app/assets/bower_components/jquery-ui/themes/redmond/theme.css +444 -0
  265. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  266. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  267. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  268. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  269. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  270. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  271. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  272. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  273. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  274. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  275. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  276. data/app/assets/bower_components/jquery-ui/themes/smoothness/jquery-ui.css +1312 -0
  277. data/app/assets/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css +7 -0
  278. data/app/assets/bower_components/jquery-ui/themes/smoothness/theme.css +444 -0
  279. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
  280. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
  281. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
  282. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
  283. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
  284. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
  285. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
  286. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
  287. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
  288. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_808080_256x240.png +0 -0
  289. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_847e71_256x240.png +0 -0
  290. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_8DC262_256x240.png +0 -0
  291. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_cd0a0a_256x240.png +0 -0
  292. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_eeeeee_256x240.png +0 -0
  293. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_ffffff_256x240.png +0 -0
  294. data/app/assets/bower_components/jquery-ui/themes/south-street/jquery-ui.css +1312 -0
  295. data/app/assets/bower_components/jquery-ui/themes/south-street/jquery-ui.min.css +7 -0
  296. data/app/assets/bower_components/jquery-ui/themes/south-street/theme.css +444 -0
  297. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_glass_45_0078ae_1x400.png +0 -0
  298. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_glass_55_f8da4e_1x400.png +0 -0
  299. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_glass_75_79c9ec_1x400.png +0 -0
  300. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
  301. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
  302. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
  303. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  304. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_0078ae_256x240.png +0 -0
  305. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_056b93_256x240.png +0 -0
  306. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_d8e7f3_256x240.png +0 -0
  307. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_e0fdff_256x240.png +0 -0
  308. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_f5e175_256x240.png +0 -0
  309. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_f7a50d_256x240.png +0 -0
  310. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_fcd113_256x240.png +0 -0
  311. data/app/assets/bower_components/jquery-ui/themes/start/jquery-ui.css +1312 -0
  312. data/app/assets/bower_components/jquery-ui/themes/start/jquery-ui.min.css +7 -0
  313. data/app/assets/bower_components/jquery-ui/themes/start/theme.css +444 -0
  314. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
  315. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
  316. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
  317. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
  318. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
  319. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
  320. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
  321. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_3d3d3d_256x240.png +0 -0
  322. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_bd7b00_256x240.png +0 -0
  323. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_d19405_256x240.png +0 -0
  324. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_eb990f_256x240.png +0 -0
  325. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_ed9f26_256x240.png +0 -0
  326. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_fadc7a_256x240.png +0 -0
  327. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_ffe180_256x240.png +0 -0
  328. data/app/assets/bower_components/jquery-ui/themes/sunny/jquery-ui.css +1312 -0
  329. data/app/assets/bower_components/jquery-ui/themes/sunny/jquery-ui.min.css +7 -0
  330. data/app/assets/bower_components/jquery-ui/themes/sunny/theme.css +444 -0
  331. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_10_4f4221_10x8.png +0 -0
  332. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_20_372806_10x8.png +0 -0
  333. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_25_675423_10x8.png +0 -0
  334. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
  335. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_8_261803_10x8.png +0 -0
  336. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_8_443113_10x8.png +0 -0
  337. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  338. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_070603_256x240.png +0 -0
  339. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_e8e2b5_256x240.png +0 -0
  340. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_e9cd86_256x240.png +0 -0
  341. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_efec9f_256x240.png +0 -0
  342. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_f2ec64_256x240.png +0 -0
  343. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_f9f2bd_256x240.png +0 -0
  344. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_ff7519_256x240.png +0 -0
  345. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/jquery-ui.css +1312 -0
  346. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/jquery-ui.min.css +7 -0
  347. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/theme.css +444 -0
  348. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
  349. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
  350. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
  351. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_glass_60_000000_1x400.png +0 -0
  352. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
  353. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
  354. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
  355. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_000000_256x240.png +0 -0
  356. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_1f1f1f_256x240.png +0 -0
  357. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_9fda58_256x240.png +0 -0
  358. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_b8ec79_256x240.png +0 -0
  359. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_cd0a0a_256x240.png +0 -0
  360. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_ffffff_256x240.png +0 -0
  361. data/app/assets/bower_components/jquery-ui/themes/trontastic/jquery-ui.css +1312 -0
  362. data/app/assets/bower_components/jquery-ui/themes/trontastic/jquery-ui.min.css +7 -0
  363. data/app/assets/bower_components/jquery-ui/themes/trontastic/theme.css +444 -0
  364. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_glass_20_555555_1x400.png +0 -0
  365. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_glass_40_0078a3_1x400.png +0 -0
  366. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  367. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  368. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  369. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  370. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  371. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_222222_256x240.png +0 -0
  372. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_4b8e0b_256x240.png +0 -0
  373. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_a83300_256x240.png +0 -0
  374. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_cccccc_256x240.png +0 -0
  375. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_ffffff_256x240.png +0 -0
  376. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/jquery-ui.css +1312 -0
  377. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/jquery-ui.min.css +7 -0
  378. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/theme.css +444 -0
  379. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  380. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  381. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  382. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  383. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  384. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  385. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  386. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  387. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  388. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  389. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  390. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  391. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  392. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/jquery-ui.css +1312 -0
  393. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/jquery-ui.min.css +7 -0
  394. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/theme.css +444 -0
  395. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  396. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
  397. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
  398. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
  399. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
  400. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
  401. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_inset-soft_15_121212_1x100.png +0 -0
  402. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_666666_256x240.png +0 -0
  403. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_aaaaaa_256x240.png +0 -0
  404. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_bbbbbb_256x240.png +0 -0
  405. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_c98000_256x240.png +0 -0
  406. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_cccccc_256x240.png +0 -0
  407. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_cd0a0a_256x240.png +0 -0
  408. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_f29a00_256x240.png +0 -0
  409. data/app/assets/bower_components/jquery-ui/themes/vader/jquery-ui.css +1312 -0
  410. data/app/assets/bower_components/jquery-ui/themes/vader/jquery-ui.min.css +7 -0
  411. data/app/assets/bower_components/jquery-ui/themes/vader/theme.css +444 -0
  412. data/app/assets/bower_components/jquery-ui/ui/core.js +21 -0
  413. data/app/assets/bower_components/jquery-ui/ui/data.js +39 -0
  414. data/app/assets/bower_components/jquery-ui/ui/disable-selection.js +46 -0
  415. data/app/assets/bower_components/jquery-ui/ui/effect.js +1635 -0
  416. data/app/assets/bower_components/jquery-ui/ui/effects/effect-blind.js +70 -0
  417. data/app/assets/bower_components/jquery-ui/ui/effects/effect-bounce.js +110 -0
  418. data/app/assets/bower_components/jquery-ui/ui/effects/effect-clip.js +65 -0
  419. data/app/assets/bower_components/jquery-ui/ui/effects/effect-drop.js +69 -0
  420. data/app/assets/bower_components/jquery-ui/ui/effects/effect-explode.js +111 -0
  421. data/app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js +47 -0
  422. data/app/assets/bower_components/jquery-ui/ui/effects/effect-fold.js +89 -0
  423. data/app/assets/bower_components/jquery-ui/ui/effects/effect-highlight.js +57 -0
  424. data/app/assets/bower_components/jquery-ui/ui/effects/effect-puff.js +42 -0
  425. data/app/assets/bower_components/jquery-ui/ui/effects/effect-pulsate.js +64 -0
  426. data/app/assets/bower_components/jquery-ui/ui/effects/effect-scale.js +56 -0
  427. data/app/assets/bower_components/jquery-ui/ui/effects/effect-shake.js +74 -0
  428. data/app/assets/bower_components/jquery-ui/ui/effects/effect-size.js +191 -0
  429. data/app/assets/bower_components/jquery-ui/ui/effects/effect-slide.js +76 -0
  430. data/app/assets/bower_components/jquery-ui/ui/effects/effect-transfer.js +40 -0
  431. data/app/assets/bower_components/jquery-ui/ui/escape-selector.js +21 -0
  432. data/app/assets/bower_components/jquery-ui/ui/focusable.js +84 -0
  433. data/app/assets/bower_components/jquery-ui/ui/form-reset-mixin.js +77 -0
  434. data/app/assets/bower_components/jquery-ui/ui/form.js +20 -0
  435. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-af.js +37 -0
  436. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ar-DZ.js +39 -0
  437. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ar.js +39 -0
  438. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-az.js +37 -0
  439. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-be.js +37 -0
  440. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-bg.js +38 -0
  441. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-bs.js +37 -0
  442. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ca.js +37 -0
  443. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-cs.js +37 -0
  444. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-cy-GB.js +45 -0
  445. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-da.js +37 -0
  446. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-de.js +37 -0
  447. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-el.js +37 -0
  448. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-en-AU.js +37 -0
  449. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-en-GB.js +37 -0
  450. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-en-NZ.js +37 -0
  451. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-eo.js +37 -0
  452. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-es.js +37 -0
  453. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-et.js +45 -0
  454. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-eu.js +36 -0
  455. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fa.js +73 -0
  456. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fi.js +37 -0
  457. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fo.js +45 -0
  458. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fr-CA.js +37 -0
  459. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fr-CH.js +37 -0
  460. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fr.js +39 -0
  461. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-gl.js +37 -0
  462. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-he.js +37 -0
  463. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hi.js +37 -0
  464. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hr.js +37 -0
  465. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hu.js +36 -0
  466. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hy.js +37 -0
  467. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-id.js +37 -0
  468. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-is.js +45 -0
  469. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-it-CH.js +37 -0
  470. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-it.js +37 -0
  471. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ja.js +37 -0
  472. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ka.js +48 -0
  473. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-kk.js +37 -0
  474. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-km.js +37 -0
  475. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ko.js +37 -0
  476. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ky.js +38 -0
  477. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-lb.js +45 -0
  478. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-lt.js +45 -0
  479. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-lv.js +45 -0
  480. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-mk.js +37 -0
  481. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ml.js +37 -0
  482. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ms.js +37 -0
  483. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nb.js +49 -0
  484. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nl-BE.js +37 -0
  485. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nl.js +37 -0
  486. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nn.js +49 -0
  487. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-no.js +50 -0
  488. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-pl.js +37 -0
  489. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-pt-BR.js +45 -0
  490. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-pt.js +44 -0
  491. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-rm.js +61 -0
  492. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ro.js +40 -0
  493. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ru.js +37 -0
  494. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sk.js +37 -0
  495. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sl.js +38 -0
  496. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sq.js +37 -0
  497. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sr-SR.js +37 -0
  498. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sr.js +37 -0
  499. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sv.js +37 -0
  500. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ta.js +53 -0
  501. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-th.js +37 -0
  502. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-tj.js +37 -0
  503. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-tr.js +37 -0
  504. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-uk.js +38 -0
  505. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-vi.js +37 -0
  506. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-zh-CN.js +37 -0
  507. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-zh-HK.js +37 -0
  508. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-zh-TW.js +37 -0
  509. data/app/assets/bower_components/jquery-ui/ui/ie.js +15 -0
  510. data/app/assets/bower_components/jquery-ui/ui/jquery-1-7.js +89 -0
  511. data/app/assets/bower_components/jquery-ui/ui/keycode.js +45 -0
  512. data/app/assets/bower_components/jquery-ui/ui/labels.js +62 -0
  513. data/app/assets/bower_components/jquery-ui/ui/minified/core.js +4 -0
  514. data/app/assets/bower_components/jquery-ui/ui/minified/data.js +4 -0
  515. data/app/assets/bower_components/jquery-ui/ui/minified/disable-selection.js +4 -0
  516. data/app/assets/bower_components/jquery-ui/ui/minified/effect.js +4 -0
  517. data/app/assets/bower_components/jquery-ui/ui/minified/escape-selector.js +4 -0
  518. data/app/assets/bower_components/jquery-ui/ui/minified/focusable.js +4 -0
  519. data/app/assets/bower_components/jquery-ui/ui/minified/form-reset-mixin.js +4 -0
  520. data/app/assets/bower_components/jquery-ui/ui/minified/form.js +4 -0
  521. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-af.js +4 -0
  522. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ar-DZ.js +4 -0
  523. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ar.js +4 -0
  524. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-az.js +4 -0
  525. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-be.js +4 -0
  526. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-bg.js +4 -0
  527. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-bs.js +4 -0
  528. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ca.js +4 -0
  529. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-cs.js +4 -0
  530. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-cy-GB.js +4 -0
  531. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-da.js +4 -0
  532. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-de.js +4 -0
  533. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-el.js +4 -0
  534. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-en-AU.js +4 -0
  535. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-en-GB.js +4 -0
  536. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-en-NZ.js +4 -0
  537. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-eo.js +4 -0
  538. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-es.js +4 -0
  539. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-et.js +4 -0
  540. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-eu.js +4 -0
  541. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fa.js +4 -0
  542. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fi.js +4 -0
  543. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fo.js +4 -0
  544. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fr-CA.js +4 -0
  545. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fr-CH.js +4 -0
  546. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fr.js +4 -0
  547. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-gl.js +4 -0
  548. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-he.js +4 -0
  549. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hi.js +4 -0
  550. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hr.js +4 -0
  551. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hu.js +4 -0
  552. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hy.js +4 -0
  553. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-id.js +4 -0
  554. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-is.js +4 -0
  555. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-it-CH.js +4 -0
  556. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-it.js +4 -0
  557. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ja.js +4 -0
  558. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ka.js +4 -0
  559. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-kk.js +4 -0
  560. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-km.js +4 -0
  561. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ko.js +4 -0
  562. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ky.js +4 -0
  563. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-lb.js +4 -0
  564. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-lt.js +4 -0
  565. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-lv.js +4 -0
  566. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-mk.js +4 -0
  567. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ml.js +4 -0
  568. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ms.js +4 -0
  569. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nb.js +4 -0
  570. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nl-BE.js +4 -0
  571. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nl.js +4 -0
  572. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nn.js +4 -0
  573. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-no.js +4 -0
  574. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-pl.js +4 -0
  575. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-pt-BR.js +4 -0
  576. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-pt.js +4 -0
  577. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-rm.js +4 -0
  578. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ro.js +4 -0
  579. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ru.js +4 -0
  580. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sk.js +4 -0
  581. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sl.js +4 -0
  582. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sq.js +4 -0
  583. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sr-SR.js +4 -0
  584. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sr.js +4 -0
  585. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sv.js +4 -0
  586. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ta.js +4 -0
  587. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-th.js +4 -0
  588. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-tj.js +4 -0
  589. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-tr.js +4 -0
  590. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-uk.js +4 -0
  591. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-vi.js +4 -0
  592. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-zh-CN.js +4 -0
  593. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-zh-HK.js +4 -0
  594. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-zh-TW.js +4 -0
  595. data/app/assets/bower_components/jquery-ui/ui/minified/ie.js +4 -0
  596. data/app/assets/bower_components/jquery-ui/ui/minified/jquery-1-7.js +4 -0
  597. data/app/assets/bower_components/jquery-ui/ui/minified/keycode.js +4 -0
  598. data/app/assets/bower_components/jquery-ui/ui/minified/labels.js +4 -0
  599. data/app/assets/bower_components/jquery-ui/ui/minified/plugin.js +4 -0
  600. data/app/assets/bower_components/jquery-ui/ui/minified/position.js +4 -0
  601. data/app/assets/bower_components/jquery-ui/ui/minified/safe-active-element.js +4 -0
  602. data/app/assets/bower_components/jquery-ui/ui/minified/safe-blur.js +4 -0
  603. data/app/assets/bower_components/jquery-ui/ui/minified/scroll-parent.js +4 -0
  604. data/app/assets/bower_components/jquery-ui/ui/minified/tabbable.js +4 -0
  605. data/app/assets/bower_components/jquery-ui/ui/minified/unique-id.js +4 -0
  606. data/app/assets/bower_components/jquery-ui/ui/minified/version.js +4 -0
  607. data/app/assets/bower_components/jquery-ui/ui/minified/widget.js +4 -0
  608. data/app/assets/bower_components/jquery-ui/ui/plugin.js +44 -0
  609. data/app/assets/bower_components/jquery-ui/ui/position.js +525 -0
  610. data/app/assets/bower_components/jquery-ui/ui/safe-active-element.js +40 -0
  611. data/app/assets/bower_components/jquery-ui/ui/safe-blur.js +21 -0
  612. data/app/assets/bower_components/jquery-ui/ui/scroll-parent.js +45 -0
  613. data/app/assets/bower_components/jquery-ui/ui/tabbable.js +35 -0
  614. data/app/assets/bower_components/jquery-ui/ui/unique-id.js +49 -0
  615. data/app/assets/bower_components/jquery-ui/ui/version.js +17 -0
  616. data/app/assets/bower_components/jquery-ui/ui/widget.js +713 -0
  617. data/app/assets/bower_components/jquery-ui/ui/widgets/accordion.js +613 -0
  618. data/app/assets/bower_components/jquery-ui/ui/widgets/autocomplete.js +682 -0
  619. data/app/assets/bower_components/jquery-ui/ui/widgets/button.js +386 -0
  620. data/app/assets/bower_components/jquery-ui/ui/widgets/checkboxradio.js +278 -0
  621. data/app/assets/bower_components/jquery-ui/ui/widgets/controlgroup.js +296 -0
  622. data/app/assets/bower_components/jquery-ui/ui/widgets/datepicker.js +2120 -0
  623. data/app/assets/bower_components/jquery-ui/ui/widgets/dialog.js +930 -0
  624. data/app/assets/bower_components/jquery-ui/ui/widgets/draggable.js +1251 -0
  625. data/app/assets/bower_components/jquery-ui/ui/widgets/droppable.js +497 -0
  626. data/app/assets/bower_components/jquery-ui/ui/widgets/menu.js +670 -0
  627. data/app/assets/bower_components/jquery-ui/ui/widgets/mouse.js +226 -0
  628. data/app/assets/bower_components/jquery-ui/ui/widgets/progressbar.js +178 -0
  629. data/app/assets/bower_components/jquery-ui/ui/widgets/resizable.js +1201 -0
  630. data/app/assets/bower_components/jquery-ui/ui/widgets/selectable.js +310 -0
  631. data/app/assets/bower_components/jquery-ui/ui/widgets/selectmenu.js +687 -0
  632. data/app/assets/bower_components/jquery-ui/ui/widgets/slider.js +750 -0
  633. data/app/assets/bower_components/jquery-ui/ui/widgets/sortable.js +1554 -0
  634. data/app/assets/bower_components/jquery-ui/ui/widgets/spinner.js +575 -0
  635. data/app/assets/bower_components/jquery-ui/ui/widgets/tabs.js +921 -0
  636. data/app/assets/bower_components/jquery-ui/ui/widgets/tooltip.js +520 -0
  637. data/app/assets/bower_components/jquery/AUTHORS.txt +295 -0
  638. data/app/assets/bower_components/jquery/LICENSE.txt +36 -0
  639. data/app/assets/bower_components/jquery/README.md +65 -0
  640. data/app/assets/bower_components/jquery/bower.json +14 -0
  641. data/app/assets/bower_components/jquery/dist/core.js +481 -0
  642. data/app/assets/bower_components/jquery/dist/jquery.js +10074 -0
  643. data/app/assets/bower_components/jquery/dist/jquery.min.js +4 -0
  644. data/app/assets/bower_components/jquery/dist/jquery.min.map +1 -0
  645. data/app/assets/bower_components/jquery/dist/jquery.slim.js +7966 -0
  646. data/app/assets/bower_components/jquery/dist/jquery.slim.min.js +4 -0
  647. data/app/assets/bower_components/jquery/dist/jquery.slim.min.map +1 -0
  648. data/app/assets/bower_components/jquery/external/sizzle/LICENSE.txt +36 -0
  649. data/app/assets/bower_components/jquery/external/sizzle/dist/sizzle.js +2217 -0
  650. data/app/assets/bower_components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  651. data/app/assets/bower_components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  652. data/app/assets/bower_components/jquery/src/ajax.js +855 -0
  653. data/app/assets/bower_components/jquery/src/ajax/jsonp.js +102 -0
  654. data/app/assets/bower_components/jquery/src/ajax/load.js +75 -0
  655. data/app/assets/bower_components/jquery/src/ajax/parseXML.js +30 -0
  656. data/app/assets/bower_components/jquery/src/ajax/script.js +77 -0
  657. data/app/assets/bower_components/jquery/src/ajax/var/location.js +5 -0
  658. data/app/assets/bower_components/jquery/src/ajax/var/nonce.js +7 -0
  659. data/app/assets/bower_components/jquery/src/ajax/var/rquery.js +5 -0
  660. data/app/assets/bower_components/jquery/src/ajax/xhr.js +169 -0
  661. data/app/assets/bower_components/jquery/src/attributes.js +13 -0
  662. data/app/assets/bower_components/jquery/src/attributes/attr.js +137 -0
  663. data/app/assets/bower_components/jquery/src/attributes/classes.js +179 -0
  664. data/app/assets/bower_components/jquery/src/attributes/prop.js +128 -0
  665. data/app/assets/bower_components/jquery/src/attributes/support.js +33 -0
  666. data/app/assets/bower_components/jquery/src/attributes/val.js +184 -0
  667. data/app/assets/bower_components/jquery/src/callbacks.js +234 -0
  668. data/app/assets/bower_components/jquery/src/core.js +481 -0
  669. data/app/assets/bower_components/jquery/src/core/DOMEval.js +16 -0
  670. data/app/assets/bower_components/jquery/src/core/access.js +67 -0
  671. data/app/assets/bower_components/jquery/src/core/init.js +127 -0
  672. data/app/assets/bower_components/jquery/src/core/parseHTML.js +65 -0
  673. data/app/assets/bower_components/jquery/src/core/ready-no-deferred.js +111 -0
  674. data/app/assets/bower_components/jquery/src/core/ready.js +95 -0
  675. data/app/assets/bower_components/jquery/src/core/readyException.js +13 -0
  676. data/app/assets/bower_components/jquery/src/core/support.js +20 -0
  677. data/app/assets/bower_components/jquery/src/core/var/rsingleTag.js +6 -0
  678. data/app/assets/bower_components/jquery/src/css.js +424 -0
  679. data/app/assets/bower_components/jquery/src/css/addGetHookIf.js +26 -0
  680. data/app/assets/bower_components/jquery/src/css/adjustCSS.js +71 -0
  681. data/app/assets/bower_components/jquery/src/css/curCSS.js +59 -0
  682. data/app/assets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  683. data/app/assets/bower_components/jquery/src/css/showHide.js +105 -0
  684. data/app/assets/bower_components/jquery/src/css/support.js +89 -0
  685. data/app/assets/bower_components/jquery/src/css/var/cssExpand.js +5 -0
  686. data/app/assets/bower_components/jquery/src/css/var/getStyles.js +17 -0
  687. data/app/assets/bower_components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  688. data/app/assets/bower_components/jquery/src/css/var/rmargin.js +5 -0
  689. data/app/assets/bower_components/jquery/src/css/var/rnumnonpx.js +7 -0
  690. data/app/assets/bower_components/jquery/src/css/var/swap.js +26 -0
  691. data/app/assets/bower_components/jquery/src/data.js +161 -0
  692. data/app/assets/bower_components/jquery/src/data/Data.js +161 -0
  693. data/app/assets/bower_components/jquery/src/data/var/acceptData.js +19 -0
  694. data/app/assets/bower_components/jquery/src/data/var/dataPriv.js +7 -0
  695. data/app/assets/bower_components/jquery/src/data/var/dataUser.js +7 -0
  696. data/app/assets/bower_components/jquery/src/deferred.js +389 -0
  697. data/app/assets/bower_components/jquery/src/deferred/exceptionHook.js +21 -0
  698. data/app/assets/bower_components/jquery/src/deprecated.js +30 -0
  699. data/app/assets/bower_components/jquery/src/dimensions.js +56 -0
  700. data/app/assets/bower_components/jquery/src/effects.js +688 -0
  701. data/app/assets/bower_components/jquery/src/effects/Tween.js +123 -0
  702. data/app/assets/bower_components/jquery/src/effects/animatedSelector.js +15 -0
  703. data/app/assets/bower_components/jquery/src/event.js +726 -0
  704. data/app/assets/bower_components/jquery/src/event/ajax.js +22 -0
  705. data/app/assets/bower_components/jquery/src/event/alias.js +29 -0
  706. data/app/assets/bower_components/jquery/src/event/focusin.js +55 -0
  707. data/app/assets/bower_components/jquery/src/event/support.js +11 -0
  708. data/app/assets/bower_components/jquery/src/event/trigger.js +185 -0
  709. data/app/assets/bower_components/jquery/src/exports/amd.js +26 -0
  710. data/app/assets/bower_components/jquery/src/exports/global.js +34 -0
  711. data/app/assets/bower_components/jquery/src/jquery.js +40 -0
  712. data/app/assets/bower_components/jquery/src/manipulation.js +486 -0
  713. data/app/assets/bower_components/jquery/src/manipulation/_evalUrl.js +23 -0
  714. data/app/assets/bower_components/jquery/src/manipulation/buildFragment.js +104 -0
  715. data/app/assets/bower_components/jquery/src/manipulation/getAll.js +23 -0
  716. data/app/assets/bower_components/jquery/src/manipulation/setGlobalEval.js +22 -0
  717. data/app/assets/bower_components/jquery/src/manipulation/support.js +35 -0
  718. data/app/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js +5 -0
  719. data/app/assets/bower_components/jquery/src/manipulation/var/rscriptType.js +5 -0
  720. data/app/assets/bower_components/jquery/src/manipulation/var/rtagName.js +5 -0
  721. data/app/assets/bower_components/jquery/src/manipulation/wrapMap.js +29 -0
  722. data/app/assets/bower_components/jquery/src/offset.js +232 -0
  723. data/app/assets/bower_components/jquery/src/queue.js +145 -0
  724. data/app/assets/bower_components/jquery/src/queue/delay.js +24 -0
  725. data/app/assets/bower_components/jquery/src/selector-native.js +237 -0
  726. data/app/assets/bower_components/jquery/src/selector-sizzle.js +19 -0
  727. data/app/assets/bower_components/jquery/src/selector.js +3 -0
  728. data/app/assets/bower_components/jquery/src/serialize.js +126 -0
  729. data/app/assets/bower_components/jquery/src/traversing.js +178 -0
  730. data/app/assets/bower_components/jquery/src/traversing/findFilter.js +99 -0
  731. data/app/assets/bower_components/jquery/src/traversing/var/dir.js +22 -0
  732. data/app/assets/bower_components/jquery/src/traversing/var/rneedsContext.js +8 -0
  733. data/app/assets/bower_components/jquery/src/traversing/var/siblings.js +17 -0
  734. data/app/assets/bower_components/jquery/src/var/ObjectFunctionString.js +7 -0
  735. data/app/assets/bower_components/jquery/src/var/arr.js +5 -0
  736. data/app/assets/bower_components/jquery/src/var/class2type.js +6 -0
  737. data/app/assets/bower_components/jquery/src/var/concat.js +7 -0
  738. data/app/assets/bower_components/jquery/src/var/document.js +5 -0
  739. data/app/assets/bower_components/jquery/src/var/documentElement.js +7 -0
  740. data/app/assets/bower_components/jquery/src/var/fnToString.js +7 -0
  741. data/app/assets/bower_components/jquery/src/var/getProto.js +5 -0
  742. data/app/assets/bower_components/jquery/src/var/hasOwn.js +7 -0
  743. data/app/assets/bower_components/jquery/src/var/indexOf.js +7 -0
  744. data/app/assets/bower_components/jquery/src/var/pnum.js +5 -0
  745. data/app/assets/bower_components/jquery/src/var/push.js +7 -0
  746. data/app/assets/bower_components/jquery/src/var/rcssNum.js +9 -0
  747. data/app/assets/bower_components/jquery/src/var/rnotwhite.js +5 -0
  748. data/app/assets/bower_components/jquery/src/var/slice.js +7 -0
  749. data/app/assets/bower_components/jquery/src/var/support.js +6 -0
  750. data/app/assets/bower_components/jquery/src/var/toString.js +7 -0
  751. data/app/assets/bower_components/jquery/src/wrap.js +77 -0
  752. data/app/assets/javascripts/admin.js +2 -1
  753. data/app/assets/javascripts/admin/sortable.js +46 -0
  754. data/app/assets/stylesheets/admin/main.scss +1 -0
  755. data/app/controllers/admin/pages_controller.rb +7 -0
  756. data/app/controllers/site_controller.rb +2 -1
  757. data/app/models/page.rb +13 -1
  758. data/app/views/admin/pages/index.html.haml +1 -1
  759. data/config/application.rb +1 -0
  760. data/config/routes.rb +1 -0
  761. data/lib/ostruct.rb +54 -0
  762. data/lib/trusty_cms.rb +1 -1
  763. data/spec/spec_helper.rb +3 -0
  764. metadata +753 -3
  765. data/app/assets/javascripts/admin/jquery-ui.js +0 -3819
@@ -1,3819 +0,0 @@
1
- /*! jQuery UI - v1.11.4 - 2015-09-09
2
- * http://jqueryui.com
3
- * Includes: core.js, widget.js, mouse.js, datepicker.js, slider.js
4
- * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
5
-
6
- (function( factory ) {
7
- if ( typeof define === "function" && define.amd ) {
8
-
9
- // AMD. Register as an anonymous module.
10
- define([ "jquery" ], factory );
11
- } else {
12
-
13
- // Browser globals
14
- factory( jQuery );
15
- }
16
- }(function( $ ) {
17
- /*!
18
- * jQuery UI Core 1.11.4
19
- * http://jqueryui.com
20
- *
21
- * Copyright jQuery Foundation and other contributors
22
- * Released under the MIT license.
23
- * http://jquery.org/license
24
- *
25
- * http://api.jqueryui.com/category/ui-core/
26
- */
27
-
28
-
29
- // $.ui might exist from components with no dependencies, e.g., $.ui.position
30
- $.ui = $.ui || {};
31
-
32
- $.extend( $.ui, {
33
- version: "1.11.4",
34
-
35
- keyCode: {
36
- BACKSPACE: 8,
37
- COMMA: 188,
38
- DELETE: 46,
39
- DOWN: 40,
40
- END: 35,
41
- ENTER: 13,
42
- ESCAPE: 27,
43
- HOME: 36,
44
- LEFT: 37,
45
- PAGE_DOWN: 34,
46
- PAGE_UP: 33,
47
- PERIOD: 190,
48
- RIGHT: 39,
49
- SPACE: 32,
50
- TAB: 9,
51
- UP: 38
52
- }
53
- });
54
-
55
- // plugins
56
- $.fn.extend({
57
- scrollParent: function( includeHidden ) {
58
- var position = this.css( "position" ),
59
- excludeStaticParent = position === "absolute",
60
- overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
61
- scrollParent = this.parents().filter( function() {
62
- var parent = $( this );
63
- if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
64
- return false;
65
- }
66
- return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
67
- }).eq( 0 );
68
-
69
- return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
70
- },
71
-
72
- uniqueId: (function() {
73
- var uuid = 0;
74
-
75
- return function() {
76
- return this.each(function() {
77
- if ( !this.id ) {
78
- this.id = "ui-id-" + ( ++uuid );
79
- }
80
- });
81
- };
82
- })(),
83
-
84
- removeUniqueId: function() {
85
- return this.each(function() {
86
- if ( /^ui-id-\d+$/.test( this.id ) ) {
87
- $( this ).removeAttr( "id" );
88
- }
89
- });
90
- }
91
- });
92
-
93
- // selectors
94
- function focusable( element, isTabIndexNotNaN ) {
95
- var map, mapName, img,
96
- nodeName = element.nodeName.toLowerCase();
97
- if ( "area" === nodeName ) {
98
- map = element.parentNode;
99
- mapName = map.name;
100
- if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
101
- return false;
102
- }
103
- img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
104
- return !!img && visible( img );
105
- }
106
- return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ?
107
- !element.disabled :
108
- "a" === nodeName ?
109
- element.href || isTabIndexNotNaN :
110
- isTabIndexNotNaN) &&
111
- // the element and all of its ancestors must be visible
112
- visible( element );
113
- }
114
-
115
- function visible( element ) {
116
- return $.expr.filters.visible( element ) &&
117
- !$( element ).parents().addBack().filter(function() {
118
- return $.css( this, "visibility" ) === "hidden";
119
- }).length;
120
- }
121
-
122
- $.extend( $.expr[ ":" ], {
123
- data: $.expr.createPseudo ?
124
- $.expr.createPseudo(function( dataName ) {
125
- return function( elem ) {
126
- return !!$.data( elem, dataName );
127
- };
128
- }) :
129
- // support: jQuery <1.8
130
- function( elem, i, match ) {
131
- return !!$.data( elem, match[ 3 ] );
132
- },
133
-
134
- focusable: function( element ) {
135
- return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
136
- },
137
-
138
- tabbable: function( element ) {
139
- var tabIndex = $.attr( element, "tabindex" ),
140
- isTabIndexNaN = isNaN( tabIndex );
141
- return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
142
- }
143
- });
144
-
145
- // support: jQuery <1.8
146
- if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
147
- $.each( [ "Width", "Height" ], function( i, name ) {
148
- var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
149
- type = name.toLowerCase(),
150
- orig = {
151
- innerWidth: $.fn.innerWidth,
152
- innerHeight: $.fn.innerHeight,
153
- outerWidth: $.fn.outerWidth,
154
- outerHeight: $.fn.outerHeight
155
- };
156
-
157
- function reduce( elem, size, border, margin ) {
158
- $.each( side, function() {
159
- size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
160
- if ( border ) {
161
- size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
162
- }
163
- if ( margin ) {
164
- size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
165
- }
166
- });
167
- return size;
168
- }
169
-
170
- $.fn[ "inner" + name ] = function( size ) {
171
- if ( size === undefined ) {
172
- return orig[ "inner" + name ].call( this );
173
- }
174
-
175
- return this.each(function() {
176
- $( this ).css( type, reduce( this, size ) + "px" );
177
- });
178
- };
179
-
180
- $.fn[ "outer" + name] = function( size, margin ) {
181
- if ( typeof size !== "number" ) {
182
- return orig[ "outer" + name ].call( this, size );
183
- }
184
-
185
- return this.each(function() {
186
- $( this).css( type, reduce( this, size, true, margin ) + "px" );
187
- });
188
- };
189
- });
190
- }
191
-
192
- // support: jQuery <1.8
193
- if ( !$.fn.addBack ) {
194
- $.fn.addBack = function( selector ) {
195
- return this.add( selector == null ?
196
- this.prevObject : this.prevObject.filter( selector )
197
- );
198
- };
199
- }
200
-
201
- // support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
202
- if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
203
- $.fn.removeData = (function( removeData ) {
204
- return function( key ) {
205
- if ( arguments.length ) {
206
- return removeData.call( this, $.camelCase( key ) );
207
- } else {
208
- return removeData.call( this );
209
- }
210
- };
211
- })( $.fn.removeData );
212
- }
213
-
214
- // deprecated
215
- $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
216
-
217
- $.fn.extend({
218
- focus: (function( orig ) {
219
- return function( delay, fn ) {
220
- return typeof delay === "number" ?
221
- this.each(function() {
222
- var elem = this;
223
- setTimeout(function() {
224
- $( elem ).focus();
225
- if ( fn ) {
226
- fn.call( elem );
227
- }
228
- }, delay );
229
- }) :
230
- orig.apply( this, arguments );
231
- };
232
- })( $.fn.focus ),
233
-
234
- disableSelection: (function() {
235
- var eventType = "onselectstart" in document.createElement( "div" ) ?
236
- "selectstart" :
237
- "mousedown";
238
-
239
- return function() {
240
- return this.bind( eventType + ".ui-disableSelection", function( event ) {
241
- event.preventDefault();
242
- });
243
- };
244
- })(),
245
-
246
- enableSelection: function() {
247
- return this.unbind( ".ui-disableSelection" );
248
- },
249
-
250
- zIndex: function( zIndex ) {
251
- if ( zIndex !== undefined ) {
252
- return this.css( "zIndex", zIndex );
253
- }
254
-
255
- if ( this.length ) {
256
- var elem = $( this[ 0 ] ), position, value;
257
- while ( elem.length && elem[ 0 ] !== document ) {
258
- // Ignore z-index if position is set to a value where z-index is ignored by the browser
259
- // This makes behavior of this function consistent across browsers
260
- // WebKit always returns auto if the element is positioned
261
- position = elem.css( "position" );
262
- if ( position === "absolute" || position === "relative" || position === "fixed" ) {
263
- // IE returns 0 when zIndex is not specified
264
- // other browsers return a string
265
- // we ignore the case of nested elements with an explicit value of 0
266
- // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
267
- value = parseInt( elem.css( "zIndex" ), 10 );
268
- if ( !isNaN( value ) && value !== 0 ) {
269
- return value;
270
- }
271
- }
272
- elem = elem.parent();
273
- }
274
- }
275
-
276
- return 0;
277
- }
278
- });
279
-
280
- // $.ui.plugin is deprecated. Use $.widget() extensions instead.
281
- $.ui.plugin = {
282
- add: function( module, option, set ) {
283
- var i,
284
- proto = $.ui[ module ].prototype;
285
- for ( i in set ) {
286
- proto.plugins[ i ] = proto.plugins[ i ] || [];
287
- proto.plugins[ i ].push( [ option, set[ i ] ] );
288
- }
289
- },
290
- call: function( instance, name, args, allowDisconnected ) {
291
- var i,
292
- set = instance.plugins[ name ];
293
-
294
- if ( !set ) {
295
- return;
296
- }
297
-
298
- if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
299
- return;
300
- }
301
-
302
- for ( i = 0; i < set.length; i++ ) {
303
- if ( instance.options[ set[ i ][ 0 ] ] ) {
304
- set[ i ][ 1 ].apply( instance.element, args );
305
- }
306
- }
307
- }
308
- };
309
-
310
-
311
- /*!
312
- * jQuery UI Widget 1.11.4
313
- * http://jqueryui.com
314
- *
315
- * Copyright jQuery Foundation and other contributors
316
- * Released under the MIT license.
317
- * http://jquery.org/license
318
- *
319
- * http://api.jqueryui.com/jQuery.widget/
320
- */
321
-
322
-
323
- var widget_uuid = 0,
324
- widget_slice = Array.prototype.slice;
325
-
326
- $.cleanData = (function( orig ) {
327
- return function( elems ) {
328
- var events, elem, i;
329
- for ( i = 0; (elem = elems[i]) != null; i++ ) {
330
- try {
331
-
332
- // Only trigger remove when necessary to save time
333
- events = $._data( elem, "events" );
334
- if ( events && events.remove ) {
335
- $( elem ).triggerHandler( "remove" );
336
- }
337
-
338
- // http://bugs.jquery.com/ticket/8235
339
- } catch ( e ) {}
340
- }
341
- orig( elems );
342
- };
343
- })( $.cleanData );
344
-
345
- $.widget = function( name, base, prototype ) {
346
- var fullName, existingConstructor, constructor, basePrototype,
347
- // proxiedPrototype allows the provided prototype to remain unmodified
348
- // so that it can be used as a mixin for multiple widgets (#8876)
349
- proxiedPrototype = {},
350
- namespace = name.split( "." )[ 0 ];
351
-
352
- name = name.split( "." )[ 1 ];
353
- fullName = namespace + "-" + name;
354
-
355
- if ( !prototype ) {
356
- prototype = base;
357
- base = $.Widget;
358
- }
359
-
360
- // create selector for plugin
361
- $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
362
- return !!$.data( elem, fullName );
363
- };
364
-
365
- $[ namespace ] = $[ namespace ] || {};
366
- existingConstructor = $[ namespace ][ name ];
367
- constructor = $[ namespace ][ name ] = function( options, element ) {
368
- // allow instantiation without "new" keyword
369
- if ( !this._createWidget ) {
370
- return new constructor( options, element );
371
- }
372
-
373
- // allow instantiation without initializing for simple inheritance
374
- // must use "new" keyword (the code above always passes args)
375
- if ( arguments.length ) {
376
- this._createWidget( options, element );
377
- }
378
- };
379
- // extend with the existing constructor to carry over any static properties
380
- $.extend( constructor, existingConstructor, {
381
- version: prototype.version,
382
- // copy the object used to create the prototype in case we need to
383
- // redefine the widget later
384
- _proto: $.extend( {}, prototype ),
385
- // track widgets that inherit from this widget in case this widget is
386
- // redefined after a widget inherits from it
387
- _childConstructors: []
388
- });
389
-
390
- basePrototype = new base();
391
- // we need to make the options hash a property directly on the new instance
392
- // otherwise we'll modify the options hash on the prototype that we're
393
- // inheriting from
394
- basePrototype.options = $.widget.extend( {}, basePrototype.options );
395
- $.each( prototype, function( prop, value ) {
396
- if ( !$.isFunction( value ) ) {
397
- proxiedPrototype[ prop ] = value;
398
- return;
399
- }
400
- proxiedPrototype[ prop ] = (function() {
401
- var _super = function() {
402
- return base.prototype[ prop ].apply( this, arguments );
403
- },
404
- _superApply = function( args ) {
405
- return base.prototype[ prop ].apply( this, args );
406
- };
407
- return function() {
408
- var __super = this._super,
409
- __superApply = this._superApply,
410
- returnValue;
411
-
412
- this._super = _super;
413
- this._superApply = _superApply;
414
-
415
- returnValue = value.apply( this, arguments );
416
-
417
- this._super = __super;
418
- this._superApply = __superApply;
419
-
420
- return returnValue;
421
- };
422
- })();
423
- });
424
- constructor.prototype = $.widget.extend( basePrototype, {
425
- // TODO: remove support for widgetEventPrefix
426
- // always use the name + a colon as the prefix, e.g., draggable:start
427
- // don't prefix for widgets that aren't DOM-based
428
- widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
429
- }, proxiedPrototype, {
430
- constructor: constructor,
431
- namespace: namespace,
432
- widgetName: name,
433
- widgetFullName: fullName
434
- });
435
-
436
- // If this widget is being redefined then we need to find all widgets that
437
- // are inheriting from it and redefine all of them so that they inherit from
438
- // the new version of this widget. We're essentially trying to replace one
439
- // level in the prototype chain.
440
- if ( existingConstructor ) {
441
- $.each( existingConstructor._childConstructors, function( i, child ) {
442
- var childPrototype = child.prototype;
443
-
444
- // redefine the child widget using the same prototype that was
445
- // originally used, but inherit from the new version of the base
446
- $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
447
- });
448
- // remove the list of existing child constructors from the old constructor
449
- // so the old child constructors can be garbage collected
450
- delete existingConstructor._childConstructors;
451
- } else {
452
- base._childConstructors.push( constructor );
453
- }
454
-
455
- $.widget.bridge( name, constructor );
456
-
457
- return constructor;
458
- };
459
-
460
- $.widget.extend = function( target ) {
461
- var input = widget_slice.call( arguments, 1 ),
462
- inputIndex = 0,
463
- inputLength = input.length,
464
- key,
465
- value;
466
- for ( ; inputIndex < inputLength; inputIndex++ ) {
467
- for ( key in input[ inputIndex ] ) {
468
- value = input[ inputIndex ][ key ];
469
- if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
470
- // Clone objects
471
- if ( $.isPlainObject( value ) ) {
472
- target[ key ] = $.isPlainObject( target[ key ] ) ?
473
- $.widget.extend( {}, target[ key ], value ) :
474
- // Don't extend strings, arrays, etc. with objects
475
- $.widget.extend( {}, value );
476
- // Copy everything else by reference
477
- } else {
478
- target[ key ] = value;
479
- }
480
- }
481
- }
482
- }
483
- return target;
484
- };
485
-
486
- $.widget.bridge = function( name, object ) {
487
- var fullName = object.prototype.widgetFullName || name;
488
- $.fn[ name ] = function( options ) {
489
- var isMethodCall = typeof options === "string",
490
- args = widget_slice.call( arguments, 1 ),
491
- returnValue = this;
492
-
493
- if ( isMethodCall ) {
494
- this.each(function() {
495
- var methodValue,
496
- instance = $.data( this, fullName );
497
- if ( options === "instance" ) {
498
- returnValue = instance;
499
- return false;
500
- }
501
- if ( !instance ) {
502
- return $.error( "cannot call methods on " + name + " prior to initialization; " +
503
- "attempted to call method '" + options + "'" );
504
- }
505
- if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
506
- return $.error( "no such method '" + options + "' for " + name + " widget instance" );
507
- }
508
- methodValue = instance[ options ].apply( instance, args );
509
- if ( methodValue !== instance && methodValue !== undefined ) {
510
- returnValue = methodValue && methodValue.jquery ?
511
- returnValue.pushStack( methodValue.get() ) :
512
- methodValue;
513
- return false;
514
- }
515
- });
516
- } else {
517
-
518
- // Allow multiple hashes to be passed on init
519
- if ( args.length ) {
520
- options = $.widget.extend.apply( null, [ options ].concat(args) );
521
- }
522
-
523
- this.each(function() {
524
- var instance = $.data( this, fullName );
525
- if ( instance ) {
526
- instance.option( options || {} );
527
- if ( instance._init ) {
528
- instance._init();
529
- }
530
- } else {
531
- $.data( this, fullName, new object( options, this ) );
532
- }
533
- });
534
- }
535
-
536
- return returnValue;
537
- };
538
- };
539
-
540
- $.Widget = function( /* options, element */ ) {};
541
- $.Widget._childConstructors = [];
542
-
543
- $.Widget.prototype = {
544
- widgetName: "widget",
545
- widgetEventPrefix: "",
546
- defaultElement: "<div>",
547
- options: {
548
- disabled: false,
549
-
550
- // callbacks
551
- create: null
552
- },
553
- _createWidget: function( options, element ) {
554
- element = $( element || this.defaultElement || this )[ 0 ];
555
- this.element = $( element );
556
- this.uuid = widget_uuid++;
557
- this.eventNamespace = "." + this.widgetName + this.uuid;
558
-
559
- this.bindings = $();
560
- this.hoverable = $();
561
- this.focusable = $();
562
-
563
- if ( element !== this ) {
564
- $.data( element, this.widgetFullName, this );
565
- this._on( true, this.element, {
566
- remove: function( event ) {
567
- if ( event.target === element ) {
568
- this.destroy();
569
- }
570
- }
571
- });
572
- this.document = $( element.style ?
573
- // element within the document
574
- element.ownerDocument :
575
- // element is window or document
576
- element.document || element );
577
- this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
578
- }
579
-
580
- this.options = $.widget.extend( {},
581
- this.options,
582
- this._getCreateOptions(),
583
- options );
584
-
585
- this._create();
586
- this._trigger( "create", null, this._getCreateEventData() );
587
- this._init();
588
- },
589
- _getCreateOptions: $.noop,
590
- _getCreateEventData: $.noop,
591
- _create: $.noop,
592
- _init: $.noop,
593
-
594
- destroy: function() {
595
- this._destroy();
596
- // we can probably remove the unbind calls in 2.0
597
- // all event bindings should go through this._on()
598
- this.element
599
- .unbind( this.eventNamespace )
600
- .removeData( this.widgetFullName )
601
- // support: jquery <1.6.3
602
- // http://bugs.jquery.com/ticket/9413
603
- .removeData( $.camelCase( this.widgetFullName ) );
604
- this.widget()
605
- .unbind( this.eventNamespace )
606
- .removeAttr( "aria-disabled" )
607
- .removeClass(
608
- this.widgetFullName + "-disabled " +
609
- "ui-state-disabled" );
610
-
611
- // clean up events and states
612
- this.bindings.unbind( this.eventNamespace );
613
- this.hoverable.removeClass( "ui-state-hover" );
614
- this.focusable.removeClass( "ui-state-focus" );
615
- },
616
- _destroy: $.noop,
617
-
618
- widget: function() {
619
- return this.element;
620
- },
621
-
622
- option: function( key, value ) {
623
- var options = key,
624
- parts,
625
- curOption,
626
- i;
627
-
628
- if ( arguments.length === 0 ) {
629
- // don't return a reference to the internal hash
630
- return $.widget.extend( {}, this.options );
631
- }
632
-
633
- if ( typeof key === "string" ) {
634
- // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
635
- options = {};
636
- parts = key.split( "." );
637
- key = parts.shift();
638
- if ( parts.length ) {
639
- curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
640
- for ( i = 0; i < parts.length - 1; i++ ) {
641
- curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
642
- curOption = curOption[ parts[ i ] ];
643
- }
644
- key = parts.pop();
645
- if ( arguments.length === 1 ) {
646
- return curOption[ key ] === undefined ? null : curOption[ key ];
647
- }
648
- curOption[ key ] = value;
649
- } else {
650
- if ( arguments.length === 1 ) {
651
- return this.options[ key ] === undefined ? null : this.options[ key ];
652
- }
653
- options[ key ] = value;
654
- }
655
- }
656
-
657
- this._setOptions( options );
658
-
659
- return this;
660
- },
661
- _setOptions: function( options ) {
662
- var key;
663
-
664
- for ( key in options ) {
665
- this._setOption( key, options[ key ] );
666
- }
667
-
668
- return this;
669
- },
670
- _setOption: function( key, value ) {
671
- this.options[ key ] = value;
672
-
673
- if ( key === "disabled" ) {
674
- this.widget()
675
- .toggleClass( this.widgetFullName + "-disabled", !!value );
676
-
677
- // If the widget is becoming disabled, then nothing is interactive
678
- if ( value ) {
679
- this.hoverable.removeClass( "ui-state-hover" );
680
- this.focusable.removeClass( "ui-state-focus" );
681
- }
682
- }
683
-
684
- return this;
685
- },
686
-
687
- enable: function() {
688
- return this._setOptions({ disabled: false });
689
- },
690
- disable: function() {
691
- return this._setOptions({ disabled: true });
692
- },
693
-
694
- _on: function( suppressDisabledCheck, element, handlers ) {
695
- var delegateElement,
696
- instance = this;
697
-
698
- // no suppressDisabledCheck flag, shuffle arguments
699
- if ( typeof suppressDisabledCheck !== "boolean" ) {
700
- handlers = element;
701
- element = suppressDisabledCheck;
702
- suppressDisabledCheck = false;
703
- }
704
-
705
- // no element argument, shuffle and use this.element
706
- if ( !handlers ) {
707
- handlers = element;
708
- element = this.element;
709
- delegateElement = this.widget();
710
- } else {
711
- element = delegateElement = $( element );
712
- this.bindings = this.bindings.add( element );
713
- }
714
-
715
- $.each( handlers, function( event, handler ) {
716
- function handlerProxy() {
717
- // allow widgets to customize the disabled handling
718
- // - disabled as an array instead of boolean
719
- // - disabled class as method for disabling individual parts
720
- if ( !suppressDisabledCheck &&
721
- ( instance.options.disabled === true ||
722
- $( this ).hasClass( "ui-state-disabled" ) ) ) {
723
- return;
724
- }
725
- return ( typeof handler === "string" ? instance[ handler ] : handler )
726
- .apply( instance, arguments );
727
- }
728
-
729
- // copy the guid so direct unbinding works
730
- if ( typeof handler !== "string" ) {
731
- handlerProxy.guid = handler.guid =
732
- handler.guid || handlerProxy.guid || $.guid++;
733
- }
734
-
735
- var match = event.match( /^([\w:-]*)\s*(.*)$/ ),
736
- eventName = match[1] + instance.eventNamespace,
737
- selector = match[2];
738
- if ( selector ) {
739
- delegateElement.delegate( selector, eventName, handlerProxy );
740
- } else {
741
- element.bind( eventName, handlerProxy );
742
- }
743
- });
744
- },
745
-
746
- _off: function( element, eventName ) {
747
- eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) +
748
- this.eventNamespace;
749
- element.unbind( eventName ).undelegate( eventName );
750
-
751
- // Clear the stack to avoid memory leaks (#10056)
752
- this.bindings = $( this.bindings.not( element ).get() );
753
- this.focusable = $( this.focusable.not( element ).get() );
754
- this.hoverable = $( this.hoverable.not( element ).get() );
755
- },
756
-
757
- _delay: function( handler, delay ) {
758
- function handlerProxy() {
759
- return ( typeof handler === "string" ? instance[ handler ] : handler )
760
- .apply( instance, arguments );
761
- }
762
- var instance = this;
763
- return setTimeout( handlerProxy, delay || 0 );
764
- },
765
-
766
- _hoverable: function( element ) {
767
- this.hoverable = this.hoverable.add( element );
768
- this._on( element, {
769
- mouseenter: function( event ) {
770
- $( event.currentTarget ).addClass( "ui-state-hover" );
771
- },
772
- mouseleave: function( event ) {
773
- $( event.currentTarget ).removeClass( "ui-state-hover" );
774
- }
775
- });
776
- },
777
-
778
- _focusable: function( element ) {
779
- this.focusable = this.focusable.add( element );
780
- this._on( element, {
781
- focusin: function( event ) {
782
- $( event.currentTarget ).addClass( "ui-state-focus" );
783
- },
784
- focusout: function( event ) {
785
- $( event.currentTarget ).removeClass( "ui-state-focus" );
786
- }
787
- });
788
- },
789
-
790
- _trigger: function( type, event, data ) {
791
- var prop, orig,
792
- callback = this.options[ type ];
793
-
794
- data = data || {};
795
- event = $.Event( event );
796
- event.type = ( type === this.widgetEventPrefix ?
797
- type :
798
- this.widgetEventPrefix + type ).toLowerCase();
799
- // the original event may come from any element
800
- // so we need to reset the target on the new event
801
- event.target = this.element[ 0 ];
802
-
803
- // copy original event properties over to the new event
804
- orig = event.originalEvent;
805
- if ( orig ) {
806
- for ( prop in orig ) {
807
- if ( !( prop in event ) ) {
808
- event[ prop ] = orig[ prop ];
809
- }
810
- }
811
- }
812
-
813
- this.element.trigger( event, data );
814
- return !( $.isFunction( callback ) &&
815
- callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
816
- event.isDefaultPrevented() );
817
- }
818
- };
819
-
820
- $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
821
- $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
822
- if ( typeof options === "string" ) {
823
- options = { effect: options };
824
- }
825
- var hasOptions,
826
- effectName = !options ?
827
- method :
828
- options === true || typeof options === "number" ?
829
- defaultEffect :
830
- options.effect || defaultEffect;
831
- options = options || {};
832
- if ( typeof options === "number" ) {
833
- options = { duration: options };
834
- }
835
- hasOptions = !$.isEmptyObject( options );
836
- options.complete = callback;
837
- if ( options.delay ) {
838
- element.delay( options.delay );
839
- }
840
- if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
841
- element[ method ]( options );
842
- } else if ( effectName !== method && element[ effectName ] ) {
843
- element[ effectName ]( options.duration, options.easing, callback );
844
- } else {
845
- element.queue(function( next ) {
846
- $( this )[ method ]();
847
- if ( callback ) {
848
- callback.call( element[ 0 ] );
849
- }
850
- next();
851
- });
852
- }
853
- };
854
- });
855
-
856
- var widget = $.widget;
857
-
858
-
859
- /*!
860
- * jQuery UI Mouse 1.11.4
861
- * http://jqueryui.com
862
- *
863
- * Copyright jQuery Foundation and other contributors
864
- * Released under the MIT license.
865
- * http://jquery.org/license
866
- *
867
- * http://api.jqueryui.com/mouse/
868
- */
869
-
870
-
871
- var mouseHandled = false;
872
- $( document ).mouseup( function() {
873
- mouseHandled = false;
874
- });
875
-
876
- var mouse = $.widget("ui.mouse", {
877
- version: "1.11.4",
878
- options: {
879
- cancel: "input,textarea,button,select,option",
880
- distance: 1,
881
- delay: 0
882
- },
883
- _mouseInit: function() {
884
- var that = this;
885
-
886
- this.element
887
- .bind("mousedown." + this.widgetName, function(event) {
888
- return that._mouseDown(event);
889
- })
890
- .bind("click." + this.widgetName, function(event) {
891
- if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) {
892
- $.removeData(event.target, that.widgetName + ".preventClickEvent");
893
- event.stopImmediatePropagation();
894
- return false;
895
- }
896
- });
897
-
898
- this.started = false;
899
- },
900
-
901
- // TODO: make sure destroying one instance of mouse doesn't mess with
902
- // other instances of mouse
903
- _mouseDestroy: function() {
904
- this.element.unbind("." + this.widgetName);
905
- if ( this._mouseMoveDelegate ) {
906
- this.document
907
- .unbind("mousemove." + this.widgetName, this._mouseMoveDelegate)
908
- .unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
909
- }
910
- },
911
-
912
- _mouseDown: function(event) {
913
- // don't let more than one widget handle mouseStart
914
- if ( mouseHandled ) {
915
- return;
916
- }
917
-
918
- this._mouseMoved = false;
919
-
920
- // we may have missed mouseup (out of window)
921
- (this._mouseStarted && this._mouseUp(event));
922
-
923
- this._mouseDownEvent = event;
924
-
925
- var that = this,
926
- btnIsLeft = (event.which === 1),
927
- // event.target.nodeName works around a bug in IE 8 with
928
- // disabled inputs (#7620)
929
- elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
930
- if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
931
- return true;
932
- }
933
-
934
- this.mouseDelayMet = !this.options.delay;
935
- if (!this.mouseDelayMet) {
936
- this._mouseDelayTimer = setTimeout(function() {
937
- that.mouseDelayMet = true;
938
- }, this.options.delay);
939
- }
940
-
941
- if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
942
- this._mouseStarted = (this._mouseStart(event) !== false);
943
- if (!this._mouseStarted) {
944
- event.preventDefault();
945
- return true;
946
- }
947
- }
948
-
949
- // Click event may never have fired (Gecko & Opera)
950
- if (true === $.data(event.target, this.widgetName + ".preventClickEvent")) {
951
- $.removeData(event.target, this.widgetName + ".preventClickEvent");
952
- }
953
-
954
- // these delegates are required to keep context
955
- this._mouseMoveDelegate = function(event) {
956
- return that._mouseMove(event);
957
- };
958
- this._mouseUpDelegate = function(event) {
959
- return that._mouseUp(event);
960
- };
961
-
962
- this.document
963
- .bind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
964
- .bind( "mouseup." + this.widgetName, this._mouseUpDelegate );
965
-
966
- event.preventDefault();
967
-
968
- mouseHandled = true;
969
- return true;
970
- },
971
-
972
- _mouseMove: function(event) {
973
- // Only check for mouseups outside the document if you've moved inside the document
974
- // at least once. This prevents the firing of mouseup in the case of IE<9, which will
975
- // fire a mousemove event if content is placed under the cursor. See #7778
976
- // Support: IE <9
977
- if ( this._mouseMoved ) {
978
- // IE mouseup check - mouseup happened when mouse was out of window
979
- if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
980
- return this._mouseUp(event);
981
-
982
- // Iframe mouseup check - mouseup occurred in another document
983
- } else if ( !event.which ) {
984
- return this._mouseUp( event );
985
- }
986
- }
987
-
988
- if ( event.which || event.button ) {
989
- this._mouseMoved = true;
990
- }
991
-
992
- if (this._mouseStarted) {
993
- this._mouseDrag(event);
994
- return event.preventDefault();
995
- }
996
-
997
- if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
998
- this._mouseStarted =
999
- (this._mouseStart(this._mouseDownEvent, event) !== false);
1000
- (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
1001
- }
1002
-
1003
- return !this._mouseStarted;
1004
- },
1005
-
1006
- _mouseUp: function(event) {
1007
- this.document
1008
- .unbind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
1009
- .unbind( "mouseup." + this.widgetName, this._mouseUpDelegate );
1010
-
1011
- if (this._mouseStarted) {
1012
- this._mouseStarted = false;
1013
-
1014
- if (event.target === this._mouseDownEvent.target) {
1015
- $.data(event.target, this.widgetName + ".preventClickEvent", true);
1016
- }
1017
-
1018
- this._mouseStop(event);
1019
- }
1020
-
1021
- mouseHandled = false;
1022
- return false;
1023
- },
1024
-
1025
- _mouseDistanceMet: function(event) {
1026
- return (Math.max(
1027
- Math.abs(this._mouseDownEvent.pageX - event.pageX),
1028
- Math.abs(this._mouseDownEvent.pageY - event.pageY)
1029
- ) >= this.options.distance
1030
- );
1031
- },
1032
-
1033
- _mouseDelayMet: function(/* event */) {
1034
- return this.mouseDelayMet;
1035
- },
1036
-
1037
- // These are placeholder methods, to be overriden by extending plugin
1038
- _mouseStart: function(/* event */) {},
1039
- _mouseDrag: function(/* event */) {},
1040
- _mouseStop: function(/* event */) {},
1041
- _mouseCapture: function(/* event */) { return true; }
1042
- });
1043
-
1044
-
1045
- /*!
1046
- * jQuery UI Datepicker 1.11.4
1047
- * http://jqueryui.com
1048
- *
1049
- * Copyright jQuery Foundation and other contributors
1050
- * Released under the MIT license.
1051
- * http://jquery.org/license
1052
- *
1053
- * http://api.jqueryui.com/datepicker/
1054
- */
1055
-
1056
-
1057
- $.extend($.ui, { datepicker: { version: "1.11.4" } });
1058
-
1059
- var datepicker_instActive;
1060
-
1061
- function datepicker_getZindex( elem ) {
1062
- var position, value;
1063
- while ( elem.length && elem[ 0 ] !== document ) {
1064
- // Ignore z-index if position is set to a value where z-index is ignored by the browser
1065
- // This makes behavior of this function consistent across browsers
1066
- // WebKit always returns auto if the element is positioned
1067
- position = elem.css( "position" );
1068
- if ( position === "absolute" || position === "relative" || position === "fixed" ) {
1069
- // IE returns 0 when zIndex is not specified
1070
- // other browsers return a string
1071
- // we ignore the case of nested elements with an explicit value of 0
1072
- // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
1073
- value = parseInt( elem.css( "zIndex" ), 10 );
1074
- if ( !isNaN( value ) && value !== 0 ) {
1075
- return value;
1076
- }
1077
- }
1078
- elem = elem.parent();
1079
- }
1080
-
1081
- return 0;
1082
- }
1083
- /* Date picker manager.
1084
- Use the singleton instance of this class, $.datepicker, to interact with the date picker.
1085
- Settings for (groups of) date pickers are maintained in an instance object,
1086
- allowing multiple different settings on the same page. */
1087
-
1088
- function Datepicker() {
1089
- this._curInst = null; // The current instance in use
1090
- this._keyEvent = false; // If the last event was a key event
1091
- this._disabledInputs = []; // List of date picker inputs that have been disabled
1092
- this._datepickerShowing = false; // True if the popup picker is showing , false if not
1093
- this._inDialog = false; // True if showing within a "dialog", false if not
1094
- this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division
1095
- this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class
1096
- this._appendClass = "ui-datepicker-append"; // The name of the append marker class
1097
- this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class
1098
- this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class
1099
- this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class
1100
- this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class
1101
- this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class
1102
- this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class
1103
- this.regional = []; // Available regional settings, indexed by language code
1104
- this.regional[""] = { // Default regional settings
1105
- closeText: "Done", // Display text for close link
1106
- prevText: "Prev", // Display text for previous month link
1107
- nextText: "Next", // Display text for next month link
1108
- currentText: "Today", // Display text for current month link
1109
- monthNames: ["January","February","March","April","May","June",
1110
- "July","August","September","October","November","December"], // Names of months for drop-down and formatting
1111
- monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], // For formatting
1112
- dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], // For formatting
1113
- dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], // For formatting
1114
- dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"], // Column headings for days starting at Sunday
1115
- weekHeader: "Wk", // Column header for week of the year
1116
- dateFormat: "mm/dd/yy", // See format options on parseDate
1117
- firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
1118
- isRTL: false, // True if right-to-left language, false if left-to-right
1119
- showMonthAfterYear: false, // True if the year select precedes month, false for month then year
1120
- yearSuffix: "" // Additional text to append to the year in the month headers
1121
- };
1122
- this._defaults = { // Global defaults for all the date picker instances
1123
- showOn: "focus", // "focus" for popup on focus,
1124
- // "button" for trigger button, or "both" for either
1125
- showAnim: "fadeIn", // Name of jQuery animation for popup
1126
- showOptions: {}, // Options for enhanced animations
1127
- defaultDate: null, // Used when field is blank: actual date,
1128
- // +/-number for offset from today, null for today
1129
- appendText: "", // Display text following the input box, e.g. showing the format
1130
- buttonText: "...", // Text for trigger button
1131
- buttonImage: "", // URL for trigger button image
1132
- buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
1133
- hideIfNoPrevNext: false, // True to hide next/previous month links
1134
- // if not applicable, false to just disable them
1135
- navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
1136
- gotoCurrent: false, // True if today link goes back to current selection instead
1137
- changeMonth: false, // True if month can be selected directly, false if only prev/next
1138
- changeYear: false, // True if year can be selected directly, false if only prev/next
1139
- yearRange: "c-10:c+10", // Range of years to display in drop-down,
1140
- // either relative to today's year (-nn:+nn), relative to currently displayed year
1141
- // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
1142
- showOtherMonths: false, // True to show dates in other months, false to leave blank
1143
- selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
1144
- showWeek: false, // True to show week of the year, false to not show it
1145
- calculateWeek: this.iso8601Week, // How to calculate the week of the year,
1146
- // takes a Date and returns the number of the week for it
1147
- shortYearCutoff: "+10", // Short year values < this are in the current century,
1148
- // > this are in the previous century,
1149
- // string value starting with "+" for current year + value
1150
- minDate: null, // The earliest selectable date, or null for no limit
1151
- maxDate: null, // The latest selectable date, or null for no limit
1152
- duration: "fast", // Duration of display/closure
1153
- beforeShowDay: null, // Function that takes a date and returns an array with
1154
- // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
1155
- // [2] = cell title (optional), e.g. $.datepicker.noWeekends
1156
- beforeShow: null, // Function that takes an input field and
1157
- // returns a set of custom settings for the date picker
1158
- onSelect: null, // Define a callback function when a date is selected
1159
- onChangeMonthYear: null, // Define a callback function when the month or year is changed
1160
- onClose: null, // Define a callback function when the datepicker is closed
1161
- numberOfMonths: 1, // Number of months to show at a time
1162
- showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
1163
- stepMonths: 1, // Number of months to step back/forward
1164
- stepBigMonths: 12, // Number of months to step back/forward for the big links
1165
- altField: "", // Selector for an alternate field to store selected dates into
1166
- altFormat: "", // The date format to use for the alternate field
1167
- constrainInput: true, // The input is constrained by the current date format
1168
- showButtonPanel: false, // True to show button panel, false to not show it
1169
- autoSize: false, // True to size the input for the date format, false to leave as is
1170
- disabled: false // The initial disabled state
1171
- };
1172
- $.extend(this._defaults, this.regional[""]);
1173
- this.regional.en = $.extend( true, {}, this.regional[ "" ]);
1174
- this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
1175
- this.dpDiv = datepicker_bindHover($("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"));
1176
- }
1177
-
1178
- $.extend(Datepicker.prototype, {
1179
- /* Class name added to elements to indicate already configured with a date picker. */
1180
- markerClassName: "hasDatepicker",
1181
-
1182
- //Keep track of the maximum number of rows displayed (see #7043)
1183
- maxRows: 4,
1184
-
1185
- // TODO rename to "widget" when switching to widget factory
1186
- _widgetDatepicker: function() {
1187
- return this.dpDiv;
1188
- },
1189
-
1190
- /* Override the default settings for all instances of the date picker.
1191
- * @param settings object - the new settings to use as defaults (anonymous object)
1192
- * @return the manager object
1193
- */
1194
- setDefaults: function(settings) {
1195
- datepicker_extendRemove(this._defaults, settings || {});
1196
- return this;
1197
- },
1198
-
1199
- /* Attach the date picker to a jQuery selection.
1200
- * @param target element - the target input field or division or span
1201
- * @param settings object - the new settings to use for this date picker instance (anonymous)
1202
- */
1203
- _attachDatepicker: function(target, settings) {
1204
- var nodeName, inline, inst;
1205
- nodeName = target.nodeName.toLowerCase();
1206
- inline = (nodeName === "div" || nodeName === "span");
1207
- if (!target.id) {
1208
- this.uuid += 1;
1209
- target.id = "dp" + this.uuid;
1210
- }
1211
- inst = this._newInst($(target), inline);
1212
- inst.settings = $.extend({}, settings || {});
1213
- if (nodeName === "input") {
1214
- this._connectDatepicker(target, inst);
1215
- } else if (inline) {
1216
- this._inlineDatepicker(target, inst);
1217
- }
1218
- },
1219
-
1220
- /* Create a new instance object. */
1221
- _newInst: function(target, inline) {
1222
- var id = target[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"); // escape jQuery meta chars
1223
- return {id: id, input: target, // associated target
1224
- selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
1225
- drawMonth: 0, drawYear: 0, // month being drawn
1226
- inline: inline, // is datepicker inline or not
1227
- dpDiv: (!inline ? this.dpDiv : // presentation div
1228
- datepicker_bindHover($("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))};
1229
- },
1230
-
1231
- /* Attach the date picker to an input field. */
1232
- _connectDatepicker: function(target, inst) {
1233
- var input = $(target);
1234
- inst.append = $([]);
1235
- inst.trigger = $([]);
1236
- if (input.hasClass(this.markerClassName)) {
1237
- return;
1238
- }
1239
- this._attachments(input, inst);
1240
- input.addClass(this.markerClassName).keydown(this._doKeyDown).
1241
- keypress(this._doKeyPress).keyup(this._doKeyUp);
1242
- this._autoSize(inst);
1243
- $.data(target, "datepicker", inst);
1244
- //If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
1245
- if( inst.settings.disabled ) {
1246
- this._disableDatepicker( target );
1247
- }
1248
- },
1249
-
1250
- /* Make attachments based on settings. */
1251
- _attachments: function(input, inst) {
1252
- var showOn, buttonText, buttonImage,
1253
- appendText = this._get(inst, "appendText"),
1254
- isRTL = this._get(inst, "isRTL");
1255
-
1256
- if (inst.append) {
1257
- inst.append.remove();
1258
- }
1259
- if (appendText) {
1260
- inst.append = $("<span class='" + this._appendClass + "'>" + appendText + "</span>");
1261
- input[isRTL ? "before" : "after"](inst.append);
1262
- }
1263
-
1264
- input.unbind("focus", this._showDatepicker);
1265
-
1266
- if (inst.trigger) {
1267
- inst.trigger.remove();
1268
- }
1269
-
1270
- showOn = this._get(inst, "showOn");
1271
- if (showOn === "focus" || showOn === "both") { // pop-up date picker when in the marked field
1272
- input.focus(this._showDatepicker);
1273
- }
1274
- if (showOn === "button" || showOn === "both") { // pop-up date picker when button clicked
1275
- buttonText = this._get(inst, "buttonText");
1276
- buttonImage = this._get(inst, "buttonImage");
1277
- inst.trigger = $(this._get(inst, "buttonImageOnly") ?
1278
- $("<img/>").addClass(this._triggerClass).
1279
- attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
1280
- $("<button type='button'></button>").addClass(this._triggerClass).
1281
- html(!buttonImage ? buttonText : $("<img/>").attr(
1282
- { src:buttonImage, alt:buttonText, title:buttonText })));
1283
- input[isRTL ? "before" : "after"](inst.trigger);
1284
- inst.trigger.click(function() {
1285
- if ($.datepicker._datepickerShowing && $.datepicker._lastInput === input[0]) {
1286
- $.datepicker._hideDatepicker();
1287
- } else if ($.datepicker._datepickerShowing && $.datepicker._lastInput !== input[0]) {
1288
- $.datepicker._hideDatepicker();
1289
- $.datepicker._showDatepicker(input[0]);
1290
- } else {
1291
- $.datepicker._showDatepicker(input[0]);
1292
- }
1293
- return false;
1294
- });
1295
- }
1296
- },
1297
-
1298
- /* Apply the maximum length for the date format. */
1299
- _autoSize: function(inst) {
1300
- if (this._get(inst, "autoSize") && !inst.inline) {
1301
- var findMax, max, maxI, i,
1302
- date = new Date(2009, 12 - 1, 20), // Ensure double digits
1303
- dateFormat = this._get(inst, "dateFormat");
1304
-
1305
- if (dateFormat.match(/[DM]/)) {
1306
- findMax = function(names) {
1307
- max = 0;
1308
- maxI = 0;
1309
- for (i = 0; i < names.length; i++) {
1310
- if (names[i].length > max) {
1311
- max = names[i].length;
1312
- maxI = i;
1313
- }
1314
- }
1315
- return maxI;
1316
- };
1317
- date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?
1318
- "monthNames" : "monthNamesShort"))));
1319
- date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?
1320
- "dayNames" : "dayNamesShort"))) + 20 - date.getDay());
1321
- }
1322
- inst.input.attr("size", this._formatDate(inst, date).length);
1323
- }
1324
- },
1325
-
1326
- /* Attach an inline date picker to a div. */
1327
- _inlineDatepicker: function(target, inst) {
1328
- var divSpan = $(target);
1329
- if (divSpan.hasClass(this.markerClassName)) {
1330
- return;
1331
- }
1332
- divSpan.addClass(this.markerClassName).append(inst.dpDiv);
1333
- $.data(target, "datepicker", inst);
1334
- this._setDate(inst, this._getDefaultDate(inst), true);
1335
- this._updateDatepicker(inst);
1336
- this._updateAlternate(inst);
1337
- //If disabled option is true, disable the datepicker before showing it (see ticket #5665)
1338
- if( inst.settings.disabled ) {
1339
- this._disableDatepicker( target );
1340
- }
1341
- // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
1342
- // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
1343
- inst.dpDiv.css( "display", "block" );
1344
- },
1345
-
1346
- /* Pop-up the date picker in a "dialog" box.
1347
- * @param input element - ignored
1348
- * @param date string or Date - the initial date to display
1349
- * @param onSelect function - the function to call when a date is selected
1350
- * @param settings object - update the dialog date picker instance's settings (anonymous object)
1351
- * @param pos int[2] - coordinates for the dialog's position within the screen or
1352
- * event - with x/y coordinates or
1353
- * leave empty for default (screen centre)
1354
- * @return the manager object
1355
- */
1356
- _dialogDatepicker: function(input, date, onSelect, settings, pos) {
1357
- var id, browserWidth, browserHeight, scrollX, scrollY,
1358
- inst = this._dialogInst; // internal instance
1359
-
1360
- if (!inst) {
1361
- this.uuid += 1;
1362
- id = "dp" + this.uuid;
1363
- this._dialogInput = $("<input type='text' id='" + id +
1364
- "' style='position: absolute; top: -100px; width: 0px;'/>");
1365
- this._dialogInput.keydown(this._doKeyDown);
1366
- $("body").append(this._dialogInput);
1367
- inst = this._dialogInst = this._newInst(this._dialogInput, false);
1368
- inst.settings = {};
1369
- $.data(this._dialogInput[0], "datepicker", inst);
1370
- }
1371
- datepicker_extendRemove(inst.settings, settings || {});
1372
- date = (date && date.constructor === Date ? this._formatDate(inst, date) : date);
1373
- this._dialogInput.val(date);
1374
-
1375
- this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
1376
- if (!this._pos) {
1377
- browserWidth = document.documentElement.clientWidth;
1378
- browserHeight = document.documentElement.clientHeight;
1379
- scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
1380
- scrollY = document.documentElement.scrollTop || document.body.scrollTop;
1381
- this._pos = // should use actual width/height below
1382
- [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
1383
- }
1384
-
1385
- // move input on screen for focus, but hidden behind dialog
1386
- this._dialogInput.css("left", (this._pos[0] + 20) + "px").css("top", this._pos[1] + "px");
1387
- inst.settings.onSelect = onSelect;
1388
- this._inDialog = true;
1389
- this.dpDiv.addClass(this._dialogClass);
1390
- this._showDatepicker(this._dialogInput[0]);
1391
- if ($.blockUI) {
1392
- $.blockUI(this.dpDiv);
1393
- }
1394
- $.data(this._dialogInput[0], "datepicker", inst);
1395
- return this;
1396
- },
1397
-
1398
- /* Detach a datepicker from its control.
1399
- * @param target element - the target input field or division or span
1400
- */
1401
- _destroyDatepicker: function(target) {
1402
- var nodeName,
1403
- $target = $(target),
1404
- inst = $.data(target, "datepicker");
1405
-
1406
- if (!$target.hasClass(this.markerClassName)) {
1407
- return;
1408
- }
1409
-
1410
- nodeName = target.nodeName.toLowerCase();
1411
- $.removeData(target, "datepicker");
1412
- if (nodeName === "input") {
1413
- inst.append.remove();
1414
- inst.trigger.remove();
1415
- $target.removeClass(this.markerClassName).
1416
- unbind("focus", this._showDatepicker).
1417
- unbind("keydown", this._doKeyDown).
1418
- unbind("keypress", this._doKeyPress).
1419
- unbind("keyup", this._doKeyUp);
1420
- } else if (nodeName === "div" || nodeName === "span") {
1421
- $target.removeClass(this.markerClassName).empty();
1422
- }
1423
-
1424
- if ( datepicker_instActive === inst ) {
1425
- datepicker_instActive = null;
1426
- }
1427
- },
1428
-
1429
- /* Enable the date picker to a jQuery selection.
1430
- * @param target element - the target input field or division or span
1431
- */
1432
- _enableDatepicker: function(target) {
1433
- var nodeName, inline,
1434
- $target = $(target),
1435
- inst = $.data(target, "datepicker");
1436
-
1437
- if (!$target.hasClass(this.markerClassName)) {
1438
- return;
1439
- }
1440
-
1441
- nodeName = target.nodeName.toLowerCase();
1442
- if (nodeName === "input") {
1443
- target.disabled = false;
1444
- inst.trigger.filter("button").
1445
- each(function() { this.disabled = false; }).end().
1446
- filter("img").css({opacity: "1.0", cursor: ""});
1447
- } else if (nodeName === "div" || nodeName === "span") {
1448
- inline = $target.children("." + this._inlineClass);
1449
- inline.children().removeClass("ui-state-disabled");
1450
- inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
1451
- prop("disabled", false);
1452
- }
1453
- this._disabledInputs = $.map(this._disabledInputs,
1454
- function(value) { return (value === target ? null : value); }); // delete entry
1455
- },
1456
-
1457
- /* Disable the date picker to a jQuery selection.
1458
- * @param target element - the target input field or division or span
1459
- */
1460
- _disableDatepicker: function(target) {
1461
- var nodeName, inline,
1462
- $target = $(target),
1463
- inst = $.data(target, "datepicker");
1464
-
1465
- if (!$target.hasClass(this.markerClassName)) {
1466
- return;
1467
- }
1468
-
1469
- nodeName = target.nodeName.toLowerCase();
1470
- if (nodeName === "input") {
1471
- target.disabled = true;
1472
- inst.trigger.filter("button").
1473
- each(function() { this.disabled = true; }).end().
1474
- filter("img").css({opacity: "0.5", cursor: "default"});
1475
- } else if (nodeName === "div" || nodeName === "span") {
1476
- inline = $target.children("." + this._inlineClass);
1477
- inline.children().addClass("ui-state-disabled");
1478
- inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
1479
- prop("disabled", true);
1480
- }
1481
- this._disabledInputs = $.map(this._disabledInputs,
1482
- function(value) { return (value === target ? null : value); }); // delete entry
1483
- this._disabledInputs[this._disabledInputs.length] = target;
1484
- },
1485
-
1486
- /* Is the first field in a jQuery collection disabled as a datepicker?
1487
- * @param target element - the target input field or division or span
1488
- * @return boolean - true if disabled, false if enabled
1489
- */
1490
- _isDisabledDatepicker: function(target) {
1491
- if (!target) {
1492
- return false;
1493
- }
1494
- for (var i = 0; i < this._disabledInputs.length; i++) {
1495
- if (this._disabledInputs[i] === target) {
1496
- return true;
1497
- }
1498
- }
1499
- return false;
1500
- },
1501
-
1502
- /* Retrieve the instance data for the target control.
1503
- * @param target element - the target input field or division or span
1504
- * @return object - the associated instance data
1505
- * @throws error if a jQuery problem getting data
1506
- */
1507
- _getInst: function(target) {
1508
- try {
1509
- return $.data(target, "datepicker");
1510
- }
1511
- catch (err) {
1512
- throw "Missing instance data for this datepicker";
1513
- }
1514
- },
1515
-
1516
- /* Update or retrieve the settings for a date picker attached to an input field or division.
1517
- * @param target element - the target input field or division or span
1518
- * @param name object - the new settings to update or
1519
- * string - the name of the setting to change or retrieve,
1520
- * when retrieving also "all" for all instance settings or
1521
- * "defaults" for all global defaults
1522
- * @param value any - the new value for the setting
1523
- * (omit if above is an object or to retrieve a value)
1524
- */
1525
- _optionDatepicker: function(target, name, value) {
1526
- var settings, date, minDate, maxDate,
1527
- inst = this._getInst(target);
1528
-
1529
- if (arguments.length === 2 && typeof name === "string") {
1530
- return (name === "defaults" ? $.extend({}, $.datepicker._defaults) :
1531
- (inst ? (name === "all" ? $.extend({}, inst.settings) :
1532
- this._get(inst, name)) : null));
1533
- }
1534
-
1535
- settings = name || {};
1536
- if (typeof name === "string") {
1537
- settings = {};
1538
- settings[name] = value;
1539
- }
1540
-
1541
- if (inst) {
1542
- if (this._curInst === inst) {
1543
- this._hideDatepicker();
1544
- }
1545
-
1546
- date = this._getDateDatepicker(target, true);
1547
- minDate = this._getMinMaxDate(inst, "min");
1548
- maxDate = this._getMinMaxDate(inst, "max");
1549
- datepicker_extendRemove(inst.settings, settings);
1550
- // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
1551
- if (minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined) {
1552
- inst.settings.minDate = this._formatDate(inst, minDate);
1553
- }
1554
- if (maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined) {
1555
- inst.settings.maxDate = this._formatDate(inst, maxDate);
1556
- }
1557
- if ( "disabled" in settings ) {
1558
- if ( settings.disabled ) {
1559
- this._disableDatepicker(target);
1560
- } else {
1561
- this._enableDatepicker(target);
1562
- }
1563
- }
1564
- this._attachments($(target), inst);
1565
- this._autoSize(inst);
1566
- this._setDate(inst, date);
1567
- this._updateAlternate(inst);
1568
- this._updateDatepicker(inst);
1569
- }
1570
- },
1571
-
1572
- // change method deprecated
1573
- _changeDatepicker: function(target, name, value) {
1574
- this._optionDatepicker(target, name, value);
1575
- },
1576
-
1577
- /* Redraw the date picker attached to an input field or division.
1578
- * @param target element - the target input field or division or span
1579
- */
1580
- _refreshDatepicker: function(target) {
1581
- var inst = this._getInst(target);
1582
- if (inst) {
1583
- this._updateDatepicker(inst);
1584
- }
1585
- },
1586
-
1587
- /* Set the dates for a jQuery selection.
1588
- * @param target element - the target input field or division or span
1589
- * @param date Date - the new date
1590
- */
1591
- _setDateDatepicker: function(target, date) {
1592
- var inst = this._getInst(target);
1593
- if (inst) {
1594
- this._setDate(inst, date);
1595
- this._updateDatepicker(inst);
1596
- this._updateAlternate(inst);
1597
- }
1598
- },
1599
-
1600
- /* Get the date(s) for the first entry in a jQuery selection.
1601
- * @param target element - the target input field or division or span
1602
- * @param noDefault boolean - true if no default date is to be used
1603
- * @return Date - the current date
1604
- */
1605
- _getDateDatepicker: function(target, noDefault) {
1606
- var inst = this._getInst(target);
1607
- if (inst && !inst.inline) {
1608
- this._setDateFromField(inst, noDefault);
1609
- }
1610
- return (inst ? this._getDate(inst) : null);
1611
- },
1612
-
1613
- /* Handle keystrokes. */
1614
- _doKeyDown: function(event) {
1615
- var onSelect, dateStr, sel,
1616
- inst = $.datepicker._getInst(event.target),
1617
- handled = true,
1618
- isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
1619
-
1620
- inst._keyEvent = true;
1621
- if ($.datepicker._datepickerShowing) {
1622
- switch (event.keyCode) {
1623
- case 9: $.datepicker._hideDatepicker();
1624
- handled = false;
1625
- break; // hide on tab out
1626
- case 13: sel = $("td." + $.datepicker._dayOverClass + ":not(." +
1627
- $.datepicker._currentClass + ")", inst.dpDiv);
1628
- if (sel[0]) {
1629
- $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
1630
- }
1631
-
1632
- onSelect = $.datepicker._get(inst, "onSelect");
1633
- if (onSelect) {
1634
- dateStr = $.datepicker._formatDate(inst);
1635
-
1636
- // trigger custom callback
1637
- onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);
1638
- } else {
1639
- $.datepicker._hideDatepicker();
1640
- }
1641
-
1642
- return false; // don't submit the form
1643
- case 27: $.datepicker._hideDatepicker();
1644
- break; // hide on escape
1645
- case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
1646
- -$.datepicker._get(inst, "stepBigMonths") :
1647
- -$.datepicker._get(inst, "stepMonths")), "M");
1648
- break; // previous month/year on page up/+ ctrl
1649
- case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
1650
- +$.datepicker._get(inst, "stepBigMonths") :
1651
- +$.datepicker._get(inst, "stepMonths")), "M");
1652
- break; // next month/year on page down/+ ctrl
1653
- case 35: if (event.ctrlKey || event.metaKey) {
1654
- $.datepicker._clearDate(event.target);
1655
- }
1656
- handled = event.ctrlKey || event.metaKey;
1657
- break; // clear on ctrl or command +end
1658
- case 36: if (event.ctrlKey || event.metaKey) {
1659
- $.datepicker._gotoToday(event.target);
1660
- }
1661
- handled = event.ctrlKey || event.metaKey;
1662
- break; // current on ctrl or command +home
1663
- case 37: if (event.ctrlKey || event.metaKey) {
1664
- $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), "D");
1665
- }
1666
- handled = event.ctrlKey || event.metaKey;
1667
- // -1 day on ctrl or command +left
1668
- if (event.originalEvent.altKey) {
1669
- $.datepicker._adjustDate(event.target, (event.ctrlKey ?
1670
- -$.datepicker._get(inst, "stepBigMonths") :
1671
- -$.datepicker._get(inst, "stepMonths")), "M");
1672
- }
1673
- // next month/year on alt +left on Mac
1674
- break;
1675
- case 38: if (event.ctrlKey || event.metaKey) {
1676
- $.datepicker._adjustDate(event.target, -7, "D");
1677
- }
1678
- handled = event.ctrlKey || event.metaKey;
1679
- break; // -1 week on ctrl or command +up
1680
- case 39: if (event.ctrlKey || event.metaKey) {
1681
- $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), "D");
1682
- }
1683
- handled = event.ctrlKey || event.metaKey;
1684
- // +1 day on ctrl or command +right
1685
- if (event.originalEvent.altKey) {
1686
- $.datepicker._adjustDate(event.target, (event.ctrlKey ?
1687
- +$.datepicker._get(inst, "stepBigMonths") :
1688
- +$.datepicker._get(inst, "stepMonths")), "M");
1689
- }
1690
- // next month/year on alt +right
1691
- break;
1692
- case 40: if (event.ctrlKey || event.metaKey) {
1693
- $.datepicker._adjustDate(event.target, +7, "D");
1694
- }
1695
- handled = event.ctrlKey || event.metaKey;
1696
- break; // +1 week on ctrl or command +down
1697
- default: handled = false;
1698
- }
1699
- } else if (event.keyCode === 36 && event.ctrlKey) { // display the date picker on ctrl+home
1700
- $.datepicker._showDatepicker(this);
1701
- } else {
1702
- handled = false;
1703
- }
1704
-
1705
- if (handled) {
1706
- event.preventDefault();
1707
- event.stopPropagation();
1708
- }
1709
- },
1710
-
1711
- /* Filter entered characters - based on date format. */
1712
- _doKeyPress: function(event) {
1713
- var chars, chr,
1714
- inst = $.datepicker._getInst(event.target);
1715
-
1716
- if ($.datepicker._get(inst, "constrainInput")) {
1717
- chars = $.datepicker._possibleChars($.datepicker._get(inst, "dateFormat"));
1718
- chr = String.fromCharCode(event.charCode == null ? event.keyCode : event.charCode);
1719
- return event.ctrlKey || event.metaKey || (chr < " " || !chars || chars.indexOf(chr) > -1);
1720
- }
1721
- },
1722
-
1723
- /* Synchronise manual entry and field/alternate field. */
1724
- _doKeyUp: function(event) {
1725
- var date,
1726
- inst = $.datepicker._getInst(event.target);
1727
-
1728
- if (inst.input.val() !== inst.lastVal) {
1729
- try {
1730
- date = $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
1731
- (inst.input ? inst.input.val() : null),
1732
- $.datepicker._getFormatConfig(inst));
1733
-
1734
- if (date) { // only if valid
1735
- $.datepicker._setDateFromField(inst);
1736
- $.datepicker._updateAlternate(inst);
1737
- $.datepicker._updateDatepicker(inst);
1738
- }
1739
- }
1740
- catch (err) {
1741
- }
1742
- }
1743
- return true;
1744
- },
1745
-
1746
- /* Pop-up the date picker for a given input field.
1747
- * If false returned from beforeShow event handler do not show.
1748
- * @param input element - the input field attached to the date picker or
1749
- * event - if triggered by focus
1750
- */
1751
- _showDatepicker: function(input) {
1752
- input = input.target || input;
1753
- if (input.nodeName.toLowerCase() !== "input") { // find from button/image trigger
1754
- input = $("input", input.parentNode)[0];
1755
- }
1756
-
1757
- if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput === input) { // already here
1758
- return;
1759
- }
1760
-
1761
- var inst, beforeShow, beforeShowSettings, isFixed,
1762
- offset, showAnim, duration;
1763
-
1764
- inst = $.datepicker._getInst(input);
1765
- if ($.datepicker._curInst && $.datepicker._curInst !== inst) {
1766
- $.datepicker._curInst.dpDiv.stop(true, true);
1767
- if ( inst && $.datepicker._datepickerShowing ) {
1768
- $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] );
1769
- }
1770
- }
1771
-
1772
- beforeShow = $.datepicker._get(inst, "beforeShow");
1773
- beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};
1774
- if(beforeShowSettings === false){
1775
- return;
1776
- }
1777
- datepicker_extendRemove(inst.settings, beforeShowSettings);
1778
-
1779
- inst.lastVal = null;
1780
- $.datepicker._lastInput = input;
1781
- $.datepicker._setDateFromField(inst);
1782
-
1783
- if ($.datepicker._inDialog) { // hide cursor
1784
- input.value = "";
1785
- }
1786
- if (!$.datepicker._pos) { // position below input
1787
- $.datepicker._pos = $.datepicker._findPos(input);
1788
- $.datepicker._pos[1] += input.offsetHeight; // add the height
1789
- }
1790
-
1791
- isFixed = false;
1792
- $(input).parents().each(function() {
1793
- isFixed |= $(this).css("position") === "fixed";
1794
- return !isFixed;
1795
- });
1796
-
1797
- offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};
1798
- $.datepicker._pos = null;
1799
- //to avoid flashes on Firefox
1800
- inst.dpDiv.empty();
1801
- // determine sizing offscreen
1802
- inst.dpDiv.css({position: "absolute", display: "block", top: "-1000px"});
1803
- $.datepicker._updateDatepicker(inst);
1804
- // fix width for dynamic number of date pickers
1805
- // and adjust position before showing
1806
- offset = $.datepicker._checkOffset(inst, offset, isFixed);
1807
- inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?
1808
- "static" : (isFixed ? "fixed" : "absolute")), display: "none",
1809
- left: offset.left + "px", top: offset.top + "px"});
1810
-
1811
- if (!inst.inline) {
1812
- showAnim = $.datepicker._get(inst, "showAnim");
1813
- duration = $.datepicker._get(inst, "duration");
1814
- inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
1815
- $.datepicker._datepickerShowing = true;
1816
-
1817
- if ( $.effects && $.effects.effect[ showAnim ] ) {
1818
- inst.dpDiv.show(showAnim, $.datepicker._get(inst, "showOptions"), duration);
1819
- } else {
1820
- inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
1821
- }
1822
-
1823
- if ( $.datepicker._shouldFocusInput( inst ) ) {
1824
- inst.input.focus();
1825
- }
1826
-
1827
- $.datepicker._curInst = inst;
1828
- }
1829
- },
1830
-
1831
- /* Generate the date picker content. */
1832
- _updateDatepicker: function(inst) {
1833
- this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
1834
- datepicker_instActive = inst; // for delegate hover events
1835
- inst.dpDiv.empty().append(this._generateHTML(inst));
1836
- this._attachHandlers(inst);
1837
-
1838
- var origyearshtml,
1839
- numMonths = this._getNumberOfMonths(inst),
1840
- cols = numMonths[1],
1841
- width = 17,
1842
- activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );
1843
-
1844
- if ( activeCell.length > 0 ) {
1845
- datepicker_handleMouseover.apply( activeCell.get( 0 ) );
1846
- }
1847
-
1848
- inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
1849
- if (cols > 1) {
1850
- inst.dpDiv.addClass("ui-datepicker-multi-" + cols).css("width", (width * cols) + "em");
1851
- }
1852
- inst.dpDiv[(numMonths[0] !== 1 || numMonths[1] !== 1 ? "add" : "remove") +
1853
- "Class"]("ui-datepicker-multi");
1854
- inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
1855
- "Class"]("ui-datepicker-rtl");
1856
-
1857
- if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
1858
- inst.input.focus();
1859
- }
1860
-
1861
- // deffered render of the years select (to avoid flashes on Firefox)
1862
- if( inst.yearshtml ){
1863
- origyearshtml = inst.yearshtml;
1864
- setTimeout(function(){
1865
- //assure that inst.yearshtml didn't change.
1866
- if( origyearshtml === inst.yearshtml && inst.yearshtml ){
1867
- inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml);
1868
- }
1869
- origyearshtml = inst.yearshtml = null;
1870
- }, 0);
1871
- }
1872
- },
1873
-
1874
- // #6694 - don't focus the input if it's already focused
1875
- // this breaks the change event in IE
1876
- // Support: IE and jQuery <1.9
1877
- _shouldFocusInput: function( inst ) {
1878
- return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
1879
- },
1880
-
1881
- /* Check positioning to remain on screen. */
1882
- _checkOffset: function(inst, offset, isFixed) {
1883
- var dpWidth = inst.dpDiv.outerWidth(),
1884
- dpHeight = inst.dpDiv.outerHeight(),
1885
- inputWidth = inst.input ? inst.input.outerWidth() : 0,
1886
- inputHeight = inst.input ? inst.input.outerHeight() : 0,
1887
- viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft()),
1888
- viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());
1889
-
1890
- offset.left -= (this._get(inst, "isRTL") ? (dpWidth - inputWidth) : 0);
1891
- offset.left -= (isFixed && offset.left === inst.input.offset().left) ? $(document).scrollLeft() : 0;
1892
- offset.top -= (isFixed && offset.top === (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;
1893
-
1894
- // now check if datepicker is showing outside window viewport - move to a better place if so.
1895
- offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?
1896
- Math.abs(offset.left + dpWidth - viewWidth) : 0);
1897
- offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?
1898
- Math.abs(dpHeight + inputHeight) : 0);
1899
-
1900
- return offset;
1901
- },
1902
-
1903
- /* Find an object's position on the screen. */
1904
- _findPos: function(obj) {
1905
- var position,
1906
- inst = this._getInst(obj),
1907
- isRTL = this._get(inst, "isRTL");
1908
-
1909
- while (obj && (obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden(obj))) {
1910
- obj = obj[isRTL ? "previousSibling" : "nextSibling"];
1911
- }
1912
-
1913
- position = $(obj).offset();
1914
- return [position.left, position.top];
1915
- },
1916
-
1917
- /* Hide the date picker from view.
1918
- * @param input element - the input field attached to the date picker
1919
- */
1920
- _hideDatepicker: function(input) {
1921
- var showAnim, duration, postProcess, onClose,
1922
- inst = this._curInst;
1923
-
1924
- if (!inst || (input && inst !== $.data(input, "datepicker"))) {
1925
- return;
1926
- }
1927
-
1928
- if (this._datepickerShowing) {
1929
- showAnim = this._get(inst, "showAnim");
1930
- duration = this._get(inst, "duration");
1931
- postProcess = function() {
1932
- $.datepicker._tidyDialog(inst);
1933
- };
1934
-
1935
- // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
1936
- if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
1937
- inst.dpDiv.hide(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess);
1938
- } else {
1939
- inst.dpDiv[(showAnim === "slideDown" ? "slideUp" :
1940
- (showAnim === "fadeIn" ? "fadeOut" : "hide"))]((showAnim ? duration : null), postProcess);
1941
- }
1942
-
1943
- if (!showAnim) {
1944
- postProcess();
1945
- }
1946
- this._datepickerShowing = false;
1947
-
1948
- onClose = this._get(inst, "onClose");
1949
- if (onClose) {
1950
- onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ""), inst]);
1951
- }
1952
-
1953
- this._lastInput = null;
1954
- if (this._inDialog) {
1955
- this._dialogInput.css({ position: "absolute", left: "0", top: "-100px" });
1956
- if ($.blockUI) {
1957
- $.unblockUI();
1958
- $("body").append(this.dpDiv);
1959
- }
1960
- }
1961
- this._inDialog = false;
1962
- }
1963
- },
1964
-
1965
- /* Tidy up after a dialog display. */
1966
- _tidyDialog: function(inst) {
1967
- inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar");
1968
- },
1969
-
1970
- /* Close date picker if clicked elsewhere. */
1971
- _checkExternalClick: function(event) {
1972
- if (!$.datepicker._curInst) {
1973
- return;
1974
- }
1975
-
1976
- var $target = $(event.target),
1977
- inst = $.datepicker._getInst($target[0]);
1978
-
1979
- if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
1980
- $target.parents("#" + $.datepicker._mainDivId).length === 0 &&
1981
- !$target.hasClass($.datepicker.markerClassName) &&
1982
- !$target.closest("." + $.datepicker._triggerClass).length &&
1983
- $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
1984
- ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst !== inst ) ) {
1985
- $.datepicker._hideDatepicker();
1986
- }
1987
- },
1988
-
1989
- /* Adjust one of the date sub-fields. */
1990
- _adjustDate: function(id, offset, period) {
1991
- var target = $(id),
1992
- inst = this._getInst(target[0]);
1993
-
1994
- if (this._isDisabledDatepicker(target[0])) {
1995
- return;
1996
- }
1997
- this._adjustInstDate(inst, offset +
1998
- (period === "M" ? this._get(inst, "showCurrentAtPos") : 0), // undo positioning
1999
- period);
2000
- this._updateDatepicker(inst);
2001
- },
2002
-
2003
- /* Action for current link. */
2004
- _gotoToday: function(id) {
2005
- var date,
2006
- target = $(id),
2007
- inst = this._getInst(target[0]);
2008
-
2009
- if (this._get(inst, "gotoCurrent") && inst.currentDay) {
2010
- inst.selectedDay = inst.currentDay;
2011
- inst.drawMonth = inst.selectedMonth = inst.currentMonth;
2012
- inst.drawYear = inst.selectedYear = inst.currentYear;
2013
- } else {
2014
- date = new Date();
2015
- inst.selectedDay = date.getDate();
2016
- inst.drawMonth = inst.selectedMonth = date.getMonth();
2017
- inst.drawYear = inst.selectedYear = date.getFullYear();
2018
- }
2019
- this._notifyChange(inst);
2020
- this._adjustDate(target);
2021
- },
2022
-
2023
- /* Action for selecting a new month/year. */
2024
- _selectMonthYear: function(id, select, period) {
2025
- var target = $(id),
2026
- inst = this._getInst(target[0]);
2027
-
2028
- inst["selected" + (period === "M" ? "Month" : "Year")] =
2029
- inst["draw" + (period === "M" ? "Month" : "Year")] =
2030
- parseInt(select.options[select.selectedIndex].value,10);
2031
-
2032
- this._notifyChange(inst);
2033
- this._adjustDate(target);
2034
- },
2035
-
2036
- /* Action for selecting a day. */
2037
- _selectDay: function(id, month, year, td) {
2038
- var inst,
2039
- target = $(id);
2040
-
2041
- if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {
2042
- return;
2043
- }
2044
-
2045
- inst = this._getInst(target[0]);
2046
- inst.selectedDay = inst.currentDay = $("a", td).html();
2047
- inst.selectedMonth = inst.currentMonth = month;
2048
- inst.selectedYear = inst.currentYear = year;
2049
- this._selectDate(id, this._formatDate(inst,
2050
- inst.currentDay, inst.currentMonth, inst.currentYear));
2051
- },
2052
-
2053
- /* Erase the input field and hide the date picker. */
2054
- _clearDate: function(id) {
2055
- var target = $(id);
2056
- this._selectDate(target, "");
2057
- },
2058
-
2059
- /* Update the input field with the selected date. */
2060
- _selectDate: function(id, dateStr) {
2061
- var onSelect,
2062
- target = $(id),
2063
- inst = this._getInst(target[0]);
2064
-
2065
- dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
2066
- if (inst.input) {
2067
- inst.input.val(dateStr);
2068
- }
2069
- this._updateAlternate(inst);
2070
-
2071
- onSelect = this._get(inst, "onSelect");
2072
- if (onSelect) {
2073
- onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback
2074
- } else if (inst.input) {
2075
- inst.input.trigger("change"); // fire the change event
2076
- }
2077
-
2078
- if (inst.inline){
2079
- this._updateDatepicker(inst);
2080
- } else {
2081
- this._hideDatepicker();
2082
- this._lastInput = inst.input[0];
2083
- if (typeof(inst.input[0]) !== "object") {
2084
- inst.input.focus(); // restore focus
2085
- }
2086
- this._lastInput = null;
2087
- }
2088
- },
2089
-
2090
- /* Update any alternate field to synchronise with the main field. */
2091
- _updateAlternate: function(inst) {
2092
- var altFormat, date, dateStr,
2093
- altField = this._get(inst, "altField");
2094
-
2095
- if (altField) { // update alternate field too
2096
- altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat");
2097
- date = this._getDate(inst);
2098
- dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));
2099
- $(altField).each(function() { $(this).val(dateStr); });
2100
- }
2101
- },
2102
-
2103
- /* Set as beforeShowDay function to prevent selection of weekends.
2104
- * @param date Date - the date to customise
2105
- * @return [boolean, string] - is this date selectable?, what is its CSS class?
2106
- */
2107
- noWeekends: function(date) {
2108
- var day = date.getDay();
2109
- return [(day > 0 && day < 6), ""];
2110
- },
2111
-
2112
- /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
2113
- * @param date Date - the date to get the week for
2114
- * @return number - the number of the week within the year that contains this date
2115
- */
2116
- iso8601Week: function(date) {
2117
- var time,
2118
- checkDate = new Date(date.getTime());
2119
-
2120
- // Find Thursday of this week starting on Monday
2121
- checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
2122
-
2123
- time = checkDate.getTime();
2124
- checkDate.setMonth(0); // Compare with Jan 1
2125
- checkDate.setDate(1);
2126
- return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
2127
- },
2128
-
2129
- /* Parse a string value into a date object.
2130
- * See formatDate below for the possible formats.
2131
- *
2132
- * @param format string - the expected format of the date
2133
- * @param value string - the date in the above format
2134
- * @param settings Object - attributes include:
2135
- * shortYearCutoff number - the cutoff year for determining the century (optional)
2136
- * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
2137
- * dayNames string[7] - names of the days from Sunday (optional)
2138
- * monthNamesShort string[12] - abbreviated names of the months (optional)
2139
- * monthNames string[12] - names of the months (optional)
2140
- * @return Date - the extracted date value or null if value is blank
2141
- */
2142
- parseDate: function (format, value, settings) {
2143
- if (format == null || value == null) {
2144
- throw "Invalid arguments";
2145
- }
2146
-
2147
- value = (typeof value === "object" ? value.toString() : value + "");
2148
- if (value === "") {
2149
- return null;
2150
- }
2151
-
2152
- var iFormat, dim, extra,
2153
- iValue = 0,
2154
- shortYearCutoffTemp = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff,
2155
- shortYearCutoff = (typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp :
2156
- new Date().getFullYear() % 100 + parseInt(shortYearCutoffTemp, 10)),
2157
- dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
2158
- dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
2159
- monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
2160
- monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
2161
- year = -1,
2162
- month = -1,
2163
- day = -1,
2164
- doy = -1,
2165
- literal = false,
2166
- date,
2167
- // Check whether a format character is doubled
2168
- lookAhead = function(match) {
2169
- var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
2170
- if (matches) {
2171
- iFormat++;
2172
- }
2173
- return matches;
2174
- },
2175
- // Extract a number from the string value
2176
- getNumber = function(match) {
2177
- var isDoubled = lookAhead(match),
2178
- size = (match === "@" ? 14 : (match === "!" ? 20 :
2179
- (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
2180
- minSize = (match === "y" ? size : 1),
2181
- digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
2182
- num = value.substring(iValue).match(digits);
2183
- if (!num) {
2184
- throw "Missing number at position " + iValue;
2185
- }
2186
- iValue += num[0].length;
2187
- return parseInt(num[0], 10);
2188
- },
2189
- // Extract a name from the string value and convert to an index
2190
- getName = function(match, shortNames, longNames) {
2191
- var index = -1,
2192
- names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) {
2193
- return [ [k, v] ];
2194
- }).sort(function (a, b) {
2195
- return -(a[1].length - b[1].length);
2196
- });
2197
-
2198
- $.each(names, function (i, pair) {
2199
- var name = pair[1];
2200
- if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
2201
- index = pair[0];
2202
- iValue += name.length;
2203
- return false;
2204
- }
2205
- });
2206
- if (index !== -1) {
2207
- return index + 1;
2208
- } else {
2209
- throw "Unknown name at position " + iValue;
2210
- }
2211
- },
2212
- // Confirm that a literal character matches the string value
2213
- checkLiteral = function() {
2214
- if (value.charAt(iValue) !== format.charAt(iFormat)) {
2215
- throw "Unexpected literal at position " + iValue;
2216
- }
2217
- iValue++;
2218
- };
2219
-
2220
- for (iFormat = 0; iFormat < format.length; iFormat++) {
2221
- if (literal) {
2222
- if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
2223
- literal = false;
2224
- } else {
2225
- checkLiteral();
2226
- }
2227
- } else {
2228
- switch (format.charAt(iFormat)) {
2229
- case "d":
2230
- day = getNumber("d");
2231
- break;
2232
- case "D":
2233
- getName("D", dayNamesShort, dayNames);
2234
- break;
2235
- case "o":
2236
- doy = getNumber("o");
2237
- break;
2238
- case "m":
2239
- month = getNumber("m");
2240
- break;
2241
- case "M":
2242
- month = getName("M", monthNamesShort, monthNames);
2243
- break;
2244
- case "y":
2245
- year = getNumber("y");
2246
- break;
2247
- case "@":
2248
- date = new Date(getNumber("@"));
2249
- year = date.getFullYear();
2250
- month = date.getMonth() + 1;
2251
- day = date.getDate();
2252
- break;
2253
- case "!":
2254
- date = new Date((getNumber("!") - this._ticksTo1970) / 10000);
2255
- year = date.getFullYear();
2256
- month = date.getMonth() + 1;
2257
- day = date.getDate();
2258
- break;
2259
- case "'":
2260
- if (lookAhead("'")){
2261
- checkLiteral();
2262
- } else {
2263
- literal = true;
2264
- }
2265
- break;
2266
- default:
2267
- checkLiteral();
2268
- }
2269
- }
2270
- }
2271
-
2272
- if (iValue < value.length){
2273
- extra = value.substr(iValue);
2274
- if (!/^\s+/.test(extra)) {
2275
- throw "Extra/unparsed characters found in date: " + extra;
2276
- }
2277
- }
2278
-
2279
- if (year === -1) {
2280
- year = new Date().getFullYear();
2281
- } else if (year < 100) {
2282
- year += new Date().getFullYear() - new Date().getFullYear() % 100 +
2283
- (year <= shortYearCutoff ? 0 : -100);
2284
- }
2285
-
2286
- if (doy > -1) {
2287
- month = 1;
2288
- day = doy;
2289
- do {
2290
- dim = this._getDaysInMonth(year, month - 1);
2291
- if (day <= dim) {
2292
- break;
2293
- }
2294
- month++;
2295
- day -= dim;
2296
- } while (true);
2297
- }
2298
-
2299
- date = this._daylightSavingAdjust(new Date(year, month - 1, day));
2300
- if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
2301
- throw "Invalid date"; // E.g. 31/02/00
2302
- }
2303
- return date;
2304
- },
2305
-
2306
- /* Standard date formats. */
2307
- ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601)
2308
- COOKIE: "D, dd M yy",
2309
- ISO_8601: "yy-mm-dd",
2310
- RFC_822: "D, d M y",
2311
- RFC_850: "DD, dd-M-y",
2312
- RFC_1036: "D, d M y",
2313
- RFC_1123: "D, d M yy",
2314
- RFC_2822: "D, d M yy",
2315
- RSS: "D, d M y", // RFC 822
2316
- TICKS: "!",
2317
- TIMESTAMP: "@",
2318
- W3C: "yy-mm-dd", // ISO 8601
2319
-
2320
- _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +
2321
- Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),
2322
-
2323
- /* Format a date object into a string value.
2324
- * The format can be combinations of the following:
2325
- * d - day of month (no leading zero)
2326
- * dd - day of month (two digit)
2327
- * o - day of year (no leading zeros)
2328
- * oo - day of year (three digit)
2329
- * D - day name short
2330
- * DD - day name long
2331
- * m - month of year (no leading zero)
2332
- * mm - month of year (two digit)
2333
- * M - month name short
2334
- * MM - month name long
2335
- * y - year (two digit)
2336
- * yy - year (four digit)
2337
- * @ - Unix timestamp (ms since 01/01/1970)
2338
- * ! - Windows ticks (100ns since 01/01/0001)
2339
- * "..." - literal text
2340
- * '' - single quote
2341
- *
2342
- * @param format string - the desired format of the date
2343
- * @param date Date - the date value to format
2344
- * @param settings Object - attributes include:
2345
- * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
2346
- * dayNames string[7] - names of the days from Sunday (optional)
2347
- * monthNamesShort string[12] - abbreviated names of the months (optional)
2348
- * monthNames string[12] - names of the months (optional)
2349
- * @return string - the date in the above format
2350
- */
2351
- formatDate: function (format, date, settings) {
2352
- if (!date) {
2353
- return "";
2354
- }
2355
-
2356
- var iFormat,
2357
- dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
2358
- dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
2359
- monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
2360
- monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
2361
- // Check whether a format character is doubled
2362
- lookAhead = function(match) {
2363
- var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
2364
- if (matches) {
2365
- iFormat++;
2366
- }
2367
- return matches;
2368
- },
2369
- // Format a number, with leading zero if necessary
2370
- formatNumber = function(match, value, len) {
2371
- var num = "" + value;
2372
- if (lookAhead(match)) {
2373
- while (num.length < len) {
2374
- num = "0" + num;
2375
- }
2376
- }
2377
- return num;
2378
- },
2379
- // Format a name, short or long as requested
2380
- formatName = function(match, value, shortNames, longNames) {
2381
- return (lookAhead(match) ? longNames[value] : shortNames[value]);
2382
- },
2383
- output = "",
2384
- literal = false;
2385
-
2386
- if (date) {
2387
- for (iFormat = 0; iFormat < format.length; iFormat++) {
2388
- if (literal) {
2389
- if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
2390
- literal = false;
2391
- } else {
2392
- output += format.charAt(iFormat);
2393
- }
2394
- } else {
2395
- switch (format.charAt(iFormat)) {
2396
- case "d":
2397
- output += formatNumber("d", date.getDate(), 2);
2398
- break;
2399
- case "D":
2400
- output += formatName("D", date.getDay(), dayNamesShort, dayNames);
2401
- break;
2402
- case "o":
2403
- output += formatNumber("o",
2404
- Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
2405
- break;
2406
- case "m":
2407
- output += formatNumber("m", date.getMonth() + 1, 2);
2408
- break;
2409
- case "M":
2410
- output += formatName("M", date.getMonth(), monthNamesShort, monthNames);
2411
- break;
2412
- case "y":
2413
- output += (lookAhead("y") ? date.getFullYear() :
2414
- (date.getYear() % 100 < 10 ? "0" : "") + date.getYear() % 100);
2415
- break;
2416
- case "@":
2417
- output += date.getTime();
2418
- break;
2419
- case "!":
2420
- output += date.getTime() * 10000 + this._ticksTo1970;
2421
- break;
2422
- case "'":
2423
- if (lookAhead("'")) {
2424
- output += "'";
2425
- } else {
2426
- literal = true;
2427
- }
2428
- break;
2429
- default:
2430
- output += format.charAt(iFormat);
2431
- }
2432
- }
2433
- }
2434
- }
2435
- return output;
2436
- },
2437
-
2438
- /* Extract all possible characters from the date format. */
2439
- _possibleChars: function (format) {
2440
- var iFormat,
2441
- chars = "",
2442
- literal = false,
2443
- // Check whether a format character is doubled
2444
- lookAhead = function(match) {
2445
- var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
2446
- if (matches) {
2447
- iFormat++;
2448
- }
2449
- return matches;
2450
- };
2451
-
2452
- for (iFormat = 0; iFormat < format.length; iFormat++) {
2453
- if (literal) {
2454
- if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
2455
- literal = false;
2456
- } else {
2457
- chars += format.charAt(iFormat);
2458
- }
2459
- } else {
2460
- switch (format.charAt(iFormat)) {
2461
- case "d": case "m": case "y": case "@":
2462
- chars += "0123456789";
2463
- break;
2464
- case "D": case "M":
2465
- return null; // Accept anything
2466
- case "'":
2467
- if (lookAhead("'")) {
2468
- chars += "'";
2469
- } else {
2470
- literal = true;
2471
- }
2472
- break;
2473
- default:
2474
- chars += format.charAt(iFormat);
2475
- }
2476
- }
2477
- }
2478
- return chars;
2479
- },
2480
-
2481
- /* Get a setting value, defaulting if necessary. */
2482
- _get: function(inst, name) {
2483
- return inst.settings[name] !== undefined ?
2484
- inst.settings[name] : this._defaults[name];
2485
- },
2486
-
2487
- /* Parse existing date and initialise date picker. */
2488
- _setDateFromField: function(inst, noDefault) {
2489
- if (inst.input.val() === inst.lastVal) {
2490
- return;
2491
- }
2492
-
2493
- var dateFormat = this._get(inst, "dateFormat"),
2494
- dates = inst.lastVal = inst.input ? inst.input.val() : null,
2495
- defaultDate = this._getDefaultDate(inst),
2496
- date = defaultDate,
2497
- settings = this._getFormatConfig(inst);
2498
-
2499
- try {
2500
- date = this.parseDate(dateFormat, dates, settings) || defaultDate;
2501
- } catch (event) {
2502
- dates = (noDefault ? "" : dates);
2503
- }
2504
- inst.selectedDay = date.getDate();
2505
- inst.drawMonth = inst.selectedMonth = date.getMonth();
2506
- inst.drawYear = inst.selectedYear = date.getFullYear();
2507
- inst.currentDay = (dates ? date.getDate() : 0);
2508
- inst.currentMonth = (dates ? date.getMonth() : 0);
2509
- inst.currentYear = (dates ? date.getFullYear() : 0);
2510
- this._adjustInstDate(inst);
2511
- },
2512
-
2513
- /* Retrieve the default date shown on opening. */
2514
- _getDefaultDate: function(inst) {
2515
- return this._restrictMinMax(inst,
2516
- this._determineDate(inst, this._get(inst, "defaultDate"), new Date()));
2517
- },
2518
-
2519
- /* A date may be specified as an exact value or a relative one. */
2520
- _determineDate: function(inst, date, defaultDate) {
2521
- var offsetNumeric = function(offset) {
2522
- var date = new Date();
2523
- date.setDate(date.getDate() + offset);
2524
- return date;
2525
- },
2526
- offsetString = function(offset) {
2527
- try {
2528
- return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
2529
- offset, $.datepicker._getFormatConfig(inst));
2530
- }
2531
- catch (e) {
2532
- // Ignore
2533
- }
2534
-
2535
- var date = (offset.toLowerCase().match(/^c/) ?
2536
- $.datepicker._getDate(inst) : null) || new Date(),
2537
- year = date.getFullYear(),
2538
- month = date.getMonth(),
2539
- day = date.getDate(),
2540
- pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
2541
- matches = pattern.exec(offset);
2542
-
2543
- while (matches) {
2544
- switch (matches[2] || "d") {
2545
- case "d" : case "D" :
2546
- day += parseInt(matches[1],10); break;
2547
- case "w" : case "W" :
2548
- day += parseInt(matches[1],10) * 7; break;
2549
- case "m" : case "M" :
2550
- month += parseInt(matches[1],10);
2551
- day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
2552
- break;
2553
- case "y": case "Y" :
2554
- year += parseInt(matches[1],10);
2555
- day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
2556
- break;
2557
- }
2558
- matches = pattern.exec(offset);
2559
- }
2560
- return new Date(year, month, day);
2561
- },
2562
- newDate = (date == null || date === "" ? defaultDate : (typeof date === "string" ? offsetString(date) :
2563
- (typeof date === "number" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime()))));
2564
-
2565
- newDate = (newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate);
2566
- if (newDate) {
2567
- newDate.setHours(0);
2568
- newDate.setMinutes(0);
2569
- newDate.setSeconds(0);
2570
- newDate.setMilliseconds(0);
2571
- }
2572
- return this._daylightSavingAdjust(newDate);
2573
- },
2574
-
2575
- /* Handle switch to/from daylight saving.
2576
- * Hours may be non-zero on daylight saving cut-over:
2577
- * > 12 when midnight changeover, but then cannot generate
2578
- * midnight datetime, so jump to 1AM, otherwise reset.
2579
- * @param date (Date) the date to check
2580
- * @return (Date) the corrected date
2581
- */
2582
- _daylightSavingAdjust: function(date) {
2583
- if (!date) {
2584
- return null;
2585
- }
2586
- date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
2587
- return date;
2588
- },
2589
-
2590
- /* Set the date(s) directly. */
2591
- _setDate: function(inst, date, noChange) {
2592
- var clear = !date,
2593
- origMonth = inst.selectedMonth,
2594
- origYear = inst.selectedYear,
2595
- newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));
2596
-
2597
- inst.selectedDay = inst.currentDay = newDate.getDate();
2598
- inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
2599
- inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
2600
- if ((origMonth !== inst.selectedMonth || origYear !== inst.selectedYear) && !noChange) {
2601
- this._notifyChange(inst);
2602
- }
2603
- this._adjustInstDate(inst);
2604
- if (inst.input) {
2605
- inst.input.val(clear ? "" : this._formatDate(inst));
2606
- }
2607
- },
2608
-
2609
- /* Retrieve the date(s) directly. */
2610
- _getDate: function(inst) {
2611
- var startDate = (!inst.currentYear || (inst.input && inst.input.val() === "") ? null :
2612
- this._daylightSavingAdjust(new Date(
2613
- inst.currentYear, inst.currentMonth, inst.currentDay)));
2614
- return startDate;
2615
- },
2616
-
2617
- /* Attach the onxxx handlers. These are declared statically so
2618
- * they work with static code transformers like Caja.
2619
- */
2620
- _attachHandlers: function(inst) {
2621
- var stepMonths = this._get(inst, "stepMonths"),
2622
- id = "#" + inst.id.replace( /\\\\/g, "\\" );
2623
- inst.dpDiv.find("[data-handler]").map(function () {
2624
- var handler = {
2625
- prev: function () {
2626
- $.datepicker._adjustDate(id, -stepMonths, "M");
2627
- },
2628
- next: function () {
2629
- $.datepicker._adjustDate(id, +stepMonths, "M");
2630
- },
2631
- hide: function () {
2632
- $.datepicker._hideDatepicker();
2633
- },
2634
- today: function () {
2635
- $.datepicker._gotoToday(id);
2636
- },
2637
- selectDay: function () {
2638
- $.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this);
2639
- return false;
2640
- },
2641
- selectMonth: function () {
2642
- $.datepicker._selectMonthYear(id, this, "M");
2643
- return false;
2644
- },
2645
- selectYear: function () {
2646
- $.datepicker._selectMonthYear(id, this, "Y");
2647
- return false;
2648
- }
2649
- };
2650
- $(this).bind(this.getAttribute("data-event"), handler[this.getAttribute("data-handler")]);
2651
- });
2652
- },
2653
-
2654
- /* Generate the HTML for the current state of the date picker. */
2655
- _generateHTML: function(inst) {
2656
- var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
2657
- controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
2658
- monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
2659
- selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
2660
- cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
2661
- printDate, dRow, tbody, daySettings, otherMonth, unselectable,
2662
- tempDate = new Date(),
2663
- today = this._daylightSavingAdjust(
2664
- new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate())), // clear time
2665
- isRTL = this._get(inst, "isRTL"),
2666
- showButtonPanel = this._get(inst, "showButtonPanel"),
2667
- hideIfNoPrevNext = this._get(inst, "hideIfNoPrevNext"),
2668
- navigationAsDateFormat = this._get(inst, "navigationAsDateFormat"),
2669
- numMonths = this._getNumberOfMonths(inst),
2670
- showCurrentAtPos = this._get(inst, "showCurrentAtPos"),
2671
- stepMonths = this._get(inst, "stepMonths"),
2672
- isMultiMonth = (numMonths[0] !== 1 || numMonths[1] !== 1),
2673
- currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :
2674
- new Date(inst.currentYear, inst.currentMonth, inst.currentDay))),
2675
- minDate = this._getMinMaxDate(inst, "min"),
2676
- maxDate = this._getMinMaxDate(inst, "max"),
2677
- drawMonth = inst.drawMonth - showCurrentAtPos,
2678
- drawYear = inst.drawYear;
2679
-
2680
- if (drawMonth < 0) {
2681
- drawMonth += 12;
2682
- drawYear--;
2683
- }
2684
- if (maxDate) {
2685
- maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),
2686
- maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));
2687
- maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
2688
- while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {
2689
- drawMonth--;
2690
- if (drawMonth < 0) {
2691
- drawMonth = 11;
2692
- drawYear--;
2693
- }
2694
- }
2695
- }
2696
- inst.drawMonth = drawMonth;
2697
- inst.drawYear = drawYear;
2698
-
2699
- prevText = this._get(inst, "prevText");
2700
- prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,
2701
- this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
2702
- this._getFormatConfig(inst)));
2703
-
2704
- prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
2705
- "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
2706
- " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>" :
2707
- (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+ prevText +"'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>"));
2708
-
2709
- nextText = this._get(inst, "nextText");
2710
- nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,
2711
- this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),
2712
- this._getFormatConfig(inst)));
2713
-
2714
- next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
2715
- "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
2716
- " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>" :
2717
- (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+ nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>"));
2718
-
2719
- currentText = this._get(inst, "currentText");
2720
- gotoDate = (this._get(inst, "gotoCurrent") && inst.currentDay ? currentDate : today);
2721
- currentText = (!navigationAsDateFormat ? currentText :
2722
- this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
2723
-
2724
- controls = (!inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +
2725
- this._get(inst, "closeText") + "</button>" : "");
2726
-
2727
- buttonPanel = (showButtonPanel) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + (isRTL ? controls : "") +
2728
- (this._isInRange(inst, gotoDate) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +
2729
- ">" + currentText + "</button>" : "") + (isRTL ? "" : controls) + "</div>" : "";
2730
-
2731
- firstDay = parseInt(this._get(inst, "firstDay"),10);
2732
- firstDay = (isNaN(firstDay) ? 0 : firstDay);
2733
-
2734
- showWeek = this._get(inst, "showWeek");
2735
- dayNames = this._get(inst, "dayNames");
2736
- dayNamesMin = this._get(inst, "dayNamesMin");
2737
- monthNames = this._get(inst, "monthNames");
2738
- monthNamesShort = this._get(inst, "monthNamesShort");
2739
- beforeShowDay = this._get(inst, "beforeShowDay");
2740
- showOtherMonths = this._get(inst, "showOtherMonths");
2741
- selectOtherMonths = this._get(inst, "selectOtherMonths");
2742
- defaultDate = this._getDefaultDate(inst);
2743
- html = "";
2744
- dow;
2745
- for (row = 0; row < numMonths[0]; row++) {
2746
- group = "";
2747
- this.maxRows = 4;
2748
- for (col = 0; col < numMonths[1]; col++) {
2749
- selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
2750
- cornerClass = " ui-corner-all";
2751
- calender = "";
2752
- if (isMultiMonth) {
2753
- calender += "<div class='ui-datepicker-group";
2754
- if (numMonths[1] > 1) {
2755
- switch (col) {
2756
- case 0: calender += " ui-datepicker-group-first";
2757
- cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break;
2758
- case numMonths[1]-1: calender += " ui-datepicker-group-last";
2759
- cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break;
2760
- default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
2761
- }
2762
- }
2763
- calender += "'>";
2764
- }
2765
- calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
2766
- (/all|left/.test(cornerClass) && row === 0 ? (isRTL ? next : prev) : "") +
2767
- (/all|right/.test(cornerClass) && row === 0 ? (isRTL ? prev : next) : "") +
2768
- this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
2769
- row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers
2770
- "</div><table class='ui-datepicker-calendar'><thead>" +
2771
- "<tr>";
2772
- thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : "");
2773
- for (dow = 0; dow < 7; dow++) { // days of the week
2774
- day = (dow + firstDay) % 7;
2775
- thead += "<th scope='col'" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
2776
- "<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>";
2777
- }
2778
- calender += thead + "</tr></thead><tbody>";
2779
- daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
2780
- if (drawYear === inst.selectedYear && drawMonth === inst.selectedMonth) {
2781
- inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
2782
- }
2783
- leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
2784
- curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate
2785
- numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043)
2786
- this.maxRows = numRows;
2787
- printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
2788
- for (dRow = 0; dRow < numRows; dRow++) { // create date picker rows
2789
- calender += "<tr>";
2790
- tbody = (!showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
2791
- this._get(inst, "calculateWeek")(printDate) + "</td>");
2792
- for (dow = 0; dow < 7; dow++) { // create date picker days
2793
- daySettings = (beforeShowDay ?
2794
- beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, ""]);
2795
- otherMonth = (printDate.getMonth() !== drawMonth);
2796
- unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||
2797
- (minDate && printDate < minDate) || (maxDate && printDate > maxDate);
2798
- tbody += "<td class='" +
2799
- ((dow + firstDay + 6) % 7 >= 5 ? " ui-datepicker-week-end" : "") + // highlight weekends
2800
- (otherMonth ? " ui-datepicker-other-month" : "") + // highlight days from other months
2801
- ((printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent) || // user pressed key
2802
- (defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime()) ?
2803
- // or defaultDate is current printedDate and defaultDate is selectedDate
2804
- " " + this._dayOverClass : "") + // highlight selected day
2805
- (unselectable ? " " + this._unselectableClass + " ui-state-disabled": "") + // highlight unselectable days
2806
- (otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates
2807
- (printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day
2808
- (printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different)
2809
- ((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "&#39;") + "'" : "") + // cell title
2810
- (unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions
2811
- (otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months
2812
- (unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
2813
- (printDate.getTime() === today.getTime() ? " ui-state-highlight" : "") +
2814
- (printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "") + // highlight selected day
2815
- (otherMonth ? " ui-priority-secondary" : "") + // distinguish dates from other months
2816
- "' href='#'>" + printDate.getDate() + "</a>")) + "</td>"; // display selectable date
2817
- printDate.setDate(printDate.getDate() + 1);
2818
- printDate = this._daylightSavingAdjust(printDate);
2819
- }
2820
- calender += tbody + "</tr>";
2821
- }
2822
- drawMonth++;
2823
- if (drawMonth > 11) {
2824
- drawMonth = 0;
2825
- drawYear++;
2826
- }
2827
- calender += "</tbody></table>" + (isMultiMonth ? "</div>" +
2828
- ((numMonths[0] > 0 && col === numMonths[1]-1) ? "<div class='ui-datepicker-row-break'></div>" : "") : "");
2829
- group += calender;
2830
- }
2831
- html += group;
2832
- }
2833
- html += buttonPanel;
2834
- inst._keyEvent = false;
2835
- return html;
2836
- },
2837
-
2838
- /* Generate the month and year header. */
2839
- _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
2840
- secondary, monthNames, monthNamesShort) {
2841
-
2842
- var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
2843
- changeMonth = this._get(inst, "changeMonth"),
2844
- changeYear = this._get(inst, "changeYear"),
2845
- showMonthAfterYear = this._get(inst, "showMonthAfterYear"),
2846
- html = "<div class='ui-datepicker-title'>",
2847
- monthHtml = "";
2848
-
2849
- // month selection
2850
- if (secondary || !changeMonth) {
2851
- monthHtml += "<span class='ui-datepicker-month'>" + monthNames[drawMonth] + "</span>";
2852
- } else {
2853
- inMinYear = (minDate && minDate.getFullYear() === drawYear);
2854
- inMaxYear = (maxDate && maxDate.getFullYear() === drawYear);
2855
- monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";
2856
- for ( month = 0; month < 12; month++) {
2857
- if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) {
2858
- monthHtml += "<option value='" + month + "'" +
2859
- (month === drawMonth ? " selected='selected'" : "") +
2860
- ">" + monthNamesShort[month] + "</option>";
2861
- }
2862
- }
2863
- monthHtml += "</select>";
2864
- }
2865
-
2866
- if (!showMonthAfterYear) {
2867
- html += monthHtml + (secondary || !(changeMonth && changeYear) ? "&#xa0;" : "");
2868
- }
2869
-
2870
- // year selection
2871
- if ( !inst.yearshtml ) {
2872
- inst.yearshtml = "";
2873
- if (secondary || !changeYear) {
2874
- html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
2875
- } else {
2876
- // determine range of years to display
2877
- years = this._get(inst, "yearRange").split(":");
2878
- thisYear = new Date().getFullYear();
2879
- determineYear = function(value) {
2880
- var year = (value.match(/c[+\-].*/) ? drawYear + parseInt(value.substring(1), 10) :
2881
- (value.match(/[+\-].*/) ? thisYear + parseInt(value, 10) :
2882
- parseInt(value, 10)));
2883
- return (isNaN(year) ? thisYear : year);
2884
- };
2885
- year = determineYear(years[0]);
2886
- endYear = Math.max(year, determineYear(years[1] || ""));
2887
- year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
2888
- endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
2889
- inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";
2890
- for (; year <= endYear; year++) {
2891
- inst.yearshtml += "<option value='" + year + "'" +
2892
- (year === drawYear ? " selected='selected'" : "") +
2893
- ">" + year + "</option>";
2894
- }
2895
- inst.yearshtml += "</select>";
2896
-
2897
- html += inst.yearshtml;
2898
- inst.yearshtml = null;
2899
- }
2900
- }
2901
-
2902
- html += this._get(inst, "yearSuffix");
2903
- if (showMonthAfterYear) {
2904
- html += (secondary || !(changeMonth && changeYear) ? "&#xa0;" : "") + monthHtml;
2905
- }
2906
- html += "</div>"; // Close datepicker_header
2907
- return html;
2908
- },
2909
-
2910
- /* Adjust one of the date sub-fields. */
2911
- _adjustInstDate: function(inst, offset, period) {
2912
- var year = inst.drawYear + (period === "Y" ? offset : 0),
2913
- month = inst.drawMonth + (period === "M" ? offset : 0),
2914
- day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period === "D" ? offset : 0),
2915
- date = this._restrictMinMax(inst, this._daylightSavingAdjust(new Date(year, month, day)));
2916
-
2917
- inst.selectedDay = date.getDate();
2918
- inst.drawMonth = inst.selectedMonth = date.getMonth();
2919
- inst.drawYear = inst.selectedYear = date.getFullYear();
2920
- if (period === "M" || period === "Y") {
2921
- this._notifyChange(inst);
2922
- }
2923
- },
2924
-
2925
- /* Ensure a date is within any min/max bounds. */
2926
- _restrictMinMax: function(inst, date) {
2927
- var minDate = this._getMinMaxDate(inst, "min"),
2928
- maxDate = this._getMinMaxDate(inst, "max"),
2929
- newDate = (minDate && date < minDate ? minDate : date);
2930
- return (maxDate && newDate > maxDate ? maxDate : newDate);
2931
- },
2932
-
2933
- /* Notify change of month/year. */
2934
- _notifyChange: function(inst) {
2935
- var onChange = this._get(inst, "onChangeMonthYear");
2936
- if (onChange) {
2937
- onChange.apply((inst.input ? inst.input[0] : null),
2938
- [inst.selectedYear, inst.selectedMonth + 1, inst]);
2939
- }
2940
- },
2941
-
2942
- /* Determine the number of months to show. */
2943
- _getNumberOfMonths: function(inst) {
2944
- var numMonths = this._get(inst, "numberOfMonths");
2945
- return (numMonths == null ? [1, 1] : (typeof numMonths === "number" ? [1, numMonths] : numMonths));
2946
- },
2947
-
2948
- /* Determine the current maximum date - ensure no time components are set. */
2949
- _getMinMaxDate: function(inst, minMax) {
2950
- return this._determineDate(inst, this._get(inst, minMax + "Date"), null);
2951
- },
2952
-
2953
- /* Find the number of days in a given month. */
2954
- _getDaysInMonth: function(year, month) {
2955
- return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();
2956
- },
2957
-
2958
- /* Find the day of the week of the first of a month. */
2959
- _getFirstDayOfMonth: function(year, month) {
2960
- return new Date(year, month, 1).getDay();
2961
- },
2962
-
2963
- /* Determines if we should allow a "next/prev" month display change. */
2964
- _canAdjustMonth: function(inst, offset, curYear, curMonth) {
2965
- var numMonths = this._getNumberOfMonths(inst),
2966
- date = this._daylightSavingAdjust(new Date(curYear,
2967
- curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));
2968
-
2969
- if (offset < 0) {
2970
- date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
2971
- }
2972
- return this._isInRange(inst, date);
2973
- },
2974
-
2975
- /* Is the given date in the accepted range? */
2976
- _isInRange: function(inst, date) {
2977
- var yearSplit, currentYear,
2978
- minDate = this._getMinMaxDate(inst, "min"),
2979
- maxDate = this._getMinMaxDate(inst, "max"),
2980
- minYear = null,
2981
- maxYear = null,
2982
- years = this._get(inst, "yearRange");
2983
- if (years){
2984
- yearSplit = years.split(":");
2985
- currentYear = new Date().getFullYear();
2986
- minYear = parseInt(yearSplit[0], 10);
2987
- maxYear = parseInt(yearSplit[1], 10);
2988
- if ( yearSplit[0].match(/[+\-].*/) ) {
2989
- minYear += currentYear;
2990
- }
2991
- if ( yearSplit[1].match(/[+\-].*/) ) {
2992
- maxYear += currentYear;
2993
- }
2994
- }
2995
-
2996
- return ((!minDate || date.getTime() >= minDate.getTime()) &&
2997
- (!maxDate || date.getTime() <= maxDate.getTime()) &&
2998
- (!minYear || date.getFullYear() >= minYear) &&
2999
- (!maxYear || date.getFullYear() <= maxYear));
3000
- },
3001
-
3002
- /* Provide the configuration settings for formatting/parsing. */
3003
- _getFormatConfig: function(inst) {
3004
- var shortYearCutoff = this._get(inst, "shortYearCutoff");
3005
- shortYearCutoff = (typeof shortYearCutoff !== "string" ? shortYearCutoff :
3006
- new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
3007
- return {shortYearCutoff: shortYearCutoff,
3008
- dayNamesShort: this._get(inst, "dayNamesShort"), dayNames: this._get(inst, "dayNames"),
3009
- monthNamesShort: this._get(inst, "monthNamesShort"), monthNames: this._get(inst, "monthNames")};
3010
- },
3011
-
3012
- /* Format the given date for display. */
3013
- _formatDate: function(inst, day, month, year) {
3014
- if (!day) {
3015
- inst.currentDay = inst.selectedDay;
3016
- inst.currentMonth = inst.selectedMonth;
3017
- inst.currentYear = inst.selectedYear;
3018
- }
3019
- var date = (day ? (typeof day === "object" ? day :
3020
- this._daylightSavingAdjust(new Date(year, month, day))) :
3021
- this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
3022
- return this.formatDate(this._get(inst, "dateFormat"), date, this._getFormatConfig(inst));
3023
- }
3024
- });
3025
-
3026
- /*
3027
- * Bind hover events for datepicker elements.
3028
- * Done via delegate so the binding only occurs once in the lifetime of the parent div.
3029
- * Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
3030
- */
3031
- function datepicker_bindHover(dpDiv) {
3032
- var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
3033
- return dpDiv.delegate(selector, "mouseout", function() {
3034
- $(this).removeClass("ui-state-hover");
3035
- if (this.className.indexOf("ui-datepicker-prev") !== -1) {
3036
- $(this).removeClass("ui-datepicker-prev-hover");
3037
- }
3038
- if (this.className.indexOf("ui-datepicker-next") !== -1) {
3039
- $(this).removeClass("ui-datepicker-next-hover");
3040
- }
3041
- })
3042
- .delegate( selector, "mouseover", datepicker_handleMouseover );
3043
- }
3044
-
3045
- function datepicker_handleMouseover() {
3046
- if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline? datepicker_instActive.dpDiv.parent()[0] : datepicker_instActive.input[0])) {
3047
- $(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
3048
- $(this).addClass("ui-state-hover");
3049
- if (this.className.indexOf("ui-datepicker-prev") !== -1) {
3050
- $(this).addClass("ui-datepicker-prev-hover");
3051
- }
3052
- if (this.className.indexOf("ui-datepicker-next") !== -1) {
3053
- $(this).addClass("ui-datepicker-next-hover");
3054
- }
3055
- }
3056
- }
3057
-
3058
- /* jQuery extend now ignores nulls! */
3059
- function datepicker_extendRemove(target, props) {
3060
- $.extend(target, props);
3061
- for (var name in props) {
3062
- if (props[name] == null) {
3063
- target[name] = props[name];
3064
- }
3065
- }
3066
- return target;
3067
- }
3068
-
3069
- /* Invoke the datepicker functionality.
3070
- @param options string - a command, optionally followed by additional parameters or
3071
- Object - settings for attaching new datepicker functionality
3072
- @return jQuery object */
3073
- $.fn.datepicker = function(options){
3074
-
3075
- /* Verify an empty collection wasn't passed - Fixes #6976 */
3076
- if ( !this.length ) {
3077
- return this;
3078
- }
3079
-
3080
- /* Initialise the date picker. */
3081
- if (!$.datepicker.initialized) {
3082
- $(document).mousedown($.datepicker._checkExternalClick);
3083
- $.datepicker.initialized = true;
3084
- }
3085
-
3086
- /* Append datepicker main container to body if not exist. */
3087
- if ($("#"+$.datepicker._mainDivId).length === 0) {
3088
- $("body").append($.datepicker.dpDiv);
3089
- }
3090
-
3091
- var otherArgs = Array.prototype.slice.call(arguments, 1);
3092
- if (typeof options === "string" && (options === "isDisabled" || options === "getDate" || options === "widget")) {
3093
- return $.datepicker["_" + options + "Datepicker"].
3094
- apply($.datepicker, [this[0]].concat(otherArgs));
3095
- }
3096
- if (options === "option" && arguments.length === 2 && typeof arguments[1] === "string") {
3097
- return $.datepicker["_" + options + "Datepicker"].
3098
- apply($.datepicker, [this[0]].concat(otherArgs));
3099
- }
3100
- return this.each(function() {
3101
- typeof options === "string" ?
3102
- $.datepicker["_" + options + "Datepicker"].
3103
- apply($.datepicker, [this].concat(otherArgs)) :
3104
- $.datepicker._attachDatepicker(this, options);
3105
- });
3106
- };
3107
-
3108
- $.datepicker = new Datepicker(); // singleton instance
3109
- $.datepicker.initialized = false;
3110
- $.datepicker.uuid = new Date().getTime();
3111
- $.datepicker.version = "1.11.4";
3112
-
3113
- var datepicker = $.datepicker;
3114
-
3115
-
3116
- /*!
3117
- * jQuery UI Slider 1.11.4
3118
- * http://jqueryui.com
3119
- *
3120
- * Copyright jQuery Foundation and other contributors
3121
- * Released under the MIT license.
3122
- * http://jquery.org/license
3123
- *
3124
- * http://api.jqueryui.com/slider/
3125
- */
3126
-
3127
-
3128
- var slider = $.widget( "ui.slider", $.ui.mouse, {
3129
- version: "1.11.4",
3130
- widgetEventPrefix: "slide",
3131
-
3132
- options: {
3133
- animate: false,
3134
- distance: 0,
3135
- max: 100,
3136
- min: 0,
3137
- orientation: "horizontal",
3138
- range: false,
3139
- step: 1,
3140
- value: 0,
3141
- values: null,
3142
-
3143
- // callbacks
3144
- change: null,
3145
- slide: null,
3146
- start: null,
3147
- stop: null
3148
- },
3149
-
3150
- // number of pages in a slider
3151
- // (how many times can you page up/down to go through the whole range)
3152
- numPages: 5,
3153
-
3154
- _create: function() {
3155
- this._keySliding = false;
3156
- this._mouseSliding = false;
3157
- this._animateOff = true;
3158
- this._handleIndex = null;
3159
- this._detectOrientation();
3160
- this._mouseInit();
3161
- this._calculateNewMax();
3162
-
3163
- this.element
3164
- .addClass( "ui-slider" +
3165
- " ui-slider-" + this.orientation +
3166
- " ui-widget" +
3167
- " ui-widget-content" +
3168
- " ui-corner-all");
3169
-
3170
- this._refresh();
3171
- this._setOption( "disabled", this.options.disabled );
3172
-
3173
- this._animateOff = false;
3174
- },
3175
-
3176
- _refresh: function() {
3177
- this._createRange();
3178
- this._createHandles();
3179
- this._setupEvents();
3180
- this._refreshValue();
3181
- },
3182
-
3183
- _createHandles: function() {
3184
- var i, handleCount,
3185
- options = this.options,
3186
- existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
3187
- handle = "<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",
3188
- handles = [];
3189
-
3190
- handleCount = ( options.values && options.values.length ) || 1;
3191
-
3192
- if ( existingHandles.length > handleCount ) {
3193
- existingHandles.slice( handleCount ).remove();
3194
- existingHandles = existingHandles.slice( 0, handleCount );
3195
- }
3196
-
3197
- for ( i = existingHandles.length; i < handleCount; i++ ) {
3198
- handles.push( handle );
3199
- }
3200
-
3201
- this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
3202
-
3203
- this.handle = this.handles.eq( 0 );
3204
-
3205
- this.handles.each(function( i ) {
3206
- $( this ).data( "ui-slider-handle-index", i );
3207
- });
3208
- },
3209
-
3210
- _createRange: function() {
3211
- var options = this.options,
3212
- classes = "";
3213
-
3214
- if ( options.range ) {
3215
- if ( options.range === true ) {
3216
- if ( !options.values ) {
3217
- options.values = [ this._valueMin(), this._valueMin() ];
3218
- } else if ( options.values.length && options.values.length !== 2 ) {
3219
- options.values = [ options.values[0], options.values[0] ];
3220
- } else if ( $.isArray( options.values ) ) {
3221
- options.values = options.values.slice(0);
3222
- }
3223
- }
3224
-
3225
- if ( !this.range || !this.range.length ) {
3226
- this.range = $( "<div></div>" )
3227
- .appendTo( this.element );
3228
-
3229
- classes = "ui-slider-range" +
3230
- // note: this isn't the most fittingly semantic framework class for this element,
3231
- // but worked best visually with a variety of themes
3232
- " ui-widget-header ui-corner-all";
3233
- } else {
3234
- this.range.removeClass( "ui-slider-range-min ui-slider-range-max" )
3235
- // Handle range switching from true to min/max
3236
- .css({
3237
- "left": "",
3238
- "bottom": ""
3239
- });
3240
- }
3241
-
3242
- this.range.addClass( classes +
3243
- ( ( options.range === "min" || options.range === "max" ) ? " ui-slider-range-" + options.range : "" ) );
3244
- } else {
3245
- if ( this.range ) {
3246
- this.range.remove();
3247
- }
3248
- this.range = null;
3249
- }
3250
- },
3251
-
3252
- _setupEvents: function() {
3253
- this._off( this.handles );
3254
- this._on( this.handles, this._handleEvents );
3255
- this._hoverable( this.handles );
3256
- this._focusable( this.handles );
3257
- },
3258
-
3259
- _destroy: function() {
3260
- this.handles.remove();
3261
- if ( this.range ) {
3262
- this.range.remove();
3263
- }
3264
-
3265
- this.element
3266
- .removeClass( "ui-slider" +
3267
- " ui-slider-horizontal" +
3268
- " ui-slider-vertical" +
3269
- " ui-widget" +
3270
- " ui-widget-content" +
3271
- " ui-corner-all" );
3272
-
3273
- this._mouseDestroy();
3274
- },
3275
-
3276
- _mouseCapture: function( event ) {
3277
- var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
3278
- that = this,
3279
- o = this.options;
3280
-
3281
- if ( o.disabled ) {
3282
- return false;
3283
- }
3284
-
3285
- this.elementSize = {
3286
- width: this.element.outerWidth(),
3287
- height: this.element.outerHeight()
3288
- };
3289
- this.elementOffset = this.element.offset();
3290
-
3291
- position = { x: event.pageX, y: event.pageY };
3292
- normValue = this._normValueFromMouse( position );
3293
- distance = this._valueMax() - this._valueMin() + 1;
3294
- this.handles.each(function( i ) {
3295
- var thisDistance = Math.abs( normValue - that.values(i) );
3296
- if (( distance > thisDistance ) ||
3297
- ( distance === thisDistance &&
3298
- (i === that._lastChangedValue || that.values(i) === o.min ))) {
3299
- distance = thisDistance;
3300
- closestHandle = $( this );
3301
- index = i;
3302
- }
3303
- });
3304
-
3305
- allowed = this._start( event, index );
3306
- if ( allowed === false ) {
3307
- return false;
3308
- }
3309
- this._mouseSliding = true;
3310
-
3311
- this._handleIndex = index;
3312
-
3313
- closestHandle
3314
- .addClass( "ui-state-active" )
3315
- .focus();
3316
-
3317
- offset = closestHandle.offset();
3318
- mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
3319
- this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {
3320
- left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
3321
- top: event.pageY - offset.top -
3322
- ( closestHandle.height() / 2 ) -
3323
- ( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
3324
- ( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
3325
- ( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
3326
- };
3327
-
3328
- if ( !this.handles.hasClass( "ui-state-hover" ) ) {
3329
- this._slide( event, index, normValue );
3330
- }
3331
- this._animateOff = true;
3332
- return true;
3333
- },
3334
-
3335
- _mouseStart: function() {
3336
- return true;
3337
- },
3338
-
3339
- _mouseDrag: function( event ) {
3340
- var position = { x: event.pageX, y: event.pageY },
3341
- normValue = this._normValueFromMouse( position );
3342
-
3343
- this._slide( event, this._handleIndex, normValue );
3344
-
3345
- return false;
3346
- },
3347
-
3348
- _mouseStop: function( event ) {
3349
- this.handles.removeClass( "ui-state-active" );
3350
- this._mouseSliding = false;
3351
-
3352
- this._stop( event, this._handleIndex );
3353
- this._change( event, this._handleIndex );
3354
-
3355
- this._handleIndex = null;
3356
- this._clickOffset = null;
3357
- this._animateOff = false;
3358
-
3359
- return false;
3360
- },
3361
-
3362
- _detectOrientation: function() {
3363
- this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";
3364
- },
3365
-
3366
- _normValueFromMouse: function( position ) {
3367
- var pixelTotal,
3368
- pixelMouse,
3369
- percentMouse,
3370
- valueTotal,
3371
- valueMouse;
3372
-
3373
- if ( this.orientation === "horizontal" ) {
3374
- pixelTotal = this.elementSize.width;
3375
- pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );
3376
- } else {
3377
- pixelTotal = this.elementSize.height;
3378
- pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );
3379
- }
3380
-
3381
- percentMouse = ( pixelMouse / pixelTotal );
3382
- if ( percentMouse > 1 ) {
3383
- percentMouse = 1;
3384
- }
3385
- if ( percentMouse < 0 ) {
3386
- percentMouse = 0;
3387
- }
3388
- if ( this.orientation === "vertical" ) {
3389
- percentMouse = 1 - percentMouse;
3390
- }
3391
-
3392
- valueTotal = this._valueMax() - this._valueMin();
3393
- valueMouse = this._valueMin() + percentMouse * valueTotal;
3394
-
3395
- return this._trimAlignValue( valueMouse );
3396
- },
3397
-
3398
- _start: function( event, index ) {
3399
- var uiHash = {
3400
- handle: this.handles[ index ],
3401
- value: this.value()
3402
- };
3403
- if ( this.options.values && this.options.values.length ) {
3404
- uiHash.value = this.values( index );
3405
- uiHash.values = this.values();
3406
- }
3407
- return this._trigger( "start", event, uiHash );
3408
- },
3409
-
3410
- _slide: function( event, index, newVal ) {
3411
- var otherVal,
3412
- newValues,
3413
- allowed;
3414
-
3415
- if ( this.options.values && this.options.values.length ) {
3416
- otherVal = this.values( index ? 0 : 1 );
3417
-
3418
- if ( ( this.options.values.length === 2 && this.options.range === true ) &&
3419
- ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
3420
- ) {
3421
- newVal = otherVal;
3422
- }
3423
-
3424
- if ( newVal !== this.values( index ) ) {
3425
- newValues = this.values();
3426
- newValues[ index ] = newVal;
3427
- // A slide can be canceled by returning false from the slide callback
3428
- allowed = this._trigger( "slide", event, {
3429
- handle: this.handles[ index ],
3430
- value: newVal,
3431
- values: newValues
3432
- } );
3433
- otherVal = this.values( index ? 0 : 1 );
3434
- if ( allowed !== false ) {
3435
- this.values( index, newVal );
3436
- }
3437
- }
3438
- } else {
3439
- if ( newVal !== this.value() ) {
3440
- // A slide can be canceled by returning false from the slide callback
3441
- allowed = this._trigger( "slide", event, {
3442
- handle: this.handles[ index ],
3443
- value: newVal
3444
- } );
3445
- if ( allowed !== false ) {
3446
- this.value( newVal );
3447
- }
3448
- }
3449
- }
3450
- },
3451
-
3452
- _stop: function( event, index ) {
3453
- var uiHash = {
3454
- handle: this.handles[ index ],
3455
- value: this.value()
3456
- };
3457
- if ( this.options.values && this.options.values.length ) {
3458
- uiHash.value = this.values( index );
3459
- uiHash.values = this.values();
3460
- }
3461
-
3462
- this._trigger( "stop", event, uiHash );
3463
- },
3464
-
3465
- _change: function( event, index ) {
3466
- if ( !this._keySliding && !this._mouseSliding ) {
3467
- var uiHash = {
3468
- handle: this.handles[ index ],
3469
- value: this.value()
3470
- };
3471
- if ( this.options.values && this.options.values.length ) {
3472
- uiHash.value = this.values( index );
3473
- uiHash.values = this.values();
3474
- }
3475
-
3476
- //store the last changed value index for reference when handles overlap
3477
- this._lastChangedValue = index;
3478
-
3479
- this._trigger( "change", event, uiHash );
3480
- }
3481
- },
3482
-
3483
- value: function( newValue ) {
3484
- if ( arguments.length ) {
3485
- this.options.value = this._trimAlignValue( newValue );
3486
- this._refreshValue();
3487
- this._change( null, 0 );
3488
- return;
3489
- }
3490
-
3491
- return this._value();
3492
- },
3493
-
3494
- values: function( index, newValue ) {
3495
- var vals,
3496
- newValues,
3497
- i;
3498
-
3499
- if ( arguments.length > 1 ) {
3500
- this.options.values[ index ] = this._trimAlignValue( newValue );
3501
- this._refreshValue();
3502
- this._change( null, index );
3503
- return;
3504
- }
3505
-
3506
- if ( arguments.length ) {
3507
- if ( $.isArray( arguments[ 0 ] ) ) {
3508
- vals = this.options.values;
3509
- newValues = arguments[ 0 ];
3510
- for ( i = 0; i < vals.length; i += 1 ) {
3511
- vals[ i ] = this._trimAlignValue( newValues[ i ] );
3512
- this._change( null, i );
3513
- }
3514
- this._refreshValue();
3515
- } else {
3516
- if ( this.options.values && this.options.values.length ) {
3517
- return this._values( index );
3518
- } else {
3519
- return this.value();
3520
- }
3521
- }
3522
- } else {
3523
- return this._values();
3524
- }
3525
- },
3526
-
3527
- _setOption: function( key, value ) {
3528
- var i,
3529
- valsLength = 0;
3530
-
3531
- if ( key === "range" && this.options.range === true ) {
3532
- if ( value === "min" ) {
3533
- this.options.value = this._values( 0 );
3534
- this.options.values = null;
3535
- } else if ( value === "max" ) {
3536
- this.options.value = this._values( this.options.values.length - 1 );
3537
- this.options.values = null;
3538
- }
3539
- }
3540
-
3541
- if ( $.isArray( this.options.values ) ) {
3542
- valsLength = this.options.values.length;
3543
- }
3544
-
3545
- if ( key === "disabled" ) {
3546
- this.element.toggleClass( "ui-state-disabled", !!value );
3547
- }
3548
-
3549
- this._super( key, value );
3550
-
3551
- switch ( key ) {
3552
- case "orientation":
3553
- this._detectOrientation();
3554
- this.element
3555
- .removeClass( "ui-slider-horizontal ui-slider-vertical" )
3556
- .addClass( "ui-slider-" + this.orientation );
3557
- this._refreshValue();
3558
-
3559
- // Reset positioning from previous orientation
3560
- this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
3561
- break;
3562
- case "value":
3563
- this._animateOff = true;
3564
- this._refreshValue();
3565
- this._change( null, 0 );
3566
- this._animateOff = false;
3567
- break;
3568
- case "values":
3569
- this._animateOff = true;
3570
- this._refreshValue();
3571
- for ( i = 0; i < valsLength; i += 1 ) {
3572
- this._change( null, i );
3573
- }
3574
- this._animateOff = false;
3575
- break;
3576
- case "step":
3577
- case "min":
3578
- case "max":
3579
- this._animateOff = true;
3580
- this._calculateNewMax();
3581
- this._refreshValue();
3582
- this._animateOff = false;
3583
- break;
3584
- case "range":
3585
- this._animateOff = true;
3586
- this._refresh();
3587
- this._animateOff = false;
3588
- break;
3589
- }
3590
- },
3591
-
3592
- //internal value getter
3593
- // _value() returns value trimmed by min and max, aligned by step
3594
- _value: function() {
3595
- var val = this.options.value;
3596
- val = this._trimAlignValue( val );
3597
-
3598
- return val;
3599
- },
3600
-
3601
- //internal values getter
3602
- // _values() returns array of values trimmed by min and max, aligned by step
3603
- // _values( index ) returns single value trimmed by min and max, aligned by step
3604
- _values: function( index ) {
3605
- var val,
3606
- vals,
3607
- i;
3608
-
3609
- if ( arguments.length ) {
3610
- val = this.options.values[ index ];
3611
- val = this._trimAlignValue( val );
3612
-
3613
- return val;
3614
- } else if ( this.options.values && this.options.values.length ) {
3615
- // .slice() creates a copy of the array
3616
- // this copy gets trimmed by min and max and then returned
3617
- vals = this.options.values.slice();
3618
- for ( i = 0; i < vals.length; i += 1) {
3619
- vals[ i ] = this._trimAlignValue( vals[ i ] );
3620
- }
3621
-
3622
- return vals;
3623
- } else {
3624
- return [];
3625
- }
3626
- },
3627
-
3628
- // returns the step-aligned value that val is closest to, between (inclusive) min and max
3629
- _trimAlignValue: function( val ) {
3630
- if ( val <= this._valueMin() ) {
3631
- return this._valueMin();
3632
- }
3633
- if ( val >= this._valueMax() ) {
3634
- return this._valueMax();
3635
- }
3636
- var step = ( this.options.step > 0 ) ? this.options.step : 1,
3637
- valModStep = (val - this._valueMin()) % step,
3638
- alignValue = val - valModStep;
3639
-
3640
- if ( Math.abs(valModStep) * 2 >= step ) {
3641
- alignValue += ( valModStep > 0 ) ? step : ( -step );
3642
- }
3643
-
3644
- // Since JavaScript has problems with large floats, round
3645
- // the final value to 5 digits after the decimal point (see #4124)
3646
- return parseFloat( alignValue.toFixed(5) );
3647
- },
3648
-
3649
- _calculateNewMax: function() {
3650
- var max = this.options.max,
3651
- min = this._valueMin(),
3652
- step = this.options.step,
3653
- aboveMin = Math.floor( ( +( max - min ).toFixed( this._precision() ) ) / step ) * step;
3654
- max = aboveMin + min;
3655
- this.max = parseFloat( max.toFixed( this._precision() ) );
3656
- },
3657
-
3658
- _precision: function() {
3659
- var precision = this._precisionOf( this.options.step );
3660
- if ( this.options.min !== null ) {
3661
- precision = Math.max( precision, this._precisionOf( this.options.min ) );
3662
- }
3663
- return precision;
3664
- },
3665
-
3666
- _precisionOf: function( num ) {
3667
- var str = num.toString(),
3668
- decimal = str.indexOf( "." );
3669
- return decimal === -1 ? 0 : str.length - decimal - 1;
3670
- },
3671
-
3672
- _valueMin: function() {
3673
- return this.options.min;
3674
- },
3675
-
3676
- _valueMax: function() {
3677
- return this.max;
3678
- },
3679
-
3680
- _refreshValue: function() {
3681
- var lastValPercent, valPercent, value, valueMin, valueMax,
3682
- oRange = this.options.range,
3683
- o = this.options,
3684
- that = this,
3685
- animate = ( !this._animateOff ) ? o.animate : false,
3686
- _set = {};
3687
-
3688
- if ( this.options.values && this.options.values.length ) {
3689
- this.handles.each(function( i ) {
3690
- valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100;
3691
- _set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
3692
- $( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
3693
- if ( that.options.range === true ) {
3694
- if ( that.orientation === "horizontal" ) {
3695
- if ( i === 0 ) {
3696
- that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate );
3697
- }
3698
- if ( i === 1 ) {
3699
- that.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
3700
- }
3701
- } else {
3702
- if ( i === 0 ) {
3703
- that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate );
3704
- }
3705
- if ( i === 1 ) {
3706
- that.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
3707
- }
3708
- }
3709
- }
3710
- lastValPercent = valPercent;
3711
- });
3712
- } else {
3713
- value = this.value();
3714
- valueMin = this._valueMin();
3715
- valueMax = this._valueMax();
3716
- valPercent = ( valueMax !== valueMin ) ?
3717
- ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
3718
- 0;
3719
- _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
3720
- this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
3721
-
3722
- if ( oRange === "min" && this.orientation === "horizontal" ) {
3723
- this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
3724
- }
3725
- if ( oRange === "max" && this.orientation === "horizontal" ) {
3726
- this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
3727
- }
3728
- if ( oRange === "min" && this.orientation === "vertical" ) {
3729
- this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
3730
- }
3731
- if ( oRange === "max" && this.orientation === "vertical" ) {
3732
- this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
3733
- }
3734
- }
3735
- },
3736
-
3737
- _handleEvents: {
3738
- keydown: function( event ) {
3739
- var allowed, curVal, newVal, step,
3740
- index = $( event.target ).data( "ui-slider-handle-index" );
3741
-
3742
- switch ( event.keyCode ) {
3743
- case $.ui.keyCode.HOME:
3744
- case $.ui.keyCode.END:
3745
- case $.ui.keyCode.PAGE_UP:
3746
- case $.ui.keyCode.PAGE_DOWN:
3747
- case $.ui.keyCode.UP:
3748
- case $.ui.keyCode.RIGHT:
3749
- case $.ui.keyCode.DOWN:
3750
- case $.ui.keyCode.LEFT:
3751
- event.preventDefault();
3752
- if ( !this._keySliding ) {
3753
- this._keySliding = true;
3754
- $( event.target ).addClass( "ui-state-active" );
3755
- allowed = this._start( event, index );
3756
- if ( allowed === false ) {
3757
- return;
3758
- }
3759
- }
3760
- break;
3761
- }
3762
-
3763
- step = this.options.step;
3764
- if ( this.options.values && this.options.values.length ) {
3765
- curVal = newVal = this.values( index );
3766
- } else {
3767
- curVal = newVal = this.value();
3768
- }
3769
-
3770
- switch ( event.keyCode ) {
3771
- case $.ui.keyCode.HOME:
3772
- newVal = this._valueMin();
3773
- break;
3774
- case $.ui.keyCode.END:
3775
- newVal = this._valueMax();
3776
- break;
3777
- case $.ui.keyCode.PAGE_UP:
3778
- newVal = this._trimAlignValue(
3779
- curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
3780
- );
3781
- break;
3782
- case $.ui.keyCode.PAGE_DOWN:
3783
- newVal = this._trimAlignValue(
3784
- curVal - ( (this._valueMax() - this._valueMin()) / this.numPages ) );
3785
- break;
3786
- case $.ui.keyCode.UP:
3787
- case $.ui.keyCode.RIGHT:
3788
- if ( curVal === this._valueMax() ) {
3789
- return;
3790
- }
3791
- newVal = this._trimAlignValue( curVal + step );
3792
- break;
3793
- case $.ui.keyCode.DOWN:
3794
- case $.ui.keyCode.LEFT:
3795
- if ( curVal === this._valueMin() ) {
3796
- return;
3797
- }
3798
- newVal = this._trimAlignValue( curVal - step );
3799
- break;
3800
- }
3801
-
3802
- this._slide( event, index, newVal );
3803
- },
3804
- keyup: function( event ) {
3805
- var index = $( event.target ).data( "ui-slider-handle-index" );
3806
-
3807
- if ( this._keySliding ) {
3808
- this._keySliding = false;
3809
- this._stop( event, index );
3810
- this._change( event, index );
3811
- $( event.target ).removeClass( "ui-state-active" );
3812
- }
3813
- }
3814
- }
3815
- });
3816
-
3817
-
3818
-
3819
- }));