diff --git a/common/js/plugins/jquery.finderSelect/LICENSE.txt b/common/js/plugins/jquery.finderSelect/LICENSE.txt new file mode 100755 index 000000000..d4bcbdbfb --- /dev/null +++ b/common/js/plugins/jquery.finderSelect/LICENSE.txt @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) [2013] [Mike Angell] + +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. + + diff --git a/common/js/plugins/jquery.finderSelect/README.md b/common/js/plugins/jquery.finderSelect/README.md new file mode 100755 index 000000000..36b35b8ac --- /dev/null +++ b/common/js/plugins/jquery.finderSelect/README.md @@ -0,0 +1,32 @@ +# finderSelect | Jquery & Zepto Plugin + +[finderSelect](http://github.com/evulse/finderselect) Adds the ability to highlight table rows based on the standard single click, command/ctrl+click, command+drag/ctrl+drag and shift+click methods. This plugin will add a `selected` class to all active rows. + +## How to Use + +For the most up to date documentation please visit (http://evulse.github.io/finderSelect "finderSelect") + +## Change Log + +* 0.6.0: Added Hooks and External methods. +* 0.5.0: Added Ctrl+A/Cmd+A Select All feature. Rewrote core to work with Zepto without plugins. System now stores data as classes. +* 0.4.0: Matched to Mac OSX Finder 100%. Added support for when a selection touches a pre-existing selection and then is moved. +* 0.3.0: Touch devices will now default to Ctrl + Click functionality allowing them to make multiple selections. +* 0.3.0: Firefox will now auto scroll when using Ctrl + Click + Drag +* 0.3.0: Rewrite Ctrl + Click + Drag functionality which now also allows text selection on all rows. +* 0.2.2: Make IE6+ Compatible required renaming option 'class' to 'selectClass' +* 0.2.1: Bring Menu and Highlight count from example into the core system. +* 0.2.0: Refactor code base to make core plugin easily extendable. +* 0.1.9: Make plugin only work on left click so that a custom context menu can be used. +* 0.1.7: Auto detect child element type if none specified. +* 0.1.5: Add "finderSelectUpdate" event so external code can be aware of updates. +* 0.1.4: Change to match Finder highlighting and rename from Batch Select to finderSelect. +* 0.1.3: Fix Incorrect URL's in jQuery Plugin Manifest +* 0.1.2: Rename Plugin +* 0.1.1: Use the original parent rather than relying on .parent() +* 0.1.0: Initial Commit + + +## Live Demos +* [Basic Demo](http://evulse.github.io/finderSelect "finderSelect - Demo") + diff --git a/common/js/plugins/jquery.finderSelect/jquery.finderSelect.min.js b/common/js/plugins/jquery.finderSelect/jquery.finderSelect.min.js new file mode 100755 index 000000000..19f9506ac --- /dev/null +++ b/common/js/plugins/jquery.finderSelect/jquery.finderSelect.min.js @@ -0,0 +1 @@ +!function(a){function h(b){var c=a(this),d={selectClass:"selected",unSelectClass:"un-selected",currentClass:"selected-current",lastClass:"selected-last",shiftClass:"selected-shift",ctrlClass:"selected-ctrl",triggerUpdate:"finderSelectUpdate",children:!1,event:"mousedown",cursor:"pointer",dragEvent:"mouseenter",enableClickDrag:!0,enableShiftClick:!0,enableCtrlClick:!0,enableSingleClick:!0,enableSelectAll:!0,enableDisableSelection:!0,enableTouchCtrlDefault:!0,enableDesktopCtrlDefault:!1,totalSelector:!1,menuSelector:!1,menuXOffset:0,menuYOffset:0};a.extend(d,b),f=d,f.children||(f.children=g.detect.children(c)),g.h.off(g.get.siblings(c,f),f),f.cursor&&g.set.cursor(c,f),f.enableDisableSelection&&g.core.disableSelection(c,f),f.enableClickDrag&&g.core.clickDrag(c,f),f.enableSelectAll&&g.core.selectAll(c,f),(f.enableShiftClick||f.enableCtrlClick||f.enableSingleClick)&&g.core.click(c,f),f.totalSelector&&g.core.totalUpdate(c,f),f.menuSelector&&g.core.loadMenu(c,f)}function j(a){g.h.on(a,f)}function k(a){g.h.off(a,f)}function l(){var b=a(this);g.h.on(b.find(f.children),f)}function m(){var b=a(this);g.h.off(b.find(f.children),f)}function n(){var b=a(this);return b.find(f.children+"."+f.selectClass)}function o(){var b=a(this);return b.find(f.children)}function p(){var b=a(this);g.t.update(b,f)}function q(a,b){if("object"==typeof a){var c;for(c=0;c0)c.hard.v=a(i[0]),g.set.click(b,c.hard.v,d.lastClass);else{var i=g.get.elem(h>f,c.hard.v,d.selectClass);i.length>0?(i=f>h?a(i[0]):a(i[i.length-1]),c.hard.v=i,g.set.click(b,c.hard.v,d.lastClass)):(c.hard.v=e.first(),g.set.click(b,c.hard.v,d.lastClass),g.t.singleClick(e,{current:{v:e.first()}},d))}}var h=e.index(c.hard.v),j=e.index(c.shift.v),f=e.index(c.current.v);0==c.hard.v.length&&g.t.singleClick(e,{current:{v:e.first()}},d),0!=c.shift.v.length?((j>h&&f>h&&j>f||h>j&&h>f&&f>j)&&g.h.off(g.get.between(e,c.shift,c.current),d),(j>h&&h>f&&j>f||h>j&&f>h&&f>j)&&(g.h.off(g.get.between(e,c.shift,c.hard),d),g.h.on(g.get.between(e,c.current,c.hard),d)),h>j&&h>f&&j>f||j>h&&f>h&&f>j||h==j?g.h.on(g.get.between(e,c.shift,c.current),d):(g.h.off(c.shift.v,d),g.t.unHExist(f>j,c.shift.v,d))):(g.t.unHExist(f>h,c.hard.v,d),g.h.on(g.get.between(e,c.current,c.hard),d)),g.h.on(c.current.v,d),g.set.clicks(c.hard.v,c.current.v,null,b,d)},unHAll:function(a,b){g.h.off(a.find(b.children),b)},hAll:function(a,b){g.h.on(a.find(b.children),b)},unHExist:function(a,b,c){a?g.h.off(g.get.elem(!1,b,!1,c.unSelectClass),c):g.h.off(g.get.elem(!0,b,!1,c.unSelectClass),c)}}}(window.jQuery||window.Zepto); \ No newline at end of file diff --git a/common/js/plugins/jquery.finderSelect/plugin.load b/common/js/plugins/jquery.finderSelect/plugin.load new file mode 100644 index 000000000..b572384a3 --- /dev/null +++ b/common/js/plugins/jquery.finderSelect/plugin.load @@ -0,0 +1 @@ +jquery.finderSelect.min.js