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,37 @@
|
|
1
|
+
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
2
|
+
/* Written by Cloudream (cloudream@gmail.com). */
|
3
|
+
( function( factory ) {
|
4
|
+
if ( typeof define === "function" && define.amd ) {
|
5
|
+
|
6
|
+
// AMD. Register as an anonymous module.
|
7
|
+
define( [ "../widgets/datepicker" ], factory );
|
8
|
+
} else {
|
9
|
+
|
10
|
+
// Browser globals
|
11
|
+
factory( jQuery.datepicker );
|
12
|
+
}
|
13
|
+
}( function( datepicker ) {
|
14
|
+
|
15
|
+
datepicker.regional[ "zh-CN" ] = {
|
16
|
+
closeText: "关闭",
|
17
|
+
prevText: "<上月",
|
18
|
+
nextText: "下月>",
|
19
|
+
currentText: "今天",
|
20
|
+
monthNames: [ "一月","二月","三月","四月","五月","六月",
|
21
|
+
"七月","八月","九月","十月","十一月","十二月" ],
|
22
|
+
monthNamesShort: [ "一月","二月","三月","四月","五月","六月",
|
23
|
+
"七月","八月","九月","十月","十一月","十二月" ],
|
24
|
+
dayNames: [ "星期日","星期一","星期二","星期三","星期四","星期五","星期六" ],
|
25
|
+
dayNamesShort: [ "周日","周一","周二","周三","周四","周五","周六" ],
|
26
|
+
dayNamesMin: [ "日","一","二","三","四","五","六" ],
|
27
|
+
weekHeader: "周",
|
28
|
+
dateFormat: "yy-mm-dd",
|
29
|
+
firstDay: 1,
|
30
|
+
isRTL: false,
|
31
|
+
showMonthAfterYear: true,
|
32
|
+
yearSuffix: "年" };
|
33
|
+
datepicker.setDefaults( datepicker.regional[ "zh-CN" ] );
|
34
|
+
|
35
|
+
return datepicker.regional[ "zh-CN" ];
|
36
|
+
|
37
|
+
} ) );
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
2
|
+
/* Written by SCCY (samuelcychan@gmail.com). */
|
3
|
+
( function( factory ) {
|
4
|
+
if ( typeof define === "function" && define.amd ) {
|
5
|
+
|
6
|
+
// AMD. Register as an anonymous module.
|
7
|
+
define( [ "../widgets/datepicker" ], factory );
|
8
|
+
} else {
|
9
|
+
|
10
|
+
// Browser globals
|
11
|
+
factory( jQuery.datepicker );
|
12
|
+
}
|
13
|
+
}( function( datepicker ) {
|
14
|
+
|
15
|
+
datepicker.regional[ "zh-HK" ] = {
|
16
|
+
closeText: "關閉",
|
17
|
+
prevText: "<上月",
|
18
|
+
nextText: "下月>",
|
19
|
+
currentText: "今天",
|
20
|
+
monthNames: [ "一月","二月","三月","四月","五月","六月",
|
21
|
+
"七月","八月","九月","十月","十一月","十二月" ],
|
22
|
+
monthNamesShort: [ "一月","二月","三月","四月","五月","六月",
|
23
|
+
"七月","八月","九月","十月","十一月","十二月" ],
|
24
|
+
dayNames: [ "星期日","星期一","星期二","星期三","星期四","星期五","星期六" ],
|
25
|
+
dayNamesShort: [ "周日","周一","周二","周三","周四","周五","周六" ],
|
26
|
+
dayNamesMin: [ "日","一","二","三","四","五","六" ],
|
27
|
+
weekHeader: "周",
|
28
|
+
dateFormat: "dd-mm-yy",
|
29
|
+
firstDay: 0,
|
30
|
+
isRTL: false,
|
31
|
+
showMonthAfterYear: true,
|
32
|
+
yearSuffix: "年" };
|
33
|
+
datepicker.setDefaults( datepicker.regional[ "zh-HK" ] );
|
34
|
+
|
35
|
+
return datepicker.regional[ "zh-HK" ];
|
36
|
+
|
37
|
+
} ) );
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
2
|
+
/* Written by Ressol (ressol@gmail.com). */
|
3
|
+
( function( factory ) {
|
4
|
+
if ( typeof define === "function" && define.amd ) {
|
5
|
+
|
6
|
+
// AMD. Register as an anonymous module.
|
7
|
+
define( [ "../widgets/datepicker" ], factory );
|
8
|
+
} else {
|
9
|
+
|
10
|
+
// Browser globals
|
11
|
+
factory( jQuery.datepicker );
|
12
|
+
}
|
13
|
+
}( function( datepicker ) {
|
14
|
+
|
15
|
+
datepicker.regional[ "zh-TW" ] = {
|
16
|
+
closeText: "關閉",
|
17
|
+
prevText: "<上月",
|
18
|
+
nextText: "下月>",
|
19
|
+
currentText: "今天",
|
20
|
+
monthNames: [ "一月","二月","三月","四月","五月","六月",
|
21
|
+
"七月","八月","九月","十月","十一月","十二月" ],
|
22
|
+
monthNamesShort: [ "一月","二月","三月","四月","五月","六月",
|
23
|
+
"七月","八月","九月","十月","十一月","十二月" ],
|
24
|
+
dayNames: [ "星期日","星期一","星期二","星期三","星期四","星期五","星期六" ],
|
25
|
+
dayNamesShort: [ "周日","周一","周二","周三","周四","周五","周六" ],
|
26
|
+
dayNamesMin: [ "日","一","二","三","四","五","六" ],
|
27
|
+
weekHeader: "周",
|
28
|
+
dateFormat: "yy/mm/dd",
|
29
|
+
firstDay: 1,
|
30
|
+
isRTL: false,
|
31
|
+
showMonthAfterYear: true,
|
32
|
+
yearSuffix: "年" };
|
33
|
+
datepicker.setDefaults( datepicker.regional[ "zh-TW" ] );
|
34
|
+
|
35
|
+
return datepicker.regional[ "zh-TW" ];
|
36
|
+
|
37
|
+
} ) );
|
@@ -0,0 +1,15 @@
|
|
1
|
+
( function( factory ) {
|
2
|
+
if ( typeof define === "function" && define.amd ) {
|
3
|
+
|
4
|
+
// AMD. Register as an anonymous module.
|
5
|
+
define( [ "jquery", "./version" ], factory );
|
6
|
+
} else {
|
7
|
+
|
8
|
+
// Browser globals
|
9
|
+
factory( jQuery );
|
10
|
+
}
|
11
|
+
} ( function( $ ) {
|
12
|
+
|
13
|
+
// This file is deprecated
|
14
|
+
return $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
15
|
+
} ) );
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Support for jQuery core 1.7.x 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
|
+
|
11
|
+
//>>label: jQuery 1.7 Support
|
12
|
+
//>>group: Core
|
13
|
+
//>>description: Support version 1.7.x of jQuery core
|
14
|
+
|
15
|
+
( function( factory ) {
|
16
|
+
if ( typeof define === "function" && define.amd ) {
|
17
|
+
|
18
|
+
// AMD. Register as an anonymous module.
|
19
|
+
define( [ "jquery", "./version" ], factory );
|
20
|
+
} else {
|
21
|
+
|
22
|
+
// Browser globals
|
23
|
+
factory( jQuery );
|
24
|
+
}
|
25
|
+
}( function( $ ) {
|
26
|
+
|
27
|
+
// Support: jQuery 1.7 only
|
28
|
+
// Not a great way to check versions, but since we only support 1.7+ and only
|
29
|
+
// need to detect <1.8, this is a simple check that should suffice. Checking
|
30
|
+
// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0
|
31
|
+
// and we'll never reach 1.70.0 (if we do, we certainly won't be supporting
|
32
|
+
// 1.7 anymore). See #11197 for why we're not using feature detection.
|
33
|
+
if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
|
34
|
+
|
35
|
+
// Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight()
|
36
|
+
// Unlike jQuery Core 1.8+, these only support numeric values to set the
|
37
|
+
// dimensions in pixels
|
38
|
+
$.each( [ "Width", "Height" ], function( i, name ) {
|
39
|
+
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
40
|
+
type = name.toLowerCase(),
|
41
|
+
orig = {
|
42
|
+
innerWidth: $.fn.innerWidth,
|
43
|
+
innerHeight: $.fn.innerHeight,
|
44
|
+
outerWidth: $.fn.outerWidth,
|
45
|
+
outerHeight: $.fn.outerHeight
|
46
|
+
};
|
47
|
+
|
48
|
+
function reduce( elem, size, border, margin ) {
|
49
|
+
$.each( side, function() {
|
50
|
+
size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
|
51
|
+
if ( border ) {
|
52
|
+
size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
|
53
|
+
}
|
54
|
+
if ( margin ) {
|
55
|
+
size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
|
56
|
+
}
|
57
|
+
} );
|
58
|
+
return size;
|
59
|
+
}
|
60
|
+
|
61
|
+
$.fn[ "inner" + name ] = function( size ) {
|
62
|
+
if ( size === undefined ) {
|
63
|
+
return orig[ "inner" + name ].call( this );
|
64
|
+
}
|
65
|
+
|
66
|
+
return this.each( function() {
|
67
|
+
$( this ).css( type, reduce( this, size ) + "px" );
|
68
|
+
} );
|
69
|
+
};
|
70
|
+
|
71
|
+
$.fn[ "outer" + name ] = function( size, margin ) {
|
72
|
+
if ( typeof size !== "number" ) {
|
73
|
+
return orig[ "outer" + name ].call( this, size );
|
74
|
+
}
|
75
|
+
|
76
|
+
return this.each( function() {
|
77
|
+
$( this ).css( type, reduce( this, size, true, margin ) + "px" );
|
78
|
+
} );
|
79
|
+
};
|
80
|
+
} );
|
81
|
+
|
82
|
+
$.fn.addBack = function( selector ) {
|
83
|
+
return this.add( selector == null ?
|
84
|
+
this.prevObject : this.prevObject.filter( selector )
|
85
|
+
);
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
89
|
+
} ) );
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Keycode 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: Keycode
|
11
|
+
//>>group: Core
|
12
|
+
//>>description: Provide keycodes as keynames
|
13
|
+
//>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/
|
14
|
+
|
15
|
+
( function( factory ) {
|
16
|
+
if ( typeof define === "function" && define.amd ) {
|
17
|
+
|
18
|
+
// AMD. Register as an anonymous module.
|
19
|
+
define( [ "jquery", "./version" ], factory );
|
20
|
+
} else {
|
21
|
+
|
22
|
+
// Browser globals
|
23
|
+
factory( jQuery );
|
24
|
+
}
|
25
|
+
} ( function( $ ) {
|
26
|
+
return $.ui.keyCode = {
|
27
|
+
BACKSPACE: 8,
|
28
|
+
COMMA: 188,
|
29
|
+
DELETE: 46,
|
30
|
+
DOWN: 40,
|
31
|
+
END: 35,
|
32
|
+
ENTER: 13,
|
33
|
+
ESCAPE: 27,
|
34
|
+
HOME: 36,
|
35
|
+
LEFT: 37,
|
36
|
+
PAGE_DOWN: 34,
|
37
|
+
PAGE_UP: 33,
|
38
|
+
PERIOD: 190,
|
39
|
+
RIGHT: 39,
|
40
|
+
SPACE: 32,
|
41
|
+
TAB: 9,
|
42
|
+
UP: 38
|
43
|
+
};
|
44
|
+
|
45
|
+
} ) );
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Labels 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: labels
|
11
|
+
//>>group: Core
|
12
|
+
//>>description: Find all the labels associated with a given input
|
13
|
+
//>>docs: http://api.jqueryui.com/labels/
|
14
|
+
|
15
|
+
( function( factory ) {
|
16
|
+
if ( typeof define === "function" && define.amd ) {
|
17
|
+
|
18
|
+
// AMD. Register as an anonymous module.
|
19
|
+
define( [ "jquery", "./version", "./escape-selector" ], factory );
|
20
|
+
} else {
|
21
|
+
|
22
|
+
// Browser globals
|
23
|
+
factory( jQuery );
|
24
|
+
}
|
25
|
+
} ( function( $ ) {
|
26
|
+
|
27
|
+
return $.fn.labels = function() {
|
28
|
+
var ancestor, selector, id, labels, ancestors;
|
29
|
+
|
30
|
+
// Check control.labels first
|
31
|
+
if ( this[ 0 ].labels && this[ 0 ].labels.length ) {
|
32
|
+
return this.pushStack( this[ 0 ].labels );
|
33
|
+
}
|
34
|
+
|
35
|
+
// Support: IE <= 11, FF <= 37, Android <= 2.3 only
|
36
|
+
// Above browsers do not support control.labels. Everything below is to support them
|
37
|
+
// as well as document fragments. control.labels does not work on document fragments
|
38
|
+
labels = this.eq( 0 ).parents( "label" );
|
39
|
+
|
40
|
+
// Look for the label based on the id
|
41
|
+
id = this.attr( "id" );
|
42
|
+
if ( id ) {
|
43
|
+
|
44
|
+
// We don't search against the document in case the element
|
45
|
+
// is disconnected from the DOM
|
46
|
+
ancestor = this.eq( 0 ).parents().last();
|
47
|
+
|
48
|
+
// Get a full set of top level ancestors
|
49
|
+
ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
|
50
|
+
|
51
|
+
// Create a selector for the label based on the id
|
52
|
+
selector = "label[for='" + $.ui.escapeSelector( id ) + "']";
|
53
|
+
|
54
|
+
labels = labels.add( ancestors.find( selector ).addBack( selector ) );
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
// Return whatever we have found for labels
|
59
|
+
return this.pushStack( labels );
|
60
|
+
};
|
61
|
+
|
62
|
+
} ) );
|
@@ -0,0 +1,44 @@
|
|
1
|
+
( function( factory ) {
|
2
|
+
if ( typeof define === "function" && define.amd ) {
|
3
|
+
|
4
|
+
// AMD. Register as an anonymous module.
|
5
|
+
define( [ "jquery", "./version" ], factory );
|
6
|
+
} else {
|
7
|
+
|
8
|
+
// Browser globals
|
9
|
+
factory( jQuery );
|
10
|
+
}
|
11
|
+
} ( function( $ ) {
|
12
|
+
|
13
|
+
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
14
|
+
return $.ui.plugin = {
|
15
|
+
add: function( module, option, set ) {
|
16
|
+
var i,
|
17
|
+
proto = $.ui[ module ].prototype;
|
18
|
+
for ( i in set ) {
|
19
|
+
proto.plugins[ i ] = proto.plugins[ i ] || [];
|
20
|
+
proto.plugins[ i ].push( [ option, set[ i ] ] );
|
21
|
+
}
|
22
|
+
},
|
23
|
+
call: function( instance, name, args, allowDisconnected ) {
|
24
|
+
var i,
|
25
|
+
set = instance.plugins[ name ];
|
26
|
+
|
27
|
+
if ( !set ) {
|
28
|
+
return;
|
29
|
+
}
|
30
|
+
|
31
|
+
if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode ||
|
32
|
+
instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
|
33
|
+
return;
|
34
|
+
}
|
35
|
+
|
36
|
+
for ( i = 0; i < set.length; i++ ) {
|
37
|
+
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
38
|
+
set[ i ][ 1 ].apply( instance.element, args );
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
};
|
43
|
+
|
44
|
+
} ) );
|
@@ -0,0 +1,498 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Position 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
|
+
* http://api.jqueryui.com/position/
|
10
|
+
*/
|
11
|
+
|
12
|
+
//>>label: Position
|
13
|
+
//>>group: Core
|
14
|
+
//>>description: Positions elements relative to other elements.
|
15
|
+
//>>docs: http://api.jqueryui.com/position/
|
16
|
+
//>>demos: http://jqueryui.com/position/
|
17
|
+
|
18
|
+
( function( factory ) {
|
19
|
+
if ( typeof define === "function" && define.amd ) {
|
20
|
+
|
21
|
+
// AMD. Register as an anonymous module.
|
22
|
+
define( [ "jquery", "./version" ], factory );
|
23
|
+
} else {
|
24
|
+
|
25
|
+
// Browser globals
|
26
|
+
factory( jQuery );
|
27
|
+
}
|
28
|
+
}( function( $ ) {
|
29
|
+
( function() {
|
30
|
+
var cachedScrollbarWidth,
|
31
|
+
max = Math.max,
|
32
|
+
abs = Math.abs,
|
33
|
+
rhorizontal = /left|center|right/,
|
34
|
+
rvertical = /top|center|bottom/,
|
35
|
+
roffset = /[\+\-]\d+(\.[\d]+)?%?/,
|
36
|
+
rposition = /^\w+/,
|
37
|
+
rpercent = /%$/,
|
38
|
+
_position = $.fn.position;
|
39
|
+
|
40
|
+
function getOffsets( offsets, width, height ) {
|
41
|
+
return [
|
42
|
+
parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
|
43
|
+
parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
|
44
|
+
];
|
45
|
+
}
|
46
|
+
|
47
|
+
function parseCss( element, property ) {
|
48
|
+
return parseInt( $.css( element, property ), 10 ) || 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
function getDimensions( elem ) {
|
52
|
+
var raw = elem[ 0 ];
|
53
|
+
if ( raw.nodeType === 9 ) {
|
54
|
+
return {
|
55
|
+
width: elem.width(),
|
56
|
+
height: elem.height(),
|
57
|
+
offset: { top: 0, left: 0 }
|
58
|
+
};
|
59
|
+
}
|
60
|
+
if ( $.isWindow( raw ) ) {
|
61
|
+
return {
|
62
|
+
width: elem.width(),
|
63
|
+
height: elem.height(),
|
64
|
+
offset: { top: elem.scrollTop(), left: elem.scrollLeft() }
|
65
|
+
};
|
66
|
+
}
|
67
|
+
if ( raw.preventDefault ) {
|
68
|
+
return {
|
69
|
+
width: 0,
|
70
|
+
height: 0,
|
71
|
+
offset: { top: raw.pageY, left: raw.pageX }
|
72
|
+
};
|
73
|
+
}
|
74
|
+
return {
|
75
|
+
width: elem.outerWidth(),
|
76
|
+
height: elem.outerHeight(),
|
77
|
+
offset: elem.offset()
|
78
|
+
};
|
79
|
+
}
|
80
|
+
|
81
|
+
$.position = {
|
82
|
+
scrollbarWidth: function() {
|
83
|
+
if ( cachedScrollbarWidth !== undefined ) {
|
84
|
+
return cachedScrollbarWidth;
|
85
|
+
}
|
86
|
+
var w1, w2,
|
87
|
+
div = $( "<div " +
|
88
|
+
"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +
|
89
|
+
"<div style='height:100px;width:auto;'></div></div>" ),
|
90
|
+
innerDiv = div.children()[ 0 ];
|
91
|
+
|
92
|
+
$( "body" ).append( div );
|
93
|
+
w1 = innerDiv.offsetWidth;
|
94
|
+
div.css( "overflow", "scroll" );
|
95
|
+
|
96
|
+
w2 = innerDiv.offsetWidth;
|
97
|
+
|
98
|
+
if ( w1 === w2 ) {
|
99
|
+
w2 = div[ 0 ].clientWidth;
|
100
|
+
}
|
101
|
+
|
102
|
+
div.remove();
|
103
|
+
|
104
|
+
return ( cachedScrollbarWidth = w1 - w2 );
|
105
|
+
},
|
106
|
+
getScrollInfo: function( within ) {
|
107
|
+
var overflowX = within.isWindow || within.isDocument ? "" :
|
108
|
+
within.element.css( "overflow-x" ),
|
109
|
+
overflowY = within.isWindow || within.isDocument ? "" :
|
110
|
+
within.element.css( "overflow-y" ),
|
111
|
+
hasOverflowX = overflowX === "scroll" ||
|
112
|
+
( overflowX === "auto" && within.width < within.element[ 0 ].scrollWidth ),
|
113
|
+
hasOverflowY = overflowY === "scroll" ||
|
114
|
+
( overflowY === "auto" && within.height < within.element[ 0 ].scrollHeight );
|
115
|
+
return {
|
116
|
+
width: hasOverflowY ? $.position.scrollbarWidth() : 0,
|
117
|
+
height: hasOverflowX ? $.position.scrollbarWidth() : 0
|
118
|
+
};
|
119
|
+
},
|
120
|
+
getWithinInfo: function( element ) {
|
121
|
+
var withinElement = $( element || window ),
|
122
|
+
isWindow = $.isWindow( withinElement[ 0 ] ),
|
123
|
+
isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
|
124
|
+
hasOffset = !isWindow && !isDocument;
|
125
|
+
return {
|
126
|
+
element: withinElement,
|
127
|
+
isWindow: isWindow,
|
128
|
+
isDocument: isDocument,
|
129
|
+
offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
|
130
|
+
scrollLeft: withinElement.scrollLeft(),
|
131
|
+
scrollTop: withinElement.scrollTop(),
|
132
|
+
width: withinElement.outerWidth(),
|
133
|
+
height: withinElement.outerHeight()
|
134
|
+
};
|
135
|
+
}
|
136
|
+
};
|
137
|
+
|
138
|
+
$.fn.position = function( options ) {
|
139
|
+
if ( !options || !options.of ) {
|
140
|
+
return _position.apply( this, arguments );
|
141
|
+
}
|
142
|
+
|
143
|
+
// Make a copy, we don't want to modify arguments
|
144
|
+
options = $.extend( {}, options );
|
145
|
+
|
146
|
+
var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
|
147
|
+
target = $( options.of ),
|
148
|
+
within = $.position.getWithinInfo( options.within ),
|
149
|
+
scrollInfo = $.position.getScrollInfo( within ),
|
150
|
+
collision = ( options.collision || "flip" ).split( " " ),
|
151
|
+
offsets = {};
|
152
|
+
|
153
|
+
dimensions = getDimensions( target );
|
154
|
+
if ( target[ 0 ].preventDefault ) {
|
155
|
+
|
156
|
+
// Force left top to allow flipping
|
157
|
+
options.at = "left top";
|
158
|
+
}
|
159
|
+
targetWidth = dimensions.width;
|
160
|
+
targetHeight = dimensions.height;
|
161
|
+
targetOffset = dimensions.offset;
|
162
|
+
|
163
|
+
// Clone to reuse original targetOffset later
|
164
|
+
basePosition = $.extend( {}, targetOffset );
|
165
|
+
|
166
|
+
// Force my and at to have valid horizontal and vertical positions
|
167
|
+
// if a value is missing or invalid, it will be converted to center
|
168
|
+
$.each( [ "my", "at" ], function() {
|
169
|
+
var pos = ( options[ this ] || "" ).split( " " ),
|
170
|
+
horizontalOffset,
|
171
|
+
verticalOffset;
|
172
|
+
|
173
|
+
if ( pos.length === 1 ) {
|
174
|
+
pos = rhorizontal.test( pos[ 0 ] ) ?
|
175
|
+
pos.concat( [ "center" ] ) :
|
176
|
+
rvertical.test( pos[ 0 ] ) ?
|
177
|
+
[ "center" ].concat( pos ) :
|
178
|
+
[ "center", "center" ];
|
179
|
+
}
|
180
|
+
pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
|
181
|
+
pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
|
182
|
+
|
183
|
+
// Calculate offsets
|
184
|
+
horizontalOffset = roffset.exec( pos[ 0 ] );
|
185
|
+
verticalOffset = roffset.exec( pos[ 1 ] );
|
186
|
+
offsets[ this ] = [
|
187
|
+
horizontalOffset ? horizontalOffset[ 0 ] : 0,
|
188
|
+
verticalOffset ? verticalOffset[ 0 ] : 0
|
189
|
+
];
|
190
|
+
|
191
|
+
// Reduce to just the positions without the offsets
|
192
|
+
options[ this ] = [
|
193
|
+
rposition.exec( pos[ 0 ] )[ 0 ],
|
194
|
+
rposition.exec( pos[ 1 ] )[ 0 ]
|
195
|
+
];
|
196
|
+
} );
|
197
|
+
|
198
|
+
// Normalize collision option
|
199
|
+
if ( collision.length === 1 ) {
|
200
|
+
collision[ 1 ] = collision[ 0 ];
|
201
|
+
}
|
202
|
+
|
203
|
+
if ( options.at[ 0 ] === "right" ) {
|
204
|
+
basePosition.left += targetWidth;
|
205
|
+
} else if ( options.at[ 0 ] === "center" ) {
|
206
|
+
basePosition.left += targetWidth / 2;
|
207
|
+
}
|
208
|
+
|
209
|
+
if ( options.at[ 1 ] === "bottom" ) {
|
210
|
+
basePosition.top += targetHeight;
|
211
|
+
} else if ( options.at[ 1 ] === "center" ) {
|
212
|
+
basePosition.top += targetHeight / 2;
|
213
|
+
}
|
214
|
+
|
215
|
+
atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
|
216
|
+
basePosition.left += atOffset[ 0 ];
|
217
|
+
basePosition.top += atOffset[ 1 ];
|
218
|
+
|
219
|
+
return this.each( function() {
|
220
|
+
var collisionPosition, using,
|
221
|
+
elem = $( this ),
|
222
|
+
elemWidth = elem.outerWidth(),
|
223
|
+
elemHeight = elem.outerHeight(),
|
224
|
+
marginLeft = parseCss( this, "marginLeft" ),
|
225
|
+
marginTop = parseCss( this, "marginTop" ),
|
226
|
+
collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) +
|
227
|
+
scrollInfo.width,
|
228
|
+
collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) +
|
229
|
+
scrollInfo.height,
|
230
|
+
position = $.extend( {}, basePosition ),
|
231
|
+
myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
|
232
|
+
|
233
|
+
if ( options.my[ 0 ] === "right" ) {
|
234
|
+
position.left -= elemWidth;
|
235
|
+
} else if ( options.my[ 0 ] === "center" ) {
|
236
|
+
position.left -= elemWidth / 2;
|
237
|
+
}
|
238
|
+
|
239
|
+
if ( options.my[ 1 ] === "bottom" ) {
|
240
|
+
position.top -= elemHeight;
|
241
|
+
} else if ( options.my[ 1 ] === "center" ) {
|
242
|
+
position.top -= elemHeight / 2;
|
243
|
+
}
|
244
|
+
|
245
|
+
position.left += myOffset[ 0 ];
|
246
|
+
position.top += myOffset[ 1 ];
|
247
|
+
|
248
|
+
collisionPosition = {
|
249
|
+
marginLeft: marginLeft,
|
250
|
+
marginTop: marginTop
|
251
|
+
};
|
252
|
+
|
253
|
+
$.each( [ "left", "top" ], function( i, dir ) {
|
254
|
+
if ( $.ui.position[ collision[ i ] ] ) {
|
255
|
+
$.ui.position[ collision[ i ] ][ dir ]( position, {
|
256
|
+
targetWidth: targetWidth,
|
257
|
+
targetHeight: targetHeight,
|
258
|
+
elemWidth: elemWidth,
|
259
|
+
elemHeight: elemHeight,
|
260
|
+
collisionPosition: collisionPosition,
|
261
|
+
collisionWidth: collisionWidth,
|
262
|
+
collisionHeight: collisionHeight,
|
263
|
+
offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
|
264
|
+
my: options.my,
|
265
|
+
at: options.at,
|
266
|
+
within: within,
|
267
|
+
elem: elem
|
268
|
+
} );
|
269
|
+
}
|
270
|
+
} );
|
271
|
+
|
272
|
+
if ( options.using ) {
|
273
|
+
|
274
|
+
// Adds feedback as second argument to using callback, if present
|
275
|
+
using = function( props ) {
|
276
|
+
var left = targetOffset.left - position.left,
|
277
|
+
right = left + targetWidth - elemWidth,
|
278
|
+
top = targetOffset.top - position.top,
|
279
|
+
bottom = top + targetHeight - elemHeight,
|
280
|
+
feedback = {
|
281
|
+
target: {
|
282
|
+
element: target,
|
283
|
+
left: targetOffset.left,
|
284
|
+
top: targetOffset.top,
|
285
|
+
width: targetWidth,
|
286
|
+
height: targetHeight
|
287
|
+
},
|
288
|
+
element: {
|
289
|
+
element: elem,
|
290
|
+
left: position.left,
|
291
|
+
top: position.top,
|
292
|
+
width: elemWidth,
|
293
|
+
height: elemHeight
|
294
|
+
},
|
295
|
+
horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
|
296
|
+
vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
|
297
|
+
};
|
298
|
+
if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
|
299
|
+
feedback.horizontal = "center";
|
300
|
+
}
|
301
|
+
if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
|
302
|
+
feedback.vertical = "middle";
|
303
|
+
}
|
304
|
+
if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
|
305
|
+
feedback.important = "horizontal";
|
306
|
+
} else {
|
307
|
+
feedback.important = "vertical";
|
308
|
+
}
|
309
|
+
options.using.call( this, props, feedback );
|
310
|
+
};
|
311
|
+
}
|
312
|
+
|
313
|
+
elem.offset( $.extend( position, { using: using } ) );
|
314
|
+
} );
|
315
|
+
};
|
316
|
+
|
317
|
+
$.ui.position = {
|
318
|
+
fit: {
|
319
|
+
left: function( position, data ) {
|
320
|
+
var within = data.within,
|
321
|
+
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
|
322
|
+
outerWidth = within.width,
|
323
|
+
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
|
324
|
+
overLeft = withinOffset - collisionPosLeft,
|
325
|
+
overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
|
326
|
+
newOverRight;
|
327
|
+
|
328
|
+
// Element is wider than within
|
329
|
+
if ( data.collisionWidth > outerWidth ) {
|
330
|
+
|
331
|
+
// Element is initially over the left side of within
|
332
|
+
if ( overLeft > 0 && overRight <= 0 ) {
|
333
|
+
newOverRight = position.left + overLeft + data.collisionWidth - outerWidth -
|
334
|
+
withinOffset;
|
335
|
+
position.left += overLeft - newOverRight;
|
336
|
+
|
337
|
+
// Element is initially over right side of within
|
338
|
+
} else if ( overRight > 0 && overLeft <= 0 ) {
|
339
|
+
position.left = withinOffset;
|
340
|
+
|
341
|
+
// Element is initially over both left and right sides of within
|
342
|
+
} else {
|
343
|
+
if ( overLeft > overRight ) {
|
344
|
+
position.left = withinOffset + outerWidth - data.collisionWidth;
|
345
|
+
} else {
|
346
|
+
position.left = withinOffset;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
// Too far left -> align with left edge
|
351
|
+
} else if ( overLeft > 0 ) {
|
352
|
+
position.left += overLeft;
|
353
|
+
|
354
|
+
// Too far right -> align with right edge
|
355
|
+
} else if ( overRight > 0 ) {
|
356
|
+
position.left -= overRight;
|
357
|
+
|
358
|
+
// Adjust based on position and margin
|
359
|
+
} else {
|
360
|
+
position.left = max( position.left - collisionPosLeft, position.left );
|
361
|
+
}
|
362
|
+
},
|
363
|
+
top: function( position, data ) {
|
364
|
+
var within = data.within,
|
365
|
+
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
|
366
|
+
outerHeight = data.within.height,
|
367
|
+
collisionPosTop = position.top - data.collisionPosition.marginTop,
|
368
|
+
overTop = withinOffset - collisionPosTop,
|
369
|
+
overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
|
370
|
+
newOverBottom;
|
371
|
+
|
372
|
+
// Element is taller than within
|
373
|
+
if ( data.collisionHeight > outerHeight ) {
|
374
|
+
|
375
|
+
// Element is initially over the top of within
|
376
|
+
if ( overTop > 0 && overBottom <= 0 ) {
|
377
|
+
newOverBottom = position.top + overTop + data.collisionHeight - outerHeight -
|
378
|
+
withinOffset;
|
379
|
+
position.top += overTop - newOverBottom;
|
380
|
+
|
381
|
+
// Element is initially over bottom of within
|
382
|
+
} else if ( overBottom > 0 && overTop <= 0 ) {
|
383
|
+
position.top = withinOffset;
|
384
|
+
|
385
|
+
// Element is initially over both top and bottom of within
|
386
|
+
} else {
|
387
|
+
if ( overTop > overBottom ) {
|
388
|
+
position.top = withinOffset + outerHeight - data.collisionHeight;
|
389
|
+
} else {
|
390
|
+
position.top = withinOffset;
|
391
|
+
}
|
392
|
+
}
|
393
|
+
|
394
|
+
// Too far up -> align with top
|
395
|
+
} else if ( overTop > 0 ) {
|
396
|
+
position.top += overTop;
|
397
|
+
|
398
|
+
// Too far down -> align with bottom edge
|
399
|
+
} else if ( overBottom > 0 ) {
|
400
|
+
position.top -= overBottom;
|
401
|
+
|
402
|
+
// Adjust based on position and margin
|
403
|
+
} else {
|
404
|
+
position.top = max( position.top - collisionPosTop, position.top );
|
405
|
+
}
|
406
|
+
}
|
407
|
+
},
|
408
|
+
flip: {
|
409
|
+
left: function( position, data ) {
|
410
|
+
var within = data.within,
|
411
|
+
withinOffset = within.offset.left + within.scrollLeft,
|
412
|
+
outerWidth = within.width,
|
413
|
+
offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
|
414
|
+
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
|
415
|
+
overLeft = collisionPosLeft - offsetLeft,
|
416
|
+
overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
|
417
|
+
myOffset = data.my[ 0 ] === "left" ?
|
418
|
+
-data.elemWidth :
|
419
|
+
data.my[ 0 ] === "right" ?
|
420
|
+
data.elemWidth :
|
421
|
+
0,
|
422
|
+
atOffset = data.at[ 0 ] === "left" ?
|
423
|
+
data.targetWidth :
|
424
|
+
data.at[ 0 ] === "right" ?
|
425
|
+
-data.targetWidth :
|
426
|
+
0,
|
427
|
+
offset = -2 * data.offset[ 0 ],
|
428
|
+
newOverRight,
|
429
|
+
newOverLeft;
|
430
|
+
|
431
|
+
if ( overLeft < 0 ) {
|
432
|
+
newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth -
|
433
|
+
outerWidth - withinOffset;
|
434
|
+
if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
|
435
|
+
position.left += myOffset + atOffset + offset;
|
436
|
+
}
|
437
|
+
} else if ( overRight > 0 ) {
|
438
|
+
newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset +
|
439
|
+
atOffset + offset - offsetLeft;
|
440
|
+
if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
|
441
|
+
position.left += myOffset + atOffset + offset;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
},
|
445
|
+
top: function( position, data ) {
|
446
|
+
var within = data.within,
|
447
|
+
withinOffset = within.offset.top + within.scrollTop,
|
448
|
+
outerHeight = within.height,
|
449
|
+
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
|
450
|
+
collisionPosTop = position.top - data.collisionPosition.marginTop,
|
451
|
+
overTop = collisionPosTop - offsetTop,
|
452
|
+
overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
|
453
|
+
top = data.my[ 1 ] === "top",
|
454
|
+
myOffset = top ?
|
455
|
+
-data.elemHeight :
|
456
|
+
data.my[ 1 ] === "bottom" ?
|
457
|
+
data.elemHeight :
|
458
|
+
0,
|
459
|
+
atOffset = data.at[ 1 ] === "top" ?
|
460
|
+
data.targetHeight :
|
461
|
+
data.at[ 1 ] === "bottom" ?
|
462
|
+
-data.targetHeight :
|
463
|
+
0,
|
464
|
+
offset = -2 * data.offset[ 1 ],
|
465
|
+
newOverTop,
|
466
|
+
newOverBottom;
|
467
|
+
if ( overTop < 0 ) {
|
468
|
+
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight -
|
469
|
+
outerHeight - withinOffset;
|
470
|
+
if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
|
471
|
+
position.top += myOffset + atOffset + offset;
|
472
|
+
}
|
473
|
+
} else if ( overBottom > 0 ) {
|
474
|
+
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset +
|
475
|
+
offset - offsetTop;
|
476
|
+
if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
|
477
|
+
position.top += myOffset + atOffset + offset;
|
478
|
+
}
|
479
|
+
}
|
480
|
+
}
|
481
|
+
},
|
482
|
+
flipfit: {
|
483
|
+
left: function() {
|
484
|
+
$.ui.position.flip.left.apply( this, arguments );
|
485
|
+
$.ui.position.fit.left.apply( this, arguments );
|
486
|
+
},
|
487
|
+
top: function() {
|
488
|
+
$.ui.position.flip.top.apply( this, arguments );
|
489
|
+
$.ui.position.fit.top.apply( this, arguments );
|
490
|
+
}
|
491
|
+
}
|
492
|
+
};
|
493
|
+
|
494
|
+
} )();
|
495
|
+
|
496
|
+
return $.ui.position;
|
497
|
+
|
498
|
+
} ) );
|