Skip to content

Commit

Permalink
upgrade Handsontable to 0.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
warpech committed Jul 23, 2013
1 parent d5c5647 commit c46c08d
Show file tree
Hide file tree
Showing 121 changed files with 15,161 additions and 5,161 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "ng-datagrid",
"version": "0.0.0",
"devDependencies": {
"handsontable": "~0.9.4"
"handsontable": "~0.9.10"
},
"dependencies": {
"angular": "~1.0.7",
"jquery": "~1.9.1",
"jquery": "~2.0.3",
"angular-ui-select2": "~0.0.2"
}
}
88 changes: 88 additions & 0 deletions components/handsontable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,91 @@
## [0.9.10](https://github.com/warpech/jquery-handsontable/tree/v0.9.10) (Jul 23, 2013)

Features:
- New option: `persistentState` ([docs](https://github.com/warpech/jquery-handsontable/wiki/Options)). Settings of manualColumnMove, manualColumnResize and columnSorting can be restored on page load using localStorage. See [Column resize](http://handsontable.com/demo/column_resize.html) and [Sorting](http://handsontable.com/demo/sorting.html) demos

Bugfixes (sorting):
- issues with create/update/delete operations on a sorted table ([#793](https://github.com/warpech/jquery-handsontable/issues/793), [#542](https://github.com/warpech/jquery-handsontable/issues/542), [#746](https://github.com/warpech/jquery-handsontable/issues/746))
- added proper sorting for `date` column type ([#720](https://github.com/warpech/jquery-handsontable/issues/720))
- sorting tables with spare rows that contain not empty cells ([#857](https://github.com/warpech/jquery-handsontable/issues/857))

Bugfixes (validation):
- cell editors now work better with async cell validators
- validator should add class name `htInvalid` to a cell without removing other classes

Bugfixes (big cells):
- remove maximum column width 200px limit ([#422](https://github.com/warpech/jquery-handsontable/issues/422))
- refactor manualColumnResize plugin, now it works ok also with columns wider than viewport
- refactor scrollViewport to correctly scroll to cells wider than viewport (should just cut the part that is not visible)
- refactor scrollViewport to correctly scroll to cells higher than viewport (should just cut the part that is not visible)
- cell editor could not handle long values correctly ([#393](https://github.com/warpech/jquery-handsontable/issues/393), [#441](https://github.com/warpech/jquery-handsontable/issues/441), [#804](https://github.com/warpech/jquery-handsontable/issues/804))
- scrollbar handle size does not depend on row height anymore, which solves problem of jumpy scrollbar behavior for rows of variable height [SC#527](https://github.com/Starcounter/Starcounter/issues/527)
- it should not be allowed to select fragments of Handsontable chrome (even if `fragmentSelection` set to true)
- fix cell selection positioning for tables with `<caption>`

Bugfixes (other):
- removing rows from table with fixed rows ([#805](https://github.com/warpech/jquery-handsontable/issues/805))
- issues with selecting inputs/textareas/selects outside of HOT ([#408](https://github.com/warpech/jquery-handsontable/issues/408))
- fixed API methods `addHook`, `addHookOnce`, `removeHook`, `runHooks`, `runHooksAndReturn` to manipulate local hooks
- fixed calling `beforeChange` and `afterChange` hooks multiple times while editing a single value in a column with synchronous validator ([#864](https://github.com/warpech/jquery-handsontable/issues/864))

Performance:
- replace jQuery `find` with `querySelector` where possible
- replace jQuery `index` with `wtDom.index` where possible - up to 8x faster
- replace jQuery `:visible` with `wtDom.isVisible` where possible

Other:
- updated Grunt packages
- added livereload to `grunt watch` - works with Chrome LiveReload extension. See: https://github.com/gruntjs/grunt-contrib-watch
- remove the deprecated `isWritable` cell property from code and demo; add it temporarily to `src/plugins/legacy.js` so it does not break your code (to be removed in 1.0 or sooner)
- now all tests pass in IE8-10, FF, Ch, also with `grunt sauce`

## [0.9.9](https://github.com/warpech/jquery-handsontable/tree/v0.9.9) (Jun 30, 2013)

Bugfix:
- version 0.9.8 contained a fatal typo in cut (CTRL+X) callback

## [0.9.8](https://github.com/warpech/jquery-handsontable/tree/v0.9.8) (Jun 30, 2013)

Bugfix:
- copy/cut/paste did not work since last version ([#846](https://github.com/warpech/jquery-handsontable/issues/846))

## [0.9.7](https://github.com/warpech/jquery-handsontable/tree/v0.9.7) (Jun 30, 2013)

Features:
- new option `fragmentSelection`, which unblocks free text selection within cells ([demo](http://handsontable.com/demo/options.html), [docs](https://github.com/warpech/jquery-handsontable/wiki/Options))

Bugfixes:
- `updateSettings` method did not take effect when updating `readOnly`, `columns`, `colHeaders`, `fixedColumnsLeft`, `fixedRowsTop` ([#824](https://github.com/warpech/jquery-handsontable/issues/824), [#715](https://github.com/warpech/jquery-handsontable/issues/715), [#524](https://github.com/warpech/jquery-handsontable/issues/524))
- numeric cell type did not respect the `readOnly` setting
- `demo/php.html` is now fixed (runs only when PHP is installed, does not work on handsontable.com)
- mousewheel not working in IE8 ([#817](https://github.com/warpech/jquery-handsontable/issues/817))
- HTML in cells and headers was escaped when it shouldn't be ([#845](https://github.com/warpech/jquery-handsontable/issues/845), [#815](https://github.com/warpech/jquery-handsontable/issues/815), [#821](https://github.com/warpech/jquery-handsontable/issues/821))
- fixed issues with asynchronous validators

Other:
- all Handsontable event listeners now listen on document body. This was needed to make `fragmentSelection` feature
- created the [Handsontable Google Group](https://groups.google.com/forum/#!forum/handsontable). Please use it for general questions - and keep GitHub Issues for bugfixes and feature requests

Tests:
- initial integration with Sauce Labs (`grunt sauce`). More info about testing coming soon in wiki
- dropped support for IE7, which now has [below 1%](http://gs.statcounter.com/#browser_version_partially_combined-ww-monthly-201306-201306-bar) of the global market share. IE8 is safe for now

## [0.9.6](https://github.com/warpech/jquery-handsontable/tree/v0.9.6) (Jun 18, 2013)

Bugfixes:
- `isEmptyRow` produced error `this.countCols is not a function` ([#632](https://github.com/warpech/jquery-handsontable/issues/632))
- delete row extension does not show the button when grid is inside a `<table>` ([#764](https://github.com/warpech/jquery-handsontable/issues/764))
- drag-down not working if Handsontable is inside a table ([#355](https://github.com/warpech/jquery-handsontable/issues/355), [#361](https://github.com/warpech/jquery-handsontable/issues/361), [#538](https://github.com/warpech/jquery-handsontable/issues/538), [#438](https://github.com/warpech/jquery-handsontable/issues/438), [#671](https://github.com/warpech/jquery-handsontable/issues/671), [#704](https://github.com/warpech/jquery-handsontable/issues/704)) - this makes me realize how many people still use tables to create a layout
- numeric cell renderer did not add class name `htDimmed` to a read only cell

Performance:
- avoid jQuery and expensive DOM operations in several places

Other:
- add more test cases
- upgrade jQuery contextMenu plugin to v1.6.5
- upgrade jquery-mousewheel plugin to v3.1.3

## [0.9.5](https://github.com/warpech/jquery-handsontable/tree/v0.9.5) (Jun 15, 2013)

Feature:
Expand Down
89 changes: 84 additions & 5 deletions components/handsontable/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,37 @@
*
* See http://gruntjs.com/getting-started for more information about Grunt
*/
var browsers = [
{
browserName: 'firefox',
platform: 'Windows 7'
},
{
browserName: 'chrome',
platform: 'Windows 7'
},
{
browserName: 'internet explorer',
version: '8',
platform: 'Windows 7'
},
{
browserName: 'internet explorer',
version: '9',
platform: 'Windows 7'
},
{
browserName: 'internet explorer',
version: '10',
platform: 'Windows 8'
}
];

module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
gitinfo: {
},
meta: {
src: [
'tmp/core.js',
Expand All @@ -44,6 +72,7 @@ module.exports = function (grunt) {
'src/editors/handsontableEditor.js',

'src/validators/numericValidator.js',
'src/validators/autocompleteValidator.js',

'src/cellTypes.js',

Expand All @@ -55,6 +84,7 @@ module.exports = function (grunt) {
'src/plugins/manualColumnMove.js',
'src/plugins/manualColumnResize.js',
'src/plugins/observeChanges.js',
'src/plugins/persistentState.js',

'src/3rdparty/jquery.autoresize.js',
'src/3rdparty/sheetclip.js',
Expand All @@ -70,13 +100,17 @@ module.exports = function (grunt) {
'lib/jQuery-contextMenu/jquery.contextMenu.js'
// seems to have no effect when turned off on contextmenu.html
//'lib/jQuery-contextMenu/jquery.ui.position.js'
],
shims : [
'lib/shims/array.filter.js'
]
},

concat: {
dist: {
files: {
'dist/jquery.handsontable.js': [
'<%= meta.shims %>',
'tmp/intro.js',
'<%= meta.src %>',
'<%= meta.walkontable %>',
Expand Down Expand Up @@ -119,6 +153,9 @@ module.exports = function (grunt) {
},

watch: {
options: {
livereload: true //works with Chrome LiveReload extension. See: https://github.com/gruntjs/grunt-contrib-watch
},
files: [
'src/**/*.js',
'src/**/*.css',
Expand Down Expand Up @@ -169,17 +206,19 @@ module.exports = function (grunt) {
'test/jasmine/spec/SpecHelper.js',
'demo/js/backbone/lodash.underscore.js',
'demo/js/backbone/backbone.js',
'demo/js/backbone/backbone-relational/backbone-relational.js'
'demo/js/backbone/backbone-relational/backbone-relational.js',
'extensions/jquery.handsontable.removeRow.js'
],
options: {
specs: [
'test/jasmine/spec/*Spec.js',
'test/jasmine/spec/*/*Spec.js'
'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'
'lib/jQuery-contextMenu/jquery.contextMenu.css',
'extensions/jquery.handsontable.removeRow.css'
]
}
},
Expand Down Expand Up @@ -207,20 +246,60 @@ module.exports = function (grunt) {
base: '.',
keepalive: true
}
},
sauce: {
options: {
port: 9999,
base: '.',
keepalive: false
}
}
},
'saucelabs-jasmine': {
handsontable: {
options: {
urls: ['http://localhost:9999/test/jasmine/SpecRunner.html'],
testTimeout: (1000 * 60 * 5),
tunnelTimeout: 120,
testInterval: 5,
testReadyTimeout: 5,
// build: process.env.TRAVIS_JOB_ID,
build: '<%= pkg.version %>-<%= gitinfo.local.branch.current.name %>',
concurrency: 3,
browsers: browsers,
testname: "Development test (Handsontable)"
}
},
walkontable: {
options: {
urls: ['http://localhost:9999/src/3rdparty/walkontable/test/jasmine/SpecRunner.html'],
testTimeout: (1000 * 60 * 5),
tunnelTimeout: 120,
testInterval: 5,
testReadyTimeout: 5,
// build: process.env.TRAVIS_JOB_ID,
build: '<%= pkg.version %>-<%= gitinfo.local.branch.current.name %>',
concurrency: 3,
browsers: browsers,
testname: "Development test (Walkontable)"
}
}
}
});

// Default task.
grunt.registerTask('default', ['replace:dist', 'concat', 'replace:wc', 'clean']);
grunt.registerTask('default', ['gitinfo', '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.registerTask('sauce', ['default', 'connect:sauce', 'saucelabs-jasmine:walkontable', 'saucelabs-jasmine:handsontable']);

grunt.loadNpmTasks('grunt-replace');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-saucelabs');
grunt.loadNpmTasks('grunt-gitinfo');
};
6 changes: 4 additions & 2 deletions components/handsontable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Handsontable is a minimalistic approach to Excel-like table editor in HTML & jQuery. Requires jQuery 1.9+ or 2.0+ (may work with 1.7+ too, but there are known issues with [IE10](https://github.com/warpech/jquery-handsontable/issues/410)).

Runs in IE7, IE8, IE9, IE10, Firefox, Chrome, Safari and Opera.
Runs in IE8, IE9, IE10, Firefox, Chrome, Safari and Opera.

See the demos at http://handsontable.com/ or fork the example on [JSFiddle](http://jsfiddle.net/warpech/hU6Kz/).

Expand Down Expand Up @@ -45,7 +45,9 @@ To see the list of recent changes, see the [CHANGELOG.md](./CHANGELOG.md).

## Questions

Before you open a new [Issue](https://github.com/warpech/jquery-handsontable/issues), please check out the [Frequently Asked Questions](https://github.com/warpech/jquery-handsontable/wiki/FAQ).
Please use the :new: [Handsontable Google Group](https://groups.google.com/forum/?fromgroups=#!forum/handsontable) for posting general **Questions**.

Make sure the question was not answered before in [FAQ](https://github.com/warpech/jquery-handsontable/wiki/FAQ) or [GitHub Issues](https://github.com/warpech/jquery-handsontable/issues)

## Reporting bugs and feature requests

Expand Down
Loading

0 comments on commit c46c08d

Please sign in to comment.