ext_sprockets 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +114 -0
- data/.ruby-version +1 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +77 -0
- data/MIT-LICENSE +20 -0
- data/README.md +3 -0
- data/bin/yarn +12 -0
- data/ext_sprockets.gemspec +22 -0
- data/lib/ext_sprockets.rb +5 -0
- data/lib/ext_sprockets/engine.rb +11 -0
- data/lib/ext_sprockets/version.rb +3 -0
- data/node_modules/.yarn-integrity +60 -0
- data/node_modules/bootswatch/cerulean/_bootswatch.scss +131 -0
- data/node_modules/bootswatch/cerulean/_variables.scss +870 -0
- data/node_modules/bootswatch/cosmo/_bootswatch.scss +262 -0
- data/node_modules/bootswatch/cosmo/_variables.scss +870 -0
- data/node_modules/bootswatch/cyborg/_bootswatch.scss +243 -0
- data/node_modules/bootswatch/cyborg/_variables.scss +870 -0
- data/node_modules/bootswatch/darkly/_bootswatch.scss +351 -0
- data/node_modules/bootswatch/darkly/_variables.scss +870 -0
- data/node_modules/bootswatch/flatly/_bootswatch.scss +330 -0
- data/node_modules/bootswatch/flatly/_variables.scss +870 -0
- data/node_modules/bootswatch/journal/_bootswatch.scss +145 -0
- data/node_modules/bootswatch/journal/_variables.scss +870 -0
- data/node_modules/bootswatch/lumen/_bootswatch.scss +523 -0
- data/node_modules/bootswatch/lumen/_variables.scss +870 -0
- data/node_modules/bootswatch/package.json +26 -0
- data/node_modules/bootswatch/paper/_bootswatch.scss +620 -0
- data/node_modules/bootswatch/paper/_variables.scss +870 -0
- data/node_modules/bootswatch/readable/_bootswatch.scss +183 -0
- data/node_modules/bootswatch/readable/_variables.scss +870 -0
- data/node_modules/bootswatch/sandstone/_bootswatch.scss +196 -0
- data/node_modules/bootswatch/sandstone/_variables.scss +870 -0
- data/node_modules/bootswatch/simplex/_bootswatch.scss +170 -0
- data/node_modules/bootswatch/simplex/_variables.scss +870 -0
- data/node_modules/bootswatch/slate/_bootswatch.scss +448 -0
- data/node_modules/bootswatch/slate/_variables.scss +870 -0
- data/node_modules/bootswatch/spacelab/_bootswatch.scss +142 -0
- data/node_modules/bootswatch/spacelab/_variables.scss +870 -0
- data/node_modules/bootswatch/superhero/_bootswatch.scss +360 -0
- data/node_modules/bootswatch/superhero/_variables.scss +870 -0
- data/node_modules/bootswatch/united/_bootswatch.scss +56 -0
- data/node_modules/bootswatch/united/_variables.scss +870 -0
- data/node_modules/bootswatch/yeti/_bootswatch.scss +445 -0
- data/node_modules/bootswatch/yeti/_variables.scss +870 -0
- data/node_modules/chart.js/dist/Chart.bundle.js +18608 -0
- data/node_modules/chart.js/dist/Chart.js +14145 -0
- data/node_modules/chart.js/package.json +54 -0
- data/node_modules/chartkick/chartkick.js +1866 -0
- data/node_modules/chartkick/package.json +25 -0
- data/node_modules/eonasdan-bootstrap-datetimepicker/package.json +51 -0
- data/node_modules/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +2636 -0
- data/node_modules/eonasdan-bootstrap-datetimepicker/src/sass/_bootstrap-datetimepicker.scss +344 -0
- data/node_modules/eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build.scss +16 -0
- data/node_modules/file-saver/FileSaver.js +188 -0
- data/node_modules/file-saver/package.json +28 -0
- data/node_modules/jquery-pjax/jquery.pjax.js +903 -0
- data/node_modules/jquery-pjax/package.json +18 -0
- data/node_modules/jquery-ui/package.json +74 -0
- data/node_modules/jquery-ui/themes/base/accordion.css +23 -0
- data/node_modules/jquery-ui/themes/base/all.css +12 -0
- data/node_modules/jquery-ui/themes/base/autocomplete.css +16 -0
- data/node_modules/jquery-ui/themes/base/base.css +30 -0
- data/node_modules/jquery-ui/themes/base/button.css +82 -0
- data/node_modules/jquery-ui/themes/base/checkboxradio.css +34 -0
- data/node_modules/jquery-ui/themes/base/controlgroup.css +65 -0
- data/node_modules/jquery-ui/themes/base/core.css +97 -0
- data/node_modules/jquery-ui/themes/base/datepicker.css +185 -0
- data/node_modules/jquery-ui/themes/base/dialog.css +101 -0
- data/node_modules/jquery-ui/themes/base/draggable.css +12 -0
- data/node_modules/jquery-ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/node_modules/jquery-ui/themes/base/images/ui-icons_444444_256x240.png +0 -0
- data/node_modules/jquery-ui/themes/base/images/ui-icons_555555_256x240.png +0 -0
- data/node_modules/jquery-ui/themes/base/images/ui-icons_777620_256x240.png +0 -0
- data/node_modules/jquery-ui/themes/base/images/ui-icons_777777_256x240.png +0 -0
- data/node_modules/jquery-ui/themes/base/images/ui-icons_cc0000_256x240.png +0 -0
- data/node_modules/jquery-ui/themes/base/images/ui-icons_ffffff_256x240.png +0 -0
- data/node_modules/jquery-ui/themes/base/menu.css +64 -0
- data/node_modules/jquery-ui/themes/base/progressbar.css +28 -0
- data/node_modules/jquery-ui/themes/base/resizable.css +78 -0
- data/node_modules/jquery-ui/themes/base/selectable.css +17 -0
- data/node_modules/jquery-ui/themes/base/selectmenu.css +50 -0
- data/node_modules/jquery-ui/themes/base/slider.css +75 -0
- data/node_modules/jquery-ui/themes/base/sortable.css +12 -0
- data/node_modules/jquery-ui/themes/base/spinner.css +52 -0
- data/node_modules/jquery-ui/themes/base/tabs.css +51 -0
- data/node_modules/jquery-ui/themes/base/theme.css +443 -0
- data/node_modules/jquery-ui/themes/base/tooltip.css +19 -0
- data/node_modules/jquery-ui/ui/core.js +21 -0
- data/node_modules/jquery-ui/ui/data.js +39 -0
- data/node_modules/jquery-ui/ui/disable-selection.js +46 -0
- data/node_modules/jquery-ui/ui/effect.js +1635 -0
- data/node_modules/jquery-ui/ui/effects/effect-blind.js +70 -0
- data/node_modules/jquery-ui/ui/effects/effect-bounce.js +110 -0
- data/node_modules/jquery-ui/ui/effects/effect-clip.js +65 -0
- data/node_modules/jquery-ui/ui/effects/effect-drop.js +69 -0
- data/node_modules/jquery-ui/ui/effects/effect-explode.js +111 -0
- data/node_modules/jquery-ui/ui/effects/effect-fade.js +47 -0
- data/node_modules/jquery-ui/ui/effects/effect-fold.js +89 -0
- data/node_modules/jquery-ui/ui/effects/effect-highlight.js +57 -0
- data/node_modules/jquery-ui/ui/effects/effect-puff.js +42 -0
- data/node_modules/jquery-ui/ui/effects/effect-pulsate.js +64 -0
- data/node_modules/jquery-ui/ui/effects/effect-scale.js +56 -0
- data/node_modules/jquery-ui/ui/effects/effect-shake.js +74 -0
- data/node_modules/jquery-ui/ui/effects/effect-size.js +191 -0
- data/node_modules/jquery-ui/ui/effects/effect-slide.js +76 -0
- data/node_modules/jquery-ui/ui/effects/effect-transfer.js +40 -0
- data/node_modules/jquery-ui/ui/escape-selector.js +21 -0
- data/node_modules/jquery-ui/ui/focusable.js +84 -0
- data/node_modules/jquery-ui/ui/form-reset-mixin.js +77 -0
- data/node_modules/jquery-ui/ui/form.js +20 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-af.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ar-DZ.js +39 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ar.js +39 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-az.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-be.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-bg.js +38 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-bs.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ca.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-cs.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-cy-GB.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-da.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-de.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-el.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-en-AU.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-en-GB.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-en-NZ.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-eo.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-es.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-et.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-eu.js +36 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-fa.js +73 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-fi.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-fo.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-fr-CA.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-fr-CH.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-fr.js +39 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-gl.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-he.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-hi.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-hr.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-hu.js +36 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-hy.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-id.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-is.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-it-CH.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-it.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ja.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ka.js +48 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-kk.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-km.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ko.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ky.js +38 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-lb.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-lt.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-lv.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-mk.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ml.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ms.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-nb.js +49 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-nl-BE.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-nl.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-nn.js +49 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-no.js +50 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-pl.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-pt-BR.js +45 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-pt.js +44 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-rm.js +61 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ro.js +40 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ru.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-sk.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-sl.js +38 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-sq.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-sr-SR.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-sr.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-sv.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-ta.js +53 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-th.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-tj.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-tr.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-uk.js +38 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-vi.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-zh-CN.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-zh-HK.js +37 -0
- data/node_modules/jquery-ui/ui/i18n/datepicker-zh-TW.js +37 -0
- data/node_modules/jquery-ui/ui/ie.js +15 -0
- data/node_modules/jquery-ui/ui/jquery-1-7.js +89 -0
- data/node_modules/jquery-ui/ui/keycode.js +45 -0
- data/node_modules/jquery-ui/ui/labels.js +62 -0
- data/node_modules/jquery-ui/ui/plugin.js +44 -0
- data/node_modules/jquery-ui/ui/position.js +498 -0
- data/node_modules/jquery-ui/ui/safe-active-element.js +40 -0
- data/node_modules/jquery-ui/ui/safe-blur.js +21 -0
- data/node_modules/jquery-ui/ui/scroll-parent.js +45 -0
- data/node_modules/jquery-ui/ui/tabbable.js +35 -0
- data/node_modules/jquery-ui/ui/unique-id.js +49 -0
- data/node_modules/jquery-ui/ui/version.js +17 -0
- data/node_modules/jquery-ui/ui/widget.js +733 -0
- data/node_modules/jquery-ui/ui/widgets/accordion.js +613 -0
- data/node_modules/jquery-ui/ui/widgets/autocomplete.js +682 -0
- data/node_modules/jquery-ui/ui/widgets/button.js +386 -0
- data/node_modules/jquery-ui/ui/widgets/checkboxradio.js +286 -0
- data/node_modules/jquery-ui/ui/widgets/controlgroup.js +298 -0
- data/node_modules/jquery-ui/ui/widgets/datepicker.js +2120 -0
- data/node_modules/jquery-ui/ui/widgets/dialog.js +940 -0
- data/node_modules/jquery-ui/ui/widgets/draggable.js +1250 -0
- data/node_modules/jquery-ui/ui/widgets/droppable.js +497 -0
- data/node_modules/jquery-ui/ui/widgets/menu.js +673 -0
- data/node_modules/jquery-ui/ui/widgets/mouse.js +226 -0
- data/node_modules/jquery-ui/ui/widgets/progressbar.js +178 -0
- data/node_modules/jquery-ui/ui/widgets/resizable.js +1201 -0
- data/node_modules/jquery-ui/ui/widgets/selectable.js +310 -0
- data/node_modules/jquery-ui/ui/widgets/selectmenu.js +687 -0
- data/node_modules/jquery-ui/ui/widgets/slider.js +752 -0
- data/node_modules/jquery-ui/ui/widgets/sortable.js +1554 -0
- data/node_modules/jquery-ui/ui/widgets/spinner.js +575 -0
- data/node_modules/jquery-ui/ui/widgets/tabs.js +924 -0
- data/node_modules/jquery-ui/ui/widgets/tooltip.js +520 -0
- data/node_modules/jquery-ujs/package.json +26 -0
- data/node_modules/jquery-ujs/src/rails.js +555 -0
- data/node_modules/jquery/dist/jquery.js +10253 -0
- data/node_modules/jquery/dist/jquery.slim.js +8160 -0
- data/node_modules/jquery/package.json +97 -0
- data/node_modules/js-cookie/package.json +49 -0
- data/node_modules/js-cookie/src/js.cookie.js +165 -0
- data/node_modules/jstz/dist/jstz.js +1428 -0
- data/node_modules/jstz/package.json +57 -0
- data/node_modules/lodash/core.js +3836 -0
- data/node_modules/lodash/lodash.js +17084 -0
- data/node_modules/lodash/package.json +17 -0
- data/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js +1204 -0
- data/node_modules/moment-timezone/builds/moment-timezone-with-data.js +1204 -0
- data/node_modules/moment-timezone/moment-timezone-utils.js +316 -0
- data/node_modules/moment-timezone/moment-timezone.js +605 -0
- data/node_modules/moment-timezone/package.json +50 -0
- data/node_modules/moment/locale/af.js +74 -0
- data/node_modules/moment/locale/ar-dz.js +60 -0
- data/node_modules/moment/locale/ar-kw.js +60 -0
- data/node_modules/moment/locale/ar-ly.js +127 -0
- data/node_modules/moment/locale/ar-ma.js +61 -0
- data/node_modules/moment/locale/ar-sa.js +106 -0
- data/node_modules/moment/locale/ar-tn.js +60 -0
- data/node_modules/moment/locale/ar.js +143 -0
- data/node_modules/moment/locale/az.js +106 -0
- data/node_modules/moment/locale/be.js +135 -0
- data/node_modules/moment/locale/bg.js +91 -0
- data/node_modules/moment/locale/bm.js +60 -0
- data/node_modules/moment/locale/bn.js +120 -0
- data/node_modules/moment/locale/bo.js +120 -0
- data/node_modules/moment/locale/br.js +109 -0
- data/node_modules/moment/locale/bs.js +153 -0
- data/node_modules/moment/locale/ca.js +89 -0
- data/node_modules/moment/locale/cs.js +180 -0
- data/node_modules/moment/locale/cv.js +64 -0
- data/node_modules/moment/locale/cy.js +82 -0
- data/node_modules/moment/locale/da.js +61 -0
- data/node_modules/moment/locale/de-at.js +80 -0
- data/node_modules/moment/locale/de-ch.js +79 -0
- data/node_modules/moment/locale/de.js +79 -0
- data/node_modules/moment/locale/dv.js +101 -0
- data/node_modules/moment/locale/el.js +101 -0
- data/node_modules/moment/locale/en-au.js +68 -0
- data/node_modules/moment/locale/en-ca.js +64 -0
- data/node_modules/moment/locale/en-gb.js +68 -0
- data/node_modules/moment/locale/en-ie.js +68 -0
- data/node_modules/moment/locale/en-nz.js +68 -0
- data/node_modules/moment/locale/eo.js +74 -0
- data/node_modules/moment/locale/es-do.js +92 -0
- data/node_modules/moment/locale/es-us.js +84 -0
- data/node_modules/moment/locale/es.js +93 -0
- data/node_modules/moment/locale/et.js +82 -0
- data/node_modules/moment/locale/eu.js +67 -0
- data/node_modules/moment/locale/fa.js +108 -0
- data/node_modules/moment/locale/fi.js +110 -0
- data/node_modules/moment/locale/fo.js +61 -0
- data/node_modules/moment/locale/fr-ca.js +75 -0
- data/node_modules/moment/locale/fr-ch.js +79 -0
- data/node_modules/moment/locale/fr.js +84 -0
- data/node_modules/moment/locale/fy.js +76 -0
- data/node_modules/moment/locale/gd.js +77 -0
- data/node_modules/moment/locale/gl.js +78 -0
- data/node_modules/moment/locale/gom-latn.js +124 -0
- data/node_modules/moment/locale/gu.js +125 -0
- data/node_modules/moment/locale/he.js +100 -0
- data/node_modules/moment/locale/hi.js +125 -0
- data/node_modules/moment/locale/hr.js +155 -0
- data/node_modules/moment/locale/hu.js +111 -0
- data/node_modules/moment/locale/hy-am.js +96 -0
- data/node_modules/moment/locale/id.js +84 -0
- data/node_modules/moment/locale/is.js +133 -0
- data/node_modules/moment/locale/it.js +71 -0
- data/node_modules/moment/locale/ja.js +81 -0
- data/node_modules/moment/locale/jv.js +84 -0
- data/node_modules/moment/locale/ka.js +90 -0
- data/node_modules/moment/locale/kk.js +88 -0
- data/node_modules/moment/locale/km.js +59 -0
- data/node_modules/moment/locale/kn.js +127 -0
- data/node_modules/moment/locale/ko.js +83 -0
- data/node_modules/moment/locale/ky.js +89 -0
- data/node_modules/moment/locale/lb.js +138 -0
- data/node_modules/moment/locale/lo.js +71 -0
- data/node_modules/moment/locale/lt.js +119 -0
- data/node_modules/moment/locale/lv.js +99 -0
- data/node_modules/moment/locale/me.js +113 -0
- data/node_modules/moment/locale/mi.js +65 -0
- data/node_modules/moment/locale/mk.js +91 -0
- data/node_modules/moment/locale/ml.js +82 -0
- data/node_modules/moment/locale/mr.js +162 -0
- data/node_modules/moment/locale/ms-my.js +84 -0
- data/node_modules/moment/locale/ms.js +83 -0
- data/node_modules/moment/locale/mt.js +61 -0
- data/node_modules/moment/locale/my.js +97 -0
- data/node_modules/moment/locale/nb.js +64 -0
- data/node_modules/moment/locale/ne.js +124 -0
- data/node_modules/moment/locale/nl-be.js +89 -0
- data/node_modules/moment/locale/nl.js +89 -0
- data/node_modules/moment/locale/nn.js +61 -0
- data/node_modules/moment/locale/pa-in.js +125 -0
- data/node_modules/moment/locale/pl.js +127 -0
- data/node_modules/moment/locale/pt-br.js +62 -0
- data/node_modules/moment/locale/pt.js +66 -0
- data/node_modules/moment/locale/ro.js +77 -0
- data/node_modules/moment/locale/ru.js +185 -0
- data/node_modules/moment/locale/sd.js +99 -0
- data/node_modules/moment/locale/se.js +62 -0
- data/node_modules/moment/locale/si.js +72 -0
- data/node_modules/moment/locale/sk.js +158 -0
- data/node_modules/moment/locale/sl.js +174 -0
- data/node_modules/moment/locale/sq.js +71 -0
- data/node_modules/moment/locale/sr-cyrl.js +112 -0
- data/node_modules/moment/locale/sr.js +112 -0
- data/node_modules/moment/locale/ss.js +90 -0
- data/node_modules/moment/locale/sv.js +70 -0
- data/node_modules/moment/locale/sw.js +60 -0
- data/node_modules/moment/locale/ta.js +131 -0
- data/node_modules/moment/locale/te.js +90 -0
- data/node_modules/moment/locale/tet.js +69 -0
- data/node_modules/moment/locale/th.js +68 -0
- data/node_modules/moment/locale/tl-ph.js +63 -0
- data/node_modules/moment/locale/tlh.js +123 -0
- data/node_modules/moment/locale/tr.js +91 -0
- data/node_modules/moment/locale/tzl.js +93 -0
- data/node_modules/moment/locale/tzm-latn.js +59 -0
- data/node_modules/moment/locale/tzm.js +59 -0
- data/node_modules/moment/locale/uk.js +153 -0
- data/node_modules/moment/locale/ur.js +100 -0
- data/node_modules/moment/locale/uz-latn.js +59 -0
- data/node_modules/moment/locale/uz.js +59 -0
- data/node_modules/moment/locale/vi.js +80 -0
- data/node_modules/moment/locale/x-pseudo.js +69 -0
- data/node_modules/moment/locale/yo.js +61 -0
- data/node_modules/moment/locale/zh-cn.js +112 -0
- data/node_modules/moment/locale/zh-hk.js +106 -0
- data/node_modules/moment/locale/zh-tw.js +105 -0
- data/node_modules/moment/min/locales.js +9769 -0
- data/node_modules/moment/min/moment-with-locales.js +14289 -0
- data/node_modules/moment/moment.js +4535 -0
- data/node_modules/moment/package.json +99 -0
- data/node_modules/nprogress/nprogress.css +74 -0
- data/node_modules/nprogress/nprogress.js +480 -0
- data/node_modules/nprogress/package.json +47 -0
- data/node_modules/nprogress/support/extras.css +4 -0
- data/node_modules/roboto-fontface/css/mixins.scss +36 -0
- data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-bold-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-bold.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-light-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-light.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-regular-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-regular.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface.scss +6 -0
- data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-bold.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-light.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-regular.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-thin.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface.scss +4 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-black-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-black.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-bold-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-bold.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-light-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-light.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-medium-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-medium.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-regular-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-regular.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-thin-italic.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-thin.scss +3 -0
- data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface.scss +12 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.svg +643 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.svg +643 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.svg +643 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.svg +643 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.svg +644 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.svg +644 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.svg +679 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.svg +678 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.svg +678 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.svg +678 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.svg +10968 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.svg +11086 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.svg +11010 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.svg +11096 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.svg +10564 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.svg +10646 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.svg +10999 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.svg +11100 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.svg +10520 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.svg +10629 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.svg +10617 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.eot +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.svg +10726 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.ttf +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff +0 -0
- data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff2 +0 -0
- data/node_modules/roboto-fontface/package.json +28 -0
- data/node_modules/signature_pad/dist/signature_pad.js +610 -0
- data/node_modules/signature_pad/package.json +41 -0
- data/package.json +23 -0
- data/yarn.lock +118 -0
- metadata +575 -0
@@ -0,0 +1,575 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Spinner 1.12.1
|
3
|
+
* http://jqueryui.com
|
4
|
+
*
|
5
|
+
* Copyright jQuery Foundation and other contributors
|
6
|
+
* Released under the MIT license.
|
7
|
+
* http://jquery.org/license
|
8
|
+
*/
|
9
|
+
|
10
|
+
//>>label: Spinner
|
11
|
+
//>>group: Widgets
|
12
|
+
//>>description: Displays buttons to easily input numbers via the keyboard or mouse.
|
13
|
+
//>>docs: http://api.jqueryui.com/spinner/
|
14
|
+
//>>demos: http://jqueryui.com/spinner/
|
15
|
+
//>>css.structure: ../../themes/base/core.css
|
16
|
+
//>>css.structure: ../../themes/base/spinner.css
|
17
|
+
//>>css.theme: ../../themes/base/theme.css
|
18
|
+
|
19
|
+
( function( factory ) {
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [
|
24
|
+
"jquery",
|
25
|
+
"./button",
|
26
|
+
"../version",
|
27
|
+
"../keycode",
|
28
|
+
"../safe-active-element",
|
29
|
+
"../widget"
|
30
|
+
], factory );
|
31
|
+
} else {
|
32
|
+
|
33
|
+
// Browser globals
|
34
|
+
factory( jQuery );
|
35
|
+
}
|
36
|
+
}( function( $ ) {
|
37
|
+
|
38
|
+
function spinnerModifer( fn ) {
|
39
|
+
return function() {
|
40
|
+
var previous = this.element.val();
|
41
|
+
fn.apply( this, arguments );
|
42
|
+
this._refresh();
|
43
|
+
if ( previous !== this.element.val() ) {
|
44
|
+
this._trigger( "change" );
|
45
|
+
}
|
46
|
+
};
|
47
|
+
}
|
48
|
+
|
49
|
+
$.widget( "ui.spinner", {
|
50
|
+
version: "1.12.1",
|
51
|
+
defaultElement: "<input>",
|
52
|
+
widgetEventPrefix: "spin",
|
53
|
+
options: {
|
54
|
+
classes: {
|
55
|
+
"ui-spinner": "ui-corner-all",
|
56
|
+
"ui-spinner-down": "ui-corner-br",
|
57
|
+
"ui-spinner-up": "ui-corner-tr"
|
58
|
+
},
|
59
|
+
culture: null,
|
60
|
+
icons: {
|
61
|
+
down: "ui-icon-triangle-1-s",
|
62
|
+
up: "ui-icon-triangle-1-n"
|
63
|
+
},
|
64
|
+
incremental: true,
|
65
|
+
max: null,
|
66
|
+
min: null,
|
67
|
+
numberFormat: null,
|
68
|
+
page: 10,
|
69
|
+
step: 1,
|
70
|
+
|
71
|
+
change: null,
|
72
|
+
spin: null,
|
73
|
+
start: null,
|
74
|
+
stop: null
|
75
|
+
},
|
76
|
+
|
77
|
+
_create: function() {
|
78
|
+
|
79
|
+
// handle string values that need to be parsed
|
80
|
+
this._setOption( "max", this.options.max );
|
81
|
+
this._setOption( "min", this.options.min );
|
82
|
+
this._setOption( "step", this.options.step );
|
83
|
+
|
84
|
+
// Only format if there is a value, prevents the field from being marked
|
85
|
+
// as invalid in Firefox, see #9573.
|
86
|
+
if ( this.value() !== "" ) {
|
87
|
+
|
88
|
+
// Format the value, but don't constrain.
|
89
|
+
this._value( this.element.val(), true );
|
90
|
+
}
|
91
|
+
|
92
|
+
this._draw();
|
93
|
+
this._on( this._events );
|
94
|
+
this._refresh();
|
95
|
+
|
96
|
+
// Turning off autocomplete prevents the browser from remembering the
|
97
|
+
// value when navigating through history, so we re-enable autocomplete
|
98
|
+
// if the page is unloaded before the widget is destroyed. #7790
|
99
|
+
this._on( this.window, {
|
100
|
+
beforeunload: function() {
|
101
|
+
this.element.removeAttr( "autocomplete" );
|
102
|
+
}
|
103
|
+
} );
|
104
|
+
},
|
105
|
+
|
106
|
+
_getCreateOptions: function() {
|
107
|
+
var options = this._super();
|
108
|
+
var element = this.element;
|
109
|
+
|
110
|
+
$.each( [ "min", "max", "step" ], function( i, option ) {
|
111
|
+
var value = element.attr( option );
|
112
|
+
if ( value != null && value.length ) {
|
113
|
+
options[ option ] = value;
|
114
|
+
}
|
115
|
+
} );
|
116
|
+
|
117
|
+
return options;
|
118
|
+
},
|
119
|
+
|
120
|
+
_events: {
|
121
|
+
keydown: function( event ) {
|
122
|
+
if ( this._start( event ) && this._keydown( event ) ) {
|
123
|
+
event.preventDefault();
|
124
|
+
}
|
125
|
+
},
|
126
|
+
keyup: "_stop",
|
127
|
+
focus: function() {
|
128
|
+
this.previous = this.element.val();
|
129
|
+
},
|
130
|
+
blur: function( event ) {
|
131
|
+
if ( this.cancelBlur ) {
|
132
|
+
delete this.cancelBlur;
|
133
|
+
return;
|
134
|
+
}
|
135
|
+
|
136
|
+
this._stop();
|
137
|
+
this._refresh();
|
138
|
+
if ( this.previous !== this.element.val() ) {
|
139
|
+
this._trigger( "change", event );
|
140
|
+
}
|
141
|
+
},
|
142
|
+
mousewheel: function( event, delta ) {
|
143
|
+
if ( !delta ) {
|
144
|
+
return;
|
145
|
+
}
|
146
|
+
if ( !this.spinning && !this._start( event ) ) {
|
147
|
+
return false;
|
148
|
+
}
|
149
|
+
|
150
|
+
this._spin( ( delta > 0 ? 1 : -1 ) * this.options.step, event );
|
151
|
+
clearTimeout( this.mousewheelTimer );
|
152
|
+
this.mousewheelTimer = this._delay( function() {
|
153
|
+
if ( this.spinning ) {
|
154
|
+
this._stop( event );
|
155
|
+
}
|
156
|
+
}, 100 );
|
157
|
+
event.preventDefault();
|
158
|
+
},
|
159
|
+
"mousedown .ui-spinner-button": function( event ) {
|
160
|
+
var previous;
|
161
|
+
|
162
|
+
// We never want the buttons to have focus; whenever the user is
|
163
|
+
// interacting with the spinner, the focus should be on the input.
|
164
|
+
// If the input is focused then this.previous is properly set from
|
165
|
+
// when the input first received focus. If the input is not focused
|
166
|
+
// then we need to set this.previous based on the value before spinning.
|
167
|
+
previous = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] ) ?
|
168
|
+
this.previous : this.element.val();
|
169
|
+
function checkFocus() {
|
170
|
+
var isActive = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] );
|
171
|
+
if ( !isActive ) {
|
172
|
+
this.element.trigger( "focus" );
|
173
|
+
this.previous = previous;
|
174
|
+
|
175
|
+
// support: IE
|
176
|
+
// IE sets focus asynchronously, so we need to check if focus
|
177
|
+
// moved off of the input because the user clicked on the button.
|
178
|
+
this._delay( function() {
|
179
|
+
this.previous = previous;
|
180
|
+
} );
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
// Ensure focus is on (or stays on) the text field
|
185
|
+
event.preventDefault();
|
186
|
+
checkFocus.call( this );
|
187
|
+
|
188
|
+
// Support: IE
|
189
|
+
// IE doesn't prevent moving focus even with event.preventDefault()
|
190
|
+
// so we set a flag to know when we should ignore the blur event
|
191
|
+
// and check (again) if focus moved off of the input.
|
192
|
+
this.cancelBlur = true;
|
193
|
+
this._delay( function() {
|
194
|
+
delete this.cancelBlur;
|
195
|
+
checkFocus.call( this );
|
196
|
+
} );
|
197
|
+
|
198
|
+
if ( this._start( event ) === false ) {
|
199
|
+
return;
|
200
|
+
}
|
201
|
+
|
202
|
+
this._repeat( null, $( event.currentTarget )
|
203
|
+
.hasClass( "ui-spinner-up" ) ? 1 : -1, event );
|
204
|
+
},
|
205
|
+
"mouseup .ui-spinner-button": "_stop",
|
206
|
+
"mouseenter .ui-spinner-button": function( event ) {
|
207
|
+
|
208
|
+
// button will add ui-state-active if mouse was down while mouseleave and kept down
|
209
|
+
if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) {
|
210
|
+
return;
|
211
|
+
}
|
212
|
+
|
213
|
+
if ( this._start( event ) === false ) {
|
214
|
+
return false;
|
215
|
+
}
|
216
|
+
this._repeat( null, $( event.currentTarget )
|
217
|
+
.hasClass( "ui-spinner-up" ) ? 1 : -1, event );
|
218
|
+
},
|
219
|
+
|
220
|
+
// TODO: do we really want to consider this a stop?
|
221
|
+
// shouldn't we just stop the repeater and wait until mouseup before
|
222
|
+
// we trigger the stop event?
|
223
|
+
"mouseleave .ui-spinner-button": "_stop"
|
224
|
+
},
|
225
|
+
|
226
|
+
// Support mobile enhanced option and make backcompat more sane
|
227
|
+
_enhance: function() {
|
228
|
+
this.uiSpinner = this.element
|
229
|
+
.attr( "autocomplete", "off" )
|
230
|
+
.wrap( "<span>" )
|
231
|
+
.parent()
|
232
|
+
|
233
|
+
// Add buttons
|
234
|
+
.append(
|
235
|
+
"<a></a><a></a>"
|
236
|
+
);
|
237
|
+
},
|
238
|
+
|
239
|
+
_draw: function() {
|
240
|
+
this._enhance();
|
241
|
+
|
242
|
+
this._addClass( this.uiSpinner, "ui-spinner", "ui-widget ui-widget-content" );
|
243
|
+
this._addClass( "ui-spinner-input" );
|
244
|
+
|
245
|
+
this.element.attr( "role", "spinbutton" );
|
246
|
+
|
247
|
+
// Button bindings
|
248
|
+
this.buttons = this.uiSpinner.children( "a" )
|
249
|
+
.attr( "tabIndex", -1 )
|
250
|
+
.attr( "aria-hidden", true )
|
251
|
+
.button( {
|
252
|
+
classes: {
|
253
|
+
"ui-button": ""
|
254
|
+
}
|
255
|
+
} );
|
256
|
+
|
257
|
+
// TODO: Right now button does not support classes this is already updated in button PR
|
258
|
+
this._removeClass( this.buttons, "ui-corner-all" );
|
259
|
+
|
260
|
+
this._addClass( this.buttons.first(), "ui-spinner-button ui-spinner-up" );
|
261
|
+
this._addClass( this.buttons.last(), "ui-spinner-button ui-spinner-down" );
|
262
|
+
this.buttons.first().button( {
|
263
|
+
"icon": this.options.icons.up,
|
264
|
+
"showLabel": false
|
265
|
+
} );
|
266
|
+
this.buttons.last().button( {
|
267
|
+
"icon": this.options.icons.down,
|
268
|
+
"showLabel": false
|
269
|
+
} );
|
270
|
+
|
271
|
+
// IE 6 doesn't understand height: 50% for the buttons
|
272
|
+
// unless the wrapper has an explicit height
|
273
|
+
if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) &&
|
274
|
+
this.uiSpinner.height() > 0 ) {
|
275
|
+
this.uiSpinner.height( this.uiSpinner.height() );
|
276
|
+
}
|
277
|
+
},
|
278
|
+
|
279
|
+
_keydown: function( event ) {
|
280
|
+
var options = this.options,
|
281
|
+
keyCode = $.ui.keyCode;
|
282
|
+
|
283
|
+
switch ( event.keyCode ) {
|
284
|
+
case keyCode.UP:
|
285
|
+
this._repeat( null, 1, event );
|
286
|
+
return true;
|
287
|
+
case keyCode.DOWN:
|
288
|
+
this._repeat( null, -1, event );
|
289
|
+
return true;
|
290
|
+
case keyCode.PAGE_UP:
|
291
|
+
this._repeat( null, options.page, event );
|
292
|
+
return true;
|
293
|
+
case keyCode.PAGE_DOWN:
|
294
|
+
this._repeat( null, -options.page, event );
|
295
|
+
return true;
|
296
|
+
}
|
297
|
+
|
298
|
+
return false;
|
299
|
+
},
|
300
|
+
|
301
|
+
_start: function( event ) {
|
302
|
+
if ( !this.spinning && this._trigger( "start", event ) === false ) {
|
303
|
+
return false;
|
304
|
+
}
|
305
|
+
|
306
|
+
if ( !this.counter ) {
|
307
|
+
this.counter = 1;
|
308
|
+
}
|
309
|
+
this.spinning = true;
|
310
|
+
return true;
|
311
|
+
},
|
312
|
+
|
313
|
+
_repeat: function( i, steps, event ) {
|
314
|
+
i = i || 500;
|
315
|
+
|
316
|
+
clearTimeout( this.timer );
|
317
|
+
this.timer = this._delay( function() {
|
318
|
+
this._repeat( 40, steps, event );
|
319
|
+
}, i );
|
320
|
+
|
321
|
+
this._spin( steps * this.options.step, event );
|
322
|
+
},
|
323
|
+
|
324
|
+
_spin: function( step, event ) {
|
325
|
+
var value = this.value() || 0;
|
326
|
+
|
327
|
+
if ( !this.counter ) {
|
328
|
+
this.counter = 1;
|
329
|
+
}
|
330
|
+
|
331
|
+
value = this._adjustValue( value + step * this._increment( this.counter ) );
|
332
|
+
|
333
|
+
if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false ) {
|
334
|
+
this._value( value );
|
335
|
+
this.counter++;
|
336
|
+
}
|
337
|
+
},
|
338
|
+
|
339
|
+
_increment: function( i ) {
|
340
|
+
var incremental = this.options.incremental;
|
341
|
+
|
342
|
+
if ( incremental ) {
|
343
|
+
return $.isFunction( incremental ) ?
|
344
|
+
incremental( i ) :
|
345
|
+
Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
|
346
|
+
}
|
347
|
+
|
348
|
+
return 1;
|
349
|
+
},
|
350
|
+
|
351
|
+
_precision: function() {
|
352
|
+
var precision = this._precisionOf( this.options.step );
|
353
|
+
if ( this.options.min !== null ) {
|
354
|
+
precision = Math.max( precision, this._precisionOf( this.options.min ) );
|
355
|
+
}
|
356
|
+
return precision;
|
357
|
+
},
|
358
|
+
|
359
|
+
_precisionOf: function( num ) {
|
360
|
+
var str = num.toString(),
|
361
|
+
decimal = str.indexOf( "." );
|
362
|
+
return decimal === -1 ? 0 : str.length - decimal - 1;
|
363
|
+
},
|
364
|
+
|
365
|
+
_adjustValue: function( value ) {
|
366
|
+
var base, aboveMin,
|
367
|
+
options = this.options;
|
368
|
+
|
369
|
+
// Make sure we're at a valid step
|
370
|
+
// - find out where we are relative to the base (min or 0)
|
371
|
+
base = options.min !== null ? options.min : 0;
|
372
|
+
aboveMin = value - base;
|
373
|
+
|
374
|
+
// - round to the nearest step
|
375
|
+
aboveMin = Math.round( aboveMin / options.step ) * options.step;
|
376
|
+
|
377
|
+
// - rounding is based on 0, so adjust back to our base
|
378
|
+
value = base + aboveMin;
|
379
|
+
|
380
|
+
// Fix precision from bad JS floating point math
|
381
|
+
value = parseFloat( value.toFixed( this._precision() ) );
|
382
|
+
|
383
|
+
// Clamp the value
|
384
|
+
if ( options.max !== null && value > options.max ) {
|
385
|
+
return options.max;
|
386
|
+
}
|
387
|
+
if ( options.min !== null && value < options.min ) {
|
388
|
+
return options.min;
|
389
|
+
}
|
390
|
+
|
391
|
+
return value;
|
392
|
+
},
|
393
|
+
|
394
|
+
_stop: function( event ) {
|
395
|
+
if ( !this.spinning ) {
|
396
|
+
return;
|
397
|
+
}
|
398
|
+
|
399
|
+
clearTimeout( this.timer );
|
400
|
+
clearTimeout( this.mousewheelTimer );
|
401
|
+
this.counter = 0;
|
402
|
+
this.spinning = false;
|
403
|
+
this._trigger( "stop", event );
|
404
|
+
},
|
405
|
+
|
406
|
+
_setOption: function( key, value ) {
|
407
|
+
var prevValue, first, last;
|
408
|
+
|
409
|
+
if ( key === "culture" || key === "numberFormat" ) {
|
410
|
+
prevValue = this._parse( this.element.val() );
|
411
|
+
this.options[ key ] = value;
|
412
|
+
this.element.val( this._format( prevValue ) );
|
413
|
+
return;
|
414
|
+
}
|
415
|
+
|
416
|
+
if ( key === "max" || key === "min" || key === "step" ) {
|
417
|
+
if ( typeof value === "string" ) {
|
418
|
+
value = this._parse( value );
|
419
|
+
}
|
420
|
+
}
|
421
|
+
if ( key === "icons" ) {
|
422
|
+
first = this.buttons.first().find( ".ui-icon" );
|
423
|
+
this._removeClass( first, null, this.options.icons.up );
|
424
|
+
this._addClass( first, null, value.up );
|
425
|
+
last = this.buttons.last().find( ".ui-icon" );
|
426
|
+
this._removeClass( last, null, this.options.icons.down );
|
427
|
+
this._addClass( last, null, value.down );
|
428
|
+
}
|
429
|
+
|
430
|
+
this._super( key, value );
|
431
|
+
},
|
432
|
+
|
433
|
+
_setOptionDisabled: function( value ) {
|
434
|
+
this._super( value );
|
435
|
+
|
436
|
+
this._toggleClass( this.uiSpinner, null, "ui-state-disabled", !!value );
|
437
|
+
this.element.prop( "disabled", !!value );
|
438
|
+
this.buttons.button( value ? "disable" : "enable" );
|
439
|
+
},
|
440
|
+
|
441
|
+
_setOptions: spinnerModifer( function( options ) {
|
442
|
+
this._super( options );
|
443
|
+
} ),
|
444
|
+
|
445
|
+
_parse: function( val ) {
|
446
|
+
if ( typeof val === "string" && val !== "" ) {
|
447
|
+
val = window.Globalize && this.options.numberFormat ?
|
448
|
+
Globalize.parseFloat( val, 10, this.options.culture ) : +val;
|
449
|
+
}
|
450
|
+
return val === "" || isNaN( val ) ? null : val;
|
451
|
+
},
|
452
|
+
|
453
|
+
_format: function( value ) {
|
454
|
+
if ( value === "" ) {
|
455
|
+
return "";
|
456
|
+
}
|
457
|
+
return window.Globalize && this.options.numberFormat ?
|
458
|
+
Globalize.format( value, this.options.numberFormat, this.options.culture ) :
|
459
|
+
value;
|
460
|
+
},
|
461
|
+
|
462
|
+
_refresh: function() {
|
463
|
+
this.element.attr( {
|
464
|
+
"aria-valuemin": this.options.min,
|
465
|
+
"aria-valuemax": this.options.max,
|
466
|
+
|
467
|
+
// TODO: what should we do with values that can't be parsed?
|
468
|
+
"aria-valuenow": this._parse( this.element.val() )
|
469
|
+
} );
|
470
|
+
},
|
471
|
+
|
472
|
+
isValid: function() {
|
473
|
+
var value = this.value();
|
474
|
+
|
475
|
+
// Null is invalid
|
476
|
+
if ( value === null ) {
|
477
|
+
return false;
|
478
|
+
}
|
479
|
+
|
480
|
+
// If value gets adjusted, it's invalid
|
481
|
+
return value === this._adjustValue( value );
|
482
|
+
},
|
483
|
+
|
484
|
+
// Update the value without triggering change
|
485
|
+
_value: function( value, allowAny ) {
|
486
|
+
var parsed;
|
487
|
+
if ( value !== "" ) {
|
488
|
+
parsed = this._parse( value );
|
489
|
+
if ( parsed !== null ) {
|
490
|
+
if ( !allowAny ) {
|
491
|
+
parsed = this._adjustValue( parsed );
|
492
|
+
}
|
493
|
+
value = this._format( parsed );
|
494
|
+
}
|
495
|
+
}
|
496
|
+
this.element.val( value );
|
497
|
+
this._refresh();
|
498
|
+
},
|
499
|
+
|
500
|
+
_destroy: function() {
|
501
|
+
this.element
|
502
|
+
.prop( "disabled", false )
|
503
|
+
.removeAttr( "autocomplete role aria-valuemin aria-valuemax aria-valuenow" );
|
504
|
+
|
505
|
+
this.uiSpinner.replaceWith( this.element );
|
506
|
+
},
|
507
|
+
|
508
|
+
stepUp: spinnerModifer( function( steps ) {
|
509
|
+
this._stepUp( steps );
|
510
|
+
} ),
|
511
|
+
_stepUp: function( steps ) {
|
512
|
+
if ( this._start() ) {
|
513
|
+
this._spin( ( steps || 1 ) * this.options.step );
|
514
|
+
this._stop();
|
515
|
+
}
|
516
|
+
},
|
517
|
+
|
518
|
+
stepDown: spinnerModifer( function( steps ) {
|
519
|
+
this._stepDown( steps );
|
520
|
+
} ),
|
521
|
+
_stepDown: function( steps ) {
|
522
|
+
if ( this._start() ) {
|
523
|
+
this._spin( ( steps || 1 ) * -this.options.step );
|
524
|
+
this._stop();
|
525
|
+
}
|
526
|
+
},
|
527
|
+
|
528
|
+
pageUp: spinnerModifer( function( pages ) {
|
529
|
+
this._stepUp( ( pages || 1 ) * this.options.page );
|
530
|
+
} ),
|
531
|
+
|
532
|
+
pageDown: spinnerModifer( function( pages ) {
|
533
|
+
this._stepDown( ( pages || 1 ) * this.options.page );
|
534
|
+
} ),
|
535
|
+
|
536
|
+
value: function( newVal ) {
|
537
|
+
if ( !arguments.length ) {
|
538
|
+
return this._parse( this.element.val() );
|
539
|
+
}
|
540
|
+
spinnerModifer( this._value ).call( this, newVal );
|
541
|
+
},
|
542
|
+
|
543
|
+
widget: function() {
|
544
|
+
return this.uiSpinner;
|
545
|
+
}
|
546
|
+
} );
|
547
|
+
|
548
|
+
// DEPRECATED
|
549
|
+
// TODO: switch return back to widget declaration at top of file when this is removed
|
550
|
+
if ( $.uiBackCompat !== false ) {
|
551
|
+
|
552
|
+
// Backcompat for spinner html extension points
|
553
|
+
$.widget( "ui.spinner", $.ui.spinner, {
|
554
|
+
_enhance: function() {
|
555
|
+
this.uiSpinner = this.element
|
556
|
+
.attr( "autocomplete", "off" )
|
557
|
+
.wrap( this._uiSpinnerHtml() )
|
558
|
+
.parent()
|
559
|
+
|
560
|
+
// Add buttons
|
561
|
+
.append( this._buttonHtml() );
|
562
|
+
},
|
563
|
+
_uiSpinnerHtml: function() {
|
564
|
+
return "<span>";
|
565
|
+
},
|
566
|
+
|
567
|
+
_buttonHtml: function() {
|
568
|
+
return "<a></a><a></a>";
|
569
|
+
}
|
570
|
+
} );
|
571
|
+
}
|
572
|
+
|
573
|
+
return $.ui.spinner;
|
574
|
+
|
575
|
+
} ) );
|