-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define Handsontable as Bower dependency; upgrade Handsontable to 0.9.4
- Loading branch information
Showing
302 changed files
with
118,390 additions
and
1,665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.idea | ||
_SpecRunner.html | ||
.grunt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "0.8" | ||
|
||
before_script: | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
- "npm install -g grunt-cli" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Contributing to Handsontable | ||
|
||
Your contributions to the project are very welcome. If you would like to fix a bug or propose a new feature, you can submit a Pull Request. | ||
|
||
To help us merge your Pull Request, please make sure you follow these points: | ||
|
||
1. Describe the problem in the Pull Request description (of course you would do it, why do I mention that?) | ||
2. Please make your fix on a separate branch. This makes merging much easier. | ||
3. Do not edit files `jquery.handsontable.js`, `jquery.handsontable.css`, `jquery.handsontable.full.js`, `jquery.handsontable.full.css`. Instead, try to edit files inside the `src/` directory and then use `grunt` to make a build. More information about this on wiki page [Building](https://github.com/warpech/jquery-handsontable/wiki/Building). | ||
4. Very important: For any change that you make, **please try to also add a test case(s)** in `tests/jasmine/spec/` or `src/3rdparty/walkontable/test/jasmine/spec/`. This helps us understand the issue and make sure that it will stay fixed forever. | ||
|
||
Thank you for your commitment! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
/** | ||
* This file is used to build Handsontable from `src/*` | ||
* | ||
* Installation: | ||
* 1. Install Grunt CLI (`npm install -g grunt-cli`) | ||
* 1. Install Grunt 0.4.0 and other dependencies (`npm install`) | ||
* | ||
* Build: | ||
* Execute `grunt` from root directory of this directory (where Gruntfile.js is) | ||
* To execute automatically after each change, execute `grunt --force default watch` | ||
* To execute build followed by the test run, execute `grunt test` | ||
* | ||
* Result: | ||
* building Handsontable will create files: | ||
* - dist/jquery.handsontable.js | ||
* - dist/jquery.handsontable.css | ||
* - dist/jquery.handsontable.full.js | ||
* - dist/jquery.handsontable.full.css | ||
* | ||
* See http://gruntjs.com/getting-started for more information about Grunt | ||
*/ | ||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
meta: { | ||
src: [ | ||
'tmp/core.js', | ||
'src/focusCatcher.js', | ||
'src/tableView.js', | ||
'src/helpers.js', | ||
'src/fillHandle.js', | ||
'src/undoRedo.js', | ||
'src/selectionPoint.js', | ||
|
||
'src/renderers/textRenderer.js', | ||
'src/renderers/autocompleteRenderer.js', | ||
'src/renderers/checkboxRenderer.js', | ||
'src/renderers/numericRenderer.js', | ||
|
||
'src/editors/textEditor.js', | ||
'src/editors/autocompleteEditor.js', | ||
'src/editors/checkboxEditor.js', | ||
'src/editors/dateEditor.js', | ||
'src/editors/handsontableEditor.js', | ||
|
||
'src/cellTypes.js', | ||
|
||
'src/pluginHooks.js', | ||
'src/plugins/autoColumnSize.js', | ||
'src/plugins/columnSorting.js', | ||
'src/plugins/contextMenu.js', | ||
'src/plugins/legacy.js', | ||
'src/plugins/manualColumnMove.js', | ||
'src/plugins/manualColumnResize.js', | ||
'src/plugins/observeChanges.js', | ||
|
||
'src/3rdparty/jquery.autoresize.js', | ||
'src/3rdparty/sheetclip.js', | ||
'src/3rdparty/copypaste.js' | ||
], | ||
walkontable: [ | ||
'src/3rdparty/walkontable/src/*.js', | ||
'src/3rdparty/walkontable/src/3rdparty/*.js' | ||
], | ||
vendor: [ | ||
'lib/bootstrap-typeahead.js', | ||
'lib/numeral.js', | ||
'lib/jQuery-contextMenu/jquery.contextMenu.js' | ||
// seems to have no effect when turned off on contextmenu.html | ||
//'lib/jQuery-contextMenu/jquery.ui.position.js' | ||
] | ||
}, | ||
|
||
concat: { | ||
dist: { | ||
files: { | ||
'dist/jquery.handsontable.js': [ | ||
'tmp/intro.js', | ||
'<%= meta.src %>', | ||
'<%= meta.walkontable %>', | ||
'src/outro.js' | ||
] | ||
} | ||
}, | ||
full_js: { | ||
files: { | ||
'dist/jquery.handsontable.full.js': [ | ||
'dist/jquery.handsontable.js', | ||
'<%= meta.vendor %>' | ||
] | ||
} | ||
}, | ||
full_css: { | ||
files: { | ||
'dist/jquery.handsontable.full.css': [ | ||
'dist/jquery.handsontable.css', | ||
'lib/jQuery-contextMenu/jquery.contextMenu.css' | ||
] | ||
} | ||
}, | ||
wc: { | ||
files: { | ||
'dist_wc/x-handsontable/jquery-2.min.js': [ | ||
'lib/jquery-2.min.js' | ||
], | ||
'dist_wc/x-handsontable/numeral.de-de.js': [ | ||
'lib/numeral.de-de.js' | ||
], | ||
'dist_wc/x-handsontable/jquery.handsontable.full.js': [ | ||
'dist/jquery.handsontable.full.js' | ||
], | ||
'dist_wc/x-handsontable/jquery.handsontable.full.css': [ | ||
'dist/jquery.handsontable.full.css' | ||
] | ||
} | ||
} | ||
}, | ||
|
||
watch: { | ||
files: [ | ||
'src/**/*.js', | ||
'src/**/*.css', | ||
'src/**/*.html', | ||
'lib/**/*.js', | ||
'lib/**/*.css' | ||
], | ||
tasks: ['default'] | ||
}, | ||
|
||
clean: { | ||
dist: ['tmp'] | ||
}, | ||
|
||
replace: { | ||
dist: { | ||
options: { | ||
variables: { | ||
version: '<%= pkg.version %>', | ||
timestamp: '<%= (new Date()).toString() %>' | ||
} | ||
}, | ||
files: { | ||
'tmp/intro.js': 'src/intro.js', | ||
'tmp/core.js': 'src/core.js', | ||
'dist/jquery.handsontable.css': 'src/css/jquery.handsontable.css' | ||
} | ||
}, | ||
wc: { | ||
options: { | ||
variables: { | ||
controller: '<%= grunt.file.read("src/wc/x-handsontable-controller.js") %>' | ||
} | ||
}, | ||
files: { | ||
'dist_wc/x-handsontable.html': 'src/wc/x-handsontable.html' | ||
} | ||
} | ||
}, | ||
jasmine: { | ||
handsontable: { | ||
src: [ | ||
'lib/jquery.min.js', | ||
'dist/jquery.handsontable.js', | ||
'lib/bootstrap-typeahead.js', | ||
'lib/numeral.js', | ||
'lib/jQuery-contextMenu/jquery.contextMenu.js', | ||
'test/jasmine/spec/SpecHelper.js', | ||
'demo/js/backbone/lodash.underscore.js', | ||
'demo/js/backbone/backbone.js', | ||
'demo/js/backbone/backbone-relational/backbone-relational.js' | ||
], | ||
options: { | ||
specs: [ | ||
'test/jasmine/spec/*Spec.js', | ||
'test/jasmine/spec/*/*Spec.js' | ||
], | ||
styles: [ | ||
'test/jasmine/css/SpecRunner.css', | ||
'dist/jquery.handsontable.css', | ||
'lib/jQuery-contextMenu/jquery.contextMenu.css' | ||
] | ||
} | ||
}, | ||
walkontable: { | ||
src: [ | ||
'lib/jquery.min.js', | ||
'src/3rdparty/walkontable/src/*.js', | ||
'src/3rdparty/walkontable/src/3rdparty/*.js', | ||
'src/3rdparty/walkontable/test/jasmine/SpecHelper.js' | ||
], | ||
options: { | ||
specs: [ | ||
'src/3rdparty/walkontable/test/jasmine/spec/*.spec.js' | ||
], | ||
styles: [ | ||
'src/3rdparty/walkontable/css/walkontable.css' | ||
] | ||
} | ||
} | ||
} | ||
}); | ||
|
||
// Default task. | ||
grunt.registerTask('default', ['replace:dist', 'concat', 'replace:wc', 'clean']); | ||
grunt.registerTask('test', ['default', 'jasmine']); | ||
grunt.registerTask('test:handsontable', ['default', 'jasmine:handsontable']); | ||
grunt.registerTask('test:walkontable', ['default', 'jasmine:walkontable']); | ||
|
||
grunt.loadNpmTasks('grunt-replace'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(The MIT License) | ||
|
||
Copyright (c) 2012 Marcin Warpechowski <[email protected]> | ||
|
||
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. |
Oops, something went wrong.