From: Thierry Parmentelat Date: Fri, 6 Dec 2013 15:33:38 +0000 (+0100) Subject: first step for manual merging of the slickgrid branch X-Git-Tag: myslice-0.3-0~91^2~6 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=e3614e2c58f507c272b61cc169400a101277ee1b first step for manual merging of the slickgrid branch --- diff --git a/third-party/slickgrid b/third-party/slickgrid new file mode 120000 index 00000000..e518ae0e --- /dev/null +++ b/third-party/slickgrid @@ -0,0 +1 @@ +slickgrid-2.1 \ No newline at end of file diff --git a/third-party/slickgrid-2.1/MIT-LICENSE.txt b/third-party/slickgrid-2.1/MIT-LICENSE.txt new file mode 100644 index 00000000..60f65425 --- /dev/null +++ b/third-party/slickgrid-2.1/MIT-LICENSE.txt @@ -0,0 +1,20 @@ +Copyright (c) 2010 Michael Leibman, http://github.com/mleibman/slickgrid + +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. \ No newline at end of file diff --git a/third-party/slickgrid-2.1/README.md b/third-party/slickgrid-2.1/README.md new file mode 100644 index 00000000..7994a271 --- /dev/null +++ b/third-party/slickgrid-2.1/README.md @@ -0,0 +1,22 @@ +# Welcome to SlickGrid + +Find documentation and examples in [the wiki](https://github.com/mleibman/SlickGrid/wiki). + +## SlickGrid is an advanced JavaScript grid/spreadsheet component + +Some highlights: + +* Adaptive virtual scrolling (handle hundreds of thousands of rows with extreme responsiveness) +* Extremely fast rendering speed +* Supports jQuery UI Themes +* Background post-rendering for richer cells +* Configurable & customizable +* Full keyboard navigation +* Column resize/reorder/show/hide +* Column autosizing & force-fit +* Pluggable cell formatters & editors +* Support for editing and creating new rows. +* Grouping, filtering, custom aggregators, and more! +* Advanced detached & multi-field editors with undo/redo support. +* “GlobalEditorLock” to manage concurrent edits in cases where multiple Views on a page can edit the same data. +* Support for [millions of rows](http://stackoverflow.com/a/2569488/1269037) diff --git a/third-party/slickgrid-2.1/README.myslice b/third-party/slickgrid-2.1/README.myslice new file mode 100644 index 00000000..cd466031 --- /dev/null +++ b/third-party/slickgrid-2.1/README.myslice @@ -0,0 +1,2 @@ +I'm adding parts of the slickgrid download manually +so as to avoid any conflicts with the rest of our third-party stuff diff --git a/third-party/slickgrid-2.1/controls/slick.columnpicker.css b/third-party/slickgrid-2.1/controls/slick.columnpicker.css new file mode 100644 index 00000000..bcbb3758 --- /dev/null +++ b/third-party/slickgrid-2.1/controls/slick.columnpicker.css @@ -0,0 +1,31 @@ +.slick-columnpicker { + border: 1px solid #718BB7; + background: #f0f0f0; + padding: 6px; + -moz-box-shadow: 2px 2px 2px silver; + -webkit-box-shadow: 2px 2px 2px silver; + box-shadow: 2px 2px 2px silver; + min-width: 100px; + cursor: default; +} + +.slick-columnpicker li { + list-style: none; + margin: 0; + padding: 0; + background: none; +} + +.slick-columnpicker input { + margin: 4px; +} + +.slick-columnpicker li a { + display: block; + padding: 4px; + font-weight: bold; +} + +.slick-columnpicker li a:hover { + background: white; +} diff --git a/third-party/slickgrid-2.1/controls/slick.columnpicker.js b/third-party/slickgrid-2.1/controls/slick.columnpicker.js new file mode 100644 index 00000000..be0dc066 --- /dev/null +++ b/third-party/slickgrid-2.1/controls/slick.columnpicker.js @@ -0,0 +1,145 @@ +(function ($) { + function SlickColumnPicker(columns, grid, options) { + var $menu; + var columnCheckboxes; + + var defaults = { + fadeSpeed:250 + }; + + function init() { + grid.onHeaderContextMenu.subscribe(handleHeaderContextMenu); + grid.onColumnsReordered.subscribe(updateColumnOrder); + options = $.extend({}, defaults, options); + + $menu = $("