1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-19 14:56:40 +02:00
TableFilter/dist/tablefilter/tf-1.js

8 lines
47 KiB
JavaScript
Raw Normal View History

2015-11-29 11:27:43 +01:00
/**
* tablefilter v0.0.13 by Max Guglielmi
* build date: 2015-11-29T10:22:52.409Z
* MIT License
*/
webpackJsonp([1],{24:function(t,e,s){function i(t){return s(n(t))}function n(t){return l[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var l={"./array":6,"./array.js":6,"./cookie":4,"./cookie.js":4,"./date":7,"./date.js":7,"./dom":2,"./dom.js":2,"./event":1,"./event.js":1,"./extensions/advancedGrid/adapterEzEditTable":25,"./extensions/advancedGrid/adapterEzEditTable.js":25,"./extensions/advancedGrid/advancedGrid":26,"./extensions/advancedGrid/advancedGrid.js":26,"./extensions/colOps/colOps":27,"./extensions/colOps/colOps.js":27,"./extensions/colsVisibility/colsVisibility":28,"./extensions/colsVisibility/colsVisibility.js":28,"./extensions/filtersVisibility/filtersVisibility":29,"./extensions/filtersVisibility/filtersVisibility.js":29,"./extensions/sort/adapterSortabletable":30,"./extensions/sort/adapterSortabletable.js":30,"./extensions/sort/sort":31,"./extensions/sort/sort.js":31,"./helpers":8,"./helpers.js":8,"./modules/alternateRows":23,"./modules/alternateRows.js":23,"./modules/checkList":17,"./modules/checkList.js":17,"./modules/clearButton":21,"./modules/clearButton.js":21,"./modules/dropdown":15,"./modules/dropdown.js":15,"./modules/feature":11,"./modules/feature.js":11,"./modules/gridLayout":10,"./modules/gridLayout.js":10,"./modules/help":22,"./modules/help.js":22,"./modules/highlightKeywords":13,"./modules/highlightKeywords.js":13,"./modules/loader":12,"./modules/loader.js":12,"./modules/paging":20,"./modules/paging.js":20,"./modules/popupFilter":14,"./modules/popupFilter.js":14,"./modules/rowsCounter":18,"./modules/rowsCounter.js":18,"./modules/statusBar":19,"./modules/statusBar.js":19,"./modules/store":9,"./modules/store.js":9,"./sort":16,"./sort.js":16,"./string":3,"./string.js":3,"./types":5,"./types.js":5};i.keys=function(){return Object.keys(l)},i.resolve=n,t.exports=i,i.id=24},25:function(t,e,s){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var s=0;s<e.length;s++){var i=e[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,s,i){return s&&t(e.prototype,s),i&&t(e,i),e}}(),a=s(2),r=i(a),o=function(){function t(e,s){n(this,t),this.initialized=!1,this.desc=s.description||"ezEditTable adapter",this.filename=s.filename||"ezEditTable.js",this.vendorPath=s.vendor_path,this.loadStylesheet=Boolean(s.load_stylesheet),this.stylesheet=s.stylesheet||this.vendorPath+"ezEditTable.css",this.stylesheetName=s.stylesheet_name||"ezEditTableCss",this.err='Failed to instantiate EditTable object.\n"ezEditTable" dependency not found.',s.scroll_into_view=s.scroll_into_view===!1?!1:e.gridLayout,this._ezEditTable=null,this.cfg=s,this.tf=e}return l(t,[{key:"init",value:function(){var t=this,e=this.tf;if(window.EditTable)this._setAdvancedGrid();else{var s=this.vendorPath+this.filename;e["import"](this.filename,s,function(){t._setAdvancedGrid()})}this.loadStylesheet&&!e.isImported(this.stylesheet,"link")&&e["import"](this.stylesheetName,this.stylesheet,null,"link")}},{key:"_setAdvancedGrid",value:function(){var t,e=this.tf,s=this.cfg,i=r["default"].tag(e.tbl,"thead");t=i.length>0&&!s.startRow?void 0:s.startRow||e.refRow,s.base_path=s.base_path||e.basePath+"ezEditTable/";var n=s.editable,l=s.selection;l&&(s.default_selection=s.default_selection||"row"),s.active_cell_css=s.active_cell_css||"ezETSelectedCell";var a=0,o=0;if(l){var h=function(t,s,i){var n=t.Selection,l=function(i){if("row"===t.defaultSelection)n.SelectRowByIndex(i);else{t.ClearSelections();var l=s.cellIndex,a=e.tbl.rows[i];"both"===t.defaultSelection&&n.SelectRowByIndex(i),a&&n.SelectCell(a.cells[l])}if(e.validRowsIndex.length!==e.getRowsNb()){var r=e.tbl.rows[i];r&&r.scrollIntoView(!1),c&&(c.cellIndex===e.getCellsNb()-1&&e.gridLayout?e.tblCont.scrollLeft=1e8:0===c.cellIndex&&e.gridLayout?e.tblCont.scrollLeft=0:c.scrollIntoView(!1))}};if(e.validRowsIndex){var r,h=e.validRowsInde
"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var n=s(30),l=i(n);window.SortableTable||s(32),e["default"]=l["default"],t.exports=e["default"]},32:function(t,e,s){s(33)(s(34))},33:function(t,e){t.exports=function(t){"function"==typeof execScript?execScript(t):eval.call(null,t)}},34:function(t,e){t.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| Created 2003-01-10 | All changes are in the log above. | Updated 2006-04-25 |\r\n\\----------------------------------------------------------------------------*/\r\n\r\n\r\nfunction SortableTable(oTable, oSortTypes) {\r\n\r\n this.sortTypes = oSortTypes || [];\r\n\r\n this.sortColumn = null;\r\n this.descending = null;\r\n\r\n var oThis = this;\r\n this._headerOnclick = function (e) {\r\n oThis.headerOnclick(e);\r\n };\r\n\r\n if (oTable) {\r\n this.setTable( oTable );\r