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,497 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Droppable 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: Droppable
|
11
|
+
//>>group: Interactions
|
12
|
+
//>>description: Enables drop targets for draggable elements.
|
13
|
+
//>>docs: http://api.jqueryui.com/droppable/
|
14
|
+
//>>demos: http://jqueryui.com/droppable/
|
15
|
+
|
16
|
+
( function( factory ) {
|
17
|
+
if ( typeof define === "function" && define.amd ) {
|
18
|
+
|
19
|
+
// AMD. Register as an anonymous module.
|
20
|
+
define( [
|
21
|
+
"jquery",
|
22
|
+
"./draggable",
|
23
|
+
"./mouse",
|
24
|
+
"../version",
|
25
|
+
"../widget"
|
26
|
+
], factory );
|
27
|
+
} else {
|
28
|
+
|
29
|
+
// Browser globals
|
30
|
+
factory( jQuery );
|
31
|
+
}
|
32
|
+
}( function( $ ) {
|
33
|
+
|
34
|
+
$.widget( "ui.droppable", {
|
35
|
+
version: "1.12.1",
|
36
|
+
widgetEventPrefix: "drop",
|
37
|
+
options: {
|
38
|
+
accept: "*",
|
39
|
+
addClasses: true,
|
40
|
+
greedy: false,
|
41
|
+
scope: "default",
|
42
|
+
tolerance: "intersect",
|
43
|
+
|
44
|
+
// Callbacks
|
45
|
+
activate: null,
|
46
|
+
deactivate: null,
|
47
|
+
drop: null,
|
48
|
+
out: null,
|
49
|
+
over: null
|
50
|
+
},
|
51
|
+
_create: function() {
|
52
|
+
|
53
|
+
var proportions,
|
54
|
+
o = this.options,
|
55
|
+
accept = o.accept;
|
56
|
+
|
57
|
+
this.isover = false;
|
58
|
+
this.isout = true;
|
59
|
+
|
60
|
+
this.accept = $.isFunction( accept ) ? accept : function( d ) {
|
61
|
+
return d.is( accept );
|
62
|
+
};
|
63
|
+
|
64
|
+
this.proportions = function( /* valueToWrite */ ) {
|
65
|
+
if ( arguments.length ) {
|
66
|
+
|
67
|
+
// Store the droppable's proportions
|
68
|
+
proportions = arguments[ 0 ];
|
69
|
+
} else {
|
70
|
+
|
71
|
+
// Retrieve or derive the droppable's proportions
|
72
|
+
return proportions ?
|
73
|
+
proportions :
|
74
|
+
proportions = {
|
75
|
+
width: this.element[ 0 ].offsetWidth,
|
76
|
+
height: this.element[ 0 ].offsetHeight
|
77
|
+
};
|
78
|
+
}
|
79
|
+
};
|
80
|
+
|
81
|
+
this._addToManager( o.scope );
|
82
|
+
|
83
|
+
o.addClasses && this._addClass( "ui-droppable" );
|
84
|
+
|
85
|
+
},
|
86
|
+
|
87
|
+
_addToManager: function( scope ) {
|
88
|
+
|
89
|
+
// Add the reference and positions to the manager
|
90
|
+
$.ui.ddmanager.droppables[ scope ] = $.ui.ddmanager.droppables[ scope ] || [];
|
91
|
+
$.ui.ddmanager.droppables[ scope ].push( this );
|
92
|
+
},
|
93
|
+
|
94
|
+
_splice: function( drop ) {
|
95
|
+
var i = 0;
|
96
|
+
for ( ; i < drop.length; i++ ) {
|
97
|
+
if ( drop[ i ] === this ) {
|
98
|
+
drop.splice( i, 1 );
|
99
|
+
}
|
100
|
+
}
|
101
|
+
},
|
102
|
+
|
103
|
+
_destroy: function() {
|
104
|
+
var drop = $.ui.ddmanager.droppables[ this.options.scope ];
|
105
|
+
|
106
|
+
this._splice( drop );
|
107
|
+
},
|
108
|
+
|
109
|
+
_setOption: function( key, value ) {
|
110
|
+
|
111
|
+
if ( key === "accept" ) {
|
112
|
+
this.accept = $.isFunction( value ) ? value : function( d ) {
|
113
|
+
return d.is( value );
|
114
|
+
};
|
115
|
+
} else if ( key === "scope" ) {
|
116
|
+
var drop = $.ui.ddmanager.droppables[ this.options.scope ];
|
117
|
+
|
118
|
+
this._splice( drop );
|
119
|
+
this._addToManager( value );
|
120
|
+
}
|
121
|
+
|
122
|
+
this._super( key, value );
|
123
|
+
},
|
124
|
+
|
125
|
+
_activate: function( event ) {
|
126
|
+
var draggable = $.ui.ddmanager.current;
|
127
|
+
|
128
|
+
this._addActiveClass();
|
129
|
+
if ( draggable ) {
|
130
|
+
this._trigger( "activate", event, this.ui( draggable ) );
|
131
|
+
}
|
132
|
+
},
|
133
|
+
|
134
|
+
_deactivate: function( event ) {
|
135
|
+
var draggable = $.ui.ddmanager.current;
|
136
|
+
|
137
|
+
this._removeActiveClass();
|
138
|
+
if ( draggable ) {
|
139
|
+
this._trigger( "deactivate", event, this.ui( draggable ) );
|
140
|
+
}
|
141
|
+
},
|
142
|
+
|
143
|
+
_over: function( event ) {
|
144
|
+
|
145
|
+
var draggable = $.ui.ddmanager.current;
|
146
|
+
|
147
|
+
// Bail if draggable and droppable are same element
|
148
|
+
if ( !draggable || ( draggable.currentItem ||
|
149
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
150
|
+
return;
|
151
|
+
}
|
152
|
+
|
153
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
154
|
+
draggable.element ) ) ) {
|
155
|
+
this._addHoverClass();
|
156
|
+
this._trigger( "over", event, this.ui( draggable ) );
|
157
|
+
}
|
158
|
+
|
159
|
+
},
|
160
|
+
|
161
|
+
_out: function( event ) {
|
162
|
+
|
163
|
+
var draggable = $.ui.ddmanager.current;
|
164
|
+
|
165
|
+
// Bail if draggable and droppable are same element
|
166
|
+
if ( !draggable || ( draggable.currentItem ||
|
167
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
168
|
+
return;
|
169
|
+
}
|
170
|
+
|
171
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
172
|
+
draggable.element ) ) ) {
|
173
|
+
this._removeHoverClass();
|
174
|
+
this._trigger( "out", event, this.ui( draggable ) );
|
175
|
+
}
|
176
|
+
|
177
|
+
},
|
178
|
+
|
179
|
+
_drop: function( event, custom ) {
|
180
|
+
|
181
|
+
var draggable = custom || $.ui.ddmanager.current,
|
182
|
+
childrenIntersection = false;
|
183
|
+
|
184
|
+
// Bail if draggable and droppable are same element
|
185
|
+
if ( !draggable || ( draggable.currentItem ||
|
186
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
187
|
+
return false;
|
188
|
+
}
|
189
|
+
|
190
|
+
this.element
|
191
|
+
.find( ":data(ui-droppable)" )
|
192
|
+
.not( ".ui-draggable-dragging" )
|
193
|
+
.each( function() {
|
194
|
+
var inst = $( this ).droppable( "instance" );
|
195
|
+
if (
|
196
|
+
inst.options.greedy &&
|
197
|
+
!inst.options.disabled &&
|
198
|
+
inst.options.scope === draggable.options.scope &&
|
199
|
+
inst.accept.call(
|
200
|
+
inst.element[ 0 ], ( draggable.currentItem || draggable.element )
|
201
|
+
) &&
|
202
|
+
intersect(
|
203
|
+
draggable,
|
204
|
+
$.extend( inst, { offset: inst.element.offset() } ),
|
205
|
+
inst.options.tolerance, event
|
206
|
+
)
|
207
|
+
) {
|
208
|
+
childrenIntersection = true;
|
209
|
+
return false; }
|
210
|
+
} );
|
211
|
+
if ( childrenIntersection ) {
|
212
|
+
return false;
|
213
|
+
}
|
214
|
+
|
215
|
+
if ( this.accept.call( this.element[ 0 ],
|
216
|
+
( draggable.currentItem || draggable.element ) ) ) {
|
217
|
+
this._removeActiveClass();
|
218
|
+
this._removeHoverClass();
|
219
|
+
|
220
|
+
this._trigger( "drop", event, this.ui( draggable ) );
|
221
|
+
return this.element;
|
222
|
+
}
|
223
|
+
|
224
|
+
return false;
|
225
|
+
|
226
|
+
},
|
227
|
+
|
228
|
+
ui: function( c ) {
|
229
|
+
return {
|
230
|
+
draggable: ( c.currentItem || c.element ),
|
231
|
+
helper: c.helper,
|
232
|
+
position: c.position,
|
233
|
+
offset: c.positionAbs
|
234
|
+
};
|
235
|
+
},
|
236
|
+
|
237
|
+
// Extension points just to make backcompat sane and avoid duplicating logic
|
238
|
+
// TODO: Remove in 1.13 along with call to it below
|
239
|
+
_addHoverClass: function() {
|
240
|
+
this._addClass( "ui-droppable-hover" );
|
241
|
+
},
|
242
|
+
|
243
|
+
_removeHoverClass: function() {
|
244
|
+
this._removeClass( "ui-droppable-hover" );
|
245
|
+
},
|
246
|
+
|
247
|
+
_addActiveClass: function() {
|
248
|
+
this._addClass( "ui-droppable-active" );
|
249
|
+
},
|
250
|
+
|
251
|
+
_removeActiveClass: function() {
|
252
|
+
this._removeClass( "ui-droppable-active" );
|
253
|
+
}
|
254
|
+
} );
|
255
|
+
|
256
|
+
var intersect = $.ui.intersect = ( function() {
|
257
|
+
function isOverAxis( x, reference, size ) {
|
258
|
+
return ( x >= reference ) && ( x < ( reference + size ) );
|
259
|
+
}
|
260
|
+
|
261
|
+
return function( draggable, droppable, toleranceMode, event ) {
|
262
|
+
|
263
|
+
if ( !droppable.offset ) {
|
264
|
+
return false;
|
265
|
+
}
|
266
|
+
|
267
|
+
var x1 = ( draggable.positionAbs ||
|
268
|
+
draggable.position.absolute ).left + draggable.margins.left,
|
269
|
+
y1 = ( draggable.positionAbs ||
|
270
|
+
draggable.position.absolute ).top + draggable.margins.top,
|
271
|
+
x2 = x1 + draggable.helperProportions.width,
|
272
|
+
y2 = y1 + draggable.helperProportions.height,
|
273
|
+
l = droppable.offset.left,
|
274
|
+
t = droppable.offset.top,
|
275
|
+
r = l + droppable.proportions().width,
|
276
|
+
b = t + droppable.proportions().height;
|
277
|
+
|
278
|
+
switch ( toleranceMode ) {
|
279
|
+
case "fit":
|
280
|
+
return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );
|
281
|
+
case "intersect":
|
282
|
+
return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half
|
283
|
+
x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half
|
284
|
+
t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
|
285
|
+
y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
|
286
|
+
case "pointer":
|
287
|
+
return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
|
288
|
+
isOverAxis( event.pageX, l, droppable.proportions().width );
|
289
|
+
case "touch":
|
290
|
+
return (
|
291
|
+
( y1 >= t && y1 <= b ) || // Top edge touching
|
292
|
+
( y2 >= t && y2 <= b ) || // Bottom edge touching
|
293
|
+
( y1 < t && y2 > b ) // Surrounded vertically
|
294
|
+
) && (
|
295
|
+
( x1 >= l && x1 <= r ) || // Left edge touching
|
296
|
+
( x2 >= l && x2 <= r ) || // Right edge touching
|
297
|
+
( x1 < l && x2 > r ) // Surrounded horizontally
|
298
|
+
);
|
299
|
+
default:
|
300
|
+
return false;
|
301
|
+
}
|
302
|
+
};
|
303
|
+
} )();
|
304
|
+
|
305
|
+
/*
|
306
|
+
This manager tracks offsets of draggables and droppables
|
307
|
+
*/
|
308
|
+
$.ui.ddmanager = {
|
309
|
+
current: null,
|
310
|
+
droppables: { "default": [] },
|
311
|
+
prepareOffsets: function( t, event ) {
|
312
|
+
|
313
|
+
var i, j,
|
314
|
+
m = $.ui.ddmanager.droppables[ t.options.scope ] || [],
|
315
|
+
type = event ? event.type : null, // workaround for #2317
|
316
|
+
list = ( t.currentItem || t.element ).find( ":data(ui-droppable)" ).addBack();
|
317
|
+
|
318
|
+
droppablesLoop: for ( i = 0; i < m.length; i++ ) {
|
319
|
+
|
320
|
+
// No disabled and non-accepted
|
321
|
+
if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ],
|
322
|
+
( t.currentItem || t.element ) ) ) ) {
|
323
|
+
continue;
|
324
|
+
}
|
325
|
+
|
326
|
+
// Filter out elements in the current dragged item
|
327
|
+
for ( j = 0; j < list.length; j++ ) {
|
328
|
+
if ( list[ j ] === m[ i ].element[ 0 ] ) {
|
329
|
+
m[ i ].proportions().height = 0;
|
330
|
+
continue droppablesLoop;
|
331
|
+
}
|
332
|
+
}
|
333
|
+
|
334
|
+
m[ i ].visible = m[ i ].element.css( "display" ) !== "none";
|
335
|
+
if ( !m[ i ].visible ) {
|
336
|
+
continue;
|
337
|
+
}
|
338
|
+
|
339
|
+
// Activate the droppable if used directly from draggables
|
340
|
+
if ( type === "mousedown" ) {
|
341
|
+
m[ i ]._activate.call( m[ i ], event );
|
342
|
+
}
|
343
|
+
|
344
|
+
m[ i ].offset = m[ i ].element.offset();
|
345
|
+
m[ i ].proportions( {
|
346
|
+
width: m[ i ].element[ 0 ].offsetWidth,
|
347
|
+
height: m[ i ].element[ 0 ].offsetHeight
|
348
|
+
} );
|
349
|
+
|
350
|
+
}
|
351
|
+
|
352
|
+
},
|
353
|
+
drop: function( draggable, event ) {
|
354
|
+
|
355
|
+
var dropped = false;
|
356
|
+
|
357
|
+
// Create a copy of the droppables in case the list changes during the drop (#9116)
|
358
|
+
$.each( ( $.ui.ddmanager.droppables[ draggable.options.scope ] || [] ).slice(), function() {
|
359
|
+
|
360
|
+
if ( !this.options ) {
|
361
|
+
return;
|
362
|
+
}
|
363
|
+
if ( !this.options.disabled && this.visible &&
|
364
|
+
intersect( draggable, this, this.options.tolerance, event ) ) {
|
365
|
+
dropped = this._drop.call( this, event ) || dropped;
|
366
|
+
}
|
367
|
+
|
368
|
+
if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ],
|
369
|
+
( draggable.currentItem || draggable.element ) ) ) {
|
370
|
+
this.isout = true;
|
371
|
+
this.isover = false;
|
372
|
+
this._deactivate.call( this, event );
|
373
|
+
}
|
374
|
+
|
375
|
+
} );
|
376
|
+
return dropped;
|
377
|
+
|
378
|
+
},
|
379
|
+
dragStart: function( draggable, event ) {
|
380
|
+
|
381
|
+
// Listen for scrolling so that if the dragging causes scrolling the position of the
|
382
|
+
// droppables can be recalculated (see #5003)
|
383
|
+
draggable.element.parentsUntil( "body" ).on( "scroll.droppable", function() {
|
384
|
+
if ( !draggable.options.refreshPositions ) {
|
385
|
+
$.ui.ddmanager.prepareOffsets( draggable, event );
|
386
|
+
}
|
387
|
+
} );
|
388
|
+
},
|
389
|
+
drag: function( draggable, event ) {
|
390
|
+
|
391
|
+
// If you have a highly dynamic page, you might try this option. It renders positions
|
392
|
+
// every time you move the mouse.
|
393
|
+
if ( draggable.options.refreshPositions ) {
|
394
|
+
$.ui.ddmanager.prepareOffsets( draggable, event );
|
395
|
+
}
|
396
|
+
|
397
|
+
// Run through all droppables and check their positions based on specific tolerance options
|
398
|
+
$.each( $.ui.ddmanager.droppables[ draggable.options.scope ] || [], function() {
|
399
|
+
|
400
|
+
if ( this.options.disabled || this.greedyChild || !this.visible ) {
|
401
|
+
return;
|
402
|
+
}
|
403
|
+
|
404
|
+
var parentInstance, scope, parent,
|
405
|
+
intersects = intersect( draggable, this, this.options.tolerance, event ),
|
406
|
+
c = !intersects && this.isover ?
|
407
|
+
"isout" :
|
408
|
+
( intersects && !this.isover ? "isover" : null );
|
409
|
+
if ( !c ) {
|
410
|
+
return;
|
411
|
+
}
|
412
|
+
|
413
|
+
if ( this.options.greedy ) {
|
414
|
+
|
415
|
+
// find droppable parents with same scope
|
416
|
+
scope = this.options.scope;
|
417
|
+
parent = this.element.parents( ":data(ui-droppable)" ).filter( function() {
|
418
|
+
return $( this ).droppable( "instance" ).options.scope === scope;
|
419
|
+
} );
|
420
|
+
|
421
|
+
if ( parent.length ) {
|
422
|
+
parentInstance = $( parent[ 0 ] ).droppable( "instance" );
|
423
|
+
parentInstance.greedyChild = ( c === "isover" );
|
424
|
+
}
|
425
|
+
}
|
426
|
+
|
427
|
+
// We just moved into a greedy child
|
428
|
+
if ( parentInstance && c === "isover" ) {
|
429
|
+
parentInstance.isover = false;
|
430
|
+
parentInstance.isout = true;
|
431
|
+
parentInstance._out.call( parentInstance, event );
|
432
|
+
}
|
433
|
+
|
434
|
+
this[ c ] = true;
|
435
|
+
this[ c === "isout" ? "isover" : "isout" ] = false;
|
436
|
+
this[ c === "isover" ? "_over" : "_out" ].call( this, event );
|
437
|
+
|
438
|
+
// We just moved out of a greedy child
|
439
|
+
if ( parentInstance && c === "isout" ) {
|
440
|
+
parentInstance.isout = false;
|
441
|
+
parentInstance.isover = true;
|
442
|
+
parentInstance._over.call( parentInstance, event );
|
443
|
+
}
|
444
|
+
} );
|
445
|
+
|
446
|
+
},
|
447
|
+
dragStop: function( draggable, event ) {
|
448
|
+
draggable.element.parentsUntil( "body" ).off( "scroll.droppable" );
|
449
|
+
|
450
|
+
// Call prepareOffsets one final time since IE does not fire return scroll events when
|
451
|
+
// overflow was caused by drag (see #5003)
|
452
|
+
if ( !draggable.options.refreshPositions ) {
|
453
|
+
$.ui.ddmanager.prepareOffsets( draggable, event );
|
454
|
+
}
|
455
|
+
}
|
456
|
+
};
|
457
|
+
|
458
|
+
// DEPRECATED
|
459
|
+
// TODO: switch return back to widget declaration at top of file when this is removed
|
460
|
+
if ( $.uiBackCompat !== false ) {
|
461
|
+
|
462
|
+
// Backcompat for activeClass and hoverClass options
|
463
|
+
$.widget( "ui.droppable", $.ui.droppable, {
|
464
|
+
options: {
|
465
|
+
hoverClass: false,
|
466
|
+
activeClass: false
|
467
|
+
},
|
468
|
+
_addActiveClass: function() {
|
469
|
+
this._super();
|
470
|
+
if ( this.options.activeClass ) {
|
471
|
+
this.element.addClass( this.options.activeClass );
|
472
|
+
}
|
473
|
+
},
|
474
|
+
_removeActiveClass: function() {
|
475
|
+
this._super();
|
476
|
+
if ( this.options.activeClass ) {
|
477
|
+
this.element.removeClass( this.options.activeClass );
|
478
|
+
}
|
479
|
+
},
|
480
|
+
_addHoverClass: function() {
|
481
|
+
this._super();
|
482
|
+
if ( this.options.hoverClass ) {
|
483
|
+
this.element.addClass( this.options.hoverClass );
|
484
|
+
}
|
485
|
+
},
|
486
|
+
_removeHoverClass: function() {
|
487
|
+
this._super();
|
488
|
+
if ( this.options.hoverClass ) {
|
489
|
+
this.element.removeClass( this.options.hoverClass );
|
490
|
+
}
|
491
|
+
}
|
492
|
+
} );
|
493
|
+
}
|
494
|
+
|
495
|
+
return $.ui.droppable;
|
496
|
+
|
497
|
+
} ) );
|