kiso_themes 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (944) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +12 -0
  3. data/LICENSE +170 -0
  4. data/README.rdoc +6 -0
  5. data/Rakefile +516 -0
  6. data/VERSION +1 -0
  7. data/app/assets/fonts/font-awesome/FontAwesome.otf +0 -0
  8. data/app/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  9. data/app/assets/fonts/font-awesome/fontawesome-webfont.svg +2671 -0
  10. data/app/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  11. data/app/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  12. data/app/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
  13. data/app/assets/fonts/ionicons/ionicons.eot +0 -0
  14. data/app/assets/fonts/ionicons/ionicons.svg +2230 -0
  15. data/app/assets/fonts/ionicons/ionicons.ttf +0 -0
  16. data/app/assets/fonts/ionicons/ionicons.woff +0 -0
  17. data/app/assets/fonts/mdiicons/LICENSE.txt +428 -0
  18. data/app/assets/fonts/mdiicons/MaterialIcons-Regular.eot +0 -0
  19. data/app/assets/fonts/mdiicons/MaterialIcons-Regular.ijmap +1 -0
  20. data/app/assets/fonts/mdiicons/MaterialIcons-Regular.svg +2373 -0
  21. data/app/assets/fonts/mdiicons/MaterialIcons-Regular.ttf +0 -0
  22. data/app/assets/fonts/mdiicons/MaterialIcons-Regular.woff +0 -0
  23. data/app/assets/fonts/mdiicons/MaterialIcons-Regular.woff2 +0 -0
  24. data/app/assets/fonts/mdiicons/README.md +9 -0
  25. data/app/assets/fonts/mdiicons/codepoints +932 -0
  26. data/app/assets/fonts/themify/themify.eot +0 -0
  27. data/app/assets/fonts/themify/themify.svg +362 -0
  28. data/app/assets/fonts/themify/themify.ttf +0 -0
  29. data/app/assets/fonts/themify/themify.woff +0 -0
  30. data/app/assets/images/kiso_themes/app_video_placeholder.png +0 -0
  31. data/app/assets/images/kiso_themes/arrow-1.svg +8 -0
  32. data/app/assets/images/kiso_themes/arrow-2.svg +7 -0
  33. data/app/assets/images/kiso_themes/creditcards/amex.png +0 -0
  34. data/app/assets/images/kiso_themes/creditcards/credit.png +0 -0
  35. data/app/assets/images/kiso_themes/creditcards/dankort.png +0 -0
  36. data/app/assets/images/kiso_themes/creditcards/diners.png +0 -0
  37. data/app/assets/images/kiso_themes/creditcards/discover.png +0 -0
  38. data/app/assets/images/kiso_themes/creditcards/forbru.png +0 -0
  39. data/app/assets/images/kiso_themes/creditcards/google.png +0 -0
  40. data/app/assets/images/kiso_themes/creditcards/jcb.png +0 -0
  41. data/app/assets/images/kiso_themes/creditcards/laser.png +0 -0
  42. data/app/assets/images/kiso_themes/creditcards/maestro.png +0 -0
  43. data/app/assets/images/kiso_themes/creditcards/mastercard.png +0 -0
  44. data/app/assets/images/kiso_themes/creditcards/money.png +0 -0
  45. data/app/assets/images/kiso_themes/creditcards/paypa.png +0 -0
  46. data/app/assets/images/kiso_themes/creditcards/shopify.png +0 -0
  47. data/app/assets/images/kiso_themes/creditcards/solo.png +0 -0
  48. data/app/assets/images/kiso_themes/creditcards/visa.png +0 -0
  49. data/app/assets/images/kiso_themes/header_1.jpg +0 -0
  50. data/app/assets/images/kiso_themes/icons/check.png +0 -0
  51. data/app/assets/images/kiso_themes/landing_bg.jpg +0 -0
  52. data/app/assets/images/kiso_themes/pyrrmid_128.png +0 -0
  53. data/app/assets/images/kiso_themes/pyrrmid_200.png +0 -0
  54. data/app/assets/images/kiso_themes/pyrrmid_32.png +0 -0
  55. data/app/assets/images/kiso_themes/pyrrmid_64.png +0 -0
  56. data/app/assets/images/kiso_themes/stock/1.jpg +0 -0
  57. data/app/assets/images/kiso_themes/stock/2.jpg +0 -0
  58. data/app/assets/images/kiso_themes/stock/3.jpg +0 -0
  59. data/app/assets/images/kiso_themes/stock/4.jpg +0 -0
  60. data/app/assets/images/kiso_themes/stock/acme_1.png +0 -0
  61. data/app/assets/images/kiso_themes/stock/acme_2.png +0 -0
  62. data/app/assets/images/kiso_themes/stock/acme_3.png +0 -0
  63. data/app/assets/images/kiso_themes/stock/acme_4.png +0 -0
  64. data/app/assets/images/kiso_themes/stock/acme_5.png +0 -0
  65. data/app/assets/images/kiso_themes/stock/acme_6.png +0 -0
  66. data/app/assets/images/kiso_themes/stock/acme_7.png +0 -0
  67. data/app/assets/images/kiso_themes/stock/acme_8.png +0 -0
  68. data/app/assets/images/kiso_themes/stock/landscape_1.jpg +0 -0
  69. data/app/assets/images/kiso_themes/stock/landscape_10.jpg +0 -0
  70. data/app/assets/images/kiso_themes/stock/landscape_12.jpg +0 -0
  71. data/app/assets/images/kiso_themes/stock/landscape_13.jpg +0 -0
  72. data/app/assets/images/kiso_themes/stock/landscape_14.jpg +0 -0
  73. data/app/assets/images/kiso_themes/stock/landscape_2.jpg +0 -0
  74. data/app/assets/images/kiso_themes/stock/landscape_3.jpg +0 -0
  75. data/app/assets/images/kiso_themes/stock/landscape_4.jpg +0 -0
  76. data/app/assets/images/kiso_themes/stock/landscape_5.jpg +0 -0
  77. data/app/assets/images/kiso_themes/stock/landscape_6.jpg +0 -0
  78. data/app/assets/images/kiso_themes/stock/landscape_7.jpg +0 -0
  79. data/app/assets/images/kiso_themes/stock/landscape_8.jpg +0 -0
  80. data/app/assets/images/kiso_themes/stock/landscape_9.jpg +0 -0
  81. data/app/assets/images/kiso_themes/stock/us_landscape_1.jpg +0 -0
  82. data/app/assets/images/kiso_themes/stock/us_landscape_2.jpg +0 -0
  83. data/app/assets/images/kiso_themes/ui_placeholder_desktop.png +0 -0
  84. data/app/assets/javascripts/kiso_themes/bootstrap.js +20 -0
  85. data/app/assets/javascripts/kiso_themes/bootstrap_switch.js +23 -0
  86. data/app/assets/javascripts/kiso_themes/chartjs.js +11 -0
  87. data/app/assets/javascripts/kiso_themes/clipboard.js +12 -0
  88. data/app/assets/javascripts/kiso_themes/countTo.js +1 -0
  89. data/app/assets/javascripts/kiso_themes/countdown.js +28 -0
  90. data/app/assets/javascripts/kiso_themes/demo/chartjs.js +102 -0
  91. data/app/assets/javascripts/kiso_themes/demo/dashboard.js +229 -0
  92. data/app/assets/javascripts/kiso_themes/demo/data_generator.js +25 -0
  93. data/app/assets/javascripts/kiso_themes/demo/easypiechart.js +41 -0
  94. data/app/assets/javascripts/kiso_themes/demo/flot.js +258 -0
  95. data/app/assets/javascripts/kiso_themes/demo/gmaps.js +163 -0
  96. data/app/assets/javascripts/kiso_themes/demo/jqvectormap.js +65 -0
  97. data/app/assets/javascripts/kiso_themes/demo/sparklines.js +156 -0
  98. data/app/assets/javascripts/kiso_themes/easypiechart.js +12 -0
  99. data/app/assets/javascripts/kiso_themes/fastclick.js +16 -0
  100. data/app/assets/javascripts/kiso_themes/fitie.js +14 -0
  101. data/app/assets/javascripts/kiso_themes/flot.js +11 -0
  102. data/app/assets/javascripts/kiso_themes/forms.js +13 -0
  103. data/app/assets/javascripts/kiso_themes/gmaps.js +9 -0
  104. data/app/assets/javascripts/kiso_themes/header.js +33 -0
  105. data/app/assets/javascripts/kiso_themes/inspect_mode/inspect_mode.js +581 -0
  106. data/app/assets/javascripts/kiso_themes/jasny.js +13 -0
  107. data/app/assets/javascripts/kiso_themes/jqvectormaps.js +24 -0
  108. data/app/assets/javascripts/kiso_themes/kernel.js +48 -0
  109. data/app/assets/javascripts/kiso_themes/metis_menu.js +16 -0
  110. data/app/assets/javascripts/kiso_themes/parallax.js +14 -0
  111. data/app/assets/javascripts/kiso_themes/popper.js +1 -0
  112. data/app/assets/javascripts/kiso_themes/prettify.js +12 -0
  113. data/app/assets/javascripts/kiso_themes/prism.js +10 -0
  114. data/app/assets/javascripts/kiso_themes/sheets.js +98 -0
  115. data/app/assets/javascripts/kiso_themes/sidenav.js +77 -0
  116. data/app/assets/javascripts/kiso_themes/slimscroll.js +1 -0
  117. data/app/assets/javascripts/kiso_themes/sparklines.js +1 -0
  118. data/app/assets/javascripts/kiso_themes.js +39 -0
  119. data/app/assets/javascripts/vendor/bootstrap/bootstrap/alert.js +198 -0
  120. data/app/assets/javascripts/vendor/bootstrap/bootstrap/button.js +186 -0
  121. data/app/assets/javascripts/vendor/bootstrap/bootstrap/carousel.js +667 -0
  122. data/app/assets/javascripts/vendor/bootstrap/bootstrap/collapse.js +427 -0
  123. data/app/assets/javascripts/vendor/bootstrap/bootstrap/dropdown.js +594 -0
  124. data/app/assets/javascripts/vendor/bootstrap/bootstrap/index.js +22 -0
  125. data/app/assets/javascripts/vendor/bootstrap/bootstrap/modal.js +649 -0
  126. data/app/assets/javascripts/vendor/bootstrap/bootstrap/popover.js +260 -0
  127. data/app/assets/javascripts/vendor/bootstrap/bootstrap/scrollspy.js +374 -0
  128. data/app/assets/javascripts/vendor/bootstrap/bootstrap/tab.js +268 -0
  129. data/app/assets/javascripts/vendor/bootstrap/bootstrap/toast.js +282 -0
  130. data/app/assets/javascripts/vendor/bootstrap/bootstrap/tooltip.js +906 -0
  131. data/app/assets/javascripts/vendor/bootstrap/bootstrap/util.js +171 -0
  132. data/app/assets/javascripts/vendor/bootstrap/bootstrap.js +13 -0
  133. data/app/assets/javascripts/vendor/bootstrap_switch/bootstrap_switch.js +744 -0
  134. data/app/assets/javascripts/vendor/chartjs/Chart.bundle.min.js +10 -0
  135. data/app/assets/javascripts/vendor/chartjs/Chart.min.js +10 -0
  136. data/app/assets/javascripts/vendor/clipboardjs/clipboard.js +7 -0
  137. data/app/assets/javascripts/vendor/countTo/countTo.js +130 -0
  138. data/app/assets/javascripts/vendor/countdown/countdown.js +22 -0
  139. data/app/assets/javascripts/vendor/easypiechart/jquery.easypiechart.js +364 -0
  140. data/app/assets/javascripts/vendor/fastclick/fastclick.js +841 -0
  141. data/app/assets/javascripts/vendor/fitie/fitie.js +1 -0
  142. data/app/assets/javascripts/vendor/flot/flot-chart-resize.js +59 -0
  143. data/app/assets/javascripts/vendor/flot/flot-chart-stack.js +188 -0
  144. data/app/assets/javascripts/vendor/flot/flot-chart-time.js +432 -0
  145. data/app/assets/javascripts/vendor/flot/flot-chart.js +3168 -0
  146. data/app/assets/javascripts/vendor/gmaps/gmaps.js +2418 -0
  147. data/app/assets/javascripts/vendor/jasny/jasny_bootstrap.js +1020 -0
  148. data/app/assets/javascripts/vendor/jqvectormaps/jquery-jvectormap.css +135 -0
  149. data/app/assets/javascripts/vendor/jqvectormaps/jquery-jvectormap.js +3375 -0
  150. data/app/assets/javascripts/vendor/jqvectormaps/maps/More maps.txt +1 -0
  151. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-au-mill-en.js +1 -0
  152. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-ca-mill.js +1 -0
  153. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-cn-mill-en.js +1 -0
  154. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-de-mill-en.js +1 -0
  155. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-europe-mill-en.js +1 -0
  156. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-fr-mill-en.js +1 -0
  157. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-in-mill-en.js +1 -0
  158. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-us-aea-en.js +1 -0
  159. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-world-mill-en.js +1 -0
  160. data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-za-mill-en.js +1 -0
  161. data/app/assets/javascripts/vendor/metis_menu/metis_menu.js +337 -0
  162. data/app/assets/javascripts/vendor/modernizr/modernizr.2.8.3.min.js +1 -0
  163. data/app/assets/javascripts/vendor/parallax/parallax.js +6 -0
  164. data/app/assets/javascripts/vendor/popper/popper.js +4 -0
  165. data/app/assets/javascripts/vendor/prettify/prettify.js +1655 -0
  166. data/app/assets/javascripts/vendor/prism/prism-normalize-whitespace.js +190 -0
  167. data/app/assets/javascripts/vendor/prism/prism.js +819 -0
  168. data/app/assets/javascripts/vendor/slimscroll/slimscroll.js +288 -0
  169. data/app/assets/javascripts/vendor/sparklines/jquery.sparkline.js +3054 -0
  170. data/app/assets/stylesheets/kiso_themes/auriga/blue.css.erb +31497 -0
  171. data/app/assets/stylesheets/kiso_themes/auriga/green.css.erb +31497 -0
  172. data/app/assets/stylesheets/kiso_themes/auriga/red.css.erb +31497 -0
  173. data/app/assets/stylesheets/kiso_themes/auriga/yellow.css.erb +31497 -0
  174. data/app/assets/stylesheets/kiso_themes/carbon/black.css.erb +0 -0
  175. data/app/assets/stylesheets/kiso_themes/gemini/amber.css.erb +31469 -0
  176. data/app/assets/stylesheets/kiso_themes/gemini/blue.css.erb +31469 -0
  177. data/app/assets/stylesheets/kiso_themes/gemini/granite.css.erb +31469 -0
  178. data/app/assets/stylesheets/kiso_themes/gemini/ocean.css.erb +31469 -0
  179. data/app/assets/stylesheets/kiso_themes/lyra/azure.css.erb +31469 -0
  180. data/app/assets/stylesheets/kiso_themes/lyra/charcoal.css.erb +31469 -0
  181. data/app/assets/stylesheets/kiso_themes/lyra/lime.css.erb +31469 -0
  182. data/app/assets/stylesheets/kiso_themes/lyra/raspberry.css.erb +31469 -0
  183. data/app/assets/stylesheets/kiso_themes/orion/blue.css.erb +31469 -0
  184. data/app/assets/stylesheets/kiso_themes/orion/green.css.erb +31469 -0
  185. data/app/assets/stylesheets/kiso_themes/orion/orange.css.erb +31464 -0
  186. data/app/assets/stylesheets/kiso_themes/orion/purple.css.erb +31469 -0
  187. data/app/helpers/content_block_helper.rb +2 -0
  188. data/app/helpers/devices_helper.rb +67 -0
  189. data/app/helpers/dropdown_helper.rb +50 -0
  190. data/app/helpers/email_template_helper.rb +66 -0
  191. data/app/helpers/form_errors_helper.rb +50 -0
  192. data/app/helpers/form_group_helper.rb +48 -0
  193. data/app/helpers/html_helper.rb +57 -0
  194. data/app/helpers/icons_helper.rb +56 -0
  195. data/app/helpers/metrics_helper.rb +90 -0
  196. data/app/views/content_blocks/app_navs/_1.html.erb +124 -0
  197. data/app/views/content_blocks/app_navs/_1.html.haml +83 -0
  198. data/app/views/content_blocks/app_navs/_1.html.slim +83 -0
  199. data/app/views/content_blocks/app_navs/_2.html.erb +124 -0
  200. data/app/views/content_blocks/app_navs/_2.html.haml +81 -0
  201. data/app/views/content_blocks/app_navs/_2.html.slim +81 -0
  202. data/app/views/content_blocks/app_navs/_3.html.erb +129 -0
  203. data/app/views/content_blocks/app_navs/_3.html.haml +84 -0
  204. data/app/views/content_blocks/app_navs/_3.html.slim +84 -0
  205. data/app/views/content_blocks/app_navs/_4.html.erb +127 -0
  206. data/app/views/content_blocks/app_navs/_4.html.haml +82 -0
  207. data/app/views/content_blocks/app_navs/_4.html.slim +82 -0
  208. data/app/views/content_blocks/app_navs/_5.html.erb +47 -0
  209. data/app/views/content_blocks/app_navs/_5.html.haml +30 -0
  210. data/app/views/content_blocks/app_navs/_5.html.slim +30 -0
  211. data/app/views/content_blocks/basic/_1.html.erb +12 -0
  212. data/app/views/content_blocks/basic/_1.html.haml +8 -0
  213. data/app/views/content_blocks/basic/_1.html.slim +8 -0
  214. data/app/views/content_blocks/basic/_2.html.erb +12 -0
  215. data/app/views/content_blocks/basic/_2.html.haml +8 -0
  216. data/app/views/content_blocks/basic/_2.html.slim +8 -0
  217. data/app/views/content_blocks/basic/_3.html.erb +12 -0
  218. data/app/views/content_blocks/basic/_3.html.haml +8 -0
  219. data/app/views/content_blocks/basic/_3.html.slim +8 -0
  220. data/app/views/content_blocks/basic/_4.html.erb +20 -0
  221. data/app/views/content_blocks/basic/_4.html.haml +14 -0
  222. data/app/views/content_blocks/basic/_4.html.slim +14 -0
  223. data/app/views/content_blocks/basic/_5.html.erb +16 -0
  224. data/app/views/content_blocks/basic/_5.html.haml +11 -0
  225. data/app/views/content_blocks/basic/_5.html.slim +11 -0
  226. data/app/views/content_blocks/basic/_6.html.erb +11 -0
  227. data/app/views/content_blocks/basic/_6.html.haml +7 -0
  228. data/app/views/content_blocks/basic/_6.html.slim +7 -0
  229. data/app/views/content_blocks/basic/_7.html.erb +11 -0
  230. data/app/views/content_blocks/basic/_7.html.haml +7 -0
  231. data/app/views/content_blocks/basic/_7.html.slim +7 -0
  232. data/app/views/content_blocks/basic/_8.html.erb +19 -0
  233. data/app/views/content_blocks/basic/_8.html.haml +14 -0
  234. data/app/views/content_blocks/basic/_8.html.slim +14 -0
  235. data/app/views/content_blocks/general/_1.html.erb +14 -0
  236. data/app/views/content_blocks/general/_1.html.haml +14 -0
  237. data/app/views/content_blocks/general/_1.html.slim +14 -0
  238. data/app/views/content_blocks/general/_10.html.erb +11 -0
  239. data/app/views/content_blocks/general/_10.html.haml +9 -0
  240. data/app/views/content_blocks/general/_10.html.slim +9 -0
  241. data/app/views/content_blocks/general/_11.html.erb +11 -0
  242. data/app/views/content_blocks/general/_11.html.haml +9 -0
  243. data/app/views/content_blocks/general/_11.html.slim +9 -0
  244. data/app/views/content_blocks/general/_12.html.erb +60 -0
  245. data/app/views/content_blocks/general/_12.html.haml +40 -0
  246. data/app/views/content_blocks/general/_12.html.slim +40 -0
  247. data/app/views/content_blocks/general/_13.html.erb +11 -0
  248. data/app/views/content_blocks/general/_13.html.haml +8 -0
  249. data/app/views/content_blocks/general/_13.html.slim +8 -0
  250. data/app/views/content_blocks/general/_14.html.erb +18 -0
  251. data/app/views/content_blocks/general/_14.html.haml +11 -0
  252. data/app/views/content_blocks/general/_14.html.slim +11 -0
  253. data/app/views/content_blocks/general/_15.html.erb +50 -0
  254. data/app/views/content_blocks/general/_15.html.haml +30 -0
  255. data/app/views/content_blocks/general/_15.html.slim +30 -0
  256. data/app/views/content_blocks/general/_16.html.erb +54 -0
  257. data/app/views/content_blocks/general/_16.html.haml +34 -0
  258. data/app/views/content_blocks/general/_16.html.slim +34 -0
  259. data/app/views/content_blocks/general/_17.html.erb +11 -0
  260. data/app/views/content_blocks/general/_17.html.haml +9 -0
  261. data/app/views/content_blocks/general/_17.html.slim +9 -0
  262. data/app/views/content_blocks/general/_18.html.erb +11 -0
  263. data/app/views/content_blocks/general/_18.html.haml +10 -0
  264. data/app/views/content_blocks/general/_18.html.slim +10 -0
  265. data/app/views/content_blocks/general/_19.html.erb +11 -0
  266. data/app/views/content_blocks/general/_19.html.haml +9 -0
  267. data/app/views/content_blocks/general/_19.html.slim +9 -0
  268. data/app/views/content_blocks/general/_2.html.erb +14 -0
  269. data/app/views/content_blocks/general/_2.html.haml +14 -0
  270. data/app/views/content_blocks/general/_2.html.slim +14 -0
  271. data/app/views/content_blocks/general/_20.html.erb +9 -0
  272. data/app/views/content_blocks/general/_20.html.haml +6 -0
  273. data/app/views/content_blocks/general/_20.html.slim +6 -0
  274. data/app/views/content_blocks/general/_21.html.erb +9 -0
  275. data/app/views/content_blocks/general/_21.html.haml +6 -0
  276. data/app/views/content_blocks/general/_21.html.slim +6 -0
  277. data/app/views/content_blocks/general/_22.html.erb +13 -0
  278. data/app/views/content_blocks/general/_22.html.haml +8 -0
  279. data/app/views/content_blocks/general/_22.html.slim +8 -0
  280. data/app/views/content_blocks/general/_23.html.erb +13 -0
  281. data/app/views/content_blocks/general/_23.html.haml +8 -0
  282. data/app/views/content_blocks/general/_23.html.slim +8 -0
  283. data/app/views/content_blocks/general/_24.html.erb +60 -0
  284. data/app/views/content_blocks/general/_24.html.haml +40 -0
  285. data/app/views/content_blocks/general/_24.html.slim +40 -0
  286. data/app/views/content_blocks/general/_25.html.erb +60 -0
  287. data/app/views/content_blocks/general/_25.html.haml +40 -0
  288. data/app/views/content_blocks/general/_25.html.slim +40 -0
  289. data/app/views/content_blocks/general/_26.html.erb +11 -0
  290. data/app/views/content_blocks/general/_26.html.haml +7 -0
  291. data/app/views/content_blocks/general/_26.html.slim +7 -0
  292. data/app/views/content_blocks/general/_27.html.erb +13 -0
  293. data/app/views/content_blocks/general/_27.html.haml +8 -0
  294. data/app/views/content_blocks/general/_27.html.slim +8 -0
  295. data/app/views/content_blocks/general/_28.html.erb +13 -0
  296. data/app/views/content_blocks/general/_28.html.haml +8 -0
  297. data/app/views/content_blocks/general/_28.html.slim +8 -0
  298. data/app/views/content_blocks/general/_29.html.erb +13 -0
  299. data/app/views/content_blocks/general/_29.html.haml +8 -0
  300. data/app/views/content_blocks/general/_29.html.slim +8 -0
  301. data/app/views/content_blocks/general/_3.html.erb +12 -0
  302. data/app/views/content_blocks/general/_3.html.haml +8 -0
  303. data/app/views/content_blocks/general/_3.html.slim +8 -0
  304. data/app/views/content_blocks/general/_30.html.erb +40 -0
  305. data/app/views/content_blocks/general/_30.html.haml +38 -0
  306. data/app/views/content_blocks/general/_30.html.slim +38 -0
  307. data/app/views/content_blocks/general/_31.html.erb +19 -0
  308. data/app/views/content_blocks/general/_31.html.haml +17 -0
  309. data/app/views/content_blocks/general/_31.html.slim +17 -0
  310. data/app/views/content_blocks/general/_32.html.erb +51 -0
  311. data/app/views/content_blocks/general/_32.html.haml +45 -0
  312. data/app/views/content_blocks/general/_32.html.slim +45 -0
  313. data/app/views/content_blocks/general/_33.html.erb +10 -0
  314. data/app/views/content_blocks/general/_33.html.haml +6 -0
  315. data/app/views/content_blocks/general/_33.html.slim +6 -0
  316. data/app/views/content_blocks/general/_34.html.erb +23 -0
  317. data/app/views/content_blocks/general/_34.html.haml +18 -0
  318. data/app/views/content_blocks/general/_34.html.slim +18 -0
  319. data/app/views/content_blocks/general/_35.html.erb +86 -0
  320. data/app/views/content_blocks/general/_35.html.haml +63 -0
  321. data/app/views/content_blocks/general/_35.html.slim +63 -0
  322. data/app/views/content_blocks/general/_36.html.erb +87 -0
  323. data/app/views/content_blocks/general/_36.html.haml +67 -0
  324. data/app/views/content_blocks/general/_36.html.slim +67 -0
  325. data/app/views/content_blocks/general/_37.html.erb +68 -0
  326. data/app/views/content_blocks/general/_37.html.haml +52 -0
  327. data/app/views/content_blocks/general/_37.html.slim +52 -0
  328. data/app/views/content_blocks/general/_38.html.erb +61 -0
  329. data/app/views/content_blocks/general/_38.html.haml +54 -0
  330. data/app/views/content_blocks/general/_38.html.slim +54 -0
  331. data/app/views/content_blocks/general/_39.html.erb +16 -0
  332. data/app/views/content_blocks/general/_39.html.haml +10 -0
  333. data/app/views/content_blocks/general/_39.html.slim +10 -0
  334. data/app/views/content_blocks/general/_4.html.erb +12 -0
  335. data/app/views/content_blocks/general/_4.html.haml +8 -0
  336. data/app/views/content_blocks/general/_4.html.slim +8 -0
  337. data/app/views/content_blocks/general/_40!dark.html.erb +9 -0
  338. data/app/views/content_blocks/general/_40!dark.html.haml +6 -0
  339. data/app/views/content_blocks/general/_40!dark.html.slim +6 -0
  340. data/app/views/content_blocks/general/_5.html.erb +28 -0
  341. data/app/views/content_blocks/general/_5.html.haml +19 -0
  342. data/app/views/content_blocks/general/_5.html.slim +19 -0
  343. data/app/views/content_blocks/general/_6.html.erb +49 -0
  344. data/app/views/content_blocks/general/_6.html.haml +34 -0
  345. data/app/views/content_blocks/general/_6.html.slim +34 -0
  346. data/app/views/content_blocks/general/_7.html.erb +21 -0
  347. data/app/views/content_blocks/general/_7.html.haml +14 -0
  348. data/app/views/content_blocks/general/_7.html.slim +14 -0
  349. data/app/views/content_blocks/general/_8.html.erb +21 -0
  350. data/app/views/content_blocks/general/_8.html.haml +14 -0
  351. data/app/views/content_blocks/general/_8.html.slim +14 -0
  352. data/app/views/content_blocks/general/_9.html.erb +31 -0
  353. data/app/views/content_blocks/general/_9.html.haml +21 -0
  354. data/app/views/content_blocks/general/_9.html.slim +21 -0
  355. data/app/views/content_blocks/headers/_1.html.erb +59 -0
  356. data/app/views/content_blocks/headers/_1.html.haml +42 -0
  357. data/app/views/content_blocks/headers/_1.html.slim +42 -0
  358. data/app/views/content_blocks/headers/_10.html.erb +57 -0
  359. data/app/views/content_blocks/headers/_10.html.haml +41 -0
  360. data/app/views/content_blocks/headers/_10.html.slim +41 -0
  361. data/app/views/content_blocks/headers/_2.html.erb +51 -0
  362. data/app/views/content_blocks/headers/_2.html.haml +37 -0
  363. data/app/views/content_blocks/headers/_2.html.slim +37 -0
  364. data/app/views/content_blocks/headers/_3.html.erb +51 -0
  365. data/app/views/content_blocks/headers/_3.html.haml +37 -0
  366. data/app/views/content_blocks/headers/_3.html.slim +37 -0
  367. data/app/views/content_blocks/headers/_4.html.erb +78 -0
  368. data/app/views/content_blocks/headers/_4.html.haml +55 -0
  369. data/app/views/content_blocks/headers/_4.html.slim +55 -0
  370. data/app/views/content_blocks/headers/_5.html.erb +77 -0
  371. data/app/views/content_blocks/headers/_5.html.haml +55 -0
  372. data/app/views/content_blocks/headers/_5.html.slim +55 -0
  373. data/app/views/content_blocks/headers/_6.html.erb +50 -0
  374. data/app/views/content_blocks/headers/_6.html.haml +37 -0
  375. data/app/views/content_blocks/headers/_6.html.slim +37 -0
  376. data/app/views/content_blocks/headers/_7.html.erb +54 -0
  377. data/app/views/content_blocks/headers/_7.html.haml +39 -0
  378. data/app/views/content_blocks/headers/_7.html.slim +39 -0
  379. data/app/views/content_blocks/headers/_8.html.erb +77 -0
  380. data/app/views/content_blocks/headers/_8.html.haml +56 -0
  381. data/app/views/content_blocks/headers/_8.html.slim +56 -0
  382. data/app/views/content_blocks/headers/_9.html.erb +76 -0
  383. data/app/views/content_blocks/headers/_9.html.haml +53 -0
  384. data/app/views/content_blocks/headers/_9.html.slim +53 -0
  385. data/app/views/content_blocks/landing_navs/_1.html.erb +22 -0
  386. data/app/views/content_blocks/landing_navs/_1.html.haml +16 -0
  387. data/app/views/content_blocks/landing_navs/_1.html.slim +16 -0
  388. data/app/views/content_blocks/landing_navs/_2.html.erb +25 -0
  389. data/app/views/content_blocks/landing_navs/_2.html.haml +18 -0
  390. data/app/views/content_blocks/landing_navs/_2.html.slim +18 -0
  391. data/app/views/content_blocks/landing_navs/_3.html.erb +28 -0
  392. data/app/views/content_blocks/landing_navs/_3.html.haml +20 -0
  393. data/app/views/content_blocks/landing_navs/_3.html.slim +20 -0
  394. data/app/views/content_blocks/landing_navs/_4.html.erb +31 -0
  395. data/app/views/content_blocks/landing_navs/_4.html.haml +24 -0
  396. data/app/views/content_blocks/landing_navs/_4.html.slim +24 -0
  397. data/app/views/content_blocks/landing_navs/_5.html.erb +31 -0
  398. data/app/views/content_blocks/landing_navs/_5.html.haml +24 -0
  399. data/app/views/content_blocks/landing_navs/_5.html.slim +24 -0
  400. data/app/views/devise/erb/confirmations/new.html.erb +36 -0
  401. data/app/views/devise/erb/invitations/edit.html.erb +41 -0
  402. data/app/views/devise/erb/invitations/new.html.erb +37 -0
  403. data/app/views/devise/erb/mailer/confirmation_instructions.html.erb +18 -0
  404. data/app/views/devise/erb/mailer/invitation_instructions.html.erb +20 -0
  405. data/app/views/devise/erb/mailer/reset_password_instructions.html.erb +18 -0
  406. data/app/views/devise/erb/mailer/unlock_instructions.html.erb +19 -0
  407. data/app/views/devise/erb/passwords/edit.html.erb +44 -0
  408. data/app/views/devise/erb/passwords/new.html.erb +37 -0
  409. data/app/views/devise/erb/registrations/edit.html.erb +73 -0
  410. data/app/views/devise/erb/registrations/new.html.erb +48 -0
  411. data/app/views/devise/erb/sessions/new.html.erb +79 -0
  412. data/app/views/devise/erb/unlocks/new.html.erb +36 -0
  413. data/app/views/devise/haml/confirmations/new.html.haml +22 -0
  414. data/app/views/devise/haml/invitations/edit.html.haml +29 -0
  415. data/app/views/devise/haml/invitations/new.html.haml +21 -0
  416. data/app/views/devise/haml/mailer/confirmation_instructions.html.haml +10 -0
  417. data/app/views/devise/haml/mailer/invitation_instructions.html.haml +11 -0
  418. data/app/views/devise/haml/mailer/reset_password_instructions.html.haml +10 -0
  419. data/app/views/devise/haml/mailer/unlock_instructions.html.haml +10 -0
  420. data/app/views/devise/haml/passwords/edit.html.haml +27 -0
  421. data/app/views/devise/haml/passwords/new.html.haml +22 -0
  422. data/app/views/devise/haml/registrations/edit.html.haml +44 -0
  423. data/app/views/devise/haml/registrations/new.html.haml +30 -0
  424. data/app/views/devise/haml/sessions/new.html.haml +44 -0
  425. data/app/views/devise/haml/unlocks/new.html.haml +23 -0
  426. data/app/views/devise/slim/confirmations/new.html.haml +24 -0
  427. data/app/views/devise/slim/invitations/edit.html.haml +24 -0
  428. data/app/views/devise/slim/invitations/new.html.haml +20 -0
  429. data/app/views/devise/slim/mailer/confirmation_instructions.html.haml +26 -0
  430. data/app/views/devise/slim/mailer/invitation_instructions.html.haml +25 -0
  431. data/app/views/devise/slim/mailer/reset_password_instructions.html.haml +27 -0
  432. data/app/views/devise/slim/mailer/unlock_instructions.html.haml +27 -0
  433. data/app/views/devise/slim/passwords/edit.html.haml +26 -0
  434. data/app/views/devise/slim/passwords/new.html.haml +25 -0
  435. data/app/views/devise/slim/registrations/edit.html.haml +40 -0
  436. data/app/views/devise/slim/registrations/new.html.haml +32 -0
  437. data/app/views/devise/slim/sessions/new.html.haml +43 -0
  438. data/app/views/devise/slim/unlocks/new.html.haml +24 -0
  439. data/app/views/kaminari/_first_page.html.erb +15 -0
  440. data/app/views/kaminari/_gap.html.erb +8 -0
  441. data/app/views/kaminari/_gap.html.haml +2 -0
  442. data/app/views/kaminari/_last_page.html.erb +15 -0
  443. data/app/views/kaminari/_next_page.html.erb +15 -0
  444. data/app/views/kaminari/_next_page.html.haml +2 -0
  445. data/app/views/kaminari/_page.html.erb +12 -0
  446. data/app/views/kaminari/_page.html.haml +2 -0
  447. data/app/views/kaminari/_paginator.html.erb +27 -0
  448. data/app/views/kaminari/_paginator.html.haml +10 -0
  449. data/app/views/kaminari/_prev_page.html.erb +15 -0
  450. data/app/views/kaminari/_prev_page.html.haml +2 -0
  451. data/kiso_themes.gemspec +37 -0
  452. data/lib/generators/kiso_themes/analytics_dashboard_pages_generator.rb +16 -0
  453. data/lib/generators/kiso_themes/analytics_detail_pages_generator.rb +16 -0
  454. data/lib/generators/kiso_themes/app_pages_generator.rb +33 -0
  455. data/lib/generators/kiso_themes/blog_archive_pages_generator.rb +16 -0
  456. data/lib/generators/kiso_themes/blog_post_pages_generator.rb +16 -0
  457. data/lib/generators/kiso_themes/content_blocks_generator.rb +30 -0
  458. data/lib/generators/kiso_themes/customize_generator.rb +52 -0
  459. data/lib/generators/kiso_themes/dashboard_pages_generator.rb +37 -0
  460. data/lib/generators/kiso_themes/devise_generator.rb +45 -0
  461. data/lib/generators/kiso_themes/email_layout_generator.rb +41 -0
  462. data/lib/generators/kiso_themes/error_pages_generator.rb +19 -0
  463. data/lib/generators/kiso_themes/faq_pages_generator.rb +17 -0
  464. data/lib/generators/kiso_themes/handler_support.rb +27 -0
  465. data/lib/generators/kiso_themes/install_generator.rb +246 -0
  466. data/lib/generators/kiso_themes/landing_pages_generator.rb +16 -0
  467. data/lib/generators/kiso_themes/legal_pages_generator.rb +25 -0
  468. data/lib/generators/kiso_themes/page_generator.rb +37 -0
  469. data/lib/generators/kiso_themes/pricing_pages_generator.rb +10 -0
  470. data/lib/generators/kiso_themes/templates/README.tt +58 -0
  471. data/lib/generators/kiso_themes/templates/README_CUSTOMIZE +38 -0
  472. data/lib/generators/kiso_themes/templates/customizations/styles/auriga/blue.css.scss +120 -0
  473. data/lib/generators/kiso_themes/templates/customizations/styles/auriga/green.css.scss +120 -0
  474. data/lib/generators/kiso_themes/templates/customizations/styles/auriga/red.css.scss +120 -0
  475. data/lib/generators/kiso_themes/templates/customizations/styles/auriga/yellow.css.scss +120 -0
  476. data/lib/generators/kiso_themes/templates/customizations/styles/gemini/amber.css.scss +118 -0
  477. data/lib/generators/kiso_themes/templates/customizations/styles/gemini/blue.css.scss +118 -0
  478. data/lib/generators/kiso_themes/templates/customizations/styles/gemini/granite.css.scss +118 -0
  479. data/lib/generators/kiso_themes/templates/customizations/styles/gemini/ocean.css.scss +118 -0
  480. data/lib/generators/kiso_themes/templates/customizations/styles/lyra/azure.css.scss +119 -0
  481. data/lib/generators/kiso_themes/templates/customizations/styles/lyra/charcoal.css.scss +119 -0
  482. data/lib/generators/kiso_themes/templates/customizations/styles/lyra/lime.css.scss +119 -0
  483. data/lib/generators/kiso_themes/templates/customizations/styles/lyra/raspberry.css.scss +119 -0
  484. data/lib/generators/kiso_themes/templates/customizations/styles/orion/blue.css.scss +118 -0
  485. data/lib/generators/kiso_themes/templates/customizations/styles/orion/green.css.scss +118 -0
  486. data/lib/generators/kiso_themes/templates/customizations/styles/orion/orange.css.scss +118 -0
  487. data/lib/generators/kiso_themes/templates/customizations/styles/orion/purple.css.scss +118 -0
  488. data/lib/generators/kiso_themes/templates/error_pages/403.html.erb +66 -0
  489. data/lib/generators/kiso_themes/templates/error_pages/404.html.erb +67 -0
  490. data/lib/generators/kiso_themes/templates/error_pages/422.html.erb +66 -0
  491. data/lib/generators/kiso_themes/templates/error_pages/500.html.erb +67 -0
  492. data/lib/generators/kiso_themes/templates/kiso_themes.css +31 -0
  493. data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.erb +124 -0
  494. data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.haml +81 -0
  495. data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.slim +81 -0
  496. data/lib/generators/kiso_themes/templates/layouts/_base.html.erb +34 -0
  497. data/lib/generators/kiso_themes/templates/layouts/_base.html.haml +19 -0
  498. data/lib/generators/kiso_themes/templates/layouts/_base.html.slim +19 -0
  499. data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.erb +134 -0
  500. data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.haml +87 -0
  501. data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.slim +87 -0
  502. data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.erb +30 -0
  503. data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.haml +17 -0
  504. data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.slim +17 -0
  505. data/lib/generators/kiso_themes/templates/layouts/_flashes.html.erb +13 -0
  506. data/lib/generators/kiso_themes/templates/layouts/_flashes.html.haml +10 -0
  507. data/lib/generators/kiso_themes/templates/layouts/_flashes.html.slim +10 -0
  508. data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.erb +66 -0
  509. data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.haml +42 -0
  510. data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.slim +42 -0
  511. data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.erb +25 -0
  512. data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.haml +16 -0
  513. data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.slim +16 -0
  514. data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.erb +0 -0
  515. data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.haml +0 -0
  516. data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.slim +1 -0
  517. data/lib/generators/kiso_themes/templates/layouts/application.html.erb +4 -0
  518. data/lib/generators/kiso_themes/templates/layouts/application.html.haml +3 -0
  519. data/lib/generators/kiso_themes/templates/layouts/application.html.slim +3 -0
  520. data/lib/generators/kiso_themes/templates/layouts/devise.html.erb +3 -0
  521. data/lib/generators/kiso_themes/templates/layouts/devise.html.haml +5 -0
  522. data/lib/generators/kiso_themes/templates/layouts/devise.html.slim +5 -0
  523. data/lib/generators/kiso_themes/templates/layouts/email.html.erb +68 -0
  524. data/lib/generators/kiso_themes/templates/layouts/email.html.haml +40 -0
  525. data/lib/generators/kiso_themes/templates/layouts/email.html.slim +40 -0
  526. data/lib/generators/kiso_themes/templates/layouts/landing.html.erb +3 -0
  527. data/lib/generators/kiso_themes/templates/layouts/landing.html.haml +2 -0
  528. data/lib/generators/kiso_themes/templates/layouts/landing.html.slim +2 -0
  529. data/lib/generators/kiso_themes/templates/layouts/scaffold.html.erb +25 -0
  530. data/lib/generators/kiso_themes/templates/layouts/scaffold.html.haml +15 -0
  531. data/lib/generators/kiso_themes/templates/layouts/scaffold.html.slim +15 -0
  532. data/lib/generators/kiso_themes/templates/layouts/sidenav.html.erb +33 -0
  533. data/lib/generators/kiso_themes/templates/layouts/sidenav.html.haml +19 -0
  534. data/lib/generators/kiso_themes/templates/layouts/sidenav.html.slim +19 -0
  535. data/lib/generators/kiso_themes/templates/rails6/index.js +39 -0
  536. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/bootstrap.js +20 -0
  537. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/bootstrap_switch.js +23 -0
  538. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/chartjs.js +11 -0
  539. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/clipboard.js +12 -0
  540. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/countTo.js +1 -0
  541. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/countdown.js +28 -0
  542. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/chartjs.js +101 -0
  543. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/dashboard.js +229 -0
  544. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/data_generator.js +27 -0
  545. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/easypiechart.js +41 -0
  546. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/flot.js +258 -0
  547. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/gmaps.js +163 -0
  548. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/jqvectormap.js +65 -0
  549. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/sparklines.js +156 -0
  550. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/easypiechart.js +12 -0
  551. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/fastclick.js +16 -0
  552. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/fitie.js +14 -0
  553. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/flot.js +11 -0
  554. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/forms.js +13 -0
  555. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/gmaps.js +9 -0
  556. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/header.js +33 -0
  557. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/inspect_mode/inspect_mode.js +580 -0
  558. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/jasny.js +13 -0
  559. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/jqvectormaps.js +24 -0
  560. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/kernel.js +48 -0
  561. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/metis_menu.js +16 -0
  562. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/parallax.js +14 -0
  563. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/popper.js +1 -0
  564. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/prettify.js +12 -0
  565. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/prism.js +10 -0
  566. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sheets.js +98 -0
  567. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sidenav.js +77 -0
  568. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/slimscroll.js +1 -0
  569. data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sparklines.js +1 -0
  570. data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.erb +55 -0
  571. data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.haml +36 -0
  572. data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.slim +36 -0
  573. data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.erb +52 -0
  574. data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.haml +44 -0
  575. data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.slim +44 -0
  576. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.erb +15 -0
  577. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.haml +10 -0
  578. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.slim +10 -0
  579. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.erb +48 -0
  580. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.haml +34 -0
  581. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.slim +34 -0
  582. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.erb +59 -0
  583. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.haml +42 -0
  584. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.slim +42 -0
  585. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.erb +70 -0
  586. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.haml +47 -0
  587. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.slim +47 -0
  588. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.erb +65 -0
  589. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.haml +51 -0
  590. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.slim +51 -0
  591. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.erb +76 -0
  592. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.haml +50 -0
  593. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.slim +50 -0
  594. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.erb +76 -0
  595. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.haml +41 -0
  596. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.slim +41 -0
  597. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.erb +76 -0
  598. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.haml +41 -0
  599. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.slim +41 -0
  600. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.erb +76 -0
  601. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.haml +41 -0
  602. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.slim +41 -0
  603. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.erb +75 -0
  604. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.haml +41 -0
  605. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.slim +41 -0
  606. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.erb +76 -0
  607. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.haml +41 -0
  608. data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.slim +41 -0
  609. data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.erb +61 -0
  610. data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.haml +50 -0
  611. data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.slim +50 -0
  612. data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.erb +38 -0
  613. data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.haml +25 -0
  614. data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.slim +25 -0
  615. data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.erb +74 -0
  616. data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.haml +45 -0
  617. data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.slim +45 -0
  618. data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.erb +137 -0
  619. data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.haml +135 -0
  620. data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.slim +135 -0
  621. data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.erb +11 -0
  622. data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.haml +7 -0
  623. data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.slim +7 -0
  624. data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.erb +54 -0
  625. data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.haml +36 -0
  626. data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.slim +36 -0
  627. data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.erb +102 -0
  628. data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.haml +80 -0
  629. data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.slim +80 -0
  630. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.erb +11 -0
  631. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.haml +321 -0
  632. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.slim +321 -0
  633. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.erb +437 -0
  634. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.haml +306 -0
  635. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.slim +306 -0
  636. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.erb +148 -0
  637. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.haml +96 -0
  638. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.slim +96 -0
  639. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.erb +126 -0
  640. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.haml +77 -0
  641. data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.slim +77 -0
  642. data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.erb +16 -0
  643. data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.haml +15 -0
  644. data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.slim +15 -0
  645. data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.erb +20 -0
  646. data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.haml +13 -0
  647. data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.slim +13 -0
  648. data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.erb +92 -0
  649. data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.haml +80 -0
  650. data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.slim +80 -0
  651. data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.erb +227 -0
  652. data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.haml +168 -0
  653. data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.slim +168 -0
  654. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.erb +17 -0
  655. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.haml +11 -0
  656. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.slim +11 -0
  657. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.erb +18 -0
  658. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.haml +11 -0
  659. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.slim +11 -0
  660. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.erb +18 -0
  661. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.haml +11 -0
  662. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.slim +11 -0
  663. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.erb +16 -0
  664. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.haml +10 -0
  665. data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.slim +10 -0
  666. data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.erb +103 -0
  667. data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.haml +88 -0
  668. data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.slim +88 -0
  669. data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.erb +89 -0
  670. data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.haml +57 -0
  671. data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.slim +57 -0
  672. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.erb +41 -0
  673. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.haml +26 -0
  674. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.slim +26 -0
  675. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.erb +38 -0
  676. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.haml +23 -0
  677. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.slim +23 -0
  678. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.erb +185 -0
  679. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.haml +138 -0
  680. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.slim +138 -0
  681. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.erb +96 -0
  682. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.haml +58 -0
  683. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.slim +58 -0
  684. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.erb +26 -0
  685. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.haml +13 -0
  686. data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.slim +13 -0
  687. data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.erb +159 -0
  688. data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.haml +100 -0
  689. data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.slim +100 -0
  690. data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.erb +205 -0
  691. data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.haml +206 -0
  692. data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.slim +206 -0
  693. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.erb +64 -0
  694. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.haml +37 -0
  695. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.slim +37 -0
  696. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.erb +63 -0
  697. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.haml +36 -0
  698. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.slim +36 -0
  699. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.erb +63 -0
  700. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.haml +36 -0
  701. data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.slim +36 -0
  702. data/lib/generators/kiso_themes/user_account_pages_generator.rb +47 -0
  703. data/lib/generators/rails/scaffold_controller_generator.rb +37 -0
  704. data/lib/generators/rails/templates/controller.rb +70 -0
  705. data/lib/kiso_themes/compatibility.rb +9 -0
  706. data/lib/kiso_themes/engine.rb +87 -0
  707. data/lib/kiso_themes/extensions/simple_form/errors_component.rb +13 -0
  708. data/lib/kiso_themes/extensions/simple_form/form_builder.rb +17 -0
  709. data/lib/kiso_themes/extensions/simple_form/required_component.rb +21 -0
  710. data/lib/kiso_themes/extensions/simple_form/setup.rb +201 -0
  711. data/lib/kiso_themes/extensions/simple_form.rb +4 -0
  712. data/lib/kiso_themes/extensions/will_paginate.rb +30 -0
  713. data/lib/kiso_themes/kiso_themes.rb +3 -0
  714. data/lib/kiso_themes/railtie.rb +7 -0
  715. data/lib/kiso_themes/version.rb +41 -0
  716. data/lib/kiso_themes.rb +1 -0
  717. data/lib/sass/kiso_themes/_core/_accordion.scss +27 -0
  718. data/lib/sass/kiso_themes/_core/_alerts.scss +150 -0
  719. data/lib/sass/kiso_themes/_core/_backgrounds.scss +108 -0
  720. data/lib/sass/kiso_themes/_core/_badges.scss +45 -0
  721. data/lib/sass/kiso_themes/_core/_blog.scss +17 -0
  722. data/lib/sass/kiso_themes/_core/_borders.scss +34 -0
  723. data/lib/sass/kiso_themes/_core/_breadcrumbs.scss +82 -0
  724. data/lib/sass/kiso_themes/_core/_buttons.scss +202 -0
  725. data/lib/sass/kiso_themes/_core/_cards.scss +166 -0
  726. data/lib/sass/kiso_themes/_core/_carousel.scss +15 -0
  727. data/lib/sass/kiso_themes/_core/_checkboxes-radio.scss +240 -0
  728. data/lib/sass/kiso_themes/_core/_dropdown.scss +225 -0
  729. data/lib/sass/kiso_themes/_core/_font_family.scss +1 -0
  730. data/lib/sass/kiso_themes/_core/_footers.scss +44 -0
  731. data/lib/sass/kiso_themes/_core/_grid.scss +9 -0
  732. data/lib/sass/kiso_themes/_core/_images.scss +7 -0
  733. data/lib/sass/kiso_themes/_core/_input_groups.scss +139 -0
  734. data/lib/sass/kiso_themes/_core/_inputs.scss +280 -0
  735. data/lib/sass/kiso_themes/_core/_landing_headers.scss +15 -0
  736. data/lib/sass/kiso_themes/_core/_listgroups.scss +16 -0
  737. data/lib/sass/kiso_themes/_core/_loaders.scss +690 -0
  738. data/lib/sass/kiso_themes/_core/_misc.scss +239 -0
  739. data/lib/sass/kiso_themes/_core/_mixins.scss +18 -0
  740. data/lib/sass/kiso_themes/_core/_modals.scss +190 -0
  741. data/lib/sass/kiso_themes/_core/_navbar.scss +260 -0
  742. data/lib/sass/kiso_themes/_core/_navs.scss +123 -0
  743. data/lib/sass/kiso_themes/_core/_page_components.scss +275 -0
  744. data/lib/sass/kiso_themes/_core/_pagination.scss +152 -0
  745. data/lib/sass/kiso_themes/_core/_pills.scss +131 -0
  746. data/lib/sass/kiso_themes/_core/_popover.scss +59 -0
  747. data/lib/sass/kiso_themes/_core/_pricing_tables.scss +111 -0
  748. data/lib/sass/kiso_themes/_core/_progress.scss +138 -0
  749. data/lib/sass/kiso_themes/_core/_responsive.scss +237 -0
  750. data/lib/sass/kiso_themes/_core/_scaffold.scss +6 -0
  751. data/lib/sass/kiso_themes/_core/_sidenav.scss +433 -0
  752. data/lib/sass/kiso_themes/_core/_simple_animations.scss +116 -0
  753. data/lib/sass/kiso_themes/_core/_tables.scss +22 -0
  754. data/lib/sass/kiso_themes/_core/_tabs.scss +162 -0
  755. data/lib/sass/kiso_themes/_core/_timelines.scss +54 -0
  756. data/lib/sass/kiso_themes/_core/_tooltips.scss +28 -0
  757. data/lib/sass/kiso_themes/_core/_typography.scss +400 -0
  758. data/lib/sass/kiso_themes/_core/_variables.scss +431 -0
  759. data/lib/sass/kiso_themes/_core/cards/_card_activity_feed.scss +84 -0
  760. data/lib/sass/kiso_themes/_core/cards/_card_chat.scss +93 -0
  761. data/lib/sass/kiso_themes/_core/cards/_card_images.scss +114 -0
  762. data/lib/sass/kiso_themes/_core/cards/_card_items.scss +72 -0
  763. data/lib/sass/kiso_themes/_core/cards/_card_metric.scss +134 -0
  764. data/lib/sass/kiso_themes/_core/cards/_card_sheet.scss +31 -0
  765. data/lib/sass/kiso_themes/_core/cards/_card_table.scss +28 -0
  766. data/lib/sass/kiso_themes/_core/cards/_card_tiles.scss +27 -0
  767. data/lib/sass/kiso_themes/_core/cards/_cards_mini.scss +142 -0
  768. data/lib/sass/kiso_themes/_core/devise/1.scss +40 -0
  769. data/lib/sass/kiso_themes/_core/landing_pages/landing_1.scss +6 -0
  770. data/lib/sass/kiso_themes/_core/landing_pages/landing_2.scss +35 -0
  771. data/lib/sass/kiso_themes/_core/landing_pages/landing_3.scss +11 -0
  772. data/lib/sass/kiso_themes/_core/landing_pages/landing_4.scss +10 -0
  773. data/lib/sass/kiso_themes/_core/landing_pages/landing_5.scss +11 -0
  774. data/lib/sass/kiso_themes/_core/mixins/_badges.scss +4 -0
  775. data/lib/sass/kiso_themes/_core/mixins/_buttons.scss +128 -0
  776. data/lib/sass/kiso_themes/_core/mixins/_colors.scss +17 -0
  777. data/lib/sass/kiso_themes/_core/mixins/_datepicker.scss +121 -0
  778. data/lib/sass/kiso_themes/_core/mixins/_dropdown.scss +30 -0
  779. data/lib/sass/kiso_themes/_core/mixins/_inputs.scss +117 -0
  780. data/lib/sass/kiso_themes/_core/mixins/_modals.scss +12 -0
  781. data/lib/sass/kiso_themes/_core/mixins/_navbar.scss +261 -0
  782. data/lib/sass/kiso_themes/_core/mixins/_pages.scss +7 -0
  783. data/lib/sass/kiso_themes/_core/mixins/_popovers.scss +29 -0
  784. data/lib/sass/kiso_themes/_core/mixins/_theme.scss +239 -0
  785. data/lib/sass/kiso_themes/_core/mixins/_transparency.scss +8 -0
  786. data/lib/sass/kiso_themes/_core/mixins/_vendor-prefixes.scss +317 -0
  787. data/lib/sass/kiso_themes/_core/plugins/_easy_pie_chart.scss +21 -0
  788. data/lib/sass/kiso_themes/_core/plugins/_jasny_bootstrap.scss +7 -0
  789. data/lib/sass/kiso_themes/_core/plugins/_jquery_sparklines.scss +6 -0
  790. data/lib/sass/kiso_themes/_core/plugins/_jqvectormap.scss +135 -0
  791. data/lib/sass/kiso_themes/_core/plugins/_plugin-bootstrap-switch.scss +220 -0
  792. data/lib/sass/kiso_themes/_core/plugins/_plugin-datepicker.scss +554 -0
  793. data/lib/sass/kiso_themes/_core/plugins/_plugin-nouislider.scss +351 -0
  794. data/lib/sass/kiso_themes/auriga/_cards.scss +3 -0
  795. data/lib/sass/kiso_themes/auriga/_font_family.scss +1 -0
  796. data/lib/sass/kiso_themes/auriga/_tables.scss +54 -0
  797. data/lib/sass/kiso_themes/auriga/styles/_blue_variables.scss +102 -0
  798. data/lib/sass/kiso_themes/auriga/styles/_green_variables.scss +82 -0
  799. data/lib/sass/kiso_themes/auriga/styles/_red_variables.scss +82 -0
  800. data/lib/sass/kiso_themes/auriga/styles/_yellow_variables.scss +82 -0
  801. data/lib/sass/kiso_themes/gemini/_font_family.scss +1 -0
  802. data/lib/sass/kiso_themes/gemini/styles/_amber_variables.scss +54 -0
  803. data/lib/sass/kiso_themes/gemini/styles/_blue_variables.scss +52 -0
  804. data/lib/sass/kiso_themes/gemini/styles/_granite_variables.scss +55 -0
  805. data/lib/sass/kiso_themes/gemini/styles/_ocean_variables.scss +54 -0
  806. data/lib/sass/kiso_themes/lyra/_font_family.scss +1 -0
  807. data/lib/sass/kiso_themes/lyra/styles/_azure_variables.scss +56 -0
  808. data/lib/sass/kiso_themes/lyra/styles/_charcoal_variables.scss +56 -0
  809. data/lib/sass/kiso_themes/lyra/styles/_lime_variables.scss +56 -0
  810. data/lib/sass/kiso_themes/lyra/styles/_raspberry_variables.scss +56 -0
  811. data/lib/sass/kiso_themes/orion/_font_family.scss +1 -0
  812. data/lib/sass/kiso_themes/orion/styles/_blue_variables.scss +71 -0
  813. data/lib/sass/kiso_themes/orion/styles/_green_variables.scss +56 -0
  814. data/lib/sass/kiso_themes/orion/styles/_orange_variables.scss +48 -0
  815. data/lib/sass/kiso_themes/orion/styles/_purple_variables.scss +57 -0
  816. data/lib/sass/vendor/bootstrap/_alert.scss +51 -0
  817. data/lib/sass/vendor/bootstrap/_badge.scss +54 -0
  818. data/lib/sass/vendor/bootstrap/_breadcrumb.scss +41 -0
  819. data/lib/sass/vendor/bootstrap/_button-group.scss +163 -0
  820. data/lib/sass/vendor/bootstrap/_buttons.scss +137 -0
  821. data/lib/sass/vendor/bootstrap/_card.scss +289 -0
  822. data/lib/sass/vendor/bootstrap/_carousel.scss +197 -0
  823. data/lib/sass/vendor/bootstrap/_close.scss +41 -0
  824. data/lib/sass/vendor/bootstrap/_code.scss +48 -0
  825. data/lib/sass/vendor/bootstrap/_custom-forms.scss +507 -0
  826. data/lib/sass/vendor/bootstrap/_dropdown.scss +191 -0
  827. data/lib/sass/vendor/bootstrap/_forms.scss +330 -0
  828. data/lib/sass/vendor/bootstrap/_functions.scss +86 -0
  829. data/lib/sass/vendor/bootstrap/_grid.scss +52 -0
  830. data/lib/sass/vendor/bootstrap/_images.scss +42 -0
  831. data/lib/sass/vendor/bootstrap/_input-group.scss +193 -0
  832. data/lib/sass/vendor/bootstrap/_jumbotron.scss +17 -0
  833. data/lib/sass/vendor/bootstrap/_list-group.scss +149 -0
  834. data/lib/sass/vendor/bootstrap/_media.scss +8 -0
  835. data/lib/sass/vendor/bootstrap/_mixins.scss +47 -0
  836. data/lib/sass/vendor/bootstrap/_modal.scss +229 -0
  837. data/lib/sass/vendor/bootstrap/_nav.scss +120 -0
  838. data/lib/sass/vendor/bootstrap/_navbar.scss +294 -0
  839. data/lib/sass/vendor/bootstrap/_pagination.scss +83 -0
  840. data/lib/sass/vendor/bootstrap/_popover.scss +171 -0
  841. data/lib/sass/vendor/bootstrap/_print.scss +141 -0
  842. data/lib/sass/vendor/bootstrap/_progress.scss +43 -0
  843. data/lib/sass/vendor/bootstrap/_reboot.scss +483 -0
  844. data/lib/sass/vendor/bootstrap/_root.scss +19 -0
  845. data/lib/sass/vendor/bootstrap/_spinners.scss +55 -0
  846. data/lib/sass/vendor/bootstrap/_tables.scss +185 -0
  847. data/lib/sass/vendor/bootstrap/_toasts.scss +44 -0
  848. data/lib/sass/vendor/bootstrap/_tooltip.scss +115 -0
  849. data/lib/sass/vendor/bootstrap/_transitions.scss +20 -0
  850. data/lib/sass/vendor/bootstrap/_type.scss +125 -0
  851. data/lib/sass/vendor/bootstrap/_utilities.scss +17 -0
  852. data/lib/sass/vendor/bootstrap/_variables.scss +1123 -0
  853. data/lib/sass/vendor/bootstrap/bootstrap-grid.scss +29 -0
  854. data/lib/sass/vendor/bootstrap/bootstrap-reboot.scss +12 -0
  855. data/lib/sass/vendor/bootstrap/bootstrap.scss +44 -0
  856. data/lib/sass/vendor/bootstrap/mixins/_alert.scss +13 -0
  857. data/lib/sass/vendor/bootstrap/mixins/_background-variant.scss +21 -0
  858. data/lib/sass/vendor/bootstrap/mixins/_badge.scss +17 -0
  859. data/lib/sass/vendor/bootstrap/mixins/_border-radius.scss +63 -0
  860. data/lib/sass/vendor/bootstrap/mixins/_box-shadow.scss +20 -0
  861. data/lib/sass/vendor/bootstrap/mixins/_breakpoints.scss +123 -0
  862. data/lib/sass/vendor/bootstrap/mixins/_buttons.scss +107 -0
  863. data/lib/sass/vendor/bootstrap/mixins/_caret.scss +62 -0
  864. data/lib/sass/vendor/bootstrap/mixins/_clearfix.scss +7 -0
  865. data/lib/sass/vendor/bootstrap/mixins/_deprecate.scss +10 -0
  866. data/lib/sass/vendor/bootstrap/mixins/_float.scss +14 -0
  867. data/lib/sass/vendor/bootstrap/mixins/_forms.scss +192 -0
  868. data/lib/sass/vendor/bootstrap/mixins/_gradients.scss +45 -0
  869. data/lib/sass/vendor/bootstrap/mixins/_grid-framework.scss +66 -0
  870. data/lib/sass/vendor/bootstrap/mixins/_grid.scss +51 -0
  871. data/lib/sass/vendor/bootstrap/mixins/_hover.scss +37 -0
  872. data/lib/sass/vendor/bootstrap/mixins/_image.scss +36 -0
  873. data/lib/sass/vendor/bootstrap/mixins/_list-group.scss +21 -0
  874. data/lib/sass/vendor/bootstrap/mixins/_lists.scss +7 -0
  875. data/lib/sass/vendor/bootstrap/mixins/_nav-divider.scss +10 -0
  876. data/lib/sass/vendor/bootstrap/mixins/_pagination.scss +22 -0
  877. data/lib/sass/vendor/bootstrap/mixins/_reset-text.scss +17 -0
  878. data/lib/sass/vendor/bootstrap/mixins/_resize.scss +6 -0
  879. data/lib/sass/vendor/bootstrap/mixins/_screen-reader.scss +33 -0
  880. data/lib/sass/vendor/bootstrap/mixins/_size.scss +7 -0
  881. data/lib/sass/vendor/bootstrap/mixins/_table-row.scss +39 -0
  882. data/lib/sass/vendor/bootstrap/mixins/_text-emphasis.scss +16 -0
  883. data/lib/sass/vendor/bootstrap/mixins/_text-hide.scss +11 -0
  884. data/lib/sass/vendor/bootstrap/mixins/_text-truncate.scss +8 -0
  885. data/lib/sass/vendor/bootstrap/mixins/_transition.scss +16 -0
  886. data/lib/sass/vendor/bootstrap/mixins/_visibility.scss +8 -0
  887. data/lib/sass/vendor/bootstrap/utilities/_align.scss +8 -0
  888. data/lib/sass/vendor/bootstrap/utilities/_background.scss +19 -0
  889. data/lib/sass/vendor/bootstrap/utilities/_borders.scss +75 -0
  890. data/lib/sass/vendor/bootstrap/utilities/_clearfix.scss +3 -0
  891. data/lib/sass/vendor/bootstrap/utilities/_display.scss +26 -0
  892. data/lib/sass/vendor/bootstrap/utilities/_embed.scss +39 -0
  893. data/lib/sass/vendor/bootstrap/utilities/_flex.scss +51 -0
  894. data/lib/sass/vendor/bootstrap/utilities/_float.scss +11 -0
  895. data/lib/sass/vendor/bootstrap/utilities/_overflow.scss +5 -0
  896. data/lib/sass/vendor/bootstrap/utilities/_position.scss +32 -0
  897. data/lib/sass/vendor/bootstrap/utilities/_screenreaders.scss +11 -0
  898. data/lib/sass/vendor/bootstrap/utilities/_shadows.scss +6 -0
  899. data/lib/sass/vendor/bootstrap/utilities/_sizing.scss +20 -0
  900. data/lib/sass/vendor/bootstrap/utilities/_spacing.scss +73 -0
  901. data/lib/sass/vendor/bootstrap/utilities/_stretched-link.scss +19 -0
  902. data/lib/sass/vendor/bootstrap/utilities/_text.scss +72 -0
  903. data/lib/sass/vendor/bootstrap/utilities/_visibility.scss +13 -0
  904. data/lib/sass/vendor/bootstrap/vendor/_rfs.scss +204 -0
  905. data/lib/sass/vendor/font_awesome/_animated.scss +34 -0
  906. data/lib/sass/vendor/font_awesome/_bordered-pulled.scss +25 -0
  907. data/lib/sass/vendor/font_awesome/_core.scss +12 -0
  908. data/lib/sass/vendor/font_awesome/_fixed-width.scss +6 -0
  909. data/lib/sass/vendor/font_awesome/_icons.scss +789 -0
  910. data/lib/sass/vendor/font_awesome/_larger.scss +13 -0
  911. data/lib/sass/vendor/font_awesome/_list.scss +19 -0
  912. data/lib/sass/vendor/font_awesome/_mixins.scss +60 -0
  913. data/lib/sass/vendor/font_awesome/_path.scss +14 -0
  914. data/lib/sass/vendor/font_awesome/_rotated-flipped.scss +20 -0
  915. data/lib/sass/vendor/font_awesome/_screen-reader.scss +5 -0
  916. data/lib/sass/vendor/font_awesome/_stacked.scss +20 -0
  917. data/lib/sass/vendor/font_awesome/_variables.scss +800 -0
  918. data/lib/sass/vendor/font_awesome/font-awesome.scss +18 -0
  919. data/lib/sass/vendor/ionicons/_ionicons-font.scss +27 -0
  920. data/lib/sass/vendor/ionicons/_ionicons-icons.scss +1473 -0
  921. data/lib/sass/vendor/ionicons/_ionicons-variables.scss +741 -0
  922. data/lib/sass/vendor/ionicons/ionicons.scss +15 -0
  923. data/lib/sass/vendor/mdiicons/_icons-material-design.scss +42 -0
  924. data/lib/sass/vendor/prism/twilight.css +198 -0
  925. data/lib/sass/vendor/themify/themify-icons.css +1082 -0
  926. data/lib/templates/erb/scaffold/_form.html.erb +50 -0
  927. data/lib/templates/erb/scaffold/edit.html.erb +37 -0
  928. data/lib/templates/erb/scaffold/index.html.erb +80 -0
  929. data/lib/templates/erb/scaffold/new.html.erb +37 -0
  930. data/lib/templates/erb/scaffold/show.html.erb +53 -0
  931. data/lib/templates/haml/scaffold/_form.html.haml +29 -0
  932. data/lib/templates/haml/scaffold/edit.html.haml +6 -0
  933. data/lib/templates/haml/scaffold/index.html.haml +41 -0
  934. data/lib/templates/haml/scaffold/new.html.haml +6 -0
  935. data/lib/templates/haml/scaffold/show.html.haml +16 -0
  936. data/lib/templates/slim/scaffold/_form.html.haml +29 -0
  937. data/lib/templates/slim/scaffold/edit.html.haml +6 -0
  938. data/lib/templates/slim/scaffold/index.html.haml +41 -0
  939. data/lib/templates/slim/scaffold/new.html.haml +6 -0
  940. data/lib/templates/slim/scaffold/show.html.haml +16 -0
  941. data/support/content_block_rewriter.rb +25 -0
  942. data/support/css_rewriter.rb +76 -0
  943. data/support/page_rewriter.rb +27 -0
  944. metadata +1091 -0
@@ -0,0 +1,744 @@
1
+ /* ========================================================================
2
+ * bootstrap-switch - v3.3.2
3
+ * http://www.bootstrap-switch.org
4
+ * ========================================================================
5
+ * Copyright 2012-2013 Mattia Larentis
6
+ *
7
+ * ========================================================================
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ * ========================================================================
20
+ */
21
+
22
+ (function() {
23
+ var slice = [].slice;
24
+
25
+ (function($, window) {
26
+ "use strict";
27
+ var BootstrapSwitch;
28
+ BootstrapSwitch = (function() {
29
+ function BootstrapSwitch(element, options) {
30
+ if (options == null) {
31
+ options = {};
32
+ }
33
+ this.$element = $(element);
34
+ this.options = $.extend({}, $.fn.bootstrapSwitch.defaults, {
35
+ state: this.$element.is(":checked"),
36
+ size: this.$element.data("size"),
37
+ animate: this.$element.data("animate"),
38
+ disabled: this.$element.is(":disabled"),
39
+ readonly: this.$element.is("[readonly]"),
40
+ indeterminate: this.$element.data("indeterminate"),
41
+ inverse: this.$element.data("inverse"),
42
+ radioAllOff: this.$element.data("radio-all-off"),
43
+ onColor: this.$element.data("on-color"),
44
+ offColor: this.$element.data("off-color"),
45
+ onText: this.$element.data("on-text"),
46
+ offText: this.$element.data("off-text"),
47
+ labelText: this.$element.data("label-text"),
48
+ handleWidth: this.$element.data("handle-width"),
49
+ labelWidth: this.$element.data("label-width"),
50
+ baseClass: this.$element.data("base-class"),
51
+ wrapperClass: this.$element.data("wrapper-class")
52
+ }, options);
53
+ this.prevOptions = {};
54
+ this.$wrapper = $("<div>", {
55
+ "class": (function(_this) {
56
+ return function() {
57
+ var classes;
58
+ classes = ["" + _this.options.baseClass].concat(_this._getClasses(_this.options.wrapperClass));
59
+ classes.push(_this.options.state ? _this.options.baseClass + "-on" : _this.options.baseClass + "-off");
60
+ if (_this.options.size != null) {
61
+ classes.push(_this.options.baseClass + "-" + _this.options.size);
62
+ }
63
+ if (_this.options.disabled) {
64
+ classes.push(_this.options.baseClass + "-disabled");
65
+ }
66
+ if (_this.options.readonly) {
67
+ classes.push(_this.options.baseClass + "-readonly");
68
+ }
69
+ if (_this.options.indeterminate) {
70
+ classes.push(_this.options.baseClass + "-indeterminate");
71
+ }
72
+ if (_this.options.inverse) {
73
+ classes.push(_this.options.baseClass + "-inverse");
74
+ }
75
+ if (_this.$element.attr("id")) {
76
+ classes.push(_this.options.baseClass + "-id-" + (_this.$element.attr("id")));
77
+ }
78
+ return classes.join(" ");
79
+ };
80
+ })(this)()
81
+ });
82
+ this.$container = $("<div>", {
83
+ "class": this.options.baseClass + "-container"
84
+ });
85
+ this.$on = $("<span>", {
86
+ html: this.options.onText,
87
+ "class": this.options.baseClass + "-handle-on " + this.options.baseClass + "-" + this.options.onColor
88
+ });
89
+ this.$off = $("<span>", {
90
+ html: this.options.offText,
91
+ "class": this.options.baseClass + "-handle-off " + this.options.baseClass + "-" + this.options.offColor
92
+ });
93
+ this.$label = $("<span>", {
94
+ html: this.options.labelText,
95
+ "class": this.options.baseClass + "-label"
96
+ });
97
+ this.$element.on("init.bootstrapSwitch", (function(_this) {
98
+ return function() {
99
+ return _this.options.onInit.apply(element, arguments);
100
+ };
101
+ })(this));
102
+ this.$element.on("switchChange.bootstrapSwitch", (function(_this) {
103
+ return function(e) {
104
+ if (false === _this.options.onSwitchChange.apply(element, arguments)) {
105
+ if (_this.$element.is(":radio")) {
106
+ return $("[name='" + (_this.$element.attr('name')) + "']").trigger("previousState.bootstrapSwitch", true);
107
+ } else {
108
+ return _this.$element.trigger("previousState.bootstrapSwitch", true);
109
+ }
110
+ }
111
+ };
112
+ })(this));
113
+ this.$container = this.$element.wrap(this.$container).parent();
114
+ this.$wrapper = this.$container.wrap(this.$wrapper).parent();
115
+ this.$element.before(this.options.inverse ? this.$off : this.$on).before(this.$label).before(this.options.inverse ? this.$on : this.$off);
116
+ if (this.options.indeterminate) {
117
+ this.$element.prop("indeterminate", true);
118
+ }
119
+ this._init();
120
+ this._elementHandlers();
121
+ this._handleHandlers();
122
+ this._labelHandlers();
123
+ this._formHandler();
124
+ this._externalLabelHandler();
125
+ this.$element.trigger("init.bootstrapSwitch", this.options.state);
126
+ }
127
+
128
+ BootstrapSwitch.prototype._constructor = BootstrapSwitch;
129
+
130
+ BootstrapSwitch.prototype.setPrevOptions = function() {
131
+ return this.prevOptions = $.extend(true, {}, this.options);
132
+ };
133
+
134
+ BootstrapSwitch.prototype.state = function(value, skip) {
135
+ if (typeof value === "undefined") {
136
+ return this.options.state;
137
+ }
138
+ if (this.options.disabled || this.options.readonly) {
139
+ return this.$element;
140
+ }
141
+ if (this.options.state && !this.options.radioAllOff && this.$element.is(":radio")) {
142
+ return this.$element;
143
+ }
144
+ if (this.$element.is(":radio")) {
145
+ $("[name='" + (this.$element.attr('name')) + "']").trigger("setPreviousOptions.bootstrapSwitch");
146
+ } else {
147
+ this.$element.trigger("setPreviousOptions.bootstrapSwitch");
148
+ }
149
+ if (this.options.indeterminate) {
150
+ this.indeterminate(false);
151
+ }
152
+ value = !!value;
153
+ this.$element.prop("checked", value).trigger("change.bootstrapSwitch", skip);
154
+ return this.$element;
155
+ };
156
+
157
+ BootstrapSwitch.prototype.toggleState = function(skip) {
158
+ if (this.options.disabled || this.options.readonly) {
159
+ return this.$element;
160
+ }
161
+ if (this.options.indeterminate) {
162
+ this.indeterminate(false);
163
+ return this.state(true);
164
+ } else {
165
+ return this.$element.prop("checked", !this.options.state).trigger("change.bootstrapSwitch", skip);
166
+ }
167
+ };
168
+
169
+ BootstrapSwitch.prototype.size = function(value) {
170
+ if (typeof value === "undefined") {
171
+ return this.options.size;
172
+ }
173
+ if (this.options.size != null) {
174
+ this.$wrapper.removeClass(this.options.baseClass + "-" + this.options.size);
175
+ }
176
+ if (value) {
177
+ this.$wrapper.addClass(this.options.baseClass + "-" + value);
178
+ }
179
+ this._width();
180
+ this._containerPosition();
181
+ this.options.size = value;
182
+ return this.$element;
183
+ };
184
+
185
+ BootstrapSwitch.prototype.animate = function(value) {
186
+ if (typeof value === "undefined") {
187
+ return this.options.animate;
188
+ }
189
+ value = !!value;
190
+ if (value === this.options.animate) {
191
+ return this.$element;
192
+ }
193
+ return this.toggleAnimate();
194
+ };
195
+
196
+ BootstrapSwitch.prototype.toggleAnimate = function() {
197
+ this.options.animate = !this.options.animate;
198
+ this.$wrapper.toggleClass(this.options.baseClass + "-animate");
199
+ return this.$element;
200
+ };
201
+
202
+ BootstrapSwitch.prototype.disabled = function(value) {
203
+ if (typeof value === "undefined") {
204
+ return this.options.disabled;
205
+ }
206
+ value = !!value;
207
+ if (value === this.options.disabled) {
208
+ return this.$element;
209
+ }
210
+ return this.toggleDisabled();
211
+ };
212
+
213
+ BootstrapSwitch.prototype.toggleDisabled = function() {
214
+ this.options.disabled = !this.options.disabled;
215
+ this.$element.prop("disabled", this.options.disabled);
216
+ this.$wrapper.toggleClass(this.options.baseClass + "-disabled");
217
+ return this.$element;
218
+ };
219
+
220
+ BootstrapSwitch.prototype.readonly = function(value) {
221
+ if (typeof value === "undefined") {
222
+ return this.options.readonly;
223
+ }
224
+ value = !!value;
225
+ if (value === this.options.readonly) {
226
+ return this.$element;
227
+ }
228
+ return this.toggleReadonly();
229
+ };
230
+
231
+ BootstrapSwitch.prototype.toggleReadonly = function() {
232
+ this.options.readonly = !this.options.readonly;
233
+ this.$element.prop("readonly", this.options.readonly);
234
+ this.$wrapper.toggleClass(this.options.baseClass + "-readonly");
235
+ return this.$element;
236
+ };
237
+
238
+ BootstrapSwitch.prototype.indeterminate = function(value) {
239
+ if (typeof value === "undefined") {
240
+ return this.options.indeterminate;
241
+ }
242
+ value = !!value;
243
+ if (value === this.options.indeterminate) {
244
+ return this.$element;
245
+ }
246
+ return this.toggleIndeterminate();
247
+ };
248
+
249
+ BootstrapSwitch.prototype.toggleIndeterminate = function() {
250
+ this.options.indeterminate = !this.options.indeterminate;
251
+ this.$element.prop("indeterminate", this.options.indeterminate);
252
+ this.$wrapper.toggleClass(this.options.baseClass + "-indeterminate");
253
+ this._containerPosition();
254
+ return this.$element;
255
+ };
256
+
257
+ BootstrapSwitch.prototype.inverse = function(value) {
258
+ if (typeof value === "undefined") {
259
+ return this.options.inverse;
260
+ }
261
+ value = !!value;
262
+ if (value === this.options.inverse) {
263
+ return this.$element;
264
+ }
265
+ return this.toggleInverse();
266
+ };
267
+
268
+ BootstrapSwitch.prototype.toggleInverse = function() {
269
+ var $off, $on;
270
+ this.$wrapper.toggleClass(this.options.baseClass + "-inverse");
271
+ $on = this.$on.clone(true);
272
+ $off = this.$off.clone(true);
273
+ this.$on.replaceWith($off);
274
+ this.$off.replaceWith($on);
275
+ this.$on = $off;
276
+ this.$off = $on;
277
+ this.options.inverse = !this.options.inverse;
278
+ return this.$element;
279
+ };
280
+
281
+ BootstrapSwitch.prototype.onColor = function(value) {
282
+ var color;
283
+ color = this.options.onColor;
284
+ if (typeof value === "undefined") {
285
+ return color;
286
+ }
287
+ if (color != null) {
288
+ this.$on.removeClass(this.options.baseClass + "-" + color);
289
+ }
290
+ this.$on.addClass(this.options.baseClass + "-" + value);
291
+ this.options.onColor = value;
292
+ return this.$element;
293
+ };
294
+
295
+ BootstrapSwitch.prototype.offColor = function(value) {
296
+ var color;
297
+ color = this.options.offColor;
298
+ if (typeof value === "undefined") {
299
+ return color;
300
+ }
301
+ if (color != null) {
302
+ this.$off.removeClass(this.options.baseClass + "-" + color);
303
+ }
304
+ this.$off.addClass(this.options.baseClass + "-" + value);
305
+ this.options.offColor = value;
306
+ return this.$element;
307
+ };
308
+
309
+ BootstrapSwitch.prototype.onText = function(value) {
310
+ if (typeof value === "undefined") {
311
+ return this.options.onText;
312
+ }
313
+ this.$on.html(value);
314
+ this._width();
315
+ this._containerPosition();
316
+ this.options.onText = value;
317
+ return this.$element;
318
+ };
319
+
320
+ BootstrapSwitch.prototype.offText = function(value) {
321
+ if (typeof value === "undefined") {
322
+ return this.options.offText;
323
+ }
324
+ this.$off.html(value);
325
+ this._width();
326
+ this._containerPosition();
327
+ this.options.offText = value;
328
+ return this.$element;
329
+ };
330
+
331
+ BootstrapSwitch.prototype.labelText = function(value) {
332
+ if (typeof value === "undefined") {
333
+ return this.options.labelText;
334
+ }
335
+ this.$label.html(value);
336
+ this._width();
337
+ this.options.labelText = value;
338
+ return this.$element;
339
+ };
340
+
341
+ BootstrapSwitch.prototype.handleWidth = function(value) {
342
+ if (typeof value === "undefined") {
343
+ return this.options.handleWidth;
344
+ }
345
+ this.options.handleWidth = value;
346
+ this._width();
347
+ this._containerPosition();
348
+ return this.$element;
349
+ };
350
+
351
+ BootstrapSwitch.prototype.labelWidth = function(value) {
352
+ if (typeof value === "undefined") {
353
+ return this.options.labelWidth;
354
+ }
355
+ this.options.labelWidth = value;
356
+ this._width();
357
+ this._containerPosition();
358
+ return this.$element;
359
+ };
360
+
361
+ BootstrapSwitch.prototype.baseClass = function(value) {
362
+ return this.options.baseClass;
363
+ };
364
+
365
+ BootstrapSwitch.prototype.wrapperClass = function(value) {
366
+ if (typeof value === "undefined") {
367
+ return this.options.wrapperClass;
368
+ }
369
+ if (!value) {
370
+ value = $.fn.bootstrapSwitch.defaults.wrapperClass;
371
+ }
372
+ this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" "));
373
+ this.$wrapper.addClass(this._getClasses(value).join(" "));
374
+ this.options.wrapperClass = value;
375
+ return this.$element;
376
+ };
377
+
378
+ BootstrapSwitch.prototype.radioAllOff = function(value) {
379
+ if (typeof value === "undefined") {
380
+ return this.options.radioAllOff;
381
+ }
382
+ value = !!value;
383
+ if (value === this.options.radioAllOff) {
384
+ return this.$element;
385
+ }
386
+ this.options.radioAllOff = value;
387
+ return this.$element;
388
+ };
389
+
390
+ BootstrapSwitch.prototype.onInit = function(value) {
391
+ if (typeof value === "undefined") {
392
+ return this.options.onInit;
393
+ }
394
+ if (!value) {
395
+ value = $.fn.bootstrapSwitch.defaults.onInit;
396
+ }
397
+ this.options.onInit = value;
398
+ return this.$element;
399
+ };
400
+
401
+ BootstrapSwitch.prototype.onSwitchChange = function(value) {
402
+ if (typeof value === "undefined") {
403
+ return this.options.onSwitchChange;
404
+ }
405
+ if (!value) {
406
+ value = $.fn.bootstrapSwitch.defaults.onSwitchChange;
407
+ }
408
+ this.options.onSwitchChange = value;
409
+ return this.$element;
410
+ };
411
+
412
+ BootstrapSwitch.prototype.destroy = function() {
413
+ var $form;
414
+ $form = this.$element.closest("form");
415
+ if ($form.length) {
416
+ $form.off("reset.bootstrapSwitch").removeData("bootstrap-switch");
417
+ }
418
+ this.$container.children().not(this.$element).remove();
419
+ this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch");
420
+ return this.$element;
421
+ };
422
+
423
+ BootstrapSwitch.prototype._width = function() {
424
+ var $handles, handleWidth;
425
+ $handles = this.$on.add(this.$off);
426
+ $handles.add(this.$label).css("width", "");
427
+ handleWidth = this.options.handleWidth === "auto" ? Math.max(this.$on.width(), this.$off.width()) : this.options.handleWidth;
428
+ $handles.width(handleWidth);
429
+ this.$label.width((function(_this) {
430
+ return function(index, width) {
431
+ if (_this.options.labelWidth !== "auto") {
432
+ return _this.options.labelWidth;
433
+ }
434
+ if (width < handleWidth) {
435
+ return handleWidth;
436
+ } else {
437
+ return width;
438
+ }
439
+ };
440
+ })(this));
441
+ this._handleWidth = this.$on.outerWidth();
442
+ this._labelWidth = this.$label.outerWidth();
443
+ this.$container.width((this._handleWidth * 2) + this._labelWidth);
444
+ return this.$wrapper.width(this._handleWidth + this._labelWidth);
445
+ };
446
+
447
+ BootstrapSwitch.prototype._containerPosition = function(state, callback) {
448
+ if (state == null) {
449
+ state = this.options.state;
450
+ }
451
+ this.$container.css("margin-left", (function(_this) {
452
+ return function() {
453
+ var values;
454
+ values = [0, "-" + _this._handleWidth + "px"];
455
+ if (_this.options.indeterminate) {
456
+ return "-" + (_this._handleWidth / 2) + "px";
457
+ }
458
+ if (state) {
459
+ if (_this.options.inverse) {
460
+ return values[1];
461
+ } else {
462
+ return values[0];
463
+ }
464
+ } else {
465
+ if (_this.options.inverse) {
466
+ return values[0];
467
+ } else {
468
+ return values[1];
469
+ }
470
+ }
471
+ };
472
+ })(this));
473
+ if (!callback) {
474
+ return;
475
+ }
476
+ return setTimeout(function() {
477
+ return callback();
478
+ }, 50);
479
+ };
480
+
481
+ BootstrapSwitch.prototype._init = function() {
482
+ var init, initInterval;
483
+ init = (function(_this) {
484
+ return function() {
485
+ _this.setPrevOptions();
486
+ _this._width();
487
+ return _this._containerPosition(null, function() {
488
+ if (_this.options.animate) {
489
+ return _this.$wrapper.addClass(_this.options.baseClass + "-animate");
490
+ }
491
+ });
492
+ };
493
+ })(this);
494
+ if (this.$wrapper.is(":visible")) {
495
+ return init();
496
+ }
497
+ return initInterval = window.setInterval((function(_this) {
498
+ return function() {
499
+ if (_this.$wrapper.is(":visible")) {
500
+ init();
501
+ return window.clearInterval(initInterval);
502
+ }
503
+ };
504
+ })(this), 50);
505
+ };
506
+
507
+ BootstrapSwitch.prototype._elementHandlers = function() {
508
+ return this.$element.on({
509
+ "setPreviousOptions.bootstrapSwitch": (function(_this) {
510
+ return function(e) {
511
+ return _this.setPrevOptions();
512
+ };
513
+ })(this),
514
+ "previousState.bootstrapSwitch": (function(_this) {
515
+ return function(e) {
516
+ _this.options = _this.prevOptions;
517
+ if (_this.options.indeterminate) {
518
+ _this.$wrapper.addClass(_this.options.baseClass + "-indeterminate");
519
+ }
520
+ return _this.$element.prop("checked", _this.options.state).trigger("change.bootstrapSwitch", true);
521
+ };
522
+ })(this),
523
+ "change.bootstrapSwitch": (function(_this) {
524
+ return function(e, skip) {
525
+ var state;
526
+ e.preventDefault();
527
+ e.stopImmediatePropagation();
528
+ state = _this.$element.is(":checked");
529
+ _this._containerPosition(state);
530
+ if (state === _this.options.state) {
531
+ return;
532
+ }
533
+ _this.options.state = state;
534
+ _this.$wrapper.toggleClass(_this.options.baseClass + "-off").toggleClass(_this.options.baseClass + "-on");
535
+ if (!skip) {
536
+ if (_this.$element.is(":radio")) {
537
+ $("[name='" + (_this.$element.attr('name')) + "']").not(_this.$element).prop("checked", false).trigger("change.bootstrapSwitch", true);
538
+ }
539
+ return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
540
+ }
541
+ };
542
+ })(this),
543
+ "focus.bootstrapSwitch": (function(_this) {
544
+ return function(e) {
545
+ e.preventDefault();
546
+ return _this.$wrapper.addClass(_this.options.baseClass + "-focused");
547
+ };
548
+ })(this),
549
+ "blur.bootstrapSwitch": (function(_this) {
550
+ return function(e) {
551
+ e.preventDefault();
552
+ return _this.$wrapper.removeClass(_this.options.baseClass + "-focused");
553
+ };
554
+ })(this),
555
+ "keydown.bootstrapSwitch": (function(_this) {
556
+ return function(e) {
557
+ if (!e.which || _this.options.disabled || _this.options.readonly) {
558
+ return;
559
+ }
560
+ switch (e.which) {
561
+ case 37:
562
+ e.preventDefault();
563
+ e.stopImmediatePropagation();
564
+ return _this.state(false);
565
+ case 39:
566
+ e.preventDefault();
567
+ e.stopImmediatePropagation();
568
+ return _this.state(true);
569
+ }
570
+ };
571
+ })(this)
572
+ });
573
+ };
574
+
575
+ BootstrapSwitch.prototype._handleHandlers = function() {
576
+ this.$on.on("click.bootstrapSwitch", (function(_this) {
577
+ return function(event) {
578
+ event.preventDefault();
579
+ event.stopPropagation();
580
+ _this.state(false);
581
+ return _this.$element.trigger("focus.bootstrapSwitch");
582
+ };
583
+ })(this));
584
+ return this.$off.on("click.bootstrapSwitch", (function(_this) {
585
+ return function(event) {
586
+ event.preventDefault();
587
+ event.stopPropagation();
588
+ _this.state(true);
589
+ return _this.$element.trigger("focus.bootstrapSwitch");
590
+ };
591
+ })(this));
592
+ };
593
+
594
+ BootstrapSwitch.prototype._labelHandlers = function() {
595
+ return this.$label.on({
596
+ "click": function(e) {
597
+ return e.stopPropagation();
598
+ },
599
+ "mousedown.bootstrapSwitch touchstart.bootstrapSwitch": (function(_this) {
600
+ return function(e) {
601
+ if (_this._dragStart || _this.options.disabled || _this.options.readonly) {
602
+ return;
603
+ }
604
+ e.preventDefault();
605
+ e.stopPropagation();
606
+ _this._dragStart = (e.pageX || e.originalEvent.touches[0].pageX) - parseInt(_this.$container.css("margin-left"), 10);
607
+ if (_this.options.animate) {
608
+ _this.$wrapper.removeClass(_this.options.baseClass + "-animate");
609
+ }
610
+ return _this.$element.trigger("focus.bootstrapSwitch");
611
+ };
612
+ })(this),
613
+ "mousemove.bootstrapSwitch touchmove.bootstrapSwitch": (function(_this) {
614
+ return function(e) {
615
+ var difference;
616
+ if (_this._dragStart == null) {
617
+ return;
618
+ }
619
+ e.preventDefault();
620
+ difference = (e.pageX || e.originalEvent.touches[0].pageX) - _this._dragStart;
621
+ if (difference < -_this._handleWidth || difference > 0) {
622
+ return;
623
+ }
624
+ _this._dragEnd = difference;
625
+ return _this.$container.css("margin-left", _this._dragEnd + "px");
626
+ };
627
+ })(this),
628
+ "mouseup.bootstrapSwitch touchend.bootstrapSwitch": (function(_this) {
629
+ return function(e) {
630
+ var state;
631
+ if (!_this._dragStart) {
632
+ return;
633
+ }
634
+ e.preventDefault();
635
+ if (_this.options.animate) {
636
+ _this.$wrapper.addClass(_this.options.baseClass + "-animate");
637
+ }
638
+ if (_this._dragEnd) {
639
+ state = _this._dragEnd > -(_this._handleWidth / 2);
640
+ _this._dragEnd = false;
641
+ _this.state(_this.options.inverse ? !state : state);
642
+ } else {
643
+ _this.state(!_this.options.state);
644
+ }
645
+ return _this._dragStart = false;
646
+ };
647
+ })(this),
648
+ "mouseleave.bootstrapSwitch": (function(_this) {
649
+ return function(e) {
650
+ return _this.$label.trigger("mouseup.bootstrapSwitch");
651
+ };
652
+ })(this)
653
+ });
654
+ };
655
+
656
+ BootstrapSwitch.prototype._externalLabelHandler = function() {
657
+ var $externalLabel;
658
+ $externalLabel = this.$element.closest("label");
659
+ return $externalLabel.on("click", (function(_this) {
660
+ return function(event) {
661
+ event.preventDefault();
662
+ event.stopImmediatePropagation();
663
+ if (event.target === $externalLabel[0]) {
664
+ return _this.toggleState();
665
+ }
666
+ };
667
+ })(this));
668
+ };
669
+
670
+ BootstrapSwitch.prototype._formHandler = function() {
671
+ var $form;
672
+ $form = this.$element.closest("form");
673
+ if ($form.data("bootstrap-switch")) {
674
+ return;
675
+ }
676
+ return $form.on("reset.bootstrapSwitch", function() {
677
+ return window.setTimeout(function() {
678
+ return $form.find("input").filter(function() {
679
+ return $(this).data("bootstrap-switch");
680
+ }).each(function() {
681
+ return $(this).bootstrapSwitch("state", this.checked);
682
+ });
683
+ }, 1);
684
+ }).data("bootstrap-switch", true);
685
+ };
686
+
687
+ BootstrapSwitch.prototype._getClasses = function(classes) {
688
+ var c, cls, i, len;
689
+ if (!$.isArray(classes)) {
690
+ return [this.options.baseClass + "-" + classes];
691
+ }
692
+ cls = [];
693
+ for (i = 0, len = classes.length; i < len; i++) {
694
+ c = classes[i];
695
+ cls.push(this.options.baseClass + "-" + c);
696
+ }
697
+ return cls;
698
+ };
699
+
700
+ return BootstrapSwitch;
701
+
702
+ })();
703
+ $.fn.bootstrapSwitch = function() {
704
+ var args, option, ret;
705
+ option = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
706
+ ret = this;
707
+ this.each(function() {
708
+ var $this, data;
709
+ $this = $(this);
710
+ data = $this.data("bootstrap-switch");
711
+ if (!data) {
712
+ $this.data("bootstrap-switch", data = new BootstrapSwitch(this, option));
713
+ }
714
+ if (typeof option === "string") {
715
+ return ret = data[option].apply(data, args);
716
+ }
717
+ });
718
+ return ret;
719
+ };
720
+ $.fn.bootstrapSwitch.Constructor = BootstrapSwitch;
721
+ return $.fn.bootstrapSwitch.defaults = {
722
+ state: true,
723
+ size: null,
724
+ animate: true,
725
+ disabled: false,
726
+ readonly: false,
727
+ indeterminate: false,
728
+ inverse: false,
729
+ radioAllOff: false,
730
+ onColor: "primary",
731
+ offColor: "default",
732
+ onText: "ON",
733
+ offText: "OFF",
734
+ labelText: "&nbsp;",
735
+ handleWidth: "auto",
736
+ labelWidth: "auto",
737
+ baseClass: "bootstrap-switch",
738
+ wrapperClass: "wrapper",
739
+ onInit: function() {},
740
+ onSwitchChange: function() {}
741
+ };
742
+ })(window.jQuery, window);
743
+
744
+ }).call(this);