phcthemes_admin_panel_pack 4.0.7 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +2 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcthemes_admin_panel_pack_manifest.js +9 -9
- data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +1602 -1602
- data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +7023 -7023
- data/app/assets/javascripts/common/bootstrap/bootstrap.three.js +2377 -2377
- data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +2039 -2039
- data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +1390 -1390
- data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +7 -7
- data/app/assets/javascripts/common/chartjs/chart.js +0 -0
- data/app/assets/javascripts/common/ckeditor/ckeditor.js +6 -6
- data/app/assets/javascripts/common/ckeditor/ckeditor.js.map +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/af.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ar.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ast.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/az.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/bg.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ca.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/cs.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/da.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/de-ch.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/de.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/el.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/en-au.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/en-gb.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/eo.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/es.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/et.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/eu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fa.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fi.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/gl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/gu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/he.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/hr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/hu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/id.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/it.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ja.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/km.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/kn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ko.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ku.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/lt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/lv.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/nb.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ne.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/nl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/no.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/oc.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pt-br.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ro.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ru.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/si.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sk.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sq.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sr-latn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sv.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/th.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/tr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/tt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ug.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/uk.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/vi.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/zh-cn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/zh.js +0 -0
- data/app/assets/javascripts/common/clipboardjs/clipboard.js +977 -977
- data/app/assets/javascripts/common/covervid/covervid.js +94 -94
- data/app/assets/javascripts/common/custom/custom.js +0 -0
- data/app/assets/javascripts/common/datatables/datatables.js +15310 -15310
- data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +1565 -1565
- data/app/assets/javascripts/common/fastclick/fastclick.js +841 -841
- data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +1252 -1252
- data/app/assets/javascripts/common/greenstock/greensock.js +35 -35
- data/app/assets/javascripts/common/html5sortable/jquery.sortable.js +98 -98
- data/app/assets/javascripts/common/icheck/icheck.js +509 -509
- data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +497 -497
- data/app/assets/javascripts/common/isotope/isotope.pkgd.js +3563 -3563
- data/app/assets/javascripts/common/jquery/jquery-3.4.1.js +10598 -10598
- data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +245 -245
- data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +0 -0
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.autogrow.js +37 -37
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.charcounter.js +53 -53
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.checkbox.js +54 -54
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.datepicker.js +59 -59
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.js +823 -823
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.masked.js +46 -46
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.time.js +71 -71
- data/app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js +44 -44
- data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +281 -281
- data/app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js +474 -474
- data/app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js +3054 -3054
- data/app/assets/javascripts/common/jquery-ui/jquery-ui.js +18705 -18705
- data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +0 -0
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +1281 -1281
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +9 -9
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +6 -6
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +11 -11
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +2 -2
- data/app/assets/javascripts/common/js-cookie/js.cookie.js +165 -165
- data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.origami.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +12 -12
- data/app/assets/javascripts/common/lazysizes/lazysizes.js +754 -754
- data/app/assets/javascripts/common/leaflet/leaflet.js +4 -4
- data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +1859 -1859
- data/app/assets/javascripts/common/mapbox/mapbox.js +51 -51
- data/app/assets/javascripts/common/metismenu/metisMenu.js +340 -340
- data/app/assets/javascripts/common/moderizer/modernizr.js +11 -11
- data/app/assets/javascripts/common/nouislider/nouislider.js +2637 -2637
- data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +3448 -3448
- data/app/assets/javascripts/common/pace/pace.js +935 -935
- data/app/assets/javascripts/common/paroller/jquery.paroller.js +228 -228
- data/app/assets/javascripts/common/particlejs/particles.js +1540 -1540
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.common.js +1318 -1318
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.esm.js +1316 -1316
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.js +1324 -1324
- data/app/assets/javascripts/common/plyr/plyr.js +9137 -9137
- data/app/assets/javascripts/common/rangeslider/rangeslider.js +498 -498
- data/app/assets/javascripts/common/retina/retina.js +100 -100
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +0 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +0 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +0 -0
- data/app/assets/javascripts/common/scrollme/jquery.scrollme.js +455 -455
- data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +168 -168
- data/app/assets/javascripts/common/select2/select2.full.js +6597 -6597
- data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +1091 -1091
- data/app/assets/javascripts/common/slick/slick.js +3004 -3004
- data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +788 -788
- data/app/assets/javascripts/common/spectrum/spectrum.js +2323 -2323
- data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +339 -339
- data/app/assets/javascripts/common/swiper/swiper.js +8124 -8124
- data/app/assets/javascripts/common/toaster/toastr.js +476 -476
- data/app/assets/javascripts/common/typed/typed.js +1044 -1044
- data/app/assets/javascripts/common/visable/jquery.visible.js +68 -68
- data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +661 -661
- data/app/assets/javascripts/common/wow/wow.js +508 -508
- data/app/assets/javascripts/phcthemes_admin_panel_pack_adminlte.js +12 -12
- data/app/assets/javascripts/phcthemes_admin_panel_pack_boomerang.js +0 -0
- data/app/assets/javascripts/phcthemes_admin_panel_pack_coloradmin.js +5 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_inspinia.js +10 -10
- data/app/assets/javascripts/phcthemes_admin_panel_pack_metronic.js +6 -6
- data/app/assets/javascripts/phcthemes_admin_panel_pack_quilpro.js +5 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_starlight.js +5 -5
- data/app/assets/javascripts/themes/adminlte/theme/adminlte.js +1141 -1141
- data/app/assets/javascripts/themes/coloradmin/theme/color_admin_app.min.js +0 -0
- data/app/assets/javascripts/themes/coloradmin/theme/color_admin_default.js +0 -0
- data/app/assets/javascripts/themes/inspinia/theme/inspinia.js +279 -279
- data/app/assets/javascripts/themes/metronic/theme/plugins.bundle.js +0 -0
- data/app/assets/javascripts/themes/metronic/theme/prismjs.bundle.js +1922 -1922
- data/app/assets/javascripts/themes/metronic/theme/scripts.bundle.js +0 -0
- data/app/assets/javascripts/themes/metronic/theme/widgets.js +0 -0
- data/app/assets/stylesheets/common/hanna_hearts/hanna_hearts.scss +0 -0
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +16 -16
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +27 -27
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +11 -11
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +18 -18
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +15 -15
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +19 -19
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +15 -15
- data/lib/phcthemes_admin_panel_pack/engine.rb +20 -20
- data/lib/phcthemes_admin_panel_pack/version.rb +3 -3
- data/lib/phcthemes_admin_panel_pack.rb +6 -6
- data/lib/tasks/phcthemes_admin_panel_pack_tasks.rake +4 -4
- metadata +3 -3
@@ -1,339 +1,339 @@
|
|
1
|
-
/*
|
2
|
-
* Stepper v3.0.8 - 2014-09-14
|
3
|
-
* A jQuery plugin for cross browser number inputs. Part of the Formstone Library.
|
4
|
-
* http://formstone.it/stepper/
|
5
|
-
*
|
6
|
-
* Copyright 2014 Ben Plum; MIT Licensed
|
7
|
-
*/
|
8
|
-
|
9
|
-
;(function ($, window) {
|
10
|
-
"use strict";
|
11
|
-
|
12
|
-
/**
|
13
|
-
* @options
|
14
|
-
* @param customClass [string] <''> "Class applied to instance"
|
15
|
-
* @param lables.up [string] <'Up'> "Up arrow label"
|
16
|
-
* @param lables.down [string] <'Down'> "Down arrow label"
|
17
|
-
*/
|
18
|
-
var options = {
|
19
|
-
customClass: "",
|
20
|
-
labels: {
|
21
|
-
up: "Up",
|
22
|
-
down: "Down"
|
23
|
-
}
|
24
|
-
};
|
25
|
-
|
26
|
-
var pub = {
|
27
|
-
|
28
|
-
/**
|
29
|
-
* @method
|
30
|
-
* @name defaults
|
31
|
-
* @description Sets default plugin options
|
32
|
-
* @param opts [object] <{}> "Options object"
|
33
|
-
* @example $.stepper("defaults", opts);
|
34
|
-
*/
|
35
|
-
defaults: function(opts) {
|
36
|
-
options = $.extend(options, opts || {});
|
37
|
-
return $(this);
|
38
|
-
},
|
39
|
-
|
40
|
-
/**
|
41
|
-
* @method
|
42
|
-
* @name destroy
|
43
|
-
* @description Removes instance of plugin
|
44
|
-
* @example $(".target").stepper("destroy");
|
45
|
-
*/
|
46
|
-
destroy: function() {
|
47
|
-
return $(this).each(function(i) {
|
48
|
-
var data = $(this).data("stepper");
|
49
|
-
|
50
|
-
if (data) {
|
51
|
-
// Unbind click events
|
52
|
-
data.$stepper.off(".stepper")
|
53
|
-
.find(".stepper-arrow")
|
54
|
-
.remove();
|
55
|
-
|
56
|
-
// Restore DOM
|
57
|
-
data.$input.unwrap()
|
58
|
-
.removeClass("stepper-input");
|
59
|
-
}
|
60
|
-
});
|
61
|
-
},
|
62
|
-
|
63
|
-
/**
|
64
|
-
* @method
|
65
|
-
* @name disable
|
66
|
-
* @description Disables target instance
|
67
|
-
* @example $(".target").stepper("disable");
|
68
|
-
*/
|
69
|
-
disable: function() {
|
70
|
-
return $(this).each(function(i) {
|
71
|
-
var data = $(this).data("stepper");
|
72
|
-
|
73
|
-
if (data) {
|
74
|
-
data.$input.attr("disabled", "disabled");
|
75
|
-
data.$stepper.addClass("disabled");
|
76
|
-
}
|
77
|
-
});
|
78
|
-
},
|
79
|
-
|
80
|
-
/**
|
81
|
-
* @method
|
82
|
-
* @name enable
|
83
|
-
* @description Enables target instance
|
84
|
-
* @example $(".target").stepper("enable");
|
85
|
-
*/
|
86
|
-
enable: function() {
|
87
|
-
return $(this).each(function(i) {
|
88
|
-
var data = $(this).data("stepper");
|
89
|
-
|
90
|
-
if (data) {
|
91
|
-
data.$input.attr("disabled", null);
|
92
|
-
data.$stepper.removeClass("disabled");
|
93
|
-
}
|
94
|
-
});
|
95
|
-
}
|
96
|
-
};
|
97
|
-
|
98
|
-
/**
|
99
|
-
* @method private
|
100
|
-
* @name _init
|
101
|
-
* @description Initializes plugin
|
102
|
-
* @param opts [object] "Initialization options"
|
103
|
-
*/
|
104
|
-
function _init(opts) {
|
105
|
-
// Local options
|
106
|
-
opts = $.extend({}, options, opts || {});
|
107
|
-
|
108
|
-
// Apply to each element
|
109
|
-
var $items = $(this);
|
110
|
-
for (var i = 0, count = $items.length; i < count; i++) {
|
111
|
-
_build($items.eq(i), opts);
|
112
|
-
}
|
113
|
-
return $items;
|
114
|
-
}
|
115
|
-
|
116
|
-
/**
|
117
|
-
* @method private
|
118
|
-
* @name _build
|
119
|
-
* @description Builds each instance
|
120
|
-
* @param $select [jQuery object] "Target jQuery object"
|
121
|
-
* @param opts [object] <{}> "Options object"
|
122
|
-
*/
|
123
|
-
function _build($input, opts) {
|
124
|
-
if (!$input.hasClass("stepper-input")) {
|
125
|
-
// EXTEND OPTIONS
|
126
|
-
opts = $.extend({}, opts, $input.data("stepper-options"));
|
127
|
-
|
128
|
-
// HTML5 attributes
|
129
|
-
var min = parseFloat($input.attr("min")),
|
130
|
-
max = parseFloat($input.attr("max")),
|
131
|
-
step = parseFloat($input.attr("step")) || 1;
|
132
|
-
|
133
|
-
// Modify DOM
|
134
|
-
$input.addClass("stepper-input")
|
135
|
-
.wrap('<div class="stepper ' + opts.customClass + '" />')
|
136
|
-
.after('<span class="stepper-arrow up">' + opts.labels.up + '</span><span class="stepper-arrow down">' + opts.labels.down + '</span>');
|
137
|
-
|
138
|
-
// Store data
|
139
|
-
var $stepper = $input.parent(".stepper"),
|
140
|
-
data = $.extend({
|
141
|
-
$stepper: $stepper,
|
142
|
-
$input: $input,
|
143
|
-
$arrow: $stepper.find(".stepper-arrow"),
|
144
|
-
min: (typeof min !== undefined && !isNaN(min)) ? min : false,
|
145
|
-
max: (typeof max !== undefined && !isNaN(max)) ? max : false,
|
146
|
-
step: (typeof step !== undefined && !isNaN(step)) ? step : 1,
|
147
|
-
timer: null
|
148
|
-
}, opts);
|
149
|
-
|
150
|
-
data.digits = _digits(data.step);
|
151
|
-
|
152
|
-
// Check disabled
|
153
|
-
if ($input.is(":disabled")) {
|
154
|
-
$stepper.addClass("disabled");
|
155
|
-
}
|
156
|
-
|
157
|
-
// Bind keyboard events
|
158
|
-
$stepper.on("keypress", ".stepper-input", data, _onKeyup);
|
159
|
-
|
160
|
-
// Bind click events
|
161
|
-
$stepper.on("touchstart.stepper mousedown.stepper", ".stepper-arrow", data, _onMouseDown)
|
162
|
-
.data("stepper", data);
|
163
|
-
}
|
164
|
-
}
|
165
|
-
|
166
|
-
/**
|
167
|
-
* @method private
|
168
|
-
* @name _onKeyup
|
169
|
-
* @description Handles keypress event on inputs
|
170
|
-
* @param e [object] "Event data"
|
171
|
-
*/
|
172
|
-
function _onKeyup(e) {
|
173
|
-
var data = e.data;
|
174
|
-
|
175
|
-
// If arrow keys
|
176
|
-
if (e.keyCode === 38 || e.keyCode === 40) {
|
177
|
-
e.preventDefault();
|
178
|
-
|
179
|
-
_step(data, (e.keyCode === 38) ? data.step : -data.step);
|
180
|
-
}
|
181
|
-
}
|
182
|
-
|
183
|
-
/**
|
184
|
-
* @method private
|
185
|
-
* @name _onMouseDown
|
186
|
-
* @description Handles mousedown event on instance arrows
|
187
|
-
* @param e [object] "Event data"
|
188
|
-
*/
|
189
|
-
function _onMouseDown(e) {
|
190
|
-
e.preventDefault();
|
191
|
-
e.stopPropagation();
|
192
|
-
|
193
|
-
// Make sure we reset the states
|
194
|
-
_onMouseUp(e);
|
195
|
-
|
196
|
-
var data = e.data;
|
197
|
-
|
198
|
-
if (!data.$input.is(':disabled') && !data.$stepper.hasClass("disabled")) {
|
199
|
-
var change = $(e.target).hasClass("up") ? data.step : -data.step;
|
200
|
-
|
201
|
-
data.timer = _startTimer(data.timer, 125, function() {
|
202
|
-
_step(data, change, false);
|
203
|
-
});
|
204
|
-
_step(data, change);
|
205
|
-
|
206
|
-
$("body").on("touchend.stepper mouseup.stepper", data, _onMouseUp);
|
207
|
-
}
|
208
|
-
}
|
209
|
-
|
210
|
-
/**
|
211
|
-
* @method private
|
212
|
-
* @name _onMouseUp
|
213
|
-
* @description Handles mouseup event on instance arrows
|
214
|
-
* @param e [object] "Event data"
|
215
|
-
*/
|
216
|
-
function _onMouseUp(e) {
|
217
|
-
e.preventDefault();
|
218
|
-
e.stopPropagation();
|
219
|
-
|
220
|
-
var data = e.data;
|
221
|
-
|
222
|
-
_clearTimer(data.timer);
|
223
|
-
|
224
|
-
$("body").off(".stepper");
|
225
|
-
}
|
226
|
-
|
227
|
-
/**
|
228
|
-
* @method private
|
229
|
-
* @name _step
|
230
|
-
* @description Steps through values
|
231
|
-
* @param e [object] "Event data"
|
232
|
-
* @param change [string] "Change value"
|
233
|
-
*/
|
234
|
-
function _step(data, change) {
|
235
|
-
var originalValue = parseFloat(data.$input.val()),
|
236
|
-
value = change;
|
237
|
-
|
238
|
-
if (typeof originalValue === undefined || isNaN(originalValue)) {
|
239
|
-
if (data.min !== false) {
|
240
|
-
value = data.min;
|
241
|
-
} else {
|
242
|
-
value = 0;
|
243
|
-
}
|
244
|
-
} else if (data.min !== false && originalValue < data.min) {
|
245
|
-
value = data.min;
|
246
|
-
} else {
|
247
|
-
value += originalValue;
|
248
|
-
}
|
249
|
-
|
250
|
-
var diff = (value - data.min) % data.step;
|
251
|
-
if (diff !== 0) {
|
252
|
-
value -= diff;
|
253
|
-
}
|
254
|
-
|
255
|
-
if (data.min !== false && value < data.min) {
|
256
|
-
value = data.min;
|
257
|
-
}
|
258
|
-
if (data.max !== false && value > data.max) {
|
259
|
-
value -= data.step;
|
260
|
-
}
|
261
|
-
|
262
|
-
if (value !== originalValue) {
|
263
|
-
value = _round(value, data.digits);
|
264
|
-
|
265
|
-
data.$input.val(value)
|
266
|
-
.trigger("change");
|
267
|
-
}
|
268
|
-
}
|
269
|
-
|
270
|
-
/**
|
271
|
-
* @method private
|
272
|
-
* @name _startTimer
|
273
|
-
* @description Starts an internal timer
|
274
|
-
* @param timer [int] "Timer ID"
|
275
|
-
* @param time [int] "Time until execution"
|
276
|
-
* @param callback [int] "Function to execute"
|
277
|
-
*/
|
278
|
-
function _startTimer(timer, time, callback) {
|
279
|
-
_clearTimer(timer);
|
280
|
-
return setInterval(callback, time);
|
281
|
-
}
|
282
|
-
|
283
|
-
/**
|
284
|
-
* @method private
|
285
|
-
* @name _clearTimer
|
286
|
-
* @description Clears an internal timer
|
287
|
-
* @param timer [int] "Timer ID"
|
288
|
-
*/
|
289
|
-
function _clearTimer(timer) {
|
290
|
-
if (timer) {
|
291
|
-
clearInterval(timer);
|
292
|
-
timer = null;
|
293
|
-
}
|
294
|
-
}
|
295
|
-
|
296
|
-
/**
|
297
|
-
* @method private
|
298
|
-
* @name _digits
|
299
|
-
* @description Analyzes and returns significant digit count
|
300
|
-
* @param value [float] "Value to analyze"
|
301
|
-
* @return [int] "Number of significant digits"
|
302
|
-
*/
|
303
|
-
function _digits(value) {
|
304
|
-
var test = String(value);
|
305
|
-
if (test.indexOf(".") > -1) {
|
306
|
-
return test.length - test.indexOf(".") - 1;
|
307
|
-
} else {
|
308
|
-
return 0;
|
309
|
-
}
|
310
|
-
}
|
311
|
-
|
312
|
-
/**
|
313
|
-
* @method private
|
314
|
-
* @name _round
|
315
|
-
* @description Rounds a number to a sepcific significant digit count
|
316
|
-
* @param value [float] "Value to round"
|
317
|
-
* @param digits [float] "Digits to round to"
|
318
|
-
* @return [number] "Rounded number"
|
319
|
-
*/
|
320
|
-
function _round(value, digits) {
|
321
|
-
var exp = Math.pow(10, digits);
|
322
|
-
return Math.round(value * exp) / exp;
|
323
|
-
}
|
324
|
-
|
325
|
-
$.fn.stepper = function(method) {
|
326
|
-
if (pub[method]) {
|
327
|
-
return pub[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
328
|
-
} else if (typeof method === 'object' || !method) {
|
329
|
-
return _init.apply(this, arguments);
|
330
|
-
}
|
331
|
-
return this;
|
332
|
-
};
|
333
|
-
|
334
|
-
$.stepper = function(method) {
|
335
|
-
if (method === "defaults") {
|
336
|
-
pub.defaults.apply(this, Array.prototype.slice.call(arguments, 1));
|
337
|
-
}
|
338
|
-
};
|
339
|
-
})(jQuery, this);
|
1
|
+
/*
|
2
|
+
* Stepper v3.0.8 - 2014-09-14
|
3
|
+
* A jQuery plugin for cross browser number inputs. Part of the Formstone Library.
|
4
|
+
* http://formstone.it/stepper/
|
5
|
+
*
|
6
|
+
* Copyright 2014 Ben Plum; MIT Licensed
|
7
|
+
*/
|
8
|
+
|
9
|
+
;(function ($, window) {
|
10
|
+
"use strict";
|
11
|
+
|
12
|
+
/**
|
13
|
+
* @options
|
14
|
+
* @param customClass [string] <''> "Class applied to instance"
|
15
|
+
* @param lables.up [string] <'Up'> "Up arrow label"
|
16
|
+
* @param lables.down [string] <'Down'> "Down arrow label"
|
17
|
+
*/
|
18
|
+
var options = {
|
19
|
+
customClass: "",
|
20
|
+
labels: {
|
21
|
+
up: "Up",
|
22
|
+
down: "Down"
|
23
|
+
}
|
24
|
+
};
|
25
|
+
|
26
|
+
var pub = {
|
27
|
+
|
28
|
+
/**
|
29
|
+
* @method
|
30
|
+
* @name defaults
|
31
|
+
* @description Sets default plugin options
|
32
|
+
* @param opts [object] <{}> "Options object"
|
33
|
+
* @example $.stepper("defaults", opts);
|
34
|
+
*/
|
35
|
+
defaults: function(opts) {
|
36
|
+
options = $.extend(options, opts || {});
|
37
|
+
return $(this);
|
38
|
+
},
|
39
|
+
|
40
|
+
/**
|
41
|
+
* @method
|
42
|
+
* @name destroy
|
43
|
+
* @description Removes instance of plugin
|
44
|
+
* @example $(".target").stepper("destroy");
|
45
|
+
*/
|
46
|
+
destroy: function() {
|
47
|
+
return $(this).each(function(i) {
|
48
|
+
var data = $(this).data("stepper");
|
49
|
+
|
50
|
+
if (data) {
|
51
|
+
// Unbind click events
|
52
|
+
data.$stepper.off(".stepper")
|
53
|
+
.find(".stepper-arrow")
|
54
|
+
.remove();
|
55
|
+
|
56
|
+
// Restore DOM
|
57
|
+
data.$input.unwrap()
|
58
|
+
.removeClass("stepper-input");
|
59
|
+
}
|
60
|
+
});
|
61
|
+
},
|
62
|
+
|
63
|
+
/**
|
64
|
+
* @method
|
65
|
+
* @name disable
|
66
|
+
* @description Disables target instance
|
67
|
+
* @example $(".target").stepper("disable");
|
68
|
+
*/
|
69
|
+
disable: function() {
|
70
|
+
return $(this).each(function(i) {
|
71
|
+
var data = $(this).data("stepper");
|
72
|
+
|
73
|
+
if (data) {
|
74
|
+
data.$input.attr("disabled", "disabled");
|
75
|
+
data.$stepper.addClass("disabled");
|
76
|
+
}
|
77
|
+
});
|
78
|
+
},
|
79
|
+
|
80
|
+
/**
|
81
|
+
* @method
|
82
|
+
* @name enable
|
83
|
+
* @description Enables target instance
|
84
|
+
* @example $(".target").stepper("enable");
|
85
|
+
*/
|
86
|
+
enable: function() {
|
87
|
+
return $(this).each(function(i) {
|
88
|
+
var data = $(this).data("stepper");
|
89
|
+
|
90
|
+
if (data) {
|
91
|
+
data.$input.attr("disabled", null);
|
92
|
+
data.$stepper.removeClass("disabled");
|
93
|
+
}
|
94
|
+
});
|
95
|
+
}
|
96
|
+
};
|
97
|
+
|
98
|
+
/**
|
99
|
+
* @method private
|
100
|
+
* @name _init
|
101
|
+
* @description Initializes plugin
|
102
|
+
* @param opts [object] "Initialization options"
|
103
|
+
*/
|
104
|
+
function _init(opts) {
|
105
|
+
// Local options
|
106
|
+
opts = $.extend({}, options, opts || {});
|
107
|
+
|
108
|
+
// Apply to each element
|
109
|
+
var $items = $(this);
|
110
|
+
for (var i = 0, count = $items.length; i < count; i++) {
|
111
|
+
_build($items.eq(i), opts);
|
112
|
+
}
|
113
|
+
return $items;
|
114
|
+
}
|
115
|
+
|
116
|
+
/**
|
117
|
+
* @method private
|
118
|
+
* @name _build
|
119
|
+
* @description Builds each instance
|
120
|
+
* @param $select [jQuery object] "Target jQuery object"
|
121
|
+
* @param opts [object] <{}> "Options object"
|
122
|
+
*/
|
123
|
+
function _build($input, opts) {
|
124
|
+
if (!$input.hasClass("stepper-input")) {
|
125
|
+
// EXTEND OPTIONS
|
126
|
+
opts = $.extend({}, opts, $input.data("stepper-options"));
|
127
|
+
|
128
|
+
// HTML5 attributes
|
129
|
+
var min = parseFloat($input.attr("min")),
|
130
|
+
max = parseFloat($input.attr("max")),
|
131
|
+
step = parseFloat($input.attr("step")) || 1;
|
132
|
+
|
133
|
+
// Modify DOM
|
134
|
+
$input.addClass("stepper-input")
|
135
|
+
.wrap('<div class="stepper ' + opts.customClass + '" />')
|
136
|
+
.after('<span class="stepper-arrow up">' + opts.labels.up + '</span><span class="stepper-arrow down">' + opts.labels.down + '</span>');
|
137
|
+
|
138
|
+
// Store data
|
139
|
+
var $stepper = $input.parent(".stepper"),
|
140
|
+
data = $.extend({
|
141
|
+
$stepper: $stepper,
|
142
|
+
$input: $input,
|
143
|
+
$arrow: $stepper.find(".stepper-arrow"),
|
144
|
+
min: (typeof min !== undefined && !isNaN(min)) ? min : false,
|
145
|
+
max: (typeof max !== undefined && !isNaN(max)) ? max : false,
|
146
|
+
step: (typeof step !== undefined && !isNaN(step)) ? step : 1,
|
147
|
+
timer: null
|
148
|
+
}, opts);
|
149
|
+
|
150
|
+
data.digits = _digits(data.step);
|
151
|
+
|
152
|
+
// Check disabled
|
153
|
+
if ($input.is(":disabled")) {
|
154
|
+
$stepper.addClass("disabled");
|
155
|
+
}
|
156
|
+
|
157
|
+
// Bind keyboard events
|
158
|
+
$stepper.on("keypress", ".stepper-input", data, _onKeyup);
|
159
|
+
|
160
|
+
// Bind click events
|
161
|
+
$stepper.on("touchstart.stepper mousedown.stepper", ".stepper-arrow", data, _onMouseDown)
|
162
|
+
.data("stepper", data);
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
/**
|
167
|
+
* @method private
|
168
|
+
* @name _onKeyup
|
169
|
+
* @description Handles keypress event on inputs
|
170
|
+
* @param e [object] "Event data"
|
171
|
+
*/
|
172
|
+
function _onKeyup(e) {
|
173
|
+
var data = e.data;
|
174
|
+
|
175
|
+
// If arrow keys
|
176
|
+
if (e.keyCode === 38 || e.keyCode === 40) {
|
177
|
+
e.preventDefault();
|
178
|
+
|
179
|
+
_step(data, (e.keyCode === 38) ? data.step : -data.step);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
/**
|
184
|
+
* @method private
|
185
|
+
* @name _onMouseDown
|
186
|
+
* @description Handles mousedown event on instance arrows
|
187
|
+
* @param e [object] "Event data"
|
188
|
+
*/
|
189
|
+
function _onMouseDown(e) {
|
190
|
+
e.preventDefault();
|
191
|
+
e.stopPropagation();
|
192
|
+
|
193
|
+
// Make sure we reset the states
|
194
|
+
_onMouseUp(e);
|
195
|
+
|
196
|
+
var data = e.data;
|
197
|
+
|
198
|
+
if (!data.$input.is(':disabled') && !data.$stepper.hasClass("disabled")) {
|
199
|
+
var change = $(e.target).hasClass("up") ? data.step : -data.step;
|
200
|
+
|
201
|
+
data.timer = _startTimer(data.timer, 125, function() {
|
202
|
+
_step(data, change, false);
|
203
|
+
});
|
204
|
+
_step(data, change);
|
205
|
+
|
206
|
+
$("body").on("touchend.stepper mouseup.stepper", data, _onMouseUp);
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
/**
|
211
|
+
* @method private
|
212
|
+
* @name _onMouseUp
|
213
|
+
* @description Handles mouseup event on instance arrows
|
214
|
+
* @param e [object] "Event data"
|
215
|
+
*/
|
216
|
+
function _onMouseUp(e) {
|
217
|
+
e.preventDefault();
|
218
|
+
e.stopPropagation();
|
219
|
+
|
220
|
+
var data = e.data;
|
221
|
+
|
222
|
+
_clearTimer(data.timer);
|
223
|
+
|
224
|
+
$("body").off(".stepper");
|
225
|
+
}
|
226
|
+
|
227
|
+
/**
|
228
|
+
* @method private
|
229
|
+
* @name _step
|
230
|
+
* @description Steps through values
|
231
|
+
* @param e [object] "Event data"
|
232
|
+
* @param change [string] "Change value"
|
233
|
+
*/
|
234
|
+
function _step(data, change) {
|
235
|
+
var originalValue = parseFloat(data.$input.val()),
|
236
|
+
value = change;
|
237
|
+
|
238
|
+
if (typeof originalValue === undefined || isNaN(originalValue)) {
|
239
|
+
if (data.min !== false) {
|
240
|
+
value = data.min;
|
241
|
+
} else {
|
242
|
+
value = 0;
|
243
|
+
}
|
244
|
+
} else if (data.min !== false && originalValue < data.min) {
|
245
|
+
value = data.min;
|
246
|
+
} else {
|
247
|
+
value += originalValue;
|
248
|
+
}
|
249
|
+
|
250
|
+
var diff = (value - data.min) % data.step;
|
251
|
+
if (diff !== 0) {
|
252
|
+
value -= diff;
|
253
|
+
}
|
254
|
+
|
255
|
+
if (data.min !== false && value < data.min) {
|
256
|
+
value = data.min;
|
257
|
+
}
|
258
|
+
if (data.max !== false && value > data.max) {
|
259
|
+
value -= data.step;
|
260
|
+
}
|
261
|
+
|
262
|
+
if (value !== originalValue) {
|
263
|
+
value = _round(value, data.digits);
|
264
|
+
|
265
|
+
data.$input.val(value)
|
266
|
+
.trigger("change");
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
270
|
+
/**
|
271
|
+
* @method private
|
272
|
+
* @name _startTimer
|
273
|
+
* @description Starts an internal timer
|
274
|
+
* @param timer [int] "Timer ID"
|
275
|
+
* @param time [int] "Time until execution"
|
276
|
+
* @param callback [int] "Function to execute"
|
277
|
+
*/
|
278
|
+
function _startTimer(timer, time, callback) {
|
279
|
+
_clearTimer(timer);
|
280
|
+
return setInterval(callback, time);
|
281
|
+
}
|
282
|
+
|
283
|
+
/**
|
284
|
+
* @method private
|
285
|
+
* @name _clearTimer
|
286
|
+
* @description Clears an internal timer
|
287
|
+
* @param timer [int] "Timer ID"
|
288
|
+
*/
|
289
|
+
function _clearTimer(timer) {
|
290
|
+
if (timer) {
|
291
|
+
clearInterval(timer);
|
292
|
+
timer = null;
|
293
|
+
}
|
294
|
+
}
|
295
|
+
|
296
|
+
/**
|
297
|
+
* @method private
|
298
|
+
* @name _digits
|
299
|
+
* @description Analyzes and returns significant digit count
|
300
|
+
* @param value [float] "Value to analyze"
|
301
|
+
* @return [int] "Number of significant digits"
|
302
|
+
*/
|
303
|
+
function _digits(value) {
|
304
|
+
var test = String(value);
|
305
|
+
if (test.indexOf(".") > -1) {
|
306
|
+
return test.length - test.indexOf(".") - 1;
|
307
|
+
} else {
|
308
|
+
return 0;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
/**
|
313
|
+
* @method private
|
314
|
+
* @name _round
|
315
|
+
* @description Rounds a number to a sepcific significant digit count
|
316
|
+
* @param value [float] "Value to round"
|
317
|
+
* @param digits [float] "Digits to round to"
|
318
|
+
* @return [number] "Rounded number"
|
319
|
+
*/
|
320
|
+
function _round(value, digits) {
|
321
|
+
var exp = Math.pow(10, digits);
|
322
|
+
return Math.round(value * exp) / exp;
|
323
|
+
}
|
324
|
+
|
325
|
+
$.fn.stepper = function(method) {
|
326
|
+
if (pub[method]) {
|
327
|
+
return pub[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
328
|
+
} else if (typeof method === 'object' || !method) {
|
329
|
+
return _init.apply(this, arguments);
|
330
|
+
}
|
331
|
+
return this;
|
332
|
+
};
|
333
|
+
|
334
|
+
$.stepper = function(method) {
|
335
|
+
if (method === "defaults") {
|
336
|
+
pub.defaults.apply(this, Array.prototype.slice.call(arguments, 1));
|
337
|
+
}
|
338
|
+
};
|
339
|
+
})(jQuery, this);
|