1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-28 02:10:56 +02:00
TableFilter/dist/tablefilter/tf-1.js

8 lines
47 KiB
JavaScript
Raw Normal View History

2016-05-07 11:54:22 +02:00
/**
* tablefilter v0.2.19 by Max Guglielmi
* build date: 2016-05-07T09:50:22.717Z
* MIT License
*/
webpackJsonp([1],{28:function(e,t,n){function r(e){return n(i(e))}function i(e){return s[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var s={"./array":14,"./array.js":14,"./cookie":27,"./cookie.js":27,"./date":5,"./date.js":5,"./dom":2,"./dom.js":2,"./emitter":7,"./emitter.js":7,"./event":1,"./event.js":1,"./extensions/advancedGrid/adapterEzEditTable":29,"./extensions/advancedGrid/adapterEzEditTable.js":29,"./extensions/advancedGrid/advancedGrid":30,"./extensions/advancedGrid/advancedGrid.js":30,"./extensions/colOps/colOps":31,"./extensions/colOps/colOps.js":31,"./extensions/colsVisibility/colsVisibility":32,"./extensions/colsVisibility/colsVisibility.js":32,"./extensions/filtersVisibility/filtersVisibility":33,"./extensions/filtersVisibility/filtersVisibility.js":33,"./extensions/sort/adapterSortabletable":34,"./extensions/sort/adapterSortabletable.js":34,"./extensions/sort/sort":35,"./extensions/sort/sort.js":35,"./helpers":6,"./helpers.js":6,"./modules/alternateRows":22,"./modules/alternateRows.js":22,"./modules/checkList":16,"./modules/checkList.js":16,"./modules/clearButton":20,"./modules/clearButton.js":20,"./modules/dropdown":13,"./modules/dropdown.js":13,"./modules/feature":9,"./modules/feature.js":9,"./modules/gridLayout":8,"./modules/gridLayout.js":8,"./modules/hash":25,"./modules/hash.js":25,"./modules/help":21,"./modules/help.js":21,"./modules/highlightKeywords":11,"./modules/highlightKeywords.js":11,"./modules/loader":10,"./modules/loader.js":10,"./modules/noResults":23,"./modules/noResults.js":23,"./modules/paging":19,"./modules/paging.js":19,"./modules/popupFilter":12,"./modules/popupFilter.js":12,"./modules/rowsCounter":17,"./modules/rowsCounter.js":17,"./modules/state":24,"./modules/state.js":24,"./modules/statusBar":18,"./modules/statusBar.js":18,"./modules/storage":26,"./modules/storage.js":26,"./sort":15,"./sort.js":15,"./string":4,"./string.js":4,"./types":3,"./types.js":3};r.keys=function(){return Object.keys(s)},r.resolve=i,e.exports=r,r.id=28},29:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),o=r(s),l=function(){function e(t,n){i(this,e),this.initialized=!1,this.desc=n.description||"ezEditTable adapter",this.filename=n.filename||"ezEditTable.js",this.vendorPath=n.vendor_path,this.loadStylesheet=Boolean(n.load_stylesheet),this.stylesheet=n.stylesheet||this.vendorPath+"ezEditTable.css",this.stylesheetName=n.stylesheet_name||"ezEditTableCss",this.err='Failed to instantiate EditTable object.\n"ezEditTable" dependency not found.',n.scroll_into_view=n.scroll_into_view===!1?!1:t.gridLayout,this._ezEditTable=null,this.cfg=n,this.tf=t,this.emitter=t.emitter}return e.prototype.init=function(){var e=this,t=this.tf;if(window.EditTable)this._setAdvancedGrid();else{var n=this.vendorPath+this.filename;t["import"](this.filename,n,function(){e._setAdvancedGrid()})}this.loadStylesheet&&!t.isImported(this.stylesheet,"link")&&t["import"](this.stylesheetName,this.stylesheet,null,"link"),this.emitter.on(["filter-focus","filter-blur"],function(){return e._toggleForInputFilter()})},e.prototype._setAdvancedGrid=function(){var e,t=this.tf,n=this.cfg,r=o["default"].tag(t.tbl,"thead");e=r.length>0&&!n.startRow?void 0:n.startRow||t.refRow,n.base_path=n.base_path||t.basePath+"ezEditTable/";var i=n.editable,s=n.selection;s&&(n.default_selection=n.default_selection||"row"),n.active_cell_css=n.active_cell_css||"ezETSelectedCell";var l=0,a=0;if(s){var d=function(e,n,r){var i=e.Selection,s=function(r){if("row"===e.defaultSelection)i.SelectRowByIndex(r);else{e.ClearSelections();var s=n.cellIndex,o=t.tbl.rows[r];"both"===e.defaultSelection&&i.SelectRowByIndex(r),o&&i.SelectCell(o.cells[s])}if(t.validRowsIndex.length!==t.getRowsNb()){var l=t.tbl.rows[r];l&&l.scrollIntoView(!1),h&&(h.cellIndex===t.getCellsNb()-1&&t.gridLayout?t.tblCont.scrollLeft=1e8:0===h.cellIndex&&t.gridLayout?t.tblCont.scrollLeft=0:h.scrollIntoView(!1))}};if(
T["default"].add(i,"click",function(n){var r=n.target;e.tf.sort&&e.stt.asyncSort(t.indexOf(r.id))}),i.setAttribute("_sortType",r[n]))}}()},e.prototype.destroy=function(){var e=this,t=this.tf;this.emitter.off(["sort"],function(t,n,r){return e.sortByColumnIndex(n,r)}),this.sorted=!1,this.initialized=!1,this.stt.destroy();for(var n=t.getFiltersId(),r=0;r<n.length;r++){var i=t.getHeaderElement(r),s=y["default"].tag(i,"img");1===s.length&&i.removeChild(s[0])}},e}();t["default"]=S},35:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),s=r(i);window.SortableTable||n(36),t["default"]=s["default"]},36:function(e,t,n){n(37)(n(38))},37:function(e,t){e.exports=function(e){"undefined"!=typeof execScript?execScript(e):eval.call(null,e)}},38:function(e,t){e.exports='/*----------------------------------------------------------------------------\\\r\n| Sortable Table 1.12 |\r\n|-----------------------------------------------------------------------------|\r\n| Created by Erik Arvidsson |\r\n| (http://webfx.eae.net/contact.html#erik) |\r\n| For WebFX (http://webfx.eae.net/) |\r\n|-----------------------------------------------------------------------------|\r\n| A DOM 1 based script that allows an ordinary HTML table to be sortable. |\r\n|-----------------------------------------------------------------------------|\r\n| Copyright (c) 1998 - 2006 Erik Arvidsson |\r\n|-----------------------------------------------------------------------------|\r\n| Licensed under the Apache License, Version 2.0 (the "License"); you may not |\r\n| use this file except in compliance with the License. You may obtain a copy |\r\n| of the License at http://www.apache.org/licenses/LICENSE-2.0 |\r\n| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |\r\n| Unless required by applicable law or agreed to in writing, software |\r\n| distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |\r\n| WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |\r\n| License for the specific language governing permissions and limitations |\r\n| under the License. |\r\n|-----------------------------------------------------------------------------|\r\n| 2003-01-10 | First version |\r\n| 2003-01-19 | Minor changes to the date parsing |\r\n| 2003-01-28 | JScript 5.0 fixes (no support for \'in\' operator) |\r\n| 2003-02-01 | Sloppy typo like error fixed in getInnerText |\r\n| 2003-07-04 | Added workaround for IE cellIndex bug. |\r\n| 2003-11-09 | The bDescending argument to sort was not correctly working |\r\n| | Using onclick DOM0 event if no support for addEventListener |\r\n| | or attachEvent |\r\n| 2004-01-13 | Adding addSortType and removeSortType which makes it a lot |\r\n| | easier to add new, custom sort types. |\r\n| 2004-01-27 | Switch to use descending = false as the default sort order. |\r\n| | Change defaultDescending to suit your needs. |\r\n| 2004-03-14 | Improved sort type None look and feel a bit |\r\n| 2004-08-26 | Made the handling of tBody and tHead more flexible. Now you |\r\n| | can use another tHead or no tHead, and you can chose some |\r\n| | other tBody. |\r\n| 2006-04-25 | Changed license to Apache Software License 2.0 |\r\n|-----------------------------------------------------------------------------|\r\n|