From e3614e2c58f507c272b61cc169400a101277ee1b Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 6 Dec 2013 16:33:38 +0100 Subject: [PATCH] first step for manual merging of the slickgrid branch --- third-party/slickgrid | 1 + third-party/slickgrid-2.1/MIT-LICENSE.txt | 20 + third-party/slickgrid-2.1/README.md | 22 + third-party/slickgrid-2.1/README.myslice | 2 + .../controls/slick.columnpicker.css | 31 + .../controls/slick.columnpicker.js | 145 + .../slickgrid-2.1/controls/slick.pager.css | 41 + .../slickgrid-2.1/controls/slick.pager.js | 147 + .../lib/jquery.event.drag-2.2.js | 402 ++ .../lib/jquery.event.drop-2.2.js | 302 ++ .../plugins/slick.autotooltips.js | 83 + .../plugins/slick.cellcopymanager.js | 86 + .../plugins/slick.cellrangedecorator.js | 64 + .../plugins/slick.cellrangeselector.js | 113 + .../plugins/slick.cellselectionmodel.js | 154 + .../plugins/slick.checkboxselectcolumn.js | 153 + .../plugins/slick.headerbuttons.css | 39 + .../plugins/slick.headerbuttons.js | 177 + .../plugins/slick.headermenu.css | 59 + .../slickgrid-2.1/plugins/slick.headermenu.js | 275 ++ .../plugins/slick.rowmovemanager.js | 138 + .../plugins/slick.rowselectionmodel.js | 187 + third-party/slickgrid-2.1/slick.core.js | 458 +++ third-party/slickgrid-2.1/slick.dataview.js | 1063 ++++++ third-party/slickgrid-2.1/slick.editors.js | 512 +++ third-party/slickgrid-2.1/slick.formatters.js | 59 + third-party/slickgrid-2.1/slick.grid.css | 157 + third-party/slickgrid-2.1/slick.grid.js | 3309 +++++++++++++++++ .../slick.groupitemmetadataprovider.js | 144 + .../slickgrid-2.1/slick.remotemodel.js | 173 + 30 files changed, 8516 insertions(+) create mode 120000 third-party/slickgrid create mode 100644 third-party/slickgrid-2.1/MIT-LICENSE.txt create mode 100644 third-party/slickgrid-2.1/README.md create mode 100644 third-party/slickgrid-2.1/README.myslice create mode 100644 third-party/slickgrid-2.1/controls/slick.columnpicker.css create mode 100644 third-party/slickgrid-2.1/controls/slick.columnpicker.js create mode 100644 third-party/slickgrid-2.1/controls/slick.pager.css create mode 100644 third-party/slickgrid-2.1/controls/slick.pager.js create mode 100644 third-party/slickgrid-2.1/lib/jquery.event.drag-2.2.js create mode 100644 third-party/slickgrid-2.1/lib/jquery.event.drop-2.2.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.autotooltips.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.cellcopymanager.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.cellrangedecorator.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.cellrangeselector.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.cellselectionmodel.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.checkboxselectcolumn.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.headerbuttons.css create mode 100644 third-party/slickgrid-2.1/plugins/slick.headerbuttons.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.headermenu.css create mode 100644 third-party/slickgrid-2.1/plugins/slick.headermenu.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.rowmovemanager.js create mode 100644 third-party/slickgrid-2.1/plugins/slick.rowselectionmodel.js create mode 100644 third-party/slickgrid-2.1/slick.core.js create mode 100644 third-party/slickgrid-2.1/slick.dataview.js create mode 100644 third-party/slickgrid-2.1/slick.editors.js create mode 100644 third-party/slickgrid-2.1/slick.formatters.js create mode 100644 third-party/slickgrid-2.1/slick.grid.css create mode 100644 third-party/slickgrid-2.1/slick.grid.js create mode 100644 third-party/slickgrid-2.1/slick.groupitemmetadataprovider.js create mode 100644 third-party/slickgrid-2.1/slick.remotemodel.js 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 = $("