@macallumharvey/first-test-wet 0.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Macallum.d.ts +5 -0
- package/dist/WetButton.d.ts +9 -0
- package/dist/WetModal.d.ts +6 -0
- package/dist/first-test-wet.cjs.development.js +34 -6
- package/dist/first-test-wet.cjs.development.js.map +1 -1
- package/dist/first-test-wet.cjs.production.min.js +1 -1
- package/dist/first-test-wet.cjs.production.min.js.map +1 -1
- package/dist/first-test-wet.esm.js +31 -6
- package/dist/first-test-wet.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/Macallum.tsx +9 -0
- package/src/WetButton.tsx +19 -0
- package/src/WetModal.tsx +25 -0
- package/src/index.tsx +2 -6
- package/src/wet-boew-cdn-4.0.81.1/Licence-fr.txt +1 -0
- package/src/wet-boew-cdn-4.0.81.1/License-en.txt +1 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/cloud-popup-relative.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/fd-slider-sprite.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/loading.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/mediacontrols.html +33 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/sprites_share.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/zoom-minus-mini.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/zoom-plus-mini.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/assets/zoom-world-mini.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/css/noscript.css +112 -0
- package/src/wet-boew-cdn-4.0.81.1/css/noscript.min.css +6 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datalist.css +32 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datalist.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datepicker.css +47 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/datepicker.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/details.css +28 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/details.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/mathml.css +16 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/mathml.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/meter.css +24 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/meter.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/progress.css +8 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/progress.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/slider.css +229 -0
- package/src/wet-boew-cdn-4.0.81.1/css/polyfills/slider.min.css +1 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/mml-chtml.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.js +1512 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.js +3770 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.js +15733 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.min.js +4 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.js +345 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.js +3168 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.js +282 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.js +820 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.js +2061 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.min.js +4 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.js +1661 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.js +315 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.js +349 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-apollo.js +53 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-apollo.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-basic.js +49 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-basic.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-clj.js +64 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-clj.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-css.js +160 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-css.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-dart.js +92 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-dart.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-erlang.js +94 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-erlang.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-go.js +59 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-go.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-hs.js +102 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-hs.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lasso.js +67 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lasso.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lisp.js +95 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lisp.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-llvm.js +63 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-llvm.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-logtalk.js +50 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-logtalk.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lua.js +60 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-lua.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-matlab.js +183 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-matlab.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-ml.js +57 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-ml.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-mumps.js +140 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-mumps.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-n.js +67 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-n.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-pascal.js +49 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-pascal.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-proto.js +37 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-proto.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-r.js +59 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-r.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rd.js +50 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rd.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rust.js +81 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-rust.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-scala.js +56 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-scala.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-sql.js +59 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-sql.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-swift.js +60 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-swift.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tcl.js +63 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tcl.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tex.js +49 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-tex.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vb.js +67 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vb.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vhdl.js +51 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-vhdl.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-wiki.js +55 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-wiki.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-xq.js +71 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-xq.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-yaml.js +45 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/lang-yaml.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.js +1008 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.js +1742 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.js +3 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.js +1998 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.js +2216 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.js +452 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.min.js +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.js +294 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.js +363 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.js +296 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.js +291 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.js +322 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.js +292 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.js +291 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.js +320 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.js +294 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.js +327 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.js +296 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.js +279 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.js +291 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.js +295 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.js +293 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.js +254 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.js +294 -0
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.js +10 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.js +10 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js +7 -0
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/jquery/2.2.4/jquery.js +9814 -0
- package/src/wet-boew-cdn-4.0.81.1/js/jquery/2.2.4/jquery.min.js +4 -0
- package/src/wet-boew-cdn-4.0.81.1/js/jquery/2.2.4/jquery.min.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.js +419 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.js +50 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.js +338 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.js +126 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.js +47 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js +16 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.js +140 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.js +784 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.js +107 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.js +1343 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.js +73 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.js +29 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.js +603 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js +8 -0
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.js +20264 -0
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js +9 -0
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js.map +1 -0
- package/src/wet-boew-cdn-4.0.81.1/package.json +15 -0
- package/src/wet-boew-cdn-4.0.81.1/payload.json +1722 -0
@@ -0,0 +1,784 @@
|
|
1
|
+
/*
|
2
|
+
* This file is to enable touch on browser
|
3
|
+
* jQuery Mobile v1.3.2
|
4
|
+
* https://jquerymobile.com
|
5
|
+
*
|
6
|
+
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
|
7
|
+
* Released under the MIT license.
|
8
|
+
* https://jquery.org/license
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
(function ( root, doc, factory ) {
|
13
|
+
if ( typeof define === "function" && define.amd ) {
|
14
|
+
// AMD. Register as an anonymous module.
|
15
|
+
define( [ "jquery" ], function ( $ ) {
|
16
|
+
factory( $, root, doc );
|
17
|
+
return $.mobile;
|
18
|
+
});
|
19
|
+
} else {
|
20
|
+
// Browser globals
|
21
|
+
factory( root.jQuery, root, doc );
|
22
|
+
}
|
23
|
+
}( this, document, function ( jQuery, window, document, undefined ) {
|
24
|
+
|
25
|
+
// throttled resize event
|
26
|
+
(function( $ ) {
|
27
|
+
$.event.special.throttledresize = {
|
28
|
+
setup: function() {
|
29
|
+
$( this ).bind( "resize", handler );
|
30
|
+
},
|
31
|
+
teardown: function() {
|
32
|
+
$( this ).unbind( "resize", handler );
|
33
|
+
}
|
34
|
+
};
|
35
|
+
|
36
|
+
var throttle = 250,
|
37
|
+
handler = function() {
|
38
|
+
curr = ( new Date() ).getTime();
|
39
|
+
diff = curr - lastCall;
|
40
|
+
|
41
|
+
if ( diff >= throttle ) {
|
42
|
+
|
43
|
+
lastCall = curr;
|
44
|
+
$( this ).trigger( "throttledresize" );
|
45
|
+
|
46
|
+
} else {
|
47
|
+
|
48
|
+
if ( heldCall ) {
|
49
|
+
clearTimeout( heldCall );
|
50
|
+
}
|
51
|
+
|
52
|
+
// Promise a held call will still execute
|
53
|
+
heldCall = setTimeout( handler, throttle - diff );
|
54
|
+
}
|
55
|
+
},
|
56
|
+
lastCall = 0,
|
57
|
+
heldCall,
|
58
|
+
curr,
|
59
|
+
diff;
|
60
|
+
})( jQuery );
|
61
|
+
// This plugin is an experiment for abstracting away the touch and mouse
|
62
|
+
// events so that developers don't have to worry about which method of input
|
63
|
+
// the device their document is loaded on supports.
|
64
|
+
//
|
65
|
+
// The idea here is to allow the developer to register listeners for the
|
66
|
+
// basic mouse events, such as mousedown, mousemove, mouseup, and click,
|
67
|
+
// and the plugin will take care of registering the correct listeners
|
68
|
+
// behind the scenes to invoke the listener at the fastest possible time
|
69
|
+
// for that device, while still retaining the order of event firing in
|
70
|
+
// the traditional mouse environment, should multiple handlers be registered
|
71
|
+
// on the same element for different events.
|
72
|
+
//
|
73
|
+
// The current version exposes the following virtual events to jQuery bind methods:
|
74
|
+
// "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
|
75
|
+
|
76
|
+
(function( $, window, document, undefined ) {
|
77
|
+
|
78
|
+
var dataPropertyName = "virtualMouseBindings",
|
79
|
+
touchTargetPropertyName = "virtualTouchID",
|
80
|
+
virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
|
81
|
+
touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
|
82
|
+
mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
|
83
|
+
mouseEventProps = $.event.props.concat( mouseHookProps ),
|
84
|
+
activeDocHandlers = {},
|
85
|
+
resetTimerID = 0,
|
86
|
+
startX = 0,
|
87
|
+
startY = 0,
|
88
|
+
didScroll = false,
|
89
|
+
clickBlockList = [],
|
90
|
+
blockMouseTriggers = false,
|
91
|
+
blockTouchTriggers = false,
|
92
|
+
eventCaptureSupported = "addEventListener" in document,
|
93
|
+
$document = $( document ),
|
94
|
+
nextTouchID = 1,
|
95
|
+
lastTouchID = 0, threshold;
|
96
|
+
|
97
|
+
$.vmouse = {
|
98
|
+
moveDistanceThreshold: 10,
|
99
|
+
clickDistanceThreshold: 10,
|
100
|
+
resetTimerDuration: 1500
|
101
|
+
};
|
102
|
+
|
103
|
+
function getNativeEvent( event ) {
|
104
|
+
|
105
|
+
while ( event && typeof event.originalEvent !== "undefined" ) {
|
106
|
+
event = event.originalEvent;
|
107
|
+
}
|
108
|
+
return event;
|
109
|
+
}
|
110
|
+
|
111
|
+
function createVirtualEvent( event, eventType ) {
|
112
|
+
|
113
|
+
var t = event.type,
|
114
|
+
oe, props, ne, prop, ct, touch, i, j, len;
|
115
|
+
|
116
|
+
event = $.Event( event );
|
117
|
+
event.type = eventType;
|
118
|
+
|
119
|
+
oe = event.originalEvent;
|
120
|
+
props = $.event.props;
|
121
|
+
|
122
|
+
// addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
|
123
|
+
// https://github.com/jquery/jquery-mobile/issues/3280
|
124
|
+
if ( t.search( /^(mouse|click)/ ) > -1 ) {
|
125
|
+
props = mouseEventProps;
|
126
|
+
}
|
127
|
+
|
128
|
+
// copy original event properties over to the new event
|
129
|
+
// this would happen if we could call $.event.fix instead of $.Event
|
130
|
+
// but we don't have a way to force an event to be fixed multiple times
|
131
|
+
if ( oe ) {
|
132
|
+
for ( i = props.length, prop; i; ) {
|
133
|
+
prop = props[ --i ];
|
134
|
+
event[ prop ] = oe[ prop ];
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
// make sure that if the mouse and click virtual events are generated
|
139
|
+
// without a .which one is defined
|
140
|
+
if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ) {
|
141
|
+
event.which = 1;
|
142
|
+
}
|
143
|
+
|
144
|
+
if ( t.search(/^touch/) !== -1 ) {
|
145
|
+
ne = getNativeEvent( oe );
|
146
|
+
t = ne.touches;
|
147
|
+
ct = ne.changedTouches;
|
148
|
+
touch = ( t && t.length ) ? t[0] : ( ( ct && ct.length ) ? ct[ 0 ] : undefined );
|
149
|
+
|
150
|
+
if ( touch ) {
|
151
|
+
for ( j = 0, len = touchEventProps.length; j < len; j++) {
|
152
|
+
prop = touchEventProps[ j ];
|
153
|
+
event[ prop ] = touch[ prop ];
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
return event;
|
159
|
+
}
|
160
|
+
|
161
|
+
function getVirtualBindingFlags( element ) {
|
162
|
+
|
163
|
+
var flags = {},
|
164
|
+
b, k;
|
165
|
+
|
166
|
+
while ( element ) {
|
167
|
+
|
168
|
+
b = $.data( element, dataPropertyName );
|
169
|
+
|
170
|
+
for ( k in b ) {
|
171
|
+
if ( b[ k ] ) {
|
172
|
+
flags[ k ] = flags.hasVirtualBinding = true;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
element = element.parentNode;
|
176
|
+
}
|
177
|
+
return flags;
|
178
|
+
}
|
179
|
+
|
180
|
+
function getClosestElementWithVirtualBinding( element, eventType ) {
|
181
|
+
var b;
|
182
|
+
while ( element ) {
|
183
|
+
|
184
|
+
b = $.data( element, dataPropertyName );
|
185
|
+
|
186
|
+
if ( b && ( !eventType || b[ eventType ] ) ) {
|
187
|
+
return element;
|
188
|
+
}
|
189
|
+
element = element.parentNode;
|
190
|
+
}
|
191
|
+
return null;
|
192
|
+
}
|
193
|
+
|
194
|
+
function enableTouchBindings() {
|
195
|
+
blockTouchTriggers = false;
|
196
|
+
}
|
197
|
+
|
198
|
+
function disableTouchBindings() {
|
199
|
+
blockTouchTriggers = true;
|
200
|
+
}
|
201
|
+
|
202
|
+
function enableMouseBindings() {
|
203
|
+
lastTouchID = 0;
|
204
|
+
clickBlockList.length = 0;
|
205
|
+
blockMouseTriggers = false;
|
206
|
+
|
207
|
+
// When mouse bindings are enabled, our
|
208
|
+
// touch bindings are disabled.
|
209
|
+
disableTouchBindings();
|
210
|
+
}
|
211
|
+
|
212
|
+
function disableMouseBindings() {
|
213
|
+
// When mouse bindings are disabled, our
|
214
|
+
// touch bindings are enabled.
|
215
|
+
enableTouchBindings();
|
216
|
+
}
|
217
|
+
|
218
|
+
function startResetTimer() {
|
219
|
+
clearResetTimer();
|
220
|
+
resetTimerID = setTimeout( function() {
|
221
|
+
resetTimerID = 0;
|
222
|
+
enableMouseBindings();
|
223
|
+
}, $.vmouse.resetTimerDuration );
|
224
|
+
}
|
225
|
+
|
226
|
+
function clearResetTimer() {
|
227
|
+
if ( resetTimerID ) {
|
228
|
+
clearTimeout( resetTimerID );
|
229
|
+
resetTimerID = 0;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
function triggerVirtualEvent( eventType, event, flags ) {
|
234
|
+
var ve;
|
235
|
+
|
236
|
+
if ( ( flags && flags[ eventType ] ) ||
|
237
|
+
( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
|
238
|
+
|
239
|
+
ve = createVirtualEvent( event, eventType );
|
240
|
+
|
241
|
+
$( event.target).trigger( ve );
|
242
|
+
}
|
243
|
+
|
244
|
+
return ve;
|
245
|
+
}
|
246
|
+
|
247
|
+
function mouseEventCallback( event ) {
|
248
|
+
var touchID = $.data( event.target, touchTargetPropertyName );
|
249
|
+
|
250
|
+
if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ) {
|
251
|
+
var ve = triggerVirtualEvent( "v" + event.type, event );
|
252
|
+
if ( ve ) {
|
253
|
+
if ( ve.isDefaultPrevented() ) {
|
254
|
+
event.preventDefault();
|
255
|
+
}
|
256
|
+
if ( ve.isPropagationStopped() ) {
|
257
|
+
event.stopPropagation();
|
258
|
+
}
|
259
|
+
if ( ve.isImmediatePropagationStopped() ) {
|
260
|
+
event.stopImmediatePropagation();
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
function handleTouchStart( event ) {
|
267
|
+
|
268
|
+
var touches = getNativeEvent( event ).touches,
|
269
|
+
target, flags;
|
270
|
+
|
271
|
+
if ( touches && touches.length === 1 ) {
|
272
|
+
|
273
|
+
target = event.target;
|
274
|
+
flags = getVirtualBindingFlags( target );
|
275
|
+
|
276
|
+
if ( flags.hasVirtualBinding ) {
|
277
|
+
|
278
|
+
lastTouchID = nextTouchID++;
|
279
|
+
$.data( target, touchTargetPropertyName, lastTouchID );
|
280
|
+
|
281
|
+
clearResetTimer();
|
282
|
+
|
283
|
+
disableMouseBindings();
|
284
|
+
didScroll = false;
|
285
|
+
|
286
|
+
var t = getNativeEvent( event ).touches[ 0 ];
|
287
|
+
startX = t.pageX;
|
288
|
+
startY = t.pageY;
|
289
|
+
|
290
|
+
triggerVirtualEvent( "vmouseover", event, flags );
|
291
|
+
triggerVirtualEvent( "vmousedown", event, flags );
|
292
|
+
}
|
293
|
+
}
|
294
|
+
}
|
295
|
+
|
296
|
+
function handleScroll( event ) {
|
297
|
+
if ( blockTouchTriggers ) {
|
298
|
+
return;
|
299
|
+
}
|
300
|
+
|
301
|
+
if ( !didScroll ) {
|
302
|
+
triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
|
303
|
+
}
|
304
|
+
|
305
|
+
didScroll = true;
|
306
|
+
startResetTimer();
|
307
|
+
}
|
308
|
+
|
309
|
+
function handleTouchMove( event ) {
|
310
|
+
if ( blockTouchTriggers ) {
|
311
|
+
return;
|
312
|
+
}
|
313
|
+
|
314
|
+
var t = getNativeEvent( event ).touches[ 0 ],
|
315
|
+
didCancel = didScroll,
|
316
|
+
moveThreshold = $.vmouse.moveDistanceThreshold,
|
317
|
+
flags = getVirtualBindingFlags( event.target );
|
318
|
+
|
319
|
+
didScroll = didScroll ||
|
320
|
+
( Math.abs( t.pageX - startX ) > moveThreshold ||
|
321
|
+
Math.abs( t.pageY - startY ) > moveThreshold );
|
322
|
+
|
323
|
+
|
324
|
+
if ( didScroll && !didCancel ) {
|
325
|
+
triggerVirtualEvent( "vmousecancel", event, flags );
|
326
|
+
}
|
327
|
+
|
328
|
+
triggerVirtualEvent( "vmousemove", event, flags );
|
329
|
+
startResetTimer();
|
330
|
+
}
|
331
|
+
|
332
|
+
function handleTouchEnd( event ) {
|
333
|
+
if ( blockTouchTriggers ) {
|
334
|
+
return;
|
335
|
+
}
|
336
|
+
|
337
|
+
disableTouchBindings();
|
338
|
+
|
339
|
+
var flags = getVirtualBindingFlags( event.target ),
|
340
|
+
t;
|
341
|
+
triggerVirtualEvent( "vmouseup", event, flags );
|
342
|
+
|
343
|
+
if ( !didScroll ) {
|
344
|
+
var ve = triggerVirtualEvent( "vclick", event, flags );
|
345
|
+
if ( ve && ve.isDefaultPrevented() ) {
|
346
|
+
// The target of the mouse events that follow the touchend
|
347
|
+
// event don't necessarily match the target used during the
|
348
|
+
// touch. This means we need to rely on coordinates for blocking
|
349
|
+
// any click that is generated.
|
350
|
+
t = getNativeEvent( event ).changedTouches[ 0 ];
|
351
|
+
clickBlockList.push({
|
352
|
+
touchID: lastTouchID,
|
353
|
+
x: t.clientX,
|
354
|
+
y: t.clientY
|
355
|
+
});
|
356
|
+
|
357
|
+
// Prevent any mouse events that follow from triggering
|
358
|
+
// virtual event notifications.
|
359
|
+
blockMouseTriggers = true;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
triggerVirtualEvent( "vmouseout", event, flags);
|
363
|
+
didScroll = false;
|
364
|
+
|
365
|
+
startResetTimer();
|
366
|
+
}
|
367
|
+
|
368
|
+
function hasVirtualBindings( ele ) {
|
369
|
+
var bindings = $.data( ele, dataPropertyName ),
|
370
|
+
k;
|
371
|
+
|
372
|
+
if ( bindings ) {
|
373
|
+
for ( k in bindings ) {
|
374
|
+
if ( bindings[ k ] ) {
|
375
|
+
return true;
|
376
|
+
}
|
377
|
+
}
|
378
|
+
}
|
379
|
+
return false;
|
380
|
+
}
|
381
|
+
|
382
|
+
function dummyMouseHandler() {}
|
383
|
+
|
384
|
+
function getSpecialEventObject( eventType ) {
|
385
|
+
var realType = eventType.substr( 1 );
|
386
|
+
|
387
|
+
return {
|
388
|
+
setup: function( data, namespace ) {
|
389
|
+
// If this is the first virtual mouse binding for this element,
|
390
|
+
// add a bindings object to its data.
|
391
|
+
|
392
|
+
if ( !hasVirtualBindings( this ) ) {
|
393
|
+
$.data( this, dataPropertyName, {} );
|
394
|
+
}
|
395
|
+
|
396
|
+
// If setup is called, we know it is the first binding for this
|
397
|
+
// eventType, so initialize the count for the eventType to zero.
|
398
|
+
var bindings = $.data( this, dataPropertyName );
|
399
|
+
bindings[ eventType ] = true;
|
400
|
+
|
401
|
+
// If this is the first virtual mouse event for this type,
|
402
|
+
// register a global handler on the document.
|
403
|
+
|
404
|
+
activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
|
405
|
+
|
406
|
+
if ( activeDocHandlers[ eventType ] === 1 ) {
|
407
|
+
$document.bind( realType, mouseEventCallback );
|
408
|
+
}
|
409
|
+
|
410
|
+
// Some browsers, like Opera Mini, won't dispatch mouse/click events
|
411
|
+
// for elements unless they actually have handlers registered on them.
|
412
|
+
// To get around this, we register dummy handlers on the elements.
|
413
|
+
|
414
|
+
$( this ).bind( realType, dummyMouseHandler );
|
415
|
+
|
416
|
+
// For now, if event capture is not supported, we rely on mouse handlers.
|
417
|
+
if ( eventCaptureSupported ) {
|
418
|
+
// If this is the first virtual mouse binding for the document,
|
419
|
+
// register our touchstart handler on the document.
|
420
|
+
|
421
|
+
activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
|
422
|
+
|
423
|
+
if ( activeDocHandlers[ "touchstart" ] === 1 ) {
|
424
|
+
$document.bind( "touchstart", handleTouchStart )
|
425
|
+
.bind( "touchend", handleTouchEnd )
|
426
|
+
|
427
|
+
// On touch platforms, touching the screen and then dragging your finger
|
428
|
+
// causes the window content to scroll after some distance threshold is
|
429
|
+
// exceeded. On these platforms, a scroll prevents a click event from being
|
430
|
+
// dispatched, and on some platforms, even the touchend is suppressed. To
|
431
|
+
// mimic the suppression of the click event, we need to watch for a scroll
|
432
|
+
// event. Unfortunately, some platforms like iOS don't dispatch scroll
|
433
|
+
// events until *AFTER* the user lifts their finger (touchend). This means
|
434
|
+
// we need to watch both scroll and touchmove events to figure out whether
|
435
|
+
// or not a scroll happenens before the touchend event is fired.
|
436
|
+
|
437
|
+
.bind( "touchmove", handleTouchMove )
|
438
|
+
.bind( "scroll", handleScroll );
|
439
|
+
}
|
440
|
+
}
|
441
|
+
},
|
442
|
+
|
443
|
+
teardown: function( data, namespace ) {
|
444
|
+
// If this is the last virtual binding for this eventType,
|
445
|
+
// remove its global handler from the document.
|
446
|
+
|
447
|
+
--activeDocHandlers[ eventType ];
|
448
|
+
|
449
|
+
if ( !activeDocHandlers[ eventType ] ) {
|
450
|
+
$document.unbind( realType, mouseEventCallback );
|
451
|
+
}
|
452
|
+
|
453
|
+
if ( eventCaptureSupported ) {
|
454
|
+
// If this is the last virtual mouse binding in existence,
|
455
|
+
// remove our document touchstart listener.
|
456
|
+
|
457
|
+
--activeDocHandlers[ "touchstart" ];
|
458
|
+
|
459
|
+
if ( !activeDocHandlers[ "touchstart" ] ) {
|
460
|
+
$document.unbind( "touchstart", handleTouchStart )
|
461
|
+
.unbind( "touchmove", handleTouchMove )
|
462
|
+
.unbind( "touchend", handleTouchEnd )
|
463
|
+
.unbind( "scroll", handleScroll );
|
464
|
+
}
|
465
|
+
}
|
466
|
+
|
467
|
+
var $this = $( this ),
|
468
|
+
bindings = $.data( this, dataPropertyName );
|
469
|
+
|
470
|
+
// teardown may be called when an element was
|
471
|
+
// removed from the DOM. If this is the case,
|
472
|
+
// jQuery core may have already stripped the element
|
473
|
+
// of any data bindings so we need to check it before
|
474
|
+
// using it.
|
475
|
+
if ( bindings ) {
|
476
|
+
bindings[ eventType ] = false;
|
477
|
+
}
|
478
|
+
|
479
|
+
// Unregister the dummy event handler.
|
480
|
+
|
481
|
+
$this.unbind( realType, dummyMouseHandler );
|
482
|
+
|
483
|
+
// If this is the last virtual mouse binding on the
|
484
|
+
// element, remove the binding data from the element.
|
485
|
+
|
486
|
+
if ( !hasVirtualBindings( this ) ) {
|
487
|
+
$this.removeData( dataPropertyName );
|
488
|
+
}
|
489
|
+
}
|
490
|
+
};
|
491
|
+
}
|
492
|
+
|
493
|
+
// Expose our custom events to the jQuery bind/unbind mechanism.
|
494
|
+
|
495
|
+
for ( var i = 0; i < virtualEventNames.length; i++ ) {
|
496
|
+
$.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
|
497
|
+
}
|
498
|
+
|
499
|
+
// Add a capture click handler to block clicks.
|
500
|
+
// Note that we require event capture support for this so if the device
|
501
|
+
// doesn't support it, we punt for now and rely solely on mouse events.
|
502
|
+
if ( eventCaptureSupported ) {
|
503
|
+
document.addEventListener( "click", function( e ) {
|
504
|
+
var cnt = clickBlockList.length,
|
505
|
+
target = e.target,
|
506
|
+
x, y, ele, i, o, touchID;
|
507
|
+
|
508
|
+
if ( cnt ) {
|
509
|
+
x = e.clientX;
|
510
|
+
y = e.clientY;
|
511
|
+
threshold = $.vmouse.clickDistanceThreshold;
|
512
|
+
|
513
|
+
// The idea here is to run through the clickBlockList to see if
|
514
|
+
// the current click event is in the proximity of one of our
|
515
|
+
// vclick events that had preventDefault() called on it. If we find
|
516
|
+
// one, then we block the click.
|
517
|
+
//
|
518
|
+
// Why do we have to rely on proximity?
|
519
|
+
//
|
520
|
+
// Because the target of the touch event that triggered the vclick
|
521
|
+
// can be different from the target of the click event synthesized
|
522
|
+
// by the browser. The target of a mouse/click event that is syntehsized
|
523
|
+
// from a touch event seems to be implementation specific. For example,
|
524
|
+
// some browsers will fire mouse/click events for a link that is near
|
525
|
+
// a touch event, even though the target of the touchstart/touchend event
|
526
|
+
// says the user touched outside the link. Also, it seems that with most
|
527
|
+
// browsers, the target of the mouse/click event is not calculated until the
|
528
|
+
// time it is dispatched, so if you replace an element that you touched
|
529
|
+
// with another element, the target of the mouse/click will be the new
|
530
|
+
// element underneath that point.
|
531
|
+
//
|
532
|
+
// Aside from proximity, we also check to see if the target and any
|
533
|
+
// of its ancestors were the ones that blocked a click. This is necessary
|
534
|
+
// because of the strange mouse/click target calculation done in the
|
535
|
+
// Android 2.1 browser, where if you click on an element, and there is a
|
536
|
+
// mouse/click handler on one of its ancestors, the target will be the
|
537
|
+
// innermost child of the touched element, even if that child is no where
|
538
|
+
// near the point of touch.
|
539
|
+
|
540
|
+
ele = target;
|
541
|
+
|
542
|
+
while ( ele ) {
|
543
|
+
for ( i = 0; i < cnt; i++ ) {
|
544
|
+
o = clickBlockList[ i ];
|
545
|
+
touchID = 0;
|
546
|
+
|
547
|
+
if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
|
548
|
+
$.data( ele, touchTargetPropertyName ) === o.touchID ) {
|
549
|
+
// XXX: We may want to consider removing matches from the block list
|
550
|
+
// instead of waiting for the reset timer to fire.
|
551
|
+
e.preventDefault();
|
552
|
+
e.stopPropagation();
|
553
|
+
return;
|
554
|
+
}
|
555
|
+
}
|
556
|
+
ele = ele.parentNode;
|
557
|
+
}
|
558
|
+
}
|
559
|
+
}, true);
|
560
|
+
}
|
561
|
+
})( jQuery, window, document );
|
562
|
+
|
563
|
+
(function( $ ) {
|
564
|
+
$.mobile = {};
|
565
|
+
}( jQuery ));
|
566
|
+
(function( $, undefined ) {
|
567
|
+
var support = {
|
568
|
+
touch: "ontouchend" in document
|
569
|
+
};
|
570
|
+
|
571
|
+
$.mobile.support = $.mobile.support || {};
|
572
|
+
$.extend( $.support, support );
|
573
|
+
$.extend( $.mobile.support, support );
|
574
|
+
}( jQuery ));
|
575
|
+
|
576
|
+
|
577
|
+
(function( $, window, undefined ) {
|
578
|
+
var $document = $( document );
|
579
|
+
|
580
|
+
// add new event shortcuts
|
581
|
+
$.each( ( "touchstart touchmove touchend " +
|
582
|
+
"tap taphold " +
|
583
|
+
"swipe swipeleft swiperight " +
|
584
|
+
"scrollstart scrollstop" ).split( " " ), function( i, name ) {
|
585
|
+
|
586
|
+
$.fn[ name ] = function( fn ) {
|
587
|
+
return fn ? this.bind( name, fn ) : this.trigger( name );
|
588
|
+
};
|
589
|
+
|
590
|
+
// jQuery < 1.8
|
591
|
+
if ( $.attrFn ) {
|
592
|
+
$.attrFn[ name ] = true;
|
593
|
+
}
|
594
|
+
});
|
595
|
+
|
596
|
+
var supportTouch = $.mobile.support.touch,
|
597
|
+
scrollEvent = "touchmove scroll",
|
598
|
+
touchStartEvent = supportTouch ? "touchstart" : "mousedown",
|
599
|
+
touchStopEvent = supportTouch ? "touchend" : "mouseup",
|
600
|
+
touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
|
601
|
+
|
602
|
+
function triggerCustomEvent( obj, eventType, event ) {
|
603
|
+
var originalType = event.type;
|
604
|
+
event.type = eventType;
|
605
|
+
$.event.dispatch.call( obj, event );
|
606
|
+
event.type = originalType;
|
607
|
+
}
|
608
|
+
|
609
|
+
// also handles scrollstop
|
610
|
+
$.event.special.scrollstart = {
|
611
|
+
|
612
|
+
enabled: true,
|
613
|
+
|
614
|
+
setup: function() {
|
615
|
+
|
616
|
+
var thisObject = this,
|
617
|
+
$this = $( thisObject ),
|
618
|
+
scrolling,
|
619
|
+
timer;
|
620
|
+
|
621
|
+
function trigger( event, state ) {
|
622
|
+
scrolling = state;
|
623
|
+
triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
|
624
|
+
}
|
625
|
+
|
626
|
+
// iPhone triggers scroll after a small delay; use touchmove instead
|
627
|
+
$this.bind( scrollEvent, function( event ) {
|
628
|
+
|
629
|
+
if ( !$.event.special.scrollstart.enabled ) {
|
630
|
+
return;
|
631
|
+
}
|
632
|
+
|
633
|
+
if ( !scrolling ) {
|
634
|
+
trigger( event, true );
|
635
|
+
}
|
636
|
+
|
637
|
+
clearTimeout( timer );
|
638
|
+
timer = setTimeout( function() {
|
639
|
+
trigger( event, false );
|
640
|
+
}, 50 );
|
641
|
+
});
|
642
|
+
}
|
643
|
+
};
|
644
|
+
|
645
|
+
// also handles taphold
|
646
|
+
$.event.special.tap = {
|
647
|
+
tapholdThreshold: 750,
|
648
|
+
|
649
|
+
setup: function() {
|
650
|
+
var thisObject = this,
|
651
|
+
$this = $( thisObject );
|
652
|
+
|
653
|
+
$this.bind( "vmousedown", function( event ) {
|
654
|
+
|
655
|
+
if ( event.which && event.which !== 1 ) {
|
656
|
+
return false;
|
657
|
+
}
|
658
|
+
|
659
|
+
var origTarget = event.target,
|
660
|
+
origEvent = event.originalEvent,
|
661
|
+
timer;
|
662
|
+
|
663
|
+
function clearTapTimer() {
|
664
|
+
clearTimeout( timer );
|
665
|
+
}
|
666
|
+
|
667
|
+
function clearTapHandlers() {
|
668
|
+
clearTapTimer();
|
669
|
+
|
670
|
+
$this.unbind( "vclick", clickHandler )
|
671
|
+
.unbind( "vmouseup", clearTapTimer );
|
672
|
+
$document.unbind( "vmousecancel", clearTapHandlers );
|
673
|
+
}
|
674
|
+
|
675
|
+
function clickHandler( event ) {
|
676
|
+
clearTapHandlers();
|
677
|
+
|
678
|
+
// ONLY trigger a 'tap' event if the start target is
|
679
|
+
// the same as the stop target.
|
680
|
+
if ( origTarget === event.target ) {
|
681
|
+
triggerCustomEvent( thisObject, "tap", event );
|
682
|
+
}
|
683
|
+
}
|
684
|
+
|
685
|
+
$this.bind( "vmouseup", clearTapTimer )
|
686
|
+
.bind( "vclick", clickHandler );
|
687
|
+
$document.bind( "vmousecancel", clearTapHandlers );
|
688
|
+
|
689
|
+
timer = setTimeout( function() {
|
690
|
+
triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );
|
691
|
+
}, $.event.special.tap.tapholdThreshold );
|
692
|
+
});
|
693
|
+
}
|
694
|
+
};
|
695
|
+
|
696
|
+
// also handles swipeleft, swiperight
|
697
|
+
$.event.special.swipe = {
|
698
|
+
scrollSupressionThreshold: 30, // More than this horizontal displacement, and we will suppress scrolling.
|
699
|
+
|
700
|
+
durationThreshold: 1000, // More time than this, and it isn't a swipe.
|
701
|
+
|
702
|
+
horizontalDistanceThreshold: 30, // Swipe horizontal displacement must be more than this.
|
703
|
+
|
704
|
+
verticalDistanceThreshold: 75, // Swipe vertical displacement must be less than this.
|
705
|
+
|
706
|
+
start: function( event ) {
|
707
|
+
var data = event.originalEvent.touches ?
|
708
|
+
event.originalEvent.touches[ 0 ] : event;
|
709
|
+
return {
|
710
|
+
time: ( new Date() ).getTime(),
|
711
|
+
coords: [ data.pageX, data.pageY ],
|
712
|
+
origin: $( event.target )
|
713
|
+
};
|
714
|
+
},
|
715
|
+
|
716
|
+
stop: function( event ) {
|
717
|
+
var data = event.originalEvent.touches ?
|
718
|
+
event.originalEvent.touches[ 0 ] : event;
|
719
|
+
return {
|
720
|
+
time: ( new Date() ).getTime(),
|
721
|
+
coords: [ data.pageX, data.pageY ]
|
722
|
+
};
|
723
|
+
},
|
724
|
+
|
725
|
+
handleSwipe: function( start, stop ) {
|
726
|
+
if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
|
727
|
+
Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
|
728
|
+
Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
|
729
|
+
|
730
|
+
start.origin.trigger( "swipe" )
|
731
|
+
.trigger( start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight" );
|
732
|
+
}
|
733
|
+
},
|
734
|
+
|
735
|
+
setup: function() {
|
736
|
+
var thisObject = this,
|
737
|
+
$this = $( thisObject );
|
738
|
+
|
739
|
+
$this.bind( touchStartEvent, function( event ) {
|
740
|
+
var start = $.event.special.swipe.start( event ),
|
741
|
+
stop;
|
742
|
+
|
743
|
+
function moveHandler( event ) {
|
744
|
+
if ( !start ) {
|
745
|
+
return;
|
746
|
+
}
|
747
|
+
|
748
|
+
stop = $.event.special.swipe.stop( event );
|
749
|
+
|
750
|
+
// prevent scrolling
|
751
|
+
if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
|
752
|
+
event.preventDefault();
|
753
|
+
}
|
754
|
+
}
|
755
|
+
|
756
|
+
$this.bind( touchMoveEvent, moveHandler )
|
757
|
+
.one( touchStopEvent, function() {
|
758
|
+
$this.unbind( touchMoveEvent, moveHandler );
|
759
|
+
|
760
|
+
if ( start && stop ) {
|
761
|
+
$.event.special.swipe.handleSwipe( start, stop );
|
762
|
+
}
|
763
|
+
start = stop = undefined;
|
764
|
+
});
|
765
|
+
});
|
766
|
+
}
|
767
|
+
};
|
768
|
+
$.each({
|
769
|
+
scrollstop: "scrollstart",
|
770
|
+
taphold: "tap",
|
771
|
+
swipeleft: "swipe",
|
772
|
+
swiperight: "swipe"
|
773
|
+
}, function( event, sourceEvent ) {
|
774
|
+
|
775
|
+
$.event.special[ event ] = {
|
776
|
+
setup: function() {
|
777
|
+
$( this ).bind( sourceEvent, $.noop );
|
778
|
+
}
|
779
|
+
};
|
780
|
+
});
|
781
|
+
|
782
|
+
})( jQuery, this );
|
783
|
+
|
784
|
+
}));
|