├── .github └── ISSUE_TEMPLATE.md ├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Gruntfile.js ├── LICENSE ├── README.md ├── bower.json ├── composer.json ├── dist ├── css │ ├── bootstrap-select.css │ ├── bootstrap-select.css.map │ └── bootstrap-select.min.css └── js │ ├── bootstrap-select.js │ ├── bootstrap-select.min.js │ └── i18n │ ├── defaults-ar_AR.js │ ├── defaults-ar_AR.min.js │ ├── defaults-bg_BG.js │ ├── defaults-bg_BG.min.js │ ├── defaults-cro_CRO.js │ ├── defaults-cro_CRO.min.js │ ├── defaults-cs_CZ.js │ ├── defaults-cs_CZ.min.js │ ├── defaults-da_DK.js │ ├── defaults-da_DK.min.js │ ├── defaults-de_DE.js │ ├── defaults-de_DE.min.js │ ├── defaults-en_US.js │ ├── defaults-en_US.min.js │ ├── defaults-es_CL.js │ ├── defaults-es_CL.min.js │ ├── defaults-es_ES.js │ ├── defaults-es_ES.min.js │ ├── defaults-et_EE.js │ ├── defaults-eu.js │ ├── defaults-eu.min.js │ ├── defaults-fa_IR.js │ ├── defaults-fa_IR.min.js │ ├── defaults-fi_FI.js │ ├── defaults-fi_FI.min.js │ ├── defaults-fr_FR.js │ ├── defaults-fr_FR.min.js │ ├── defaults-hu_HU.js │ ├── defaults-hu_HU.min.js │ ├── defaults-id_ID.js │ ├── defaults-id_ID.min.js │ ├── defaults-it_IT.js │ ├── defaults-it_IT.min.js │ ├── defaults-ko_KR.js │ ├── defaults-ko_KR.min.js │ ├── defaults-lt_LT.js │ ├── defaults-lt_LT.min.js │ ├── defaults-nb_NO.js │ ├── defaults-nb_NO.min.js │ ├── defaults-nl_NL.js │ ├── defaults-nl_NL.min.js │ ├── defaults-pl_PL.js │ ├── defaults-pl_PL.min.js │ ├── defaults-pt_BR.js │ ├── defaults-pt_BR.min.js │ ├── defaults-pt_PT.js │ ├── defaults-pt_PT.min.js │ ├── defaults-ro_RO.js │ ├── defaults-ro_RO.min.js │ ├── defaults-ru_RU.js │ ├── defaults-ru_RU.min.js │ ├── defaults-sk_SK.js │ ├── defaults-sk_SK.min.js │ ├── defaults-sl_SI.js │ ├── defaults-sl_SI.min.js │ ├── defaults-sv_SE.js │ ├── defaults-sv_SE.min.js │ ├── defaults-tr_TR.js │ ├── defaults-tr_TR.min.js │ ├── defaults-ua_UA.js │ ├── defaults-ua_UA.min.js │ ├── defaults-zh_CN.js │ ├── defaults-zh_CN.min.js │ ├── defaults-zh_TW.js │ └── defaults-zh_TW.min.js ├── docs ├── custom_theme │ ├── base.html │ ├── css │ │ └── base.css │ ├── img │ │ └── logos │ │ │ ├── convertizer.png │ │ │ ├── estimateit.png │ │ │ ├── membermeister.png │ │ │ ├── snapappointments.png │ │ │ ├── solveforall.png │ │ │ └── thermofisher.png │ ├── js │ │ └── base.js │ ├── nav.html │ └── toc.html ├── docs │ ├── css │ │ └── custom.css │ ├── dist │ │ ├── css │ │ │ ├── bootstrap-select.css │ │ │ ├── bootstrap-select.css.map │ │ │ └── bootstrap-select.min.css │ │ └── js │ │ │ ├── bootstrap-select.js │ │ │ ├── bootstrap-select.js.map │ │ │ ├── bootstrap-select.min.js │ │ │ └── i18n │ │ │ ├── defaults-ar_AR.js │ │ │ ├── defaults-ar_AR.min.js │ │ │ ├── defaults-bg_BG.js │ │ │ ├── defaults-bg_BG.min.js │ │ │ ├── defaults-cro_CRO.js │ │ │ ├── defaults-cro_CRO.min.js │ │ │ ├── defaults-cs_CZ.js │ │ │ ├── defaults-cs_CZ.min.js │ │ │ ├── defaults-da_DK.js │ │ │ ├── defaults-da_DK.min.js │ │ │ ├── defaults-de_DE.js │ │ │ ├── defaults-de_DE.min.js │ │ │ ├── defaults-en_US.js │ │ │ ├── defaults-en_US.min.js │ │ │ ├── defaults-es_CL.js │ │ │ ├── defaults-es_CL.min.js │ │ │ ├── defaults-es_ES.js │ │ │ ├── defaults-es_ES.min.js │ │ │ ├── defaults-eu.js │ │ │ ├── defaults-eu.min.js │ │ │ ├── defaults-fa_IR.js │ │ │ ├── defaults-fa_IR.min.js │ │ │ ├── defaults-fi_FI.js │ │ │ ├── defaults-fi_FI.min.js │ │ │ ├── defaults-fr_FR.js │ │ │ ├── defaults-fr_FR.min.js │ │ │ ├── defaults-hu_HU.js │ │ │ ├── defaults-hu_HU.min.js │ │ │ ├── defaults-id_ID.js │ │ │ ├── defaults-id_ID.min.js │ │ │ ├── defaults-it_IT.js │ │ │ ├── defaults-it_IT.min.js │ │ │ ├── defaults-ko_KR.js │ │ │ ├── defaults-ko_KR.min.js │ │ │ ├── defaults-lt_LT.js │ │ │ ├── defaults-lt_LT.min.js │ │ │ ├── defaults-nb_NO.js │ │ │ ├── defaults-nb_NO.min.js │ │ │ ├── defaults-nl_NL.js │ │ │ ├── defaults-nl_NL.min.js │ │ │ ├── defaults-pl_PL.js │ │ │ ├── defaults-pl_PL.min.js │ │ │ ├── defaults-pt_BR.js │ │ │ ├── defaults-pt_BR.min.js │ │ │ ├── defaults-pt_PT.js │ │ │ ├── defaults-pt_PT.min.js │ │ │ ├── defaults-ro_RO.js │ │ │ ├── defaults-ro_RO.min.js │ │ │ ├── defaults-ru_RU.js │ │ │ ├── defaults-ru_RU.min.js │ │ │ ├── defaults-sk_SK.js │ │ │ ├── defaults-sk_SK.min.js │ │ │ ├── defaults-sl_SI.js │ │ │ ├── defaults-sl_SI.min.js │ │ │ ├── defaults-sv_SE.js │ │ │ ├── defaults-sv_SE.min.js │ │ │ ├── defaults-tr_TR.js │ │ │ ├── defaults-tr_TR.min.js │ │ │ ├── defaults-ua_UA.js │ │ │ ├── defaults-ua_UA.min.js │ │ │ ├── defaults-zh_CN.js │ │ │ ├── defaults-zh_CN.min.js │ │ │ ├── defaults-zh_TW.js │ │ │ └── defaults-zh_TW.min.js │ ├── examples.md │ ├── index.md │ ├── methods.md │ ├── options.md │ └── playground │ │ ├── index.html │ │ ├── plnkrOpener.js │ │ └── test.html └── mkdocs.yml ├── less ├── bootstrap-select.less └── variables.less ├── nuget ├── MyGet.ps1 └── bootstrap-select.nuspec ├── package.json ├── sass ├── bootstrap-select.scss └── variables.scss └── test.html /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Before posting, please see [guidelines for contributing](https://github.com/silviomoreto/bootstrap-select/blob/master/CONTRIBUTING.md). If you're submitting a bug report, see below. 2 | 3 | ## Bug reports 4 | 5 | A bug is a _demonstrable problem_ that is caused by the code in the repository. 6 | Good bug reports are extremely helpful - thank you! 7 | 8 | Guidelines for bug reports: 9 | 10 | 1. **Use the GitHub issue search.** Check if the issue has already been 11 | reported. 12 | 13 | 2. **Check if the issue has been fixed.** Try to reproduce it using the 14 | latest `master` or development branch in the repository. 15 | 16 | 3. **Provide environment details.** Provide your operating system, browser(s), 17 | jQuery version, Bootstrap version, and bootstrap-select version. 18 | 19 | 4. **Create an isolated and reproducible test case.** Create a [reduced test 20 | case](http://css-tricks.com/6263-reduced-test-cases/). 21 | 22 | 5. **Include a live example.** Use [this Plunker debugging template](http://silviomoreto.github.io/bootstrap-select/playground/) to share your isolated test cases. You can also make use of [jsFiddle](http://jsfiddle.net/) or [jsBin](http://jsbin.com/). 23 | 24 | A good bug report shouldn't leave others needing to chase you up for more 25 | information. Please try to be as detailed as possible in your report. What is 26 | your environment? What steps will reproduce the issue? What browser(s) and OS 27 | experience the problem? What would you expect to be the outcome? All these 28 | details will help people to fix any potential bugs. 29 | 30 | Example: 31 | 32 | > Short and descriptive example bug report title 33 | > 34 | > A summary of the issue and the browser/OS environment in which it occurs. If 35 | > suitable, include the steps required to reproduce the bug. 36 | > 37 | > 1. This is the first step 38 | > 2. This is the second step 39 | > 3. Further steps, etc. 40 | > 41 | > `` - a link to the reduced test case 42 | > 43 | > Any other information you want to share that is relevant to the issue being 44 | > reported. This might include the lines of code that you have identified as 45 | > causing the bug, and potential solutions (and your opinions on their 46 | > merits). 47 | 48 | ## Erase the above text and being typing. Thanks! -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS or Editor folders 2 | .DS_Store 3 | .idea 4 | 5 | # Folders to ignore 6 | node_modules 7 | bower_components 8 | .sass-cache 9 | 10 | # Dist zip 11 | bootstrap-select-*.zip 12 | 13 | docs/site 14 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to this project 2 | 3 | Please take a moment to review this document in order to make the contribution 4 | process easy and effective for everyone involved. 5 | 6 | Following these guidelines helps to communicate that you respect the time of 7 | the developers managing and developing this open source project. In return, 8 | they should reciprocate that respect in addressing your issue or assessing 9 | patches and features. 10 | 11 | 12 | ## Using the issue tracker 13 | 14 | The issue tracker is the preferred channel for [bug reports](#bug-reports), 15 | [features requests](#feature-requests) and submitting pull requests, but please 16 | respect the following restrictions: 17 | 18 | * Please **do not** use the issue tracker for personal support requests (use 19 | [Stack Overflow](http://stackoverflow.com) or IRC). 20 | 21 | * Please **do not** derail or troll issues. Keep the discussion on topic and 22 | respect the opinions of others. 23 | 24 | 25 | ## Bug reports 26 | 27 | A bug is a _demonstrable problem_ that is caused by the code in the repository. 28 | Good bug reports are extremely helpful - thank you! 29 | 30 | Guidelines for bug reports: 31 | 32 | 1. **Use the GitHub issue search.** Check if the issue has already been 33 | reported. 34 | 35 | 2. **Check if the issue has been fixed.** Try to reproduce it using the 36 | latest `master` or development branch in the repository. 37 | 38 | 3. **Provide environment details.** Provide your operating system, browser(s), 39 | jQuery version, Bootstrap version, and bootstrap-select version. 40 | 41 | 4. **Create an isolated and reproducible test case.** Create a [reduced test 42 | case](http://css-tricks.com/6263-reduced-test-cases/). 43 | 44 | 5. **Include a live example.** Use [this Plunker debugging template](http://silviomoreto.github.io/bootstrap-select/playground/) to share your isolated test cases. You can also make use of [jsFiddle](http://jsfiddle.net/) or [jsBin](http://jsbin.com/). 45 | 46 | A good bug report shouldn't leave others needing to chase you up for more 47 | information. Please try to be as detailed as possible in your report. What is 48 | your environment? What steps will reproduce the issue? What browser(s) and OS 49 | experience the problem? What would you expect to be the outcome? All these 50 | details will help people to fix any potential bugs. 51 | 52 | Example: 53 | 54 | > Short and descriptive example bug report title 55 | > 56 | > A summary of the issue and the browser/OS environment in which it occurs. If 57 | > suitable, include the steps required to reproduce the bug. 58 | > 59 | > 1. This is the first step 60 | > 2. This is the second step 61 | > 3. Further steps, etc. 62 | > 63 | > `` - a link to the reduced test case 64 | > 65 | > Any other information you want to share that is relevant to the issue being 66 | > reported. This might include the lines of code that you have identified as 67 | > causing the bug, and potential solutions (and your opinions on their 68 | > merits). 69 | 70 | 71 | ## Feature requests 72 | 73 | Feature requests are welcome. But take a moment to find out whether your idea 74 | fits with the scope and aims of the project. It's up to *you* to make a strong 75 | case to convince the project's developers of the merits of this feature. Please 76 | provide as much detail and context as possible. 77 | 78 | ## Pull Request Guidelines 79 | 80 | You must understand that by contributing code to this project, you are granting 81 | the authors (and/or leaders) of the project a non-exclusive license to 82 | re-distribute your code under the current license and possibly re-license the 83 | code as deemed necessary. 84 | 85 | * To instantiate a context or use it, use the variable **that** instead of 86 | **_this**. 87 | * Please check to make sure that there aren't existing pull requests attempting 88 | to address the issue mentioned. We also recommend checking for issues related 89 | to the issue on the tracker, as a team member may be working on the issue in 90 | a branch or fork. 91 | * Non-trivial changes should be discussed in an issue first 92 | * When modifying files, please do not edit the generated or minified files in the dist/ directory. Please edit the original files. 93 | * If possible, add relevant tests to cover the change 94 | * Write a convincing description of your PR and why we should land it 95 | 96 | ## Using Grunt 97 | 98 | We are using node and grunt to build and (in the future) test this project. 99 | This means that you must setup a local development environment: 100 | 101 | 1. Install `node` and `npm` using your preferred method 102 | 2. Install the grunt CLI: `npm install -g grunt-cli` 103 | 3. Install the project's development dependencies: `npm install` 104 | 4. Run the various grunt tasks as needed: 105 | - `grunt`: clean the distribution files and re-build them 106 | - `grunt dist`: build the distribution files 107 | - `grunt clean`: clean the distribution files 108 | - `grunt dist-css`: build the css distribution files 109 | - `grunt dist-js`: build the javascript distribution files 110 | - `grunt watch`: watch for changes in the source files and build the 111 | distribution files as needed 112 | 113 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013-2015 bootstrap-select 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | bootstrap-select 2 | ================ 3 | 4 | [![Latest release](https://img.shields.io/github/release/silviomoreto/bootstrap-select.svg)](https://github.com/silviomoreto/bootstrap-select/releases/latest) 5 | [![Bower](https://img.shields.io/bower/v/bootstrap-select.svg)]() 6 | [![npm](https://img.shields.io/npm/v/bootstrap-select.svg)](https://www.npmjs.com/package/bootstrap-select) 7 | [![NuGet](https://img.shields.io/nuget/v/bootstrap-select.svg)](https://www.nuget.org/packages/bootstrap-select/) 8 | [![CDNJS](https://img.shields.io/cdnjs/v/bootstrap-select.svg)](https://cdnjs.com/libraries/bootstrap-select) 9 | 10 | [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE) 11 | [![Dependency Status](https://david-dm.org/silviomoreto/bootstrap-select.svg)](https://david-dm.org/silviomoreto/bootstrap-select) 12 | [![devDependency Status](https://david-dm.org/silviomoreto/bootstrap-select/dev-status.svg)](https://david-dm.org/silviomoreto/bootstrap-select#info=devDependencies) 13 | 14 | Bootstrap-select is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard select elements. 15 | 16 | bootstrap-select demo 17 | 18 | ## Demo and Documentation 19 | 20 | You can view a live demo and some examples of how to use the various options [here](http://silviomoreto.github.io/bootstrap-select). 21 | 22 | Bootstrap-select's documentation, included in this repo in the root directory, is built with MkDocs and publicly hosted on GitHub Pages at http://silviomoreto.github.io/bootstrap-select. The documentation may also be run locally. 23 | 24 | 25 | ### Running documentation locally 26 | 27 | 1. If necessary, [install MkDocs](http://www.mkdocs.org/#installation). 28 | 3. From the `/bootstrap-select/docs` directory, run `mkdocs serve` in the command line. 29 | 4. Open `http://127.0.0.1:8000/` in your browser, and voilà. 30 | 31 | Learn more about using MkDocs by reading its [documentation](http://www.mkdocs.org/). 32 | 33 | ## Authors 34 | 35 | [Silvio Moreto](https://github.com/silviomoreto), 36 | [Ana Carolina](https://github.com/anacarolinats), 37 | [caseyjhol](https://github.com/caseyjhol), 38 | [Matt Bryson](https://github.com/mattbryson), and 39 | [t0xicCode](https://github.com/t0xicCode). 40 | 41 | ## Usage 42 | 43 | Create your ` 46 | 47 | 48 | 49 | 50 | ``` 51 | 52 | If you use a 1.6.3 or newer, you don't need to do anything else, as the data-api automatically picks up the `s with the selectpicker class 57 | $('.selectpicker').selectpicker(); 58 | ``` 59 | Or 60 | ```js 61 | // To style all ` with the `.selectpicker` class. The data-api will automatically theme these elements. 53 | 54 | ```html 55 | 60 | ``` 61 | 62 | Options can be passed via data attributes or JavaScript. 63 | 64 | ```js 65 | $('.selectpicker').selectpicker({ 66 | style: 'btn-info', 67 | size: 4 68 | }); 69 | ``` 70 | 71 | # Used by 72 | 73 | --- 74 | 75 |
76 |
77 | SnapAppointments 78 |
79 |
80 | Thermo Fisher Scientific Inc. 81 |
82 |
83 | membermeister 84 |
85 |
86 | Solve for All 87 |
88 |
89 | EstiMATEit 90 |
91 |
92 | Convertizer 93 |
94 |
95 | 96 |
Does your organization use bootstrap-select? Open an issue, and include a link and logo, and you'll be added to the list.
97 | 98 | 99 | -------------------------------------------------------------------------------- /docs/docs/playground/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/docs/playground/plnkrOpener.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | function formPostData(url, fields) { 3 | var form = $('
'); 4 | $.each(fields, function(name, value) { 5 | var input = $(''); 6 | input.attr('value', value); 7 | form.append(input); 8 | }); 9 | 10 | $(document).find('body').append(form); 11 | 12 | form[0].submit(function(e) { 13 | e.preventDefault(); 14 | }); 15 | 16 | form.remove(); 17 | } 18 | 19 | function plnkrOpener() { 20 | var ctrl = {}; 21 | 22 | ctrl.example = { 23 | path: ctrl.examplePath, 24 | manifest: undefined, 25 | files: undefined, 26 | name: 'bootstrap-select example' 27 | }; 28 | 29 | ctrl.open = function() { 30 | var postData = { 31 | 'tags[0]': 'jquery', 32 | 'tags[1]': 'bootstrap-select', 33 | 'private': true 34 | }; 35 | 36 | ctrl.example.files = [ 37 | { 38 | name: 'index.html', 39 | url: 'test.html', 40 | content: '' 41 | }, 42 | { 43 | name: 'bootstrap-select.js', 44 | url: 'https://raw.githubusercontent.com/silviomoreto/bootstrap-select/master/dist/js/bootstrap-select.js', 45 | content: '' 46 | }, 47 | { 48 | name: 'bootstrap-select.css', 49 | url: 'https://raw.githubusercontent.com/silviomoreto/bootstrap-select/master/dist/css/bootstrap-select.css', 50 | content: '' 51 | } 52 | ] 53 | 54 | function getData(file) { 55 | return $.ajax({ 56 | method: 'GET', 57 | url: file.url 58 | }) 59 | .then(function(data) { 60 | file.content = data; 61 | postData['files[' + file.name + ']'] = file.content; 62 | }); 63 | } 64 | 65 | var files = []; 66 | 67 | $.each(ctrl.example.files, function(i, file) { 68 | files.push(getData(file)); 69 | }); 70 | 71 | function sendData() { 72 | postData.description = ctrl.example.name; 73 | 74 | formPostData('https://plnkr.co/edit/?p=preview', postData); 75 | }; 76 | 77 | $.when.apply(this, files).done(function() { 78 | sendData(); 79 | }); 80 | }; 81 | 82 | return ctrl.open() 83 | } 84 | 85 | plnkrOpener(); 86 | }); -------------------------------------------------------------------------------- /docs/mkdocs.yml: -------------------------------------------------------------------------------- 1 | site_name: bootstrap-select 2 | site_description: Bootstrap-select is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard select elements. 3 | repo_url: https://github.com/silviomoreto/bootstrap-select 4 | theme: bootstrap 5 | theme_dir: custom_theme 6 | extra_css: 7 | - css/custom.css 8 | - dist/css/bootstrap-select.min.css 9 | extra_javascript: 10 | - dist/js/bootstrap-select.min.js 11 | pages: 12 | - Bootstrap-select: index.md 13 | - Examples: examples.md 14 | - Options: options.md 15 | - Methods: methods.md 16 | extra: 17 | version: 1.12.2 18 | -------------------------------------------------------------------------------- /less/variables.less: -------------------------------------------------------------------------------- 1 | @color-red-error: rgb(185, 74, 72); 2 | @color-grey-arrow: rgba(204, 204, 204, 0.2); 3 | 4 | @width-default: 220px; // 3 960px-grid columns 5 | 6 | @zindex-select-dropdown: 1060; // must be higher than a modal background (1050) 7 | 8 | //** Placeholder text color 9 | @input-color-placeholder: #999; -------------------------------------------------------------------------------- /nuget/MyGet.ps1: -------------------------------------------------------------------------------- 1 | # set env vars usually set by MyGet (enable for local testing) 2 | #$env:SourcesPath = '..' 3 | #$env:NuGet = "./nuget.exe" #https://dist.nuget.org/win-x86-commandline/latest/nuget.exe 4 | 5 | $nuget = $env:NuGet 6 | 7 | # parse the version number out of package.json 8 | $bsversionParts = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version.split('-', 2) # split the version on the '-' 9 | $bsversion = $bsversionParts[0] 10 | 11 | if ($bsversionParts.Length -gt 1) 12 | { 13 | $bsversion += '-' + $bsversionParts[1].replace('.', '').replace('-', '_') # strip out invalid chars from the PreRelease part 14 | } 15 | 16 | # update sourceMappingURL in bootstrap-select.min.js 17 | (Get-Content $env:SourcesPath\dist\js\bootstrap-select.min.js).replace("sourceMappingURL=", "sourceMappingURL=Scripts/") | Set-Content $env:SourcesPath\dist\js\bootstrap-select.min.js 18 | 19 | # create packages 20 | & $nuget pack "$env:SourcesPath\nuget\bootstrap-select.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion -------------------------------------------------------------------------------- /nuget/bootstrap-select.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | bootstrap-select 5 | 1.12.2 6 | bootstrap-select 7 | Silvio Moreto,Ana Carolina,caseyjhol,Matt Bryson,and t0xicCode. 8 | Silvio Moreto 9 | https://github.com/silviomoreto/bootstrap-select 10 | Bootstrap-select is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard select elements. 11 | bootstrap dropdown select 12 | false 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-select", 3 | "title": "bootstrap-select", 4 | "main": "dist/js/bootstrap-select.js", 5 | "description": "Bootstrap-select is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard select elements.", 6 | "version": "1.12.2", 7 | "homepage": "http://silviomoreto.github.io/bootstrap-select", 8 | "author": { 9 | "name": "Silvio Moreto", 10 | "url": "https://github.com/silviomoreto" 11 | }, 12 | "contributors": [ 13 | { 14 | "name": "Silvio Moreto", 15 | "url": "https://github.com/silviomoreto" 16 | }, 17 | { 18 | "name": "Ana Carolina", 19 | "url": "https://github.com/anacarolinats" 20 | }, 21 | { 22 | "name": "caseyjhol", 23 | "url": "https://github.com/caseyjhol" 24 | }, 25 | { 26 | "name": "Matt Bryson", 27 | "url": "https://github.com/mattbryson" 28 | }, 29 | { 30 | "name": "t0xicCode", 31 | "url": "https://github.com/t0xicCode" 32 | } 33 | ], 34 | "repository": { 35 | "type": "git", 36 | "url": "git://github.com/silviomoreto/bootstrap-select.git" 37 | }, 38 | "license": "MIT", 39 | "dependencies": { 40 | "jquery": ">=1.8" 41 | }, 42 | "devDependencies": { 43 | "grunt": "^1.0.1", 44 | "grunt-autoprefixer": "^3.0.4", 45 | "grunt-banner": "^0.6.0", 46 | "grunt-contrib-clean": "^1.0.0", 47 | "grunt-contrib-compress": "^1.3.0", 48 | "grunt-contrib-concat": "^1.0.1", 49 | "grunt-contrib-copy": "^1.0.0", 50 | "grunt-contrib-csslint": "^2.0.0", 51 | "grunt-contrib-cssmin": "^1.0.2", 52 | "grunt-contrib-jshint": "^1.0.0", 53 | "grunt-contrib-less": "^1.4.0", 54 | "grunt-contrib-uglify": "^2.0.0", 55 | "grunt-contrib-watch": "^1.0.0", 56 | "grunt-umd": "^2.3.6", 57 | "grunt-version": "^1.1.1", 58 | "load-grunt-tasks": "^3.5.2" 59 | }, 60 | "keywords": [ 61 | "form", 62 | "bootstrap", 63 | "select", 64 | "replacement" 65 | ] 66 | } 67 | -------------------------------------------------------------------------------- /sass/variables.scss: -------------------------------------------------------------------------------- 1 | $color-red-error: rgb(185, 74, 72) !default; 2 | $color-grey-arrow: rgba(204, 204, 204, 0.2) !default; 3 | 4 | $width-default: 220px !default; // 3 960px-grid columns 5 | 6 | $zindex-select-dropdown: 1060 !default; // must be higher than a modal background (1050) 7 | 8 | //** Placeholder text color 9 | $input-color-placeholder: #999 !default; --------------------------------------------------------------------------------