vendor/assets/javascripts/slickgrid/core.js in slickgrid-2.4.5 vs vendor/assets/javascripts/slickgrid/core.js in slickgrid-2.4.14

- old
+ new

@@ -14,11 +14,11 @@ "Range": Range, "NonDataRow": NonDataItem, "Group": Group, "GroupTotals": GroupTotals, "EditorLock": EditorLock, - + /*** * A global singleton editor lock. * @class GlobalEditorLock * @static * @constructor @@ -42,14 +42,50 @@ RIGHT: 39, TAB: 9, UP: 38, A: 65 }, - "preClickClassName" : "slick-edit-preclick" + "preClickClassName" : "slick-edit-preclick", + + "GridAutosizeColsMode": { + None: 'NOA', + LegacyOff: 'LOF', + LegacyForceFit: 'LFF', + IgnoreViewport: 'IGV', + FitColsToViewport: 'FCV', + FitViewportToCols: 'FVC' + }, + + "ColAutosizeMode": { + Locked: 'LCK', + Guide: 'GUI', + Content: 'CON', + ContentIntelligent: 'CTI' + }, + + "RowSelectionMode": { + FirstRow: 'FS1', + FirstNRows: 'FSN', + AllRows: 'ALL', + LastRow: 'LS1' + }, + + "ValueFilterMode": { + None: 'NONE', + DeDuplicate: 'DEDP', + GetGreatestAndSub: 'GR8T', + GetLongestTextAndSub: 'LNSB', + GetLongestText: 'LNSC' + }, + + "WidthEvalMode": { + CanvasTextSize: 'CANV', + HTML: 'HTML' + } } }); - + /*** * An event object for passing data to event handlers and letting them control propagation. * <p>This is pretty much identical to how W3C and jQuery implement events.</p> * @class EventData * @constructor @@ -88,11 +124,11 @@ * @method isImmediatePropagationStopped * @return {Boolean} */ this.isImmediatePropagationStopped = function () { return isImmediatePropagationStopped; - } + }; } /*** * A simple publisher-subscriber implementation. * @class Event @@ -184,11 +220,11 @@ handlers[i].event.unsubscribe(handlers[i].handler); } handlers = []; return this; // allow chaining - } + }; } /*** * A structure containing a range of cells. * @class Range @@ -268,11 +304,11 @@ return "(" + this.fromRow + ":" + this.fromCell + ")"; } else { return "(" + this.fromRow + ":" + this.fromCell + " - " + this.toRow + ":" + this.toCell + ")"; } - } + }; } /*** * A base class that all special / non-data rows (like Group and GroupTotals) derive from. @@ -658,10 +694,10 @@ this.getInIds = function (ids) { return ids.map(function (id) { return columnsById[id]; }); - } + }; } })(jQuery);