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,40 @@
|
|
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
|
+
return $.ui.safeActiveElement = function( document ) {
|
13
|
+
var activeElement;
|
14
|
+
|
15
|
+
// Support: IE 9 only
|
16
|
+
// IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
|
17
|
+
try {
|
18
|
+
activeElement = document.activeElement;
|
19
|
+
} catch ( error ) {
|
20
|
+
activeElement = document.body;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Support: IE 9 - 11 only
|
24
|
+
// IE may return null instead of an element
|
25
|
+
// Interestingly, this only seems to occur when NOT in an iframe
|
26
|
+
if ( !activeElement ) {
|
27
|
+
activeElement = document.body;
|
28
|
+
}
|
29
|
+
|
30
|
+
// Support: IE 11 only
|
31
|
+
// IE11 returns a seemingly empty object in some cases when accessing
|
32
|
+
// document.activeElement from an <iframe>
|
33
|
+
if ( !activeElement.nodeName ) {
|
34
|
+
activeElement = document.body;
|
35
|
+
}
|
36
|
+
|
37
|
+
return activeElement;
|
38
|
+
};
|
39
|
+
|
40
|
+
} ) );
|
@@ -0,0 +1,21 @@
|
|
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
|
+
return $.ui.safeBlur = function( element ) {
|
13
|
+
|
14
|
+
// Support: IE9 - 10 only
|
15
|
+
// If the <body> is blurred, IE will switch windows, see #9420
|
16
|
+
if ( element && element.nodeName.toLowerCase() !== "body" ) {
|
17
|
+
$( element ).trigger( "blur" );
|
18
|
+
}
|
19
|
+
};
|
20
|
+
|
21
|
+
} ) );
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Scroll Parent 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: scrollParent
|
11
|
+
//>>group: Core
|
12
|
+
//>>description: Get the closest ancestor element that is scrollable.
|
13
|
+
//>>docs: http://api.jqueryui.com/scrollParent/
|
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
|
+
return $.fn.scrollParent = function( includeHidden ) {
|
28
|
+
var position = this.css( "position" ),
|
29
|
+
excludeStaticParent = position === "absolute",
|
30
|
+
overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
|
31
|
+
scrollParent = this.parents().filter( function() {
|
32
|
+
var parent = $( this );
|
33
|
+
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
|
34
|
+
return false;
|
35
|
+
}
|
36
|
+
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
|
37
|
+
parent.css( "overflow-x" ) );
|
38
|
+
} ).eq( 0 );
|
39
|
+
|
40
|
+
return position === "fixed" || !scrollParent.length ?
|
41
|
+
$( this[ 0 ].ownerDocument || document ) :
|
42
|
+
scrollParent;
|
43
|
+
};
|
44
|
+
|
45
|
+
} ) );
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Tabbable 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: :tabbable Selector
|
11
|
+
//>>group: Core
|
12
|
+
//>>description: Selects elements which can be tabbed to.
|
13
|
+
//>>docs: http://api.jqueryui.com/tabbable-selector/
|
14
|
+
|
15
|
+
( function( factory ) {
|
16
|
+
if ( typeof define === "function" && define.amd ) {
|
17
|
+
|
18
|
+
// AMD. Register as an anonymous module.
|
19
|
+
define( [ "jquery", "./version", "./focusable" ], factory );
|
20
|
+
} else {
|
21
|
+
|
22
|
+
// Browser globals
|
23
|
+
factory( jQuery );
|
24
|
+
}
|
25
|
+
} ( function( $ ) {
|
26
|
+
|
27
|
+
return $.extend( $.expr[ ":" ], {
|
28
|
+
tabbable: function( element ) {
|
29
|
+
var tabIndex = $.attr( element, "tabindex" ),
|
30
|
+
hasTabindex = tabIndex != null;
|
31
|
+
return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex );
|
32
|
+
}
|
33
|
+
} );
|
34
|
+
|
35
|
+
} ) );
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Unique ID 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: uniqueId
|
11
|
+
//>>group: Core
|
12
|
+
//>>description: Functions to generate and remove uniqueId's
|
13
|
+
//>>docs: http://api.jqueryui.com/uniqueId/
|
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
|
+
return $.fn.extend( {
|
28
|
+
uniqueId: ( function() {
|
29
|
+
var uuid = 0;
|
30
|
+
|
31
|
+
return function() {
|
32
|
+
return this.each( function() {
|
33
|
+
if ( !this.id ) {
|
34
|
+
this.id = "ui-id-" + ( ++uuid );
|
35
|
+
}
|
36
|
+
} );
|
37
|
+
};
|
38
|
+
} )(),
|
39
|
+
|
40
|
+
removeUniqueId: function() {
|
41
|
+
return this.each( function() {
|
42
|
+
if ( /^ui-id-\d+$/.test( this.id ) ) {
|
43
|
+
$( this ).removeAttr( "id" );
|
44
|
+
}
|
45
|
+
} );
|
46
|
+
}
|
47
|
+
} );
|
48
|
+
|
49
|
+
} ) );
|
@@ -0,0 +1,17 @@
|
|
1
|
+
( function( factory ) {
|
2
|
+
if ( typeof define === "function" && define.amd ) {
|
3
|
+
|
4
|
+
// AMD. Register as an anonymous module.
|
5
|
+
define( [ "jquery" ], factory );
|
6
|
+
} else {
|
7
|
+
|
8
|
+
// Browser globals
|
9
|
+
factory( jQuery );
|
10
|
+
}
|
11
|
+
} ( function( $ ) {
|
12
|
+
|
13
|
+
$.ui = $.ui || {};
|
14
|
+
|
15
|
+
return $.ui.version = "1.12.1";
|
16
|
+
|
17
|
+
} ) );
|
@@ -0,0 +1,733 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Widget 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: Widget
|
11
|
+
//>>group: Core
|
12
|
+
//>>description: Provides a factory for creating stateful widgets with a common API.
|
13
|
+
//>>docs: http://api.jqueryui.com/jQuery.widget/
|
14
|
+
//>>demos: http://jqueryui.com/widget/
|
15
|
+
|
16
|
+
( function( factory ) {
|
17
|
+
if ( typeof define === "function" && define.amd ) {
|
18
|
+
|
19
|
+
// AMD. Register as an anonymous module.
|
20
|
+
define( [ "jquery", "./version" ], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}( function( $ ) {
|
27
|
+
|
28
|
+
var widgetUuid = 0;
|
29
|
+
var widgetSlice = Array.prototype.slice;
|
30
|
+
|
31
|
+
$.cleanData = ( function( orig ) {
|
32
|
+
return function( elems ) {
|
33
|
+
var events, elem, i;
|
34
|
+
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
|
35
|
+
try {
|
36
|
+
|
37
|
+
// Only trigger remove when necessary to save time
|
38
|
+
events = $._data( elem, "events" );
|
39
|
+
if ( events && events.remove ) {
|
40
|
+
$( elem ).triggerHandler( "remove" );
|
41
|
+
}
|
42
|
+
|
43
|
+
// Http://bugs.jquery.com/ticket/8235
|
44
|
+
} catch ( e ) {}
|
45
|
+
}
|
46
|
+
orig( elems );
|
47
|
+
};
|
48
|
+
} )( $.cleanData );
|
49
|
+
|
50
|
+
$.widget = function( name, base, prototype ) {
|
51
|
+
var existingConstructor, constructor, basePrototype;
|
52
|
+
|
53
|
+
// ProxiedPrototype allows the provided prototype to remain unmodified
|
54
|
+
// so that it can be used as a mixin for multiple widgets (#8876)
|
55
|
+
var proxiedPrototype = {};
|
56
|
+
|
57
|
+
var namespace = name.split( "." )[ 0 ];
|
58
|
+
name = name.split( "." )[ 1 ];
|
59
|
+
var fullName = namespace + "-" + name;
|
60
|
+
|
61
|
+
if ( !prototype ) {
|
62
|
+
prototype = base;
|
63
|
+
base = $.Widget;
|
64
|
+
}
|
65
|
+
|
66
|
+
if ( $.isArray( prototype ) ) {
|
67
|
+
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
|
68
|
+
}
|
69
|
+
|
70
|
+
// Create selector for plugin
|
71
|
+
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
|
72
|
+
return !!$.data( elem, fullName );
|
73
|
+
};
|
74
|
+
|
75
|
+
$[ namespace ] = $[ namespace ] || {};
|
76
|
+
existingConstructor = $[ namespace ][ name ];
|
77
|
+
constructor = $[ namespace ][ name ] = function( options, element ) {
|
78
|
+
|
79
|
+
// Allow instantiation without "new" keyword
|
80
|
+
if ( !this._createWidget ) {
|
81
|
+
return new constructor( options, element );
|
82
|
+
}
|
83
|
+
|
84
|
+
// Allow instantiation without initializing for simple inheritance
|
85
|
+
// must use "new" keyword (the code above always passes args)
|
86
|
+
if ( arguments.length ) {
|
87
|
+
this._createWidget( options, element );
|
88
|
+
}
|
89
|
+
};
|
90
|
+
|
91
|
+
// Extend with the existing constructor to carry over any static properties
|
92
|
+
$.extend( constructor, existingConstructor, {
|
93
|
+
version: prototype.version,
|
94
|
+
|
95
|
+
// Copy the object used to create the prototype in case we need to
|
96
|
+
// redefine the widget later
|
97
|
+
_proto: $.extend( {}, prototype ),
|
98
|
+
|
99
|
+
// Track widgets that inherit from this widget in case this widget is
|
100
|
+
// redefined after a widget inherits from it
|
101
|
+
_childConstructors: []
|
102
|
+
} );
|
103
|
+
|
104
|
+
basePrototype = new base();
|
105
|
+
|
106
|
+
// We need to make the options hash a property directly on the new instance
|
107
|
+
// otherwise we'll modify the options hash on the prototype that we're
|
108
|
+
// inheriting from
|
109
|
+
basePrototype.options = $.widget.extend( {}, basePrototype.options );
|
110
|
+
$.each( prototype, function( prop, value ) {
|
111
|
+
if ( !$.isFunction( value ) ) {
|
112
|
+
proxiedPrototype[ prop ] = value;
|
113
|
+
return;
|
114
|
+
}
|
115
|
+
proxiedPrototype[ prop ] = ( function() {
|
116
|
+
function _super() {
|
117
|
+
return base.prototype[ prop ].apply( this, arguments );
|
118
|
+
}
|
119
|
+
|
120
|
+
function _superApply( args ) {
|
121
|
+
return base.prototype[ prop ].apply( this, args );
|
122
|
+
}
|
123
|
+
|
124
|
+
return function() {
|
125
|
+
var __super = this._super;
|
126
|
+
var __superApply = this._superApply;
|
127
|
+
var returnValue;
|
128
|
+
|
129
|
+
this._super = _super;
|
130
|
+
this._superApply = _superApply;
|
131
|
+
|
132
|
+
returnValue = value.apply( this, arguments );
|
133
|
+
|
134
|
+
this._super = __super;
|
135
|
+
this._superApply = __superApply;
|
136
|
+
|
137
|
+
return returnValue;
|
138
|
+
};
|
139
|
+
} )();
|
140
|
+
} );
|
141
|
+
constructor.prototype = $.widget.extend( basePrototype, {
|
142
|
+
|
143
|
+
// TODO: remove support for widgetEventPrefix
|
144
|
+
// always use the name + a colon as the prefix, e.g., draggable:start
|
145
|
+
// don't prefix for widgets that aren't DOM-based
|
146
|
+
widgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name
|
147
|
+
}, proxiedPrototype, {
|
148
|
+
constructor: constructor,
|
149
|
+
namespace: namespace,
|
150
|
+
widgetName: name,
|
151
|
+
widgetFullName: fullName
|
152
|
+
} );
|
153
|
+
|
154
|
+
// If this widget is being redefined then we need to find all widgets that
|
155
|
+
// are inheriting from it and redefine all of them so that they inherit from
|
156
|
+
// the new version of this widget. We're essentially trying to replace one
|
157
|
+
// level in the prototype chain.
|
158
|
+
if ( existingConstructor ) {
|
159
|
+
$.each( existingConstructor._childConstructors, function( i, child ) {
|
160
|
+
var childPrototype = child.prototype;
|
161
|
+
|
162
|
+
// Redefine the child widget using the same prototype that was
|
163
|
+
// originally used, but inherit from the new version of the base
|
164
|
+
$.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor,
|
165
|
+
child._proto );
|
166
|
+
} );
|
167
|
+
|
168
|
+
// Remove the list of existing child constructors from the old constructor
|
169
|
+
// so the old child constructors can be garbage collected
|
170
|
+
delete existingConstructor._childConstructors;
|
171
|
+
} else {
|
172
|
+
base._childConstructors.push( constructor );
|
173
|
+
}
|
174
|
+
|
175
|
+
$.widget.bridge( name, constructor );
|
176
|
+
|
177
|
+
return constructor;
|
178
|
+
};
|
179
|
+
|
180
|
+
$.widget.extend = function( target ) {
|
181
|
+
var input = widgetSlice.call( arguments, 1 );
|
182
|
+
var inputIndex = 0;
|
183
|
+
var inputLength = input.length;
|
184
|
+
var key;
|
185
|
+
var value;
|
186
|
+
|
187
|
+
for ( ; inputIndex < inputLength; inputIndex++ ) {
|
188
|
+
for ( key in input[ inputIndex ] ) {
|
189
|
+
value = input[ inputIndex ][ key ];
|
190
|
+
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
|
191
|
+
|
192
|
+
// Clone objects
|
193
|
+
if ( $.isPlainObject( value ) ) {
|
194
|
+
target[ key ] = $.isPlainObject( target[ key ] ) ?
|
195
|
+
$.widget.extend( {}, target[ key ], value ) :
|
196
|
+
|
197
|
+
// Don't extend strings, arrays, etc. with objects
|
198
|
+
$.widget.extend( {}, value );
|
199
|
+
|
200
|
+
// Copy everything else by reference
|
201
|
+
} else {
|
202
|
+
target[ key ] = value;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
return target;
|
208
|
+
};
|
209
|
+
|
210
|
+
$.widget.bridge = function( name, object ) {
|
211
|
+
var fullName = object.prototype.widgetFullName || name;
|
212
|
+
$.fn[ name ] = function( options ) {
|
213
|
+
var isMethodCall = typeof options === "string";
|
214
|
+
var args = widgetSlice.call( arguments, 1 );
|
215
|
+
var returnValue = this;
|
216
|
+
|
217
|
+
if ( isMethodCall ) {
|
218
|
+
|
219
|
+
// If this is an empty collection, we need to have the instance method
|
220
|
+
// return undefined instead of the jQuery instance
|
221
|
+
if ( !this.length && options === "instance" ) {
|
222
|
+
returnValue = undefined;
|
223
|
+
} else {
|
224
|
+
this.each( function() {
|
225
|
+
var methodValue;
|
226
|
+
var instance = $.data( this, fullName );
|
227
|
+
|
228
|
+
if ( options === "instance" ) {
|
229
|
+
returnValue = instance;
|
230
|
+
return false;
|
231
|
+
}
|
232
|
+
|
233
|
+
if ( !instance ) {
|
234
|
+
return $.error( "cannot call methods on " + name +
|
235
|
+
" prior to initialization; " +
|
236
|
+
"attempted to call method '" + options + "'" );
|
237
|
+
}
|
238
|
+
|
239
|
+
if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
|
240
|
+
return $.error( "no such method '" + options + "' for " + name +
|
241
|
+
" widget instance" );
|
242
|
+
}
|
243
|
+
|
244
|
+
methodValue = instance[ options ].apply( instance, args );
|
245
|
+
|
246
|
+
if ( methodValue !== instance && methodValue !== undefined ) {
|
247
|
+
returnValue = methodValue && methodValue.jquery ?
|
248
|
+
returnValue.pushStack( methodValue.get() ) :
|
249
|
+
methodValue;
|
250
|
+
return false;
|
251
|
+
}
|
252
|
+
} );
|
253
|
+
}
|
254
|
+
} else {
|
255
|
+
|
256
|
+
// Allow multiple hashes to be passed on init
|
257
|
+
if ( args.length ) {
|
258
|
+
options = $.widget.extend.apply( null, [ options ].concat( args ) );
|
259
|
+
}
|
260
|
+
|
261
|
+
this.each( function() {
|
262
|
+
var instance = $.data( this, fullName );
|
263
|
+
if ( instance ) {
|
264
|
+
instance.option( options || {} );
|
265
|
+
if ( instance._init ) {
|
266
|
+
instance._init();
|
267
|
+
}
|
268
|
+
} else {
|
269
|
+
$.data( this, fullName, new object( options, this ) );
|
270
|
+
}
|
271
|
+
} );
|
272
|
+
}
|
273
|
+
|
274
|
+
return returnValue;
|
275
|
+
};
|
276
|
+
};
|
277
|
+
|
278
|
+
$.Widget = function( /* options, element */ ) {};
|
279
|
+
$.Widget._childConstructors = [];
|
280
|
+
|
281
|
+
$.Widget.prototype = {
|
282
|
+
widgetName: "widget",
|
283
|
+
widgetEventPrefix: "",
|
284
|
+
defaultElement: "<div>",
|
285
|
+
|
286
|
+
options: {
|
287
|
+
classes: {},
|
288
|
+
disabled: false,
|
289
|
+
|
290
|
+
// Callbacks
|
291
|
+
create: null
|
292
|
+
},
|
293
|
+
|
294
|
+
_createWidget: function( options, element ) {
|
295
|
+
element = $( element || this.defaultElement || this )[ 0 ];
|
296
|
+
this.element = $( element );
|
297
|
+
this.uuid = widgetUuid++;
|
298
|
+
this.eventNamespace = "." + this.widgetName + this.uuid;
|
299
|
+
|
300
|
+
this.bindings = $();
|
301
|
+
this.hoverable = $();
|
302
|
+
this.focusable = $();
|
303
|
+
this.classesElementLookup = {};
|
304
|
+
|
305
|
+
if ( element !== this ) {
|
306
|
+
$.data( element, this.widgetFullName, this );
|
307
|
+
this._on( true, this.element, {
|
308
|
+
remove: function( event ) {
|
309
|
+
if ( event.target === element ) {
|
310
|
+
this.destroy();
|
311
|
+
}
|
312
|
+
}
|
313
|
+
} );
|
314
|
+
this.document = $( element.style ?
|
315
|
+
|
316
|
+
// Element within the document
|
317
|
+
element.ownerDocument :
|
318
|
+
|
319
|
+
// Element is window or document
|
320
|
+
element.document || element );
|
321
|
+
this.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow );
|
322
|
+
}
|
323
|
+
|
324
|
+
this.options = $.widget.extend( {},
|
325
|
+
this.options,
|
326
|
+
this._getCreateOptions(),
|
327
|
+
options );
|
328
|
+
|
329
|
+
this._create();
|
330
|
+
|
331
|
+
if ( this.options.disabled ) {
|
332
|
+
this._setOptionDisabled( this.options.disabled );
|
333
|
+
}
|
334
|
+
|
335
|
+
this._trigger( "create", null, this._getCreateEventData() );
|
336
|
+
this._init();
|
337
|
+
},
|
338
|
+
|
339
|
+
_getCreateOptions: function() {
|
340
|
+
return {};
|
341
|
+
},
|
342
|
+
|
343
|
+
_getCreateEventData: $.noop,
|
344
|
+
|
345
|
+
_create: $.noop,
|
346
|
+
|
347
|
+
_init: $.noop,
|
348
|
+
|
349
|
+
destroy: function() {
|
350
|
+
var that = this;
|
351
|
+
|
352
|
+
this._destroy();
|
353
|
+
$.each( this.classesElementLookup, function( key, value ) {
|
354
|
+
that._removeClass( value, key );
|
355
|
+
} );
|
356
|
+
|
357
|
+
// We can probably remove the unbind calls in 2.0
|
358
|
+
// all event bindings should go through this._on()
|
359
|
+
this.element
|
360
|
+
.off( this.eventNamespace )
|
361
|
+
.removeData( this.widgetFullName );
|
362
|
+
this.widget()
|
363
|
+
.off( this.eventNamespace )
|
364
|
+
.removeAttr( "aria-disabled" );
|
365
|
+
|
366
|
+
// Clean up events and states
|
367
|
+
this.bindings.off( this.eventNamespace );
|
368
|
+
},
|
369
|
+
|
370
|
+
_destroy: $.noop,
|
371
|
+
|
372
|
+
widget: function() {
|
373
|
+
return this.element;
|
374
|
+
},
|
375
|
+
|
376
|
+
option: function( key, value ) {
|
377
|
+
var options = key;
|
378
|
+
var parts;
|
379
|
+
var curOption;
|
380
|
+
var i;
|
381
|
+
|
382
|
+
if ( arguments.length === 0 ) {
|
383
|
+
|
384
|
+
// Don't return a reference to the internal hash
|
385
|
+
return $.widget.extend( {}, this.options );
|
386
|
+
}
|
387
|
+
|
388
|
+
if ( typeof key === "string" ) {
|
389
|
+
|
390
|
+
// Handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
|
391
|
+
options = {};
|
392
|
+
parts = key.split( "." );
|
393
|
+
key = parts.shift();
|
394
|
+
if ( parts.length ) {
|
395
|
+
curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
|
396
|
+
for ( i = 0; i < parts.length - 1; i++ ) {
|
397
|
+
curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
|
398
|
+
curOption = curOption[ parts[ i ] ];
|
399
|
+
}
|
400
|
+
key = parts.pop();
|
401
|
+
if ( arguments.length === 1 ) {
|
402
|
+
return curOption[ key ] === undefined ? null : curOption[ key ];
|
403
|
+
}
|
404
|
+
curOption[ key ] = value;
|
405
|
+
} else {
|
406
|
+
if ( arguments.length === 1 ) {
|
407
|
+
return this.options[ key ] === undefined ? null : this.options[ key ];
|
408
|
+
}
|
409
|
+
options[ key ] = value;
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
this._setOptions( options );
|
414
|
+
|
415
|
+
return this;
|
416
|
+
},
|
417
|
+
|
418
|
+
_setOptions: function( options ) {
|
419
|
+
var key;
|
420
|
+
|
421
|
+
for ( key in options ) {
|
422
|
+
this._setOption( key, options[ key ] );
|
423
|
+
}
|
424
|
+
|
425
|
+
return this;
|
426
|
+
},
|
427
|
+
|
428
|
+
_setOption: function( key, value ) {
|
429
|
+
if ( key === "classes" ) {
|
430
|
+
this._setOptionClasses( value );
|
431
|
+
}
|
432
|
+
|
433
|
+
this.options[ key ] = value;
|
434
|
+
|
435
|
+
if ( key === "disabled" ) {
|
436
|
+
this._setOptionDisabled( value );
|
437
|
+
}
|
438
|
+
|
439
|
+
return this;
|
440
|
+
},
|
441
|
+
|
442
|
+
_setOptionClasses: function( value ) {
|
443
|
+
var classKey, elements, currentElements;
|
444
|
+
|
445
|
+
for ( classKey in value ) {
|
446
|
+
currentElements = this.classesElementLookup[ classKey ];
|
447
|
+
if ( value[ classKey ] === this.options.classes[ classKey ] ||
|
448
|
+
!currentElements ||
|
449
|
+
!currentElements.length ) {
|
450
|
+
continue;
|
451
|
+
}
|
452
|
+
|
453
|
+
// We are doing this to create a new jQuery object because the _removeClass() call
|
454
|
+
// on the next line is going to destroy the reference to the current elements being
|
455
|
+
// tracked. We need to save a copy of this collection so that we can add the new classes
|
456
|
+
// below.
|
457
|
+
elements = $( currentElements.get() );
|
458
|
+
this._removeClass( currentElements, classKey );
|
459
|
+
|
460
|
+
// We don't use _addClass() here, because that uses this.options.classes
|
461
|
+
// for generating the string of classes. We want to use the value passed in from
|
462
|
+
// _setOption(), this is the new value of the classes option which was passed to
|
463
|
+
// _setOption(). We pass this value directly to _classes().
|
464
|
+
elements.addClass( this._classes( {
|
465
|
+
element: elements,
|
466
|
+
keys: classKey,
|
467
|
+
classes: value,
|
468
|
+
add: true
|
469
|
+
} ) );
|
470
|
+
}
|
471
|
+
},
|
472
|
+
|
473
|
+
_setOptionDisabled: function( value ) {
|
474
|
+
this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null, !!value );
|
475
|
+
|
476
|
+
// If the widget is becoming disabled, then nothing is interactive
|
477
|
+
if ( value ) {
|
478
|
+
this._removeClass( this.hoverable, null, "ui-state-hover" );
|
479
|
+
this._removeClass( this.focusable, null, "ui-state-focus" );
|
480
|
+
}
|
481
|
+
},
|
482
|
+
|
483
|
+
enable: function() {
|
484
|
+
return this._setOptions( { disabled: false } );
|
485
|
+
},
|
486
|
+
|
487
|
+
disable: function() {
|
488
|
+
return this._setOptions( { disabled: true } );
|
489
|
+
},
|
490
|
+
|
491
|
+
_classes: function( options ) {
|
492
|
+
var full = [];
|
493
|
+
var that = this;
|
494
|
+
|
495
|
+
options = $.extend( {
|
496
|
+
element: this.element,
|
497
|
+
classes: this.options.classes || {}
|
498
|
+
}, options );
|
499
|
+
|
500
|
+
function processClassString( classes, checkOption ) {
|
501
|
+
var current, i;
|
502
|
+
for ( i = 0; i < classes.length; i++ ) {
|
503
|
+
current = that.classesElementLookup[ classes[ i ] ] || $();
|
504
|
+
if ( options.add ) {
|
505
|
+
current = $( $.unique( current.get().concat( options.element.get() ) ) );
|
506
|
+
} else {
|
507
|
+
current = $( current.not( options.element ).get() );
|
508
|
+
}
|
509
|
+
that.classesElementLookup[ classes[ i ] ] = current;
|
510
|
+
full.push( classes[ i ] );
|
511
|
+
if ( checkOption && options.classes[ classes[ i ] ] ) {
|
512
|
+
full.push( options.classes[ classes[ i ] ] );
|
513
|
+
}
|
514
|
+
}
|
515
|
+
}
|
516
|
+
|
517
|
+
this._on( options.element, {
|
518
|
+
"remove": "_untrackClassesElement"
|
519
|
+
} );
|
520
|
+
|
521
|
+
if ( options.keys ) {
|
522
|
+
processClassString( options.keys.match( /\S+/g ) || [], true );
|
523
|
+
}
|
524
|
+
if ( options.extra ) {
|
525
|
+
processClassString( options.extra.match( /\S+/g ) || [] );
|
526
|
+
}
|
527
|
+
|
528
|
+
return full.join( " " );
|
529
|
+
},
|
530
|
+
|
531
|
+
_untrackClassesElement: function( event ) {
|
532
|
+
var that = this;
|
533
|
+
$.each( that.classesElementLookup, function( key, value ) {
|
534
|
+
if ( $.inArray( event.target, value ) !== -1 ) {
|
535
|
+
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
|
536
|
+
}
|
537
|
+
} );
|
538
|
+
},
|
539
|
+
|
540
|
+
_removeClass: function( element, keys, extra ) {
|
541
|
+
return this._toggleClass( element, keys, extra, false );
|
542
|
+
},
|
543
|
+
|
544
|
+
_addClass: function( element, keys, extra ) {
|
545
|
+
return this._toggleClass( element, keys, extra, true );
|
546
|
+
},
|
547
|
+
|
548
|
+
_toggleClass: function( element, keys, extra, add ) {
|
549
|
+
add = ( typeof add === "boolean" ) ? add : extra;
|
550
|
+
var shift = ( typeof element === "string" || element === null ),
|
551
|
+
options = {
|
552
|
+
extra: shift ? keys : extra,
|
553
|
+
keys: shift ? element : keys,
|
554
|
+
element: shift ? this.element : element,
|
555
|
+
add: add
|
556
|
+
};
|
557
|
+
options.element.toggleClass( this._classes( options ), add );
|
558
|
+
return this;
|
559
|
+
},
|
560
|
+
|
561
|
+
_on: function( suppressDisabledCheck, element, handlers ) {
|
562
|
+
var delegateElement;
|
563
|
+
var instance = this;
|
564
|
+
|
565
|
+
// No suppressDisabledCheck flag, shuffle arguments
|
566
|
+
if ( typeof suppressDisabledCheck !== "boolean" ) {
|
567
|
+
handlers = element;
|
568
|
+
element = suppressDisabledCheck;
|
569
|
+
suppressDisabledCheck = false;
|
570
|
+
}
|
571
|
+
|
572
|
+
// No element argument, shuffle and use this.element
|
573
|
+
if ( !handlers ) {
|
574
|
+
handlers = element;
|
575
|
+
element = this.element;
|
576
|
+
delegateElement = this.widget();
|
577
|
+
} else {
|
578
|
+
element = delegateElement = $( element );
|
579
|
+
this.bindings = this.bindings.add( element );
|
580
|
+
}
|
581
|
+
|
582
|
+
$.each( handlers, function( event, handler ) {
|
583
|
+
function handlerProxy() {
|
584
|
+
|
585
|
+
// Allow widgets to customize the disabled handling
|
586
|
+
// - disabled as an array instead of boolean
|
587
|
+
// - disabled class as method for disabling individual parts
|
588
|
+
if ( !suppressDisabledCheck &&
|
589
|
+
( instance.options.disabled === true ||
|
590
|
+
$( this ).hasClass( "ui-state-disabled" ) ) ) {
|
591
|
+
return;
|
592
|
+
}
|
593
|
+
return ( typeof handler === "string" ? instance[ handler ] : handler )
|
594
|
+
.apply( instance, arguments );
|
595
|
+
}
|
596
|
+
|
597
|
+
// Copy the guid so direct unbinding works
|
598
|
+
if ( typeof handler !== "string" ) {
|
599
|
+
handlerProxy.guid = handler.guid =
|
600
|
+
handler.guid || handlerProxy.guid || $.guid++;
|
601
|
+
}
|
602
|
+
|
603
|
+
var match = event.match( /^([\w:-]*)\s*(.*)$/ );
|
604
|
+
var eventName = match[ 1 ] + instance.eventNamespace;
|
605
|
+
var selector = match[ 2 ];
|
606
|
+
|
607
|
+
if ( selector ) {
|
608
|
+
delegateElement.on( eventName, selector, handlerProxy );
|
609
|
+
} else {
|
610
|
+
element.on( eventName, handlerProxy );
|
611
|
+
}
|
612
|
+
} );
|
613
|
+
},
|
614
|
+
|
615
|
+
_off: function( element, eventName ) {
|
616
|
+
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
|
617
|
+
this.eventNamespace;
|
618
|
+
element.off( eventName ).off( eventName );
|
619
|
+
|
620
|
+
// Clear the stack to avoid memory leaks (#10056)
|
621
|
+
this.bindings = $( this.bindings.not( element ).get() );
|
622
|
+
this.focusable = $( this.focusable.not( element ).get() );
|
623
|
+
this.hoverable = $( this.hoverable.not( element ).get() );
|
624
|
+
},
|
625
|
+
|
626
|
+
_delay: function( handler, delay ) {
|
627
|
+
function handlerProxy() {
|
628
|
+
return ( typeof handler === "string" ? instance[ handler ] : handler )
|
629
|
+
.apply( instance, arguments );
|
630
|
+
}
|
631
|
+
var instance = this;
|
632
|
+
return setTimeout( handlerProxy, delay || 0 );
|
633
|
+
},
|
634
|
+
|
635
|
+
_hoverable: function( element ) {
|
636
|
+
this.hoverable = this.hoverable.add( element );
|
637
|
+
this._on( element, {
|
638
|
+
mouseenter: function( event ) {
|
639
|
+
this._addClass( $( event.currentTarget ), null, "ui-state-hover" );
|
640
|
+
},
|
641
|
+
mouseleave: function( event ) {
|
642
|
+
this._removeClass( $( event.currentTarget ), null, "ui-state-hover" );
|
643
|
+
}
|
644
|
+
} );
|
645
|
+
},
|
646
|
+
|
647
|
+
_focusable: function( element ) {
|
648
|
+
this.focusable = this.focusable.add( element );
|
649
|
+
this._on( element, {
|
650
|
+
focusin: function( event ) {
|
651
|
+
this._addClass( $( event.currentTarget ), null, "ui-state-focus" );
|
652
|
+
},
|
653
|
+
focusout: function( event ) {
|
654
|
+
this._removeClass( $( event.currentTarget ), null, "ui-state-focus" );
|
655
|
+
}
|
656
|
+
} );
|
657
|
+
},
|
658
|
+
|
659
|
+
_trigger: function( type, event, data ) {
|
660
|
+
var prop, orig;
|
661
|
+
var callback = this.options[ type ];
|
662
|
+
|
663
|
+
data = data || {};
|
664
|
+
event = $.Event( event );
|
665
|
+
event.type = ( type === this.widgetEventPrefix ?
|
666
|
+
type :
|
667
|
+
this.widgetEventPrefix + type ).toLowerCase();
|
668
|
+
|
669
|
+
// The original event may come from any element
|
670
|
+
// so we need to reset the target on the new event
|
671
|
+
event.target = this.element[ 0 ];
|
672
|
+
|
673
|
+
// Copy original event properties over to the new event
|
674
|
+
orig = event.originalEvent;
|
675
|
+
if ( orig ) {
|
676
|
+
for ( prop in orig ) {
|
677
|
+
if ( !( prop in event ) ) {
|
678
|
+
event[ prop ] = orig[ prop ];
|
679
|
+
}
|
680
|
+
}
|
681
|
+
}
|
682
|
+
|
683
|
+
this.element.trigger( event, data );
|
684
|
+
return !( $.isFunction( callback ) &&
|
685
|
+
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
|
686
|
+
event.isDefaultPrevented() );
|
687
|
+
}
|
688
|
+
};
|
689
|
+
|
690
|
+
$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
|
691
|
+
$.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
|
692
|
+
if ( typeof options === "string" ) {
|
693
|
+
options = { effect: options };
|
694
|
+
}
|
695
|
+
|
696
|
+
var hasOptions;
|
697
|
+
var effectName = !options ?
|
698
|
+
method :
|
699
|
+
options === true || typeof options === "number" ?
|
700
|
+
defaultEffect :
|
701
|
+
options.effect || defaultEffect;
|
702
|
+
|
703
|
+
options = options || {};
|
704
|
+
if ( typeof options === "number" ) {
|
705
|
+
options = { duration: options };
|
706
|
+
}
|
707
|
+
|
708
|
+
hasOptions = !$.isEmptyObject( options );
|
709
|
+
options.complete = callback;
|
710
|
+
|
711
|
+
if ( options.delay ) {
|
712
|
+
element.delay( options.delay );
|
713
|
+
}
|
714
|
+
|
715
|
+
if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
|
716
|
+
element[ method ]( options );
|
717
|
+
} else if ( effectName !== method && element[ effectName ] ) {
|
718
|
+
element[ effectName ]( options.duration, options.easing, callback );
|
719
|
+
} else {
|
720
|
+
element.queue( function( next ) {
|
721
|
+
$( this )[ method ]();
|
722
|
+
if ( callback ) {
|
723
|
+
callback.call( element[ 0 ] );
|
724
|
+
}
|
725
|
+
next();
|
726
|
+
} );
|
727
|
+
}
|
728
|
+
};
|
729
|
+
} );
|
730
|
+
|
731
|
+
return $.widget;
|
732
|
+
|
733
|
+
} ) );
|