kiso_themes 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG +12 -0
- data/LICENSE +170 -0
- data/README.rdoc +6 -0
- data/Rakefile +516 -0
- data/VERSION +1 -0
- data/app/assets/fonts/font-awesome/FontAwesome.otf +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.svg +2671 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/app/assets/fonts/ionicons/ionicons.eot +0 -0
- data/app/assets/fonts/ionicons/ionicons.svg +2230 -0
- data/app/assets/fonts/ionicons/ionicons.ttf +0 -0
- data/app/assets/fonts/ionicons/ionicons.woff +0 -0
- data/app/assets/fonts/mdiicons/LICENSE.txt +428 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.eot +0 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.ijmap +1 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.svg +2373 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.ttf +0 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/fonts/mdiicons/README.md +9 -0
- data/app/assets/fonts/mdiicons/codepoints +932 -0
- data/app/assets/fonts/themify/themify.eot +0 -0
- data/app/assets/fonts/themify/themify.svg +362 -0
- data/app/assets/fonts/themify/themify.ttf +0 -0
- data/app/assets/fonts/themify/themify.woff +0 -0
- data/app/assets/images/kiso_themes/app_video_placeholder.png +0 -0
- data/app/assets/images/kiso_themes/arrow-1.svg +8 -0
- data/app/assets/images/kiso_themes/arrow-2.svg +7 -0
- data/app/assets/images/kiso_themes/creditcards/amex.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/credit.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/dankort.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/diners.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/discover.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/forbru.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/google.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/jcb.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/laser.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/maestro.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/mastercard.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/money.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/paypa.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/shopify.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/solo.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/visa.png +0 -0
- data/app/assets/images/kiso_themes/header_1.jpg +0 -0
- data/app/assets/images/kiso_themes/icons/check.png +0 -0
- data/app/assets/images/kiso_themes/landing_bg.jpg +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_128.png +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_200.png +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_32.png +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_64.png +0 -0
- data/app/assets/images/kiso_themes/stock/1.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/2.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/3.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/4.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/acme_1.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_2.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_3.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_4.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_5.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_6.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_7.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_8.png +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_1.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_10.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_12.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_13.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_14.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_2.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_3.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_4.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_5.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_6.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_7.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_8.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_9.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/us_landscape_1.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/us_landscape_2.jpg +0 -0
- data/app/assets/images/kiso_themes/ui_placeholder_desktop.png +0 -0
- data/app/assets/javascripts/kiso_themes/bootstrap.js +20 -0
- data/app/assets/javascripts/kiso_themes/bootstrap_switch.js +23 -0
- data/app/assets/javascripts/kiso_themes/chartjs.js +11 -0
- data/app/assets/javascripts/kiso_themes/clipboard.js +12 -0
- data/app/assets/javascripts/kiso_themes/countTo.js +1 -0
- data/app/assets/javascripts/kiso_themes/countdown.js +28 -0
- data/app/assets/javascripts/kiso_themes/demo/chartjs.js +102 -0
- data/app/assets/javascripts/kiso_themes/demo/dashboard.js +229 -0
- data/app/assets/javascripts/kiso_themes/demo/data_generator.js +25 -0
- data/app/assets/javascripts/kiso_themes/demo/easypiechart.js +41 -0
- data/app/assets/javascripts/kiso_themes/demo/flot.js +258 -0
- data/app/assets/javascripts/kiso_themes/demo/gmaps.js +163 -0
- data/app/assets/javascripts/kiso_themes/demo/jqvectormap.js +65 -0
- data/app/assets/javascripts/kiso_themes/demo/sparklines.js +156 -0
- data/app/assets/javascripts/kiso_themes/easypiechart.js +12 -0
- data/app/assets/javascripts/kiso_themes/fastclick.js +16 -0
- data/app/assets/javascripts/kiso_themes/fitie.js +14 -0
- data/app/assets/javascripts/kiso_themes/flot.js +11 -0
- data/app/assets/javascripts/kiso_themes/forms.js +13 -0
- data/app/assets/javascripts/kiso_themes/gmaps.js +9 -0
- data/app/assets/javascripts/kiso_themes/header.js +33 -0
- data/app/assets/javascripts/kiso_themes/inspect_mode/inspect_mode.js +581 -0
- data/app/assets/javascripts/kiso_themes/jasny.js +13 -0
- data/app/assets/javascripts/kiso_themes/jqvectormaps.js +24 -0
- data/app/assets/javascripts/kiso_themes/kernel.js +48 -0
- data/app/assets/javascripts/kiso_themes/metis_menu.js +16 -0
- data/app/assets/javascripts/kiso_themes/parallax.js +14 -0
- data/app/assets/javascripts/kiso_themes/popper.js +1 -0
- data/app/assets/javascripts/kiso_themes/prettify.js +12 -0
- data/app/assets/javascripts/kiso_themes/prism.js +10 -0
- data/app/assets/javascripts/kiso_themes/sheets.js +98 -0
- data/app/assets/javascripts/kiso_themes/sidenav.js +77 -0
- data/app/assets/javascripts/kiso_themes/slimscroll.js +1 -0
- data/app/assets/javascripts/kiso_themes/sparklines.js +1 -0
- data/app/assets/javascripts/kiso_themes.js +39 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/alert.js +198 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/button.js +186 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/carousel.js +667 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/collapse.js +427 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/dropdown.js +594 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/index.js +22 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/modal.js +649 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/popover.js +260 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/scrollspy.js +374 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/tab.js +268 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/toast.js +282 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/tooltip.js +906 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/util.js +171 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap.js +13 -0
- data/app/assets/javascripts/vendor/bootstrap_switch/bootstrap_switch.js +744 -0
- data/app/assets/javascripts/vendor/chartjs/Chart.bundle.min.js +10 -0
- data/app/assets/javascripts/vendor/chartjs/Chart.min.js +10 -0
- data/app/assets/javascripts/vendor/clipboardjs/clipboard.js +7 -0
- data/app/assets/javascripts/vendor/countTo/countTo.js +130 -0
- data/app/assets/javascripts/vendor/countdown/countdown.js +22 -0
- data/app/assets/javascripts/vendor/easypiechart/jquery.easypiechart.js +364 -0
- data/app/assets/javascripts/vendor/fastclick/fastclick.js +841 -0
- data/app/assets/javascripts/vendor/fitie/fitie.js +1 -0
- data/app/assets/javascripts/vendor/flot/flot-chart-resize.js +59 -0
- data/app/assets/javascripts/vendor/flot/flot-chart-stack.js +188 -0
- data/app/assets/javascripts/vendor/flot/flot-chart-time.js +432 -0
- data/app/assets/javascripts/vendor/flot/flot-chart.js +3168 -0
- data/app/assets/javascripts/vendor/gmaps/gmaps.js +2418 -0
- data/app/assets/javascripts/vendor/jasny/jasny_bootstrap.js +1020 -0
- data/app/assets/javascripts/vendor/jqvectormaps/jquery-jvectormap.css +135 -0
- data/app/assets/javascripts/vendor/jqvectormaps/jquery-jvectormap.js +3375 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/More maps.txt +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-au-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-ca-mill.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-cn-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-de-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-europe-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-fr-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-in-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-us-aea-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-world-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-za-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/metis_menu/metis_menu.js +337 -0
- data/app/assets/javascripts/vendor/modernizr/modernizr.2.8.3.min.js +1 -0
- data/app/assets/javascripts/vendor/parallax/parallax.js +6 -0
- data/app/assets/javascripts/vendor/popper/popper.js +4 -0
- data/app/assets/javascripts/vendor/prettify/prettify.js +1655 -0
- data/app/assets/javascripts/vendor/prism/prism-normalize-whitespace.js +190 -0
- data/app/assets/javascripts/vendor/prism/prism.js +819 -0
- data/app/assets/javascripts/vendor/slimscroll/slimscroll.js +288 -0
- data/app/assets/javascripts/vendor/sparklines/jquery.sparkline.js +3054 -0
- data/app/assets/stylesheets/kiso_themes/auriga/blue.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/auriga/green.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/auriga/red.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/auriga/yellow.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/carbon/black.css.erb +0 -0
- data/app/assets/stylesheets/kiso_themes/gemini/amber.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/gemini/blue.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/gemini/granite.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/gemini/ocean.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/azure.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/charcoal.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/lime.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/raspberry.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/orion/blue.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/orion/green.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/orion/orange.css.erb +31464 -0
- data/app/assets/stylesheets/kiso_themes/orion/purple.css.erb +31469 -0
- data/app/helpers/content_block_helper.rb +2 -0
- data/app/helpers/devices_helper.rb +67 -0
- data/app/helpers/dropdown_helper.rb +50 -0
- data/app/helpers/email_template_helper.rb +66 -0
- data/app/helpers/form_errors_helper.rb +50 -0
- data/app/helpers/form_group_helper.rb +48 -0
- data/app/helpers/html_helper.rb +57 -0
- data/app/helpers/icons_helper.rb +56 -0
- data/app/helpers/metrics_helper.rb +90 -0
- data/app/views/content_blocks/app_navs/_1.html.erb +124 -0
- data/app/views/content_blocks/app_navs/_1.html.haml +83 -0
- data/app/views/content_blocks/app_navs/_1.html.slim +83 -0
- data/app/views/content_blocks/app_navs/_2.html.erb +124 -0
- data/app/views/content_blocks/app_navs/_2.html.haml +81 -0
- data/app/views/content_blocks/app_navs/_2.html.slim +81 -0
- data/app/views/content_blocks/app_navs/_3.html.erb +129 -0
- data/app/views/content_blocks/app_navs/_3.html.haml +84 -0
- data/app/views/content_blocks/app_navs/_3.html.slim +84 -0
- data/app/views/content_blocks/app_navs/_4.html.erb +127 -0
- data/app/views/content_blocks/app_navs/_4.html.haml +82 -0
- data/app/views/content_blocks/app_navs/_4.html.slim +82 -0
- data/app/views/content_blocks/app_navs/_5.html.erb +47 -0
- data/app/views/content_blocks/app_navs/_5.html.haml +30 -0
- data/app/views/content_blocks/app_navs/_5.html.slim +30 -0
- data/app/views/content_blocks/basic/_1.html.erb +12 -0
- data/app/views/content_blocks/basic/_1.html.haml +8 -0
- data/app/views/content_blocks/basic/_1.html.slim +8 -0
- data/app/views/content_blocks/basic/_2.html.erb +12 -0
- data/app/views/content_blocks/basic/_2.html.haml +8 -0
- data/app/views/content_blocks/basic/_2.html.slim +8 -0
- data/app/views/content_blocks/basic/_3.html.erb +12 -0
- data/app/views/content_blocks/basic/_3.html.haml +8 -0
- data/app/views/content_blocks/basic/_3.html.slim +8 -0
- data/app/views/content_blocks/basic/_4.html.erb +20 -0
- data/app/views/content_blocks/basic/_4.html.haml +14 -0
- data/app/views/content_blocks/basic/_4.html.slim +14 -0
- data/app/views/content_blocks/basic/_5.html.erb +16 -0
- data/app/views/content_blocks/basic/_5.html.haml +11 -0
- data/app/views/content_blocks/basic/_5.html.slim +11 -0
- data/app/views/content_blocks/basic/_6.html.erb +11 -0
- data/app/views/content_blocks/basic/_6.html.haml +7 -0
- data/app/views/content_blocks/basic/_6.html.slim +7 -0
- data/app/views/content_blocks/basic/_7.html.erb +11 -0
- data/app/views/content_blocks/basic/_7.html.haml +7 -0
- data/app/views/content_blocks/basic/_7.html.slim +7 -0
- data/app/views/content_blocks/basic/_8.html.erb +19 -0
- data/app/views/content_blocks/basic/_8.html.haml +14 -0
- data/app/views/content_blocks/basic/_8.html.slim +14 -0
- data/app/views/content_blocks/general/_1.html.erb +14 -0
- data/app/views/content_blocks/general/_1.html.haml +14 -0
- data/app/views/content_blocks/general/_1.html.slim +14 -0
- data/app/views/content_blocks/general/_10.html.erb +11 -0
- data/app/views/content_blocks/general/_10.html.haml +9 -0
- data/app/views/content_blocks/general/_10.html.slim +9 -0
- data/app/views/content_blocks/general/_11.html.erb +11 -0
- data/app/views/content_blocks/general/_11.html.haml +9 -0
- data/app/views/content_blocks/general/_11.html.slim +9 -0
- data/app/views/content_blocks/general/_12.html.erb +60 -0
- data/app/views/content_blocks/general/_12.html.haml +40 -0
- data/app/views/content_blocks/general/_12.html.slim +40 -0
- data/app/views/content_blocks/general/_13.html.erb +11 -0
- data/app/views/content_blocks/general/_13.html.haml +8 -0
- data/app/views/content_blocks/general/_13.html.slim +8 -0
- data/app/views/content_blocks/general/_14.html.erb +18 -0
- data/app/views/content_blocks/general/_14.html.haml +11 -0
- data/app/views/content_blocks/general/_14.html.slim +11 -0
- data/app/views/content_blocks/general/_15.html.erb +50 -0
- data/app/views/content_blocks/general/_15.html.haml +30 -0
- data/app/views/content_blocks/general/_15.html.slim +30 -0
- data/app/views/content_blocks/general/_16.html.erb +54 -0
- data/app/views/content_blocks/general/_16.html.haml +34 -0
- data/app/views/content_blocks/general/_16.html.slim +34 -0
- data/app/views/content_blocks/general/_17.html.erb +11 -0
- data/app/views/content_blocks/general/_17.html.haml +9 -0
- data/app/views/content_blocks/general/_17.html.slim +9 -0
- data/app/views/content_blocks/general/_18.html.erb +11 -0
- data/app/views/content_blocks/general/_18.html.haml +10 -0
- data/app/views/content_blocks/general/_18.html.slim +10 -0
- data/app/views/content_blocks/general/_19.html.erb +11 -0
- data/app/views/content_blocks/general/_19.html.haml +9 -0
- data/app/views/content_blocks/general/_19.html.slim +9 -0
- data/app/views/content_blocks/general/_2.html.erb +14 -0
- data/app/views/content_blocks/general/_2.html.haml +14 -0
- data/app/views/content_blocks/general/_2.html.slim +14 -0
- data/app/views/content_blocks/general/_20.html.erb +9 -0
- data/app/views/content_blocks/general/_20.html.haml +6 -0
- data/app/views/content_blocks/general/_20.html.slim +6 -0
- data/app/views/content_blocks/general/_21.html.erb +9 -0
- data/app/views/content_blocks/general/_21.html.haml +6 -0
- data/app/views/content_blocks/general/_21.html.slim +6 -0
- data/app/views/content_blocks/general/_22.html.erb +13 -0
- data/app/views/content_blocks/general/_22.html.haml +8 -0
- data/app/views/content_blocks/general/_22.html.slim +8 -0
- data/app/views/content_blocks/general/_23.html.erb +13 -0
- data/app/views/content_blocks/general/_23.html.haml +8 -0
- data/app/views/content_blocks/general/_23.html.slim +8 -0
- data/app/views/content_blocks/general/_24.html.erb +60 -0
- data/app/views/content_blocks/general/_24.html.haml +40 -0
- data/app/views/content_blocks/general/_24.html.slim +40 -0
- data/app/views/content_blocks/general/_25.html.erb +60 -0
- data/app/views/content_blocks/general/_25.html.haml +40 -0
- data/app/views/content_blocks/general/_25.html.slim +40 -0
- data/app/views/content_blocks/general/_26.html.erb +11 -0
- data/app/views/content_blocks/general/_26.html.haml +7 -0
- data/app/views/content_blocks/general/_26.html.slim +7 -0
- data/app/views/content_blocks/general/_27.html.erb +13 -0
- data/app/views/content_blocks/general/_27.html.haml +8 -0
- data/app/views/content_blocks/general/_27.html.slim +8 -0
- data/app/views/content_blocks/general/_28.html.erb +13 -0
- data/app/views/content_blocks/general/_28.html.haml +8 -0
- data/app/views/content_blocks/general/_28.html.slim +8 -0
- data/app/views/content_blocks/general/_29.html.erb +13 -0
- data/app/views/content_blocks/general/_29.html.haml +8 -0
- data/app/views/content_blocks/general/_29.html.slim +8 -0
- data/app/views/content_blocks/general/_3.html.erb +12 -0
- data/app/views/content_blocks/general/_3.html.haml +8 -0
- data/app/views/content_blocks/general/_3.html.slim +8 -0
- data/app/views/content_blocks/general/_30.html.erb +40 -0
- data/app/views/content_blocks/general/_30.html.haml +38 -0
- data/app/views/content_blocks/general/_30.html.slim +38 -0
- data/app/views/content_blocks/general/_31.html.erb +19 -0
- data/app/views/content_blocks/general/_31.html.haml +17 -0
- data/app/views/content_blocks/general/_31.html.slim +17 -0
- data/app/views/content_blocks/general/_32.html.erb +51 -0
- data/app/views/content_blocks/general/_32.html.haml +45 -0
- data/app/views/content_blocks/general/_32.html.slim +45 -0
- data/app/views/content_blocks/general/_33.html.erb +10 -0
- data/app/views/content_blocks/general/_33.html.haml +6 -0
- data/app/views/content_blocks/general/_33.html.slim +6 -0
- data/app/views/content_blocks/general/_34.html.erb +23 -0
- data/app/views/content_blocks/general/_34.html.haml +18 -0
- data/app/views/content_blocks/general/_34.html.slim +18 -0
- data/app/views/content_blocks/general/_35.html.erb +86 -0
- data/app/views/content_blocks/general/_35.html.haml +63 -0
- data/app/views/content_blocks/general/_35.html.slim +63 -0
- data/app/views/content_blocks/general/_36.html.erb +87 -0
- data/app/views/content_blocks/general/_36.html.haml +67 -0
- data/app/views/content_blocks/general/_36.html.slim +67 -0
- data/app/views/content_blocks/general/_37.html.erb +68 -0
- data/app/views/content_blocks/general/_37.html.haml +52 -0
- data/app/views/content_blocks/general/_37.html.slim +52 -0
- data/app/views/content_blocks/general/_38.html.erb +61 -0
- data/app/views/content_blocks/general/_38.html.haml +54 -0
- data/app/views/content_blocks/general/_38.html.slim +54 -0
- data/app/views/content_blocks/general/_39.html.erb +16 -0
- data/app/views/content_blocks/general/_39.html.haml +10 -0
- data/app/views/content_blocks/general/_39.html.slim +10 -0
- data/app/views/content_blocks/general/_4.html.erb +12 -0
- data/app/views/content_blocks/general/_4.html.haml +8 -0
- data/app/views/content_blocks/general/_4.html.slim +8 -0
- data/app/views/content_blocks/general/_40!dark.html.erb +9 -0
- data/app/views/content_blocks/general/_40!dark.html.haml +6 -0
- data/app/views/content_blocks/general/_40!dark.html.slim +6 -0
- data/app/views/content_blocks/general/_5.html.erb +28 -0
- data/app/views/content_blocks/general/_5.html.haml +19 -0
- data/app/views/content_blocks/general/_5.html.slim +19 -0
- data/app/views/content_blocks/general/_6.html.erb +49 -0
- data/app/views/content_blocks/general/_6.html.haml +34 -0
- data/app/views/content_blocks/general/_6.html.slim +34 -0
- data/app/views/content_blocks/general/_7.html.erb +21 -0
- data/app/views/content_blocks/general/_7.html.haml +14 -0
- data/app/views/content_blocks/general/_7.html.slim +14 -0
- data/app/views/content_blocks/general/_8.html.erb +21 -0
- data/app/views/content_blocks/general/_8.html.haml +14 -0
- data/app/views/content_blocks/general/_8.html.slim +14 -0
- data/app/views/content_blocks/general/_9.html.erb +31 -0
- data/app/views/content_blocks/general/_9.html.haml +21 -0
- data/app/views/content_blocks/general/_9.html.slim +21 -0
- data/app/views/content_blocks/headers/_1.html.erb +59 -0
- data/app/views/content_blocks/headers/_1.html.haml +42 -0
- data/app/views/content_blocks/headers/_1.html.slim +42 -0
- data/app/views/content_blocks/headers/_10.html.erb +57 -0
- data/app/views/content_blocks/headers/_10.html.haml +41 -0
- data/app/views/content_blocks/headers/_10.html.slim +41 -0
- data/app/views/content_blocks/headers/_2.html.erb +51 -0
- data/app/views/content_blocks/headers/_2.html.haml +37 -0
- data/app/views/content_blocks/headers/_2.html.slim +37 -0
- data/app/views/content_blocks/headers/_3.html.erb +51 -0
- data/app/views/content_blocks/headers/_3.html.haml +37 -0
- data/app/views/content_blocks/headers/_3.html.slim +37 -0
- data/app/views/content_blocks/headers/_4.html.erb +78 -0
- data/app/views/content_blocks/headers/_4.html.haml +55 -0
- data/app/views/content_blocks/headers/_4.html.slim +55 -0
- data/app/views/content_blocks/headers/_5.html.erb +77 -0
- data/app/views/content_blocks/headers/_5.html.haml +55 -0
- data/app/views/content_blocks/headers/_5.html.slim +55 -0
- data/app/views/content_blocks/headers/_6.html.erb +50 -0
- data/app/views/content_blocks/headers/_6.html.haml +37 -0
- data/app/views/content_blocks/headers/_6.html.slim +37 -0
- data/app/views/content_blocks/headers/_7.html.erb +54 -0
- data/app/views/content_blocks/headers/_7.html.haml +39 -0
- data/app/views/content_blocks/headers/_7.html.slim +39 -0
- data/app/views/content_blocks/headers/_8.html.erb +77 -0
- data/app/views/content_blocks/headers/_8.html.haml +56 -0
- data/app/views/content_blocks/headers/_8.html.slim +56 -0
- data/app/views/content_blocks/headers/_9.html.erb +76 -0
- data/app/views/content_blocks/headers/_9.html.haml +53 -0
- data/app/views/content_blocks/headers/_9.html.slim +53 -0
- data/app/views/content_blocks/landing_navs/_1.html.erb +22 -0
- data/app/views/content_blocks/landing_navs/_1.html.haml +16 -0
- data/app/views/content_blocks/landing_navs/_1.html.slim +16 -0
- data/app/views/content_blocks/landing_navs/_2.html.erb +25 -0
- data/app/views/content_blocks/landing_navs/_2.html.haml +18 -0
- data/app/views/content_blocks/landing_navs/_2.html.slim +18 -0
- data/app/views/content_blocks/landing_navs/_3.html.erb +28 -0
- data/app/views/content_blocks/landing_navs/_3.html.haml +20 -0
- data/app/views/content_blocks/landing_navs/_3.html.slim +20 -0
- data/app/views/content_blocks/landing_navs/_4.html.erb +31 -0
- data/app/views/content_blocks/landing_navs/_4.html.haml +24 -0
- data/app/views/content_blocks/landing_navs/_4.html.slim +24 -0
- data/app/views/content_blocks/landing_navs/_5.html.erb +31 -0
- data/app/views/content_blocks/landing_navs/_5.html.haml +24 -0
- data/app/views/content_blocks/landing_navs/_5.html.slim +24 -0
- data/app/views/devise/erb/confirmations/new.html.erb +36 -0
- data/app/views/devise/erb/invitations/edit.html.erb +41 -0
- data/app/views/devise/erb/invitations/new.html.erb +37 -0
- data/app/views/devise/erb/mailer/confirmation_instructions.html.erb +18 -0
- data/app/views/devise/erb/mailer/invitation_instructions.html.erb +20 -0
- data/app/views/devise/erb/mailer/reset_password_instructions.html.erb +18 -0
- data/app/views/devise/erb/mailer/unlock_instructions.html.erb +19 -0
- data/app/views/devise/erb/passwords/edit.html.erb +44 -0
- data/app/views/devise/erb/passwords/new.html.erb +37 -0
- data/app/views/devise/erb/registrations/edit.html.erb +73 -0
- data/app/views/devise/erb/registrations/new.html.erb +48 -0
- data/app/views/devise/erb/sessions/new.html.erb +79 -0
- data/app/views/devise/erb/unlocks/new.html.erb +36 -0
- data/app/views/devise/haml/confirmations/new.html.haml +22 -0
- data/app/views/devise/haml/invitations/edit.html.haml +29 -0
- data/app/views/devise/haml/invitations/new.html.haml +21 -0
- data/app/views/devise/haml/mailer/confirmation_instructions.html.haml +10 -0
- data/app/views/devise/haml/mailer/invitation_instructions.html.haml +11 -0
- data/app/views/devise/haml/mailer/reset_password_instructions.html.haml +10 -0
- data/app/views/devise/haml/mailer/unlock_instructions.html.haml +10 -0
- data/app/views/devise/haml/passwords/edit.html.haml +27 -0
- data/app/views/devise/haml/passwords/new.html.haml +22 -0
- data/app/views/devise/haml/registrations/edit.html.haml +44 -0
- data/app/views/devise/haml/registrations/new.html.haml +30 -0
- data/app/views/devise/haml/sessions/new.html.haml +44 -0
- data/app/views/devise/haml/unlocks/new.html.haml +23 -0
- data/app/views/devise/slim/confirmations/new.html.haml +24 -0
- data/app/views/devise/slim/invitations/edit.html.haml +24 -0
- data/app/views/devise/slim/invitations/new.html.haml +20 -0
- data/app/views/devise/slim/mailer/confirmation_instructions.html.haml +26 -0
- data/app/views/devise/slim/mailer/invitation_instructions.html.haml +25 -0
- data/app/views/devise/slim/mailer/reset_password_instructions.html.haml +27 -0
- data/app/views/devise/slim/mailer/unlock_instructions.html.haml +27 -0
- data/app/views/devise/slim/passwords/edit.html.haml +26 -0
- data/app/views/devise/slim/passwords/new.html.haml +25 -0
- data/app/views/devise/slim/registrations/edit.html.haml +40 -0
- data/app/views/devise/slim/registrations/new.html.haml +32 -0
- data/app/views/devise/slim/sessions/new.html.haml +43 -0
- data/app/views/devise/slim/unlocks/new.html.haml +24 -0
- data/app/views/kaminari/_first_page.html.erb +15 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_gap.html.haml +2 -0
- data/app/views/kaminari/_last_page.html.erb +15 -0
- data/app/views/kaminari/_next_page.html.erb +15 -0
- data/app/views/kaminari/_next_page.html.haml +2 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_page.html.haml +2 -0
- data/app/views/kaminari/_paginator.html.erb +27 -0
- data/app/views/kaminari/_paginator.html.haml +10 -0
- data/app/views/kaminari/_prev_page.html.erb +15 -0
- data/app/views/kaminari/_prev_page.html.haml +2 -0
- data/kiso_themes.gemspec +37 -0
- data/lib/generators/kiso_themes/analytics_dashboard_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/analytics_detail_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/app_pages_generator.rb +33 -0
- data/lib/generators/kiso_themes/blog_archive_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/blog_post_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/content_blocks_generator.rb +30 -0
- data/lib/generators/kiso_themes/customize_generator.rb +52 -0
- data/lib/generators/kiso_themes/dashboard_pages_generator.rb +37 -0
- data/lib/generators/kiso_themes/devise_generator.rb +45 -0
- data/lib/generators/kiso_themes/email_layout_generator.rb +41 -0
- data/lib/generators/kiso_themes/error_pages_generator.rb +19 -0
- data/lib/generators/kiso_themes/faq_pages_generator.rb +17 -0
- data/lib/generators/kiso_themes/handler_support.rb +27 -0
- data/lib/generators/kiso_themes/install_generator.rb +246 -0
- data/lib/generators/kiso_themes/landing_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/legal_pages_generator.rb +25 -0
- data/lib/generators/kiso_themes/page_generator.rb +37 -0
- data/lib/generators/kiso_themes/pricing_pages_generator.rb +10 -0
- data/lib/generators/kiso_themes/templates/README.tt +58 -0
- data/lib/generators/kiso_themes/templates/README_CUSTOMIZE +38 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/blue.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/green.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/red.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/yellow.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/amber.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/blue.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/granite.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/ocean.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/azure.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/charcoal.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/lime.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/raspberry.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/blue.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/green.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/orange.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/purple.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/error_pages/403.html.erb +66 -0
- data/lib/generators/kiso_themes/templates/error_pages/404.html.erb +67 -0
- data/lib/generators/kiso_themes/templates/error_pages/422.html.erb +66 -0
- data/lib/generators/kiso_themes/templates/error_pages/500.html.erb +67 -0
- data/lib/generators/kiso_themes/templates/kiso_themes.css +31 -0
- data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.erb +124 -0
- data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.haml +81 -0
- data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.slim +81 -0
- data/lib/generators/kiso_themes/templates/layouts/_base.html.erb +34 -0
- data/lib/generators/kiso_themes/templates/layouts/_base.html.haml +19 -0
- data/lib/generators/kiso_themes/templates/layouts/_base.html.slim +19 -0
- data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.erb +134 -0
- data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.haml +87 -0
- data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.slim +87 -0
- data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.erb +30 -0
- data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.haml +17 -0
- data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.slim +17 -0
- data/lib/generators/kiso_themes/templates/layouts/_flashes.html.erb +13 -0
- data/lib/generators/kiso_themes/templates/layouts/_flashes.html.haml +10 -0
- data/lib/generators/kiso_themes/templates/layouts/_flashes.html.slim +10 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.erb +66 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.haml +42 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.slim +42 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.erb +25 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.haml +16 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.slim +16 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.erb +0 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.haml +0 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.slim +1 -0
- data/lib/generators/kiso_themes/templates/layouts/application.html.erb +4 -0
- data/lib/generators/kiso_themes/templates/layouts/application.html.haml +3 -0
- data/lib/generators/kiso_themes/templates/layouts/application.html.slim +3 -0
- data/lib/generators/kiso_themes/templates/layouts/devise.html.erb +3 -0
- data/lib/generators/kiso_themes/templates/layouts/devise.html.haml +5 -0
- data/lib/generators/kiso_themes/templates/layouts/devise.html.slim +5 -0
- data/lib/generators/kiso_themes/templates/layouts/email.html.erb +68 -0
- data/lib/generators/kiso_themes/templates/layouts/email.html.haml +40 -0
- data/lib/generators/kiso_themes/templates/layouts/email.html.slim +40 -0
- data/lib/generators/kiso_themes/templates/layouts/landing.html.erb +3 -0
- data/lib/generators/kiso_themes/templates/layouts/landing.html.haml +2 -0
- data/lib/generators/kiso_themes/templates/layouts/landing.html.slim +2 -0
- data/lib/generators/kiso_themes/templates/layouts/scaffold.html.erb +25 -0
- data/lib/generators/kiso_themes/templates/layouts/scaffold.html.haml +15 -0
- data/lib/generators/kiso_themes/templates/layouts/scaffold.html.slim +15 -0
- data/lib/generators/kiso_themes/templates/layouts/sidenav.html.erb +33 -0
- data/lib/generators/kiso_themes/templates/layouts/sidenav.html.haml +19 -0
- data/lib/generators/kiso_themes/templates/layouts/sidenav.html.slim +19 -0
- data/lib/generators/kiso_themes/templates/rails6/index.js +39 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/bootstrap.js +20 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/bootstrap_switch.js +23 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/chartjs.js +11 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/clipboard.js +12 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/countTo.js +1 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/countdown.js +28 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/chartjs.js +101 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/dashboard.js +229 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/data_generator.js +27 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/easypiechart.js +41 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/flot.js +258 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/gmaps.js +163 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/jqvectormap.js +65 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/sparklines.js +156 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/easypiechart.js +12 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/fastclick.js +16 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/fitie.js +14 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/flot.js +11 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/forms.js +13 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/gmaps.js +9 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/header.js +33 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/inspect_mode/inspect_mode.js +580 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/jasny.js +13 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/jqvectormaps.js +24 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/kernel.js +48 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/metis_menu.js +16 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/parallax.js +14 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/popper.js +1 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/prettify.js +12 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/prism.js +10 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sheets.js +98 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sidenav.js +77 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/slimscroll.js +1 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sparklines.js +1 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.erb +55 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.slim +36 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.erb +52 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.haml +44 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.slim +44 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.erb +15 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.haml +10 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.slim +10 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.erb +48 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.haml +34 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.slim +34 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.erb +59 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.haml +42 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.slim +42 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.erb +70 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.haml +47 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.slim +47 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.erb +65 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.haml +51 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.slim +51 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.haml +50 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.slim +50 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.erb +75 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.erb +61 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.haml +50 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.slim +50 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.erb +38 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.haml +25 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.slim +25 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.erb +74 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.haml +45 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.slim +45 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.erb +137 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.haml +135 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.slim +135 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.erb +11 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.haml +7 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.slim +7 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.erb +54 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.slim +36 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.erb +102 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.haml +80 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.slim +80 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.erb +11 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.haml +321 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.slim +321 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.erb +437 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.haml +306 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.slim +306 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.erb +148 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.haml +96 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.slim +96 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.erb +126 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.haml +77 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.slim +77 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.erb +16 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.haml +15 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.slim +15 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.erb +20 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.haml +13 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.slim +13 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.erb +92 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.haml +80 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.slim +80 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.erb +227 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.haml +168 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.slim +168 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.erb +17 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.haml +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.slim +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.erb +18 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.haml +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.slim +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.erb +18 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.haml +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.slim +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.erb +16 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.haml +10 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.slim +10 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.erb +103 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.haml +88 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.slim +88 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.erb +89 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.haml +57 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.slim +57 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.erb +41 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.haml +26 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.slim +26 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.erb +38 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.haml +23 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.slim +23 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.erb +185 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.haml +138 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.slim +138 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.erb +96 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.haml +58 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.slim +58 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.erb +26 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.haml +13 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.slim +13 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.erb +159 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.haml +100 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.slim +100 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.erb +205 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.haml +206 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.slim +206 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.erb +64 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.haml +37 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.slim +37 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.erb +63 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.slim +36 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.erb +63 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.slim +36 -0
- data/lib/generators/kiso_themes/user_account_pages_generator.rb +47 -0
- data/lib/generators/rails/scaffold_controller_generator.rb +37 -0
- data/lib/generators/rails/templates/controller.rb +70 -0
- data/lib/kiso_themes/compatibility.rb +9 -0
- data/lib/kiso_themes/engine.rb +87 -0
- data/lib/kiso_themes/extensions/simple_form/errors_component.rb +13 -0
- data/lib/kiso_themes/extensions/simple_form/form_builder.rb +17 -0
- data/lib/kiso_themes/extensions/simple_form/required_component.rb +21 -0
- data/lib/kiso_themes/extensions/simple_form/setup.rb +201 -0
- data/lib/kiso_themes/extensions/simple_form.rb +4 -0
- data/lib/kiso_themes/extensions/will_paginate.rb +30 -0
- data/lib/kiso_themes/kiso_themes.rb +3 -0
- data/lib/kiso_themes/railtie.rb +7 -0
- data/lib/kiso_themes/version.rb +41 -0
- data/lib/kiso_themes.rb +1 -0
- data/lib/sass/kiso_themes/_core/_accordion.scss +27 -0
- data/lib/sass/kiso_themes/_core/_alerts.scss +150 -0
- data/lib/sass/kiso_themes/_core/_backgrounds.scss +108 -0
- data/lib/sass/kiso_themes/_core/_badges.scss +45 -0
- data/lib/sass/kiso_themes/_core/_blog.scss +17 -0
- data/lib/sass/kiso_themes/_core/_borders.scss +34 -0
- data/lib/sass/kiso_themes/_core/_breadcrumbs.scss +82 -0
- data/lib/sass/kiso_themes/_core/_buttons.scss +202 -0
- data/lib/sass/kiso_themes/_core/_cards.scss +166 -0
- data/lib/sass/kiso_themes/_core/_carousel.scss +15 -0
- data/lib/sass/kiso_themes/_core/_checkboxes-radio.scss +240 -0
- data/lib/sass/kiso_themes/_core/_dropdown.scss +225 -0
- data/lib/sass/kiso_themes/_core/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/_core/_footers.scss +44 -0
- data/lib/sass/kiso_themes/_core/_grid.scss +9 -0
- data/lib/sass/kiso_themes/_core/_images.scss +7 -0
- data/lib/sass/kiso_themes/_core/_input_groups.scss +139 -0
- data/lib/sass/kiso_themes/_core/_inputs.scss +280 -0
- data/lib/sass/kiso_themes/_core/_landing_headers.scss +15 -0
- data/lib/sass/kiso_themes/_core/_listgroups.scss +16 -0
- data/lib/sass/kiso_themes/_core/_loaders.scss +690 -0
- data/lib/sass/kiso_themes/_core/_misc.scss +239 -0
- data/lib/sass/kiso_themes/_core/_mixins.scss +18 -0
- data/lib/sass/kiso_themes/_core/_modals.scss +190 -0
- data/lib/sass/kiso_themes/_core/_navbar.scss +260 -0
- data/lib/sass/kiso_themes/_core/_navs.scss +123 -0
- data/lib/sass/kiso_themes/_core/_page_components.scss +275 -0
- data/lib/sass/kiso_themes/_core/_pagination.scss +152 -0
- data/lib/sass/kiso_themes/_core/_pills.scss +131 -0
- data/lib/sass/kiso_themes/_core/_popover.scss +59 -0
- data/lib/sass/kiso_themes/_core/_pricing_tables.scss +111 -0
- data/lib/sass/kiso_themes/_core/_progress.scss +138 -0
- data/lib/sass/kiso_themes/_core/_responsive.scss +237 -0
- data/lib/sass/kiso_themes/_core/_scaffold.scss +6 -0
- data/lib/sass/kiso_themes/_core/_sidenav.scss +433 -0
- data/lib/sass/kiso_themes/_core/_simple_animations.scss +116 -0
- data/lib/sass/kiso_themes/_core/_tables.scss +22 -0
- data/lib/sass/kiso_themes/_core/_tabs.scss +162 -0
- data/lib/sass/kiso_themes/_core/_timelines.scss +54 -0
- data/lib/sass/kiso_themes/_core/_tooltips.scss +28 -0
- data/lib/sass/kiso_themes/_core/_typography.scss +400 -0
- data/lib/sass/kiso_themes/_core/_variables.scss +431 -0
- data/lib/sass/kiso_themes/_core/cards/_card_activity_feed.scss +84 -0
- data/lib/sass/kiso_themes/_core/cards/_card_chat.scss +93 -0
- data/lib/sass/kiso_themes/_core/cards/_card_images.scss +114 -0
- data/lib/sass/kiso_themes/_core/cards/_card_items.scss +72 -0
- data/lib/sass/kiso_themes/_core/cards/_card_metric.scss +134 -0
- data/lib/sass/kiso_themes/_core/cards/_card_sheet.scss +31 -0
- data/lib/sass/kiso_themes/_core/cards/_card_table.scss +28 -0
- data/lib/sass/kiso_themes/_core/cards/_card_tiles.scss +27 -0
- data/lib/sass/kiso_themes/_core/cards/_cards_mini.scss +142 -0
- data/lib/sass/kiso_themes/_core/devise/1.scss +40 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_1.scss +6 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_2.scss +35 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_3.scss +11 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_4.scss +10 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_5.scss +11 -0
- data/lib/sass/kiso_themes/_core/mixins/_badges.scss +4 -0
- data/lib/sass/kiso_themes/_core/mixins/_buttons.scss +128 -0
- data/lib/sass/kiso_themes/_core/mixins/_colors.scss +17 -0
- data/lib/sass/kiso_themes/_core/mixins/_datepicker.scss +121 -0
- data/lib/sass/kiso_themes/_core/mixins/_dropdown.scss +30 -0
- data/lib/sass/kiso_themes/_core/mixins/_inputs.scss +117 -0
- data/lib/sass/kiso_themes/_core/mixins/_modals.scss +12 -0
- data/lib/sass/kiso_themes/_core/mixins/_navbar.scss +261 -0
- data/lib/sass/kiso_themes/_core/mixins/_pages.scss +7 -0
- data/lib/sass/kiso_themes/_core/mixins/_popovers.scss +29 -0
- data/lib/sass/kiso_themes/_core/mixins/_theme.scss +239 -0
- data/lib/sass/kiso_themes/_core/mixins/_transparency.scss +8 -0
- data/lib/sass/kiso_themes/_core/mixins/_vendor-prefixes.scss +317 -0
- data/lib/sass/kiso_themes/_core/plugins/_easy_pie_chart.scss +21 -0
- data/lib/sass/kiso_themes/_core/plugins/_jasny_bootstrap.scss +7 -0
- data/lib/sass/kiso_themes/_core/plugins/_jquery_sparklines.scss +6 -0
- data/lib/sass/kiso_themes/_core/plugins/_jqvectormap.scss +135 -0
- data/lib/sass/kiso_themes/_core/plugins/_plugin-bootstrap-switch.scss +220 -0
- data/lib/sass/kiso_themes/_core/plugins/_plugin-datepicker.scss +554 -0
- data/lib/sass/kiso_themes/_core/plugins/_plugin-nouislider.scss +351 -0
- data/lib/sass/kiso_themes/auriga/_cards.scss +3 -0
- data/lib/sass/kiso_themes/auriga/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/auriga/_tables.scss +54 -0
- data/lib/sass/kiso_themes/auriga/styles/_blue_variables.scss +102 -0
- data/lib/sass/kiso_themes/auriga/styles/_green_variables.scss +82 -0
- data/lib/sass/kiso_themes/auriga/styles/_red_variables.scss +82 -0
- data/lib/sass/kiso_themes/auriga/styles/_yellow_variables.scss +82 -0
- data/lib/sass/kiso_themes/gemini/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/gemini/styles/_amber_variables.scss +54 -0
- data/lib/sass/kiso_themes/gemini/styles/_blue_variables.scss +52 -0
- data/lib/sass/kiso_themes/gemini/styles/_granite_variables.scss +55 -0
- data/lib/sass/kiso_themes/gemini/styles/_ocean_variables.scss +54 -0
- data/lib/sass/kiso_themes/lyra/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/lyra/styles/_azure_variables.scss +56 -0
- data/lib/sass/kiso_themes/lyra/styles/_charcoal_variables.scss +56 -0
- data/lib/sass/kiso_themes/lyra/styles/_lime_variables.scss +56 -0
- data/lib/sass/kiso_themes/lyra/styles/_raspberry_variables.scss +56 -0
- data/lib/sass/kiso_themes/orion/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/orion/styles/_blue_variables.scss +71 -0
- data/lib/sass/kiso_themes/orion/styles/_green_variables.scss +56 -0
- data/lib/sass/kiso_themes/orion/styles/_orange_variables.scss +48 -0
- data/lib/sass/kiso_themes/orion/styles/_purple_variables.scss +57 -0
- data/lib/sass/vendor/bootstrap/_alert.scss +51 -0
- data/lib/sass/vendor/bootstrap/_badge.scss +54 -0
- data/lib/sass/vendor/bootstrap/_breadcrumb.scss +41 -0
- data/lib/sass/vendor/bootstrap/_button-group.scss +163 -0
- data/lib/sass/vendor/bootstrap/_buttons.scss +137 -0
- data/lib/sass/vendor/bootstrap/_card.scss +289 -0
- data/lib/sass/vendor/bootstrap/_carousel.scss +197 -0
- data/lib/sass/vendor/bootstrap/_close.scss +41 -0
- data/lib/sass/vendor/bootstrap/_code.scss +48 -0
- data/lib/sass/vendor/bootstrap/_custom-forms.scss +507 -0
- data/lib/sass/vendor/bootstrap/_dropdown.scss +191 -0
- data/lib/sass/vendor/bootstrap/_forms.scss +330 -0
- data/lib/sass/vendor/bootstrap/_functions.scss +86 -0
- data/lib/sass/vendor/bootstrap/_grid.scss +52 -0
- data/lib/sass/vendor/bootstrap/_images.scss +42 -0
- data/lib/sass/vendor/bootstrap/_input-group.scss +193 -0
- data/lib/sass/vendor/bootstrap/_jumbotron.scss +17 -0
- data/lib/sass/vendor/bootstrap/_list-group.scss +149 -0
- data/lib/sass/vendor/bootstrap/_media.scss +8 -0
- data/lib/sass/vendor/bootstrap/_mixins.scss +47 -0
- data/lib/sass/vendor/bootstrap/_modal.scss +229 -0
- data/lib/sass/vendor/bootstrap/_nav.scss +120 -0
- data/lib/sass/vendor/bootstrap/_navbar.scss +294 -0
- data/lib/sass/vendor/bootstrap/_pagination.scss +83 -0
- data/lib/sass/vendor/bootstrap/_popover.scss +171 -0
- data/lib/sass/vendor/bootstrap/_print.scss +141 -0
- data/lib/sass/vendor/bootstrap/_progress.scss +43 -0
- data/lib/sass/vendor/bootstrap/_reboot.scss +483 -0
- data/lib/sass/vendor/bootstrap/_root.scss +19 -0
- data/lib/sass/vendor/bootstrap/_spinners.scss +55 -0
- data/lib/sass/vendor/bootstrap/_tables.scss +185 -0
- data/lib/sass/vendor/bootstrap/_toasts.scss +44 -0
- data/lib/sass/vendor/bootstrap/_tooltip.scss +115 -0
- data/lib/sass/vendor/bootstrap/_transitions.scss +20 -0
- data/lib/sass/vendor/bootstrap/_type.scss +125 -0
- data/lib/sass/vendor/bootstrap/_utilities.scss +17 -0
- data/lib/sass/vendor/bootstrap/_variables.scss +1123 -0
- data/lib/sass/vendor/bootstrap/bootstrap-grid.scss +29 -0
- data/lib/sass/vendor/bootstrap/bootstrap-reboot.scss +12 -0
- data/lib/sass/vendor/bootstrap/bootstrap.scss +44 -0
- data/lib/sass/vendor/bootstrap/mixins/_alert.scss +13 -0
- data/lib/sass/vendor/bootstrap/mixins/_background-variant.scss +21 -0
- data/lib/sass/vendor/bootstrap/mixins/_badge.scss +17 -0
- data/lib/sass/vendor/bootstrap/mixins/_border-radius.scss +63 -0
- data/lib/sass/vendor/bootstrap/mixins/_box-shadow.scss +20 -0
- data/lib/sass/vendor/bootstrap/mixins/_breakpoints.scss +123 -0
- data/lib/sass/vendor/bootstrap/mixins/_buttons.scss +107 -0
- data/lib/sass/vendor/bootstrap/mixins/_caret.scss +62 -0
- data/lib/sass/vendor/bootstrap/mixins/_clearfix.scss +7 -0
- data/lib/sass/vendor/bootstrap/mixins/_deprecate.scss +10 -0
- data/lib/sass/vendor/bootstrap/mixins/_float.scss +14 -0
- data/lib/sass/vendor/bootstrap/mixins/_forms.scss +192 -0
- data/lib/sass/vendor/bootstrap/mixins/_gradients.scss +45 -0
- data/lib/sass/vendor/bootstrap/mixins/_grid-framework.scss +66 -0
- data/lib/sass/vendor/bootstrap/mixins/_grid.scss +51 -0
- data/lib/sass/vendor/bootstrap/mixins/_hover.scss +37 -0
- data/lib/sass/vendor/bootstrap/mixins/_image.scss +36 -0
- data/lib/sass/vendor/bootstrap/mixins/_list-group.scss +21 -0
- data/lib/sass/vendor/bootstrap/mixins/_lists.scss +7 -0
- data/lib/sass/vendor/bootstrap/mixins/_nav-divider.scss +10 -0
- data/lib/sass/vendor/bootstrap/mixins/_pagination.scss +22 -0
- data/lib/sass/vendor/bootstrap/mixins/_reset-text.scss +17 -0
- data/lib/sass/vendor/bootstrap/mixins/_resize.scss +6 -0
- data/lib/sass/vendor/bootstrap/mixins/_screen-reader.scss +33 -0
- data/lib/sass/vendor/bootstrap/mixins/_size.scss +7 -0
- data/lib/sass/vendor/bootstrap/mixins/_table-row.scss +39 -0
- data/lib/sass/vendor/bootstrap/mixins/_text-emphasis.scss +16 -0
- data/lib/sass/vendor/bootstrap/mixins/_text-hide.scss +11 -0
- data/lib/sass/vendor/bootstrap/mixins/_text-truncate.scss +8 -0
- data/lib/sass/vendor/bootstrap/mixins/_transition.scss +16 -0
- data/lib/sass/vendor/bootstrap/mixins/_visibility.scss +8 -0
- data/lib/sass/vendor/bootstrap/utilities/_align.scss +8 -0
- data/lib/sass/vendor/bootstrap/utilities/_background.scss +19 -0
- data/lib/sass/vendor/bootstrap/utilities/_borders.scss +75 -0
- data/lib/sass/vendor/bootstrap/utilities/_clearfix.scss +3 -0
- data/lib/sass/vendor/bootstrap/utilities/_display.scss +26 -0
- data/lib/sass/vendor/bootstrap/utilities/_embed.scss +39 -0
- data/lib/sass/vendor/bootstrap/utilities/_flex.scss +51 -0
- data/lib/sass/vendor/bootstrap/utilities/_float.scss +11 -0
- data/lib/sass/vendor/bootstrap/utilities/_overflow.scss +5 -0
- data/lib/sass/vendor/bootstrap/utilities/_position.scss +32 -0
- data/lib/sass/vendor/bootstrap/utilities/_screenreaders.scss +11 -0
- data/lib/sass/vendor/bootstrap/utilities/_shadows.scss +6 -0
- data/lib/sass/vendor/bootstrap/utilities/_sizing.scss +20 -0
- data/lib/sass/vendor/bootstrap/utilities/_spacing.scss +73 -0
- data/lib/sass/vendor/bootstrap/utilities/_stretched-link.scss +19 -0
- data/lib/sass/vendor/bootstrap/utilities/_text.scss +72 -0
- data/lib/sass/vendor/bootstrap/utilities/_visibility.scss +13 -0
- data/lib/sass/vendor/bootstrap/vendor/_rfs.scss +204 -0
- data/lib/sass/vendor/font_awesome/_animated.scss +34 -0
- data/lib/sass/vendor/font_awesome/_bordered-pulled.scss +25 -0
- data/lib/sass/vendor/font_awesome/_core.scss +12 -0
- data/lib/sass/vendor/font_awesome/_fixed-width.scss +6 -0
- data/lib/sass/vendor/font_awesome/_icons.scss +789 -0
- data/lib/sass/vendor/font_awesome/_larger.scss +13 -0
- data/lib/sass/vendor/font_awesome/_list.scss +19 -0
- data/lib/sass/vendor/font_awesome/_mixins.scss +60 -0
- data/lib/sass/vendor/font_awesome/_path.scss +14 -0
- data/lib/sass/vendor/font_awesome/_rotated-flipped.scss +20 -0
- data/lib/sass/vendor/font_awesome/_screen-reader.scss +5 -0
- data/lib/sass/vendor/font_awesome/_stacked.scss +20 -0
- data/lib/sass/vendor/font_awesome/_variables.scss +800 -0
- data/lib/sass/vendor/font_awesome/font-awesome.scss +18 -0
- data/lib/sass/vendor/ionicons/_ionicons-font.scss +27 -0
- data/lib/sass/vendor/ionicons/_ionicons-icons.scss +1473 -0
- data/lib/sass/vendor/ionicons/_ionicons-variables.scss +741 -0
- data/lib/sass/vendor/ionicons/ionicons.scss +15 -0
- data/lib/sass/vendor/mdiicons/_icons-material-design.scss +42 -0
- data/lib/sass/vendor/prism/twilight.css +198 -0
- data/lib/sass/vendor/themify/themify-icons.css +1082 -0
- data/lib/templates/erb/scaffold/_form.html.erb +50 -0
- data/lib/templates/erb/scaffold/edit.html.erb +37 -0
- data/lib/templates/erb/scaffold/index.html.erb +80 -0
- data/lib/templates/erb/scaffold/new.html.erb +37 -0
- data/lib/templates/erb/scaffold/show.html.erb +53 -0
- data/lib/templates/haml/scaffold/_form.html.haml +29 -0
- data/lib/templates/haml/scaffold/edit.html.haml +6 -0
- data/lib/templates/haml/scaffold/index.html.haml +41 -0
- data/lib/templates/haml/scaffold/new.html.haml +6 -0
- data/lib/templates/haml/scaffold/show.html.haml +16 -0
- data/lib/templates/slim/scaffold/_form.html.haml +29 -0
- data/lib/templates/slim/scaffold/edit.html.haml +6 -0
- data/lib/templates/slim/scaffold/index.html.haml +41 -0
- data/lib/templates/slim/scaffold/new.html.haml +6 -0
- data/lib/templates/slim/scaffold/show.html.haml +16 -0
- data/support/content_block_rewriter.rb +25 -0
- data/support/css_rewriter.rb +76 -0
- data/support/page_rewriter.rb +27 -0
- metadata +1091 -0
|
@@ -0,0 +1,1020 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
* Bootstrap: rowlink.js v3.1.3
|
|
3
|
+
* http://jasny.github.io/bootstrap/javascript/#rowlink
|
|
4
|
+
* ============================================================
|
|
5
|
+
* Copyright 2012-2014 Arnold Daniels
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
* ============================================================ */
|
|
19
|
+
|
|
20
|
+
+function ($) { "use strict";
|
|
21
|
+
|
|
22
|
+
var Rowlink = function (element, options) {
|
|
23
|
+
this.$element = $(element)
|
|
24
|
+
this.options = $.extend({}, Rowlink.DEFAULTS, options)
|
|
25
|
+
|
|
26
|
+
this.$element.on('click.bs.rowlink', 'td:not(.rowlink-skip)', $.proxy(this.click, this))
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Rowlink.DEFAULTS = {
|
|
30
|
+
target: "a"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
Rowlink.prototype.click = function(e) {
|
|
34
|
+
var target = $(e.currentTarget).closest('tr').find(this.options.target)[0]
|
|
35
|
+
if ($(e.target)[0] === target) return
|
|
36
|
+
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
|
|
39
|
+
if (target.click) {
|
|
40
|
+
target.click()
|
|
41
|
+
} else if (document.createEvent) {
|
|
42
|
+
var evt = document.createEvent("MouseEvents");
|
|
43
|
+
evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
|
44
|
+
target.dispatchEvent(evt);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// ROWLINK PLUGIN DEFINITION
|
|
50
|
+
// ===========================
|
|
51
|
+
|
|
52
|
+
var old = $.fn.rowlink
|
|
53
|
+
|
|
54
|
+
$.fn.rowlink = function (options) {
|
|
55
|
+
return this.each(function () {
|
|
56
|
+
var $this = $(this)
|
|
57
|
+
var data = $this.data('bs.rowlink')
|
|
58
|
+
if (!data) $this.data('bs.rowlink', (data = new Rowlink(this, options)))
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
$.fn.rowlink.Constructor = Rowlink
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// ROWLINK NO CONFLICT
|
|
66
|
+
// ====================
|
|
67
|
+
|
|
68
|
+
$.fn.rowlink.noConflict = function () {
|
|
69
|
+
$.fn.rowlink = old
|
|
70
|
+
return this
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// ROWLINK DATA-API
|
|
75
|
+
// ==================
|
|
76
|
+
|
|
77
|
+
$(document).on('click.bs.rowlink.data-api', '[data-link="row"]', function (e) {
|
|
78
|
+
if ($(e.target).closest('.rowlink-skip').length !== 0) return
|
|
79
|
+
|
|
80
|
+
var $this = $(this)
|
|
81
|
+
if ($this.data('bs.rowlink')) return
|
|
82
|
+
$this.rowlink($this.data())
|
|
83
|
+
$(e.target).trigger('click.bs.rowlink')
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
}(window.jQuery);
|
|
87
|
+
|
|
88
|
+
/* ===========================================================
|
|
89
|
+
* Bootstrap: inputmask.js v3.1.0
|
|
90
|
+
* http://jasny.github.io/bootstrap/javascript/#inputmask
|
|
91
|
+
*
|
|
92
|
+
* Based on Masked Input plugin by Josh Bush (digitalbush.com)
|
|
93
|
+
* ===========================================================
|
|
94
|
+
* Copyright 2012-2014 Arnold Daniels
|
|
95
|
+
*
|
|
96
|
+
* Licensed under the Apache License, Version 2.0 (the "License")
|
|
97
|
+
* you may not use this file except in compliance with the License.
|
|
98
|
+
* You may obtain a copy of the License at
|
|
99
|
+
*
|
|
100
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
*
|
|
102
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
103
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
104
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
105
|
+
* See the License for the specific language governing permissions and
|
|
106
|
+
* limitations under the License.
|
|
107
|
+
* ========================================================== */
|
|
108
|
+
|
|
109
|
+
+function ($) { "use strict";
|
|
110
|
+
|
|
111
|
+
var isIphone = (window.orientation !== undefined)
|
|
112
|
+
var isAndroid = navigator.userAgent.toLowerCase().indexOf("android") > -1
|
|
113
|
+
var isIE = window.navigator.appName == 'Microsoft Internet Explorer'
|
|
114
|
+
|
|
115
|
+
// INPUTMASK PUBLIC CLASS DEFINITION
|
|
116
|
+
// =================================
|
|
117
|
+
|
|
118
|
+
var Inputmask = function (element, options) {
|
|
119
|
+
if (isAndroid) return // No support because caret positioning doesn't work on Android
|
|
120
|
+
|
|
121
|
+
this.$element = $(element)
|
|
122
|
+
this.options = $.extend({}, Inputmask.DEFAULTS, options)
|
|
123
|
+
this.mask = String(this.options.mask)
|
|
124
|
+
|
|
125
|
+
this.init()
|
|
126
|
+
this.listen()
|
|
127
|
+
|
|
128
|
+
this.checkVal() //Perform initial check for existing values
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
Inputmask.DEFAULTS = {
|
|
132
|
+
mask: "",
|
|
133
|
+
placeholder: "_",
|
|
134
|
+
definitions: {
|
|
135
|
+
'9': "[0-9]",
|
|
136
|
+
'a': "[A-Za-z]",
|
|
137
|
+
'w': "[A-Za-z0-9]",
|
|
138
|
+
'*': "."
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
Inputmask.prototype.init = function() {
|
|
143
|
+
var defs = this.options.definitions
|
|
144
|
+
var len = this.mask.length
|
|
145
|
+
|
|
146
|
+
this.tests = []
|
|
147
|
+
this.partialPosition = this.mask.length
|
|
148
|
+
this.firstNonMaskPos = null
|
|
149
|
+
|
|
150
|
+
$.each(this.mask.split(""), $.proxy(function(i, c) {
|
|
151
|
+
if (c == '?') {
|
|
152
|
+
len--
|
|
153
|
+
this.partialPosition = i
|
|
154
|
+
} else if (defs[c]) {
|
|
155
|
+
this.tests.push(new RegExp(defs[c]))
|
|
156
|
+
if (this.firstNonMaskPos === null)
|
|
157
|
+
this.firstNonMaskPos = this.tests.length - 1
|
|
158
|
+
} else {
|
|
159
|
+
this.tests.push(null)
|
|
160
|
+
}
|
|
161
|
+
}, this))
|
|
162
|
+
|
|
163
|
+
this.buffer = $.map(this.mask.split(""), $.proxy(function(c, i) {
|
|
164
|
+
if (c != '?') return defs[c] ? this.options.placeholder : c
|
|
165
|
+
}, this))
|
|
166
|
+
|
|
167
|
+
this.focusText = this.$element.val()
|
|
168
|
+
|
|
169
|
+
this.$element.data("rawMaskFn", $.proxy(function() {
|
|
170
|
+
return $.map(this.buffer, function(c, i) {
|
|
171
|
+
return this.tests[i] && c != this.options.placeholder ? c : null
|
|
172
|
+
}).join('')
|
|
173
|
+
}, this))
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
Inputmask.prototype.listen = function() {
|
|
177
|
+
if (this.$element.attr("readonly")) return
|
|
178
|
+
|
|
179
|
+
var pasteEventName = (isIE ? 'paste' : 'input') + ".bs.inputmask"
|
|
180
|
+
|
|
181
|
+
this.$element
|
|
182
|
+
.on("unmask.bs.inputmask", $.proxy(this.unmask, this))
|
|
183
|
+
|
|
184
|
+
.on("focus.bs.inputmask", $.proxy(this.focusEvent, this))
|
|
185
|
+
.on("blur.bs.inputmask", $.proxy(this.blurEvent, this))
|
|
186
|
+
|
|
187
|
+
.on("keydown.bs.inputmask", $.proxy(this.keydownEvent, this))
|
|
188
|
+
.on("keypress.bs.inputmask", $.proxy(this.keypressEvent, this))
|
|
189
|
+
|
|
190
|
+
.on(pasteEventName, $.proxy(this.pasteEvent, this))
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
//Helper Function for Caret positioning
|
|
194
|
+
Inputmask.prototype.caret = function(begin, end) {
|
|
195
|
+
if (this.$element.length === 0) return
|
|
196
|
+
if (typeof begin == 'number') {
|
|
197
|
+
end = (typeof end == 'number') ? end : begin
|
|
198
|
+
return this.$element.each(function() {
|
|
199
|
+
if (this.setSelectionRange) {
|
|
200
|
+
this.setSelectionRange(begin, end)
|
|
201
|
+
} else if (this.createTextRange) {
|
|
202
|
+
var range = this.createTextRange()
|
|
203
|
+
range.collapse(true)
|
|
204
|
+
range.moveEnd('character', end)
|
|
205
|
+
range.moveStart('character', begin)
|
|
206
|
+
range.select()
|
|
207
|
+
}
|
|
208
|
+
})
|
|
209
|
+
} else {
|
|
210
|
+
if (this.$element[0].setSelectionRange) {
|
|
211
|
+
begin = this.$element[0].selectionStart
|
|
212
|
+
end = this.$element[0].selectionEnd
|
|
213
|
+
} else if (document.selection && document.selection.createRange) {
|
|
214
|
+
var range = document.selection.createRange()
|
|
215
|
+
begin = 0 - range.duplicate().moveStart('character', -100000)
|
|
216
|
+
end = begin + range.text.length
|
|
217
|
+
}
|
|
218
|
+
return {
|
|
219
|
+
begin: begin,
|
|
220
|
+
end: end
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
Inputmask.prototype.seekNext = function(pos) {
|
|
226
|
+
var len = this.mask.length
|
|
227
|
+
while (++pos <= len && !this.tests[pos]);
|
|
228
|
+
|
|
229
|
+
return pos
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
Inputmask.prototype.seekPrev = function(pos) {
|
|
233
|
+
while (--pos >= 0 && !this.tests[pos]);
|
|
234
|
+
|
|
235
|
+
return pos
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
Inputmask.prototype.shiftL = function(begin,end) {
|
|
239
|
+
var len = this.mask.length
|
|
240
|
+
|
|
241
|
+
if (begin < 0) return
|
|
242
|
+
|
|
243
|
+
for (var i = begin, j = this.seekNext(end); i < len; i++) {
|
|
244
|
+
if (this.tests[i]) {
|
|
245
|
+
if (j < len && this.tests[i].test(this.buffer[j])) {
|
|
246
|
+
this.buffer[i] = this.buffer[j]
|
|
247
|
+
this.buffer[j] = this.options.placeholder
|
|
248
|
+
} else
|
|
249
|
+
break
|
|
250
|
+
j = this.seekNext(j)
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
this.writeBuffer()
|
|
254
|
+
this.caret(Math.max(this.firstNonMaskPos, begin))
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
Inputmask.prototype.shiftR = function(pos) {
|
|
258
|
+
var len = this.mask.length
|
|
259
|
+
|
|
260
|
+
for (var i = pos, c = this.options.placeholder; i < len; i++) {
|
|
261
|
+
if (this.tests[i]) {
|
|
262
|
+
var j = this.seekNext(i)
|
|
263
|
+
var t = this.buffer[i]
|
|
264
|
+
this.buffer[i] = c
|
|
265
|
+
if (j < len && this.tests[j].test(t))
|
|
266
|
+
c = t
|
|
267
|
+
else
|
|
268
|
+
break
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
Inputmask.prototype.unmask = function() {
|
|
274
|
+
this.$element
|
|
275
|
+
.unbind(".bs.inputmask")
|
|
276
|
+
.removeData("bs.inputmask")
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
Inputmask.prototype.focusEvent = function() {
|
|
280
|
+
this.focusText = this.$element.val()
|
|
281
|
+
var len = this.mask.length
|
|
282
|
+
var pos = this.checkVal()
|
|
283
|
+
this.writeBuffer()
|
|
284
|
+
|
|
285
|
+
var that = this
|
|
286
|
+
var moveCaret = function() {
|
|
287
|
+
if (pos == len)
|
|
288
|
+
that.caret(0, pos)
|
|
289
|
+
else
|
|
290
|
+
that.caret(pos)
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
moveCaret()
|
|
294
|
+
setTimeout(moveCaret, 50)
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
Inputmask.prototype.blurEvent = function() {
|
|
298
|
+
this.checkVal()
|
|
299
|
+
if (this.$element.val() !== this.focusText) {
|
|
300
|
+
this.$element.trigger('change')
|
|
301
|
+
this.$element.trigger('input')
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
Inputmask.prototype.keydownEvent = function(e) {
|
|
306
|
+
var k = e.which
|
|
307
|
+
|
|
308
|
+
//backspace, delete, and escape get special treatment
|
|
309
|
+
if (k == 8 || k == 46 || (isIphone && k == 127)) {
|
|
310
|
+
var pos = this.caret(),
|
|
311
|
+
begin = pos.begin,
|
|
312
|
+
end = pos.end
|
|
313
|
+
|
|
314
|
+
if (end - begin === 0) {
|
|
315
|
+
begin = k != 46 ? this.seekPrev(begin) : (end = this.seekNext(begin - 1))
|
|
316
|
+
end = k == 46 ? this.seekNext(end) : end
|
|
317
|
+
}
|
|
318
|
+
this.clearBuffer(begin, end)
|
|
319
|
+
this.shiftL(begin, end - 1)
|
|
320
|
+
|
|
321
|
+
return false
|
|
322
|
+
} else if (k == 27) {//escape
|
|
323
|
+
this.$element.val(this.focusText)
|
|
324
|
+
this.caret(0, this.checkVal())
|
|
325
|
+
return false
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
Inputmask.prototype.keypressEvent = function(e) {
|
|
330
|
+
var len = this.mask.length
|
|
331
|
+
|
|
332
|
+
var k = e.which,
|
|
333
|
+
pos = this.caret()
|
|
334
|
+
|
|
335
|
+
if (e.ctrlKey || e.altKey || e.metaKey || k < 32) {//Ignore
|
|
336
|
+
return true
|
|
337
|
+
} else if (k) {
|
|
338
|
+
if (pos.end - pos.begin !== 0) {
|
|
339
|
+
this.clearBuffer(pos.begin, pos.end)
|
|
340
|
+
this.shiftL(pos.begin, pos.end - 1)
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
var p = this.seekNext(pos.begin - 1)
|
|
344
|
+
if (p < len) {
|
|
345
|
+
var c = String.fromCharCode(k)
|
|
346
|
+
if (this.tests[p].test(c)) {
|
|
347
|
+
this.shiftR(p)
|
|
348
|
+
this.buffer[p] = c
|
|
349
|
+
this.writeBuffer()
|
|
350
|
+
var next = this.seekNext(p)
|
|
351
|
+
this.caret(next)
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
return false
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
Inputmask.prototype.pasteEvent = function() {
|
|
359
|
+
var that = this
|
|
360
|
+
|
|
361
|
+
setTimeout(function() {
|
|
362
|
+
that.caret(that.checkVal(true))
|
|
363
|
+
}, 0)
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
Inputmask.prototype.clearBuffer = function(start, end) {
|
|
367
|
+
var len = this.mask.length
|
|
368
|
+
|
|
369
|
+
for (var i = start; i < end && i < len; i++) {
|
|
370
|
+
if (this.tests[i])
|
|
371
|
+
this.buffer[i] = this.options.placeholder
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
Inputmask.prototype.writeBuffer = function() {
|
|
376
|
+
return this.$element.val(this.buffer.join('')).val()
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
Inputmask.prototype.checkVal = function(allow) {
|
|
380
|
+
var len = this.mask.length
|
|
381
|
+
//try to place characters where they belong
|
|
382
|
+
var test = this.$element.val()
|
|
383
|
+
var lastMatch = -1
|
|
384
|
+
|
|
385
|
+
for (var i = 0, pos = 0; i < len; i++) {
|
|
386
|
+
if (this.tests[i]) {
|
|
387
|
+
this.buffer[i] = this.options.placeholder
|
|
388
|
+
while (pos++ < test.length) {
|
|
389
|
+
var c = test.charAt(pos - 1)
|
|
390
|
+
if (this.tests[i].test(c)) {
|
|
391
|
+
this.buffer[i] = c
|
|
392
|
+
lastMatch = i
|
|
393
|
+
break
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
if (pos > test.length)
|
|
397
|
+
break
|
|
398
|
+
} else if (this.buffer[i] == test.charAt(pos) && i != this.partialPosition) {
|
|
399
|
+
pos++
|
|
400
|
+
lastMatch = i
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
if (!allow && lastMatch + 1 < this.partialPosition) {
|
|
404
|
+
this.$element.val("")
|
|
405
|
+
this.clearBuffer(0, len)
|
|
406
|
+
} else if (allow || lastMatch + 1 >= this.partialPosition) {
|
|
407
|
+
this.writeBuffer()
|
|
408
|
+
if (!allow) this.$element.val(this.$element.val().substring(0, lastMatch + 1))
|
|
409
|
+
}
|
|
410
|
+
return (this.partialPosition ? i : this.firstNonMaskPos)
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
// INPUTMASK PLUGIN DEFINITION
|
|
415
|
+
// ===========================
|
|
416
|
+
|
|
417
|
+
var old = $.fn.inputmask
|
|
418
|
+
|
|
419
|
+
$.fn.inputmask = function (options) {
|
|
420
|
+
return this.each(function () {
|
|
421
|
+
var $this = $(this)
|
|
422
|
+
var data = $this.data('bs.inputmask')
|
|
423
|
+
|
|
424
|
+
if (!data) $this.data('bs.inputmask', (data = new Inputmask(this, options)))
|
|
425
|
+
})
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
$.fn.inputmask.Constructor = Inputmask
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
// INPUTMASK NO CONFLICT
|
|
432
|
+
// ====================
|
|
433
|
+
|
|
434
|
+
$.fn.inputmask.noConflict = function () {
|
|
435
|
+
$.fn.inputmask = old
|
|
436
|
+
return this
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
// INPUTMASK DATA-API
|
|
441
|
+
// ==================
|
|
442
|
+
|
|
443
|
+
$(document).on('focus.bs.inputmask.data-api', '[data-mask]', function (e) {
|
|
444
|
+
var $this = $(this)
|
|
445
|
+
if ($this.data('bs.inputmask')) return
|
|
446
|
+
$this.inputmask($this.data())
|
|
447
|
+
})
|
|
448
|
+
|
|
449
|
+
}(window.jQuery);
|
|
450
|
+
|
|
451
|
+
/* ===========================================================
|
|
452
|
+
* Bootstrap: fileinput.js v3.1.3
|
|
453
|
+
* http://jasny.github.com/bootstrap/javascript/#fileinput
|
|
454
|
+
* ===========================================================
|
|
455
|
+
* Copyright 2012-2014 Arnold Daniels
|
|
456
|
+
*
|
|
457
|
+
* Licensed under the Apache License, Version 2.0 (the "License")
|
|
458
|
+
* you may not use this file except in compliance with the License.
|
|
459
|
+
* You may obtain a copy of the License at
|
|
460
|
+
*
|
|
461
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
462
|
+
*
|
|
463
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
464
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
465
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
466
|
+
* See the License for the specific language governing permissions and
|
|
467
|
+
* limitations under the License.
|
|
468
|
+
* ========================================================== */
|
|
469
|
+
|
|
470
|
+
+function ($) { "use strict";
|
|
471
|
+
|
|
472
|
+
var isIE = window.navigator.appName == 'Microsoft Internet Explorer'
|
|
473
|
+
|
|
474
|
+
// FILEUPLOAD PUBLIC CLASS DEFINITION
|
|
475
|
+
// =================================
|
|
476
|
+
|
|
477
|
+
var Fileinput = function (element, options) {
|
|
478
|
+
this.$element = $(element)
|
|
479
|
+
|
|
480
|
+
this.$input = this.$element.find(':file')
|
|
481
|
+
if (this.$input.length === 0) return
|
|
482
|
+
|
|
483
|
+
this.name = this.$input.attr('name') || options.name
|
|
484
|
+
|
|
485
|
+
this.$hidden = this.$element.find('input[type=hidden][name="' + this.name + '"]')
|
|
486
|
+
if (this.$hidden.length === 0) {
|
|
487
|
+
this.$hidden = $('<input type="hidden">').insertBefore(this.$input)
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
this.$preview = this.$element.find('.fileinput-preview')
|
|
491
|
+
var height = this.$preview.css('height')
|
|
492
|
+
if (this.$preview.css('display') !== 'inline' && height !== '0px' && height !== 'none') {
|
|
493
|
+
this.$preview.css('line-height', height)
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
this.original = {
|
|
497
|
+
exists: this.$element.hasClass('fileinput-exists'),
|
|
498
|
+
preview: this.$preview.html(),
|
|
499
|
+
hiddenVal: this.$hidden.val()
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
this.listen()
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
Fileinput.prototype.listen = function() {
|
|
506
|
+
this.$input.on('change.bs.fileinput', $.proxy(this.change, this))
|
|
507
|
+
$(this.$input[0].form).on('reset.bs.fileinput', $.proxy(this.reset, this))
|
|
508
|
+
|
|
509
|
+
this.$element.find('[data-trigger="fileinput"]').on('click.bs.fileinput', $.proxy(this.trigger, this))
|
|
510
|
+
this.$element.find('[data-dismiss="fileinput"]').on('click.bs.fileinput', $.proxy(this.clear, this))
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
Fileinput.prototype.change = function(e) {
|
|
514
|
+
var files = e.target.files === undefined ? (e.target && e.target.value ? [{ name: e.target.value.replace(/^.+\\/, '')}] : []) : e.target.files
|
|
515
|
+
|
|
516
|
+
e.stopPropagation()
|
|
517
|
+
|
|
518
|
+
if (files.length === 0) {
|
|
519
|
+
this.clear()
|
|
520
|
+
return
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
this.$hidden.val('')
|
|
524
|
+
this.$hidden.attr('name', '')
|
|
525
|
+
this.$input.attr('name', this.name)
|
|
526
|
+
|
|
527
|
+
var file = files[0]
|
|
528
|
+
|
|
529
|
+
if (this.$preview.length > 0 && (typeof file.type !== "undefined" ? file.type.match(/^image\/(gif|png|jpeg)$/) : file.name.match(/\.(gif|png|jpe?g)$/i)) && typeof FileReader !== "undefined") {
|
|
530
|
+
var reader = new FileReader()
|
|
531
|
+
var preview = this.$preview
|
|
532
|
+
var element = this.$element
|
|
533
|
+
|
|
534
|
+
reader.onload = function(re) {
|
|
535
|
+
var $img = $('<img>')
|
|
536
|
+
$img[0].src = re.target.result
|
|
537
|
+
files[0].result = re.target.result
|
|
538
|
+
|
|
539
|
+
element.find('.fileinput-filename').text(file.name)
|
|
540
|
+
|
|
541
|
+
// if parent has max-height, using `(max-)height: 100%` on child doesn't take padding and border into account
|
|
542
|
+
if (preview.css('max-height') != 'none') $img.css('max-height', parseInt(preview.css('max-height'), 10) - parseInt(preview.css('padding-top'), 10) - parseInt(preview.css('padding-bottom'), 10) - parseInt(preview.css('border-top'), 10) - parseInt(preview.css('border-bottom'), 10))
|
|
543
|
+
|
|
544
|
+
preview.html($img)
|
|
545
|
+
element.addClass('fileinput-exists').removeClass('fileinput-new')
|
|
546
|
+
|
|
547
|
+
element.trigger('change.bs.fileinput', files)
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
reader.readAsDataURL(file)
|
|
551
|
+
} else {
|
|
552
|
+
this.$element.find('.fileinput-filename').text(file.name)
|
|
553
|
+
this.$preview.text(file.name)
|
|
554
|
+
|
|
555
|
+
this.$element.addClass('fileinput-exists').removeClass('fileinput-new')
|
|
556
|
+
|
|
557
|
+
this.$element.trigger('change.bs.fileinput')
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
|
|
561
|
+
Fileinput.prototype.clear = function(e) {
|
|
562
|
+
if (e) e.preventDefault()
|
|
563
|
+
|
|
564
|
+
this.$hidden.val('')
|
|
565
|
+
this.$hidden.attr('name', this.name)
|
|
566
|
+
this.$input.attr('name', '')
|
|
567
|
+
|
|
568
|
+
//ie8+ doesn't support changing the value of input with type=file so clone instead
|
|
569
|
+
if (isIE) {
|
|
570
|
+
var inputClone = this.$input.clone(true);
|
|
571
|
+
this.$input.after(inputClone);
|
|
572
|
+
this.$input.remove();
|
|
573
|
+
this.$input = inputClone;
|
|
574
|
+
} else {
|
|
575
|
+
this.$input.val('')
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
this.$preview.html('')
|
|
579
|
+
this.$element.find('.fileinput-filename').text('')
|
|
580
|
+
this.$element.addClass('fileinput-new').removeClass('fileinput-exists')
|
|
581
|
+
|
|
582
|
+
if (e !== undefined) {
|
|
583
|
+
this.$input.trigger('change')
|
|
584
|
+
this.$element.trigger('clear.bs.fileinput')
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
|
|
588
|
+
Fileinput.prototype.reset = function() {
|
|
589
|
+
this.clear()
|
|
590
|
+
|
|
591
|
+
this.$hidden.val(this.original.hiddenVal)
|
|
592
|
+
this.$preview.html(this.original.preview)
|
|
593
|
+
this.$element.find('.fileinput-filename').text('')
|
|
594
|
+
|
|
595
|
+
if (this.original.exists) this.$element.addClass('fileinput-exists').removeClass('fileinput-new')
|
|
596
|
+
else this.$element.addClass('fileinput-new').removeClass('fileinput-exists')
|
|
597
|
+
|
|
598
|
+
this.$element.trigger('reset.bs.fileinput')
|
|
599
|
+
},
|
|
600
|
+
|
|
601
|
+
Fileinput.prototype.trigger = function(e) {
|
|
602
|
+
this.$input.trigger('click')
|
|
603
|
+
e.preventDefault()
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
// FILEUPLOAD PLUGIN DEFINITION
|
|
608
|
+
// ===========================
|
|
609
|
+
|
|
610
|
+
var old = $.fn.fileinput
|
|
611
|
+
|
|
612
|
+
$.fn.fileinput = function (options) {
|
|
613
|
+
return this.each(function () {
|
|
614
|
+
var $this = $(this),
|
|
615
|
+
data = $this.data('bs.fileinput')
|
|
616
|
+
if (!data) $this.data('bs.fileinput', (data = new Fileinput(this, options)))
|
|
617
|
+
if (typeof options == 'string') data[options]()
|
|
618
|
+
})
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
$.fn.fileinput.Constructor = Fileinput
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
// FILEINPUT NO CONFLICT
|
|
625
|
+
// ====================
|
|
626
|
+
|
|
627
|
+
$.fn.fileinput.noConflict = function () {
|
|
628
|
+
$.fn.fileinput = old
|
|
629
|
+
return this
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
// FILEUPLOAD DATA-API
|
|
634
|
+
// ==================
|
|
635
|
+
|
|
636
|
+
$(document).on('click.fileinput.data-api', '[data-provides="fileinput"]', function (e) {
|
|
637
|
+
var $this = $(this)
|
|
638
|
+
if ($this.data('bs.fileinput')) return
|
|
639
|
+
$this.fileinput($this.data())
|
|
640
|
+
|
|
641
|
+
var $target = $(e.target).closest('[data-dismiss="fileinput"],[data-trigger="fileinput"]');
|
|
642
|
+
if ($target.length > 0) {
|
|
643
|
+
e.preventDefault()
|
|
644
|
+
$target.trigger('click.bs.fileinput')
|
|
645
|
+
}
|
|
646
|
+
})
|
|
647
|
+
|
|
648
|
+
}(window.jQuery);
|
|
649
|
+
|
|
650
|
+
/* ========================================================================
|
|
651
|
+
* Bootstrap: offcanvas.js v3.1.3
|
|
652
|
+
* http://jasny.github.io/bootstrap/javascript/#offcanvas
|
|
653
|
+
* ========================================================================
|
|
654
|
+
* Copyright 2013-2014 Arnold Daniels
|
|
655
|
+
*
|
|
656
|
+
* Licensed under the Apache License, Version 2.0 (the "License")
|
|
657
|
+
* you may not use this file except in compliance with the License.
|
|
658
|
+
* You may obtain a copy of the License at
|
|
659
|
+
*
|
|
660
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
661
|
+
*
|
|
662
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
663
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
664
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
665
|
+
* See the License for the specific language governing permissions and
|
|
666
|
+
* limitations under the License.
|
|
667
|
+
* ======================================================================== */
|
|
668
|
+
|
|
669
|
+
+function ($) { "use strict";
|
|
670
|
+
|
|
671
|
+
// OFFCANVAS PUBLIC CLASS DEFINITION
|
|
672
|
+
// =================================
|
|
673
|
+
|
|
674
|
+
var OffCanvas = function (element, options) {
|
|
675
|
+
this.$element = $(element)
|
|
676
|
+
this.options = $.extend({}, OffCanvas.DEFAULTS, options)
|
|
677
|
+
this.state = null
|
|
678
|
+
this.placement = null
|
|
679
|
+
|
|
680
|
+
if (this.options.recalc) {
|
|
681
|
+
this.calcClone()
|
|
682
|
+
$(window).on('resize', $.proxy(this.recalc, this))
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
if (this.options.autohide)
|
|
686
|
+
$(document).on('click', $.proxy(this.autohide, this))
|
|
687
|
+
|
|
688
|
+
if (this.options.toggle) this.toggle()
|
|
689
|
+
|
|
690
|
+
if (this.options.disablescrolling) {
|
|
691
|
+
this.options.disableScrolling = this.options.disablescrolling
|
|
692
|
+
delete this.options.disablescrolling
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
OffCanvas.DEFAULTS = {
|
|
697
|
+
toggle: true,
|
|
698
|
+
placement: 'auto',
|
|
699
|
+
autohide: true,
|
|
700
|
+
recalc: true,
|
|
701
|
+
disableScrolling: true,
|
|
702
|
+
modal: false
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
OffCanvas.prototype.offset = function () {
|
|
706
|
+
switch (this.placement) {
|
|
707
|
+
case 'left':
|
|
708
|
+
case 'right': return this.$element.outerWidth()
|
|
709
|
+
case 'top':
|
|
710
|
+
case 'bottom': return this.$element.outerHeight()
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
OffCanvas.prototype.calcPlacement = function () {
|
|
715
|
+
if (this.options.placement !== 'auto') {
|
|
716
|
+
this.placement = this.options.placement
|
|
717
|
+
return
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
if (!this.$element.hasClass('in')) {
|
|
721
|
+
this.$element.css('visiblity', 'hidden !important').addClass('in')
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
var horizontal = $(window).width() / this.$element.width()
|
|
725
|
+
var vertical = $(window).height() / this.$element.height()
|
|
726
|
+
|
|
727
|
+
var element = this.$element
|
|
728
|
+
function ab(a, b) {
|
|
729
|
+
if (element.css(b) === 'auto') return a
|
|
730
|
+
if (element.css(a) === 'auto') return b
|
|
731
|
+
|
|
732
|
+
var size_a = parseInt(element.css(a), 10)
|
|
733
|
+
var size_b = parseInt(element.css(b), 10)
|
|
734
|
+
|
|
735
|
+
return size_a > size_b ? b : a
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
this.placement = horizontal >= vertical ? ab('left', 'right') : ab('top', 'bottom')
|
|
739
|
+
|
|
740
|
+
if (this.$element.css('visibility') === 'hidden !important') {
|
|
741
|
+
this.$element.removeClass('in').css('visiblity', '')
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
OffCanvas.prototype.opposite = function (placement) {
|
|
746
|
+
switch (placement) {
|
|
747
|
+
case 'top': return 'bottom'
|
|
748
|
+
case 'left': return 'right'
|
|
749
|
+
case 'bottom': return 'top'
|
|
750
|
+
case 'right': return 'left'
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
OffCanvas.prototype.getCanvasElements = function() {
|
|
755
|
+
// Return a set containing the canvas plus all fixed elements
|
|
756
|
+
var canvas = this.options.canvas ? $(this.options.canvas) : this.$element
|
|
757
|
+
|
|
758
|
+
var fixed_elements = canvas.find('*').filter(function() {
|
|
759
|
+
return $(this).css('position') === 'fixed'
|
|
760
|
+
}).not(this.options.exclude)
|
|
761
|
+
|
|
762
|
+
return canvas.add(fixed_elements)
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
OffCanvas.prototype.slide = function (elements, offset, callback) {
|
|
766
|
+
// Use jQuery animation if CSS transitions aren't supported
|
|
767
|
+
if (!$.support.transition) {
|
|
768
|
+
var anim = {}
|
|
769
|
+
anim[this.placement] = "+=" + offset
|
|
770
|
+
return elements.animate(anim, 350, callback)
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
var placement = this.placement
|
|
774
|
+
var opposite = this.opposite(placement)
|
|
775
|
+
|
|
776
|
+
elements.each(function() {
|
|
777
|
+
if ($(this).css(placement) !== 'auto')
|
|
778
|
+
$(this).css(placement, (parseInt($(this).css(placement), 10) || 0) + offset)
|
|
779
|
+
|
|
780
|
+
if ($(this).css(opposite) !== 'auto')
|
|
781
|
+
$(this).css(opposite, (parseInt($(this).css(opposite), 10) || 0) - offset)
|
|
782
|
+
})
|
|
783
|
+
|
|
784
|
+
this.$element
|
|
785
|
+
.one($.support.transition.end, callback)
|
|
786
|
+
.emulateTransitionEnd(350)
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
OffCanvas.prototype.disableScrolling = function() {
|
|
790
|
+
var bodyWidth = $('body').width()
|
|
791
|
+
var prop = 'padding-' + this.opposite(this.placement)
|
|
792
|
+
|
|
793
|
+
if ($('body').data('offcanvas-style') === undefined) {
|
|
794
|
+
$('body').data('offcanvas-style', $('body').attr('style') || '')
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
$('body').css('overflow', 'hidden')
|
|
798
|
+
|
|
799
|
+
if ($('body').width() > bodyWidth) {
|
|
800
|
+
var padding = parseInt($('body').css(prop), 10) + $('body').width() - bodyWidth
|
|
801
|
+
|
|
802
|
+
setTimeout(function() {
|
|
803
|
+
$('body').css(prop, padding)
|
|
804
|
+
}, 1)
|
|
805
|
+
}
|
|
806
|
+
//disable scrolling on mobiles (they ignore overflow:hidden)
|
|
807
|
+
$('body').on('touchmove.bs', function(e) {
|
|
808
|
+
e.preventDefault();
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
OffCanvas.prototype.enableScrolling = function() {
|
|
813
|
+
$('body').off('touchmove.bs');
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
OffCanvas.prototype.show = function () {
|
|
817
|
+
if (this.state) return
|
|
818
|
+
|
|
819
|
+
var startEvent = $.Event('show.bs.offcanvas')
|
|
820
|
+
this.$element.trigger(startEvent)
|
|
821
|
+
if (startEvent.isDefaultPrevented()) return
|
|
822
|
+
|
|
823
|
+
this.state = 'slide-in'
|
|
824
|
+
this.calcPlacement();
|
|
825
|
+
|
|
826
|
+
var elements = this.getCanvasElements()
|
|
827
|
+
var placement = this.placement
|
|
828
|
+
var opposite = this.opposite(placement)
|
|
829
|
+
var offset = this.offset()
|
|
830
|
+
|
|
831
|
+
if (elements.index(this.$element) !== -1) {
|
|
832
|
+
$(this.$element).data('offcanvas-style', $(this.$element).attr('style') || '')
|
|
833
|
+
this.$element.css(placement, -1 * offset)
|
|
834
|
+
this.$element.css(placement); // Workaround: Need to get the CSS property for it to be applied before the next line of code
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
elements.addClass('canvas-sliding').each(function() {
|
|
838
|
+
if ($(this).data('offcanvas-style') === undefined) $(this).data('offcanvas-style', $(this).attr('style') || '')
|
|
839
|
+
if ($(this).css('position') === 'static') $(this).css('position', 'relative')
|
|
840
|
+
if (($(this).css(placement) === 'auto' || $(this).css(placement) === '0px') &&
|
|
841
|
+
($(this).css(opposite) === 'auto' || $(this).css(opposite) === '0px')) {
|
|
842
|
+
$(this).css(placement, 0)
|
|
843
|
+
}
|
|
844
|
+
})
|
|
845
|
+
|
|
846
|
+
if (this.options.disableScrolling) this.disableScrolling()
|
|
847
|
+
if (this.options.modal) this.toggleBackdrop()
|
|
848
|
+
|
|
849
|
+
var complete = function () {
|
|
850
|
+
if (this.state != 'slide-in') return
|
|
851
|
+
|
|
852
|
+
this.state = 'slid'
|
|
853
|
+
|
|
854
|
+
elements.removeClass('canvas-sliding').addClass('canvas-slid')
|
|
855
|
+
this.$element.trigger('shown.bs.offcanvas')
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
setTimeout($.proxy(function() {
|
|
859
|
+
this.$element.addClass('in')
|
|
860
|
+
this.slide(elements, offset, $.proxy(complete, this))
|
|
861
|
+
}, this), 1)
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
OffCanvas.prototype.hide = function (fast) {
|
|
865
|
+
if (this.state !== 'slid') return
|
|
866
|
+
|
|
867
|
+
var startEvent = $.Event('hide.bs.offcanvas')
|
|
868
|
+
this.$element.trigger(startEvent)
|
|
869
|
+
if (startEvent.isDefaultPrevented()) return
|
|
870
|
+
|
|
871
|
+
this.state = 'slide-out'
|
|
872
|
+
|
|
873
|
+
var elements = $('.canvas-slid')
|
|
874
|
+
var placement = this.placement
|
|
875
|
+
var offset = -1 * this.offset()
|
|
876
|
+
|
|
877
|
+
var complete = function () {
|
|
878
|
+
if (this.state != 'slide-out') return
|
|
879
|
+
|
|
880
|
+
this.state = null
|
|
881
|
+
this.placement = null
|
|
882
|
+
|
|
883
|
+
this.$element.removeClass('in')
|
|
884
|
+
|
|
885
|
+
elements.removeClass('canvas-sliding')
|
|
886
|
+
elements.add(this.$element).add('body').each(function() {
|
|
887
|
+
$(this).attr('style', $(this).data('offcanvas-style')).removeData('offcanvas-style')
|
|
888
|
+
})
|
|
889
|
+
|
|
890
|
+
this.$element.trigger('hidden.bs.offcanvas')
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
if (this.options.disableScrolling) this.enableScrolling()
|
|
894
|
+
if (this.options.modal) this.toggleBackdrop()
|
|
895
|
+
|
|
896
|
+
elements.removeClass('canvas-slid').addClass('canvas-sliding')
|
|
897
|
+
|
|
898
|
+
setTimeout($.proxy(function() {
|
|
899
|
+
this.slide(elements, offset, $.proxy(complete, this))
|
|
900
|
+
}, this), 1)
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
OffCanvas.prototype.toggle = function () {
|
|
904
|
+
if (this.state === 'slide-in' || this.state === 'slide-out') return
|
|
905
|
+
this[this.state === 'slid' ? 'hide' : 'show']()
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
OffCanvas.prototype.toggleBackdrop = function (callback) {
|
|
909
|
+
callback = callback || $.noop;
|
|
910
|
+
if (this.state == 'slide-in') {
|
|
911
|
+
var doAnimate = $.support.transition;
|
|
912
|
+
|
|
913
|
+
this.$backdrop = $('<div class="modal-backdrop fade" />')
|
|
914
|
+
.insertAfter(this.$element);
|
|
915
|
+
|
|
916
|
+
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
|
917
|
+
|
|
918
|
+
this.$backdrop.addClass('in')
|
|
919
|
+
|
|
920
|
+
doAnimate ?
|
|
921
|
+
this.$backdrop
|
|
922
|
+
.one($.support.transition.end, callback)
|
|
923
|
+
.emulateTransitionEnd(150) :
|
|
924
|
+
callback()
|
|
925
|
+
} else if (this.state == 'slide-out' && this.$backdrop) {
|
|
926
|
+
this.$backdrop.removeClass('in');
|
|
927
|
+
$('body').off('touchmove.bs');
|
|
928
|
+
var self = this;
|
|
929
|
+
if ($.support.transition) {
|
|
930
|
+
this.$backdrop
|
|
931
|
+
.one($.support.transition.end, function() {
|
|
932
|
+
self.$backdrop.remove();
|
|
933
|
+
callback()
|
|
934
|
+
self.$backdrop = null;
|
|
935
|
+
})
|
|
936
|
+
.emulateTransitionEnd(150);
|
|
937
|
+
} else {
|
|
938
|
+
this.$backdrop.remove();
|
|
939
|
+
this.$backdrop = null;
|
|
940
|
+
callback();
|
|
941
|
+
}
|
|
942
|
+
} else if (callback) {
|
|
943
|
+
callback()
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
OffCanvas.prototype.calcClone = function() {
|
|
948
|
+
this.$calcClone = this.$element.clone()
|
|
949
|
+
.html('')
|
|
950
|
+
.addClass('offcanvas-clone').removeClass('in')
|
|
951
|
+
.appendTo($('body'))
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
OffCanvas.prototype.recalc = function () {
|
|
955
|
+
if (this.$calcClone.css('display') === 'none' || (this.state !== 'slid' && this.state !== 'slide-in')) return
|
|
956
|
+
|
|
957
|
+
this.state = null
|
|
958
|
+
this.placement = null
|
|
959
|
+
var elements = this.getCanvasElements()
|
|
960
|
+
|
|
961
|
+
this.$element.removeClass('in')
|
|
962
|
+
|
|
963
|
+
elements.removeClass('canvas-slid')
|
|
964
|
+
elements.add(this.$element).add('body').each(function() {
|
|
965
|
+
$(this).attr('style', $(this).data('offcanvas-style')).removeData('offcanvas-style')
|
|
966
|
+
})
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
OffCanvas.prototype.autohide = function (e) {
|
|
970
|
+
if ($(e.target).closest(this.$element).length === 0) this.hide()
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
// OFFCANVAS PLUGIN DEFINITION
|
|
974
|
+
// ==========================
|
|
975
|
+
|
|
976
|
+
var old = $.fn.offcanvas
|
|
977
|
+
|
|
978
|
+
$.fn.offcanvas = function (option) {
|
|
979
|
+
return this.each(function () {
|
|
980
|
+
var $this = $(this)
|
|
981
|
+
var data = $this.data('bs.offcanvas')
|
|
982
|
+
var options = $.extend({}, OffCanvas.DEFAULTS, $this.data(), typeof option === 'object' && option)
|
|
983
|
+
|
|
984
|
+
if (!data) $this.data('bs.offcanvas', (data = new OffCanvas(this, options)))
|
|
985
|
+
if (typeof option === 'string') data[option]()
|
|
986
|
+
})
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
$.fn.offcanvas.Constructor = OffCanvas
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
// OFFCANVAS NO CONFLICT
|
|
993
|
+
// ====================
|
|
994
|
+
|
|
995
|
+
$.fn.offcanvas.noConflict = function () {
|
|
996
|
+
$.fn.offcanvas = old
|
|
997
|
+
return this
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
// OFFCANVAS DATA-API
|
|
1002
|
+
// =================
|
|
1003
|
+
|
|
1004
|
+
$(document).on('click.bs.offcanvas.data-api', '[data-toggle=offcanvas]', function (e) {
|
|
1005
|
+
var $this = $(this), href
|
|
1006
|
+
var target = $this.attr('data-target')
|
|
1007
|
+
|| e.preventDefault()
|
|
1008
|
+
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
|
1009
|
+
var $canvas = $(target)
|
|
1010
|
+
var data = $canvas.data('bs.offcanvas')
|
|
1011
|
+
var option = data ? 'toggle' : $this.data()
|
|
1012
|
+
|
|
1013
|
+
e.stopPropagation()
|
|
1014
|
+
|
|
1015
|
+
if (data) data.toggle()
|
|
1016
|
+
else $canvas.offcanvas(option)
|
|
1017
|
+
})
|
|
1018
|
+
|
|
1019
|
+
}(window.jQuery);
|
|
1020
|
+
|