iqvoc 4.8.1 → 4.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +9 -15
- data/app/assets/javascripts/framework.js +10 -10
- data/app/assets/javascripts/iqvoc/iqvoc.js +3 -3
- data/app/assets/javascripts/iqvoc/langselect.js +1 -1
- data/app/assets/stylesheets/_framework.scss +4 -4
- data/app/assets/stylesheets/iqvoc/components/_components.scss +6 -4
- data/app/assets/stylesheets/iqvoc/components/_entity_select.scss +1 -1
- data/app/assets/stylesheets/iqvoc/components/_notes.scss +1 -1
- data/app/assets/stylesheets/iqvoc/mixins/_mixins.scss +6 -2
- data/app/assets/stylesheets/iqvoc/settings/_bootstrap.scss +6 -7
- data/app/models/ability.rb +11 -2
- data/app/models/user.rb +4 -0
- data/app/views/collections/show_unpublished.html.erb +17 -14
- data/app/views/concepts/show_unpublished.html.erb +14 -11
- data/app/views/dashboard/index.html.erb +3 -3
- data/app/views/layouts/_controls.html.erb +3 -1
- data/app/views/layouts/application.html.erb +1 -1
- data/app/views/search_results/sections/_datasets.html.erb +1 -1
- data/app/views/search_results/sections/_languages.html.erb +1 -1
- data/config/initializers/assets.rb +2 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +2 -1
- data/lib/iqvoc/configuration/core.rb +1 -4
- data/lib/iqvoc/version.rb +1 -1
- data/public/export/151644452539207638297695765208032122293.nt +28 -0
- data/public/export/213987519797093111958174693910375706600.nt +28 -0
- data/public/export/220598335291843294191166072463233833628.nt +28 -0
- data/public/export/242910803893093872189091525372405462985.nt +28 -0
- data/public/export/25981.nt +28 -0
- data/public/export/3199.nt +28 -0
- data/public/export/50650725356216411444149011685563244498.nt +28 -0
- data/public/export/801.nt +28 -0
- data/public/uploads/import/596c40774bb5979c8de5ce6daa58de35.nt +259 -0
- data/public/uploads/import/77ea050ae3a00aedd2a6e4158454a54d.nt +259 -0
- data/public/uploads/import/7cc9feb5e9180d29865b9d4e81694921.nt +259 -0
- data/public/uploads/import/8e0bf83a2ca503753efaa29bff6f84f6.nt +259 -0
- data/public/uploads/import/a712bf10adc7546d5c567194d7a13603.nt +259 -0
- data/public/uploads/import/a7e315db905ac7808126b600dd1f6203.nt +259 -0
- data/public/uploads/import/d038a0416528900076cdb4a28211a84c.nt +259 -0
- data/public/uploads/import/d250e9b7a2819d62a43d5270031eaa6d.nt +259 -0
- data/public/uploads/tmp/1422290833-38334-3392/hobbies.nt +259 -0
- data/public/uploads/tmp/1422292996-38701-6635/hobbies.nt +259 -0
- data/public/uploads/tmp/1422293183-38751-2662/hobbies.nt +259 -0
- data/public/uploads/tmp/1422293478-38811-6215/hobbies.nt +259 -0
- data/public/uploads/tmp/1422300870-38980-1343/hobbies.nt +259 -0
- data/public/uploads/tmp/1422372626-67843-5956/hobbies.nt +259 -0
- data/public/uploads/tmp/1422374262-68176-3483/hobbies.nt +259 -0
- data/public/uploads/tmp/1422374611-68319-4455/hobbies.nt +259 -0
- data/test/integration/authentication_test.rb +2 -2
- data/vendor/assets/bower_components/URIjs/LICENSE.txt +21 -0
- data/vendor/assets/bower_components/URIjs/README.md +496 -0
- data/vendor/assets/bower_components/URIjs/bower.json +29 -0
- data/vendor/assets/bower_components/URIjs/contributing.md +19 -0
- data/vendor/assets/bower_components/URIjs/src/IPv6.js +188 -0
- data/vendor/assets/bower_components/URIjs/src/SecondLevelDomains.js +241 -0
- data/vendor/assets/bower_components/URIjs/src/URI.fragmentQuery.js +104 -0
- data/vendor/assets/bower_components/URIjs/src/URI.fragmentURI.js +97 -0
- data/vendor/assets/{javascripts → bower_components/URIjs/src}/URI.js +45 -49
- data/vendor/assets/bower_components/URIjs/src/URI.min.js +84 -0
- data/vendor/assets/bower_components/URIjs/src/URITemplate.js +499 -0
- data/vendor/assets/bower_components/URIjs/src/jquery.URI.js +235 -0
- data/vendor/assets/bower_components/URIjs/src/jquery.URI.min.js +7 -0
- data/vendor/assets/bower_components/URIjs/src/punycode.js +508 -0
- data/vendor/assets/bower_components/bootstrap-sass/CHANGELOG.md +183 -0
- data/vendor/assets/bower_components/bootstrap-sass/CONTRIBUTING.md +86 -0
- data/vendor/assets/bower_components/bootstrap-sass/LICENSE +21 -0
- data/vendor/assets/bower_components/bootstrap-sass/README.md +330 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap-sprockets.js +12 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap.js +2306 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap.min.js +7 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/affix.js +162 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/alert.js +94 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/button.js +116 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/carousel.js +237 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/collapse.js +211 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/dropdown.js +161 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/modal.js +324 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/popover.js +113 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/scrollspy.js +175 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/tab.js +153 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/tooltip.js +472 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/transition.js +59 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-compass.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-mincer.scss +19 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss +50 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_alerts.scss +73 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss +67 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_button-groups.scss +243 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_buttons.scss +160 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_carousel.scss +269 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_close.scss +36 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_code.scss +69 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_dropdowns.scss +214 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_forms.scss +570 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_glyphicons.scss +301 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_grid.scss +84 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_input-groups.scss +166 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_jumbotron.scss +50 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_labels.scss +66 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_list-group.scss +124 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_media.scss +61 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_mixins.scss +39 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_modals.scss +148 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_navbar.scss +663 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_navs.scss +244 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_normalize.scss +427 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_pager.scss +54 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_pagination.scss +88 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_panels.scss +265 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_popovers.scss +135 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_print.scss +107 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-utilities.scss +177 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_scaffolding.scss +150 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_tables.scss +234 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_theme.scss +273 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_tooltip.scss +103 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_type.scss +298 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_utilities.scss +56 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss +862 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_wells.scss +29 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/vendor/assets/bower_components/bootstrap-sass/bower.json +40 -0
- data/vendor/assets/bower_components/bootstrap-sass/composer.json +35 -0
- data/vendor/assets/bower_components/bootstrap-sass/package.json +30 -0
- data/vendor/assets/bower_components/bootstrap-sass/sache.json +5 -0
- data/vendor/assets/bower_components/html5shiv/Gruntfile.js +61 -0
- data/vendor/assets/bower_components/html5shiv/bower.json +15 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv-printshiv.js +520 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv-printshiv.min.js +4 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv.js +322 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv.min.js +4 -0
- data/vendor/assets/bower_components/html5shiv/package.json +16 -0
- data/vendor/assets/bower_components/html5shiv/readme.md +152 -0
- data/vendor/assets/bower_components/jqtree/LICENSE +202 -0
- data/vendor/assets/bower_components/jqtree/README.md +24 -0
- data/vendor/assets/bower_components/jqtree/_config.yml +18 -0
- data/vendor/assets/bower_components/jqtree/_entries/01_general.md +7 -0
- data/vendor/assets/bower_components/jqtree/_entries/02_introduction.md +9 -0
- data/vendor/assets/bower_components/jqtree/_entries/03_features.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/04_demo.html +34 -0
- data/vendor/assets/bower_components/jqtree/_entries/05_requirements.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/06_downloads.md +9 -0
- data/vendor/assets/bower_components/jqtree/_entries/07_tutorial.md +77 -0
- data/vendor/assets/bower_components/jqtree/_entries/08_examples.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/09_changelog.md +179 -0
- data/vendor/assets/bower_components/jqtree/_entries/10_options.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/11_autoescape.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/12_autoopen.md +28 -0
- data/vendor/assets/bower_components/jqtree/_entries/13_closedicon.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/14_data.md +41 -0
- data/vendor/assets/bower_components/jqtree/_entries/15_datafilter.md +17 -0
- data/vendor/assets/bower_components/jqtree/_entries/16_data-url.md +21 -0
- data/vendor/assets/bower_components/jqtree/_entries/17_draganddrop.md +18 -0
- data/vendor/assets/bower_components/jqtree/_entries/18_keyboardsupport.md +14 -0
- data/vendor/assets/bower_components/jqtree/_entries/19_oncanmove.md +22 -0
- data/vendor/assets/bower_components/jqtree/_entries/20_oncanmoveto.md +22 -0
- data/vendor/assets/bower_components/jqtree/_entries/21_oncanselectnode.md +26 -0
- data/vendor/assets/bower_components/jqtree/_entries/22_oncreateli.md +16 -0
- data/vendor/assets/bower_components/jqtree/_entries/23_onismovehandle.md +17 -0
- data/vendor/assets/bower_components/jqtree/_entries/24_onloadfailed.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/25_openedicon.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/26_openfolderdelay.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/27_savestate.md +42 -0
- data/vendor/assets/bower_components/jqtree/_entries/28_selectable.md +18 -0
- data/vendor/assets/bower_components/jqtree/_entries/29_slide.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/30_usecontextmenu.md +14 -0
- data/vendor/assets/bower_components/jqtree/_entries/31_functions.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/32_addnodeafter.md +20 -0
- data/vendor/assets/bower_components/jqtree/_entries/33_addnodebefore.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/34_appendnode.md +33 -0
- data/vendor/assets/bower_components/jqtree/_entries/35_closenode.md +23 -0
- data/vendor/assets/bower_components/jqtree/_entries/36_getnodebyid.md +21 -0
- data/vendor/assets/bower_components/jqtree/_entries/37_getselectednode.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/38_getstate.md +19 -0
- data/vendor/assets/bower_components/jqtree/_entries/39_gettree.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/40_loaddata.md +46 -0
- data/vendor/assets/bower_components/jqtree/_entries/41_loaddatafromurl.md +55 -0
- data/vendor/assets/bower_components/jqtree/_entries/42_movedown.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/43_movenode.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/44_moveup.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/45_opennode.md +29 -0
- data/vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md +20 -0
- data/vendor/assets/bower_components/jqtree/_entries/47_reload.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/48_removenode.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/49_selectnode.md +24 -0
- data/vendor/assets/bower_components/jqtree/_entries/50_scrolltonode.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/51_setoption.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/52_setstate.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/53_toggle.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/54_tojson.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/55_updatenode.md +33 -0
- data/vendor/assets/bower_components/jqtree/_entries/56_events.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/57_tree-click.md +37 -0
- data/vendor/assets/bower_components/jqtree/_entries/58_tree-close.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/59_tree-contextmenu.md +21 -0
- data/vendor/assets/bower_components/jqtree/_entries/60_tree-dblclick.md +19 -0
- data/vendor/assets/bower_components/jqtree/_entries/61_tree-init.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/62_tree-move.md +71 -0
- data/vendor/assets/bower_components/jqtree/_entries/63_tree-open.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/64_tree-select.md +28 -0
- data/vendor/assets/bower_components/jqtree/_entries/65_multiple-selection.md +9 -0
- data/vendor/assets/bower_components/jqtree/_entries/66_add-to-selection.md +11 -0
- data/vendor/assets/bower_components/jqtree/_entries/67_get-selected-nodes.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/68_is-node-selected.md +11 -0
- data/vendor/assets/bower_components/jqtree/_entries/69_remove-from-selection.md +11 -0
- data/vendor/assets/bower_components/jqtree/_entries/70_node-functions.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/71_children.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/72_getdata.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/73_getlevel.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/74_getnextnode.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/75_getnextsibling.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/76_getpreviousnode.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/77_getprevioussibling.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/78_parent.md +10 -0
- data/vendor/assets/bower_components/jqtree/_examples/01_load_json_data.html +47 -0
- data/vendor/assets/bower_components/jqtree/_examples/02_load_json_data_from_server.html +31 -0
- data/vendor/assets/bower_components/jqtree/_examples/03_drag_and_drop.html +45 -0
- data/vendor/assets/bower_components/jqtree/_examples/04_save_state.html +52 -0
- data/vendor/assets/bower_components/jqtree/_examples/05_load_on_demand.html +70 -0
- data/vendor/assets/bower_components/jqtree/_examples/06_autoescape.html +47 -0
- data/vendor/assets/bower_components/jqtree/_examples/07_autoscroll.html +23 -0
- data/vendor/assets/bower_components/jqtree/_examples/08_multiple_select.html +72 -0
- data/vendor/assets/bower_components/jqtree/_examples/09_custom_html.html +68 -0
- data/vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html +27 -0
- data/vendor/assets/bower_components/jqtree/_layouts/base.html +48 -0
- data/vendor/assets/bower_components/jqtree/_layouts/frontpage.html +20 -0
- data/vendor/assets/bower_components/jqtree/_layouts/page.html +7 -0
- data/vendor/assets/bower_components/jqtree/bower.json +12 -0
- data/vendor/assets/bower_components/jqtree/gulpfile.coffee +30 -0
- data/vendor/assets/bower_components/jqtree/gulpfile.js +2 -0
- data/vendor/assets/bower_components/jqtree/index.html +48 -0
- data/vendor/assets/bower_components/jqtree/jqtree-circle.png +0 -0
- data/vendor/assets/bower_components/jqtree/jqtree.css +143 -0
- data/vendor/assets/bower_components/jqtree/jqtree.jquery.json +23 -0
- data/vendor/assets/bower_components/jqtree/package.json +23 -0
- data/vendor/assets/bower_components/jqtree/phantomjs/runner.js +193 -0
- data/vendor/assets/bower_components/jqtree/phantomjs/server.js +14 -0
- data/vendor/assets/bower_components/jqtree/screenshot.png +0 -0
- data/vendor/assets/bower_components/jqtree/sitemap.txt +11 -0
- data/vendor/assets/bower_components/jqtree/src/drag_and_drop_handler.coffee +466 -0
- data/vendor/assets/bower_components/jqtree/src/elements_renderer.coffee +198 -0
- data/vendor/assets/bower_components/jqtree/src/key_handler.coffee +92 -0
- data/vendor/assets/bower_components/jqtree/src/mouse.widget.coffee +181 -0
- data/vendor/assets/bower_components/jqtree/src/node.coffee +431 -0
- data/vendor/assets/bower_components/jqtree/src/node_element.coffee +144 -0
- data/vendor/assets/bower_components/jqtree/src/save_state_handler.coffee +191 -0
- data/vendor/assets/bower_components/jqtree/src/scroll_handler.coffee +100 -0
- data/vendor/assets/bower_components/jqtree/src/select_node_handler.coffee +76 -0
- data/vendor/assets/bower_components/jqtree/src/simple.widget.coffee +102 -0
- data/vendor/assets/bower_components/jqtree/src/test.js +1945 -0
- data/vendor/assets/bower_components/jqtree/src/tree.jquery.coffee +772 -0
- data/vendor/assets/bower_components/jqtree/src/util.coffee +117 -0
- data/vendor/assets/bower_components/jqtree/src/version.coffee +1 -0
- data/vendor/assets/bower_components/jqtree/static/bower.json +13 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/blanket/dist/qunit/blanket.js +5430 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css +5 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/css/bootstrap.min.css +5 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/css/font-awesome.min.css +4 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.svg +520 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/jquery-cookie/jquery.cookie.js +117 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/jquery-mockjax/jquery.mockjax.js +692 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/jquery/dist/jquery.min.js +5 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/pygments/css/monokai.css +63 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/qunit/qunit/qunit.css +264 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/qunit/qunit/qunit.js +2819 -0
- data/vendor/assets/bower_components/jqtree/static/documentation.css +165 -0
- data/vendor/assets/bower_components/jqtree/static/documentation.js +51 -0
- data/vendor/assets/bower_components/jqtree/static/example.css +53 -0
- data/vendor/assets/bower_components/jqtree/static/example_data.js +128 -0
- data/vendor/assets/bower_components/jqtree/static/examples/autoescape.js +19 -0
- data/vendor/assets/bower_components/jqtree/static/examples/autoscroll.js +8 -0
- data/vendor/assets/bower_components/jqtree/static/examples/custom_html.js +32 -0
- data/vendor/assets/bower_components/jqtree/static/examples/drag_and_drop.js +15 -0
- data/vendor/assets/bower_components/jqtree/static/examples/icon_buttons.js +14 -0
- data/vendor/assets/bower_components/jqtree/static/examples/load_json_data.js +21 -0
- data/vendor/assets/bower_components/jqtree/static/examples/load_json_data_from_server.js +11 -0
- data/vendor/assets/bower_components/jqtree/static/examples/load_on_demand.js +20 -0
- data/vendor/assets/bower_components/jqtree/static/examples/multiple_select.js +27 -0
- data/vendor/assets/bower_components/jqtree/static/examples/save_state.js +13 -0
- data/vendor/assets/bower_components/jqtree/static/jquery-1.11.2.min.js +4 -0
- data/vendor/assets/bower_components/jqtree/static/spinner.gif +0 -0
- data/vendor/assets/bower_components/jqtree/test/test.html +23 -0
- data/vendor/assets/bower_components/jqtree/test/test.js +2604 -0
- data/vendor/assets/{javascripts → bower_components/jqtree}/tree.jquery.js +2274 -1932
- data/vendor/assets/bower_components/jquery-ujs/CHANGELOG.md +24 -0
- data/vendor/assets/bower_components/jquery-ujs/MIT-LICENSE.txt +20 -0
- data/vendor/assets/bower_components/jquery-ujs/README.md +72 -0
- data/vendor/assets/bower_components/jquery-ujs/bower.json +20 -0
- data/vendor/assets/bower_components/jquery-ujs/src/rails.js +469 -0
- data/vendor/assets/bower_components/jquery/MIT-LICENSE.txt +21 -0
- data/vendor/assets/bower_components/jquery/bower.json +27 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.js +9205 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.min.js +5 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -0
- data/vendor/assets/bower_components/jquery/src/ajax.js +786 -0
- data/vendor/assets/bower_components/jquery/src/ajax/jsonp.js +89 -0
- data/vendor/assets/bower_components/jquery/src/ajax/load.js +75 -0
- data/vendor/assets/bower_components/jquery/src/ajax/parseJSON.js +13 -0
- data/vendor/assets/bower_components/jquery/src/ajax/parseXML.js +28 -0
- data/vendor/assets/bower_components/jquery/src/ajax/script.js +64 -0
- data/vendor/assets/bower_components/jquery/src/ajax/var/nonce.js +5 -0
- data/vendor/assets/bower_components/jquery/src/ajax/var/rquery.js +3 -0
- data/vendor/assets/bower_components/jquery/src/ajax/xhr.js +136 -0
- data/vendor/assets/bower_components/jquery/src/attributes.js +11 -0
- data/vendor/assets/bower_components/jquery/src/attributes/attr.js +141 -0
- data/vendor/assets/bower_components/jquery/src/attributes/classes.js +158 -0
- data/vendor/assets/bower_components/jquery/src/attributes/prop.js +94 -0
- data/vendor/assets/bower_components/jquery/src/attributes/support.js +35 -0
- data/vendor/assets/bower_components/jquery/src/attributes/val.js +161 -0
- data/vendor/assets/bower_components/jquery/src/callbacks.js +205 -0
- data/vendor/assets/bower_components/jquery/src/core.js +497 -0
- data/vendor/assets/bower_components/jquery/src/core/access.js +60 -0
- data/vendor/assets/bower_components/jquery/src/core/init.js +123 -0
- data/vendor/assets/bower_components/jquery/src/core/parseHTML.js +39 -0
- data/vendor/assets/bower_components/jquery/src/core/ready.js +97 -0
- data/vendor/assets/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
- data/vendor/assets/bower_components/jquery/src/css.js +450 -0
- data/vendor/assets/bower_components/jquery/src/css/addGetHookIf.js +22 -0
- data/vendor/assets/bower_components/jquery/src/css/curCSS.js +57 -0
- data/vendor/assets/bower_components/jquery/src/css/defaultDisplay.js +70 -0
- data/vendor/assets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/vendor/assets/bower_components/jquery/src/css/support.js +96 -0
- data/vendor/assets/bower_components/jquery/src/css/swap.js +28 -0
- data/vendor/assets/bower_components/jquery/src/css/var/cssExpand.js +3 -0
- data/vendor/assets/bower_components/jquery/src/css/var/getStyles.js +12 -0
- data/vendor/assets/bower_components/jquery/src/css/var/isHidden.js +13 -0
- data/vendor/assets/bower_components/jquery/src/css/var/rmargin.js +3 -0
- data/vendor/assets/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
- data/vendor/assets/bower_components/jquery/src/data.js +178 -0
- data/vendor/assets/bower_components/jquery/src/data/Data.js +181 -0
- data/vendor/assets/bower_components/jquery/src/data/accepts.js +20 -0
- data/vendor/assets/bower_components/jquery/src/data/var/data_priv.js +5 -0
- data/vendor/assets/bower_components/jquery/src/data/var/data_user.js +5 -0
- data/vendor/assets/bower_components/jquery/src/deferred.js +149 -0
- data/vendor/assets/bower_components/jquery/src/deprecated.js +13 -0
- data/vendor/assets/bower_components/jquery/src/dimensions.js +50 -0
- data/vendor/assets/bower_components/jquery/src/effects.js +648 -0
- data/vendor/assets/bower_components/jquery/src/effects/Tween.js +114 -0
- data/vendor/assets/bower_components/jquery/src/effects/animatedSelector.js +13 -0
- data/vendor/assets/bower_components/jquery/src/event.js +868 -0
- data/vendor/assets/bower_components/jquery/src/event/ajax.js +13 -0
- data/vendor/assets/bower_components/jquery/src/event/alias.js +39 -0
- data/vendor/assets/bower_components/jquery/src/event/support.js +9 -0
- data/vendor/assets/bower_components/jquery/src/exports/amd.js +24 -0
- data/vendor/assets/bower_components/jquery/src/exports/global.js +32 -0
- data/vendor/assets/bower_components/jquery/src/intro.js +44 -0
- data/vendor/assets/bower_components/jquery/src/jquery.js +37 -0
- data/vendor/assets/bower_components/jquery/src/manipulation.js +580 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/support.js +32 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/vendor/assets/bower_components/jquery/src/offset.js +207 -0
- data/vendor/assets/bower_components/jquery/src/outro.js +1 -0
- data/vendor/assets/bower_components/jquery/src/queue.js +142 -0
- data/vendor/assets/bower_components/jquery/src/queue/delay.js +22 -0
- data/vendor/assets/bower_components/jquery/src/selector-native.js +172 -0
- data/vendor/assets/bower_components/jquery/src/selector-sizzle.js +14 -0
- data/vendor/assets/bower_components/jquery/src/selector.js +1 -0
- data/vendor/assets/bower_components/jquery/src/serialize.js +111 -0
- data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.js +2067 -0
- data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/vendor/assets/bower_components/jquery/src/traversing.js +199 -0
- data/vendor/assets/bower_components/jquery/src/traversing/findFilter.js +100 -0
- data/vendor/assets/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/vendor/assets/bower_components/jquery/src/var/arr.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/class2type.js +4 -0
- data/vendor/assets/bower_components/jquery/src/var/concat.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/hasOwn.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/indexOf.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/pnum.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/push.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/rnotwhite.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/slice.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/strundefined.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/support.js +4 -0
- data/vendor/assets/bower_components/jquery/src/var/toString.js +5 -0
- data/vendor/assets/bower_components/jquery/src/wrap.js +79 -0
- data/vendor/assets/bower_components/pickadate/Gruntfile.js +275 -0
- data/vendor/assets/bower_components/pickadate/bower.json +63 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/legacy.js +10 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/picker.date.js +5 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/picker.js +7 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/picker.time.js +5 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/classic.css +4 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/classic.date.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/classic.time.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/default.css +4 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/default.date.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/default.time.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/rtl.css +3 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ar.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/bg_BG.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/bs_BA.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ca_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/cs_CZ.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/da_DK.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/de_DE.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/el_GR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/es_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/et_EE.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/eu_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/fi_FI.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/fr_FR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/gl_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/he_IL.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/hr_HR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/hu_HU.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/id_ID.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/is_IS.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/it_IT.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ja_JP.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ko_KR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ne_NP.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/nl_NL.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/no_NO.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/pl_PL.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/pt_BR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/pt_PT.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ro_RO.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ru_RU.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/sk_SK.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/sl_SI.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/sv_SE.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/th_TH.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/tr_TR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/uk_UA.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/vi_VN.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/zh_CN.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/zh_TW.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/legacy.js +133 -0
- data/vendor/assets/{javascripts/pickadate → bower_components/pickadate/lib}/picker.date.js +60 -28
- data/vendor/assets/{javascripts/pickadate → bower_components/pickadate/lib}/picker.js +41 -25
- data/vendor/assets/bower_components/pickadate/lib/picker.time.js +1014 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/_variables.less +208 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/base.date.less +333 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/base.less +55 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/base.time.less +119 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/classic.date.less +9 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/classic.less +119 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/classic.time.less +49 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/default.date.less +9 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/default.less +246 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/default.time.less +41 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/rtl.less +38 -0
- data/vendor/assets/{stylesheets/pickadate/classic.scss → bower_components/pickadate/lib/themes/classic.css} +0 -0
- data/vendor/assets/{stylesheets/pickadate/classic.date.scss → bower_components/pickadate/lib/themes/classic.date.css} +33 -10
- data/vendor/assets/bower_components/pickadate/lib/themes/classic.time.css +132 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/default.css +175 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/default.date.css +301 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/default.time.css +126 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/rtl.css +29 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ar.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/bg_BG.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/bs_BA.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ca_ES.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/cs_CZ.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/da_DK.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/de_DE.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/el_GR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/es_ES.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/et_EE.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/eu_ES.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/fi_FI.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/fr_FR.js +18 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/gl_ES.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/he_IL.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/hr_HR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/hu_HU.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/id_ID.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/is_IS.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/it_IT.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ja_JP.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ko_KR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ne_NP.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/nl_NL.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/no_NO.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/pl_PL.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/pt_BR.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/pt_PT.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ro_RO.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ru_RU.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/sk_SK.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/sl_SI.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/sv_SE.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/th_TH.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/tr_TR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/uk_UA.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/vi_VN.js +11 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/zh_CN.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/zh_TW.js +13 -0
- data/vendor/assets/bower_components/pickadate/package.json +63 -0
- data/vendor/assets/bower_components/pickadate/pickadate.jquery.json +63 -0
- data/vendor/assets/bower_components/typeahead.js/CHANGELOG.md +222 -0
- data/vendor/assets/bower_components/typeahead.js/CONTRIBUTING.md +120 -0
- data/vendor/assets/bower_components/typeahead.js/Gruntfile.js +265 -0
- data/vendor/assets/bower_components/typeahead.js/LICENSE +19 -0
- data/vendor/assets/bower_components/typeahead.js/README.md +188 -0
- data/vendor/assets/bower_components/typeahead.js/bower.json +13 -0
- data/vendor/assets/bower_components/typeahead.js/composer.json +17 -0
- data/vendor/assets/bower_components/typeahead.js/dist/bloodhound.js +727 -0
- data/vendor/assets/bower_components/typeahead.js/dist/bloodhound.min.js +7 -0
- data/vendor/assets/bower_components/typeahead.js/dist/typeahead.bundle.js +1782 -0
- data/vendor/assets/bower_components/typeahead.js/dist/typeahead.bundle.min.js +7 -0
- data/vendor/assets/{javascripts → bower_components/typeahead.js/dist}/typeahead.jquery.js +0 -0
- data/vendor/assets/bower_components/typeahead.js/dist/typeahead.jquery.min.js +7 -0
- data/vendor/assets/bower_components/typeahead.js/doc/bloodhound.md +279 -0
- data/vendor/assets/bower_components/typeahead.js/doc/jquery_typeahead.md +383 -0
- data/vendor/assets/bower_components/typeahead.js/doc/migration/0.10.0.md +234 -0
- data/vendor/assets/bower_components/typeahead.js/karma.conf.js +98 -0
- data/vendor/assets/bower_components/typeahead.js/package.json +57 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/bloodhound.js +234 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/lru_cache.js +99 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/options_parser.js +89 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/persistent_storage.js +131 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/search_index.js +169 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/tokenizers.js +44 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/transport.js +152 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/version.js +7 -0
- data/vendor/assets/bower_components/typeahead.js/src/common/utils.js +152 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/css.js +77 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/dataset.js +210 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/dropdown.js +245 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/event_bus.js +38 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/event_emitter.js +119 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/highlight.js +84 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/html.js +15 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/input.js +311 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/plugin.js +129 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/typeahead.js +391 -0
- data/vendor/assets/bower_components/typeahead.js/test/bloodhound_spec.js +592 -0
- data/vendor/assets/bower_components/typeahead.js/test/ci +12 -0
- data/vendor/assets/bower_components/typeahead.js/test/dataset_view_spec.js +222 -0
- data/vendor/assets/bower_components/typeahead.js/test/dropdown_view_spec.js +353 -0
- data/vendor/assets/bower_components/typeahead.js/test/event_emitter_spec.js +111 -0
- data/vendor/assets/bower_components/typeahead.js/test/fixtures/ajax_responses.js +19 -0
- data/vendor/assets/bower_components/typeahead.js/test/fixtures/data.js +116 -0
- data/vendor/assets/bower_components/typeahead.js/test/fixtures/html.js +17 -0
- data/vendor/assets/bower_components/typeahead.js/test/helpers/typeahead_mocks.js +71 -0
- data/vendor/assets/bower_components/typeahead.js/test/highlight_spec.js +117 -0
- data/vendor/assets/bower_components/typeahead.js/test/input_view_spec.js +449 -0
- data/vendor/assets/bower_components/typeahead.js/test/integration/test.html +112 -0
- data/vendor/assets/bower_components/typeahead.js/test/integration/test.js +397 -0
- data/vendor/assets/bower_components/typeahead.js/test/lru_cache_spec.js +42 -0
- data/vendor/assets/bower_components/typeahead.js/test/persistent_storage_spec.js +131 -0
- data/vendor/assets/bower_components/typeahead.js/test/playground.html +347 -0
- data/vendor/assets/bower_components/typeahead.js/test/search_index_spec.js +60 -0
- data/vendor/assets/bower_components/typeahead.js/test/tokenizers_spec.js +60 -0
- data/vendor/assets/bower_components/typeahead.js/test/transport_spec.js +197 -0
- data/vendor/assets/bower_components/typeahead.js/test/typeahead_view_spec.js +570 -0
- data/vendor/assets/bower_components/typeahead.js/typeahead.js.jquery.json +40 -0
- metadata +576 -12
- data/vendor/assets/javascripts/html5.js +0 -3
- data/vendor/assets/javascripts/jquery-1.7.1.js +0 -9266
- data/vendor/assets/javascripts/rails.js +0 -373
@@ -0,0 +1,197 @@
|
|
1
|
+
describe('Transport', function() {
|
2
|
+
|
3
|
+
beforeEach(function() {
|
4
|
+
jasmine.Ajax.useMock();
|
5
|
+
jasmine.Clock.useMock();
|
6
|
+
|
7
|
+
this.transport = new Transport();
|
8
|
+
});
|
9
|
+
|
10
|
+
afterEach(function() {
|
11
|
+
// run twice to flush out on-deck requests
|
12
|
+
$.each(ajaxRequests, drop);
|
13
|
+
$.each(ajaxRequests, drop);
|
14
|
+
|
15
|
+
clearAjaxRequests();
|
16
|
+
Transport.resetCache();
|
17
|
+
|
18
|
+
function drop(i, req) {
|
19
|
+
req.readyState !== 4 && req.response(fixtures.ajaxResps.ok);
|
20
|
+
}
|
21
|
+
});
|
22
|
+
|
23
|
+
it('should use jQuery.ajax as the default transport mechanism', function() {
|
24
|
+
var req, resp = fixtures.ajaxResps.ok, spy = jasmine.createSpy();
|
25
|
+
|
26
|
+
this.transport.get('/test', spy);
|
27
|
+
|
28
|
+
req = mostRecentAjaxRequest();
|
29
|
+
req.response(resp);
|
30
|
+
|
31
|
+
expect(req.url).toBe('/test');
|
32
|
+
expect(spy).toHaveBeenCalledWith(null, resp.parsed);
|
33
|
+
});
|
34
|
+
|
35
|
+
it('should allow the transport mechanism to be configured', function() {
|
36
|
+
var resp = fixtures.ajaxResps.ok,
|
37
|
+
cbSpy = jasmine.createSpy(),
|
38
|
+
sendSpy = jasmine.createSpy().andCallFake(send);
|
39
|
+
|
40
|
+
this.transport = new Transport({ transport: sendSpy });
|
41
|
+
this.transport.get('/test', cbSpy);
|
42
|
+
|
43
|
+
jasmine.Clock.tick(0);
|
44
|
+
|
45
|
+
expect(cbSpy).toHaveBeenCalledWith(null, resp.parsed);
|
46
|
+
expect(sendSpy).toHaveBeenCalledWith(
|
47
|
+
'/test',
|
48
|
+
{},
|
49
|
+
jasmine.any(Function),
|
50
|
+
jasmine.any(Function)
|
51
|
+
);
|
52
|
+
|
53
|
+
// send must be async
|
54
|
+
function send(url, o, onSuccess, onError) { onSuccess(resp.parsed); }
|
55
|
+
});
|
56
|
+
|
57
|
+
it('should respect maxPendingRequests configuration', function() {
|
58
|
+
for (var i = 0; i < 10; i++) {
|
59
|
+
this.transport.get('/test' + i, $.noop);
|
60
|
+
}
|
61
|
+
|
62
|
+
expect(ajaxRequests.length).toBe(6);
|
63
|
+
});
|
64
|
+
|
65
|
+
it('should support rate limiting', function() {
|
66
|
+
this.transport = new Transport({ rateLimiter: rateLimiter });
|
67
|
+
|
68
|
+
for (var i = 0; i < 5; i++) {
|
69
|
+
this.transport.get('/test' + i, $.noop);
|
70
|
+
}
|
71
|
+
|
72
|
+
jasmine.Clock.tick(100);
|
73
|
+
expect(ajaxRequests.length).toBe(1);
|
74
|
+
|
75
|
+
function rateLimiter(fn) { return _.debounce(fn, 20); }
|
76
|
+
});
|
77
|
+
|
78
|
+
it('should cache most recent requests', function() {
|
79
|
+
var spy1 = jasmine.createSpy(), spy2 = jasmine.createSpy();
|
80
|
+
|
81
|
+
this.transport.get('/test1', $.noop);
|
82
|
+
mostRecentAjaxRequest().response(fixtures.ajaxResps.ok);
|
83
|
+
|
84
|
+
this.transport.get('/test2', $.noop);
|
85
|
+
mostRecentAjaxRequest().response(fixtures.ajaxResps.ok1);
|
86
|
+
|
87
|
+
expect(ajaxRequests.length).toBe(2);
|
88
|
+
|
89
|
+
this.transport.get('/test1', spy1);
|
90
|
+
this.transport.get('/test2', spy2);
|
91
|
+
|
92
|
+
jasmine.Clock.tick(0);
|
93
|
+
|
94
|
+
// no ajax requests were made on subsequent requests
|
95
|
+
expect(ajaxRequests.length).toBe(2);
|
96
|
+
|
97
|
+
expect(spy1).toHaveBeenCalledWith(null, fixtures.ajaxResps.ok.parsed);
|
98
|
+
expect(spy2).toHaveBeenCalledWith(null, fixtures.ajaxResps.ok1.parsed);
|
99
|
+
});
|
100
|
+
|
101
|
+
it('should not cache requests if cache option is false', function() {
|
102
|
+
this.transport = new Transport({ cache: false });
|
103
|
+
|
104
|
+
this.transport.get('/test1', $.noop);
|
105
|
+
mostRecentAjaxRequest().response(fixtures.ajaxResps.ok);
|
106
|
+
this.transport.get('/test1', $.noop);
|
107
|
+
mostRecentAjaxRequest().response(fixtures.ajaxResps.ok);
|
108
|
+
|
109
|
+
expect(ajaxRequests.length).toBe(2);
|
110
|
+
});
|
111
|
+
|
112
|
+
it('should prevent dog pile', function() {
|
113
|
+
var spy1 = jasmine.createSpy(), spy2 = jasmine.createSpy();
|
114
|
+
|
115
|
+
this.transport.get('/test1', spy1);
|
116
|
+
this.transport.get('/test1', spy2);
|
117
|
+
|
118
|
+
mostRecentAjaxRequest().response(fixtures.ajaxResps.ok);
|
119
|
+
|
120
|
+
expect(ajaxRequests.length).toBe(1);
|
121
|
+
|
122
|
+
waitsFor(function() { return spy1.callCount && spy2.callCount; });
|
123
|
+
|
124
|
+
runs(function() {
|
125
|
+
expect(spy1).toHaveBeenCalledWith(null, fixtures.ajaxResps.ok.parsed);
|
126
|
+
expect(spy2).toHaveBeenCalledWith(null, fixtures.ajaxResps.ok.parsed);
|
127
|
+
});
|
128
|
+
});
|
129
|
+
|
130
|
+
it('should always make a request for the last call to #get', function() {
|
131
|
+
var spy = jasmine.createSpy();
|
132
|
+
|
133
|
+
for (var i = 0; i < 6; i++) {
|
134
|
+
this.transport.get('/test' + i, $.noop);
|
135
|
+
}
|
136
|
+
|
137
|
+
this.transport.get('/test' + i, spy);
|
138
|
+
expect(ajaxRequests.length).toBe(6);
|
139
|
+
|
140
|
+
_.each(ajaxRequests, function(req) {
|
141
|
+
req.response(fixtures.ajaxResps.ok);
|
142
|
+
});
|
143
|
+
|
144
|
+
expect(ajaxRequests.length).toBe(7);
|
145
|
+
mostRecentAjaxRequest().response(fixtures.ajaxResps.ok);
|
146
|
+
|
147
|
+
expect(spy).toHaveBeenCalled();
|
148
|
+
});
|
149
|
+
|
150
|
+
it('should invoke the callback with err set to true on failure', function() {
|
151
|
+
var req, resp = fixtures.ajaxResps.err, spy = jasmine.createSpy();
|
152
|
+
|
153
|
+
this.transport.get('/test', spy);
|
154
|
+
|
155
|
+
req = mostRecentAjaxRequest();
|
156
|
+
req.response(resp);
|
157
|
+
|
158
|
+
expect(req.url).toBe('/test');
|
159
|
+
expect(spy).toHaveBeenCalledWith(true);
|
160
|
+
});
|
161
|
+
|
162
|
+
it('should not send cancelled requests', function() {
|
163
|
+
this.transport = new Transport({ rateLimiter: rateLimiter });
|
164
|
+
|
165
|
+
this.transport.get('/test', $.noop);
|
166
|
+
this.transport.cancel();
|
167
|
+
|
168
|
+
jasmine.Clock.tick(100);
|
169
|
+
expect(ajaxRequests.length).toBe(0);
|
170
|
+
|
171
|
+
function rateLimiter(fn) { return _.debounce(fn, 20); }
|
172
|
+
});
|
173
|
+
|
174
|
+
it('should not send outdated requests', function() {
|
175
|
+
this.transport = new Transport({ rateLimiter: rateLimiter });
|
176
|
+
|
177
|
+
// warm cache
|
178
|
+
this.transport.get('/test1', $.noop);
|
179
|
+
jasmine.Clock.tick(100);
|
180
|
+
mostRecentAjaxRequest().response(fixtures.ajaxResps.ok);
|
181
|
+
|
182
|
+
expect(mostRecentAjaxRequest().url).toBe('/test1');
|
183
|
+
expect(ajaxRequests.length).toBe(1);
|
184
|
+
|
185
|
+
// within the same rate-limit cycle, request test2 and test1. test2 becomes
|
186
|
+
// outdated after test1 is requested and no request is sent for test1
|
187
|
+
// because it's a cache hit
|
188
|
+
this.transport.get('/test2', $.noop);
|
189
|
+
this.transport.get('/test1', $.noop);
|
190
|
+
|
191
|
+
jasmine.Clock.tick(100);
|
192
|
+
|
193
|
+
expect(ajaxRequests.length).toBe(1);
|
194
|
+
|
195
|
+
function rateLimiter(fn) { return _.debounce(fn, 20); }
|
196
|
+
});
|
197
|
+
});
|
@@ -0,0 +1,570 @@
|
|
1
|
+
describe('Typeahead', function() {
|
2
|
+
var testDatum;
|
3
|
+
|
4
|
+
beforeEach(function() {
|
5
|
+
var $fixture, $input;
|
6
|
+
|
7
|
+
jasmine.Input.useMock();
|
8
|
+
jasmine.Dataset.useMock();
|
9
|
+
jasmine.Dropdown.useMock();
|
10
|
+
|
11
|
+
setFixtures(fixtures.html.textInput);
|
12
|
+
|
13
|
+
$fixture = $('#jasmine-fixtures');
|
14
|
+
this.$input = $fixture.find('input');
|
15
|
+
|
16
|
+
testDatum = fixtures.data.simple[0];
|
17
|
+
|
18
|
+
this.view = new Typeahead({
|
19
|
+
input: this.$input,
|
20
|
+
withHint: true,
|
21
|
+
datasets: {}
|
22
|
+
});
|
23
|
+
|
24
|
+
this.input = this.view.input;
|
25
|
+
this.dropdown = this.view.dropdown;
|
26
|
+
});
|
27
|
+
|
28
|
+
describe('when dropdown triggers suggestionClicked', function() {
|
29
|
+
beforeEach(function() {
|
30
|
+
this.dropdown.getDatumForSuggestion.andReturn(testDatum);
|
31
|
+
});
|
32
|
+
|
33
|
+
it('should select the datum', function() {
|
34
|
+
var $e, spy;
|
35
|
+
|
36
|
+
this.$input.on('typeahead:selected', spy = jasmine.createSpy());
|
37
|
+
this.dropdown.trigger('suggestionClicked');
|
38
|
+
|
39
|
+
expect(spy).toHaveBeenCalled();
|
40
|
+
expect(this.input.setQuery).toHaveBeenCalledWith(testDatum.value);
|
41
|
+
expect(this.input.setInputValue)
|
42
|
+
.toHaveBeenCalledWith(testDatum.value, true);
|
43
|
+
|
44
|
+
waitsFor(function() { return this.dropdown.close.callCount; });
|
45
|
+
});
|
46
|
+
});
|
47
|
+
|
48
|
+
describe('when dropdown triggers cursorMoved', function() {
|
49
|
+
beforeEach(function() {
|
50
|
+
this.dropdown.getDatumForCursor.andReturn(testDatum);
|
51
|
+
});
|
52
|
+
|
53
|
+
it('should update the input value', function() {
|
54
|
+
this.dropdown.trigger('cursorMoved');
|
55
|
+
|
56
|
+
expect(this.input.setInputValue)
|
57
|
+
.toHaveBeenCalledWith(testDatum.value, true);
|
58
|
+
});
|
59
|
+
|
60
|
+
it('should trigger cursorchanged', function() {
|
61
|
+
var spy;
|
62
|
+
|
63
|
+
this.$input.on('typeahead:cursorchanged', spy = jasmine.createSpy());
|
64
|
+
|
65
|
+
this.dropdown.trigger('cursorMoved');
|
66
|
+
|
67
|
+
expect(spy).toHaveBeenCalled();
|
68
|
+
});
|
69
|
+
});
|
70
|
+
|
71
|
+
describe('when dropdown triggers cursorRemoved', function() {
|
72
|
+
it('should reset the input value', function() {
|
73
|
+
this.dropdown.trigger('cursorRemoved');
|
74
|
+
|
75
|
+
expect(this.input.resetInputValue).toHaveBeenCalled();
|
76
|
+
});
|
77
|
+
|
78
|
+
it('should update the hint', function() {
|
79
|
+
this.dropdown.getDatumForTopSuggestion.andReturn(testDatum);
|
80
|
+
this.dropdown.isVisible.andReturn(true);
|
81
|
+
this.input.hasOverflow.andReturn(false);
|
82
|
+
this.input.getInputValue.andReturn(testDatum.value.slice(0, 2));
|
83
|
+
|
84
|
+
this.dropdown.trigger('cursorRemoved');
|
85
|
+
|
86
|
+
expect(this.input.setHint).toHaveBeenCalledWith(testDatum.value);
|
87
|
+
});
|
88
|
+
});
|
89
|
+
|
90
|
+
describe('when dropdown triggers datasetRendered', function() {
|
91
|
+
it('should update the hint asynchronously', function() {
|
92
|
+
this.dropdown.getDatumForTopSuggestion.andReturn(testDatum);
|
93
|
+
this.dropdown.isVisible.andReturn(true);
|
94
|
+
this.input.hasOverflow.andReturn(false);
|
95
|
+
this.input.getInputValue.andReturn(testDatum.value.slice(0, 2));
|
96
|
+
|
97
|
+
this.dropdown.trigger('datasetRendered');
|
98
|
+
|
99
|
+
// ensure it wasn't called synchronously
|
100
|
+
expect(this.input.setHint).not.toHaveBeenCalled();
|
101
|
+
|
102
|
+
waitsFor(function() {
|
103
|
+
return !!this.input.setHint.callCount;
|
104
|
+
});
|
105
|
+
|
106
|
+
runs(function() {
|
107
|
+
expect(this.input.setHint).toHaveBeenCalledWith(testDatum.value);
|
108
|
+
});
|
109
|
+
});
|
110
|
+
});
|
111
|
+
|
112
|
+
describe('when dropdown triggers opened', function() {
|
113
|
+
it('should update the hint', function() {
|
114
|
+
this.dropdown.getDatumForTopSuggestion.andReturn(testDatum);
|
115
|
+
this.dropdown.isVisible.andReturn(true);
|
116
|
+
this.input.hasOverflow.andReturn(false);
|
117
|
+
this.input.getInputValue.andReturn(testDatum.value.slice(0, 2));
|
118
|
+
|
119
|
+
this.dropdown.trigger('opened');
|
120
|
+
|
121
|
+
expect(this.input.setHint).toHaveBeenCalledWith(testDatum.value);
|
122
|
+
});
|
123
|
+
|
124
|
+
it('should trigger typeahead:opened', function() {
|
125
|
+
var spy;
|
126
|
+
|
127
|
+
this.$input.on('typeahead:opened', spy = jasmine.createSpy());
|
128
|
+
|
129
|
+
this.dropdown.trigger('opened');
|
130
|
+
|
131
|
+
expect(spy).toHaveBeenCalled();
|
132
|
+
});
|
133
|
+
});
|
134
|
+
|
135
|
+
describe('when dropdown triggers closed', function() {
|
136
|
+
it('should clear the hint', function() {
|
137
|
+
this.dropdown.trigger('closed');
|
138
|
+
|
139
|
+
expect(this.input.clearHint).toHaveBeenCalled();
|
140
|
+
});
|
141
|
+
|
142
|
+
it('should trigger typeahead:closed', function() {
|
143
|
+
var spy;
|
144
|
+
|
145
|
+
this.$input.on('typeahead:closed', spy = jasmine.createSpy());
|
146
|
+
|
147
|
+
this.dropdown.trigger('closed');
|
148
|
+
|
149
|
+
expect(spy).toHaveBeenCalled();
|
150
|
+
});
|
151
|
+
});
|
152
|
+
|
153
|
+
describe('when input triggers focused', function() {
|
154
|
+
it('should activate the typeahead', function() {
|
155
|
+
this.input.trigger('focused');
|
156
|
+
|
157
|
+
expect(this.view.isActivated).toBe(true);
|
158
|
+
});
|
159
|
+
|
160
|
+
it('should open the dropdown', function() {
|
161
|
+
this.input.trigger('focused');
|
162
|
+
|
163
|
+
expect(this.dropdown.open).toHaveBeenCalled();
|
164
|
+
});
|
165
|
+
});
|
166
|
+
|
167
|
+
describe('when input triggers blurred', function() {
|
168
|
+
it('should deactivate the typeahead', function() {
|
169
|
+
this.input.trigger('blurred');
|
170
|
+
|
171
|
+
expect(this.view.isActivated).toBe(false);
|
172
|
+
});
|
173
|
+
|
174
|
+
it('should empty the dropdown', function() {
|
175
|
+
this.input.trigger('blurred');
|
176
|
+
|
177
|
+
expect(this.dropdown.empty).toHaveBeenCalled();
|
178
|
+
});
|
179
|
+
|
180
|
+
it('should close the dropdown', function() {
|
181
|
+
this.input.trigger('blurred');
|
182
|
+
|
183
|
+
expect(this.dropdown.close).toHaveBeenCalled();
|
184
|
+
});
|
185
|
+
});
|
186
|
+
|
187
|
+
describe('when input triggers enterKeyed', function() {
|
188
|
+
beforeEach(function() {
|
189
|
+
this.dropdown.getDatumForCursor.andReturn(testDatum);
|
190
|
+
});
|
191
|
+
|
192
|
+
it('should select the datum', function() {
|
193
|
+
var $e, spy;
|
194
|
+
|
195
|
+
$e = jasmine.createSpyObj('event', ['preventDefault']);
|
196
|
+
this.$input.on('typeahead:selected', spy = jasmine.createSpy());
|
197
|
+
this.input.trigger('enterKeyed', $e);
|
198
|
+
|
199
|
+
expect(spy).toHaveBeenCalled();
|
200
|
+
expect(this.input.setQuery).toHaveBeenCalledWith(testDatum.value);
|
201
|
+
expect(this.input.setInputValue)
|
202
|
+
.toHaveBeenCalledWith(testDatum.value, true);
|
203
|
+
|
204
|
+
waitsFor(function() { return this.dropdown.close.callCount; });
|
205
|
+
});
|
206
|
+
|
207
|
+
it('should prevent the default behavior of the event', function() {
|
208
|
+
var $e;
|
209
|
+
|
210
|
+
$e = jasmine.createSpyObj('event', ['preventDefault']);
|
211
|
+
this.input.trigger('enterKeyed', $e);
|
212
|
+
|
213
|
+
expect($e.preventDefault).toHaveBeenCalled();
|
214
|
+
});
|
215
|
+
});
|
216
|
+
|
217
|
+
describe('when input triggers tabKeyed', function() {
|
218
|
+
describe('when cursor is in use', function() {
|
219
|
+
beforeEach(function() {
|
220
|
+
this.dropdown.getDatumForCursor.andReturn(testDatum);
|
221
|
+
});
|
222
|
+
|
223
|
+
it('should select the datum', function() {
|
224
|
+
var $e, spy;
|
225
|
+
|
226
|
+
$e = jasmine.createSpyObj('event', ['preventDefault']);
|
227
|
+
this.$input.on('typeahead:selected', spy = jasmine.createSpy());
|
228
|
+
this.input.trigger('tabKeyed', $e);
|
229
|
+
|
230
|
+
expect(spy).toHaveBeenCalled();
|
231
|
+
expect(this.input.setQuery).toHaveBeenCalledWith(testDatum.value);
|
232
|
+
expect(this.input.setInputValue)
|
233
|
+
.toHaveBeenCalledWith(testDatum.value, true);
|
234
|
+
|
235
|
+
waitsFor(function() { return this.dropdown.close.callCount; });
|
236
|
+
});
|
237
|
+
|
238
|
+
it('should prevent the default behavior of the event', function() {
|
239
|
+
var $e;
|
240
|
+
|
241
|
+
$e = jasmine.createSpyObj('event', ['preventDefault']);
|
242
|
+
this.input.trigger('tabKeyed', $e);
|
243
|
+
|
244
|
+
expect($e.preventDefault).toHaveBeenCalled();
|
245
|
+
});
|
246
|
+
});
|
247
|
+
|
248
|
+
describe('when cursor is not in use', function() {
|
249
|
+
it('should autocomplete', function() {
|
250
|
+
var spy;
|
251
|
+
|
252
|
+
this.input.getQuery.andReturn('bi');
|
253
|
+
this.input.getHint.andReturn(testDatum.value);
|
254
|
+
this.input.isCursorAtEnd.andReturn(true);
|
255
|
+
this.dropdown.getDatumForTopSuggestion.andReturn(testDatum);
|
256
|
+
this.$input.on('typeahead:autocompleted', spy = jasmine.createSpy());
|
257
|
+
|
258
|
+
this.input.trigger('tabKeyed');
|
259
|
+
|
260
|
+
expect(this.input.setInputValue).toHaveBeenCalledWith(testDatum.value);
|
261
|
+
expect(spy).toHaveBeenCalled();
|
262
|
+
});
|
263
|
+
});
|
264
|
+
});
|
265
|
+
|
266
|
+
describe('when input triggers escKeyed', function() {
|
267
|
+
it('should close the dropdown', function() {
|
268
|
+
this.input.trigger('escKeyed');
|
269
|
+
|
270
|
+
expect(this.dropdown.close).toHaveBeenCalled();
|
271
|
+
});
|
272
|
+
|
273
|
+
it('should reset the input value', function() {
|
274
|
+
this.input.trigger('escKeyed');
|
275
|
+
|
276
|
+
expect(this.input.resetInputValue).toHaveBeenCalled();
|
277
|
+
});
|
278
|
+
});
|
279
|
+
|
280
|
+
describe('when input triggers upKeyed', function() {
|
281
|
+
beforeEach(function() {
|
282
|
+
this.input.getQuery.andReturn('ghost');
|
283
|
+
});
|
284
|
+
|
285
|
+
describe('when dropdown is empty and minLength is satisfied', function() {
|
286
|
+
beforeEach(function() {
|
287
|
+
this.dropdown.isEmpty = true;
|
288
|
+
this.view.minLength = 2;
|
289
|
+
|
290
|
+
this.input.trigger('upKeyed');
|
291
|
+
});
|
292
|
+
|
293
|
+
it('should update dropdown', function() {
|
294
|
+
expect(this.dropdown.update).toHaveBeenCalledWith('ghost');
|
295
|
+
});
|
296
|
+
|
297
|
+
it('should not move cursor up', function() {
|
298
|
+
expect(this.dropdown.moveCursorUp).not.toHaveBeenCalled();
|
299
|
+
});
|
300
|
+
});
|
301
|
+
|
302
|
+
describe('when dropdown is not empty', function() {
|
303
|
+
beforeEach(function() {
|
304
|
+
this.dropdown.isEmpty = false;
|
305
|
+
this.view.minLength = 2;
|
306
|
+
|
307
|
+
this.input.trigger('upKeyed');
|
308
|
+
});
|
309
|
+
|
310
|
+
it('should not update dropdown', function() {
|
311
|
+
expect(this.dropdown.update).not.toHaveBeenCalled();
|
312
|
+
});
|
313
|
+
|
314
|
+
it('should move cursor up', function() {
|
315
|
+
expect(this.dropdown.moveCursorUp).toHaveBeenCalled();
|
316
|
+
});
|
317
|
+
});
|
318
|
+
|
319
|
+
describe('when minLength is not satisfied', function() {
|
320
|
+
beforeEach(function() {
|
321
|
+
this.dropdown.isEmpty = true;
|
322
|
+
this.view.minLength = 10;
|
323
|
+
|
324
|
+
this.input.trigger('upKeyed');
|
325
|
+
});
|
326
|
+
|
327
|
+
it('should not update dropdown', function() {
|
328
|
+
expect(this.dropdown.update).not.toHaveBeenCalled();
|
329
|
+
});
|
330
|
+
|
331
|
+
it('should move cursor up', function() {
|
332
|
+
expect(this.dropdown.moveCursorUp).toHaveBeenCalled();
|
333
|
+
});
|
334
|
+
});
|
335
|
+
|
336
|
+
it('should open the dropdown', function() {
|
337
|
+
this.input.trigger('upKeyed');
|
338
|
+
|
339
|
+
expect(this.dropdown.open).toHaveBeenCalled();
|
340
|
+
});
|
341
|
+
});
|
342
|
+
|
343
|
+
describe('when input triggers downKeyed', function() {
|
344
|
+
beforeEach(function() {
|
345
|
+
this.input.getQuery.andReturn('ghost');
|
346
|
+
});
|
347
|
+
|
348
|
+
describe('when dropdown is empty and minLength is satisfied', function() {
|
349
|
+
beforeEach(function() {
|
350
|
+
this.dropdown.isEmpty = true;
|
351
|
+
this.view.minLength = 2;
|
352
|
+
|
353
|
+
this.input.trigger('downKeyed');
|
354
|
+
});
|
355
|
+
|
356
|
+
it('should update dropdown', function() {
|
357
|
+
expect(this.dropdown.update).toHaveBeenCalledWith('ghost');
|
358
|
+
});
|
359
|
+
|
360
|
+
it('should not move cursor down', function() {
|
361
|
+
expect(this.dropdown.moveCursorDown).not.toHaveBeenCalled();
|
362
|
+
});
|
363
|
+
});
|
364
|
+
|
365
|
+
describe('when dropdown is not empty', function() {
|
366
|
+
beforeEach(function() {
|
367
|
+
this.dropdown.isEmpty = false;
|
368
|
+
this.view.minLength = 2;
|
369
|
+
|
370
|
+
this.input.trigger('downKeyed');
|
371
|
+
});
|
372
|
+
|
373
|
+
it('should not update dropdown', function() {
|
374
|
+
expect(this.dropdown.update).not.toHaveBeenCalled();
|
375
|
+
});
|
376
|
+
|
377
|
+
it('should move cursor down', function() {
|
378
|
+
expect(this.dropdown.moveCursorDown).toHaveBeenCalled();
|
379
|
+
});
|
380
|
+
});
|
381
|
+
|
382
|
+
describe('when minLength is not satisfied', function() {
|
383
|
+
beforeEach(function() {
|
384
|
+
this.dropdown.isEmpty = true;
|
385
|
+
this.view.minLength = 10;
|
386
|
+
|
387
|
+
this.input.trigger('downKeyed');
|
388
|
+
});
|
389
|
+
|
390
|
+
it('should not update dropdown', function() {
|
391
|
+
expect(this.dropdown.update).not.toHaveBeenCalled();
|
392
|
+
});
|
393
|
+
|
394
|
+
it('should move cursor down', function() {
|
395
|
+
expect(this.dropdown.moveCursorDown).toHaveBeenCalled();
|
396
|
+
});
|
397
|
+
});
|
398
|
+
|
399
|
+
it('should open the dropdown', function() {
|
400
|
+
this.input.trigger('downKeyed');
|
401
|
+
|
402
|
+
expect(this.dropdown.open).toHaveBeenCalled();
|
403
|
+
});
|
404
|
+
});
|
405
|
+
|
406
|
+
describe('when input triggers leftKeyed', function() {
|
407
|
+
it('should autocomplete if language is rtl', function() {
|
408
|
+
var spy;
|
409
|
+
|
410
|
+
this.view.dir = 'rtl';
|
411
|
+
this.input.getQuery.andReturn('bi');
|
412
|
+
this.input.getHint.andReturn(testDatum.value);
|
413
|
+
this.input.isCursorAtEnd.andReturn(true);
|
414
|
+
this.dropdown.getDatumForTopSuggestion.andReturn(testDatum);
|
415
|
+
this.$input.on('typeahead:autocompleted', spy = jasmine.createSpy());
|
416
|
+
|
417
|
+
this.input.trigger('leftKeyed');
|
418
|
+
|
419
|
+
expect(this.input.setInputValue).toHaveBeenCalledWith(testDatum.value);
|
420
|
+
expect(spy).toHaveBeenCalled();
|
421
|
+
});
|
422
|
+
});
|
423
|
+
|
424
|
+
describe('when input triggers rightKeyed', function() {
|
425
|
+
it('should autocomplete if language is ltr', function() {
|
426
|
+
var spy;
|
427
|
+
|
428
|
+
this.view.dir = 'ltr';
|
429
|
+
this.input.getQuery.andReturn('bi');
|
430
|
+
this.input.getHint.andReturn(testDatum.value);
|
431
|
+
this.input.isCursorAtEnd.andReturn(true);
|
432
|
+
this.dropdown.getDatumForTopSuggestion.andReturn(testDatum);
|
433
|
+
this.$input.on('typeahead:autocompleted', spy = jasmine.createSpy());
|
434
|
+
|
435
|
+
this.input.trigger('rightKeyed');
|
436
|
+
|
437
|
+
expect(this.input.setInputValue).toHaveBeenCalledWith(testDatum.value);
|
438
|
+
expect(spy).toHaveBeenCalled();
|
439
|
+
});
|
440
|
+
});
|
441
|
+
|
442
|
+
describe('when input triggers queryChanged', function() {
|
443
|
+
it('should clear the hint if it has become invalid', function() {
|
444
|
+
this.input.trigger('queryChanged', testDatum.value);
|
445
|
+
|
446
|
+
expect(this.input.clearHintIfInvalid).toHaveBeenCalled();
|
447
|
+
});
|
448
|
+
|
449
|
+
it('should empty dropdown if the query is empty', function() {
|
450
|
+
this.input.trigger('queryChanged', '');
|
451
|
+
|
452
|
+
expect(this.dropdown.empty).toHaveBeenCalled();
|
453
|
+
});
|
454
|
+
|
455
|
+
it('should not empty dropdown if the query is non-empty', function() {
|
456
|
+
this.input.trigger('queryChanged', testDatum.value);
|
457
|
+
|
458
|
+
expect(this.dropdown.empty).not.toHaveBeenCalled();
|
459
|
+
});
|
460
|
+
|
461
|
+
it('should update dropdown', function() {
|
462
|
+
this.input.trigger('queryChanged', testDatum.value);
|
463
|
+
|
464
|
+
expect(this.dropdown.update).toHaveBeenCalledWith(testDatum.value);
|
465
|
+
});
|
466
|
+
|
467
|
+
it('should open the dropdown', function() {
|
468
|
+
this.input.trigger('queryChanged', testDatum.value);
|
469
|
+
|
470
|
+
expect(this.dropdown.open).toHaveBeenCalled();
|
471
|
+
});
|
472
|
+
|
473
|
+
it('should set the language direction', function() {
|
474
|
+
this.input.getLanguageDirection.andReturn('rtl');
|
475
|
+
|
476
|
+
this.input.trigger('queryChanged', testDatum.value);
|
477
|
+
|
478
|
+
expect(this.view.dir).toBe('rtl');
|
479
|
+
expect(this.view.$node).toHaveCss({ direction: 'rtl' });
|
480
|
+
expect(this.dropdown.setLanguageDirection).toHaveBeenCalledWith('rtl');
|
481
|
+
});
|
482
|
+
});
|
483
|
+
|
484
|
+
describe('when input triggers whitespaceChanged', function() {
|
485
|
+
it('should update the hint', function() {
|
486
|
+
this.dropdown.getDatumForTopSuggestion.andReturn(testDatum);
|
487
|
+
this.dropdown.isVisible.andReturn(true);
|
488
|
+
this.input.hasOverflow.andReturn(false);
|
489
|
+
this.input.getInputValue.andReturn(testDatum.value.slice(0, 2));
|
490
|
+
|
491
|
+
this.input.trigger('whitespaceChanged');
|
492
|
+
|
493
|
+
expect(this.input.setHint).toHaveBeenCalledWith(testDatum.value);
|
494
|
+
});
|
495
|
+
|
496
|
+
it('should open the dropdown', function() {
|
497
|
+
this.input.trigger('whitespaceChanged');
|
498
|
+
|
499
|
+
expect(this.dropdown.open).toHaveBeenCalled();
|
500
|
+
});
|
501
|
+
});
|
502
|
+
|
503
|
+
describe('#open', function() {
|
504
|
+
it('should open the dropdown', function() {
|
505
|
+
this.view.open();
|
506
|
+
|
507
|
+
expect(this.dropdown.open).toHaveBeenCalled();
|
508
|
+
});
|
509
|
+
});
|
510
|
+
|
511
|
+
describe('#close', function() {
|
512
|
+
it('should close the dropdown', function() {
|
513
|
+
this.view.close();
|
514
|
+
|
515
|
+
expect(this.dropdown.close).toHaveBeenCalled();
|
516
|
+
});
|
517
|
+
});
|
518
|
+
|
519
|
+
describe('#getVal', function() {
|
520
|
+
it('should return the current query', function() {
|
521
|
+
this.input.getQuery.andReturn('woah');
|
522
|
+
this.view.close();
|
523
|
+
|
524
|
+
expect(this.view.getVal()).toBe('woah');
|
525
|
+
});
|
526
|
+
});
|
527
|
+
|
528
|
+
describe('#setVal', function() {
|
529
|
+
it('should update query', function() {
|
530
|
+
this.view.isActivated = true;
|
531
|
+
this.view.setVal('woah');
|
532
|
+
|
533
|
+
expect(this.input.setInputValue).toHaveBeenCalledWith('woah');
|
534
|
+
});
|
535
|
+
|
536
|
+
it('should update query silently if not activated', function() {
|
537
|
+
this.view.setVal('woah');
|
538
|
+
|
539
|
+
expect(this.input.setQuery).toHaveBeenCalledWith('woah');
|
540
|
+
expect(this.input.setInputValue).toHaveBeenCalledWith('woah', true);
|
541
|
+
});
|
542
|
+
});
|
543
|
+
|
544
|
+
describe('#destroy', function() {
|
545
|
+
it('should destroy input', function() {
|
546
|
+
this.view.destroy();
|
547
|
+
|
548
|
+
expect(this.input.destroy).toHaveBeenCalled();
|
549
|
+
});
|
550
|
+
|
551
|
+
it('should destroy dropdown', function() {
|
552
|
+
this.view.destroy();
|
553
|
+
|
554
|
+
expect(this.dropdown.destroy).toHaveBeenCalled();
|
555
|
+
});
|
556
|
+
|
557
|
+
it('should null out its reference to the wrapper element', function() {
|
558
|
+
this.view.destroy();
|
559
|
+
|
560
|
+
expect(this.view.$node).toBeNull();
|
561
|
+
});
|
562
|
+
|
563
|
+
it('should revert DOM changes', function() {
|
564
|
+
this.view.destroy();
|
565
|
+
|
566
|
+
// TODO: bad test
|
567
|
+
expect(this.$input).not.toHaveClass('tt-input');
|
568
|
+
});
|
569
|
+
});
|
570
|
+
});
|