adminlte 1.3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +53 -0
- data/lib/adminlte.rb +6 -0
- data/lib/adminlte/version.rb +3 -0
- data/vendor/assets/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +414 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/ionicons.eot +0 -0
- data/vendor/assets/fonts/ionicons.svg +1623 -0
- data/vendor/assets/fonts/ionicons.ttf +0 -0
- data/vendor/assets/fonts/ionicons.woff +0 -0
- data/vendor/assets/img/ajax-loader.gif +0 -0
- data/vendor/assets/img/ajax-loader1.gif +0 -0
- data/vendor/assets/img/avatar.png +0 -0
- data/vendor/assets/img/avatar04.png +0 -0
- data/vendor/assets/img/avatar2.png +0 -0
- data/vendor/assets/img/avatar3.png +0 -0
- data/vendor/assets/img/avatar5.png +0 -0
- data/vendor/assets/img/blur-background04.jpg +0 -0
- data/vendor/assets/img/blur-background08.jpg +0 -0
- data/vendor/assets/img/blur-background09.jpg +0 -0
- data/vendor/assets/img/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/vendor/assets/img/bootstrap-colorpicker/alpha.png +0 -0
- data/vendor/assets/img/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/vendor/assets/img/bootstrap-colorpicker/hue.png +0 -0
- data/vendor/assets/img/bootstrap-colorpicker/saturation.png +0 -0
- data/vendor/assets/img/credit/american-express.png +0 -0
- data/vendor/assets/img/credit/cirrus.png +0 -0
- data/vendor/assets/img/credit/mastercard.png +0 -0
- data/vendor/assets/img/credit/mestro.png +0 -0
- data/vendor/assets/img/credit/paypal.png +0 -0
- data/vendor/assets/img/credit/paypal2.png +0 -0
- data/vendor/assets/img/credit/visa.png +0 -0
- data/vendor/assets/img/icons.png +0 -0
- data/vendor/assets/img/sprite-skin-flat.png +0 -0
- data/vendor/assets/img/sprite-skin-nice.png +0 -0
- data/vendor/assets/img/user-bg.png +0 -0
- data/vendor/assets/img/user.jpg +0 -0
- data/vendor/assets/img/user2.jpg +0 -0
- data/vendor/assets/javascripts/AdminLTE/app.js +1060 -0
- data/vendor/assets/javascripts/AdminLTE/bootstrap.js +2006 -0
- data/vendor/assets/javascripts/AdminLTE/dashboard.js +254 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/bootstrap-slider/bootstrap-slider.js +388 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js +6 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.js +350 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/CHANGES.md +378 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/LICENSE.md +1264 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/README.md +39 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/adapters/jquery.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/build-config.js +142 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/ckeditor.js +900 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/config.js +38 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/contents.css +123 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/af.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ar.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/bg.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/bn.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/bs.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ca.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/cs.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/cy.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/da.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/de.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/el.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/en-au.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/en-ca.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/en-gb.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/en.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/eo.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/es.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/et.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/eu.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/fa.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/fi.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/fo.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/fr-ca.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/fr.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/gl.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/gu.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/he.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/hi.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/hr.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/hu.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/id.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/is.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/it.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ja.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ka.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/km.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ko.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ku.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/lt.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/lv.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/mk.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/mn.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ms.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/nb.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/nl.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/no.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/pl.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/pt-br.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/pt.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ro.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ru.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/si.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/sk.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/sl.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/sq.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/sr-latn.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/sr.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/sv.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/th.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/tr.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/ug.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/uk.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/vi.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/lang/zh.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +8 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +8 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +7 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/link/dialogs/anchor.js +8 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/link/dialogs/link.js +37 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/scayt/README.md +25 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/scayt/dialogs/options.js +20 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/README.md +25 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/dialogs/tmp.html +118 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/dialogs/wsc.js +67 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/dialog_opera.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/lock.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/images/refresh.png +0 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/skins/moono/readme.md +51 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ckeditor/styles.js +111 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.js +949 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/datatables/dataTables.bootstrap.js +250 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/datatables/jquery.dataTables.js +12099 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/daterangepicker/daterangepicker.js +883 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/excanvas.js +1428 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/excanvas.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.colorhelpers.js +180 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.colorhelpers.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.canvas.js +345 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.canvas.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.categories.js +190 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.categories.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.crosshair.js +176 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.crosshair.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.errorbars.js +353 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.errorbars.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.fillbetween.js +226 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.fillbetween.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.image.js +241 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.image.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.js +3137 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.min.js +2 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.navigate.js +346 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.navigate.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.pie.js +817 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.pie.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.resize.js +60 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.resize.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.selection.js +360 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.selection.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.stack.js +188 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.stack.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.symbol.js +71 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.symbol.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.threshold.js +142 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.threshold.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.time.js +431 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/flot/jquery.flot.time.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/fullcalendar/fullcalendar.js +6110 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/fullcalendar/fullcalendar.min.js +7 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/iCheck/icheck.js +506 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/iCheck/icheck.min.js +10 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/jquery.inputmask.date.extensions.js +488 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/jquery.inputmask.extensions.js +122 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/jquery.inputmask.js +1632 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/jquery.inputmask.numeric.extensions.js +177 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/jquery.inputmask.phone.extensions.js +50 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/jquery.inputmask.regex.extensions.js +170 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/phone-codes/phone-be.json +45 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/phone-codes/phone-codes.json +294 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/input-mask/phone-codes/readme.txt +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/ionslider/ion.rangeSlider.min.js +22 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/jqueryKnob/jquery.knob.js +764 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js +8 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/jvectormap/jquery-jvectormap-world-mill-en.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/misc/html5shiv.js +8 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/misc/jquery.ba-resize.min.js +9 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/misc/jquery.placeholder.js +187 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/misc/modernizr.min.js +4 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/misc/respond.min.js +1 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/morris/morris.js +1888 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/morris/morris.min.js +2 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/slimScroll/jquery.slimscroll.js +464 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/slimScroll/jquery.slimscroll.min.js +16 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/slimScroll/slimScroll.jquery.json +30 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/sparkline/jquery.sparkline.js +3054 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/sparkline/jquery.sparkline.min.js +5 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/timepicker/bootstrap-timepicker.js +903 -0
- data/vendor/assets/javascripts/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.js +5 -0
- data/vendor/assets/stylesheets/AdminLTE.css.scss +3539 -0
- data/vendor/assets/stylesheets/adminlte/plugins/bootstrap-slider/slider.css.scss.css +166 -0
- data/vendor/assets/stylesheets/adminlte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.css.scss.css +102 -0
- data/vendor/assets/stylesheets/adminlte/plugins/colorpicker/bootstrap-colorpicker.css.scss.css +214 -0
- data/vendor/assets/stylesheets/adminlte/plugins/datatables/dataTables.bootstrap.css.scss.css +223 -0
- data/vendor/assets/stylesheets/adminlte/plugins/datatables/images/sort_asc.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/datatables/images/sort_asc_disabled.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/datatables/images/sort_both.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/datatables/images/sort_desc.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/datatables/images/sort_desc_disabled.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/daterangepicker/daterangepicker-bs3.css.scss.css +245 -0
- data/vendor/assets/stylesheets/adminlte/plugins/fullcalendar/fullcalendar.css.scss.css +617 -0
- data/vendor/assets/stylesheets/adminlte/plugins/fullcalendar/fullcalendar.print.css.scss.css +29 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/all.css +61 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/_all.css +560 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/aero.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/aero.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/aero@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/blue.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/blue.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/blue@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/flat.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/flat.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/flat@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/green.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/green.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/green@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/grey.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/grey.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/grey@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/orange.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/orange.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/orange@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/pink.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/pink.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/pink@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/purple.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/purple.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/purple@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/red.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/red.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/red@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/yellow.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/yellow.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/flat/yellow@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/futurico/futurico.css +56 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/futurico/futurico.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/futurico/futurico@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/_all.css +740 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/aero.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/blue.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/green.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/grey.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/line.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/line.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/line@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/orange.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/pink.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/purple.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/red.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/line/yellow.css +74 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/_all.css +557 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/aero.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/aero.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/aero@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/blue.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/blue.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/blue@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/green.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/green.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/green@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/grey.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/grey.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/grey@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/minimal.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/minimal.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/minimal@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/orange.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/orange.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/orange@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/pink.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/pink.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/pink@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/purple.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/purple.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/purple@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/red.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/red.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/red@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/yellow.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/yellow.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/minimal/yellow@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/polaris/polaris.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/polaris/polaris.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/polaris/polaris@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/_all.css +620 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/aero.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/aero.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/aero@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/blue.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/blue.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/blue@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/green.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/green.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/green@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/grey.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/grey.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/grey@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/orange.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/orange.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/orange@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/pink.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/pink.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/pink@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/purple.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/purple.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/purple@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/red.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/red.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/red@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/square.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/square.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/square@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/yellow.css +62 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/yellow.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/iCheck/square/yellow@2x.png +0 -0
- data/vendor/assets/stylesheets/adminlte/plugins/ionslider/ion.rangeSlider.css.scss.css +126 -0
- data/vendor/assets/stylesheets/adminlte/plugins/ionslider/ion.rangeSlider.skinFlat.css.scss.css +89 -0
- data/vendor/assets/stylesheets/adminlte/plugins/ionslider/ion.rangeSlider.skinNice.css.scss.css +85 -0
- data/vendor/assets/stylesheets/adminlte/plugins/jvectormap/jquery-jvectormap-1.2.2.css.scss.css +36 -0
- data/vendor/assets/stylesheets/adminlte/plugins/morris/morris.css.scss.css +2 -0
- data/vendor/assets/stylesheets/adminlte/plugins/timepicker/bootstrap-timepicker.css.scss +121 -0
- data/vendor/assets/stylesheets/bootstrap.css.scss +7118 -0
- data/vendor/assets/stylesheets/font-awesome.css.scss +1338 -0
- data/vendor/assets/stylesheets/ionicons.css.scss +2183 -0
- metadata +574 -0
@@ -0,0 +1 @@
|
|
1
|
+
more phone masks can be found at https://github.com/andr-04/inputmask-multi
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// Ion.RangeSlider
|
2
|
+
// version 1.8.2
|
3
|
+
// https://github.com/IonDen/ion.rangeSlider
|
4
|
+
(function(c,X,ea,S){var Y=0,O=function(){var c=S.userAgent,a=/msie\s\d+/i;return 0<c.search(a)&&(c=a.exec(c).toString(),c=c.split(" ")[1],9>c)?!0:!1}(),H;try{X.createEvent("TouchEvent"),H=!0}catch(ga){H=!1}var N={init:function(A){return this.each(function(){var a=c.extend({min:10,max:100,from:null,to:null,type:"single",step:1,prefix:"",postfix:"",hasGrid:!1,hideMinMax:!1,hideFromTo:!1,prettify:!0,onChange:null,onLoad:null,onFinish:null},A),d=c(this),u=this;if(!d.data("isActive")){d.data("isActive",
|
5
|
+
!0);this.pluginCount=Y+=1;d.prop("value")&&(a.min=parseInt(d.prop("value").split(";")[0],10),a.max=parseInt(d.prop("value").split(";")[1],10));"number"!==typeof a.from&&(a.from=a.min);"number"!==typeof a.to&&(a.to=a.max);"number"===typeof d.data("from")&&(a.from=parseFloat(d.data("from")));"number"===typeof d.data("to")&&(a.to=parseFloat(d.data("to")));d.data("step")&&(a.step=parseFloat(d.data("step")));d.data("type")&&(a.type=d.data("type"));d.data("prefix")&&(a.prefix=d.data("prefix"));d.data("postfix")&&
|
6
|
+
(a.postfix=d.data("postfix"));d.data("hasgrid")&&(a.hasGrid=d.data("hasgrid"));d.data("hideminmax")&&(a.hideMinMax=d.data("hideminmax"));d.data("hidefromto")&&(a.hideFromTo=d.data("hidefromto"));d.data("prettify")&&(a.prettify=d.data("prettify"));a.from<a.min&&(a.from=a.min);a.to>a.max&&(a.to=a.max);"double"===a.type&&(a.from>a.to&&(a.from=a.to),a.to<a.from&&(a.to=a.from));var v=function(b){b=b.toString();a.prettify&&(b=b.replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1 "));return b},N='<span class="irs" id="irs-'+
|
7
|
+
this.pluginCount+'"></span>';d[0].style.display="none";d.before(N);var w=c("#irs-"+this.pluginCount),C=c(X.body),I=c(ea),l,D,E,x,y,q,r,e,m,s,T,Z,p=!1,t=!1,P=!0,g={},U=0,J=0,K=0,k=0,B=0,L=0,V=0,Q=0,R=0,$=0,n=0;parseInt(a.step,10)!==parseFloat(a.step)&&(n=a.step.toString().split(".")[1],n=Math.pow(10,n.length));this.updateData=function(b){P=!0;a=c.extend(a,b);w.find("*").off();I.off("mouseup.irs"+u.pluginCount);C.off("mouseup.irs"+u.pluginCount);C.off("mousemove.irs"+u.pluginCount);w.html("");aa()};
|
8
|
+
this.removeSlider=function(){w.find("*").off();I.off("mouseup.irs"+u.pluginCount);C.off("mouseup.irs"+u.pluginCount);C.off("mousemove.irs"+u.pluginCount);w.html("").remove();d.data("isActive",!1);d.show()};var aa=function(){w.html('<span class="irs"><span class="irs-line"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span>');
|
9
|
+
l=w.find(".irs");D=l.find(".irs-min");E=l.find(".irs-max");x=l.find(".irs-from");y=l.find(".irs-to");q=l.find(".irs-single");Z=w.find(".irs-grid");a.hideMinMax&&(D[0].style.display="none",E[0].style.display="none",K=J=0);a.hideFromTo&&(x[0].style.display="none",y[0].style.display="none",q[0].style.display="none");a.hideMinMax||(D.html(a.prefix+v(a.min)+a.postfix),E.html(a.prefix+v(a.max)+a.postfix),J=D.outerWidth(),K=E.outerWidth());if("single"===a.type){if(l.append('<span class="irs-slider single"></span>'),
|
10
|
+
r=l.find(".single"),r.on("mousedown",function(a){a.preventDefault();a.stopPropagation();F(a,c(this),null);t=p=!0;O&&c("*").prop("unselectable",!0)}),H)r.on("touchstart",function(a){a.preventDefault();a.stopPropagation();F(a.originalEvent.touches[0],c(this),null);t=p=!0})}else"double"===a.type&&(l.append('<span class="irs-diapason"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),e=l.find(".from"),m=l.find(".to"),T=l.find(".irs-diapason"),M(),e.on("mousedown",function(a){a.preventDefault();
|
11
|
+
a.stopPropagation();c(this).addClass("last");m.removeClass("last");F(a,c(this),"from");t=p=!0;O&&c("*").prop("unselectable",!0)}),m.on("mousedown",function(a){a.preventDefault();a.stopPropagation();c(this).addClass("last");e.removeClass("last");F(a,c(this),"to");t=p=!0;O&&c("*").prop("unselectable",!0)}),H&&(e.on("touchstart",function(a){a.preventDefault();a.stopPropagation();c(this).addClass("last");m.removeClass("last");F(a.originalEvent.touches[0],c(this),"from");t=p=!0}),m.on("touchstart",function(a){a.preventDefault();
|
12
|
+
a.stopPropagation();c(this).addClass("last");e.removeClass("last");F(a.originalEvent.touches[0],c(this),"to");t=p=!0})),a.to===a.max&&e.addClass("last"));var b=function(){p&&(p=t=!1,s.removeAttr("id"),s=null,"double"===a.type&&M(),W(),O&&c("*").prop("unselectable",!1))};C.on("mouseup.irs"+u.pluginCount,function(){b()});I.on("mouseup.irs"+u.pluginCount,function(){b()});C.on("mousemove.irs"+u.pluginCount,function(a){p&&(U=a.pageX,ba())});H&&(I.on("touchend",function(){p&&(p=t=!1,s.removeAttr("id"),
|
13
|
+
s=null,"double"===a.type&&M(),W())}),I.on("touchmove",function(a){p&&(U=a.originalEvent.touches[0].pageX,ba())}));ca();S();a.hasGrid&&fa()},ca=function(){k=l.width();L=r?r.width():e.width();B=k-L},F=function(b,f,c){ca();P=!1;s=f;s.attr("id","irs-active-slider");f=s.offset().left;$=f+(b.pageX-f)-s.position().left;"single"===a.type?V=l.width()-L:"double"===a.type&&("from"===c?(Q=0,R=parseInt(m.css("left"),10)):(Q=parseInt(e.css("left"),10),R=l.width()-L))},M=function(){var a=e.width(),f=c.data(e[0],
|
14
|
+
"x")||parseInt(e[0].style.left,10)||e.position().left,G=(c.data(m[0],"x")||parseInt(m[0].style.left,10)||m.position().left)-f;T[0].style.left=f+a/2+"px";T[0].style.width=G+"px"},ba=function(){var b=U-$;"single"===a.type?(0>b&&(b=0),b>V&&(b=V)):"double"===a.type&&(b<Q&&(b=Q),b>R&&(b=R),M());c.data(s[0],"x",b);W();b=Math.round(b);s[0].style.left=b+"px"},W=function(){var b={fromNumber:0,toNumber:0,fromPers:0,toPers:0,fromX:0,toX:0},f=a.max-a.min,G;"single"===a.type?(b.fromX=c.data(r[0],"x")||parseInt(r[0].style.left,
|
15
|
+
10)||r.position().left,b.fromPers=b.fromX/B*100,G=f/100*b.fromPers+parseInt(a.min,10),b.fromNumber=Math.round(G/a.step)*a.step,n&&(b.fromNumber=parseInt(b.fromNumber*n,10)/n)):"double"===a.type&&(b.fromX=c.data(e[0],"x")||parseInt(e[0].style.left,10)||e.position().left,b.fromPers=b.fromX/B*100,G=f/100*b.fromPers+parseInt(a.min,10),b.fromNumber=Math.round(G/a.step)*a.step,b.toX=c.data(m[0],"x")||parseInt(m[0].style.left,10)||m.position().left,b.toPers=b.toX/B*100,f=f/100*b.toPers+parseInt(a.min,10),
|
16
|
+
b.toNumber=Math.round(f/a.step)*a.step,n&&(b.fromNumber=parseInt(b.fromNumber*n,10)/n,b.toNumber=parseInt(b.toNumber*n,10)/n));g=b;da()},S=function(){var b={fromNumber:a.from,toNumber:a.to,fromPers:0,toPers:0,fromX:0,fromX_pure:0,toX:0,toX_pure:0},f=a.max-a.min;"single"===a.type?(b.fromPers=(b.fromNumber-a.min)/f*100,b.fromX_pure=B/100*b.fromPers,b.fromX=Math.round(b.fromX_pure),r[0].style.left=b.fromX+"px",c.data(r[0],"x",b.fromX_pure)):"double"===a.type&&(b.fromPers=(b.fromNumber-a.min)/f*100,b.fromX_pure=
|
17
|
+
B/100*b.fromPers,b.fromX=Math.round(b.fromX_pure),e[0].style.left=b.fromX+"px",c.data(e[0],"x",b.fromX_pure),b.toPers=(b.toNumber-a.min)/f*100,b.toX_pure=B/100*b.toPers,b.toX=Math.round(b.toX_pure),m[0].style.left=b.toX+"px",c.data(m[0],"x",b.toX_pure),M());g=b;da()},da=function(){var b,f,c,z,e,h;h=L/2;"single"===a.type?(a.hideText||(x[0].style.display="none",y[0].style.display="none",c=a.prefix+v(g.fromNumber)+a.postfix,q.html(c),e=q.outerWidth(),h=g.fromX-e/2+h,0>h&&(h=0),h>k-e&&(h=k-e),q[0].style.left=
|
18
|
+
h+"px",a.hideMinMax||a.hideFromTo||(D[0].style.display=h<J?"none":"block",E[0].style.display=h+e>k-K?"none":"block")),d.attr("value",parseInt(g.fromNumber,10))):"double"===a.type&&(a.hideText||(b=a.prefix+v(g.fromNumber)+a.postfix,f=a.prefix+v(g.toNumber)+a.postfix,c=g.fromNumber!==g.toNumber?a.prefix+v(g.fromNumber)+" \u2014 "+a.prefix+v(g.toNumber)+a.postfix:a.prefix+v(g.fromNumber)+a.postfix,x.html(b),y.html(f),q.html(c),b=x.outerWidth(),f=g.fromX-b/2+h,0>f&&(f=0),f>k-b&&(f=k-b),x[0].style.left=
|
19
|
+
f+"px",c=y.outerWidth(),z=g.toX-c/2+h,0>z&&(z=0),z>k-c&&(z=k-c),y[0].style.left=z+"px",e=q.outerWidth(),h=g.fromX+(g.toX-g.fromX)/2-e/2+h,0>h&&(h=0),h>k-e&&(h=k-e),q[0].style.left=h+"px",f+b<z?(q[0].style.display="none",x[0].style.display="block",y[0].style.display="block"):(q[0].style.display="block",x[0].style.display="none",y[0].style.display="none"),a.hideMinMax||a.hideFromTo||(D[0].style.display=h<J||f<J?"none":"block",E[0].style.display=h+e>k-K||z+c>k-K?"none":"block")),d.attr("value",parseInt(g.fromNumber,
|
20
|
+
10)+";"+parseInt(g.toNumber,10)));"function"===typeof a.onChange&&a.onChange.call(this,g);"function"!==typeof a.onFinish||t||P||a.onFinish.call(this,g);"function"===typeof a.onLoad&&!t&&P&&a.onLoad.call(this,g)},fa=function(){w.addClass("irs-with-grid");var b,c="",d=0,d=0,e="";for(b=0;20>=b;b+=1)d=Math.floor(k/20*b),d>=k&&(d=k-1),e+='<span class="irs-grid-pol small" style="left: '+d+'px;"></span>';for(b=0;4>=b;b+=1)d=Math.floor(k/4*b),d>=k&&(d=k-1),e+='<span class="irs-grid-pol" style="left: '+d+
|
21
|
+
'px;"></span>',n?(c=a.min+(a.max-a.min)/4*b,c=c/a.step*a.step,c=parseInt(c*n,10)/n):(c=Math.round(a.min+(a.max-a.min)/4*b),c=Math.round(c/a.step)*a.step,c=v(c)),0===b?e+='<span class="irs-grid-text" style="left: '+d+'px; text-align: left;">'+c+"</span>":4===b?(d-=100,e+='<span class="irs-grid-text" style="left: '+d+'px; text-align: right;">'+c+"</span>"):(d-=50,e+='<span class="irs-grid-text" style="left: '+d+'px;">'+c+"</span>");Z.html(e)};aa()}})},update:function(c){return this.each(function(){this.updateData(c)})},
|
22
|
+
remove:function(){return this.each(function(){this.removeSlider()})}};c.fn.ionRangeSlider=function(A){if(N[A])return N[A].apply(this,Array.prototype.slice.call(arguments,1));if("object"!==typeof A&&A)c.error("Method "+A+" does not exist for jQuery.ionRangeSlider");else return N.init.apply(this,arguments)}})(jQuery,document,window,navigator);
|
@@ -0,0 +1,764 @@
|
|
1
|
+
/*!jQuery Knob*/
|
2
|
+
/**
|
3
|
+
* Downward compatible, touchable dial
|
4
|
+
*
|
5
|
+
* Version: 1.2.0 (15/07/2012)
|
6
|
+
* Requires: jQuery v1.7+
|
7
|
+
*
|
8
|
+
* Copyright (c) 2012 Anthony Terrien
|
9
|
+
* Under MIT and GPL licenses:
|
10
|
+
* http://www.opensource.org/licenses/mit-license.php
|
11
|
+
* http://www.gnu.org/licenses/gpl.html
|
12
|
+
*
|
13
|
+
* Thanks to vor, eskimoblood, spiffistan, FabrizioC
|
14
|
+
*/
|
15
|
+
(function($) {
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Kontrol library
|
19
|
+
*/
|
20
|
+
"use strict";
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Definition of globals and core
|
24
|
+
*/
|
25
|
+
var k = {}, // kontrol
|
26
|
+
max = Math.max,
|
27
|
+
min = Math.min;
|
28
|
+
|
29
|
+
k.c = {};
|
30
|
+
k.c.d = $(document);
|
31
|
+
k.c.t = function (e) {
|
32
|
+
return e.originalEvent.touches.length - 1;
|
33
|
+
};
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Kontrol Object
|
37
|
+
*
|
38
|
+
* Definition of an abstract UI control
|
39
|
+
*
|
40
|
+
* Each concrete component must call this one.
|
41
|
+
* <code>
|
42
|
+
* k.o.call(this);
|
43
|
+
* </code>
|
44
|
+
*/
|
45
|
+
k.o = function () {
|
46
|
+
var s = this;
|
47
|
+
|
48
|
+
this.o = null; // array of options
|
49
|
+
this.$ = null; // jQuery wrapped element
|
50
|
+
this.i = null; // mixed HTMLInputElement or array of HTMLInputElement
|
51
|
+
this.g = null; // deprecated 2D graphics context for 'pre-rendering'
|
52
|
+
this.v = null; // value ; mixed array or integer
|
53
|
+
this.cv = null; // change value ; not commited value
|
54
|
+
this.x = 0; // canvas x position
|
55
|
+
this.y = 0; // canvas y position
|
56
|
+
this.w = 0; // canvas width
|
57
|
+
this.h = 0; // canvas height
|
58
|
+
this.$c = null; // jQuery canvas element
|
59
|
+
this.c = null; // rendered canvas context
|
60
|
+
this.t = 0; // touches index
|
61
|
+
this.isInit = false;
|
62
|
+
this.fgColor = null; // main color
|
63
|
+
this.pColor = null; // previous color
|
64
|
+
this.dH = null; // draw hook
|
65
|
+
this.cH = null; // change hook
|
66
|
+
this.eH = null; // cancel hook
|
67
|
+
this.rH = null; // release hook
|
68
|
+
this.scale = 1; // scale factor
|
69
|
+
this.relative = false;
|
70
|
+
this.relativeWidth = false;
|
71
|
+
this.relativeHeight = false;
|
72
|
+
this.$div = null; // component div
|
73
|
+
|
74
|
+
this.run = function () {
|
75
|
+
var cf = function (e, conf) {
|
76
|
+
var k;
|
77
|
+
for (k in conf) {
|
78
|
+
s.o[k] = conf[k];
|
79
|
+
}
|
80
|
+
s.init();
|
81
|
+
s._configure()
|
82
|
+
._draw();
|
83
|
+
};
|
84
|
+
|
85
|
+
if(this.$.data('kontroled')) return;
|
86
|
+
this.$.data('kontroled', true);
|
87
|
+
|
88
|
+
this.extend();
|
89
|
+
this.o = $.extend(
|
90
|
+
{
|
91
|
+
// Config
|
92
|
+
min : this.$.data('min') || 0,
|
93
|
+
max : this.$.data('max') || 100,
|
94
|
+
stopper : true,
|
95
|
+
readOnly : this.$.data('readonly') || (this.$.attr('readonly') == 'readonly'),
|
96
|
+
|
97
|
+
// UI
|
98
|
+
cursor : (this.$.data('cursor') === true && 30)
|
99
|
+
|| this.$.data('cursor')
|
100
|
+
|| 0,
|
101
|
+
thickness : (
|
102
|
+
this.$.data('thickness')
|
103
|
+
&& Math.max(Math.min(this.$.data('thickness'), 1), 0.01)
|
104
|
+
)
|
105
|
+
|| 0.35,
|
106
|
+
lineCap : this.$.data('linecap') || 'butt',
|
107
|
+
width : this.$.data('width') || 200,
|
108
|
+
height : this.$.data('height') || 200,
|
109
|
+
displayInput : this.$.data('displayinput') == null || this.$.data('displayinput'),
|
110
|
+
displayPrevious : this.$.data('displayprevious'),
|
111
|
+
fgColor : this.$.data('fgcolor') || '#87CEEB',
|
112
|
+
inputColor: this.$.data('inputcolor'),
|
113
|
+
font: this.$.data('font') || 'Arial',
|
114
|
+
fontWeight: this.$.data('font-weight') || 'bold',
|
115
|
+
inline : false,
|
116
|
+
step : this.$.data('step') || 1,
|
117
|
+
|
118
|
+
// Hooks
|
119
|
+
draw : null, // function () {}
|
120
|
+
change : null, // function (value) {}
|
121
|
+
cancel : null, // function () {}
|
122
|
+
release : null, // function (value) {}
|
123
|
+
error : null // function () {}
|
124
|
+
}, this.o
|
125
|
+
);
|
126
|
+
|
127
|
+
// finalize options
|
128
|
+
if(!this.o.inputColor) {
|
129
|
+
this.o.inputColor = this.o.fgColor;
|
130
|
+
}
|
131
|
+
|
132
|
+
// routing value
|
133
|
+
if(this.$.is('fieldset')) {
|
134
|
+
|
135
|
+
// fieldset = array of integer
|
136
|
+
this.v = {};
|
137
|
+
this.i = this.$.find('input')
|
138
|
+
this.i.each(function(k) {
|
139
|
+
var $this = $(this);
|
140
|
+
s.i[k] = $this;
|
141
|
+
s.v[k] = $this.val();
|
142
|
+
|
143
|
+
$this.bind(
|
144
|
+
'change keyup'
|
145
|
+
, function () {
|
146
|
+
var val = {};
|
147
|
+
val[k] = $this.val();
|
148
|
+
s.val(val);
|
149
|
+
}
|
150
|
+
);
|
151
|
+
});
|
152
|
+
this.$.find('legend').remove();
|
153
|
+
|
154
|
+
} else {
|
155
|
+
|
156
|
+
// input = integer
|
157
|
+
this.i = this.$;
|
158
|
+
this.v = this.$.val();
|
159
|
+
(this.v == '') && (this.v = this.o.min);
|
160
|
+
|
161
|
+
this.$.bind(
|
162
|
+
'change keyup'
|
163
|
+
, function () {
|
164
|
+
s.val(s._validate(s.$.val()));
|
165
|
+
}
|
166
|
+
);
|
167
|
+
|
168
|
+
}
|
169
|
+
|
170
|
+
(!this.o.displayInput) && this.$.hide();
|
171
|
+
|
172
|
+
// adds needed DOM elements (canvas, div)
|
173
|
+
this.$c = $(document.createElement('canvas'));
|
174
|
+
if (typeof G_vmlCanvasManager !== 'undefined') {
|
175
|
+
G_vmlCanvasManager.initElement(this.$c[0]);
|
176
|
+
}
|
177
|
+
this.c = this.$c[0].getContext ? this.$c[0].getContext('2d') : null;
|
178
|
+
if (!this.c) {
|
179
|
+
this.o.error && this.o.error();
|
180
|
+
return;
|
181
|
+
}
|
182
|
+
|
183
|
+
// hdpi support
|
184
|
+
this.scale = (window.devicePixelRatio || 1) /
|
185
|
+
(
|
186
|
+
this.c.webkitBackingStorePixelRatio ||
|
187
|
+
this.c.mozBackingStorePixelRatio ||
|
188
|
+
this.c.msBackingStorePixelRatio ||
|
189
|
+
this.c.oBackingStorePixelRatio ||
|
190
|
+
this.c.backingStorePixelRatio || 1
|
191
|
+
);
|
192
|
+
|
193
|
+
// detects relative width / height
|
194
|
+
this.relativeWidth = ((this.o.width % 1 !== 0)
|
195
|
+
&& this.o.width.indexOf('%'));
|
196
|
+
this.relativeHeight = ((this.o.height % 1 !== 0)
|
197
|
+
&& this.o.height.indexOf('%'));
|
198
|
+
|
199
|
+
this.relative = (this.relativeWidth || this.relativeHeight);
|
200
|
+
|
201
|
+
// wraps all elements in a div
|
202
|
+
this.$div = $('<div style="'
|
203
|
+
+ (this.o.inline ? 'display:inline;' : '')
|
204
|
+
+ '"></div>');
|
205
|
+
|
206
|
+
this.$.wrap(this.$div).before(this.$c);
|
207
|
+
this.$div = this.$.parent();
|
208
|
+
|
209
|
+
// computes size and carves the component
|
210
|
+
this._carve();
|
211
|
+
|
212
|
+
// prepares props for transaction
|
213
|
+
if (this.v instanceof Object) {
|
214
|
+
this.cv = {};
|
215
|
+
this.copy(this.v, this.cv);
|
216
|
+
} else {
|
217
|
+
this.cv = this.v;
|
218
|
+
}
|
219
|
+
|
220
|
+
// binds configure event
|
221
|
+
this.$
|
222
|
+
.bind("configure", cf)
|
223
|
+
.parent()
|
224
|
+
.bind("configure", cf);
|
225
|
+
|
226
|
+
// finalize init
|
227
|
+
this._listen()
|
228
|
+
._configure()
|
229
|
+
._xy()
|
230
|
+
.init();
|
231
|
+
|
232
|
+
this.isInit = true;
|
233
|
+
|
234
|
+
// the most important !
|
235
|
+
this._draw();
|
236
|
+
|
237
|
+
return this;
|
238
|
+
};
|
239
|
+
|
240
|
+
this._carve = function() {
|
241
|
+
if(this.relative) {
|
242
|
+
var w = this.relativeWidth
|
243
|
+
? this.$div.parent().width()
|
244
|
+
* parseInt(this.o.width) / 100
|
245
|
+
: this.$div.parent().width(),
|
246
|
+
h = this.relativeHeight
|
247
|
+
? this.$div.parent().height()
|
248
|
+
* parseInt(this.o.height) / 100
|
249
|
+
: this.$div.parent().height();
|
250
|
+
|
251
|
+
// apply relative
|
252
|
+
this.w = this.h = Math.min(w, h);
|
253
|
+
} else {
|
254
|
+
this.w = this.o.width;
|
255
|
+
this.h = this.o.height;
|
256
|
+
}
|
257
|
+
|
258
|
+
// finalize div
|
259
|
+
this.$div.css({
|
260
|
+
'width': this.w + 'px',
|
261
|
+
'height': this.h + 'px'
|
262
|
+
});
|
263
|
+
|
264
|
+
// finalize canvas with computed width
|
265
|
+
this.$c.attr({
|
266
|
+
width: this.w,
|
267
|
+
height: this.h
|
268
|
+
});
|
269
|
+
|
270
|
+
// scaling
|
271
|
+
if (this.scale !== 1) {
|
272
|
+
this.$c[0].width = this.$c[0].width * this.scale;
|
273
|
+
this.$c[0].height = this.$c[0].height * this.scale;
|
274
|
+
this.$c.width(this.w);
|
275
|
+
this.$c.height(this.h);
|
276
|
+
}
|
277
|
+
|
278
|
+
return this;
|
279
|
+
}
|
280
|
+
|
281
|
+
this._draw = function () {
|
282
|
+
|
283
|
+
// canvas pre-rendering
|
284
|
+
var d = true;
|
285
|
+
|
286
|
+
s.g = s.c;
|
287
|
+
|
288
|
+
s.clear();
|
289
|
+
|
290
|
+
s.dH
|
291
|
+
&& (d = s.dH());
|
292
|
+
|
293
|
+
(d !== false) && s.draw();
|
294
|
+
|
295
|
+
};
|
296
|
+
|
297
|
+
this._touch = function (e) {
|
298
|
+
|
299
|
+
var touchMove = function (e) {
|
300
|
+
|
301
|
+
var v = s.xy2val(
|
302
|
+
e.originalEvent.touches[s.t].pageX,
|
303
|
+
e.originalEvent.touches[s.t].pageY
|
304
|
+
);
|
305
|
+
s.change(s._validate(v));
|
306
|
+
s._draw();
|
307
|
+
};
|
308
|
+
|
309
|
+
// get touches index
|
310
|
+
this.t = k.c.t(e);
|
311
|
+
|
312
|
+
// First touch
|
313
|
+
touchMove(e);
|
314
|
+
|
315
|
+
// Touch events listeners
|
316
|
+
k.c.d
|
317
|
+
.bind("touchmove.k", touchMove)
|
318
|
+
.bind(
|
319
|
+
"touchend.k"
|
320
|
+
, function () {
|
321
|
+
k.c.d.unbind('touchmove.k touchend.k');
|
322
|
+
|
323
|
+
if (
|
324
|
+
s.rH
|
325
|
+
&& (s.rH(s.cv) === false)
|
326
|
+
) return;
|
327
|
+
|
328
|
+
s.val(s.cv);
|
329
|
+
}
|
330
|
+
);
|
331
|
+
|
332
|
+
return this;
|
333
|
+
};
|
334
|
+
|
335
|
+
this._mouse = function (e) {
|
336
|
+
|
337
|
+
var mouseMove = function (e) {
|
338
|
+
var v = s.xy2val(e.pageX, e.pageY);
|
339
|
+
s.change(s._validate(v));
|
340
|
+
s._draw();
|
341
|
+
};
|
342
|
+
|
343
|
+
// First click
|
344
|
+
mouseMove(e);
|
345
|
+
|
346
|
+
// Mouse events listeners
|
347
|
+
k.c.d
|
348
|
+
.bind("mousemove.k", mouseMove)
|
349
|
+
.bind(
|
350
|
+
// Escape key cancel current change
|
351
|
+
"keyup.k"
|
352
|
+
, function (e) {
|
353
|
+
if (e.keyCode === 27) {
|
354
|
+
k.c.d.unbind("mouseup.k mousemove.k keyup.k");
|
355
|
+
|
356
|
+
if (
|
357
|
+
s.eH
|
358
|
+
&& (s.eH() === false)
|
359
|
+
) return;
|
360
|
+
|
361
|
+
s.cancel();
|
362
|
+
}
|
363
|
+
}
|
364
|
+
)
|
365
|
+
.bind(
|
366
|
+
"mouseup.k"
|
367
|
+
, function (e) {
|
368
|
+
k.c.d.unbind('mousemove.k mouseup.k keyup.k');
|
369
|
+
|
370
|
+
if (
|
371
|
+
s.rH
|
372
|
+
&& (s.rH(s.cv) === false)
|
373
|
+
) return;
|
374
|
+
|
375
|
+
s.val(s.cv);
|
376
|
+
}
|
377
|
+
);
|
378
|
+
|
379
|
+
return this;
|
380
|
+
};
|
381
|
+
|
382
|
+
this._xy = function () {
|
383
|
+
var o = this.$c.offset();
|
384
|
+
this.x = o.left;
|
385
|
+
this.y = o.top;
|
386
|
+
return this;
|
387
|
+
};
|
388
|
+
|
389
|
+
this._listen = function () {
|
390
|
+
|
391
|
+
if (!this.o.readOnly) {
|
392
|
+
this.$c
|
393
|
+
.bind(
|
394
|
+
"mousedown"
|
395
|
+
, function (e) {
|
396
|
+
e.preventDefault();
|
397
|
+
s._xy()._mouse(e);
|
398
|
+
}
|
399
|
+
)
|
400
|
+
.bind(
|
401
|
+
"touchstart"
|
402
|
+
, function (e) {
|
403
|
+
e.preventDefault();
|
404
|
+
s._xy()._touch(e);
|
405
|
+
}
|
406
|
+
);
|
407
|
+
|
408
|
+
this.listen();
|
409
|
+
} else {
|
410
|
+
this.$.attr('readonly', 'readonly');
|
411
|
+
}
|
412
|
+
|
413
|
+
if(this.relative) {
|
414
|
+
$(window).resize(function() {
|
415
|
+
s._carve()
|
416
|
+
.init();
|
417
|
+
s._draw();
|
418
|
+
});
|
419
|
+
}
|
420
|
+
|
421
|
+
return this;
|
422
|
+
};
|
423
|
+
|
424
|
+
this._configure = function () {
|
425
|
+
|
426
|
+
// Hooks
|
427
|
+
if (this.o.draw) this.dH = this.o.draw;
|
428
|
+
if (this.o.change) this.cH = this.o.change;
|
429
|
+
if (this.o.cancel) this.eH = this.o.cancel;
|
430
|
+
if (this.o.release) this.rH = this.o.release;
|
431
|
+
|
432
|
+
if (this.o.displayPrevious) {
|
433
|
+
this.pColor = this.h2rgba(this.o.fgColor, "0.4");
|
434
|
+
this.fgColor = this.h2rgba(this.o.fgColor, "0.6");
|
435
|
+
} else {
|
436
|
+
this.fgColor = this.o.fgColor;
|
437
|
+
}
|
438
|
+
|
439
|
+
return this;
|
440
|
+
};
|
441
|
+
|
442
|
+
this._clear = function () {
|
443
|
+
this.$c[0].width = this.$c[0].width;
|
444
|
+
};
|
445
|
+
|
446
|
+
this._validate = function(v) {
|
447
|
+
return (~~ (((v < 0) ? -0.5 : 0.5) + (v/this.o.step))) * this.o.step;
|
448
|
+
};
|
449
|
+
|
450
|
+
// Abstract methods
|
451
|
+
this.listen = function () {}; // on start, one time
|
452
|
+
this.extend = function () {}; // each time configure triggered
|
453
|
+
this.init = function () {}; // each time configure triggered
|
454
|
+
this.change = function (v) {}; // on change
|
455
|
+
this.val = function (v) {}; // on release
|
456
|
+
this.xy2val = function (x, y) {}; //
|
457
|
+
this.draw = function () {}; // on change / on release
|
458
|
+
this.clear = function () { this._clear(); };
|
459
|
+
|
460
|
+
// Utils
|
461
|
+
this.h2rgba = function (h, a) {
|
462
|
+
var rgb;
|
463
|
+
h = h.substring(1,7)
|
464
|
+
rgb = [parseInt(h.substring(0,2),16)
|
465
|
+
,parseInt(h.substring(2,4),16)
|
466
|
+
,parseInt(h.substring(4,6),16)];
|
467
|
+
return "rgba(" + rgb[0] + "," + rgb[1] + "," + rgb[2] + "," + a + ")";
|
468
|
+
};
|
469
|
+
|
470
|
+
this.copy = function (f, t) {
|
471
|
+
for (var i in f) { t[i] = f[i]; }
|
472
|
+
};
|
473
|
+
};
|
474
|
+
|
475
|
+
|
476
|
+
/**
|
477
|
+
* k.Dial
|
478
|
+
*/
|
479
|
+
k.Dial = function () {
|
480
|
+
k.o.call(this);
|
481
|
+
|
482
|
+
this.startAngle = null;
|
483
|
+
this.xy = null;
|
484
|
+
this.radius = null;
|
485
|
+
this.lineWidth = null;
|
486
|
+
this.cursorExt = null;
|
487
|
+
this.w2 = null;
|
488
|
+
this.PI2 = 2*Math.PI;
|
489
|
+
|
490
|
+
this.extend = function () {
|
491
|
+
this.o = $.extend(
|
492
|
+
{
|
493
|
+
bgColor : this.$.data('bgcolor') || '#EEEEEE',
|
494
|
+
angleOffset : this.$.data('angleoffset') || 0,
|
495
|
+
angleArc : this.$.data('anglearc') || 360,
|
496
|
+
inline : true
|
497
|
+
}, this.o
|
498
|
+
);
|
499
|
+
};
|
500
|
+
|
501
|
+
this.val = function (v) {
|
502
|
+
if (null != v) {
|
503
|
+
this.cv = this.o.stopper ? max(min(v, this.o.max), this.o.min) : v;
|
504
|
+
this.v = this.cv;
|
505
|
+
this.$.val(this.v);
|
506
|
+
this._draw();
|
507
|
+
} else {
|
508
|
+
return this.v;
|
509
|
+
}
|
510
|
+
};
|
511
|
+
|
512
|
+
this.xy2val = function (x, y) {
|
513
|
+
var a, ret;
|
514
|
+
|
515
|
+
a = Math.atan2(
|
516
|
+
x - (this.x + this.w2)
|
517
|
+
, - (y - this.y - this.w2)
|
518
|
+
) - this.angleOffset;
|
519
|
+
|
520
|
+
if(this.angleArc != this.PI2 && (a < 0) && (a > -0.5)) {
|
521
|
+
// if isset angleArc option, set to min if .5 under min
|
522
|
+
a = 0;
|
523
|
+
} else if (a < 0) {
|
524
|
+
a += this.PI2;
|
525
|
+
}
|
526
|
+
|
527
|
+
ret = ~~ (0.5 + (a * (this.o.max - this.o.min) / this.angleArc))
|
528
|
+
+ this.o.min;
|
529
|
+
|
530
|
+
this.o.stopper
|
531
|
+
&& (ret = max(min(ret, this.o.max), this.o.min));
|
532
|
+
|
533
|
+
return ret;
|
534
|
+
};
|
535
|
+
|
536
|
+
this.listen = function () {
|
537
|
+
// bind MouseWheel
|
538
|
+
var s = this, mwTimerStop, mwTimerRelease,
|
539
|
+
mw = function (e) {
|
540
|
+
e.preventDefault();
|
541
|
+
|
542
|
+
var ori = e.originalEvent
|
543
|
+
,deltaX = ori.detail || ori.wheelDeltaX
|
544
|
+
,deltaY = ori.detail || ori.wheelDeltaY
|
545
|
+
,v = s._validate(s.$.val())
|
546
|
+
+ (deltaX>0 || deltaY>0 ? s.o.step : deltaX<0 || deltaY<0 ? -s.o.step : 0);
|
547
|
+
|
548
|
+
v = max(min(v, s.o.max), s.o.min);
|
549
|
+
|
550
|
+
s.val(v);
|
551
|
+
|
552
|
+
if(s.rH) {
|
553
|
+
// Handle mousewheel stop
|
554
|
+
clearTimeout(mwTimerStop);
|
555
|
+
mwTimerStop = setTimeout(function() {
|
556
|
+
s.rH(v);
|
557
|
+
mwTimerStop = null;
|
558
|
+
}, 100);
|
559
|
+
|
560
|
+
// Handle mousewheel releases
|
561
|
+
if(!mwTimerRelease) {
|
562
|
+
mwTimerRelease = setTimeout(function() {
|
563
|
+
if(mwTimerStop) s.rH(v);
|
564
|
+
mwTimerRelease = null;
|
565
|
+
}, 200);
|
566
|
+
}
|
567
|
+
}
|
568
|
+
}
|
569
|
+
, kval, to, m = 1, kv = {37:-s.o.step, 38:s.o.step, 39:s.o.step, 40:-s.o.step};
|
570
|
+
|
571
|
+
this.$
|
572
|
+
.bind(
|
573
|
+
"keydown"
|
574
|
+
,function (e) {
|
575
|
+
var kc = e.keyCode;
|
576
|
+
|
577
|
+
// numpad support
|
578
|
+
if(kc >= 96 && kc <= 105) {
|
579
|
+
kc = e.keyCode = kc - 48;
|
580
|
+
}
|
581
|
+
|
582
|
+
kval = parseInt(String.fromCharCode(kc));
|
583
|
+
|
584
|
+
if (isNaN(kval)) {
|
585
|
+
|
586
|
+
(kc !== 13) // enter
|
587
|
+
&& (kc !== 8) // bs
|
588
|
+
&& (kc !== 9) // tab
|
589
|
+
&& (kc !== 189) // -
|
590
|
+
&& e.preventDefault();
|
591
|
+
|
592
|
+
// arrows
|
593
|
+
if ($.inArray(kc,[37,38,39,40]) > -1) {
|
594
|
+
e.preventDefault();
|
595
|
+
|
596
|
+
var v = parseInt(s.$.val()) + kv[kc] * m;
|
597
|
+
|
598
|
+
s.o.stopper
|
599
|
+
&& (v = max(min(v, s.o.max), s.o.min));
|
600
|
+
|
601
|
+
s.change(v);
|
602
|
+
s._draw();
|
603
|
+
|
604
|
+
// long time keydown speed-up
|
605
|
+
to = window.setTimeout(
|
606
|
+
function () { m*=2; }
|
607
|
+
,30
|
608
|
+
);
|
609
|
+
}
|
610
|
+
}
|
611
|
+
}
|
612
|
+
)
|
613
|
+
.bind(
|
614
|
+
"keyup"
|
615
|
+
,function (e) {
|
616
|
+
if (isNaN(kval)) {
|
617
|
+
if (to) {
|
618
|
+
window.clearTimeout(to);
|
619
|
+
to = null;
|
620
|
+
m = 1;
|
621
|
+
s.val(s.$.val());
|
622
|
+
}
|
623
|
+
} else {
|
624
|
+
// kval postcond
|
625
|
+
(s.$.val() > s.o.max && s.$.val(s.o.max))
|
626
|
+
|| (s.$.val() < s.o.min && s.$.val(s.o.min));
|
627
|
+
}
|
628
|
+
|
629
|
+
}
|
630
|
+
);
|
631
|
+
|
632
|
+
this.$c.bind("mousewheel DOMMouseScroll", mw);
|
633
|
+
this.$.bind("mousewheel DOMMouseScroll", mw)
|
634
|
+
};
|
635
|
+
|
636
|
+
this.init = function () {
|
637
|
+
|
638
|
+
if (
|
639
|
+
this.v < this.o.min
|
640
|
+
|| this.v > this.o.max
|
641
|
+
) this.v = this.o.min;
|
642
|
+
|
643
|
+
this.$.val(this.v);
|
644
|
+
this.w2 = this.w / 2;
|
645
|
+
this.cursorExt = this.o.cursor / 100;
|
646
|
+
this.xy = this.w2 * this.scale;
|
647
|
+
this.lineWidth = this.xy * this.o.thickness;
|
648
|
+
this.lineCap = this.o.lineCap;
|
649
|
+
this.radius = this.xy - this.lineWidth / 2;
|
650
|
+
|
651
|
+
this.o.angleOffset
|
652
|
+
&& (this.o.angleOffset = isNaN(this.o.angleOffset) ? 0 : this.o.angleOffset);
|
653
|
+
|
654
|
+
this.o.angleArc
|
655
|
+
&& (this.o.angleArc = isNaN(this.o.angleArc) ? this.PI2 : this.o.angleArc);
|
656
|
+
|
657
|
+
// deg to rad
|
658
|
+
this.angleOffset = this.o.angleOffset * Math.PI / 180;
|
659
|
+
this.angleArc = this.o.angleArc * Math.PI / 180;
|
660
|
+
|
661
|
+
// compute start and end angles
|
662
|
+
this.startAngle = 1.5 * Math.PI + this.angleOffset;
|
663
|
+
this.endAngle = 1.5 * Math.PI + this.angleOffset + this.angleArc;
|
664
|
+
|
665
|
+
var s = max(
|
666
|
+
String(Math.abs(this.o.max)).length
|
667
|
+
, String(Math.abs(this.o.min)).length
|
668
|
+
, 2
|
669
|
+
) + 2;
|
670
|
+
|
671
|
+
this.o.displayInput
|
672
|
+
&& this.i.css({
|
673
|
+
'width' : ((this.w / 2 + 4) >> 0) + 'px'
|
674
|
+
,'height' : ((this.w / 3) >> 0) + 'px'
|
675
|
+
,'position' : 'absolute'
|
676
|
+
,'vertical-align' : 'middle'
|
677
|
+
,'margin-top' : ((this.w / 3) >> 0) + 'px'
|
678
|
+
,'margin-left' : '-' + ((this.w * 3 / 4 + 2) >> 0) + 'px'
|
679
|
+
,'border' : 0
|
680
|
+
,'background' : 'none'
|
681
|
+
,'font' : this.o.fontWeight + ' ' + ((this.w / s) >> 0) + 'px ' + this.o.font
|
682
|
+
,'text-align' : 'center'
|
683
|
+
,'color' : this.o.inputColor || this.o.fgColor
|
684
|
+
,'padding' : '0px'
|
685
|
+
,'-webkit-appearance': 'none'
|
686
|
+
})
|
687
|
+
|| this.i.css({
|
688
|
+
'width' : '0px'
|
689
|
+
,'visibility' : 'hidden'
|
690
|
+
});
|
691
|
+
};
|
692
|
+
|
693
|
+
this.change = function (v) {
|
694
|
+
if (v == this.cv) return;
|
695
|
+
this.cv = v;
|
696
|
+
if (
|
697
|
+
this.cH
|
698
|
+
&& (this.cH(v) === false)
|
699
|
+
) return;
|
700
|
+
};
|
701
|
+
|
702
|
+
this.angle = function (v) {
|
703
|
+
return (v - this.o.min) * this.angleArc / (this.o.max - this.o.min);
|
704
|
+
};
|
705
|
+
|
706
|
+
this.draw = function () {
|
707
|
+
|
708
|
+
var c = this.g, // context
|
709
|
+
a = this.angle(this.cv) // Angle
|
710
|
+
, sat = this.startAngle // Start angle
|
711
|
+
, eat = sat + a // End angle
|
712
|
+
, sa, ea // Previous angles
|
713
|
+
, r = 1;
|
714
|
+
|
715
|
+
c.lineWidth = this.lineWidth;
|
716
|
+
|
717
|
+
c.lineCap = this.lineCap;
|
718
|
+
|
719
|
+
this.o.cursor
|
720
|
+
&& (sat = eat - this.cursorExt)
|
721
|
+
&& (eat = eat + this.cursorExt);
|
722
|
+
|
723
|
+
c.beginPath();
|
724
|
+
c.strokeStyle = this.o.bgColor;
|
725
|
+
c.arc(this.xy, this.xy, this.radius, this.endAngle - 0.00001, this.startAngle + 0.00001, true);
|
726
|
+
c.stroke();
|
727
|
+
|
728
|
+
if (this.o.displayPrevious) {
|
729
|
+
ea = this.startAngle + this.angle(this.v);
|
730
|
+
sa = this.startAngle;
|
731
|
+
this.o.cursor
|
732
|
+
&& (sa = ea - this.cursorExt)
|
733
|
+
&& (ea = ea + this.cursorExt);
|
734
|
+
|
735
|
+
c.beginPath();
|
736
|
+
c.strokeStyle = this.pColor;
|
737
|
+
c.arc(this.xy, this.xy, this.radius, sa - 0.00001, ea + 0.00001, false);
|
738
|
+
c.stroke();
|
739
|
+
r = (this.cv == this.v);
|
740
|
+
}
|
741
|
+
|
742
|
+
c.beginPath();
|
743
|
+
c.strokeStyle = r ? this.o.fgColor : this.fgColor ;
|
744
|
+
c.arc(this.xy, this.xy, this.radius, sat - 0.00001, eat + 0.00001, false);
|
745
|
+
c.stroke();
|
746
|
+
};
|
747
|
+
|
748
|
+
this.cancel = function () {
|
749
|
+
this.val(this.v);
|
750
|
+
};
|
751
|
+
};
|
752
|
+
|
753
|
+
$.fn.dial = $.fn.knob = function (o) {
|
754
|
+
return this.each(
|
755
|
+
function () {
|
756
|
+
var d = new k.Dial();
|
757
|
+
d.o = o;
|
758
|
+
d.$ = $(this);
|
759
|
+
d.run();
|
760
|
+
}
|
761
|
+
).parent();
|
762
|
+
};
|
763
|
+
|
764
|
+
})(jQuery);
|