1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-03 06:22:34 +02:00
TableFilter/dist/tablefilter/tf-1-a89898708236ababcb36.js

9 lines
47 KiB
JavaScript
Raw Normal View History

2017-01-15 06:39:14 +01:00
/**
* tablefilter v0.4.34 by Max Guglielmi
2017-01-15 07:26:35 +01:00
* build date: 2017-01-15T06:21:30.964Z
2017-01-15 06:39:14 +01:00
* MIT License
*/
webpackJsonp([1],{435:function(t,e,n){function i(t){return n(o(t))}function o(t){return s[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var s={"./array":16,"./array.js":16,"./const":11,"./const.js":11,"./cookie":29,"./cookie.js":29,"./dom":3,"./dom.js":3,"./emitter":8,"./emitter.js":8,"./event":1,"./event.js":1,"./extensions/advancedGrid/adapterEzEditTable":436,"./extensions/advancedGrid/adapterEzEditTable.js":436,"./extensions/advancedGrid/advancedGrid":437,"./extensions/advancedGrid/advancedGrid.js":437,"./extensions/colOps/colOps":438,"./extensions/colOps/colOps.js":438,"./extensions/colsVisibility/colsVisibility":439,"./extensions/colsVisibility/colsVisibility.js":439,"./extensions/filtersVisibility/filtersVisibility":440,"./extensions/filtersVisibility/filtersVisibility.js":440,"./extensions/sort/adapterSortabletable":441,"./extensions/sort/adapterSortabletable.js":441,"./extensions/sort/sort":442,"./extensions/sort/sort.js":442,"./feature":10,"./feature.js":10,"./modules/alternateRows":24,"./modules/alternateRows.js":24,"./modules/checkList":18,"./modules/checkList.js":18,"./modules/clearButton":22,"./modules/clearButton.js":22,"./modules/dateType":30,"./modules/dateType.js":30,"./modules/dropdown":15,"./modules/dropdown.js":15,"./modules/gridLayout":9,"./modules/gridLayout.js":9,"./modules/hash":27,"./modules/hash.js":27,"./modules/help":23,"./modules/help.js":23,"./modules/highlightKeywords":13,"./modules/highlightKeywords.js":13,"./modules/loader":12,"./modules/loader.js":12,"./modules/noResults":25,"./modules/noResults.js":25,"./modules/paging":21,"./modules/paging.js":21,"./modules/popupFilter":14,"./modules/popupFilter.js":14,"./modules/rowsCounter":19,"./modules/rowsCounter.js":19,"./modules/state":26,"./modules/state.js":26,"./modules/statusBar":20,"./modules/statusBar.js":20,"./modules/storage":28,"./modules/storage.js":28,"./number":7,"./number.js":7,"./root":2,"./root.js":2,"./sort":17,"./sort.js":17,"./string":5,"./string.js":5,"./types":4,"./types.js":4};i.keys=function(){return Object.keys(s)},i.resolve=o,t.exports=i,i.id=435},436:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),l=n(3),a=n(11),d=n(2),c='Failed to instantiate EditTable object.\n \n"ezEditTable" dependency not found.',h=function(t){function e(n,s){i(this,e);var r=o(this,t.call(this,n,s.name));return r.desc=s.description||"ezEditTable adapter",r.filename=s.filename||"ezEditTable.js",r.vendorPath=s.vendor_path,r.loadStylesheet=Boolean(s.load_stylesheet),r.stylesheet=s.stylesheet||r.vendorPath+"ezEditTable.css",r.stylesheetName=s.stylesheet_name||"ezEditTableCss",s.scroll_into_view=s.scroll_into_view!==!1&&n.gridLayout,r._ezEditTable=null,r.cfg=s,r.enable(),r}return s(e,t),e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf;if(d.root.EditTable)this._setAdvancedGrid();else{var n=this.vendorPath+this.filename;e.import(this.filename,n,function(){return t._setAdvancedGrid()})}this.loadStylesheet&&!e.isImported(this.stylesheet,"link")&&e.import(this.stylesheetName,this.stylesheet,null,"link"),this.emitter.on(["filter-focus","filter-blur"],function(){return t._toggleForInputFilter()}),this.initialized=!0}},e.prototype._setAdvancedGrid=function(){var t=this.tf,e=void 0,n=this.cfg,i=(0,l.tag)(t.tbl,"thead");e=i.length>0&&!n.startRow?void 0:n.startRow||t.refRow,n.base_path=n.base_path||t.basePath+"ezEditTable/";var o=n.editable,s=n.selection;s&&(n.default_selection=n.default_selection||"row"),n.active_
var o=(0,c.elm)(e[n]);o&&(o.style.cursor="pointer",(0,h.addEvt)(o,"click",function(n){var i=n.target;t.tf.sort&&t.stt.asyncSort(e.indexOf(i.id))}),o.setAttribute("_sortType",i[n]))}}()},e.prototype._addDateType=function(t,e){var n=this.tf,i=n.feature("dateType"),o=i.getOptions(t,e).locale||n.locale,s=f.DATE+"-"+o;return this.addSortType(s,function(t){var e=i.parse(t,o);return isNaN(+e)?new Date(-864e11):e}),s},e.prototype._addNumberType=function(t,e){var n=""+f.FORMATTED_NUMBER+("."===e?"":"-custom");return this.addSortType(n,function(t){return(0,u.parse)(t,e)}),n},e.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.tf;this.emitter.off(["sort"],function(e,n,i){return t.sortByColumnIndex(n,i)}),this.sorted=!1,this.stt.destroy();for(var n=e.getFiltersId(),i=0;i<n.length;i++){var o=e.getHeaderElement(i),s=(0,c.tag)(o,"img");1===s.length&&o.removeChild(s[0])}this.initialized=!1}},e}(a.Feature);e.default=p},442:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(441),s=i(o),r=n(2);r.root.SortableTable||n(443),e.default=s.default},443:function(t,e,n){n(444)(n(445))},444:function(t,e){t.exports=function(t){"undefined"!=typeof execScript?execScript(t):eval.call(null,t)}},445:function(t,e){t.exports='/*----------------------------------------------------------------------------\\\n| Sortable Table 1.12 |\n|-----------------------------------------------------------------------------|\n| Created by Erik Arvidsson |\n| (http://webfx.eae.net/contact.html#erik) |\n| For WebFX (http://webfx.eae.net/) |\n|-----------------------------------------------------------------------------|\n| A DOM 1 based script that allows an ordinary HTML table to be sortable. |\n|-----------------------------------------------------------------------------|\n| Copyright (c) 1998 - 2006 Erik Arvidsson |\n|-----------------------------------------------------------------------------|\n| Licensed under the Apache License, Version 2.0 (the "License"); you may not |\n| use this file except in compliance with the License. You may obtain a copy |\n| of the License at http://www.apache.org/licenses/LICENSE-2.0 |\n| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |\n| Unless required by applicable law or agreed to in writing, software |\n| distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |\n| WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |\n| License for the specific language governing permissions and limitations |\n| under the License. |\n|-----------------------------------------------------------------------------|\n| 2003-01-10 | First version |\n| 2003-01-19 | Minor changes to the date parsing |\n| 2003-01-28 | JScript 5.0 fixes (no support for \'in\' operator) |\n| 2003-02-01 | Sloppy typo like error fixed in getInnerText |\n| 2003-07-04 | Added workaround for IE cellIndex bug. |\n| 2003-11-09 | The bDescending argument to sort was not correctly working |\n| | Using onclick DOM0 event if no support for addEventListener |\n| | or attachEvent |\n| 2004-01-13 | Adding addSortType and removeSortType which makes it a lot |\n| | easier to add new, custom sort types. |\n| 2004-01-27 | Switch to use descending = false as the default sort order. |\n| | Change defaultDescending to suit your needs. |\n| 2004-03-14 | Improved sort type None look and feel a bit |\n| 2004-08-26 | Made
2017-01-15 07:26:35 +01:00
//# sourceMappingURL=tf-1-a89898708236ababcb36.js.map