chosen-1.8.7/000077500000000000000000000000001330654661200130145ustar00rootroot00000000000000chosen-1.8.7/.github/000077500000000000000000000000001330654661200143545ustar00rootroot00000000000000chosen-1.8.7/.github/ISSUE_TEMPLATE.md000066400000000000000000000026121330654661200170620ustar00rootroot00000000000000 Summarize your issue here. ### Steps to reproduce Tell us how to reproduce this issue. 1. This is the first step 2. This is the second step 3. Further steps, etc. Additionally, please link to a working demo that shows the issue so we can attempt to reproduce. You can use [this template](https://jsfiddle.net/j7k727cp/) as a base. Alternatively, confirm that the [Chosen demo page](http://harvesthq.github.io/chosen/) shows the issue. ### Expected behavior Tell us what should happen. ### Actual behavior Tell us what happens instead. ### Environment - **Chosen Version**: - **jQuery or Prototype Version**: - **Browser and Version**: - **OS and Version**: ### Additional information Any other information you want to share that is relevant to the issue being reported. This might include the lines of code that you have identified as causing the bug, or potential solutions and workarounds. chosen-1.8.7/.github/PULL_REQUEST_TEMPLATE.md000066400000000000000000000024001330654661200201510ustar00rootroot00000000000000 ### Summary Provide a general description of the code changes in your pull request. Please double-check that: - [ ] All changes were made in CoffeeScript files, **not** JavaScript files. - [ ] You used [Grunt](https://github.com/harvesthq/chosen/blob/master/contributing.md#grunt) to build the JavaScript files and tested them locally. - [ ] You've updated both the jQuery *and* Prototype versions. - [ ] You haven't manually updated the version number in `package.json`. - [ ] If necessary, you've updated [the documentation](https://github.com/harvesthq/chosen/blob/master/public/options.html). See the [Pull Requests section of our Contributing Guidelines](https://github.com/harvesthq/chosen/blob/master/contributing.md#pull-requests) for more details. ### References If your pull request is in reference to one or more open GitHub issues, please mention them here to keep the conversations linked together. chosen-1.8.7/.gitignore000066400000000000000000000002621330654661200150040ustar00rootroot00000000000000.DS_Store node_modules .project public/*.js public/*.css public/*.json public/LICENSE.md chosen*.zip .sass-cache .ruby-version .rbenv-gemsets .grunt _SpecRunner.html spec/public chosen-1.8.7/.travis.yml000066400000000000000000000010221330654661200151200ustar00rootroot00000000000000sudo: false language: node_js node_js: - 6 - node addons: apt: sources: - git-core packages: - git matrix: fast_finish: true allow_failures: - node_js: node before_install: npm install -g grunt-cli before_script: grunt build package-npm package-bower after_success: ./publish-package.sh env: global: secure: "SOYNh0YO4eLAM38FQxrg7iqytXgdjJHRkmj/1lFzGrGeuuXP6Owe/2TaMyTJXWb9nHAAtRRwQyhAUE07eKhxI6b3YNyozeRulMK4B0K8P3P1B2MslpROyvQYtZupno3dWc0tyvsQ3ucnZE25mtetH6KYcwiI+vHv6hT8HnzBnp0=" chosen-1.8.7/Gruntfile.coffee000066400000000000000000000100061330654661200161210ustar00rootroot00000000000000module.exports = (grunt) -> require('load-grunt-tasks')(grunt) grunt.loadNpmTasks('grunt1.0-dom-munger') # the naming convention of the package does not allow auto-discovery. grunt.initConfig pkg: grunt.file.readJSON('package.json') version_tag: 'v<%= pkg.version %>' comments: """ /*! Chosen, a Select Box Enhancer for jQuery and Prototype by Patrick Filler for Harvest, http://getharvest.com Version <%= pkg.version %> Full source at https://github.com/harvesthq/chosen Copyright (c) 2011-<%= grunt.template.today('yyyy') %> Harvest http://getharvest.com MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md This file is generated by `grunt build`, do not edit it by hand. */ \n """ minified_comments: "/* Chosen <%= version_tag %> | (c) 2011-<%= grunt.template.today('yyyy') %> by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */\n" concat: options: banner: '<%= comments %>' jquery: src: ['public/chosen.jquery.js'] dest: 'public/chosen.jquery.js' proto: src: ['public/chosen.proto.js'] dest: 'public/chosen.proto.js' css: src: ['public/chosen.css'] dest: 'public/chosen.css' copy: main: src: 'LICENSE.md' dest: 'public/' php: src: 'composer.json' dest: 'public/' coffee: options: join: true jquery: files: 'public/chosen.jquery.js': ['coffee/lib/select-parser.coffee', 'coffee/lib/abstract-chosen.coffee', 'coffee/chosen.jquery.coffee'] proto: files: 'public/chosen.proto.js': ['coffee/lib/select-parser.coffee', 'coffee/lib/abstract-chosen.coffee', 'coffee/chosen.proto.coffee'] test: files: 'spec/public/jquery_specs.js': 'spec/jquery/*.spec.coffee' 'spec/public/proto_specs.js': 'spec/proto/*.spec.coffee' uglify: options: banner: '<%= minified_comments %>' jquery: options: ie8: true mangle: reserved: ['jQuery'] files: 'public/chosen.jquery.min.js': ['public/chosen.jquery.js'] proto: files: 'public/chosen.proto.min.js': ['public/chosen.proto.js'] sass: options: outputStyle: 'expanded' chosen_css: files: 'public/chosen.css': 'sass/chosen.scss' postcss: options: processors: [ require('autoprefixer')(browsers: 'last 2 versions, IE 8') ] main: src: 'public/chosen.css' cssmin: options: banner: '<%= minified_comments %>' keepSpecialComments: 0 main: src: 'public/chosen.css' dest: 'public/chosen.min.css' watch: default: files: ['coffee/**/*.coffee', 'sass/*.scss'] tasks: ['build', 'jasmine'] test: files: ['spec/**/*.coffee'] tasks: ['jasmine'] jasmine: jquery: options: vendor: [ 'public/docsupport/jquery-3.2.1.min.js' ] specs: 'spec/public/jquery_specs.js' src: [ 'public/chosen.jquery.js' ] jquery_old: options: vendor: [ 'public/docsupport/jquery-1.12.4.min.js' ] specs: 'spec/public/jquery_specs.js' src: [ 'public/chosen.jquery.js' ] proto: options: vendor: [ 'public/docsupport/prototype-1.7.0.0.js' 'node_modules/simulant/dist/simulant.umd.js' ] specs: 'spec/public/proto_specs.js' src: [ 'public/chosen.proto.js' ] grunt.loadTasks 'tasks' grunt.registerTask 'default', ['build'] grunt.registerTask 'build', ['coffee:jquery', 'coffee:proto', 'sass', 'concat', 'uglify', 'postcss', 'cssmin', 'copy'] grunt.registerTask 'test', ['coffee', 'jasmine'] grunt.registerTask 'test:jquery', ['coffee:test', 'coffee:jquery', 'jasmine:jquery', 'jasmine:jquery_old'] grunt.registerTask 'test:proto', ['coffee:test', 'coffee:proto', 'jasmine:proto'] chosen-1.8.7/LICENSE.md000066400000000000000000000022771330654661200144300ustar00rootroot00000000000000#### Chosen - by Patrick Filler for [Harvest](http://getharvest.com) - Copyright (c) 2011-2016 by Harvest Available for use under the [MIT License](http://en.wikipedia.org/wiki/MIT_License) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. chosen-1.8.7/README.md000066400000000000000000000037351330654661200143030ustar00rootroot00000000000000# Chosen Chosen is a library for making long, unwieldy select boxes more user friendly. - jQuery support: 1.7+ - Prototype support: 1.7+ For **documentation**, usage, and examples, see: http://harvesthq.github.io/chosen/ For **downloads**, see: https://github.com/harvesthq/chosen/releases/ ### Package managers Chosen is available through [Bower](https://bower.io/), [npm](https://www.npmjs.com), and [Composer](https://getcomposer.org/), _however, the package names are not the same_. To install with Bower: ``` bower install chosen ``` To install with npm: ``` npm install chosen-js ``` To install with Composer: ``` composer require harvesthq/chosen ``` The compiled files for these packages are automatically generated and stored in a [2nd Chosen repository](https://github.com/harvesthq/chosen-package). No pull requests will be accepted to that repository. ### Contributing to this project We welcome all to participate in making Chosen the best software it can be. The repository is maintained by only a few people, but has accepted contributions from over 50 authors after reviewing hundreds of pull requests related to thousands of issues. You can help reduce the maintainers' workload (and increase your chance of having an accepted contribution to Chosen) by following the [guidelines for contributing](contributing.md). * [Bug reports](contributing.md#bugs) * [Feature requests](contributing.md#features) * [Pull requests](contributing.md#pull-requests) ### Chosen Credits - Concept and development by [Patrick Filler](http://patrickfiller.com) for [Harvest](http://getharvest.com/). - Design and CSS by [Matthew Lettini](http://matthewlettini.com/) - Repository maintained by [@pfiller](http://github.com/pfiller), [@kenearley](http://github.com/kenearley), [@stof](http://github.com/stof), [@koenpunt](http://github.com/koenpunt), and [@tjschuck](http://github.com/tjschuck). - Chosen includes [contributions by many fine folks](https://github.com/harvesthq/chosen/contributors). chosen-1.8.7/coffee/000077500000000000000000000000001330654661200142435ustar00rootroot00000000000000chosen-1.8.7/coffee/chosen.jquery.coffee000066400000000000000000000426031330654661200202160ustar00rootroot00000000000000$ = jQuery $.fn.extend({ chosen: (options) -> # Do no harm and return as soon as possible for unsupported browsers, namely IE6 and IE7 # Continue on if running IE document type but in compatibility mode return this unless AbstractChosen.browser_is_supported() this.each (input_field) -> $this = $ this chosen = $this.data('chosen') if options is 'destroy' if chosen instanceof Chosen chosen.destroy() return unless chosen instanceof Chosen $this.data('chosen', new Chosen(this, options)) return }) class Chosen extends AbstractChosen setup: -> @form_field_jq = $ @form_field @current_selectedIndex = @form_field.selectedIndex set_up_html: -> container_classes = ["chosen-container"] container_classes.push "chosen-container-" + (if @is_multiple then "multi" else "single") container_classes.push @form_field.className if @inherit_select_classes && @form_field.className container_classes.push "chosen-rtl" if @is_rtl container_props = 'class': container_classes.join ' ' 'title': @form_field.title container_props.id = @form_field.id.replace(/[^\w]/g, '_') + "_chosen" if @form_field.id.length @container = ($ "
", container_props) # CSP without 'unsafe-inline' doesn't allow setting the style attribute directly @container.width this.container_width() if @is_multiple @container.html this.get_multi_html() else @container.html this.get_single_html() @form_field_jq.hide().after @container @dropdown = @container.find('div.chosen-drop').first() @search_field = @container.find('input').first() @search_results = @container.find('ul.chosen-results').first() this.search_field_scale() @search_no_results = @container.find('li.no-results').first() if @is_multiple @search_choices = @container.find('ul.chosen-choices').first() @search_container = @container.find('li.search-field').first() else @search_container = @container.find('div.chosen-search').first() @selected_item = @container.find('.chosen-single').first() this.results_build() this.set_tab_index() this.set_label_behavior() on_ready: -> @form_field_jq.trigger("chosen:ready", {chosen: this}) register_observers: -> @container.on 'touchstart.chosen', (evt) => this.container_mousedown(evt); return @container.on 'touchend.chosen', (evt) => this.container_mouseup(evt); return @container.on 'mousedown.chosen', (evt) => this.container_mousedown(evt); return @container.on 'mouseup.chosen', (evt) => this.container_mouseup(evt); return @container.on 'mouseenter.chosen', (evt) => this.mouse_enter(evt); return @container.on 'mouseleave.chosen', (evt) => this.mouse_leave(evt); return @search_results.on 'mouseup.chosen', (evt) => this.search_results_mouseup(evt); return @search_results.on 'mouseover.chosen', (evt) => this.search_results_mouseover(evt); return @search_results.on 'mouseout.chosen', (evt) => this.search_results_mouseout(evt); return @search_results.on 'mousewheel.chosen DOMMouseScroll.chosen', (evt) => this.search_results_mousewheel(evt); return @search_results.on 'touchstart.chosen', (evt) => this.search_results_touchstart(evt); return @search_results.on 'touchmove.chosen', (evt) => this.search_results_touchmove(evt); return @search_results.on 'touchend.chosen', (evt) => this.search_results_touchend(evt); return @form_field_jq.on "chosen:updated.chosen", (evt) => this.results_update_field(evt); return @form_field_jq.on "chosen:activate.chosen", (evt) => this.activate_field(evt); return @form_field_jq.on "chosen:open.chosen", (evt) => this.container_mousedown(evt); return @form_field_jq.on "chosen:close.chosen", (evt) => this.close_field(evt); return @search_field.on 'blur.chosen', (evt) => this.input_blur(evt); return @search_field.on 'keyup.chosen', (evt) => this.keyup_checker(evt); return @search_field.on 'keydown.chosen', (evt) => this.keydown_checker(evt); return @search_field.on 'focus.chosen', (evt) => this.input_focus(evt); return @search_field.on 'cut.chosen', (evt) => this.clipboard_event_checker(evt); return @search_field.on 'paste.chosen', (evt) => this.clipboard_event_checker(evt); return if @is_multiple @search_choices.on 'click.chosen', (evt) => this.choices_click(evt); return else @container.on 'click.chosen', (evt) -> evt.preventDefault(); return # gobble click of anchor destroy: -> $(@container[0].ownerDocument).off 'click.chosen', @click_test_action @form_field_label.off 'click.chosen' if @form_field_label.length > 0 if @search_field[0].tabIndex @form_field_jq[0].tabIndex = @search_field[0].tabIndex @container.remove() @form_field_jq.removeData('chosen') @form_field_jq.show() search_field_disabled: -> @is_disabled = @form_field.disabled || @form_field_jq.parents('fieldset').is(':disabled') @container.toggleClass 'chosen-disabled', @is_disabled @search_field[0].disabled = @is_disabled unless @is_multiple @selected_item.off 'focus.chosen', this.activate_field if @is_disabled this.close_field() else unless @is_multiple @selected_item.on 'focus.chosen', this.activate_field container_mousedown: (evt) -> return if @is_disabled if evt and evt.type in ['mousedown', 'touchstart'] and not @results_showing evt.preventDefault() if not (evt? and ($ evt.target).hasClass "search-choice-close") if not @active_field @search_field.val "" if @is_multiple $(@container[0].ownerDocument).on 'click.chosen', @click_test_action this.results_show() else if not @is_multiple and evt and (($(evt.target)[0] == @selected_item[0]) || $(evt.target).parents("a.chosen-single").length) evt.preventDefault() this.results_toggle() this.activate_field() container_mouseup: (evt) -> this.results_reset(evt) if evt.target.nodeName is "ABBR" and not @is_disabled search_results_mousewheel: (evt) -> delta = evt.originalEvent.deltaY or -evt.originalEvent.wheelDelta or evt.originalEvent.detail if evt.originalEvent if delta? evt.preventDefault() delta = delta * 40 if evt.type is 'DOMMouseScroll' @search_results.scrollTop(delta + @search_results.scrollTop()) blur_test: (evt) -> this.close_field() if not @active_field and @container.hasClass "chosen-container-active" close_field: -> $(@container[0].ownerDocument).off "click.chosen", @click_test_action @active_field = false this.results_hide() @container.removeClass "chosen-container-active" this.clear_backstroke() this.show_search_field_default() this.search_field_scale() @search_field.blur() activate_field: -> return if @is_disabled @container.addClass "chosen-container-active" @active_field = true @search_field.val(@search_field.val()) @search_field.focus() test_active_click: (evt) -> active_container = $(evt.target).closest('.chosen-container') if active_container.length and @container[0] == active_container[0] @active_field = true else this.close_field() results_build: -> @parsing = true @selected_option_count = null @results_data = SelectParser.select_to_array @form_field if @is_multiple @search_choices.find("li.search-choice").remove() else this.single_set_selected_text() if @disable_search or @form_field.options.length <= @disable_search_threshold @search_field[0].readOnly = true @container.addClass "chosen-container-single-nosearch" else @search_field[0].readOnly = false @container.removeClass "chosen-container-single-nosearch" this.update_results_content this.results_option_build({first:true}) this.search_field_disabled() this.show_search_field_default() this.search_field_scale() @parsing = false result_do_highlight: (el) -> if el.length this.result_clear_highlight() @result_highlight = el @result_highlight.addClass "highlighted" maxHeight = parseInt @search_results.css("maxHeight"), 10 visible_top = @search_results.scrollTop() visible_bottom = maxHeight + visible_top high_top = @result_highlight.position().top + @search_results.scrollTop() high_bottom = high_top + @result_highlight.outerHeight() if high_bottom >= visible_bottom @search_results.scrollTop if (high_bottom - maxHeight) > 0 then (high_bottom - maxHeight) else 0 else if high_top < visible_top @search_results.scrollTop high_top result_clear_highlight: -> @result_highlight.removeClass "highlighted" if @result_highlight @result_highlight = null results_show: -> if @is_multiple and @max_selected_options <= this.choices_count() @form_field_jq.trigger("chosen:maxselected", {chosen: this}) return false @container.addClass "chosen-with-drop" @results_showing = true @search_field.focus() @search_field.val this.get_search_field_value() this.winnow_results() @form_field_jq.trigger("chosen:showing_dropdown", {chosen: this}) update_results_content: (content) -> @search_results.html content results_hide: -> if @results_showing this.result_clear_highlight() @container.removeClass "chosen-with-drop" @form_field_jq.trigger("chosen:hiding_dropdown", {chosen: this}) @results_showing = false set_tab_index: (el) -> if @form_field.tabIndex ti = @form_field.tabIndex @form_field.tabIndex = -1 @search_field[0].tabIndex = ti set_label_behavior: -> @form_field_label = @form_field_jq.parents("label") # first check for a parent label if not @form_field_label.length and @form_field.id.length @form_field_label = $("label[for='#{@form_field.id}']") #next check for a for=#{id} if @form_field_label.length > 0 @form_field_label.on 'click.chosen', this.label_click_handler show_search_field_default: -> if @is_multiple and this.choices_count() < 1 and not @active_field @search_field.val(@default_text) @search_field.addClass "default" else @search_field.val("") @search_field.removeClass "default" search_results_mouseup: (evt) -> target = if $(evt.target).hasClass "active-result" then $(evt.target) else $(evt.target).parents(".active-result").first() if target.length @result_highlight = target this.result_select(evt) @search_field.focus() search_results_mouseover: (evt) -> target = if $(evt.target).hasClass "active-result" then $(evt.target) else $(evt.target).parents(".active-result").first() this.result_do_highlight( target ) if target search_results_mouseout: (evt) -> this.result_clear_highlight() if $(evt.target).hasClass("active-result") or $(evt.target).parents('.active-result').first() choice_build: (item) -> choice = $('
  • ', { class: "search-choice" }).html("#{this.choice_label(item)}") if item.disabled choice.addClass 'search-choice-disabled' else close_link = $('', { class: 'search-choice-close', 'data-option-array-index': item.array_index }) close_link.on 'click.chosen', (evt) => this.choice_destroy_link_click(evt) choice.append close_link @search_container.before choice choice_destroy_link_click: (evt) -> evt.preventDefault() evt.stopPropagation() this.choice_destroy $(evt.target) unless @is_disabled choice_destroy: (link) -> if this.result_deselect( link[0].getAttribute("data-option-array-index") ) if @active_field @search_field.focus() else this.show_search_field_default() this.results_hide() if @is_multiple and this.choices_count() > 0 and this.get_search_field_value().length < 1 link.parents('li').first().remove() this.search_field_scale() results_reset: -> this.reset_single_select_options() @form_field.options[0].selected = true this.single_set_selected_text() this.show_search_field_default() this.results_reset_cleanup() this.trigger_form_field_change() this.results_hide() if @active_field results_reset_cleanup: -> @current_selectedIndex = @form_field.selectedIndex @selected_item.find("abbr").remove() result_select: (evt) -> if @result_highlight high = @result_highlight this.result_clear_highlight() if @is_multiple and @max_selected_options <= this.choices_count() @form_field_jq.trigger("chosen:maxselected", {chosen: this}) return false if @is_multiple high.removeClass("active-result") else this.reset_single_select_options() high.addClass("result-selected") item = @results_data[ high[0].getAttribute("data-option-array-index") ] item.selected = true @form_field.options[item.options_index].selected = true @selected_option_count = null if @is_multiple this.choice_build item else this.single_set_selected_text(this.choice_label(item)) if @is_multiple && (!@hide_results_on_select || (evt.metaKey or evt.ctrlKey)) if evt.metaKey or evt.ctrlKey this.winnow_results(skip_highlight: true) else @search_field.val("") this.winnow_results() else this.results_hide() this.show_search_field_default() this.trigger_form_field_change selected: @form_field.options[item.options_index].value if @is_multiple || @form_field.selectedIndex != @current_selectedIndex @current_selectedIndex = @form_field.selectedIndex evt.preventDefault() this.search_field_scale() single_set_selected_text: (text=@default_text) -> if text is @default_text @selected_item.addClass("chosen-default") else this.single_deselect_control_build() @selected_item.removeClass("chosen-default") @selected_item.find("span").html(text) result_deselect: (pos) -> result_data = @results_data[pos] if not @form_field.options[result_data.options_index].disabled result_data.selected = false @form_field.options[result_data.options_index].selected = false @selected_option_count = null this.result_clear_highlight() this.winnow_results() if @results_showing this.trigger_form_field_change deselected: @form_field.options[result_data.options_index].value this.search_field_scale() return true else return false single_deselect_control_build: -> return unless @allow_single_deselect @selected_item.find("span").first().after "" unless @selected_item.find("abbr").length @selected_item.addClass("chosen-single-with-deselect") get_search_field_value: -> @search_field.val() get_search_text: -> $.trim this.get_search_field_value() escape_html: (text) -> $('
    ').text(text).html() winnow_results_set_highlight: -> selected_results = if not @is_multiple then @search_results.find(".result-selected.active-result") else [] do_high = if selected_results.length then selected_results.first() else @search_results.find(".active-result").first() this.result_do_highlight do_high if do_high? no_results: (terms) -> no_results_html = this.get_no_results_html(terms) @search_results.append no_results_html @form_field_jq.trigger("chosen:no_results", {chosen:this}) no_results_clear: -> @search_results.find(".no-results").remove() keydown_arrow: -> if @results_showing and @result_highlight next_sib = @result_highlight.nextAll("li.active-result").first() this.result_do_highlight next_sib if next_sib else this.results_show() keyup_arrow: -> if not @results_showing and not @is_multiple this.results_show() else if @result_highlight prev_sibs = @result_highlight.prevAll("li.active-result") if prev_sibs.length this.result_do_highlight prev_sibs.first() else this.results_hide() if this.choices_count() > 0 this.result_clear_highlight() keydown_backstroke: -> if @pending_backstroke this.choice_destroy @pending_backstroke.find("a").first() this.clear_backstroke() else next_available_destroy = @search_container.siblings("li.search-choice").last() if next_available_destroy.length and not next_available_destroy.hasClass("search-choice-disabled") @pending_backstroke = next_available_destroy if @single_backstroke_delete @keydown_backstroke() else @pending_backstroke.addClass "search-choice-focus" clear_backstroke: -> @pending_backstroke.removeClass "search-choice-focus" if @pending_backstroke @pending_backstroke = null search_field_scale: -> return unless @is_multiple style_block = position: 'absolute' left: '-1000px' top: '-1000px' display: 'none' whiteSpace: 'pre' styles = ['fontSize', 'fontStyle', 'fontWeight', 'fontFamily', 'lineHeight', 'textTransform', 'letterSpacing'] for style in styles style_block[style] = @search_field.css(style) div = $('
    ').css(style_block) div.text this.get_search_field_value() $('body').append div width = div.width() + 25 div.remove() if @container.is(':visible') width = Math.min(@container.outerWidth() - 10, width) @search_field.width(width) trigger_form_field_change: (extra) -> @form_field_jq.trigger "input", extra @form_field_jq.trigger "change", extra chosen-1.8.7/coffee/chosen.proto.coffee000066400000000000000000000423731330654661200200460ustar00rootroot00000000000000class @Chosen extends AbstractChosen setup: -> @current_selectedIndex = @form_field.selectedIndex set_up_html: -> container_classes = ["chosen-container"] container_classes.push "chosen-container-" + (if @is_multiple then "multi" else "single") container_classes.push @form_field.className if @inherit_select_classes && @form_field.className container_classes.push "chosen-rtl" if @is_rtl container_props = 'class': container_classes.join ' ' 'title': @form_field.title container_props.id = @form_field.id.replace(/[^\w]/g, '_') + "_chosen" if @form_field.id.length @container = new Element('div', container_props) # CSP without 'unsafe-inline' doesn't allow setting the style attribute directly @container.setStyle(width: this.container_width()) if @is_multiple @container.update this.get_multi_html() else @container.update this.get_single_html() @form_field.hide().insert({ after: @container }) @dropdown = @container.down('div.chosen-drop') @search_field = @container.down('input') @search_results = @container.down('ul.chosen-results') this.search_field_scale() @search_no_results = @container.down('li.no-results') if @is_multiple @search_choices = @container.down('ul.chosen-choices') @search_container = @container.down('li.search-field') else @search_container = @container.down('div.chosen-search') @selected_item = @container.down('.chosen-single') this.results_build() this.set_tab_index() this.set_label_behavior() on_ready: -> @form_field.fire("chosen:ready", {chosen: this}) register_observers: -> @container.observe "touchstart", (evt) => this.container_mousedown(evt) @container.observe "touchend", (evt) => this.container_mouseup(evt) @container.observe "mousedown", (evt) => this.container_mousedown(evt) @container.observe "mouseup", (evt) => this.container_mouseup(evt) @container.observe "mouseenter", (evt) => this.mouse_enter(evt) @container.observe "mouseleave", (evt) => this.mouse_leave(evt) @search_results.observe "mouseup", (evt) => this.search_results_mouseup(evt) @search_results.observe "mouseover", (evt) => this.search_results_mouseover(evt) @search_results.observe "mouseout", (evt) => this.search_results_mouseout(evt) @search_results.observe "mousewheel", (evt) => this.search_results_mousewheel(evt) @search_results.observe "DOMMouseScroll", (evt) => this.search_results_mousewheel(evt) @search_results.observe "touchstart", (evt) => this.search_results_touchstart(evt) @search_results.observe "touchmove", (evt) => this.search_results_touchmove(evt) @search_results.observe "touchend", (evt) => this.search_results_touchend(evt) @form_field.observe "chosen:updated", (evt) => this.results_update_field(evt) @form_field.observe "chosen:activate", (evt) => this.activate_field(evt) @form_field.observe "chosen:open", (evt) => this.container_mousedown(evt) @form_field.observe "chosen:close", (evt) => this.close_field(evt) @search_field.observe "blur", (evt) => this.input_blur(evt) @search_field.observe "keyup", (evt) => this.keyup_checker(evt) @search_field.observe "keydown", (evt) => this.keydown_checker(evt) @search_field.observe "focus", (evt) => this.input_focus(evt) @search_field.observe "cut", (evt) => this.clipboard_event_checker(evt) @search_field.observe "paste", (evt) => this.clipboard_event_checker(evt) if @is_multiple @search_choices.observe "click", (evt) => this.choices_click(evt) else @container.observe "click", (evt) => evt.preventDefault() # gobble click of anchor destroy: -> @container.ownerDocument.stopObserving "click", @click_test_action for event in ['chosen:updated', 'chosen:activate', 'chosen:open', 'chosen:close'] @form_field.stopObserving(event) @container.stopObserving() @search_results.stopObserving() @search_field.stopObserving() @form_field_label.stopObserving() if @form_field_label? if @is_multiple @search_choices.stopObserving() @container.select(".search-choice-close").each (choice) -> choice.stopObserving() else @selected_item.stopObserving() if @search_field.tabIndex @form_field.tabIndex = @search_field.tabIndex @container.remove() @form_field.show() search_field_disabled: -> @is_disabled = @form_field.disabled || @form_field.up('fieldset')?.disabled || false if @is_disabled @container.addClassName 'chosen-disabled' else @container.removeClassName 'chosen-disabled' @search_field.disabled = @is_disabled unless @is_multiple @selected_item.stopObserving 'focus', this.activate_field if @is_disabled this.close_field() else unless @is_multiple @selected_item.observe 'focus', this.activate_field container_mousedown: (evt) -> return if @is_disabled if evt and evt.type in ['mousedown', 'touchstart'] and not @results_showing evt.preventDefault() if not (evt? and evt.target.hasClassName "search-choice-close") if not @active_field @search_field.clear() if @is_multiple @container.ownerDocument.observe "click", @click_test_action this.results_show() else if not @is_multiple and evt and (evt.target is @selected_item || evt.target.up("a.chosen-single")) this.results_toggle() this.activate_field() container_mouseup: (evt) -> this.results_reset(evt) if evt.target.nodeName is "ABBR" and not @is_disabled search_results_mousewheel: (evt) -> delta = evt.deltaY or -evt.wheelDelta or evt.detail if delta? evt.preventDefault() delta = delta * 40 if evt.type is 'DOMMouseScroll' @search_results.scrollTop = delta + @search_results.scrollTop blur_test: (evt) -> this.close_field() if not @active_field and @container.hasClassName("chosen-container-active") close_field: -> @container.ownerDocument.stopObserving "click", @click_test_action @active_field = false this.results_hide() @container.removeClassName "chosen-container-active" this.clear_backstroke() this.show_search_field_default() this.search_field_scale() @search_field.blur() activate_field: -> return if @is_disabled @container.addClassName "chosen-container-active" @active_field = true @search_field.value = this.get_search_field_value() @search_field.focus() test_active_click: (evt) -> if evt.target.up('.chosen-container') is @container @active_field = true else this.close_field() results_build: -> @parsing = true @selected_option_count = null @results_data = SelectParser.select_to_array @form_field if @is_multiple @search_choices.select("li.search-choice").invoke("remove") else this.single_set_selected_text() if @disable_search or @form_field.options.length <= @disable_search_threshold @search_field.readOnly = true @container.addClassName "chosen-container-single-nosearch" else @search_field.readOnly = false @container.removeClassName "chosen-container-single-nosearch" this.update_results_content this.results_option_build({first:true}) this.search_field_disabled() this.show_search_field_default() this.search_field_scale() @parsing = false result_do_highlight: (el) -> this.result_clear_highlight() @result_highlight = el @result_highlight.addClassName "highlighted" maxHeight = parseInt @search_results.getStyle('maxHeight'), 10 visible_top = @search_results.scrollTop visible_bottom = maxHeight + visible_top high_top = @result_highlight.positionedOffset().top high_bottom = high_top + @result_highlight.getHeight() if high_bottom >= visible_bottom @search_results.scrollTop = if (high_bottom - maxHeight) > 0 then (high_bottom - maxHeight) else 0 else if high_top < visible_top @search_results.scrollTop = high_top result_clear_highlight: -> @result_highlight.removeClassName('highlighted') if @result_highlight @result_highlight = null results_show: -> if @is_multiple and @max_selected_options <= this.choices_count() @form_field.fire("chosen:maxselected", {chosen: this}) return false @container.addClassName "chosen-with-drop" @results_showing = true @search_field.focus() @search_field.value = this.get_search_field_value() this.winnow_results() @form_field.fire("chosen:showing_dropdown", {chosen: this}) update_results_content: (content) -> @search_results.update content results_hide: -> if @results_showing this.result_clear_highlight() @container.removeClassName "chosen-with-drop" @form_field.fire("chosen:hiding_dropdown", {chosen: this}) @results_showing = false set_tab_index: (el) -> if @form_field.tabIndex ti = @form_field.tabIndex @form_field.tabIndex = -1 @search_field.tabIndex = ti set_label_behavior: -> @form_field_label = @form_field.up("label") # first check for a parent label if not @form_field_label? @form_field_label = $$("label[for='#{@form_field.id}']").first() #next check for a for=#{id} if @form_field_label? @form_field_label.observe "click", this.label_click_handler show_search_field_default: -> if @is_multiple and this.choices_count() < 1 and not @active_field @search_field.value = @default_text @search_field.addClassName "default" else @search_field.value = "" @search_field.removeClassName "default" search_results_mouseup: (evt) -> target = if evt.target.hasClassName("active-result") then evt.target else evt.target.up(".active-result") if target @result_highlight = target this.result_select(evt) @search_field.focus() search_results_mouseover: (evt) -> target = if evt.target.hasClassName("active-result") then evt.target else evt.target.up(".active-result") this.result_do_highlight( target ) if target search_results_mouseout: (evt) -> this.result_clear_highlight() if evt.target.hasClassName('active-result') or evt.target.up('.active-result') choice_build: (item) -> choice = new Element('li', { class: "search-choice" }).update("#{this.choice_label(item)}") if item.disabled choice.addClassName 'search-choice-disabled' else close_link = new Element('a', { href: '#', class: 'search-choice-close', rel: item.array_index }) close_link.observe "click", (evt) => this.choice_destroy_link_click(evt) choice.insert close_link @search_container.insert { before: choice } choice_destroy_link_click: (evt) -> evt.preventDefault() evt.stopPropagation() this.choice_destroy evt.target unless @is_disabled choice_destroy: (link) -> if this.result_deselect link.readAttribute("rel") if @active_field @search_field.focus() else this.show_search_field_default() this.results_hide() if @is_multiple and this.choices_count() > 0 and this.get_search_field_value().length < 1 link.up('li').remove() this.search_field_scale() results_reset: -> this.reset_single_select_options() @form_field.options[0].selected = true this.single_set_selected_text() this.show_search_field_default() this.results_reset_cleanup() this.trigger_form_field_change() this.results_hide() if @active_field results_reset_cleanup: -> @current_selectedIndex = @form_field.selectedIndex deselect_trigger = @selected_item.down("abbr") deselect_trigger.remove() if(deselect_trigger) result_select: (evt) -> if @result_highlight high = @result_highlight this.result_clear_highlight() if @is_multiple and @max_selected_options <= this.choices_count() @form_field.fire("chosen:maxselected", {chosen: this}) return false if @is_multiple high.removeClassName("active-result") else this.reset_single_select_options() high.addClassName("result-selected") item = @results_data[ high.getAttribute("data-option-array-index") ] item.selected = true @form_field.options[item.options_index].selected = true @selected_option_count = null if @is_multiple this.choice_build item else this.single_set_selected_text(this.choice_label(item)) if @is_multiple && (!@hide_results_on_select || (evt.metaKey or evt.ctrlKey)) if evt.metaKey or evt.ctrlKey this.winnow_results(skip_highlight: true) else @search_field.value = "" this.winnow_results() else this.results_hide() this.show_search_field_default() this.trigger_form_field_change() if @is_multiple || @form_field.selectedIndex != @current_selectedIndex @current_selectedIndex = @form_field.selectedIndex evt.preventDefault() this.search_field_scale() single_set_selected_text: (text=@default_text) -> if text is @default_text @selected_item.addClassName("chosen-default") else this.single_deselect_control_build() @selected_item.removeClassName("chosen-default") @selected_item.down("span").update(text) result_deselect: (pos) -> result_data = @results_data[pos] if not @form_field.options[result_data.options_index].disabled result_data.selected = false @form_field.options[result_data.options_index].selected = false @selected_option_count = null this.result_clear_highlight() this.winnow_results() if @results_showing this.trigger_form_field_change() this.search_field_scale() return true else return false single_deselect_control_build: -> return unless @allow_single_deselect @selected_item.down("span").insert { after: "" } unless @selected_item.down("abbr") @selected_item.addClassName("chosen-single-with-deselect") get_search_field_value: -> @search_field.value get_search_text: -> this.get_search_field_value().strip() escape_html: (text) -> text.escapeHTML() winnow_results_set_highlight: -> if not @is_multiple do_high = @search_results.down(".result-selected.active-result") if not do_high? do_high = @search_results.down(".active-result") this.result_do_highlight do_high if do_high? no_results: (terms) -> @search_results.insert this.get_no_results_html(terms) @form_field.fire("chosen:no_results", {chosen: this}) no_results_clear: -> nr = null nr.remove() while nr = @search_results.down(".no-results") keydown_arrow: -> if @results_showing and @result_highlight next_sib = @result_highlight.next('.active-result') this.result_do_highlight next_sib if next_sib else this.results_show() keyup_arrow: -> if not @results_showing and not @is_multiple this.results_show() else if @result_highlight sibs = @result_highlight.previousSiblings() actives = @search_results.select("li.active-result") prevs = sibs.intersect(actives) if prevs.length this.result_do_highlight prevs.first() else this.results_hide() if this.choices_count() > 0 this.result_clear_highlight() keydown_backstroke: -> if @pending_backstroke this.choice_destroy @pending_backstroke.down("a") this.clear_backstroke() else next_available_destroy = @search_container.siblings().last() if next_available_destroy and next_available_destroy.hasClassName("search-choice") and not next_available_destroy.hasClassName("search-choice-disabled") @pending_backstroke = next_available_destroy @pending_backstroke.addClassName("search-choice-focus") if @pending_backstroke if @single_backstroke_delete @keydown_backstroke() else @pending_backstroke.addClassName("search-choice-focus") clear_backstroke: -> @pending_backstroke.removeClassName("search-choice-focus") if @pending_backstroke @pending_backstroke = null search_field_scale: -> return unless @is_multiple style_block = position: 'absolute' left: '-1000px' top: '-1000px' display: 'none' whiteSpace: 'pre' styles = ['fontSize', 'fontStyle', 'fontWeight', 'fontFamily', 'lineHeight', 'textTransform', 'letterSpacing'] for style in styles style_block[style] = @search_field.getStyle(style) div = new Element('div').update(this.escape_html(this.get_search_field_value())) # CSP without 'unsafe-inline' doesn't allow setting the style attribute directly div.setStyle(style_block) document.body.appendChild(div) width = div.measure('width') + 25 div.remove() if container_width = @container.getWidth() width = Math.min(container_width - 10, width) @search_field.setStyle(width: width + 'px') trigger_form_field_change: -> triggerHtmlEvent @form_field, 'input' triggerHtmlEvent @form_field, 'change' triggerHtmlEvent = (element, eventType) -> if element.dispatchEvent # Modern way: try evt = new Event(eventType, bubbles: true, cancelable: true) catch evt = document.createEvent('HTMLEvents') evt.initEvent(eventType, true, true); element.dispatchEvent(evt) else # Old IE: element.fireEvent("on#{eventType}", document.createEventObject()); chosen-1.8.7/coffee/lib/000077500000000000000000000000001330654661200150115ustar00rootroot00000000000000chosen-1.8.7/coffee/lib/abstract-chosen.coffee000066400000000000000000000315521330654661200212500ustar00rootroot00000000000000class AbstractChosen constructor: (@form_field, @options={}) -> return unless AbstractChosen.browser_is_supported() @is_multiple = @form_field.multiple this.set_default_text() this.set_default_values() this.setup() this.set_up_html() this.register_observers() # instantiation done, fire ready this.on_ready() set_default_values: -> @click_test_action = (evt) => this.test_active_click(evt) @activate_action = (evt) => this.activate_field(evt) @active_field = false @mouse_on_container = false @results_showing = false @result_highlighted = null @is_rtl = @options.rtl || /\bchosen-rtl\b/.test(@form_field.className) @allow_single_deselect = if @options.allow_single_deselect? and @form_field.options[0]? and @form_field.options[0].text is "" then @options.allow_single_deselect else false @disable_search_threshold = @options.disable_search_threshold || 0 @disable_search = @options.disable_search || false @enable_split_word_search = if @options.enable_split_word_search? then @options.enable_split_word_search else true @group_search = if @options.group_search? then @options.group_search else true @search_contains = @options.search_contains || false @single_backstroke_delete = if @options.single_backstroke_delete? then @options.single_backstroke_delete else true @max_selected_options = @options.max_selected_options || Infinity @inherit_select_classes = @options.inherit_select_classes || false @display_selected_options = if @options.display_selected_options? then @options.display_selected_options else true @display_disabled_options = if @options.display_disabled_options? then @options.display_disabled_options else true @include_group_label_in_selected = @options.include_group_label_in_selected || false @max_shown_results = @options.max_shown_results || Number.POSITIVE_INFINITY @case_sensitive_search = @options.case_sensitive_search || false @hide_results_on_select = if @options.hide_results_on_select? then @options.hide_results_on_select else true set_default_text: -> if @form_field.getAttribute("data-placeholder") @default_text = @form_field.getAttribute("data-placeholder") else if @is_multiple @default_text = @options.placeholder_text_multiple || @options.placeholder_text || AbstractChosen.default_multiple_text else @default_text = @options.placeholder_text_single || @options.placeholder_text || AbstractChosen.default_single_text @default_text = this.escape_html(@default_text) @results_none_found = @form_field.getAttribute("data-no_results_text") || @options.no_results_text || AbstractChosen.default_no_result_text choice_label: (item) -> if @include_group_label_in_selected and item.group_label? "#{this.escape_html(item.group_label)}#{item.html}" else item.html mouse_enter: -> @mouse_on_container = true mouse_leave: -> @mouse_on_container = false input_focus: (evt) -> if @is_multiple setTimeout (=> this.container_mousedown()), 50 unless @active_field else @activate_field() unless @active_field input_blur: (evt) -> if not @mouse_on_container @active_field = false setTimeout (=> this.blur_test()), 100 label_click_handler: (evt) => if @is_multiple this.container_mousedown(evt) else this.activate_field() results_option_build: (options) -> content = '' shown_results = 0 for data in @results_data data_content = '' if data.group data_content = this.result_add_group data else data_content = this.result_add_option data if data_content != '' shown_results++ content += data_content # this select logic pins on an awkward flag # we can make it better if options?.first if data.selected and @is_multiple this.choice_build data else if data.selected and not @is_multiple this.single_set_selected_text(this.choice_label(data)) if shown_results >= @max_shown_results break content result_add_option: (option) -> return '' unless option.search_match return '' unless this.include_option_in_results(option) classes = [] classes.push "active-result" if !option.disabled and !(option.selected and @is_multiple) classes.push "disabled-result" if option.disabled and !(option.selected and @is_multiple) classes.push "result-selected" if option.selected classes.push "group-option" if option.group_array_index? classes.push option.classes if option.classes != "" option_el = document.createElement("li") option_el.className = classes.join(" ") option_el.style.cssText = option.style if option.style option_el.setAttribute("data-option-array-index", option.array_index) option_el.innerHTML = option.highlighted_html or option.html option_el.title = option.title if option.title this.outerHTML(option_el) result_add_group: (group) -> return '' unless group.search_match || group.group_match return '' unless group.active_options > 0 classes = [] classes.push "group-result" classes.push group.classes if group.classes group_el = document.createElement("li") group_el.className = classes.join(" ") group_el.innerHTML = group.highlighted_html or this.escape_html(group.label) group_el.title = group.title if group.title this.outerHTML(group_el) results_update_field: -> this.set_default_text() this.results_reset_cleanup() if not @is_multiple this.result_clear_highlight() this.results_build() this.winnow_results() if @results_showing reset_single_select_options: () -> for result in @results_data result.selected = false if result.selected results_toggle: -> if @results_showing this.results_hide() else this.results_show() results_search: (evt) -> if @results_showing this.winnow_results() else this.results_show() winnow_results: (options) -> this.no_results_clear() results = 0 query = this.get_search_text() escapedQuery = query.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") regex = this.get_search_regex(escapedQuery) for option in @results_data option.search_match = false results_group = null search_match = null option.highlighted_html = '' if this.include_option_in_results(option) if option.group option.group_match = false option.active_options = 0 if option.group_array_index? and @results_data[option.group_array_index] results_group = @results_data[option.group_array_index] results += 1 if results_group.active_options is 0 and results_group.search_match results_group.active_options += 1 text = if option.group then option.label else option.text unless option.group and not @group_search search_match = this.search_string_match(text, regex) option.search_match = search_match? results += 1 if option.search_match and not option.group if option.search_match if query.length startpos = search_match.index prefix = text.slice(0, startpos) fix = text.slice(startpos, startpos + query.length) suffix = text.slice(startpos + query.length) option.highlighted_html = "#{this.escape_html(prefix)}#{this.escape_html(fix)}#{this.escape_html(suffix)}" results_group.group_match = true if results_group? else if option.group_array_index? and @results_data[option.group_array_index].search_match option.search_match = true this.result_clear_highlight() if results < 1 and query.length this.update_results_content "" this.no_results query else this.update_results_content this.results_option_build() this.winnow_results_set_highlight() unless options?.skip_highlight get_search_regex: (escaped_search_string) -> regex_string = if @search_contains then escaped_search_string else "(^|\\s|\\b)#{escaped_search_string}[^\\s]*" regex_string = "^#{regex_string}" unless @enable_split_word_search or @search_contains regex_flag = if @case_sensitive_search then "" else "i" new RegExp(regex_string, regex_flag) search_string_match: (search_string, regex) -> match = regex.exec(search_string) match.index += 1 if !@search_contains && match?[1] # make up for lack of lookbehind operator in regex match choices_count: -> return @selected_option_count if @selected_option_count? @selected_option_count = 0 for option in @form_field.options @selected_option_count += 1 if option.selected return @selected_option_count choices_click: (evt) -> evt.preventDefault() this.activate_field() this.results_show() unless @results_showing or @is_disabled keydown_checker: (evt) -> stroke = evt.which ? evt.keyCode this.search_field_scale() this.clear_backstroke() if stroke != 8 and @pending_backstroke switch stroke when 8 # backspace @backstroke_length = this.get_search_field_value().length break when 9 # tab this.result_select(evt) if @results_showing and not @is_multiple @mouse_on_container = false break when 13 # enter evt.preventDefault() if @results_showing break when 27 # escape evt.preventDefault() if @results_showing break when 32 # space evt.preventDefault() if @disable_search break when 38 # up arrow evt.preventDefault() this.keyup_arrow() break when 40 # down arrow evt.preventDefault() this.keydown_arrow() break keyup_checker: (evt) -> stroke = evt.which ? evt.keyCode this.search_field_scale() switch stroke when 8 # backspace if @is_multiple and @backstroke_length < 1 and this.choices_count() > 0 this.keydown_backstroke() else if not @pending_backstroke this.result_clear_highlight() this.results_search() break when 13 # enter evt.preventDefault() this.result_select(evt) if this.results_showing break when 27 # escape this.results_hide() if @results_showing break when 9, 16, 17, 18, 38, 40, 91 # don't do anything on these keys else this.results_search() break clipboard_event_checker: (evt) -> return if @is_disabled setTimeout (=> this.results_search()), 50 container_width: -> return if @options.width? then @options.width else "#{@form_field.offsetWidth}px" include_option_in_results: (option) -> return false if @is_multiple and (not @display_selected_options and option.selected) return false if not @display_disabled_options and option.disabled return false if option.empty return true search_results_touchstart: (evt) -> @touch_started = true this.search_results_mouseover(evt) search_results_touchmove: (evt) -> @touch_started = false this.search_results_mouseout(evt) search_results_touchend: (evt) -> this.search_results_mouseup(evt) if @touch_started outerHTML: (element) -> return element.outerHTML if element.outerHTML tmp = document.createElement("div") tmp.appendChild(element) tmp.innerHTML get_single_html: -> """ #{@default_text}
      """ get_multi_html: -> """
        """ get_no_results_html: (terms) -> """
      • #{@results_none_found} #{this.escape_html(terms)}
      • """ # class methods and variables ============================================================ @browser_is_supported: -> if "Microsoft Internet Explorer" is window.navigator.appName return document.documentMode >= 8 if /iP(od|hone)/i.test(window.navigator.userAgent) or /IEMobile/i.test(window.navigator.userAgent) or /Windows Phone/i.test(window.navigator.userAgent) or /BlackBerry/i.test(window.navigator.userAgent) or /BB10/i.test(window.navigator.userAgent) or /Android.*Mobile/i.test(window.navigator.userAgent) return false return true @default_multiple_text: "Select Some Options" @default_single_text: "Select an Option" @default_no_result_text: "No results match" chosen-1.8.7/coffee/lib/select-parser.coffee000066400000000000000000000032011330654661200207270ustar00rootroot00000000000000class SelectParser constructor: -> @options_index = 0 @parsed = [] add_node: (child) -> if child.nodeName.toUpperCase() is "OPTGROUP" this.add_group child else this.add_option child add_group: (group) -> group_position = @parsed.length @parsed.push array_index: group_position group: true label: group.label title: group.title if group.title children: 0 disabled: group.disabled, classes: group.className this.add_option( option, group_position, group.disabled ) for option in group.childNodes add_option: (option, group_position, group_disabled) -> if option.nodeName.toUpperCase() is "OPTION" if option.text != "" if group_position? @parsed[group_position].children += 1 @parsed.push array_index: @parsed.length options_index: @options_index value: option.value text: option.text html: option.innerHTML title: option.title if option.title selected: option.selected disabled: if group_disabled is true then group_disabled else option.disabled group_array_index: group_position group_label: if group_position? then @parsed[group_position].label else null classes: option.className style: option.style.cssText else @parsed.push array_index: @parsed.length options_index: @options_index empty: true @options_index += 1 SelectParser.select_to_array = (select) -> parser = new SelectParser() parser.add_node( child ) for child in select.childNodes parser.parsed chosen-1.8.7/composer.json000066400000000000000000000014631330654661200155420ustar00rootroot00000000000000{ "name": "harvesthq/chosen", "description": "Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.", "authors": [ { "name": "Patrick Filler", "homepage": "https://github.com/pfiller" }, { "name": "Christophe Coevoet", "homepage": "https://github.com/stof" }, { "name": "Ken Earley", "homepage": "https://github.com/kenearley" }, { "name": "Koen Punt", "homepage": "https://github.com/koenpunt" } ], "keywords": [ "select", "multiselect", "dropdown", "form", "input", "ui" ], "type": "library", "license": "MIT", "minimum-stability": "stable", "homepage": "https://harvesthq.github.io/chosen/", "require": { } } chosen-1.8.7/contributing.md000066400000000000000000000171031330654661200160470ustar00rootroot00000000000000# Contributing to this project Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved. Following these guidelines will help us get back to you more quickly, and will show that you care about making Chosen better just like we do. In return, we'll do our best to respond to your issue or pull request as soon as possible with the same respect. _**Please Note:** These guidelines are adapted from [@necolas](https://github.com/necolas)'s [issue-guidelines](https://github.com/necolas/issue-guidelines) and serve as an excellent starting point for contributing to any open source project._ ## Using the issue tracker The [issue tracker](https://github.com/harvesthq/chosen/issues) is the preferred channel for [bug reports](#bugs), [features requests](#features) and [submitting pull requests](#pull-requests), but please respect the following restrictions: * Support issues or usage question that are not bugs should be posted on [Stack Overflow, using the `chosen.js`](http://stackoverflow.com/questions/tagged/chosen.js) tag (related tags: [`jquery-chosen`](http://stackoverflow.com/questions/tagged/jquery-chosen), [`prototype-chosen`](http://stackoverflow.com/questions/tagged/prototype-chosen)). * Please **do not** derail or troll issues. Keep the discussion on topic and respect the opinions of others. ## Bug reports A bug is a _demonstrable problem_ that is caused by the code in the repository. Good bug reports are extremely helpful — thank you! Guidelines for bug reports: 1. **Use the [GitHub issue search](https://github.com/harvesthq/chosen/search?type=Issues)** — check if the issue has already been reported. 2. **Check if the bug has already been fixed** — try to reproduce it using the repository's latest `master` changes. 3. **Isolate the problem** — ideally create a [reduced test case](https://css-tricks.com/reduced-test-cases/) and a live example (perhaps a [fiddle](http://jsfiddle.net)). A good bug report shouldn't leave others needing to contact you for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) and OS experience the problem? What outcome did you expect, and how did it differ from what you actually saw? All these details will help people to fix any potential bugs. Example: > Short and descriptive example bug report title > > A summary of the issue and the browser/OS environment in which it occurs. If > suitable, include the steps required to reproduce the bug. > > 1. This is the first step > 2. This is the second step > 3. Further steps, etc. > > `` - a link to the reduced test case > > Any other information you want to share that is relevant to the issue being > reported. This might include the lines of code that you have identified as > causing the bug, and potential solutions (and your opinions on their > merits). **Note:** In an effort to keep open issues to a manageable number, we will close any issues that do not provide enough information for us to be able to work on a solution. You will be encouraged to provide the necessary details, after which we will reopen the issue. ## Feature requests Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible. Building something great means choosing features carefully especially because it is much, much easier to add features than it is to take them away. Additions to Chosen will be evaluated on a combination of scope (how well it fits into the project), maintenance burden and general usefulness. Creating something great often means saying no to seemingly good ideas. Don't dispair if your feature request isn't accepted, take action! Fork the repository, build your idea and share it with others. We released Chosen under the MIT License for this purpose precisely. Open source works best when smart and dedicated people riff off of each others' ideas to make even greater things. ## Pull requests Good pull requests — patches, improvements, new features — are a fantastic help. They should remain focused in scope and avoid containing unrelated commits. **Please ask first** before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project. You can solicit feedback and opinions in an open feature request thread or create a new one. Please use the [git flow for pull requests](#git-flow) and follow Chosen's [code conventions](#code-conventions) before submitting your work. Adhering to these guidelines is the best way to get your work included in Chosen. #### Git Flow for pull requests 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork, and configure the remotes: ```bash # Clone your fork of the repo into the current directory git clone git@github.com:/chosen.git # Navigate to the newly cloned directory cd chosen # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/harvesthq/chosen ``` 2. If you cloned a while ago, get the latest changes from upstream: ```bash git checkout master git pull upstream master ``` 3. Create a new topic branch (off the main project development branch) to contain your feature, change, or fix: ```bash git checkout -b ``` 4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) or your code is unlikely be merged into the main project. Use Git's [interactive rebase](https://help.github.com/articles/interactive-rebase) feature to tidy up your commits before making them public. 5. Locally merge (or rebase) the upstream development branch into your topic branch: ```bash git pull [--rebase] upstream master ``` 6. Push your topic branch up to your fork: ```bash git push origin ``` 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description. **IMPORTANT**: By submitting a patch, you agree to allow the project owner to license your work under the [MIT License](http://en.wikipedia.org/wiki/MIT_License). #### Chosen Code Conventions 1. Make all changes in CoffeeScript files, **not** JavaScript files. 2. Use [Grunt](#grunt) to build the JavaScript files. 3. For feature changes, update both jQuery *and* Prototype versions 4. Don't manually update the version number in `package.json`. This is done using a Grunt task on deployment. #### Grunt tasks: Running Tests and building Chosen To install all development dependencies, in the project's root directory, run npm install Once you're configured, `grunt` tasks are available: grunt test # run the tests in spec/ grunt build # build Chosen from source grunt watch # watch coffee/ for changes and build Chosen If you're interested, you can find the task in [Gruntfile.coffee](https://github.com/harvesthq/chosen/blob/master/Gruntfile.coffee). chosen-1.8.7/package-lock.json000066400000000000000000003320601330654661200162340ustar00rootroot00000000000000{ "name": "chosen", "version": "1.8.7", "lockfileVersion": 1, "requires": true, "dependencies": { "CSSselect": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/CSSselect/-/CSSselect-0.7.0.tgz", "integrity": "sha1-5AVMZ7RnRl88lQDA2gqnh4xLq9I=", "dev": true, "requires": { "CSSwhat": "0.4.7", "boolbase": "1.0.0", "domutils": "1.4.3", "nth-check": "1.0.1" } }, "CSSwhat": { "version": "0.4.7", "resolved": "https://registry.npmjs.org/CSSwhat/-/CSSwhat-0.4.7.tgz", "integrity": "sha1-hn2g/zn3eGEyQsRM/qg/CqTr35s=", "dev": true }, "abbrev": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz", "integrity": "sha1-0FVMIlZjbi9W58LlrRg/hZQo2B8=", "dev": true }, "ajv": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", "dev": true, "requires": { "co": "4.6.0", "json-stable-stringify": "1.0.1" } }, "amdefine": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, "ansi-styles": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", "dev": true, "requires": { "color-convert": "1.9.0" } }, "aproba": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.1.2.tgz", "integrity": "sha512-ZpYajIfO0j2cOFTO955KUMIKNmj6zhX8kVztMAxFsDaMwz+9Z9SV0uou2pC9HJqcfpffOsjnbrDMvkNy+9RXPw==", "dev": true }, "are-we-there-yet": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", "dev": true, "requires": { "delegates": "1.0.0", "readable-stream": "2.3.3" } }, "argparse": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", "dev": true, "requires": { "sprintf-js": "1.0.3" } }, "array-differ": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", "dev": true }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", "dev": true }, "array-union": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", "dev": true, "requires": { "array-uniq": "1.0.3" } }, "array-uniq": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", "dev": true }, "arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "dev": true }, "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", "dev": true }, "asn1": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", "dev": true }, "assert-plus": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", "dev": true }, "async": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, "async-foreach": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", "dev": true }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, "autoprefixer": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.1.2.tgz", "integrity": "sha1-++rwfUj9h44Ggr98vurecorbKxg=", "dev": true, "requires": { "browserslist": "2.3.3", "caniuse-lite": "1.0.30000717", "normalize-range": "0.1.2", "num2fraction": "1.2.2", "postcss": "6.0.9", "postcss-value-parser": "3.3.0" } }, "aws-sign2": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", "dev": true }, "aws4": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", "dev": true }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, "bcrypt-pbkdf": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", "dev": true, "optional": true, "requires": { "tweetnacl": "0.14.5" } }, "block-stream": { "version": "0.0.9", "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", "dev": true, "requires": { "inherits": "2.0.3" } }, "body-parser": { "version": "1.14.2", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.14.2.tgz", "integrity": "sha1-EBXLH+LEQ4WCWVgdtTMy+NDPUPk=", "dev": true, "requires": { "bytes": "2.2.0", "content-type": "1.0.2", "debug": "2.2.0", "depd": "1.1.1", "http-errors": "1.3.1", "iconv-lite": "0.4.13", "on-finished": "2.3.0", "qs": "5.2.0", "raw-body": "2.1.7", "type-is": "1.6.15" }, "dependencies": { "iconv-lite": { "version": "0.4.13", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", "dev": true }, "qs": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz", "integrity": "sha1-qfMRQq9GjLcrJbMBNrokVoNJFr4=", "dev": true } } }, "boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", "dev": true }, "boom": { "version": "2.10.1", "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", "dev": true, "requires": { "hoek": "2.16.3" } }, "brace-expansion": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", "dev": true, "requires": { "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, "browserify-zlib": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", "dev": true, "requires": { "pako": "0.2.9" } }, "browserslist": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.3.3.tgz", "integrity": "sha512-p9hz6FA2H1w1ZUAXKfK3MlIA4Z9fEd56hnZSOecBIITb5j0oZk/tZRwhdE0xG56RGx2x8cc1c5AWJKWVjMLOEQ==", "dev": true, "requires": { "caniuse-lite": "1.0.30000717", "electron-to-chromium": "1.3.18" } }, "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", "dev": true }, "bytes": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz", "integrity": "sha1-/TVGSkA/b5EXwt42Cez/nK4ABYg=", "dev": true }, "camelcase": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", "dev": true }, "camelcase-keys": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", "dev": true, "requires": { "camelcase": "2.1.1", "map-obj": "1.0.1" } }, "caniuse-lite": { "version": "1.0.30000717", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000717.tgz", "integrity": "sha1-RTmxJq94fB1IUZRN4isr2HgNNhI=", "dev": true }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "dev": true }, "chalk": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz", "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==", "dev": true, "requires": { "ansi-styles": "3.2.0", "escape-string-regexp": "1.0.5", "supports-color": "4.2.1" } }, "cheerio": { "version": "0.12.4", "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.12.4.tgz", "integrity": "sha1-wZlibp4esNQjOpGkeT5/iqppoYs=", "dev": true, "requires": { "cheerio-select": "0.0.3", "entities": "0.5.0", "htmlparser2": "3.1.4", "underscore": "1.4.4" }, "dependencies": { "underscore": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz", "integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=", "dev": true } } }, "cheerio-select": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-0.0.3.tgz", "integrity": "sha1-PyQgEU88ywsbB1wkXM+q5dYXo4g=", "dev": true, "requires": { "CSSselect": "0.7.0" } }, "clean-css": { "version": "4.1.7", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.7.tgz", "integrity": "sha1-ua6k+FZ5iJzz6ui0A0nsTr390DI=", "dev": true, "requires": { "source-map": "0.5.7" } }, "cliui": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", "dev": true, "requires": { "string-width": "1.0.2", "strip-ansi": "3.0.1", "wrap-ansi": "2.1.0" } }, "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", "dev": true }, "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, "coffee-script": { "version": "1.12.7", "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", "dev": true }, "collections": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/collections/-/collections-2.0.3.tgz", "integrity": "sha1-dlcSXoSkCGotx5f/LWltgZpyD7U=", "dev": true, "requires": { "mini-map": "1.0.0", "pop-arrayify": "1.0.0", "pop-clear": "1.0.0", "pop-clone": "1.0.1", "pop-compare": "1.0.0", "pop-equals": "1.0.0", "pop-has": "1.0.0", "pop-hash": "1.0.1", "pop-iterate": "1.0.1", "pop-observe": "2.0.2", "pop-swap": "1.0.0", "pop-zip": "1.0.0", "regexp-escape": "0.0.1", "weak-map": "1.0.5" } }, "color-convert": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.0.tgz", "integrity": "sha1-Gsz5fdc5uYO/mU1W/sj5WFNkG3o=", "dev": true, "requires": { "color-name": "1.1.3" } }, "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, "colors": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", "dev": true }, "combined-stream": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", "dev": true, "requires": { "delayed-stream": "1.0.0" } }, "commander": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", "dev": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, "concat-stream": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", "dev": true, "requires": { "inherits": "2.0.3", "readable-stream": "2.3.3", "typedarray": "0.0.6" } }, "console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true }, "content-type": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.2.tgz", "integrity": "sha1-t9ETrueo3Se9IRM8TcJSnfFyHu0=", "dev": true }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, "cross-spawn": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", "dev": true, "requires": { "lru-cache": "4.1.1", "which": "1.2.14" } }, "cryptiles": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", "dev": true, "requires": { "boom": "2.10.1" } }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", "dev": true, "requires": { "array-find-index": "1.0.2" } }, "dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, "requires": { "assert-plus": "1.0.0" }, "dependencies": { "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true } } }, "dateformat": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz", "integrity": "sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk=", "dev": true, "requires": { "get-stdin": "4.0.1", "meow": "3.7.0" } }, "debug": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "dev": true, "requires": { "ms": "0.7.1" } }, "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true }, "depd": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", "dev": true }, "diff": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/diff/-/diff-2.2.3.tgz", "integrity": "sha1-YOr9DSjukG5Oj/ClLBIpUhAzv5k=", "dev": true }, "domelementtype": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", "dev": true }, "domhandler": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.0.3.tgz", "integrity": "sha1-iJ+N9iZAOvB4jinWbV1cb36/D9Y=", "dev": true, "requires": { "domelementtype": "1.3.0" } }, "domutils": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.4.3.tgz", "integrity": "sha1-CGVRN5bGswYDGFDhdVFrr4C3Km8=", "dev": true, "requires": { "domelementtype": "1.3.0" } }, "duplexer": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", "dev": true }, "each-async": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/each-async/-/each-async-1.1.1.tgz", "integrity": "sha1-3uUim98KtrogEqOV4bhpq/iBNHM=", "dev": true, "requires": { "onetime": "1.1.0", "set-immediate-shim": "1.0.1" } }, "ecc-jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", "dev": true, "optional": true, "requires": { "jsbn": "0.1.1" } }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, "electron-to-chromium": { "version": "1.3.18", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.18.tgz", "integrity": "sha1-PcyZ2j5rZl9qu8ccKK1Ros1zGpw=", "dev": true }, "entities": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-0.5.0.tgz", "integrity": "sha1-9hHLWuIhBQ4AEsZpeVA/164ZzEk=", "dev": true }, "error-ex": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", "dev": true, "requires": { "is-arrayish": "0.2.1" } }, "es6-promise": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.0.5.tgz", "integrity": "sha1-eILzCt3lskDM+n99eMVIMwlRrkI=", "dev": true }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, "esprima": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", "dev": true }, "eventemitter2": { "version": "0.4.14", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=", "dev": true }, "exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", "dev": true }, "extend": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", "dev": true }, "extract-zip": { "version": "1.6.5", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.5.tgz", "integrity": "sha1-maBnNbbqIOqbcF13ms/8yHz/BEA=", "dev": true, "requires": { "concat-stream": "1.6.0", "debug": "2.2.0", "mkdirp": "0.5.0", "yauzl": "2.4.1" } }, "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", "dev": true }, "faye-websocket": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", "dev": true, "requires": { "websocket-driver": "0.6.5" } }, "fd-slicer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", "dev": true, "requires": { "pend": "1.2.0" } }, "figures": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", "dev": true, "requires": { "escape-string-regexp": "1.0.5", "object-assign": "4.1.1" } }, "file-sync-cmp": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/file-sync-cmp/-/file-sync-cmp-0.1.1.tgz", "integrity": "sha1-peeo/7+kk7Q7kju9TKiaU7Y7YSs=", "dev": true }, "find-up": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { "path-exists": "2.1.0", "pinkie-promise": "2.0.1" } }, "findup-sync": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=", "dev": true, "requires": { "glob": "5.0.15" }, "dependencies": { "glob": { "version": "5.0.15", "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", "dev": true, "requires": { "inflight": "1.0.6", "inherits": "2.0.3", "minimatch": "3.0.4", "once": "1.4.0", "path-is-absolute": "1.0.1" } } } }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", "dev": true }, "form-data": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", "dev": true, "requires": { "asynckit": "0.4.0", "combined-stream": "1.0.5", "mime-types": "2.1.16" } }, "fs-extra": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", "dev": true, "requires": { "graceful-fs": "4.1.11", "jsonfile": "2.4.0", "klaw": "1.3.1" } }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, "fstream": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", "dev": true, "requires": { "graceful-fs": "4.1.11", "inherits": "2.0.3", "mkdirp": "0.5.0", "rimraf": "2.2.8" } }, "gauge": { "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "requires": { "aproba": "1.1.2", "console-control-strings": "1.1.0", "has-unicode": "2.0.1", "object-assign": "4.1.1", "signal-exit": "3.0.2", "string-width": "1.0.2", "strip-ansi": "3.0.1", "wide-align": "1.1.2" } }, "gaze": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.2.tgz", "integrity": "sha1-hHIkZ3rbiHDWeSV+0ziP22HkAQU=", "dev": true, "requires": { "globule": "1.2.0" } }, "get-caller-file": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", "dev": true }, "get-stdin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true }, "getobject": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz", "integrity": "sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw=", "dev": true }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { "assert-plus": "1.0.0" }, "dependencies": { "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true } } }, "glob": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz", "integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=", "dev": true, "requires": { "fs.realpath": "1.0.0", "inflight": "1.0.6", "inherits": "2.0.3", "minimatch": "3.0.4", "once": "1.4.0", "path-is-absolute": "1.0.1" } }, "globule": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.0.tgz", "integrity": "sha1-HcScaCLdnoovoAuiopUAboZkvQk=", "dev": true, "requires": { "glob": "7.1.2", "lodash": "4.17.4", "minimatch": "3.0.4" }, "dependencies": { "glob": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { "fs.realpath": "1.0.0", "inflight": "1.0.6", "inherits": "2.0.3", "minimatch": "3.0.4", "once": "1.4.0", "path-is-absolute": "1.0.1" } }, "lodash": { "version": "4.17.4", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", "dev": true } } }, "graceful-fs": { "version": "4.1.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", "dev": true }, "grunt": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.1.tgz", "integrity": "sha1-6HeHZOlEsY8yuw8QuQeEdcnftWs=", "dev": true, "requires": { "coffee-script": "1.10.0", "dateformat": "1.0.12", "eventemitter2": "0.4.14", "exit": "0.1.2", "findup-sync": "0.3.0", "glob": "7.0.6", "grunt-cli": "1.2.0", "grunt-known-options": "1.1.0", "grunt-legacy-log": "1.0.0", "grunt-legacy-util": "1.0.0", "iconv-lite": "0.4.18", "js-yaml": "3.5.5", "minimatch": "3.0.4", "nopt": "3.0.6", "path-is-absolute": "1.0.1", "rimraf": "2.2.8" }, "dependencies": { "coffee-script": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.10.0.tgz", "integrity": "sha1-EpOLz5vhlI+gBvkuDEyegXBRCMA=", "dev": true }, "grunt-cli": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.2.0.tgz", "integrity": "sha1-VisRnrsGndtGSs4oRVAb6Xs1tqg=", "dev": true, "requires": { "findup-sync": "0.3.0", "grunt-known-options": "1.1.0", "nopt": "3.0.6", "resolve": "1.1.7" } } } }, "grunt-contrib-coffee": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/grunt-contrib-coffee/-/grunt-contrib-coffee-1.0.0.tgz", "integrity": "sha1-2u6wSVTxTihovMm6bq+RBf3C2kw=", "dev": true, "requires": { "chalk": "1.0.0", "coffee-script": "1.10.0", "lodash": "4.3.0", "uri-path": "1.0.0" }, "dependencies": { "ansi-regex": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-1.1.1.tgz", "integrity": "sha1-QchHGUZGN15qGl0Qw8oFTvn8mA0=", "dev": true }, "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.0.0.tgz", "integrity": "sha1-s89O0P9Tl8mcdbj2edsvUoMfltw=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "1.0.3", "strip-ansi": "2.0.1", "supports-color": "1.3.1" } }, "coffee-script": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.10.0.tgz", "integrity": "sha1-EpOLz5vhlI+gBvkuDEyegXBRCMA=", "dev": true }, "has-ansi": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-1.0.3.tgz", "integrity": "sha1-wLWxYV2eOCsP9nFp2We0JeSMpTg=", "dev": true, "requires": { "ansi-regex": "1.1.1", "get-stdin": "4.0.1" } }, "lodash": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.3.0.tgz", "integrity": "sha1-79nEpuxT87BUEkKZFcPkgk5NJaQ=", "dev": true }, "strip-ansi": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-2.0.1.tgz", "integrity": "sha1-32LBqpTtLxFOHQ8h/R1QSCt5pg4=", "dev": true, "requires": { "ansi-regex": "1.1.1" } }, "supports-color": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-1.3.1.tgz", "integrity": "sha1-FXWN8J2P87SswwdTn6vicJXhBC0=", "dev": true } } }, "grunt-contrib-concat": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/grunt-contrib-concat/-/grunt-contrib-concat-1.0.1.tgz", "integrity": "sha1-YVCYYwhOhx1+ht5IwBUlntl3Rb0=", "dev": true, "requires": { "chalk": "1.1.3", "source-map": "0.5.7" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "grunt-contrib-copy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz", "integrity": "sha1-cGDGWB6QS4qw0A8HbgqPbj58NXM=", "dev": true, "requires": { "chalk": "1.1.3", "file-sync-cmp": "0.1.1" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "grunt-contrib-cssmin": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/grunt-contrib-cssmin/-/grunt-contrib-cssmin-2.2.1.tgz", "integrity": "sha512-IXNomhQ5ekVZbDbj/ik5YccoD9khU6LT2fDXqO1+/Txjq8cp0tQKjVS8i8EAbHOrSDkL7/UD6A7b+xj98gqh9w==", "dev": true, "requires": { "chalk": "1.1.3", "clean-css": "4.1.7", "maxmin": "2.1.0" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "grunt-contrib-jasmine": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/grunt-contrib-jasmine/-/grunt-contrib-jasmine-1.1.0.tgz", "integrity": "sha1-9oL3dX2il3Wf4+G0xl1GcMw66kk=", "dev": true, "requires": { "chalk": "1.1.3", "grunt-lib-phantomjs": "1.1.0", "jasmine-core": "2.4.1", "lodash": "2.4.2", "rimraf": "2.2.8", "sprintf-js": "1.0.3" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "lodash": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", "dev": true }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "grunt-contrib-uglify": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-3.0.1.tgz", "integrity": "sha1-/etfk4pMgEL46Grkb2NVTo6VEcs=", "dev": true, "requires": { "chalk": "1.1.3", "maxmin": "1.1.0", "uglify-js": "3.0.28", "uri-path": "1.0.0" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "gzip-size": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-1.0.0.tgz", "integrity": "sha1-Zs+LEBBHInuVus5uodoMF37Vwi8=", "dev": true, "requires": { "browserify-zlib": "0.1.4", "concat-stream": "1.6.0" } }, "maxmin": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-1.1.0.tgz", "integrity": "sha1-cTZehKmd2Piz99X94vANHn9zvmE=", "dev": true, "requires": { "chalk": "1.1.3", "figures": "1.7.0", "gzip-size": "1.0.0", "pretty-bytes": "1.0.4" } }, "pretty-bytes": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-1.0.4.tgz", "integrity": "sha1-CiLoIQYJrTVUL4yNXSFZr/B1HIQ=", "dev": true, "requires": { "get-stdin": "4.0.1", "meow": "3.7.0" } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "grunt-contrib-watch": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-1.0.0.tgz", "integrity": "sha1-hKGnodar0m7VaEE0lscxM+mQAY8=", "dev": true, "requires": { "async": "1.5.2", "gaze": "1.1.2", "lodash": "3.10.1", "tiny-lr": "0.2.1" } }, "grunt-gh-pages": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/grunt-gh-pages/-/grunt-gh-pages-2.0.0.tgz", "integrity": "sha1-yC9I17b4SRvkJpT1wsk7Ewj6d3s=", "dev": true, "requires": { "async": "2.0.1", "fs-extra": "0.30.0", "graceful-fs": "4.1.5", "q": "0.9.3", "q-io": "2.0.2", "url-safe": "2.0.0" }, "dependencies": { "async": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/async/-/async-2.0.1.tgz", "integrity": "sha1-twnMAoCpw28J9FNr6CPIOKkEniU=", "dev": true, "requires": { "lodash": "4.17.4" } }, "fs-extra": { "version": "0.30.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", "dev": true, "requires": { "graceful-fs": "4.1.5", "jsonfile": "2.4.0", "klaw": "1.3.1", "path-is-absolute": "1.0.1", "rimraf": "2.2.8" } }, "graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.5.tgz", "integrity": "sha1-9HRejK7V4N0u8hu14tIpoy6Ak8A=", "dev": true }, "lodash": { "version": "4.17.4", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", "dev": true } } }, "grunt-known-options": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-1.1.0.tgz", "integrity": "sha1-pCdO6zL6dl2lp6OxcSYXzjsUQUk=", "dev": true }, "grunt-legacy-log": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-1.0.0.tgz", "integrity": "sha1-+4bxgJhHvAfcR4Q/ns1srLYt8tU=", "dev": true, "requires": { "colors": "1.1.2", "grunt-legacy-log-utils": "1.0.0", "hooker": "0.2.3", "lodash": "3.10.1", "underscore.string": "3.2.3" } }, "grunt-legacy-log-utils": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-1.0.0.tgz", "integrity": "sha1-p7ji0Ps1taUPSvmG/BEnSevJbz0=", "dev": true, "requires": { "chalk": "1.1.3", "lodash": "4.3.0" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "lodash": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.3.0.tgz", "integrity": "sha1-79nEpuxT87BUEkKZFcPkgk5NJaQ=", "dev": true }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "grunt-legacy-util": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-1.0.0.tgz", "integrity": "sha1-OGqnjcbtUJhsKxiVcmWxtIq7m4Y=", "dev": true, "requires": { "async": "1.5.2", "exit": "0.1.2", "getobject": "0.1.0", "hooker": "0.2.3", "lodash": "4.3.0", "underscore.string": "3.2.3", "which": "1.2.14" }, "dependencies": { "lodash": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.3.0.tgz", "integrity": "sha1-79nEpuxT87BUEkKZFcPkgk5NJaQ=", "dev": true } } }, "grunt-lib-phantomjs": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/grunt-lib-phantomjs/-/grunt-lib-phantomjs-1.1.0.tgz", "integrity": "sha1-np7c3Z/S3UDgwYHJQ3HVcqpe6tI=", "dev": true, "requires": { "eventemitter2": "0.4.14", "phantomjs-prebuilt": "2.1.15", "rimraf": "2.6.1", "semver": "5.4.1", "temporary": "0.0.8" }, "dependencies": { "rimraf": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz", "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=", "dev": true, "requires": { "glob": "7.0.6" } } } }, "grunt-postcss": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/grunt-postcss/-/grunt-postcss-0.8.0.tgz", "integrity": "sha1-jzCor2B5A84MRfAfC+QsYOMc6w4=", "dev": true, "requires": { "chalk": "1.1.3", "diff": "2.2.3", "postcss": "5.2.17" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "has-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", "dev": true }, "postcss": { "version": "5.2.17", "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.17.tgz", "integrity": "sha1-z09Ze4ZNZcikkrLqvp1wbIecOIs=", "dev": true, "requires": { "chalk": "1.1.3", "js-base64": "2.1.9", "source-map": "0.5.7", "supports-color": "3.2.3" }, "dependencies": { "supports-color": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", "dev": true, "requires": { "has-flag": "1.0.0" } } } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "grunt-retro": { "version": "0.6.4", "resolved": "https://registry.npmjs.org/grunt-retro/-/grunt-retro-0.6.4.tgz", "integrity": "sha1-8mqEj2pHl6X/foUOYCIMDea+jnI=", "dev": true }, "grunt-sass": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/grunt-sass/-/grunt-sass-2.0.0.tgz", "integrity": "sha1-kHTPnXtFkuIPd4jKpye4+aoGtgo=", "dev": true, "requires": { "each-async": "1.1.1", "node-sass": "4.5.3", "object-assign": "4.1.1" } }, "grunt-zip": { "version": "0.17.1", "resolved": "https://registry.npmjs.org/grunt-zip/-/grunt-zip-0.17.1.tgz", "integrity": "sha1-IYr6NzUcRvebn7HWovw8hFGaUtA=", "dev": true, "requires": { "grunt-retro": "0.6.4", "jszip": "2.5.0" } }, "grunt1.0-dom-munger": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/grunt1.0-dom-munger/-/grunt1.0-dom-munger-3.4.3.tgz", "integrity": "sha1-tfybG2SkmXRBMGxj8P9IvEF5H9M=", "dev": true, "requires": { "cheerio": "0.12.4" } }, "gzip-size": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-3.0.0.tgz", "integrity": "sha1-VGGI6b3DN/Zzdy+BZgRks4nc5SA=", "dev": true, "requires": { "duplexer": "0.1.1" } }, "har-schema": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", "dev": true }, "har-validator": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", "dev": true, "requires": { "ajv": "4.11.8", "har-schema": "1.0.5" } }, "has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { "ansi-regex": "2.1.1" } }, "has-flag": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", "dev": true }, "has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true }, "hasha": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/hasha/-/hasha-2.2.0.tgz", "integrity": "sha1-eNfL/B5tZjA/55g3NlmEUXsvbuE=", "dev": true, "requires": { "is-stream": "1.1.0", "pinkie-promise": "2.0.1" } }, "hawk": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", "dev": true, "requires": { "boom": "2.10.1", "cryptiles": "2.0.5", "hoek": "2.16.3", "sntp": "1.0.9" } }, "hoek": { "version": "2.16.3", "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", "dev": true }, "hooker": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz", "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=", "dev": true }, "hosted-git-info": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", "dev": true }, "htmlparser2": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.1.4.tgz", "integrity": "sha1-csvn1dVsAaz2H897kzMx9ORbNvA=", "dev": true, "requires": { "domelementtype": "1.3.0", "domhandler": "2.0.3", "domutils": "1.1.6", "readable-stream": "1.0.34" }, "dependencies": { "domutils": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.1.6.tgz", "integrity": "sha1-vdw94Jm5ou+sxRxiPyj0FuzFdIU=", "dev": true, "requires": { "domelementtype": "1.3.0" } }, "isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", "dev": true }, "readable-stream": { "version": "1.0.34", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { "core-util-is": "1.0.2", "inherits": "2.0.3", "isarray": "0.0.1", "string_decoder": "0.10.31" } }, "string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", "dev": true } } }, "http-errors": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz", "integrity": "sha1-GX4izevUGYWF6GlO9nhhl7ke2UI=", "dev": true, "requires": { "inherits": "2.0.3", "statuses": "1.3.1" } }, "http-signature": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", "dev": true, "requires": { "assert-plus": "0.2.0", "jsprim": "1.4.1", "sshpk": "1.13.1" } }, "iconv-lite": { "version": "0.4.18", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.18.tgz", "integrity": "sha512-sr1ZQph3UwHTR0XftSbK85OvBbxe/abLGzEnPENCQwmHf7sck8Oyu4ob3LgBxWWxRoM+QszeUyl7jbqapu2TqA==", "dev": true }, "in-publish": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz", "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=", "dev": true }, "indent-string": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", "dev": true, "requires": { "repeating": "2.0.1" } }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { "once": "1.4.0", "wrappy": "1.0.2" } }, "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, "invert-kv": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, "is-builtin-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { "builtin-modules": "1.1.1" } }, "is-finite": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", "dev": true, "requires": { "number-is-nan": "1.0.1" } }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { "number-is-nan": "1.0.1" } }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", "dev": true }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, "jasmine-core": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.4.1.tgz", "integrity": "sha1-b4OrOg8WlRcizgfSBsdz1XzIOL4=", "dev": true }, "js-base64": { "version": "2.1.9", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.1.9.tgz", "integrity": "sha1-8OgK4DmkvWVLXygfyT8EqRSn/M4=", "dev": true }, "js-yaml": { "version": "3.5.5", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz", "integrity": "sha1-A3fDgBfKvHMisNH7zSWkkWQfL74=", "dev": true, "requires": { "argparse": "1.0.9", "esprima": "2.7.3" } }, "jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "dev": true, "optional": true }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "dev": true }, "json-stable-stringify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", "dev": true, "requires": { "jsonify": "0.0.0" } }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, "jsonfile": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", "dev": true, "requires": { "graceful-fs": "4.1.11" } }, "jsonify": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", "dev": true }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", "json-schema": "0.2.3", "verror": "1.10.0" }, "dependencies": { "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true } } }, "jszip": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/jszip/-/jszip-2.5.0.tgz", "integrity": "sha1-dET9hVHd8+XacZj+oMkbyDCMwnQ=", "dev": true, "requires": { "pako": "0.2.9" } }, "kew": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/kew/-/kew-0.7.0.tgz", "integrity": "sha1-edk9LTM2PW/dKXCzNdkUGtWR15s=", "dev": true }, "klaw": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", "dev": true, "requires": { "graceful-fs": "4.1.11" } }, "lcid": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { "invert-kv": "1.0.0" } }, "livereload-js": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.2.2.tgz", "integrity": "sha1-bIclfmSKtHW8JOoldFftzB+NC8I=", "dev": true }, "load-grunt-tasks": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/load-grunt-tasks/-/load-grunt-tasks-3.5.2.tgz", "integrity": "sha1-ByhWEYD9IP+KaSdQWFL8WKrqDIg=", "dev": true, "requires": { "arrify": "1.0.1", "multimatch": "2.1.0", "pkg-up": "1.0.0", "resolve-pkg": "0.1.0" } }, "load-json-file": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { "graceful-fs": "4.1.11", "parse-json": "2.2.0", "pify": "2.3.0", "pinkie-promise": "2.0.1", "strip-bom": "2.0.0" } }, "lodash": { "version": "3.10.1", "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", "dev": true }, "lodash.assign": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", "dev": true }, "lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", "dev": true }, "lodash.mergewith": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz", "integrity": "sha1-FQzwoWeR9ZA7iJHqsVRgknS96lU=", "dev": true }, "loud-rejection": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", "dev": true, "requires": { "currently-unhandled": "0.4.1", "signal-exit": "3.0.2" } }, "lru-cache": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", "dev": true, "requires": { "pseudomap": "1.0.2", "yallist": "2.1.2" } }, "map-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true }, "maxmin": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-2.1.0.tgz", "integrity": "sha1-TTsiCQPZXu5+t6x/qGTnLcCaMWY=", "dev": true, "requires": { "chalk": "1.1.3", "figures": "1.7.0", "gzip-size": "3.0.0", "pretty-bytes": "3.0.1" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "dev": true }, "meow": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "dev": true, "requires": { "camelcase-keys": "2.1.0", "decamelize": "1.2.0", "loud-rejection": "1.6.0", "map-obj": "1.0.1", "minimist": "1.2.0", "normalize-package-data": "2.4.0", "object-assign": "4.1.1", "read-pkg-up": "1.0.1", "redent": "1.0.0", "trim-newlines": "1.0.0" } }, "mime": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz", "integrity": "sha1-WR2E02U6awtKO5343lqoEI5y5eA=", "dev": true }, "mime-db": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.29.0.tgz", "integrity": "sha1-SNJtI1WJZRcErFkWygYAGRQmaHg=", "dev": true }, "mime-types": { "version": "2.1.16", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.16.tgz", "integrity": "sha1-K4WKUuXs1RbbiXrCvodIeDBpjiM=", "dev": true, "requires": { "mime-db": "1.29.0" } }, "mimeparse": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/mimeparse/-/mimeparse-0.1.4.tgz", "integrity": "sha1-2vsCdSNw/SJgk64xUsJxrwGsJUo=", "dev": true }, "mini-map": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/mini-map/-/mini-map-1.0.0.tgz", "integrity": "sha1-lkHgEV2Zs9wTcRz4z9pMgZmJP04=", "dev": true }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { "brace-expansion": "1.1.8" } }, "minimist": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true }, "mkdirp": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.0.tgz", "integrity": "sha1-HXMHam35hs2TROFecfzAWkyavxI=", "dev": true, "requires": { "minimist": "0.0.8" }, "dependencies": { "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true } } }, "ms": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true }, "multimatch": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz", "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", "dev": true, "requires": { "array-differ": "1.0.0", "array-union": "1.0.2", "arrify": "1.0.1", "minimatch": "3.0.4" }, "dependencies": { "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { "brace-expansion": "1.1.8" } } } }, "nan": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz", "integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U=", "dev": true }, "node-gyp": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.6.2.tgz", "integrity": "sha1-m/vlRWIoYoSDjnUOrAUpWFP6HGA=", "dev": true, "requires": { "fstream": "1.0.11", "glob": "7.0.6", "graceful-fs": "4.1.11", "minimatch": "3.0.4", "mkdirp": "0.5.0", "nopt": "3.0.6", "npmlog": "4.1.2", "osenv": "0.1.4", "request": "2.81.0", "rimraf": "2.2.8", "semver": "5.3.0", "tar": "2.2.1", "which": "1.2.14" }, "dependencies": { "semver": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", "dev": true } } }, "node-sass": { "version": "4.5.3", "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.5.3.tgz", "integrity": "sha1-0JydEXlkEjnRuX/8YjH9zsU+FWg=", "dev": true, "requires": { "async-foreach": "0.1.3", "chalk": "1.1.3", "cross-spawn": "3.0.1", "gaze": "1.1.2", "get-stdin": "4.0.1", "glob": "7.0.6", "in-publish": "2.0.0", "lodash.assign": "4.2.0", "lodash.clonedeep": "4.5.0", "lodash.mergewith": "4.6.0", "meow": "3.7.0", "mkdirp": "0.5.1", "nan": "2.6.2", "node-gyp": "3.6.2", "npmlog": "4.1.2", "request": "2.81.0", "sass-graph": "2.2.4", "stdout-stream": "1.4.0" }, "dependencies": { "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "2.2.1", "escape-string-regexp": "1.0.5", "has-ansi": "2.0.0", "strip-ansi": "3.0.1", "supports-color": "2.0.0" } }, "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { "minimist": "0.0.8" } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, "nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", "dev": true, "requires": { "abbrev": "1.1.0" } }, "normalize-package-data": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "dev": true, "requires": { "hosted-git-info": "2.5.0", "is-builtin-module": "1.0.0", "semver": "5.4.1", "validate-npm-package-license": "3.0.1" } }, "normalize-range": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", "dev": true }, "npmlog": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "requires": { "are-we-there-yet": "1.1.4", "console-control-strings": "1.1.0", "gauge": "2.7.4", "set-blocking": "2.0.0" } }, "nth-check": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.1.tgz", "integrity": "sha1-mSms32KPwsQQmN6rgqxYDPFJquQ=", "dev": true, "requires": { "boolbase": "1.0.0" } }, "num2fraction": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", "dev": true }, "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, "oauth-sign": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", "dev": true }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true }, "on-finished": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", "dev": true, "requires": { "ee-first": "1.1.1" } }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { "wrappy": "1.0.2" } }, "onetime": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", "dev": true }, "os-homedir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, "os-locale": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "dev": true, "requires": { "lcid": "1.0.0" } }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, "osenv": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz", "integrity": "sha1-Qv5tWVPfBsgGS+bxdsPQWqqjRkQ=", "dev": true, "requires": { "os-homedir": "1.0.2", "os-tmpdir": "1.0.2" } }, "package": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/package/-/package-1.0.1.tgz", "integrity": "sha1-0lofmeJQbcsn1nBLg9yooxLk7cw=", "dev": true }, "pako": { "version": "0.2.9", "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", "dev": true }, "parse-json": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { "error-ex": "1.3.1" } }, "parseurl": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.1.tgz", "integrity": "sha1-yKuMkiO6NIiKpkopeyiFO+wY2lY=", "dev": true }, "path-exists": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { "pinkie-promise": "2.0.1" } }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, "path-type": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", "dev": true, "requires": { "graceful-fs": "4.1.11", "pify": "2.3.0", "pinkie-promise": "2.0.1" } }, "pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", "dev": true }, "performance-now": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", "dev": true }, "phantomjs-prebuilt": { "version": "2.1.15", "resolved": "https://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.15.tgz", "integrity": "sha1-IPhugtM0nFBZF1J3RbekEeCLOQM=", "dev": true, "requires": { "es6-promise": "4.0.5", "extract-zip": "1.6.5", "fs-extra": "1.0.0", "hasha": "2.2.0", "kew": "0.7.0", "progress": "1.1.8", "request": "2.81.0", "request-progress": "2.0.1", "which": "1.2.14" } }, "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true }, "pinkie": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", "dev": true }, "pinkie-promise": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { "pinkie": "2.0.4" } }, "pkg-up": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-1.0.0.tgz", "integrity": "sha1-Pgj7RhUlxEIWJKM7n35tCvWwWiY=", "dev": true, "requires": { "find-up": "1.1.2" } }, "pop-arrayify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pop-arrayify/-/pop-arrayify-1.0.0.tgz", "integrity": "sha1-ZVIrP+OuIb5PjosrnkRjTBWmxIE=", "dev": true }, "pop-clear": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pop-clear/-/pop-clear-1.0.0.tgz", "integrity": "sha1-/IFk/IX4nyiPI7k2toAeqCKuRYY=", "dev": true }, "pop-clone": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pop-clone/-/pop-clone-1.0.1.tgz", "integrity": "sha1-YY1GJJfpbQb5zaMVsyXMo6JjYDg=", "dev": true, "requires": { "mini-map": "1.0.0", "pop-equals": "1.0.0" } }, "pop-compare": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pop-compare/-/pop-compare-1.0.0.tgz", "integrity": "sha1-xzLiLCfwz6uAohfUXncitc4VGCA=", "dev": true }, "pop-equals": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pop-equals/-/pop-equals-1.0.0.tgz", "integrity": "sha1-kEFPj9pxo3+IHR5eOi4C7ww7fgs=", "dev": true, "requires": { "mini-map": "1.0.0" } }, "pop-has": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pop-has/-/pop-has-1.0.0.tgz", "integrity": "sha1-myJrWblgq2XqsLQS3VVw3OkOZRw=", "dev": true, "requires": { "pop-equals": "1.0.0" } }, "pop-hash": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pop-hash/-/pop-hash-1.0.1.tgz", "integrity": "sha1-vNaUVL0vmd7SC1/Iork9a1+rRMw=", "dev": true, "requires": { "weak-map": "1.0.5" } }, "pop-iterate": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pop-iterate/-/pop-iterate-1.0.1.tgz", "integrity": "sha1-zqz9q0q/NT16DyqqLB/Hs/lBO6M=", "dev": true }, "pop-observe": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/pop-observe/-/pop-observe-2.0.2.tgz", "integrity": "sha1-WstaxvJMfG/6ssMhUbCtt0Du82M=", "dev": true, "requires": { "pop-equals": "1.0.0", "pop-has": "1.0.0", "pop-swap": "1.0.0" } }, "pop-swap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pop-swap/-/pop-swap-1.0.0.tgz", "integrity": "sha1-iLRAVT4IXQF50yJVsJ+TqrmJDGY=", "dev": true }, "pop-zip": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pop-zip/-/pop-zip-1.0.0.tgz", "integrity": "sha1-PcEUAHss7OdP87jOpz6xIMcNsFY=", "dev": true }, "postcss": { "version": "6.0.9", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.9.tgz", "integrity": "sha512-bBE2AHNEBhF23TfET6AA/lFP8ah+qHOZoFJEflFG+HgvVLdTmMOrocx/4LVVDIn3w6jUssw1q2Exk1cc9UOI8w==", "dev": true, "requires": { "chalk": "2.1.0", "source-map": "0.5.7", "supports-color": "4.2.1" } }, "postcss-value-parser": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", "dev": true }, "pretty-bytes": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", "integrity": "sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8=", "dev": true, "requires": { "number-is-nan": "1.0.1" } }, "process-nextick-args": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", "dev": true }, "progress": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", "dev": true }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", "dev": true }, "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", "dev": true }, "q": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/q/-/q-0.9.3.tgz", "integrity": "sha1-QE6rutDQMe01/LU/fFvAYoO050w=", "dev": true }, "q-io": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/q-io/-/q-io-2.0.2.tgz", "integrity": "sha1-GTNM5KlL2r/42dMBXz07csm+O/U=", "dev": true, "requires": { "collections": "2.0.3", "mime": "1.3.6", "mimeparse": "0.1.4", "q": "2.0.3", "qs": "0.6.6", "url2": "1.0.4" }, "dependencies": { "q": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/q/-/q-2.0.3.tgz", "integrity": "sha1-dbjbAlWhpa+C9Yw/Oqoe/sfQ0TQ=", "dev": true, "requires": { "asap": "2.0.6", "pop-iterate": "1.0.1", "weak-map": "1.0.5" } }, "qs": { "version": "0.6.6", "resolved": "https://registry.npmjs.org/qs/-/qs-0.6.6.tgz", "integrity": "sha1-bgFQmP9RlouKPIGQAdXyyJvEsQc=", "dev": true } } }, "qs": { "version": "6.4.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", "dev": true }, "raw-body": { "version": "2.1.7", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.1.7.tgz", "integrity": "sha1-rf6s4uT7MJgFgBTQjActzFl1h3Q=", "dev": true, "requires": { "bytes": "2.4.0", "iconv-lite": "0.4.13", "unpipe": "1.0.0" }, "dependencies": { "bytes": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz", "integrity": "sha1-fZcZb51br39pNeJZhVSe3SpsIzk=", "dev": true }, "iconv-lite": { "version": "0.4.13", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", "dev": true } } }, "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { "load-json-file": "1.1.0", "normalize-package-data": "2.4.0", "path-type": "1.1.0" } }, "read-pkg-up": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { "find-up": "1.1.2", "read-pkg": "1.1.0" } }, "readable-stream": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { "core-util-is": "1.0.2", "inherits": "2.0.3", "isarray": "1.0.0", "process-nextick-args": "1.0.7", "safe-buffer": "5.1.1", "string_decoder": "1.0.3", "util-deprecate": "1.0.2" } }, "redent": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", "dev": true, "requires": { "indent-string": "2.1.0", "strip-indent": "1.0.1" } }, "regexp-escape": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/regexp-escape/-/regexp-escape-0.0.1.tgz", "integrity": "sha1-PzJqBi2PdZaykUkpVQqsd+r43nU=", "dev": true }, "repeating": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "requires": { "is-finite": "1.0.2" } }, "request": { "version": "2.81.0", "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", "dev": true, "requires": { "aws-sign2": "0.6.0", "aws4": "1.6.0", "caseless": "0.12.0", "combined-stream": "1.0.5", "extend": "3.0.1", "forever-agent": "0.6.1", "form-data": "2.1.4", "har-validator": "4.2.1", "hawk": "3.1.3", "http-signature": "1.1.1", "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", "mime-types": "2.1.16", "oauth-sign": "0.8.2", "performance-now": "0.2.0", "qs": "6.4.0", "safe-buffer": "5.1.1", "stringstream": "0.0.5", "tough-cookie": "2.3.2", "tunnel-agent": "0.6.0", "uuid": "3.1.0" } }, "request-progress": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-2.0.1.tgz", "integrity": "sha1-XTa7V5YcZzqlt4jbyBQf3yO0Tgg=", "dev": true, "requires": { "throttleit": "1.0.0" } }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, "require-main-filename": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "dev": true }, "resolve": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", "dev": true }, "resolve-from": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=", "dev": true }, "resolve-pkg": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/resolve-pkg/-/resolve-pkg-0.1.0.tgz", "integrity": "sha1-AsyZNBDik2livZcWahsHfalyVTE=", "dev": true, "requires": { "resolve-from": "2.0.0" } }, "rimraf": { "version": "2.2.8", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", "dev": true }, "safe-buffer": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", "dev": true }, "sass-graph": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", "dev": true, "requires": { "glob": "7.0.6", "lodash": "4.17.4", "scss-tokenizer": "0.2.3", "yargs": "7.1.0" }, "dependencies": { "lodash": { "version": "4.17.4", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", "dev": true } } }, "scss-tokenizer": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", "dev": true, "requires": { "js-base64": "2.1.9", "source-map": "0.4.4" }, "dependencies": { "source-map": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { "amdefine": "1.0.1" } } } }, "semver": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", "dev": true }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, "set-immediate-shim": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", "dev": true }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, "simulant": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/simulant/-/simulant-0.2.2.tgz", "integrity": "sha1-8bzlJxK2p6DaON392n6DsgsdoB4=", "dev": true }, "sntp": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", "dev": true, "requires": { "hoek": "2.16.3" } }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true }, "spdx-correct": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", "dev": true, "requires": { "spdx-license-ids": "1.2.2" } }, "spdx-expression-parse": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", "dev": true }, "spdx-license-ids": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", "dev": true }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, "sshpk": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", "dev": true, "requires": { "asn1": "0.2.3", "assert-plus": "1.0.0", "bcrypt-pbkdf": "1.0.1", "dashdash": "1.14.1", "ecc-jsbn": "0.1.1", "getpass": "0.1.7", "jsbn": "0.1.1", "tweetnacl": "0.14.5" }, "dependencies": { "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true } } }, "statuses": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", "dev": true }, "stdout-stream": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz", "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", "dev": true, "requires": { "readable-stream": "2.3.3" } }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { "code-point-at": "1.1.0", "is-fullwidth-code-point": "1.0.0", "strip-ansi": "3.0.1" } }, "string_decoder": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { "safe-buffer": "5.1.1" } }, "stringstream": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", "dev": true }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { "ansi-regex": "2.1.1" } }, "strip-bom": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { "is-utf8": "0.2.1" } }, "strip-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", "dev": true, "requires": { "get-stdin": "4.0.1" } }, "supports-color": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz", "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==", "dev": true, "requires": { "has-flag": "2.0.0" } }, "tar": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", "dev": true, "requires": { "block-stream": "0.0.9", "fstream": "1.0.11", "inherits": "2.0.3" } }, "temporary": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/temporary/-/temporary-0.0.8.tgz", "integrity": "sha1-oYqYHSi6jKNgJ/s8MFOMPst0CsA=", "dev": true, "requires": { "package": "1.0.1" } }, "throttleit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", "dev": true }, "tiny-lr": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-0.2.1.tgz", "integrity": "sha1-s/26gC5dVqM8L28QeUsy5Hescp0=", "dev": true, "requires": { "body-parser": "1.14.2", "debug": "2.2.0", "faye-websocket": "0.10.0", "livereload-js": "2.2.2", "parseurl": "1.3.1", "qs": "5.1.0" }, "dependencies": { "qs": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/qs/-/qs-5.1.0.tgz", "integrity": "sha1-TZMuXH6kEcynajEtOaYGIA/VDNk=", "dev": true } } }, "tough-cookie": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz", "integrity": "sha1-8IH3bkyFcg5sN6X6ztc3FQ2EByo=", "dev": true, "requires": { "punycode": "1.4.1" } }, "trim-newlines": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", "dev": true }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, "requires": { "safe-buffer": "5.1.1" } }, "tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", "dev": true, "optional": true }, "type-is": { "version": "1.6.15", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", "dev": true, "requires": { "media-typer": "0.3.0", "mime-types": "2.1.16" } }, "typedarray": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, "uglify-js": { "version": "3.0.28", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.0.28.tgz", "integrity": "sha512-0h/qGay016GG2lVav3Kz174F3T2Vjlz2v6HCt+WDQpoXfco0hWwF5gHK9yh88mUYvIC+N7Z8NT8WpjSp1yoqGA==", "dev": true, "requires": { "commander": "2.11.0", "source-map": "0.5.7" } }, "underscore.string": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.2.3.tgz", "integrity": "sha1-gGmSYzZl1eX8tNsfs6hi62jp5to=", "dev": true }, "unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", "dev": true }, "uri-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/uri-path/-/uri-path-1.0.0.tgz", "integrity": "sha1-l0fwGDWJM8Md4PzP2C0TjmcmLjI=", "dev": true }, "url": { "version": "0.10.2", "resolved": "https://registry.npmjs.org/url/-/url-0.10.2.tgz", "integrity": "sha1-aGIdaSnqHK00Tr8TXYL89+sadGk=", "dev": true, "requires": { "punycode": "1.3.2" }, "dependencies": { "punycode": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", "dev": true } } }, "url-safe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/url-safe/-/url-safe-2.0.0.tgz", "integrity": "sha1-3NRt5GZqdUbuQ+qQasF12qYm3p4=", "dev": true }, "url2": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/url2/-/url2-1.0.4.tgz", "integrity": "sha1-3yKErhXHSbqAl1FRDl4l2p67gNg=", "dev": true, "requires": { "url": "0.10.2" } }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, "uuid": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", "dev": true }, "validate-npm-package-license": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", "dev": true, "requires": { "spdx-correct": "1.0.2", "spdx-expression-parse": "1.0.4" } }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, "requires": { "assert-plus": "1.0.0", "core-util-is": "1.0.2", "extsprintf": "1.3.0" }, "dependencies": { "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true } } }, "weak-map": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/weak-map/-/weak-map-1.0.5.tgz", "integrity": "sha1-eWkVhNmGB/UHC9O3CkDmuyLkAes=", "dev": true }, "websocket-driver": { "version": "0.6.5", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.6.5.tgz", "integrity": "sha1-XLJVbOuF9Dc8bYI4qmkchFThOjY=", "dev": true, "requires": { "websocket-extensions": "0.1.1" } }, "websocket-extensions": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.1.tgz", "integrity": "sha1-domUmcGEtu91Q3fC27DNbLVdKec=", "dev": true }, "which": { "version": "1.2.14", "resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", "integrity": "sha1-mofEN48D6CfOyvGs31bHNsAcFOU=", "dev": true, "requires": { "isexe": "2.0.0" } }, "which-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", "dev": true }, "wide-align": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", "dev": true, "requires": { "string-width": "1.0.2" } }, "wrap-ansi": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { "string-width": "1.0.2", "strip-ansi": "3.0.1" } }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "y18n": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, "yallist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", "dev": true }, "yargs": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", "dev": true, "requires": { "camelcase": "3.0.0", "cliui": "3.2.0", "decamelize": "1.2.0", "get-caller-file": "1.0.2", "os-locale": "1.4.0", "read-pkg-up": "1.0.1", "require-directory": "2.1.1", "require-main-filename": "1.0.1", "set-blocking": "2.0.0", "string-width": "1.0.2", "which-module": "1.0.0", "y18n": "3.2.1", "yargs-parser": "5.0.0" }, "dependencies": { "camelcase": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", "dev": true } } }, "yargs-parser": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", "dev": true, "requires": { "camelcase": "3.0.0" }, "dependencies": { "camelcase": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", "dev": true } } }, "yauzl": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", "dev": true, "requires": { "fd-slicer": "1.0.1" } } } } chosen-1.8.7/package-travis.yml000066400000000000000000000005521330654661200164420ustar00rootroot00000000000000sudo: false language: node_js node_js: - "node" deploy: provider: npm email: chosenjs@getharvest.com api_key: secure: jilkDlYp31lPr5AxNTSoC7cgeJv1k+HFyD97RdscUm7Oc45397H//62twQY1w8gUtonjqoncSUe+deElbBs8Zm1RXoX3F3YdcrdhLgmpUFa6Qt2L1ttSJRJ/HOn7NxupwNAHCFiLib5ffFED6FvntHJG/A1693yQeR9lycMsmrQ= on: tags: true repo: harvesthq/chosen-package chosen-1.8.7/package.json000066400000000000000000000042161330654661200153050ustar00rootroot00000000000000{ "author": "harvest", "name": "chosen", "version": "1.8.7", "description": "Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.", "keywords": [ "select", "multiselect", "dropdown", "form", "input", "ui" ], "repository": { "type": "git", "url": "https://github.com/harvesthq/chosen.git" }, "engines": { "node": ">=4" }, "scripts": { "test": "grunt test" }, "dependencies": {}, "devDependencies": { "autoprefixer": "^7.1.2", "coffee-script": ">= 1.6", "grunt": "~1.0", "grunt-contrib-coffee": "~1.0", "grunt-contrib-copy": "^1.0.0", "grunt-contrib-concat": "~1.0", "grunt-contrib-cssmin": "~2.2", "grunt-contrib-jasmine": "~1.1", "grunt-contrib-uglify": "~3.0", "grunt-contrib-watch": "~1.0", "grunt-gh-pages": "~2.0", "grunt-postcss": "^0.8.0", "grunt-sass": "^2.0", "grunt-zip": "~0.17.1", "grunt1.0-dom-munger": "~3.4", "load-grunt-tasks": "^3.5.2", "simulant": "^0.2.2" }, "contributors": [ { "name": "Patrick Filler", "url": "https://github.com/pfiller" }, { "name": "Christophe Coevoet", "url": "https://github.com/stof" }, { "name": "Ken Earley", "url": "https://github.com/kenearley" }, { "name": "Koen Punt", "url": "https://github.com/koenpunt" } ], "license": "MIT", "homepage": "https://harvesthq.github.io/chosen/", "bugs": "https://github.com/harvesthq/chosen/issues", "_extra": { "title": "Chosen", "license": { "type": "MIT", "url": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md" }, "links": { "download": "https://github.com/harvesthq/chosen/releases", "docs": "https://harvesthq.github.io/chosen/" }, "main": [ "chosen.jquery.js", "chosen.css" ], "files": [ "chosen.jquery.js", "chosen.jquery.min.js", "chosen.proto.js", "chosen.proto.min.js", "chosen.css", "chosen.min.css", "chosen-sprite@2x.png", "chosen-sprite.png" ] } } chosen-1.8.7/public/000077500000000000000000000000001330654661200142725ustar00rootroot00000000000000chosen-1.8.7/public/chosen-sprite.png000066400000000000000000000010321330654661200175570ustar00rootroot00000000000000PNG  IHDR4%^IDATH헱kSQƯ .-=$bo$((THw*"nupA@ PApqJ$p!PM1.;=\D.Yn0@}DMF >Fb1 c !61rb%GIJ(vfFyO H4B c1}^45FoGXٝvUn(Rspv*8sP*cOTQWŬj1QH}T+}֕d/LLcF6˔7,9ʼ1IkJ(dJjLc^z*"Huj)׿,?<._1a°x /b}T!i?Ou oc\eNc:99\@s uZ q|ypka6B|1 Ggqup+[*yIENDB`chosen-1.8.7/public/chosen-sprite@2x.png000066400000000000000000000013421330654661200201350ustar00rootroot00000000000000PNG  IHDRhJqIDATh횿o@#P ?!dԅsft⇿'RJ0#[Ɉ+P{RW%ދ1 e,J4h'Y2NyH%?/4 Lj[ -85HqHqȱs6C+%0`QWXO5 ]:ڿhIg7oi 1n fHn' !- hjh؝lnzHAojQFEæhH 'wԲtc 8H۪/4 Lj`$8 qiDS %N9 J1Sp̶;Xk}\kN[[tk%sFp3KXR~CgYƬ,9A%w;8Qh H,]npY>$c )ƒ Khw~SʼnqP*wҶXy{$u%&Z'(8؜֜bҍ၊5R6emP0<F-F i# zH|YJZ\NIENDB`chosen-1.8.7/public/index.html000066400000000000000000002465551330654661200163100ustar00rootroot00000000000000 Chosen: A jQuery Plugin by Harvest to Tame Unwieldy Select Boxes

        Chosen (v1.8.7)

        Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly.

        Downloads Project Source Contribute

        Standard Select

        Turns This
        Into This

        Multiple Select

        Turns This
        Into This

        <optgroup> Support

        Single Select with Groups
        Multiple Select with Groups

        Selected and Disabled Support

        Chosen automatically highlights selected options and removes disabled options.

        Single Select
        Multiple Select

        Hide Search on Single Select

        The disable_search_threshold option can be specified to hide the search input on single selects if there are n or fewer options.

        $(".chosen-select").chosen({disable_search_threshold: 10});

        Default Text Support

        Chosen automatically sets the default field text ("Choose a country...") by reading the select element's data-placeholder value. If no data-placeholder value is present, it will default to "Select an Option" or "Select Some Options" depending on whether the select is single or multiple. You can change these elements in the plugin js file as you see fit.

        <select data-placeholder="Choose a country..." multiple class="chosen-select">

        Note: on single selects, the first element is assumed to be selected by the browser. To take advantage of the default text support, you will need to include a blank option as the first element of your select list.

        No Results Text Support

        Setting the "No results" search text is as easy as passing an option when you create Chosen:

         $(".chosen-select").chosen({no_results_text: "Oops, nothing found!"}); 

        Single Select
        Multiple Select

        Limit Selected Options in Multiselect

        You can easily limit how many options the user can select:

        $(".chosen-select").chosen({max_selected_options: 5});

        If you try to select another option with limit reached chosen:maxselected event is triggered:

         $(".chosen-select").bind("chosen:maxselected", function () { ... }); 

        Allow Deselect on Single Selects

        When a single select box isn't a required field, you can set allow_single_deselect: true and Chosen will add a UI element for option deselection. This will only work if the first option has blank text.

        Right-to-Left Support

        You can set right-to-left text by setting rtl: true

         $(".chosen-select").chosen({rtl: true}); 
        Single Right-to-Left Select
        Multiple Right-to-Left Select

        Observing, Updating, and Destroying Chosen

        • Observing Form Field Changes

          When working with form fields, you often want to perform some behavior after a value has been selected or deselected. Whenever a user selects a field in Chosen, it triggers a "change" event on the original form field. That lets you do something like this:

          $("#form_field").chosen().change( … );
        • Updating Chosen Dynamically

          If you need to update the options in your select field and want Chosen to pick up the changes, you'll need to trigger the "chosen:updated" event on the field. Chosen will re-build itself based on the updated content.

          $("#form_field").trigger("chosen:updated");
        • Destroying Chosen

          To destroy Chosen and revert back to the native select:

          $("#form_field").chosen("destroy");

        Custom Width Support

        Using a custom width with Chosen is as easy as passing an option when you create Chosen:

         $(".chosen-select").chosen({width: "95%"}); 
        Single Select
        Multiple Select

        Labels work, too

        Use labels just like you would a standard select

        Setup

        Using Chosen is easy as can be.

        1. Download the plugin and copy the chosen files to your app.
        2. Activate the plugin on the select boxes of your choice: $(".chosen-select").chosen()
        3. Disco.

        FAQs

        • Do you have all the available options documented somewhere?

          Yes! You can find them on the options page.

        • Something doesn't work. Can you fix it?

          Yes! Please report all issues using the GitHub issue tracking tool. Please include the plugin version (jQuery or Prototype), browser and OS. The more information provided, the easier it is to fix a problem.

        • What browsers are supported?

          All modern desktop browsers are supported (Firefox, Chrome, Safari and IE9). Legacy support for IE8 is also enabled. Chosen is disabled on iPhone, iPod Touch, and Android mobile devices (more information).

        • Didn't there used to be a Prototype version of Chosen?

          There still is!

        Credits

        chosen-1.8.7/public/index.proto.html000066400000000000000000002473071330654661200174460ustar00rootroot00000000000000 Chosen: A Prototype Plugin by Harvest to Tame Unwieldy Select Boxes

        Chosen - Prototype Version (v1.8.7)

        Chosen is a Prototype plugin that makes long, unwieldy select boxes much more user-friendly.

        Downloads Project Source Contribute

        Looking for the jQuery version?

        Standard Select

        Turns This
        Into This

        Multiple Select

        Turns This
        Into This

        <optgroup> Support

        Single Select with Groups
        Multiple Select with Groups

        Selected and Disabled Support

        Chosen automatically highlights selected options and removes disabled options.

        Single Select
        Multiple Select

        Hide Search on Single Select

        The disable_search_threshold option can be specified to hide the search input on single selects if there are n or fewer options.

         new Chosen($("chosen_select_field"),{disable_search_threshold: 10}); 

        Default Text Support

        Chosen automatically sets the default field text ("Choose a country...") by reading the select element's data-placeholder value. If no data-placeholder value is present, it will default to "Select an Option" or "Select Some Options" depending on whether the select is single or multiple. You can change these elements in the plugin js file as you see fit.

        <select data-placeholder="Choose a country..." multiple class="chosen-select">

        Note: on single selects, the first element is assumed to be selected by the browser. To take advantage of the default text support, you will need to include a blank option as the first element of your select list.

        No Results Text Support

        Setting the "No results" search text is as easy as passing an option when you create Chosen:

        new Chosen($("chosen_select_field"),{no_results_text: "Oops, nothing found!"}); 
        Single Select
        Multiple Select

        Limit Selected Options in Multiselect

        You can easily limit how many options the user can select:

        new Chosen($("chosen_select_field"),{max_selected_options: 5}); 

        If you try to select another option with limit reached chosen:maxselected event is triggered:

        $("chosen_select_field").observe("chosen:maxselected", function(evt) { ... }); 

        Allow Deselect on Single Selects

        When a single select box isn't a required field, you can set allow_single_deselect: true and Chosen will add a UI element for option deselection. This will only work if the first option has blank text.

        Right-to-Left Support

        You can set right-to-left text by setting rtl: true

         $(".chosen-select").chosen({rtl: true}); 
        Single Right-to-Left Select
        Multiple Right-to-Left Select

        Observing, Updating, and Destroying Chosen

        • Observing Form Field Changes

          When working with form fields, you often want to perform some behavior after a value has been selected or deselected. Whenever a user selects a field in Chosen, it triggers a "change" event on the original form field. That lets you do something like this:

          $("#form_field").chosen().change( … );

          Note: Prototype doesn't offer support for triggering standard browser events. Event.simulate is required to trigger the change event when using the Prototype version.

        • Updating Chosen Dynamically

          If you need to update the options in your select field and want Chosen to pick up the changes, you'll need to trigger the "chosen:updated" event on the field. Chosen will re-build itself based on the updated content.

          Event.fire($("form_field"), "chosen:updated");
        • Destroying Chosen

          To destroy Chosen and revert back to the native select, call destroy on the Chosen instance:

          chosen = new Chosen($("form_field"));
          
          // ...later
          chosen.destroy();

        Custom Width Support

        Using a custom width with Chosen is as easy as passing an option when you create Chosen:

        new Chosen($("chosen_select_field"),{width: "95%"}); 
        Single Select
        Multiple Select

        Labels work, too

        Use labels just like you would a standard select

        Setup

        Using Chosen is easy as can be.

        1. Download the plugin and copy the chosen files to your app.
        2. Activate the plugin by creating a new instance of Chosen: New Chosen(some_form_field,some_options);
        3. Disco.

        FAQs

        • Do you have all the available options documented somewhere?

          Yes! You can find them on the options page.

        • Something doesn't work. Can you fix it?

          Yes! Please report all issues using the GitHub issue tracking tool. Please include the plugin version (jQuery or Prototype), browser and OS. The more information provided, the easier it is to fix a problem.

        • What browsers are supported?

          All modern desktop browsers are supported (Firefox, Chrome, Safari and IE9). Legacy support for IE8 is also enabled. Chosen is disabled on iPhone, iPod Touch, and Android mobile devices (more information).

        Credits

        chosen-1.8.7/public/options.html000066400000000000000000000335061330654661200166620ustar00rootroot00000000000000 Chosen: A jQuery Plugin by Harvest to Tame Unwieldy Select Boxes

        Chosen (v1.8.7)

        Chosen has a number of options and attributes that allow you to have full control of your select boxes.

        Options

        The following options are available to pass into Chosen on instantiation.

        Example:

          $(".my_select_box").chosen({
            disable_search_threshold: 10,
            no_results_text: "Oops, nothing found!",
            width: "95%"
          });
        
        OptionDefaultDescription
        allow_single_deselect false When set to true on a single select, Chosen adds a UI element which selects the first element (if it is blank).
        disable_search false When set to true, Chosen will not display the search field (single selects only).
        disable_search_threshold 0 Hide the search input on single selects if there are n or fewer options.
        enable_split_word_search true By default, searching will match on any word within an option tag. Set this option to false if you want to only match on the entire text of an option tag.
        inherit_select_classes false When set to true, Chosen will grab any classes on the original select field and add them to Chosen’s container div.
        max_selected_options Infinity Limits how many options the user can select. When the limit is reached, the chosen:maxselected event is triggered.
        no_results_text "No results match" The text to be displayed when no matching results are found. The current search is shown at the end of the text (e.g., No results match "Bad Search").
        placeholder_text_multiple "Select Some Options" The text to be displayed as a placeholder when no options are selected for a multiple select.
        placeholder_text_single "Select an Option" The text to be displayed as a placeholder when no options are selected for a single select.
        search_contains false By default, Chosen’s search matches starting at the beginning of a word. Setting this option to true allows matches starting from anywhere within a word. This is especially useful for options that include a lot of special characters or phrases in ()s and []s.
        group_search true By default, Chosen will search group labels as well as options, and filter to show all options below matching groups. Set this to false to search only in the options.
        single_backstroke_delete true By default, pressing delete/backspace on multiple selects will remove a selected choice. When false, pressing delete/backspace will highlight the last choice, and a second press deselects it.
        width Original select width. The width of the Chosen select box. By default, Chosen attempts to match the width of the select box you are replacing. If your select is hidden when Chosen is instantiated, you must specify a width or the select will show up with a width of 0.
        display_disabled_options true By default, Chosen includes disabled options in search results with a special styling. Setting this option to false will hide disabled results and exclude them from searches.
        display_selected_options true

        By default, Chosen includes selected options in search results with a special styling. Setting this option to false will hide selected results and exclude them from searches.

        Note: this is for multiple selects only. In single selects, the selected result will always be displayed.

        include_group_label_in_selected false

        By default, Chosen only shows the text of a selected option. Setting this option to true will show the text and group (if any) of the selected option.

        max_shown_results Infinity

        Only show the first (n) matching options in the results. This can be used to increase performance for selects with very many options.

        case_sensitive_search false

        By default, Chosen's search is case-insensitive. Setting this option to true makes the search case-sensitive.

        hide_results_on_select true

        By default, Chosen's results are hidden after a option is selected. Setting this option to false will keep the results open after selection. This only applies to multiple selects.

        rtl false

        Chosen supports right-to-left text in select boxes. Set this option to true to support right-to-left text options.

        Note: the chosen-rtl class on the select has precedence over this option. However, the classname approach is deprecated and will be removed in future versions of Chosen.

        Attributes

        Certain attributes placed on the select tag or its options can be used to configure Chosen.

        Example:

          <select class="my_select_box" data-placeholder="Select Your Options">
            <option value="1">Option 1</option>
            <option value="2" selected>Option 2</option>
            <option value="3" disabled>Option 3</option>
          </select>
        
        AttributeDescription
        data-placeholder

        The text to be displayed as a placeholder when no options are selected for a select. Defaults to "Select an Option" for single selects or "Select Some Options" for multiple selects.

        Note:This attribute overrides anything set in the placeholder_text_multiple or placeholder_text_single options.

        multiple The attribute multiple on your select box dictates whether Chosen will render a multiple or single select.
        selected, disabled Chosen automatically highlights selected options and disables disabled options.

        Classes

        Classes placed on the select tag can be used to configure Chosen.

        Example:

          <select class="my_select_box chosen-rtl">
            <option value="1">Option 1</option>
            <option value="2">Option 2</option>
            <option value="3">Option 3</option>
          </select>
        
        Classname Description
        chosen-rtl

        Chosen supports right-to-left text in select boxes. Add the class chosen-rtl to your select tag to support right-to-left text options.

        Note: The chosen-rtl class will pass through to the Chosen select even when the inherit_select_classes option is set to false.

        Note: This is deprecated in favor of using the rtl: true option (see the Options section).

        Triggered Events

        Chosen triggers a number of standard and custom events on the original select field.

        Example:

          $('.my_select_box').on('change', function(evt, params) {
            do_something(evt, params);
          });
        
        EventDescription
        change

        Chosen triggers the standard DOM event whenever a selection is made (it also sends a selected or deselected parameter that tells you which option was changed).

        Note: The selected and deselected parameters are not available for Prototype.

        chosen:ready Triggered after Chosen has been fully instantiated.
        chosen:maxselected Triggered if max_selected_options is set and that total is broken.
        chosen:showing_dropdown Triggered when Chosen’s dropdown is opened.
        chosen:hiding_dropdown Triggered when Chosen’s dropdown is closed.
        chosen:no_results Triggered when a search returns no matching results.

        Note: all custom Chosen events (those that begin with chosen:) also include the chosen object as a parameter.

        Triggerable Events

        You can trigger several events on the original select field to invoke a behavior in Chosen.

        Example:

          // tell Chosen that a select has changed
          $('.my_select_box').trigger('chosen:updated');
        
        EventDescription
        chosen:updated This event should be triggered whenever Chosen’s underlying select element changes (such as a change in selected options).
        chosen:activate This is the equivalant of focusing a standard HTML select field. When activated, Chosen will capture keypress events as if you had clicked the field directly.
        chosen:open This event activates Chosen and also displays the search results.
        chosen:close This event deactivates Chosen and hides the search results.
        chosen-1.8.7/publish-package.sh000077500000000000000000000021221330654661200164070ustar00rootroot00000000000000#!/bin/sh set -e CURRENT_BRANCH=`git name-rev --name-only HEAD` if [ $CURRENT_BRANCH != 'master' ] ; then echo "Build not on master. Skipped chosen-package release" exit 0 fi CHOSEN_VERSION=`git tag --sort=v:refname | tail -1` GITHUB_URL=https://pfiller:${GH_TOKEN}@github.com/harvesthq/chosen-package.git git clone $GITHUB_URL rm -rf chosen-package/* cp README.md public/*.json public/*.png public/*.js public/*.css public/LICENSE* chosen-package/ cp package-travis.yml chosen-package/.travis.yml cd chosen-package git config user.email "chosen@getharvest.com" git config user.name "chosen-package" LATEST_VERSION=`git tag --sort=v:refname | tail -1` git remote set-url origin $GITHUB_URL git add -A git commit -m "Chosen build to chosen-package" if [ "$LATEST_VERSION" = "$CHOSEN_VERSION" ] ; then echo "No Chosen version change. Skipped tagging" else echo "Chosen version changed. Tagging version ${CHOSEN_VERSION}\n" git tag -a "${CHOSEN_VERSION}" -m "Version ${CHOSEN_VERSION}" fi git push origin master git push origin --tags echo "Chosen published to harvesthq/chosen-package" chosen-1.8.7/sass/000077500000000000000000000000001330654661200137655ustar00rootroot00000000000000chosen-1.8.7/sass/chosen.scss000066400000000000000000000226601330654661200161470ustar00rootroot00000000000000$chosen-sprite: url('chosen-sprite.png') !default; $chosen-sprite-retina: url('chosen-sprite@2x.png') !default; /* @group Base */ .chosen-container { position: relative; display: inline-block; vertical-align: middle; font-size: 13px; user-select: none; * { box-sizing: border-box; } .chosen-drop { position: absolute; top: 100%; z-index: 1010; width: 100%; border: 1px solid #aaa; border-top: 0; background: #fff; box-shadow: 0 4px 5px rgba(#000,.15); clip: rect(0,0,0,0); clip-path: inset(100% 100%); } &.chosen-with-drop .chosen-drop { clip: auto; clip-path: none; } a{ cursor: pointer; } .search-choice, .chosen-single{ .group-name{ margin-right: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: normal; color: #999999; &:after { content: ":"; padding-left: 2px; vertical-align: top; } } } } /* @end */ /* @group Single Chosen */ .chosen-container-single{ .chosen-single { position: relative; display: block; overflow: hidden; padding: 0 0 0 8px; height: 25px; border: 1px solid #aaa; border-radius: 5px; background-color: #fff; background: linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%); background-clip: padding-box; box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(#000,.1); color: #444; text-decoration: none; white-space: nowrap; line-height: 24px; } .chosen-default { color: #999; } .chosen-single span { display: block; overflow: hidden; margin-right: 26px; text-overflow: ellipsis; white-space: nowrap; } .chosen-single-with-deselect span { margin-right: 38px; } .chosen-single abbr { position: absolute; top: 6px; right: 26px; display: block; width: 12px; height: 12px; background: $chosen-sprite -42px 1px no-repeat; font-size: 1px; &:hover { background-position: -42px -10px; } } &.chosen-disabled .chosen-single abbr:hover { background-position: -42px -10px; } .chosen-single div { position: absolute; top: 0; right: 0; display: block; width: 18px; height: 100%; b { display: block; width: 100%; height: 100%; background: $chosen-sprite no-repeat 0px 2px; } } .chosen-search { position: relative; z-index: 1010; margin: 0; padding: 3px 4px; white-space: nowrap; input[type="text"] { margin: 1px 0; padding: 4px 20px 4px 5px; width: 100%; height: auto; outline: 0; border: 1px solid #aaa; background: $chosen-sprite no-repeat 100% -20px; font-size: 1em; font-family: sans-serif; line-height: normal; border-radius: 0; } } .chosen-drop { margin-top: -1px; border-radius: 0 0 4px 4px; background-clip: padding-box; } &.chosen-container-single-nosearch .chosen-search { position: absolute; clip: rect(0,0,0,0); clip-path: inset(100% 100%); } } /* @end */ /* @group Results */ .chosen-container .chosen-results { color: #444; position: relative; overflow-x: hidden; overflow-y: auto; margin: 0 4px 4px 0; padding: 0 0 0 4px; max-height: 240px; -webkit-overflow-scrolling: touch; li { display: none; margin: 0; padding: 5px 6px; list-style: none; line-height: 15px; word-wrap: break-word; -webkit-touch-callout: none; &.active-result { display: list-item; cursor: pointer; } &.disabled-result { display: list-item; color: #ccc; cursor: default; } &.highlighted { background-color: #3875d7; background-image: linear-gradient(#3875d7 20%, #2a62bc 90%); color: #fff; } &.no-results { color: #777; display: list-item; background: #f4f4f4; } &.group-result { display: list-item; font-weight: bold; cursor: default; } &.group-option { padding-left: 15px; } em { font-style: normal; text-decoration: underline; } } } /* @end */ /* @group Multi Chosen */ .chosen-container-multi{ .chosen-choices { position: relative; overflow: hidden; margin: 0; padding: 0 5px; width: 100%; height: auto; border: 1px solid #aaa; background-color: #fff; background-image: linear-gradient(#eee 1%, #fff 15%); cursor: text; } .chosen-choices li { float: left; list-style: none; &.search-field { margin: 0; padding: 0; white-space: nowrap; input[type="text"] { margin: 1px 0; padding: 0; height: 25px; outline: 0; border: 0 !important; background: transparent !important; box-shadow: none; color: #999; font-size: 100%; font-family: sans-serif; line-height: normal; border-radius: 0; width: 25px; } } &.search-choice { position: relative; margin: 3px 5px 3px 0; padding: 3px 20px 3px 5px; border: 1px solid #aaa; max-width: 100%; border-radius: 3px; background-color: #eeeeee; background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); background-size: 100% 19px; background-repeat: repeat-x; background-clip: padding-box; box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(#000,.05); color: #333; line-height: 13px; cursor: default; span { word-wrap: break-word; } .search-choice-close { position: absolute; top: 4px; right: 3px; display: block; width: 12px; height: 12px; background: $chosen-sprite -42px 1px no-repeat; font-size: 1px; &:hover { background-position: -42px -10px; } } } &.search-choice-disabled { padding-right: 5px; border: 1px solid #ccc; background-color: #e4e4e4; background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); color: #666; } &.search-choice-focus { background: #d4d4d4; .search-choice-close { background-position: -42px -10px; } } } .chosen-results { margin: 0; padding: 0; } .chosen-drop .result-selected { display: list-item; color: #ccc; cursor: default; } } /* @end */ /* @group Active */ .chosen-container-active{ .chosen-single { border: 1px solid #5897fb; box-shadow: 0 0 5px rgba(#000,.3); } &.chosen-with-drop{ .chosen-single { border: 1px solid #aaa; -moz-border-radius-bottomright: 0; border-bottom-right-radius: 0; -moz-border-radius-bottomleft: 0; border-bottom-left-radius: 0; background-image: linear-gradient(#eee 20%, #fff 80%); box-shadow: 0 1px 0 #fff inset; } .chosen-single div { border-left: none; background: transparent; b { background-position: -18px 2px; } } } .chosen-choices { border: 1px solid #5897fb; box-shadow: 0 0 5px rgba(#000,.3); li.search-field input[type="text"] { color: #222 !important; } } } /* @end */ /* @group Disabled Support */ .chosen-disabled { opacity: 0.5 !important; cursor: default; .chosen-single { cursor: default; } .chosen-choices .search-choice .search-choice-close { cursor: default; } } /* @end */ /* @group Right to Left */ .chosen-rtl { text-align: right; .chosen-single { overflow: visible; padding: 0 8px 0 0; } .chosen-single span { margin-right: 0; margin-left: 26px; direction: rtl; } .chosen-single-with-deselect span { margin-left: 38px; } .chosen-single div { right: auto; left: 3px; } .chosen-single abbr { right: auto; left: 26px; } .chosen-choices li { float: right; &.search-field input[type="text"] { direction: rtl; } &.search-choice { margin: 3px 5px 3px 0; padding: 3px 5px 3px 19px; .search-choice-close { right: auto; left: 4px; } } } &.chosen-container-single .chosen-results { margin: 0 0 4px 4px; padding: 0 4px 0 0; } .chosen-results li.group-option { padding-right: 15px; padding-left: 0; } &.chosen-container-active.chosen-with-drop .chosen-single div { border-right: none; } .chosen-search input[type="text"] { padding: 4px 5px 4px 20px; background: $chosen-sprite no-repeat -30px -20px; direction: rtl; } &.chosen-container-single{ .chosen-single div b { background-position: 6px 2px; } &.chosen-with-drop{ .chosen-single div b { background-position: -12px 2px; } } } } /* @end */ /* @group Retina compatibility */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) { .chosen-rtl .chosen-search input[type="text"], .chosen-container-single .chosen-single abbr, .chosen-container-single .chosen-single div b, .chosen-container-single .chosen-search input[type="text"], .chosen-container-multi .chosen-choices .search-choice .search-choice-close, .chosen-container .chosen-results-scroll-down span, .chosen-container .chosen-results-scroll-up span { background-image: $chosen-sprite-retina !important; background-size: 52px 37px !important; background-repeat: no-repeat !important; } } /* @end */ chosen-1.8.7/spec/000077500000000000000000000000001330654661200137465ustar00rootroot00000000000000chosen-1.8.7/spec/jquery/000077500000000000000000000000001330654661200152655ustar00rootroot00000000000000chosen-1.8.7/spec/jquery/basic.spec.coffee000066400000000000000000000060011330654661200204450ustar00rootroot00000000000000describe "Basic setup", -> it "should add chosen to jQuery object", -> expect(jQuery.fn.chosen).toBeDefined() it "should create very basic chosen", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") expect(select.length).toBe(1) select.chosen() # very simple check that the necessary elements have been created ["container", "container-single", "single", "default"].forEach (clazz)-> el = div.find(".chosen-#{clazz}") expect(el.length).toBe(1) # test a few interactions expect(select.val()).toBe "" container = div.find(".chosen-container") container.trigger("mousedown") # open the drop expect(container.hasClass("chosen-container-active")).toBe true #select an item container.find(".active-result").last().trigger("mouseup") expect(select.val()).toBe "Afghanistan" describe "data-placeholder", -> it "should render", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") expect(select.length).toBe(1) select.chosen() placeholder = div.find(".chosen-single > span") expect(placeholder.text()).toBe("Choose a Country...") it "should render with special characters", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") expect(select.length).toBe(1) select.chosen() placeholder = div.find(".chosen-single > span") expect(placeholder.text()).toBe("") describe "disabled fieldset", -> it "should render as disabled", -> tmpl = "
        " div = $("
        ").html(tmpl) select = div.find("select") expect(select.length).toBe(1) select.chosen() container = div.find(".chosen-container") expect(container.hasClass("chosen-disabled")).toBe true chosen-1.8.7/spec/jquery/bugfixes.spec.coffee000066400000000000000000000017361330654661200212120ustar00rootroot00000000000000describe "Bugfixes", -> it "https://github.com/harvesthq/chosen/issues/2996 - XSS Vulnerability with `include_group_label_in_selected: true`", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") select.chosen include_group_label_in_selected: true # open the drop container = div.find(".chosen-container") container.trigger("mousedown") xss_option = container.find(".active-result").last() expect(xss_option.html()).toBe "an xss option" # trigger the selection of the xss option xss_option.trigger("mouseup") # make sure the script tags are escaped correctly label_html = container.find("a.chosen-single").html() expect(label_html).toContain('</script><script>console.log(1)</script>') chosen-1.8.7/spec/jquery/events.spec.coffee000066400000000000000000000021601330654661200206720ustar00rootroot00000000000000describe "Events", -> it "chosen should fire the right events", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") expect(select.length).toBe(1) select.chosen() # very simple check that the necessary elements have been created ["container", "container-single", "single", "default"].forEach (clazz)-> el = div.find(".chosen-#{clazz}") expect(el.length).toBe(1) # test a few interactions event_sequence = [] div.on 'input change', (evt) -> event_sequence.push evt.type container = div.find(".chosen-container") container.trigger("mousedown") # open the drop expect(container.hasClass("chosen-container-active")).toBe true #select an item container.find(".active-result").last().trigger("mouseup") expect(event_sequence).toEqual ['input', 'change'] chosen-1.8.7/spec/jquery/max_shown_results.spec.coffee000066400000000000000000000045071330654661200231610ustar00rootroot00000000000000describe "search", -> it "should display only matching items when entering a search term", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") select.chosen() container = div.find(".chosen-container") container.trigger("mousedown") # open the drop # Expect all results to be shown results = div.find(".active-result") expect(results.length).toBe(3) # Enter some text in the search field. search_field = div.find(".chosen-search input").first() search_field.val("Afgh") search_field.trigger('keyup') # Expect to only have one result: 'Afghanistan'. results = div.find(".active-result") expect(results.length).toBe(1) expect(results.first().text()).toBe "Afghanistan" it "should only show max_shown_results items in results", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") select.chosen({max_shown_results: 1 }) container = div.find(".chosen-container") container.trigger("mousedown") # open the drop results = div.find(".active-result") expect(results.length).toBe(1) # Enter some text in the search field. search_field = div.find(".chosen-search input").first() search_field.val("United") search_field.trigger("keyup") # Showing only one result: the one that occurs first. results = div.find(".active-result") expect(results.length).toBe(1) expect(results.first().text()).toBe "United States" # Showing still only one result, but not the first one. search_field.val("United Ki") search_field.trigger("keyup") results = div.find(".active-result") expect(results.length).toBe(1) expect(results.first().text()).toBe "United Kingdom" chosen-1.8.7/spec/jquery/searching.spec.coffee000066400000000000000000000324131330654661200213350ustar00rootroot00000000000000describe "Searching", -> it "should not match the actual text of HTML entities", -> tmpl = " " div = $("
        ").html(tmpl) select = div.find("select") select.chosen({search_contains: true}) container = div.find(".chosen-container") container.trigger("mousedown") # open the drop # Both options should be active results = div.find(".active-result") expect(results.length).toBe(2) # Search for the html entity by name search_field = div.find(".chosen-search input").first() search_field.val("mp") search_field.trigger("keyup") results = div.find(".active-result") expect(results.length).toBe(0) it "renders options correctly when they contain characters that require HTML encoding", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".active-result").length).toBe(1) expect(div.find(".active-result").first().html()).toBe("A & B") search_field = div.find(".chosen-search-input").first() search_field.val("A") search_field.trigger("keyup") expect(div.find(".active-result").length).toBe(1) expect(div.find(".active-result").first().html()).toBe("A & B") it "renders optgroups correctly when they contain html encoded tags", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".group-result").length).toBe(1) expect(div.find(".group-result").first().html()).toBe("A <b>hi</b> B") it "renders optgroups correctly when they contain characters that require HTML encoding when searching", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".group-result").length).toBe(1) expect(div.find(".group-result").first().html()).toBe("A & B") search_field = div.find(".chosen-search-input").first() search_field.val("A") search_field.trigger("keyup") expect(div.find(".group-result").length).toBe(1) expect(div.find(".group-result").first().html()).toBe("A & B") it "renders no results message correctly when it contains characters that require HTML encoding", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop search_field = div.find(".chosen-search-input").first() search_field.val("&") search_field.trigger("keyup") expect(div.find(".no-results").length).toBe(1) expect(div.find(".no-results").first().html().trim()).toBe("No results match &") search_field.val("&") search_field.trigger("keyup") expect(div.find(".no-results").length).toBe(1) expect(div.find(".no-results").first().html().trim()).toBe("No results match &amp;") it "matches in non-ascii languages like Chinese when selecting a single item", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".active-result").length).toBe(12) search_field = div.find(".chosen-search-input").first() search_field.val("一") search_field.trigger("keyup") expect(div.find(".active-result").length).toBe(1) expect(div.find(".active-result")[0].innerHTML).toBe("") it "matches in non-ascii languages like Chinese when selecting a single item with search_contains", -> div = $("
        ").html(""" """) div.find("select").chosen({search_contains: true}) div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".active-result").length).toBe(12) search_field = div.find(".chosen-search-input").first() search_field.val("一") search_field.trigger("keyup") expect(div.find(".active-result").length).toBe(2) expect(div.find(".active-result")[0].innerHTML).toBe("") expect(div.find(".active-result")[1].innerHTML).toBe("十") it "matches in non-ascii languages like Chinese when selecting multiple items", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".active-result").length).toBe(12) search_field = div.find(".chosen-search-input") search_field.val("一") search_field.trigger("keyup") expect(div.find(".active-result").length).toBe(1) expect(div.find(".active-result")[0].innerHTML).toBe("") it "matches in non-ascii languages like Chinese when selecting multiple items with search_contains", -> div = $("
        ").html(""" """) div.find("select").chosen({search_contains: true}) div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".active-result").length).toBe(12) search_field = div.find(".chosen-search-input") search_field.val("一") search_field.trigger("keyup") expect(div.find(".active-result").length).toBe(2) expect(div.find(".active-result")[0].innerHTML).toBe("") expect(div.find(".active-result")[1].innerHTML).toBe("十") it "highlights results correctly when multiple words are present", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop expect(div.find(".active-result").length).toBe(1) search_field = div.find(".chosen-search-input") search_field.val("h") search_field.trigger("keyup") expect(div.find(".active-result").length).toBe(1) expect(div.find(".active-result")[0].innerHTML).toBe("oh hello") describe "respects word boundaries when not using search_contains", -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop search_field = div.find(".chosen-search-input") div.find("option").each () -> boundary_thing = this.value.slice(1) it "correctly finds words that start after a(n) #{boundary_thing}", -> search_field.val(boundary_thing) search_field.trigger("keyup") expect(div.find(".active-result").length).toBe(1) expect(div.find(".active-result")[0].innerText.slice(1)).toBe(boundary_thing) it "does not clear search text or highlight first suggestion when holding ctrl/cmd and selecting multiple items", () -> div = $("
        ").html(""" """) div.find("select").chosen() div.find(".chosen-container").trigger("mousedown") # open the drop search_field = div.find(".chosen-search-input") search_field.val("s").trigger("keyup") results = div.find(".chosen-results") first_result = results.find("li:nth-of-type(1)") second_result = results.find("li:nth-of-type(2)") expect(first_result.prop("class")).toContain("highlighted") mouseup_with_meta = $.Event("mouseup") mouseup_with_meta.metaKey = true second_result.mouseover().trigger(mouseup_with_meta) expect(div.find(".search-choice").length).toBe(1) expect(search_field.val()).toBe("s") expect(first_result.prop("class")).not.toContain("highlighted") third_result = results.find("li:nth-of-type(3)") mouseup_with_ctrl = $.Event("mouseup") mouseup_with_ctrl.ctrlKey = true third_result.mouseover().trigger(mouseup_with_ctrl) expect(div.find(".search-choice").length).toBe(2) expect(search_field.val()).toBe("s") expect(first_result.prop("class")).not.toContain("highlighted") it "clears search text and highlights first suggestion without ctrl/cmd and selecting multiple items without hide_results_on_select", () -> div = $("
        ").html(""" """) div.find("select").chosen(hide_results_on_select: false) div.find(".chosen-container").trigger("mousedown") # open the drop search_field = div.find(".chosen-search-input") search_field.val("s").trigger("keyup") results = div.find(".chosen-results") first_result = results.find("li:nth-of-type(1)") second_result = results.find("li:nth-of-type(2)") expect(first_result.prop("class")).toContain("highlighted") second_result.mouseover().mouseup() expect(div.find(".search-choice").length).toBe(1) expect(search_field.val()).toBe("") expect(results.find("li:nth-of-type(1)").prop("class")).toContain("highlighted") chosen-1.8.7/spec/proto/000077500000000000000000000000001330654661200151115ustar00rootroot00000000000000chosen-1.8.7/spec/proto/basic.spec.coffee000066400000000000000000000064141330654661200203010ustar00rootroot00000000000000describe "Basic setup", -> it "should add expose a Chosen global", -> expect(Chosen).toBeDefined() it "should create very basic chosen", -> tmpl = " " div = new Element("div") document.body.insert(div) div.update(tmpl) select = div.down("select") expect(select).toBeDefined() new Chosen(select) # very simple check that the necessary elements have been created ["container", "container-single", "single", "default"].forEach (clazz)-> el = div.down(".chosen-#{clazz}") expect(el).toBeDefined() # test a few interactions expect($F(select)).toBe "" container = div.down(".chosen-container") simulant.fire(container, "mousedown") # open the drop expect(container.hasClassName("chosen-container-active")).toBe true #select an item result = container.select(".active-result").last() simulant.fire(result, "mouseup") expect($F(select)).toBe "Afghanistan" div.remove() describe "data-placeholder", -> it "should render", -> tmpl = " " div = new Element("div") document.body.insert(div) div.update(tmpl) select = div.down("select") expect(select).toBeDefined() new Chosen(select) placeholder = div.down(".chosen-single > span") expect(placeholder.innerText).toBe("Choose a Country...") it "should render with special characters", -> tmpl = " " div = new Element("div") document.body.insert(div) div.update(tmpl) select = div.down("select") expect(select).toBeDefined() new Chosen(select) placeholder = div.down(".chosen-single > span") expect(placeholder.innerText).toBe("") describe "disabled fieldset", -> it "should render as disabled", -> tmpl = "
        " div = new Element("div") document.body.insert(div) div.update(tmpl) select = div.down("select") expect(select).toBeDefined() new Chosen(select) container = div.down(".chosen-container") expect(container.hasClassName("chosen-disabled")).toBe true chosen-1.8.7/spec/proto/bugfixes.spec.coffee000066400000000000000000000021061330654661200210260ustar00rootroot00000000000000describe "Bugfixes", -> it "https://github.com/harvesthq/chosen/issues/2996 - XSS Vulnerability with `include_group_label_in_selected: true`", -> tmpl = " " div = new Element("div") document.body.insert(div) div.innerHTML = tmpl select = div.down("select") new Chosen select, include_group_label_in_selected: true # open the drop container = div.down(".chosen-container") simulant.fire(container, "mousedown") # open the drop xss_option = container.select(".active-result").last() expect(xss_option.innerHTML).toBe "an xss option" # trigger the selection of the xss option simulant.fire(xss_option, "mouseup") # make sure the script tags are escaped correctly label_html = container.down("a.chosen-single").innerHTML expect(label_html).toContain('</script><script>console.log(1)</script>') chosen-1.8.7/spec/proto/events.spec.coffee000066400000000000000000000020621330654661200205170ustar00rootroot00000000000000describe "Events", -> it "chosen should fire the right events", -> tmpl = " " div = new Element("div") document.body.insert(div) div.update(tmpl) select = div.down("select") expect(select).toBeDefined() new Chosen(select) event_sequence = [] document.addEventListener 'input', -> event_sequence.push 'input' document.addEventListener 'change', -> event_sequence.push 'change' container = div.down(".chosen-container") simulant.fire(container, "mousedown") # open the drop expect(container.hasClassName("chosen-container-active")).toBe true #select an item result = container.select(".active-result").last() simulant.fire(result, "mouseup") expect(event_sequence).toEqual ['input', 'change'] div.remove() chosen-1.8.7/spec/proto/max_shown_results.spec.coffee000066400000000000000000000046401330654661200230030ustar00rootroot00000000000000describe 'search', -> it 'should display only matching items when entering a search term', -> tmpl = ''' ''' div = new Element('div') document.body.insert(div) div.update(tmpl) select = div.down('select') new Chosen(select) container = div.down('.chosen-container') simulant.fire(container, 'mousedown') # open the drop # Expect all results to be shown results = div.select('.active-result') expect(results.length).toBe(3) # Enter some text in the search field. search_field = div.down('.chosen-search input') search_field.value = 'Afgh' simulant.fire(search_field, 'keyup') # Expect to only have one result: 'Afghanistan'. results = div.select('.active-result') expect(results.length).toBe(1) expect(results[0].innerText).toBe 'Afghanistan' it 'should only show max_shown_results items in results', -> tmpl = ''' ''' div = new Element('div') document.body.insert(div) div.update(tmpl) select = div.down('select') new Chosen(select, { max_shown_results: 1 }) container = div.down('.chosen-container') simulant.fire(container, 'mousedown') # open the drop results = div.select('.active-result') expect(results.length).toBe(1) # Enter some text in the search field. search_field = div.down('.chosen-search input') search_field.value = 'United' simulant.fire(search_field, 'keyup') # Showing only one result: the one that occurs first. results = div.select('.active-result') expect(results.length).toBe(1) expect(results[0].innerText).toBe 'United States' # Showing still only one result, but not the first one. search_field.value = 'United Ki' simulant.fire(search_field, 'keyup') results = div.select('.active-result') expect(results.length).toBe(1) expect(results[0].innerText).toBe 'United Kingdom' chosen-1.8.7/spec/proto/searching.spec.coffee000066400000000000000000000247421330654661200211670ustar00rootroot00000000000000describe "Searching", -> it "should not match the actual text of HTML entities", -> tmpl = " " div = new Element('div') document.body.insert(div) div.update(tmpl) select = div.down('select') new Chosen(select, {search_contains: true}) container = div.down('.chosen-container') simulant.fire(container, 'mousedown') # open the drop # Both options should be active results = div.select('.active-result') expect(results.length).toBe(2) # Search for the html entity by name search_field = div.down(".chosen-search input") search_field.value = "mp" simulant.fire(search_field, 'keyup') results = div.select(".active-result") expect(results.length).toBe(0) it "renders options correctly when they contain characters that require HTML encoding", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".active-result").length).toBe(1) expect(div.down(".active-result").innerHTML).toBe("A & B") search_field = div.down(".chosen-search-input") search_field.value = "A" simulant.fire(search_field, "keyup") expect(div.select(".active-result").length).toBe(1) expect(div.down(".active-result").innerHTML).toBe("A & B") it "renders optgroups correctly when they contain characters that require HTML encoding", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".group-result").length).toBe(1) expect(div.down(".group-result").innerHTML).toBe("A <b>hi</b> B") it "renders optgroups correctly when they contain characters that require HTML encoding when searching", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".group-result").length).toBe(1) expect(div.down(".group-result").innerHTML).toBe("A & B") search_field = div.down(".chosen-search-input") search_field.value = "A" simulant.fire(search_field, "keyup") expect(div.select(".group-result").length).toBe(1) expect(div.down(".group-result").innerHTML).toBe("A & B") it "renders no results message correctly when it contains characters that require HTML encoding", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop search_field = div.down(".chosen-search-input") search_field.value = "&" simulant.fire(search_field, "keyup") expect(div.select(".no-results").length).toBe(1) expect(div.down(".no-results").innerHTML.trim()).toBe("No results match &") search_field.value = "&" simulant.fire(search_field, "keyup") expect(div.select(".no-results").length).toBe(1) expect(div.down(".no-results").innerHTML.trim()).toBe("No results match &amp;") it "matches in non-ascii languages like Chinese when selecting a single item", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".active-result").length).toBe(12) search_field = div.down(".chosen-search-input") search_field.value = "一" simulant.fire(search_field, "keyup") expect(div.select(".active-result").length).toBe(1) expect(div.select(".active-result")[0].innerHTML).toBe("") it "matches in non-ascii languages like Chinese when selecting a single item with search_contains", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select"), {search_contains: true}) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".active-result").length).toBe(12) search_field = div.down(".chosen-search-input") search_field.value = "一" simulant.fire(search_field, "keyup") expect(div.select(".active-result").length).toBe(2) expect(div.select(".active-result")[0].innerHTML).toBe("") expect(div.select(".active-result")[1].innerHTML).toBe("十") it "matches in non-ascii languages like Chinese when selecting multiple items", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".active-result").length).toBe(12) search_field = div.down(".chosen-search-input") search_field.value = "一" simulant.fire(search_field, "keyup") expect(div.select(".active-result").length).toBe(1) expect(div.select(".active-result")[0].innerHTML).toBe("") it "matches in non-ascii languages like Chinese when selecting multiple items with search_contains", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select"), {search_contains: true}) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".active-result").length).toBe(12) search_field = div.down(".chosen-search-input") search_field.value = "一" simulant.fire(search_field, "keyup") expect(div.select(".active-result").length).toBe(2) expect(div.select(".active-result")[0].innerHTML).toBe("") expect(div.select(".active-result")[1].innerHTML).toBe("十") it "highlights results correctly when multiple words are present", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop expect(div.select(".active-result").length).toBe(1) search_field = div.down(".chosen-search-input") search_field.value = "h" simulant.fire(search_field, "keyup") expect(div.select(".active-result").length).toBe(1) expect(div.select(".active-result")[0].innerHTML).toBe("oh hello") describe "respects word boundaries when not using search_contains", -> div = new Element("div") div.update(""" """) new Chosen(div.down("select")) simulant.fire(div.down(".chosen-container"), "mousedown") # open the drop search_field = div.down(".chosen-search-input") div.select("option").forEach (option) -> boundary_thing = option.value.slice(1) it "correctly finds words that start after a(n) #{boundary_thing}", -> search_field.value = boundary_thing simulant.fire(search_field, "keyup") expect(div.select(".active-result").length).toBe(1) expect(div.select(".active-result")[0].innerText.slice(1)).toBe(boundary_thing) chosen-1.8.7/tasks/000077500000000000000000000000001330654661200141415ustar00rootroot00000000000000chosen-1.8.7/tasks/package.coffee000066400000000000000000000035401330654661200167070ustar00rootroot00000000000000### This file contains tasks only necessary for packaging and publishing Chosen ### module.exports = (grunt) -> grunt.config 'dom_munger', latest_version: src: ['public/index.html', 'public/index.proto.html', 'public/options.html'] options: callback: ($) -> $('#latest-version').text(grunt.config.get('version_tag')) grunt.config 'zip', chosen: cwd: 'public/' src: ['public/**/*'] dest: 'chosen_<%= version_tag %>.zip' grunt.config 'gh-pages', options: base: 'public', message: 'Updated to new Chosen version <%= pkg.version %>' src: ['**'] grunt.registerTask 'package-npm', 'Generate npm manifest', () -> pkg = grunt.config.get('pkg') extra = pkg._extra json = name: "#{pkg.name}-js" version: pkg.version description: pkg.description keywords: pkg.keywords homepage: pkg.homepage bugs: pkg.bugs license: pkg.license contributors: pkg.contributors dependencies: pkg.dependencies files: extra.files main: extra.main[0] repository: pkg.repository grunt.file.write('public/package.json', JSON.stringify(json, null, 2) + "\n") grunt.registerTask 'package-bower', 'Generate bower manifest', () -> pkg = grunt.config.get('pkg') extra = pkg._extra json = name: pkg.name description: pkg.description keywords: pkg.keywords homepage: pkg.homepage license: extra.license.url authors: pkg.contributors dependencies: pkg.dependencies main: extra.main ignore: [] repository: pkg.repository grunt.file.write('public/bower.json', JSON.stringify(json, null, 2) + "\n") grunt.registerTask 'prep-release', ['build', 'dom_munger:latest_version', 'zip:chosen', 'package-npm', 'package-bower'] grunt.registerTask 'publish-release', ['gh-pages']