@macallumharvey/first-test-wet 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/first-test-wet.cjs.development.js.map +1 -1
- package/dist/first-test-wet.cjs.production.min.js.map +1 -1
- package/dist/first-test-wet.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/WetModal.tsx +1 -0
- package/src/theme-wet-boew/assets/favicon-mobile.png +0 -0
- package/src/theme-wet-boew/assets/favicon.ico +0 -0
- package/src/theme-wet-boew/assets/logo.png +0 -0
- package/src/theme-wet-boew/assets/logo.svg +14 -0
- package/src/theme-wet-boew/css/ie8-theme.css +17370 -0
- package/src/theme-wet-boew/css/ie8-theme.min.css +193 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.js → theme-wet-boew/css/ie8-wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js → theme-wet-boew/css/ie8-wet-boew.min.css} +7 -7
- package/src/theme-wet-boew/css/theme.css +11357 -0
- package/src/theme-wet-boew/css/theme.min.css +6 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.js → theme-wet-boew/css/wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js → theme-wet-boew/css/wet-boew.min.css} +6 -7
- package/src/theme-wet-boew/payload.json +66 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/mediacontrols.html +32 -33
- package/src/wet-boew/assets/sprites_share.png +0 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.css +112 -112
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.min.css +5 -5
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.css +32 -32
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.css +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.css +28 -28
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.css +16 -16
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.css +24 -24
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.css +8 -8
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.css +229 -229
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/additional-methods.js +1511 -1511
- package/src/wet-boew/js/deps/additional-methods.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/geomap-lib.js +3758 -3770
- package/src/wet-boew/js/deps/geomap-lib.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.dataTables.js +15345 -15733
- package/src/wet-boew/js/deps/jquery.dataTables.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.canvas.js +345 -345
- package/src/wet-boew/js/deps/jquery.flot.canvas.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.js +3168 -3168
- package/src/wet-boew/js/deps/jquery.flot.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.orderBars.js +282 -282
- package/src/wet-boew/js/deps/jquery.flot.orderBars.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.pie.js +820 -820
- package/src/wet-boew/js/deps/jquery.flot.pie.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.magnific-popup.js +2060 -2060
- package/src/wet-boew/js/deps/jquery.magnific-popup.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.validate.js +1660 -1660
- package/src/wet-boew/js/deps/jquery.validate.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/json-patch.js +314 -314
- package/src/wet-boew/js/deps/json-patch.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jsonpointer.js +349 -349
- package/src/wet-boew/js/deps/jsonpointer.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.js +53 -53
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.js +64 -64
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.js +160 -160
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.js +92 -92
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.js +94 -94
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.js +102 -102
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.js +95 -95
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.js +183 -183
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.min.js +1 -1
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.js +57 -57
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.js +140 -140
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.js +37 -37
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.js +81 -81
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.js +56 -56
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.js +51 -51
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.js +55 -55
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.js +71 -71
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.js +45 -45
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/ol.js +1008 -1008
- package/src/wet-boew/js/deps/ol.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/prettify.js +1742 -1742
- package/src/wet-boew/js/deps/prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/proj4.js +2 -2
- package/src/wet-boew/js/deps/proj4.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/run_prettify.js +1998 -1998
- package/src/wet-boew/js/deps/run_prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/tableparser.js +2216 -2216
- package/src/wet-boew/js/deps/tableparser.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/unorm.js +452 -452
- package/src/wet-boew/js/deps/unorm.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/af.js +246 -254
- package/src/wet-boew/js/i18n/af.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ar.js +284 -292
- package/src/wet-boew/js/i18n/ar.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/bg.js +284 -292
- package/src/wet-boew/js/i18n/bg.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/cs.js +285 -293
- package/src/wet-boew/js/i18n/cs.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/de.js +354 -362
- package/src/wet-boew/js/i18n/de.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/el.js +284 -292
- package/src/wet-boew/js/i18n/el.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/en.js +246 -254
- package/src/wet-boew/js/i18n/en.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/es.js +287 -295
- package/src/wet-boew/js/i18n/es.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/et.js +282 -290
- package/src/wet-boew/js/i18n/et.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/fr.js +313 -321
- package/src/wet-boew/js/i18n/fr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hi.js +246 -254
- package/src/wet-boew/js/i18n/hi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hu.js +284 -292
- package/src/wet-boew/js/i18n/hu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hy.js +246 -254
- package/src/wet-boew/js/i18n/hy.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/id.js +283 -291
- package/src/wet-boew/js/i18n/id.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/is.js +282 -290
- package/src/wet-boew/js/i18n/is.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/it.js +311 -319
- package/src/wet-boew/js/i18n/it.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/iu.js +246 -254
- package/src/wet-boew/js/i18n/iu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ja.js +285 -293
- package/src/wet-boew/js/i18n/ja.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ko.js +284 -292
- package/src/wet-boew/js/i18n/ko.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lt.js +284 -292
- package/src/wet-boew/js/i18n/lt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lv.js +284 -292
- package/src/wet-boew/js/i18n/lv.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/nl.js +318 -326
- package/src/wet-boew/js/i18n/nl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pl.js +287 -295
- package/src/wet-boew/js/i18n/pl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt-BR.js +246 -254
- package/src/wet-boew/js/i18n/pt-BR.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt.js +270 -278
- package/src/wet-boew/js/i18n/pt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ru.js +284 -292
- package/src/wet-boew/js/i18n/ru.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sk.js +282 -290
- package/src/wet-boew/js/i18n/sk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sq.js +246 -254
- package/src/wet-boew/js/i18n/sq.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/th.js +284 -292
- package/src/wet-boew/js/i18n/th.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/tr.js +286 -294
- package/src/wet-boew/js/i18n/tr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/uk.js +284 -292
- package/src/wet-boew/js/i18n/uk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/vi.js +284 -292
- package/src/wet-boew/js/i18n/vi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh-Hans.js +246 -254
- package/src/wet-boew/js/i18n/zh-Hans.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh.js +285 -293
- package/src/wet-boew/js/i18n/zh.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew.js +3992 -0
- package/src/wet-boew/js/ie8-wet-boew.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew2.js +15294 -0
- package/src/wet-boew/js/ie8-wet-boew2.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.js +9814 -9814
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.js +4 -4
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist.js +423 -419
- package/src/wet-boew/js/polyfills/datalist.min.js +8 -0
- package/src/wet-boew/js/polyfills/datalist.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.min.js +7 -7
- package/src/wet-boew/js/polyfills/datalist_dynamic.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datepicker.js +338 -338
- package/src/wet-boew/js/polyfills/datepicker.min.js +8 -0
- package/src/wet-boew/js/polyfills/datepicker.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/details.js +126 -126
- package/src/wet-boew/js/polyfills/details.min.js +8 -0
- package/src/wet-boew/js/polyfills/details.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.js +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.min.js +15 -15
- package/src/wet-boew/js/polyfills/jawsariafixes.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/meter.js +140 -140
- package/src/wet-boew/js/polyfills/meter.min.js +8 -0
- package/src/wet-boew/js/polyfills/meter.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/mobile.js +783 -784
- package/src/wet-boew/js/polyfills/mobile.min.js +8 -0
- package/src/wet-boew/js/polyfills/mobile.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/progress.js +107 -107
- package/src/wet-boew/js/polyfills/progress.min.js +8 -0
- package/src/wet-boew/js/polyfills/progress.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider.js +1343 -1343
- package/src/wet-boew/js/polyfills/slider.min.js +9 -0
- package/src/wet-boew/js/polyfills/slider.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.js +73 -73
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.min.js +7 -7
- package/src/wet-boew/js/polyfills/slider_wrapper.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.js +29 -29
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.min.js +7 -7
- package/src/wet-boew/js/polyfills/svg.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.js +603 -603
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.min.js +7 -7
- package/src/wet-boew/js/polyfills/test.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/wet-boew.js +17714 -20264
- package/src/wet-boew/js/wet-boew.min.js +9 -0
- package/src/wet-boew/js/wet-boew.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/payload.json +1721 -1721
- package/src/wet-boew-cdn-4.0.81.1/Licence-fr.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/License-en.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/assets/sprites_share.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/package.json +0 -15
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/cloud-popup-relative.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/fd-slider-sprite.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/loading.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-minus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-plus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-world-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.eot +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.ttf +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff2 +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/mml-chtml.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.map +0 -0
@@ -1,338 +1,338 @@
|
|
1
|
-
/**
|
2
|
-
* @title WET-BOEW Datepicker
|
3
|
-
* @overview Polyfills for the HTML5 input type="date" in browsers without built in calendar style date pickers.
|
4
|
-
* @license wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
|
5
|
-
* @author @pjackson28
|
6
|
-
*/
|
7
|
-
|
8
|
-
( function( $, window, document, wb ) {
|
9
|
-
"use strict";
|
10
|
-
|
11
|
-
/*
|
12
|
-
* Variable and function definitions.
|
13
|
-
* These are global to the polyfill - meaning that they will be initialized once per page.
|
14
|
-
*/
|
15
|
-
var componentName = "wb-date",
|
16
|
-
selector = "input[type=date]",
|
17
|
-
initEvent = "wb-init." + componentName,
|
18
|
-
setFocusEvent = "setfocus.wb",
|
19
|
-
containerName = "wb-picker",
|
20
|
-
toggleSuffix = "-picker-toggle",
|
21
|
-
today = new Date(),
|
22
|
-
$document = wb.doc,
|
23
|
-
fromDateISO = wb.date.fromDateISO,
|
24
|
-
defaults = {
|
25
|
-
minDate: new Date( 1800, 0, 1 ),
|
26
|
-
maxDate: new Date( 2100, 0, 1 ),
|
27
|
-
year: today.getFullYear(),
|
28
|
-
month: today.getMonth(),
|
29
|
-
daysCallback: function( year, month, $days, range ) {
|
30
|
-
var $inRange = $days,
|
31
|
-
selectedDate = this.date,
|
32
|
-
linkFocus;
|
33
|
-
|
34
|
-
if ( range ) {
|
35
|
-
if ( range.max ) {
|
36
|
-
$inRange = $inRange.filter( ":lt(" + ( range.max + 1 ) + ")" );
|
37
|
-
}
|
38
|
-
|
39
|
-
if ( range.min ) {
|
40
|
-
$inRange = $inRange.filter( ":gt(" + ( range.min - 1 ) + ")" );
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
$inRange.wrap( "<a href='javascript:;' tabindex='-1'></a>" );
|
45
|
-
|
46
|
-
if ( selectedDate && year === selectedDate.getFullYear() && month === selectedDate.getMonth() ) {
|
47
|
-
linkFocus = $days.eq( selectedDate.getDate() - 1 );
|
48
|
-
|
49
|
-
linkFocus.parent().attr( "aria-selected", true );
|
50
|
-
} else if ( year === today.getFullYear() && month === today.getMonth() ) {
|
51
|
-
linkFocus = $days.eq( today.getDate() - 1 );
|
52
|
-
} else {
|
53
|
-
linkFocus = $inRange.eq( 0 );
|
54
|
-
}
|
55
|
-
|
56
|
-
linkFocus.parent().removeAttr( "tabindex" );
|
57
|
-
}
|
58
|
-
},
|
59
|
-
i18n, i18nText, $container, calendar, focusOutTimer,
|
60
|
-
|
61
|
-
/**
|
62
|
-
* @method init
|
63
|
-
* @param {jQuery Event} event Event that triggered the function call
|
64
|
-
*/
|
65
|
-
init = function( event ) {
|
66
|
-
|
67
|
-
// Start initialization
|
68
|
-
// returns DOM object = proceed with init
|
69
|
-
// returns undefined = do not proceed with init (e.g., already initialized)
|
70
|
-
var elm = wb.init( event, componentName, selector ),
|
71
|
-
state = {},
|
72
|
-
elmId, space, settings, minDate, maxDate, initDate;
|
73
|
-
|
74
|
-
if ( elm ) {
|
75
|
-
elmId = elm.id;
|
76
|
-
|
77
|
-
if ( elm.className.indexOf( "picker-field" ) !== -1 ) {
|
78
|
-
return;
|
79
|
-
}
|
80
|
-
|
81
|
-
// Only initialize the i18nText once
|
82
|
-
if ( !i18nText ) {
|
83
|
-
i18n = wb.i18n;
|
84
|
-
space = i18n( "space" ).replace( " ", " " ).replace( "²", "" );
|
85
|
-
i18nText = {
|
86
|
-
show: i18n( "date-show" ).replace( "\\'", "'" ) + space,
|
87
|
-
hide: i18n( "date-hide" ).replace( "\\'", "'" ) + space +
|
88
|
-
space + i18n( "esc-key" ).replace( "\\'", "'" ),
|
89
|
-
selected: i18n( "date-sel" ).replace( "\\'", "'" )
|
90
|
-
};
|
91
|
-
}
|
92
|
-
|
93
|
-
elm.className += " picker-field";
|
94
|
-
|
95
|
-
//Build the calendar state
|
96
|
-
settings = {
|
97
|
-
field: this,
|
98
|
-
$field: $( this ),
|
99
|
-
labelText: $( "label[for=" + wb.jqEscape( elm.id ) + "]" )
|
100
|
-
.clone()
|
101
|
-
.find( ".datepicker-format, .error" )
|
102
|
-
.remove()
|
103
|
-
.end()
|
104
|
-
.text()
|
105
|
-
};
|
106
|
-
|
107
|
-
minDate = fromDateISO( elm.getAttribute( "min" ) );
|
108
|
-
maxDate = fromDateISO( elm.getAttribute( "max" ) );
|
109
|
-
|
110
|
-
if ( minDate ) {
|
111
|
-
settings.minDate = minDate;
|
112
|
-
}
|
113
|
-
|
114
|
-
if ( maxDate ) {
|
115
|
-
settings.maxDate = maxDate;
|
116
|
-
}
|
117
|
-
|
118
|
-
elm.state = $.extend( state, defaults, settings );
|
119
|
-
|
120
|
-
if ( today >= state.minDate && today <= state.maxDate ) {
|
121
|
-
initDate = today;
|
122
|
-
} else if ( state.minDate > today ) {
|
123
|
-
initDate = state.minDate;
|
124
|
-
} else {
|
125
|
-
initDate = state.maxDate;
|
126
|
-
}
|
127
|
-
|
128
|
-
if ( initDate ) {
|
129
|
-
state.year = initDate.getFullYear();
|
130
|
-
state.month = initDate.getMonth();
|
131
|
-
}
|
132
|
-
|
133
|
-
updateState.call( elm );
|
134
|
-
|
135
|
-
if ( !calendar ) {
|
136
|
-
createCalendar( elm );
|
137
|
-
}
|
138
|
-
|
139
|
-
if ( elmId ) {
|
140
|
-
createToggleIcon( elm );
|
141
|
-
}
|
142
|
-
|
143
|
-
// Identify that initialization has completed
|
144
|
-
wb.ready( $( elm ), componentName );
|
145
|
-
}
|
146
|
-
},
|
147
|
-
|
148
|
-
createCalendar = function( elm ) {
|
149
|
-
var closeText = i18nText.hide;
|
150
|
-
|
151
|
-
$container = $( "<div id='" + containerName + "' class='picker-overlay' role='dialog' tabindex='-1' aria-hidden='true'></div>" );
|
152
|
-
|
153
|
-
// Disable the tabbing of all the links when calendar is hidden
|
154
|
-
$container.find( "a" ).attr( "tabindex", "-1" );
|
155
|
-
|
156
|
-
$( "main" ).after( $container );
|
157
|
-
|
158
|
-
calendar = wb.calendar.create( $container, elm.state );
|
159
|
-
|
160
|
-
// Close button
|
161
|
-
$( "<button type='button' class='picker-close mfp-close overlay-close' title=\"" +
|
162
|
-
closeText + "\">×<span class='wb-inv'> " + closeText + "</span></button>" )
|
163
|
-
.appendTo( $container );
|
164
|
-
},
|
165
|
-
|
166
|
-
createToggleIcon = function( elm ) {
|
167
|
-
var fieldId = elm.id,
|
168
|
-
fieldLabelText = elm.state.labelText,
|
169
|
-
showFieldLabelText = i18nText.show + fieldLabelText,
|
170
|
-
objToggle = "<span class='input-group-btn'><a href='javascript:;' button id='" + fieldId + "-picker-toggle' class='btn btn-default picker-toggle' href='javascript:;' title=\"" +
|
171
|
-
showFieldLabelText + "\"><span class='glyphicon glyphicon-calendar'></span><span class='wb-inv'>" +
|
172
|
-
showFieldLabelText + "</span></a></span>";
|
173
|
-
|
174
|
-
$( "#" + wb.jqEscape( fieldId ) )
|
175
|
-
.wrap( "<span class='wb-date-wrap input-group'></span>" )
|
176
|
-
.after( objToggle );
|
177
|
-
$container.slideUp( 0 );
|
178
|
-
},
|
179
|
-
|
180
|
-
updateState = function() {
|
181
|
-
var state = this.state,
|
182
|
-
minDate = fromDateISO( this.getAttribute( "min" ) ) || state.minDate,
|
183
|
-
maxDate = fromDateISO( this.getAttribute( "max" ) ) || state.maxDate,
|
184
|
-
date = fromDateISO( this.value );
|
185
|
-
|
186
|
-
this.state.minDate = minDate;
|
187
|
-
this.state.maxDate = maxDate;
|
188
|
-
|
189
|
-
if ( date && date >= minDate && date <= maxDate ) {
|
190
|
-
state.date = date;
|
191
|
-
state.year = date.getFullYear();
|
192
|
-
state.month = date.getMonth();
|
193
|
-
} else {
|
194
|
-
state.date = null;
|
195
|
-
}
|
196
|
-
},
|
197
|
-
|
198
|
-
toggle = function( field ) {
|
199
|
-
if ( $container.attr( "aria-hidden" ) !== "false" ) {
|
200
|
-
show( field );
|
201
|
-
} else {
|
202
|
-
hide();
|
203
|
-
}
|
204
|
-
},
|
205
|
-
|
206
|
-
hide = function() {
|
207
|
-
var field = calendar.field,
|
208
|
-
$field = calendar.$field,
|
209
|
-
labelText = i18nText.show + calendar.labelText;
|
210
|
-
|
211
|
-
$( "#" + wb.jqEscape( field.id + toggleSuffix ) )
|
212
|
-
.attr( "title", labelText.replace( " ", " " ) )
|
213
|
-
.children( ".wb-inv" )
|
214
|
-
.html( labelText );
|
215
|
-
|
216
|
-
$container
|
217
|
-
.removeClass( "open" )
|
218
|
-
.attr( "aria-hidden", "true" );
|
219
|
-
|
220
|
-
$field.trigger( setFocusEvent );
|
221
|
-
},
|
222
|
-
|
223
|
-
show = function( field ) {
|
224
|
-
var fieldId = field.id,
|
225
|
-
closeText = i18nText.hide;
|
226
|
-
|
227
|
-
updateState.call( field );
|
228
|
-
calendar.reInit( field.state );
|
229
|
-
|
230
|
-
position();
|
231
|
-
|
232
|
-
$container
|
233
|
-
.addClass( "open" )
|
234
|
-
.attr( {
|
235
|
-
"aria-controls": fieldId,
|
236
|
-
"aria-labelledby": fieldId + toggleSuffix,
|
237
|
-
"aria-hidden": "false"
|
238
|
-
} )
|
239
|
-
.get( 0 ).focus();
|
240
|
-
|
241
|
-
$( "#" + wb.jqEscape( fieldId + toggleSuffix ) )
|
242
|
-
.attr( "title", closeText )
|
243
|
-
.children( ".wb-inv" )
|
244
|
-
.text( closeText );
|
245
|
-
},
|
246
|
-
|
247
|
-
position = function() {
|
248
|
-
var field = calendar.field,
|
249
|
-
position = calendar.$field.offset();
|
250
|
-
|
251
|
-
$container
|
252
|
-
.attr( "style", "top:" + ( position.top + field.offsetHeight ) + "px;left:" + position.left + "px" );
|
253
|
-
};
|
254
|
-
|
255
|
-
// Bind the init event of the plugin
|
256
|
-
$document.on( "timerpoke.wb " + initEvent, selector, init );
|
257
|
-
|
258
|
-
$document.on( "focusout focusin", "#" + containerName + " .wb-clndr", function( event ) {
|
259
|
-
|
260
|
-
// Hide the calendar when the focus leaves the calendar
|
261
|
-
switch ( event.type ) {
|
262
|
-
case "focusout":
|
263
|
-
focusOutTimer = setTimeout( hide, 10 );
|
264
|
-
break;
|
265
|
-
case "focusin":
|
266
|
-
clearTimeout( focusOutTimer );
|
267
|
-
}
|
268
|
-
} );
|
269
|
-
|
270
|
-
$document.on( "keydown", "#" + containerName, function( event ) {
|
271
|
-
|
272
|
-
// Escape key to close overlay
|
273
|
-
if ( event.which === 27 ) {
|
274
|
-
hide();
|
275
|
-
}
|
276
|
-
|
277
|
-
} );
|
278
|
-
|
279
|
-
$document.on( "click", ".picker-overlay .cal-days a", function( event ) {
|
280
|
-
var which = event.which,
|
281
|
-
field = calendar.field;
|
282
|
-
|
283
|
-
// Ignore middle/right mouse buttons
|
284
|
-
if ( ( !which || which === 1 ) && !field.disabled && !field.readOnly ) {
|
285
|
-
field.value = $( event.currentTarget ).find( "time" ).attr( "datetime" );
|
286
|
-
$( field ).trigger( "change" );
|
287
|
-
|
288
|
-
// Hide the calendar on selection
|
289
|
-
hide();
|
290
|
-
|
291
|
-
return false;
|
292
|
-
}
|
293
|
-
} );
|
294
|
-
|
295
|
-
$document.on( "click", ".picker-toggle", function( event ) {
|
296
|
-
event.preventDefault();
|
297
|
-
|
298
|
-
var which = event.which,
|
299
|
-
pickerId, field;
|
300
|
-
|
301
|
-
// Ignore middle/right mouse buttons
|
302
|
-
if ( ( !which || which === 1 ) ) {
|
303
|
-
pickerId = event.currentTarget.id;
|
304
|
-
field = $( "#" + wb.jqEscape( pickerId.substring( 0, pickerId.indexOf( toggleSuffix ) ) ) ).get( 0 );
|
305
|
-
if ( !field.disabled && !field.readOnly ) {
|
306
|
-
toggle( field );
|
307
|
-
return false;
|
308
|
-
}
|
309
|
-
}
|
310
|
-
} );
|
311
|
-
|
312
|
-
$document.on( "click", ".picker-close", function( event ) {
|
313
|
-
var which = event.which;
|
314
|
-
|
315
|
-
// Ignore middle/right mouse buttons
|
316
|
-
if ( !which || which === 1 ) {
|
317
|
-
|
318
|
-
// Stop propagation of the click event
|
319
|
-
if ( event.stopPropagation ) {
|
320
|
-
event.stopImmediatePropagation();
|
321
|
-
} else {
|
322
|
-
event.cancelBubble = true;
|
323
|
-
}
|
324
|
-
|
325
|
-
hide();
|
326
|
-
}
|
327
|
-
} );
|
328
|
-
|
329
|
-
$document.on( "txt-rsz.wb win-rsz-width.wb win-rsz-height.wb", function() {
|
330
|
-
if ( $container && $container.hasClass( "open" ) ) {
|
331
|
-
position();
|
332
|
-
}
|
333
|
-
} );
|
334
|
-
|
335
|
-
// Add the timer poke to initialize the plugin
|
336
|
-
wb.add( selector );
|
337
|
-
|
338
|
-
} )( jQuery, window, document, wb );
|
1
|
+
/**
|
2
|
+
* @title WET-BOEW Datepicker
|
3
|
+
* @overview Polyfills for the HTML5 input type="date" in browsers without built in calendar style date pickers.
|
4
|
+
* @license wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
|
5
|
+
* @author @pjackson28
|
6
|
+
*/
|
7
|
+
|
8
|
+
( function( $, window, document, wb ) {
|
9
|
+
"use strict";
|
10
|
+
|
11
|
+
/*
|
12
|
+
* Variable and function definitions.
|
13
|
+
* These are global to the polyfill - meaning that they will be initialized once per page.
|
14
|
+
*/
|
15
|
+
var componentName = "wb-date",
|
16
|
+
selector = "input[type=date]",
|
17
|
+
initEvent = "wb-init." + componentName,
|
18
|
+
setFocusEvent = "setfocus.wb",
|
19
|
+
containerName = "wb-picker",
|
20
|
+
toggleSuffix = "-picker-toggle",
|
21
|
+
today = new Date(),
|
22
|
+
$document = wb.doc,
|
23
|
+
fromDateISO = wb.date.fromDateISO,
|
24
|
+
defaults = {
|
25
|
+
minDate: new Date( 1800, 0, 1 ),
|
26
|
+
maxDate: new Date( 2100, 0, 1 ),
|
27
|
+
year: today.getFullYear(),
|
28
|
+
month: today.getMonth(),
|
29
|
+
daysCallback: function( year, month, $days, range ) {
|
30
|
+
var $inRange = $days,
|
31
|
+
selectedDate = this.date,
|
32
|
+
linkFocus;
|
33
|
+
|
34
|
+
if ( range ) {
|
35
|
+
if ( range.max ) {
|
36
|
+
$inRange = $inRange.filter( ":lt(" + ( range.max + 1 ) + ")" );
|
37
|
+
}
|
38
|
+
|
39
|
+
if ( range.min ) {
|
40
|
+
$inRange = $inRange.filter( ":gt(" + ( range.min - 1 ) + ")" );
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
$inRange.wrap( "<a href='javascript:;' tabindex='-1'></a>" );
|
45
|
+
|
46
|
+
if ( selectedDate && year === selectedDate.getFullYear() && month === selectedDate.getMonth() ) {
|
47
|
+
linkFocus = $days.eq( selectedDate.getDate() - 1 );
|
48
|
+
|
49
|
+
linkFocus.parent().attr( "aria-selected", true );
|
50
|
+
} else if ( year === today.getFullYear() && month === today.getMonth() ) {
|
51
|
+
linkFocus = $days.eq( today.getDate() - 1 );
|
52
|
+
} else {
|
53
|
+
linkFocus = $inRange.eq( 0 );
|
54
|
+
}
|
55
|
+
|
56
|
+
linkFocus.parent().removeAttr( "tabindex" );
|
57
|
+
}
|
58
|
+
},
|
59
|
+
i18n, i18nText, $container, calendar, focusOutTimer,
|
60
|
+
|
61
|
+
/**
|
62
|
+
* @method init
|
63
|
+
* @param {jQuery Event} event Event that triggered the function call
|
64
|
+
*/
|
65
|
+
init = function( event ) {
|
66
|
+
|
67
|
+
// Start initialization
|
68
|
+
// returns DOM object = proceed with init
|
69
|
+
// returns undefined = do not proceed with init (e.g., already initialized)
|
70
|
+
var elm = wb.init( event, componentName, selector ),
|
71
|
+
state = {},
|
72
|
+
elmId, space, settings, minDate, maxDate, initDate;
|
73
|
+
|
74
|
+
if ( elm ) {
|
75
|
+
elmId = elm.id;
|
76
|
+
|
77
|
+
if ( elm.className.indexOf( "picker-field" ) !== -1 ) {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
|
81
|
+
// Only initialize the i18nText once
|
82
|
+
if ( !i18nText ) {
|
83
|
+
i18n = wb.i18n;
|
84
|
+
space = i18n( "space" ).replace( " ", " " ).replace( "²", "" );
|
85
|
+
i18nText = {
|
86
|
+
show: i18n( "date-show" ).replace( "\\'", "'" ) + space,
|
87
|
+
hide: i18n( "date-hide" ).replace( "\\'", "'" ) + space +
|
88
|
+
space + i18n( "esc-key" ).replace( "\\'", "'" ),
|
89
|
+
selected: i18n( "date-sel" ).replace( "\\'", "'" )
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
elm.className += " picker-field";
|
94
|
+
|
95
|
+
//Build the calendar state
|
96
|
+
settings = {
|
97
|
+
field: this,
|
98
|
+
$field: $( this ),
|
99
|
+
labelText: $( "label[for=" + wb.jqEscape( elm.id ) + "]" )
|
100
|
+
.clone()
|
101
|
+
.find( ".datepicker-format, .error" )
|
102
|
+
.remove()
|
103
|
+
.end()
|
104
|
+
.text()
|
105
|
+
};
|
106
|
+
|
107
|
+
minDate = fromDateISO( elm.getAttribute( "min" ) );
|
108
|
+
maxDate = fromDateISO( elm.getAttribute( "max" ) );
|
109
|
+
|
110
|
+
if ( minDate ) {
|
111
|
+
settings.minDate = minDate;
|
112
|
+
}
|
113
|
+
|
114
|
+
if ( maxDate ) {
|
115
|
+
settings.maxDate = maxDate;
|
116
|
+
}
|
117
|
+
|
118
|
+
elm.state = $.extend( state, defaults, settings );
|
119
|
+
|
120
|
+
if ( today >= state.minDate && today <= state.maxDate ) {
|
121
|
+
initDate = today;
|
122
|
+
} else if ( state.minDate > today ) {
|
123
|
+
initDate = state.minDate;
|
124
|
+
} else {
|
125
|
+
initDate = state.maxDate;
|
126
|
+
}
|
127
|
+
|
128
|
+
if ( initDate ) {
|
129
|
+
state.year = initDate.getFullYear();
|
130
|
+
state.month = initDate.getMonth();
|
131
|
+
}
|
132
|
+
|
133
|
+
updateState.call( elm );
|
134
|
+
|
135
|
+
if ( !calendar ) {
|
136
|
+
createCalendar( elm );
|
137
|
+
}
|
138
|
+
|
139
|
+
if ( elmId ) {
|
140
|
+
createToggleIcon( elm );
|
141
|
+
}
|
142
|
+
|
143
|
+
// Identify that initialization has completed
|
144
|
+
wb.ready( $( elm ), componentName );
|
145
|
+
}
|
146
|
+
},
|
147
|
+
|
148
|
+
createCalendar = function( elm ) {
|
149
|
+
var closeText = i18nText.hide;
|
150
|
+
|
151
|
+
$container = $( "<div id='" + containerName + "' class='picker-overlay' role='dialog' tabindex='-1' aria-hidden='true'></div>" );
|
152
|
+
|
153
|
+
// Disable the tabbing of all the links when calendar is hidden
|
154
|
+
$container.find( "a" ).attr( "tabindex", "-1" );
|
155
|
+
|
156
|
+
$( "main" ).after( $container );
|
157
|
+
|
158
|
+
calendar = wb.calendar.create( $container, elm.state );
|
159
|
+
|
160
|
+
// Close button
|
161
|
+
$( "<button type='button' class='picker-close mfp-close overlay-close' title=\"" +
|
162
|
+
closeText + "\">×<span class='wb-inv'> " + closeText + "</span></button>" )
|
163
|
+
.appendTo( $container );
|
164
|
+
},
|
165
|
+
|
166
|
+
createToggleIcon = function( elm ) {
|
167
|
+
var fieldId = elm.id,
|
168
|
+
fieldLabelText = elm.state.labelText,
|
169
|
+
showFieldLabelText = i18nText.show + fieldLabelText,
|
170
|
+
objToggle = "<span class='input-group-btn'><a href='javascript:;' button id='" + fieldId + "-picker-toggle' class='btn btn-default picker-toggle' href='javascript:;' title=\"" +
|
171
|
+
showFieldLabelText + "\"><span class='glyphicon glyphicon-calendar'></span><span class='wb-inv'>" +
|
172
|
+
showFieldLabelText + "</span></a></span>";
|
173
|
+
|
174
|
+
$( "#" + wb.jqEscape( fieldId ) )
|
175
|
+
.wrap( "<span class='wb-date-wrap input-group'></span>" )
|
176
|
+
.after( objToggle );
|
177
|
+
$container.slideUp( 0 );
|
178
|
+
},
|
179
|
+
|
180
|
+
updateState = function() {
|
181
|
+
var state = this.state,
|
182
|
+
minDate = fromDateISO( this.getAttribute( "min" ) ) || state.minDate,
|
183
|
+
maxDate = fromDateISO( this.getAttribute( "max" ) ) || state.maxDate,
|
184
|
+
date = fromDateISO( this.value );
|
185
|
+
|
186
|
+
this.state.minDate = minDate;
|
187
|
+
this.state.maxDate = maxDate;
|
188
|
+
|
189
|
+
if ( date && date >= minDate && date <= maxDate ) {
|
190
|
+
state.date = date;
|
191
|
+
state.year = date.getFullYear();
|
192
|
+
state.month = date.getMonth();
|
193
|
+
} else {
|
194
|
+
state.date = null;
|
195
|
+
}
|
196
|
+
},
|
197
|
+
|
198
|
+
toggle = function( field ) {
|
199
|
+
if ( $container.attr( "aria-hidden" ) !== "false" ) {
|
200
|
+
show( field );
|
201
|
+
} else {
|
202
|
+
hide();
|
203
|
+
}
|
204
|
+
},
|
205
|
+
|
206
|
+
hide = function() {
|
207
|
+
var field = calendar.field,
|
208
|
+
$field = calendar.$field,
|
209
|
+
labelText = i18nText.show + calendar.labelText;
|
210
|
+
|
211
|
+
$( "#" + wb.jqEscape( field.id + toggleSuffix ) )
|
212
|
+
.attr( "title", labelText.replace( " ", " " ) )
|
213
|
+
.children( ".wb-inv" )
|
214
|
+
.html( labelText );
|
215
|
+
|
216
|
+
$container
|
217
|
+
.removeClass( "open" )
|
218
|
+
.attr( "aria-hidden", "true" );
|
219
|
+
|
220
|
+
$field.trigger( setFocusEvent );
|
221
|
+
},
|
222
|
+
|
223
|
+
show = function( field ) {
|
224
|
+
var fieldId = field.id,
|
225
|
+
closeText = i18nText.hide;
|
226
|
+
|
227
|
+
updateState.call( field );
|
228
|
+
calendar.reInit( field.state );
|
229
|
+
|
230
|
+
position();
|
231
|
+
|
232
|
+
$container
|
233
|
+
.addClass( "open" )
|
234
|
+
.attr( {
|
235
|
+
"aria-controls": fieldId,
|
236
|
+
"aria-labelledby": fieldId + toggleSuffix,
|
237
|
+
"aria-hidden": "false"
|
238
|
+
} )
|
239
|
+
.get( 0 ).focus();
|
240
|
+
|
241
|
+
$( "#" + wb.jqEscape( fieldId + toggleSuffix ) )
|
242
|
+
.attr( "title", closeText )
|
243
|
+
.children( ".wb-inv" )
|
244
|
+
.text( closeText );
|
245
|
+
},
|
246
|
+
|
247
|
+
position = function() {
|
248
|
+
var field = calendar.field,
|
249
|
+
position = calendar.$field.offset();
|
250
|
+
|
251
|
+
$container
|
252
|
+
.attr( "style", "top:" + ( position.top + field.offsetHeight ) + "px;left:" + position.left + "px" );
|
253
|
+
};
|
254
|
+
|
255
|
+
// Bind the init event of the plugin
|
256
|
+
$document.on( "timerpoke.wb " + initEvent, selector, init );
|
257
|
+
|
258
|
+
$document.on( "focusout focusin", "#" + containerName + " .wb-clndr", function( event ) {
|
259
|
+
|
260
|
+
// Hide the calendar when the focus leaves the calendar
|
261
|
+
switch ( event.type ) {
|
262
|
+
case "focusout":
|
263
|
+
focusOutTimer = setTimeout( hide, 10 );
|
264
|
+
break;
|
265
|
+
case "focusin":
|
266
|
+
clearTimeout( focusOutTimer );
|
267
|
+
}
|
268
|
+
} );
|
269
|
+
|
270
|
+
$document.on( "keydown", "#" + containerName, function( event ) {
|
271
|
+
|
272
|
+
// Escape key to close overlay
|
273
|
+
if ( event.which === 27 ) {
|
274
|
+
hide();
|
275
|
+
}
|
276
|
+
|
277
|
+
} );
|
278
|
+
|
279
|
+
$document.on( "click", ".picker-overlay .cal-days a", function( event ) {
|
280
|
+
var which = event.which,
|
281
|
+
field = calendar.field;
|
282
|
+
|
283
|
+
// Ignore middle/right mouse buttons
|
284
|
+
if ( ( !which || which === 1 ) && !field.disabled && !field.readOnly ) {
|
285
|
+
field.value = $( event.currentTarget ).find( "time" ).attr( "datetime" );
|
286
|
+
$( field ).trigger( "change" );
|
287
|
+
|
288
|
+
// Hide the calendar on selection
|
289
|
+
hide();
|
290
|
+
|
291
|
+
return false;
|
292
|
+
}
|
293
|
+
} );
|
294
|
+
|
295
|
+
$document.on( "click", ".picker-toggle", function( event ) {
|
296
|
+
event.preventDefault();
|
297
|
+
|
298
|
+
var which = event.which,
|
299
|
+
pickerId, field;
|
300
|
+
|
301
|
+
// Ignore middle/right mouse buttons
|
302
|
+
if ( ( !which || which === 1 ) ) {
|
303
|
+
pickerId = event.currentTarget.id;
|
304
|
+
field = $( "#" + wb.jqEscape( pickerId.substring( 0, pickerId.indexOf( toggleSuffix ) ) ) ).get( 0 );
|
305
|
+
if ( !field.disabled && !field.readOnly ) {
|
306
|
+
toggle( field );
|
307
|
+
return false;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
} );
|
311
|
+
|
312
|
+
$document.on( "click", ".picker-close", function( event ) {
|
313
|
+
var which = event.which;
|
314
|
+
|
315
|
+
// Ignore middle/right mouse buttons
|
316
|
+
if ( !which || which === 1 ) {
|
317
|
+
|
318
|
+
// Stop propagation of the click event
|
319
|
+
if ( event.stopPropagation ) {
|
320
|
+
event.stopImmediatePropagation();
|
321
|
+
} else {
|
322
|
+
event.cancelBubble = true;
|
323
|
+
}
|
324
|
+
|
325
|
+
hide();
|
326
|
+
}
|
327
|
+
} );
|
328
|
+
|
329
|
+
$document.on( "txt-rsz.wb win-rsz-width.wb win-rsz-height.wb", function() {
|
330
|
+
if ( $container && $container.hasClass( "open" ) ) {
|
331
|
+
position();
|
332
|
+
}
|
333
|
+
} );
|
334
|
+
|
335
|
+
// Add the timer poke to initialize the plugin
|
336
|
+
wb.add( selector );
|
337
|
+
|
338
|
+
} )( jQuery, window, document, wb );
|