From 03a5d251a1ee77d081ff8e6394ee20b911d5e48c Mon Sep 17 00:00:00 2001 From: Archis Gore Date: Mon, 22 Aug 2016 20:44:04 -0700 Subject: [PATCH] Bumped package version And ran grunt to update some files, as well as validate all tests. --- dist/starter.html | 4 ++-- dist/tablefilter/style/colsVisibility.css | 4 ++-- dist/tablefilter/style/filtersVisibility.css | 4 ++-- dist/tablefilter/style/tablefilter.css | 4 ++-- dist/tablefilter/style/themes/default/default.css | 4 ++-- dist/tablefilter/style/themes/mytheme/mytheme.css | 4 ++-- dist/tablefilter/style/themes/skyblue/skyblue.css | 4 ++-- dist/tablefilter/tablefilter.js | 6 +++--- dist/tablefilter/tf-1.js | 4 ++-- package.json | 2 +- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/starter.html b/dist/starter.html index 8686a935..d7093f50 100644 --- a/dist/starter.html +++ b/dist/starter.html @@ -1,10 +1,10 @@ - tablefilter v0.2.56 - Starter + tablefilter v0.2.57 - Starter -

tablefilter v0.2.56

+

tablefilter v0.2.57

diff --git a/dist/tablefilter/style/colsVisibility.css b/dist/tablefilter/style/colsVisibility.css index 407aaadb..eba07b5f 100644 --- a/dist/tablefilter/style/colsVisibility.css +++ b/dist/tablefilter/style/colsVisibility.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.716Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.892Z * MIT License */ span.colVisSpan{text-align:left;}span.colVisSpan a.colVis{display:inline-block;padding:7px 5px 0;font-size:inherit;font-weight:inherit;vertical-align:top}div.colVisCont{position:relative;background:#fff;-webkit-box-shadow:3px 3px 2px #888;-moz-box-shadow:3px 3px 2px #888;box-shadow:3px 3px 2px #888;position:absolute;display:none;border:1px solid #ccc;height:auto;width:250px;background-color:#fff;margin:35px 0 0 -100px;z-index:10000;padding:10px 10px 10px 10px;text-align:left;font-size:12px;}div.colVisCont:after,div.colVisCont:before{bottom:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}div.colVisCont:after{border-color:rgba(255,255,255,0);border-bottom-color:#fff;border-width:10px;margin-left:-10px}div.colVisCont:before{border-color:rgba(255,255,255,0);border-bottom-color:#ccc;border-width:12px;margin-left:-12px}div.colVisCont p{margin:6px auto 6px auto}div.colVisCont a.colVis{display:initial;font-weight:inherit}ul.cols_checklist{padding:0;margin:0;list-style:none;}ul.cols_checklist label{display:block}ul.cols_checklist input{vertical-align:middle;margin:2px 5px 2px 1px}li.cols_checklist_item{padding:4px;margin:0;}li.cols_checklist_item:hover{background-color:#335ea8;color:#fff}.cols_checklist_slc_item{background-color:#335ea8;color:#fff} \ No newline at end of file diff --git a/dist/tablefilter/style/filtersVisibility.css b/dist/tablefilter/style/filtersVisibility.css index 662c3df3..f6a68810 100644 --- a/dist/tablefilter/style/filtersVisibility.css +++ b/dist/tablefilter/style/filtersVisibility.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.716Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.892Z * MIT License */ span.expClpFlt a.btnExpClpFlt{width:35px;height:35px;display:inline-block;}span.expClpFlt a.btnExpClpFlt:hover{background-color:#f4f4f4}span.expClpFlt img{padding:8px 11px 11px 11px} \ No newline at end of file diff --git a/dist/tablefilter/style/tablefilter.css b/dist/tablefilter/style/tablefilter.css index ab7a0148..163d4c9a 100644 --- a/dist/tablefilter/style/tablefilter.css +++ b/dist/tablefilter/style/tablefilter.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.716Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.892Z * MIT License */ .activeHeader{background-color:#66afe9 !important;color:#fff !important} diff --git a/dist/tablefilter/style/themes/default/default.css b/dist/tablefilter/style/themes/default/default.css index 347fcac5..585e2057 100644 --- a/dist/tablefilter/style/themes/default/default.css +++ b/dist/tablefilter/style/themes/default/default.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.716Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.892Z * MIT License */ table.TF{border-left:1px solid #ccc;border-top:none;border-right:none;border-bottom:none;}table.TF th{background:#ebecee url("images/bg_th.jpg") left top repeat-x;border-bottom:1px solid #d0d0d0;border-right:1px solid #d0d0d0;border-left:1px solid #fff;border-top:1px solid #fff;color:#333}table.TF td{border-bottom:1px dotted #999;padding:5px}.fltrow{background-color:#ebecee !important;}.fltrow th,.fltrow td{border-bottom:1px dotted #666 !important;padding:1px 3px 1px 3px !important}.flt,select.flt,select.flt_multi,.flt_s,.single_flt,.div_checklist{border:1px solid #999 !important}input.flt{width:99% !important}.inf{height:$min-height;background:#d7d7d7 url("images/bg_infDiv.jpg") 0 0 repeat-x !important}input.reset{background:transparent url("images/btn_eraser.gif") center center no-repeat !important}.helpBtn:hover{background-color:transparent}.nextPage{background:transparent url("images/btn_next_page.gif") center center no-repeat !important;}.nextPage:hover{background:transparent url("images/btn_over_next_page.gif") center center no-repeat !important}.previousPage{background:transparent url("images/btn_previous_page.gif") center center no-repeat !important;}.previousPage:hover{background:transparent url("images/btn_over_previous_page.gif") center center no-repeat !important}.firstPage{background:transparent url("images/btn_first_page.gif") center center no-repeat !important;}.firstPage:hover{background:transparent url("images/btn_over_first_page.gif") center center no-repeat !important}.lastPage{background:transparent url("images/btn_last_page.gif") center center no-repeat !important;}.lastPage:hover{background:transparent url("images/btn_over_last_page.gif") center center no-repeat !important}div.grd_Cont{background-color:#ebecee !important;border:1px solid #ccc !important;padding:0 !important;}div.grd_Cont .even{background-color:#fff}div.grd_Cont .odd{background-color:#d5d5d5}div.grd_headTblCont{background-color:#ebecee !important;border-bottom:none !important;}div.grd_headTblCont table{border-right:none !important}div.grd_tblCont table th,div.grd_headTblCont table th,div.grd_headTblCont table td{background:#ebecee url("images/bg_th.jpg") left top repeat-x !important;border-bottom:1px solid #d0d0d0 !important;border-right:1px solid #d0d0d0 !important;border-left:1px solid #fff !important;border-top:1px solid #fff !important}div.grd_tblCont table td{border-bottom:1px solid #999 !important}.grd_inf{background:#d7d7d7 url("images/bg_infDiv.jpg") 0 0 repeat-x !important;border-top:1px solid #d0d0d0 !important}.loader{border:1px solid #999}.defaultLoader{width:32px;height:32px;background:transparent url("images/img_loading.gif") 0 0 no-repeat !important}.even{background-color:#fff}.odd{background-color:#d5d5d5}span.expClpFlt a.btnExpClpFlt:hover{background-color:transparent !important}.activeHeader{background:#999 !important} \ No newline at end of file diff --git a/dist/tablefilter/style/themes/mytheme/mytheme.css b/dist/tablefilter/style/themes/mytheme/mytheme.css index ea4f376f..071018e1 100644 --- a/dist/tablefilter/style/themes/mytheme/mytheme.css +++ b/dist/tablefilter/style/themes/mytheme/mytheme.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.716Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.892Z * MIT License */ table.TF{border-left:1px dotted #81963b;border-top:none;border-right:0;border-bottom:none;}table.TF th{background:#39424b url("images/bg_headers.jpg") left top repeat-x;border-bottom:0;border-right:1px dotted #d0d0d0;border-left:0;border-top:0;color:#fff}table.TF td{border-bottom:1px dotted #81963b;border-right:1px dotted #81963b;padding:5px}.fltrow{background-color:#81963b !important;}.fltrow th,.fltrow td{border-bottom:1px dotted #39424b !important;border-right:1px dotted #fff !important;border-left:0 !important;border-top:0 !important;padding:1px 3px 1px 3px !important}.flt,select.flt,select.flt_multi,.flt_s,.single_flt,.div_checklist{border:1px solid #687830 !important}input.flt{width:99% !important}.inf{background:#d8d8d8;height:$min-height}input.reset{width:53px;background:transparent url("images/btn_filter.png") center center no-repeat !important}.helpBtn:hover{background-color:transparent}.nextPage{background:transparent url("images/btn_next_page.gif") center center no-repeat !important}.previousPage{background:transparent url("images/btn_previous_page.gif") center center no-repeat !important}.firstPage{background:transparent url("images/btn_first_page.gif") center center no-repeat !important}.lastPage{background:transparent url("images/btn_last_page.gif") center center no-repeat !important}div.grd_Cont{background:#81963b url("images/bg_headers.jpg") left top repeat-x !important;border:1px solid #ccc !important;padding:0 1px 1px 1px !important;}div.grd_Cont .even{background-color:#bccd83}div.grd_Cont .odd{background-color:#fff}div.grd_headTblCont{background-color:#ebecee !important;border-bottom:none !important}div.grd_tblCont table{border-right:none !important;}div.grd_tblCont table td{border-bottom:1px dotted #81963b;border-right:1px dotted #81963b}div.grd_tblCont table th,div.grd_headTblCont table th{background:transparent url("images/bg_headers.jpg") 0 0 repeat-x !important;border-bottom:0 !important;border-right:1px dotted #d0d0d0 !important;border-left:0 !important;border-top:0 !important;padding:0 4px 0 4px !important;color:#fff !important;height:35px !important}div.grd_headTblCont table td{border-bottom:1px dotted #39424b !important;border-right:1px dotted #fff !important;border-left:0 !important;border-top:0 !important;background-color:#81963b !important;padding:1px 3px 1px 3px !important}.grd_inf{background-color:#d8d8d8;border-top:1px solid #d0d0d0 !important}.loader{border:0 !important;background:#81963b !important}.defaultLoader{width:32px;height:32px;background:transparent url("images/img_loading.gif") 0 0 no-repeat !important}.even{background-color:#bccd83}.odd{background-color:#fff}span.expClpFlt a.btnExpClpFlt:hover{background-color:transparent !important}.activeHeader{background:#81963b !important} \ No newline at end of file diff --git a/dist/tablefilter/style/themes/skyblue/skyblue.css b/dist/tablefilter/style/themes/skyblue/skyblue.css index 903f73d7..c4d311ee 100644 --- a/dist/tablefilter/style/themes/skyblue/skyblue.css +++ b/dist/tablefilter/style/themes/skyblue/skyblue.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.716Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.892Z * MIT License */ table.TF{padding:0;color:#000;border-right:1px solid #a4bed4;border-top:1px solid #a4bed4;border-left:1px solid #a4bed4;border-bottom:0;}table.TF th{margin:0;color:inherit;background:#d1e5fe url("images/bg_skyblue.gif") 0 0 repeat-x;border-color:#fdfdfd #a4bed4 #a4bed4 #fdfdfd;border-width:1px;border-style:solid}table.TF td{margin:0;padding:5px;color:inherit;border-bottom:1px solid #a4bed4;border-left:0;border-top:0;border-right:0}.fltrow{background-color:#d1e5fe !important;}.fltrow th,.fltrow td{padding:1px 3px 1px 3px !important}.flt,select.flt,select.flt_multi,.flt_s,.single_flt,.div_checklist{border:1px solid #a4bed4 !important}input.flt{width:99% !important}.inf{background-color:#e3efff !important;border:1px solid #a4bed4;height:$min-height;color:#004a6f}div.tot,div.status{border-right:0 !important}.helpBtn:hover{background-color:transparent}input.reset{background:transparent url("images/icn_clear_filters.png") center center no-repeat !important}.nextPage{background:transparent url("images/btn_next_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.nextPage:hover{background:#ffe4ab url("images/btn_next_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.previousPage{background:transparent url("images/btn_prev_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.previousPage:hover{background:#ffe4ab url("images/btn_prev_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.firstPage{background:transparent url("images/btn_first_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.firstPage:hover{background:#ffe4ab url("images/btn_first_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.lastPage{background:transparent url("images/btn_last_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.lastPage:hover{background:#ffe4ab url("images/btn_last_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.activeHeader{background:#ffe4ab !important;border:1px solid #ffb552 !important;color:inherit !important}div.grd_Cont{background-color:#d9eaed !important;border:1px solid #9cc !important;padding:0 !important;}div.grd_Cont .even{background-color:#fff}div.grd_Cont .odd{background-color:#e3efff}div.grd_headTblCont{background-color:#d9eaed !important;border-bottom:none !important}div.grd_tblCont table{border-right:none !important}div.grd_tblCont table th,div.grd_headTblCont table th,div.grd_headTblCont table td{background:#d9eaed url("images/bg_skyblue.gif") left top repeat-x;border-bottom:1px solid #a4bed4;border-right:1px solid #a4bed4 !important;border-left:1px solid #fff !important;border-top:1px solid #fff !important}div.grd_tblCont table td{border-bottom:1px solid #a4bed4 !important;border-right:0 !important;border-left:0 !important;border-top:0 !important}.grd_inf{background-color:#cce2fe;color:#004a6f;border-top:1px solid #9cc !important;}.grd_inf a{text-decoration:none;font-weight:bold}.loader{background-color:#2d8eef;border:1px solid #cce2fe;border-radius:5px}.even{background-color:#fff}.odd{background-color:#e3efff}span.expClpFlt a.btnExpClpFlt:hover{background-color:transparent !important}.ezActiveRow{background-color:#ffdc61 !important;color:inherit}.ezSelectedRow{background-color:#ffe4ab !important;color:inherit}.ezActiveCell{background-color:#fff !important;color:#000 !important;font-weight:bold}.ezETSelectedCell{background-color:#fff !important;font-weight:bold;color:#000 !important} \ No newline at end of file diff --git a/dist/tablefilter/tablefilter.js b/dist/tablefilter/tablefilter.js index 81a72dcc..1e1556be 100644 --- a/dist/tablefilter/tablefilter.js +++ b/dist/tablefilter/tablefilter.js @@ -1,10 +1,10 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.696Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.869Z * MIT License */ -!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(this,function(){return function(t){function e(i){if(s[i])return s[i].exports;var n=s[i]={exports:{},id:i,loaded:!1};return t[i].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var i=window.webpackJsonp;window.webpackJsonp=function(s,r){for(var o,a,l=0,h=[];l",this.lwOperator=c.lower_operator||"<",this.leOperator=c.lower_equal_operator||"<=",this.geOperator=c.greater_equal_operator||">=",this.dfOperator=c.different_operator||"!",this.lkOperator=c.like_operator||"*",this.eqOperator=c.equal_operator||"=",this.stOperator=c.start_with_operator||"{",this.enOperator=c.end_with_operator||"}",this.curExp=c.cur_exp||"^[¥£€$]",this.separator=c.separator||",",this.rowsCounter=Boolean(c.rows_counter),this.statusBar=Boolean(c.status_bar),this.loader=Boolean(c.loader),this.displayBtn=Boolean(c.btn),this.btnText=c.btn_text||(this.enableIcons?"":"Go"),this.btnCssClass=c.btn_css_class||(this.enableIcons?"btnflt_icon":"btnflt"),this.btnReset=Boolean(c.btn_reset),this.btnResetCssClass=c.btn_reset_css_class||"reset",this.onBeforeReset=(0,l.isFn)(c.on_before_reset)?c.on_before_reset:null,this.onAfterReset=(0,l.isFn)(c.on_after_reset)?c.on_after_reset:null,this.paging=Boolean(c.paging),this.nbHiddenRows=0,this.autoFilter=Boolean(c.auto_filter),this.autoFilterDelay=isNaN(c.auto_filter_delay)?S.AUTO_FILTER_DELAY:c.auto_filter_delay,this.isUserTyping=null,this.autoFilterTimer=null,this.highlightKeywords=Boolean(c.highlight_keywords),this.noResults=(0,l.isObj)(c.no_results_message)||Boolean(c.no_results_message),this.state=(0,l.isObj)(c.state)||Boolean(c.state),this.defaultDateType=c.default_date_type||"DMY",this.thousandsSeparator=c.thousands_separator||",",this.decimalSeparator=c.decimal_separator||".",this.hasColNbFormat=(0,l.isArray)(c.col_number_format),this.colNbFormat=this.hasColNbFormat?c.col_number_format:null,this.hasColDateType=(0,l.isArray)(c.col_date_type),this.colDateType=this.hasColDateType?c.col_date_type:null,this.prfxTf="TF",this.prfxFlt="flt",this.prfxValButton="btn",this.prfxInfDiv="inf_",this.prfxLDiv="ldiv_",this.prfxRDiv="rdiv_",this.prfxMDiv="mdiv_",this.prfxResponsive="resp",this.extensions=c.extensions,this.hasExtensions=(0,l.isArray)(this.extensions),this.enableDefaultTheme=Boolean(c.enable_default_theme),this.hasThemes=this.enableDefaultTheme||(0,l.isArray)(c.themes),this.themes=c.themes||[],this.themesPath=c.themes_path||this.stylePath+"themes/",this.responsive=Boolean(c.responsive),this.Mod={},this.ExtRegistry={}}return t.prototype.init=function(){var t=this;if(!this.initialized){var e=this.Mod,i=this.singleSearchFlt?1:this.nbCells,s=void 0;if(this["import"](this.stylesheetId,this.stylesheet,null,"link"),this.hasThemes&&this.loadThemes(),e.help||(e.help=new w.Help(this)),this.help&&e.help.init(),this.state&&(e.state||(e.state=new P.State(this)),e.state.init()),this.gridLayout&&(e.gridLayout||(e.gridLayout=new u.GridLayout(this)),e.gridLayout.init()),this.loader&&(e.loader||(e.loader=new d.Loader(this)),e.loader.init()),this.highlightKeywords&&(e.highlightKeyword=new g.HighlightKeyword(this),e.highlightKeyword.init()),this.popupFilters&&(e.popupFilter||(e.popupFilter=new m.PopupFilter(this)),e.popupFilter.init()),this.fltGrid){var n=this._insertFiltersRow();this.nbFilterableRows=this.getRowsNb();for(var r=0;r0?e[0].insertRow(this.filtersRowIndex):this.tbl.insertRow(this.filtersRowIndex),t.className=this.fltsRowCssClass,this.isExternalFlt&&(t.style.display=S.NONE),this.emitter.emit("filters-row-inserted",this,t),t}},t.prototype._initNoFilters=function(){this.fltGrid||(this.refRow=this.refRow>0?this.refRow-1:0,this.nbFilterableRows=this.getRowsNb())},t.prototype._buildInputFilter=function(t,e,i){var s=this,n=this.getFilterType(t),a=this.isExternalFlt?this.externalFltTgtIds[t]:null,l=n===S.INPUT?"text":"hidden",h=(0,o.createElm)(S.INPUT,["id",this.prfxFlt+t+"_"+this.id],["type",l],["ct",t]);"hidden"!==l&&this.watermark&&h.setAttribute("placeholder",this.isWatermarkArray?this.watermark[t]||"":this.watermark),h.className=e||this.fltCssClass,(0,r.addEvt)(h,"focus",function(t){return s.onInpFocus(t)}),a?(0,o.elm)(a).appendChild(h):i.appendChild(h),this.fltIds.push(h.id),(0,r.addEvt)(h,"keypress",function(t){return s.detectKey(t)}),(0,r.addEvt)(h,"keydown",function(){return s.onKeyDown()}),(0,r.addEvt)(h,"keyup",function(t){return s.onKeyUp(t)}),(0,r.addEvt)(h,"blur",function(){return s.onInpBlur()})},t.prototype._buildSubmitButton=function(t,e){var i=this,s=this.isExternalFlt?this.externalFltTgtIds[t]:null,n=(0,o.createElm)(S.INPUT,["id",this.prfxValButton+t+"_"+this.id],["type","button"],["value",this.btnText]);n.className=this.btnCssClass,s?(0,o.elm)(s).appendChild(n):e.appendChild(n),(0,r.addEvt)(n,"click",function(){return i.filter()})},t.prototype.feature=function(t){return this.Mod[t]},t.prototype.initExtensions=function(){var t=this.extensions;i.p=this.basePath,this.emitter.emit("before-loading-extensions",this);for(var e=0,s=t.length;e',this.btnPrevPageHtml='',this.btnNextPageHtml='',this.btnFirstPageHtml='',this.btnLastPageHtml='',this.loader=!0,this.loaderHtml='
',this.loaderText=null,this.emitter.emit("after-loading-themes",this)},t.prototype.getStylesheet=function(){var t=arguments.length<=0||void 0===arguments[0]?"default":arguments[0];return(0,o.elm)(this.prfxTf+t)},t.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.Mod,i=this.emitter;this.isExternalFlt&&!this.popupFilters&&this.removeExternalFlts(),this.infDiv&&this.removeToolbar(),this.markActiveColumns&&(this.clearActiveColumns(),i.off(["before-filtering"],function(){return t.clearActiveColumns()}),i.off(["cell-processed"],function(e,i){return t.markActiveColumn(i)})),this.hasExtensions&&this.destroyExtensions(),this.validateAllRows(),this.fltGrid&&!this.gridLayout&&this.tbl.deleteRow(this.filtersRowIndex),i.emit("destroy",this),Object.keys(e).forEach(function(t){var i=e[t];i&&(0,l.isFn)(i.destroy)&&i.destroy()}),this.hasVisibleRows&&i.off(["after-filtering"],function(){return t.enforceVisibility()}),this.linkedFilters&&i.off(["after-filtering"],function(){return t.linkFilters()}),this.emitter.off(["filter-focus"],function(e,i){return t.setActiveFilterId(i.id)}),(0,o.removeClass)(this.tbl,this.prfxTf),(0,o.removeClass)(this.tbl,this.prfxResponsive),this.nbHiddenRows=0,this.validRowsIndex=[],this.fltIds=[],this.initialized=!1}},t.prototype.setToolbar=function(){if(!this.infDiv){var t=(0,o.createElm)("div",["id",this.prfxInfDiv+this.id]);if(t.className=this.infDivCssClass,this.toolBarTgtId)(0,o.elm)(this.toolBarTgtId).appendChild(t);else if(this.gridLayout){var e=this.Mod.gridLayout;e.tblMainCont.appendChild(t),t.className=e.infDivCssClass}else{var i=(0,o.createElm)("caption");i.appendChild(t),this.tbl.insertBefore(i,this.tbl.firstChild)}this.infDiv=(0,o.elm)(this.prfxInfDiv+this.id);var s=(0,o.createElm)("div",["id",this.prfxLDiv+this.id]);s.className=this.lDivCssClass,t.appendChild(s),this.lDiv=(0,o.elm)(this.prfxLDiv+this.id);var n=(0,o.createElm)("div",["id",this.prfxRDiv+this.id]);n.className=this.rDivCssClass,t.appendChild(n),this.rDiv=(0,o.elm)(this.prfxRDiv+this.id);var r=(0,o.createElm)("div",["id",this.prfxMDiv+this.id]);r.className=this.mDivCssClass,t.appendChild(r),this.mDiv=(0,o.elm)(this.prfxMDiv+this.id),(0,l.isUndef)(this.help)&&(this.Mod.help.enabled=!0,this.emitter.emit("init-help",this))}},t.prototype.removeToolbar=function(){if(this.infDiv){(0,o.removeElm)(this.infDiv),this.infDiv=null;var t=this.tbl,e=(0,o.tag)(t,"caption");e.length>0&&[].forEach.call(e,function(e){return t.removeChild(e)})}},t.prototype.removeExternalFlts=function(){if(this.isExternalFlt)for(var t=this.externalFltTgtIds,e=t.length,i=0;i=V):D?(V=(0,h.formatDate)(t.replace(m,""),n),s=j>V):H?(V=(0,h.formatDate)(t.replace(v,""),n),s=j.toString()!==V.toString()):M?(V=(0,h.formatDate)(t.replace(y,""),n),s=j.toString()===V.toString()):b.test(t)?s=(0,a.contains)(t.replace(b,""),e,!1,this.caseSensitive):(0,h.isValidDate)(t,n)?(V=(0,h.formatDate)(t,n),s=j.toString()===V.toString()):s=I?(0,a.isEmpty)(e):N?!(0,a.isEmpty)(e):(0,a.contains)(t,e,this.isExactMatch(i),this.caseSensitive);else if(this.hasColNbFormat&&this.colNbFormat[i]?(f=(0,c.removeNbFormat)(e,this.colNbFormat[i]),p=this.colNbFormat[i]):","===this.thousandsSeparator&&"."===this.decimalSeparator?(f=(0,c.removeNbFormat)(e,"us"),p="us"):(f=(0,c.removeNbFormat)(e,"eu"),p="eu"),o)s=f<=(0,c.removeNbFormat)(t.replace(u,""),p);else if(T)s=f>=(0,c.removeNbFormat)(t.replace(d,""),p);else if(r)s=f<(0,c.removeNbFormat)(t.replace(g,""),p);else if(l)s=f>(0,c.removeNbFormat)(t.replace(m,""),p);else if(P)s=!(0,a.contains)(t.replace(v,""),e,!1,this.caseSensitive);else if(F)s=(0,a.contains)(t.replace(b,""),e,!1,this.caseSensitive);else if(S)s=(0,a.contains)(t.replace(y,""),e,!0,this.caseSensitive);else if(R)s=0===e.indexOf(t.replace(_,""));else if(O){var z=t.replace(C,"");s=e.lastIndexOf(z,e.length-1)===e.length-1-(z.length-1)&&e.lastIndexOf(z,e.length-1)>-1}else if(I)s=(0,a.isEmpty)(e);else if(N)s=!(0,a.isEmpty)(e);else if(L)try{var U=t.replace(E,""),K=new RegExp(U);s=K.test(e)}catch(W){s=!1}else f&&this.hasColNbFormat&&this.colNbFormat[i]&&!this.singleSearchFlt?(t=(0,c.removeNbFormat)(t,p)||t,s=f===t||(0,a.contains)(t.toString(),f.toString(),this.isExactMatch(i),this.caseSensitive)):s=(0,a.contains)(t,e,this.isExactMatch(i),this.caseSensitive);return s}if(this.fltGrid&&this.initialized){this.onBeforeFilter&&this.onBeforeFilter.call(null,this),this.emitter.emit("before-filtering",this);var i=this.tbl.rows,s=this.getRowsNb(!0),n=0;this.validRowsIndex=[];for(var r=this.getFiltersValue(),f=void 0,p=void 0,u=new RegExp(this.leOperator),d=new RegExp(this.geOperator),g=new RegExp(this.lwOperator),m=new RegExp(this.grOperator),v=new RegExp(this.dfOperator),b=new RegExp((0,a.rgxEsc)(this.lkOperator)),y=new RegExp(this.eqOperator),_=new RegExp(this.stOperator),C=new RegExp(this.enOperator),x=this.emOperator,w=this.nmOperator,E=new RegExp((0,a.rgxEsc)(this.rgxOperator)),T=this.refRow;T1,D=N.toString().split(this.anOperator),B=D.length>1;if((0,l.isArray)(N)||A||B){var H=void 0,M=void 0,j=!1;M=(0,l.isArray)(N)?N:A?k:D;for(var V=0,z=M.length;V0&&(l=s.indexOf(a)!==-1);var h=n[a].cells,f=h.length;if(f===this.nbCells&&!l)for(var p=0;p0,r=n?null:F.createDocumentFragment(),a=0;a",this.lwOperator=c.lower_operator||"<",this.leOperator=c.lower_equal_operator||"<=",this.geOperator=c.greater_equal_operator||">=",this.dfOperator=c.different_operator||"!",this.lkOperator=c.like_operator||"*",this.eqOperator=c.equal_operator||"=",this.stOperator=c.start_with_operator||"{",this.enOperator=c.end_with_operator||"}",this.curExp=c.cur_exp||"^[¥£€$]",this.separator=c.separator||",",this.rowsCounter=Boolean(c.rows_counter),this.statusBar=Boolean(c.status_bar),this.loader=Boolean(c.loader),this.displayBtn=Boolean(c.btn),this.btnText=c.btn_text||(this.enableIcons?"":"Go"),this.btnCssClass=c.btn_css_class||(this.enableIcons?"btnflt_icon":"btnflt"),this.btnReset=Boolean(c.btn_reset),this.btnResetCssClass=c.btn_reset_css_class||"reset",this.onBeforeReset=(0,l.isFn)(c.on_before_reset)?c.on_before_reset:null,this.onAfterReset=(0,l.isFn)(c.on_after_reset)?c.on_after_reset:null,this.paging=Boolean(c.paging),this.nbHiddenRows=0,this.autoFilter=Boolean(c.auto_filter),this.autoFilterDelay=isNaN(c.auto_filter_delay)?S.AUTO_FILTER_DELAY:c.auto_filter_delay,this.isUserTyping=null,this.autoFilterTimer=null,this.highlightKeywords=Boolean(c.highlight_keywords),this.noResults=(0,l.isObj)(c.no_results_message)||Boolean(c.no_results_message),this.state=(0,l.isObj)(c.state)||Boolean(c.state),this.defaultDateType=c.default_date_type||"DMY",this.thousandsSeparator=c.thousands_separator||",",this.decimalSeparator=c.decimal_separator||".",this.hasColNbFormat=(0,l.isArray)(c.col_number_format),this.colNbFormat=this.hasColNbFormat?c.col_number_format:null,this.hasColDateType=(0,l.isArray)(c.col_date_type),this.colDateType=this.hasColDateType?c.col_date_type:null,this.prfxTf="TF",this.prfxFlt="flt",this.prfxValButton="btn",this.prfxInfDiv="inf_",this.prfxLDiv="ldiv_",this.prfxRDiv="rdiv_",this.prfxMDiv="mdiv_",this.prfxResponsive="resp",this.extensions=c.extensions,this.hasExtensions=(0,l.isArray)(this.extensions),this.enableDefaultTheme=Boolean(c.enable_default_theme),this.hasThemes=this.enableDefaultTheme||(0,l.isArray)(c.themes),this.themes=c.themes||[],this.themesPath=c.themes_path||this.stylePath+"themes/",this.responsive=Boolean(c.responsive),this.Mod={},this.ExtRegistry={}}return t.prototype.init=function(){var t=this;if(!this.initialized){var e=this.Mod,i=this.singleSearchFlt?1:this.nbCells,s=void 0;if(this["import"](this.stylesheetId,this.stylesheet,null,"link"),this.hasThemes&&this.loadThemes(),e.help||(e.help=new w.Help(this)),this.help&&e.help.init(),this.state&&(e.state||(e.state=new P.State(this)),e.state.init()),this.gridLayout&&(e.gridLayout||(e.gridLayout=new u.GridLayout(this)),e.gridLayout.init()),this.loader&&(e.loader||(e.loader=new d.Loader(this)),e.loader.init()),this.highlightKeywords&&(e.highlightKeyword=new g.HighlightKeyword(this),e.highlightKeyword.init()),this.popupFilters&&(e.popupFilter||(e.popupFilter=new m.PopupFilter(this)),e.popupFilter.init()),this.fltGrid){var n=this._insertFiltersRow();this.nbFilterableRows=this.getRowsNb();for(var r=0;r0?e[0].insertRow(this.filtersRowIndex):this.tbl.insertRow(this.filtersRowIndex),t.className=this.fltsRowCssClass,this.isExternalFlt&&(t.style.display=S.NONE),this.emitter.emit("filters-row-inserted",this,t),t}},t.prototype._initNoFilters=function(){this.fltGrid||(this.refRow=this.refRow>0?this.refRow-1:0,this.nbFilterableRows=this.getRowsNb())},t.prototype._buildInputFilter=function(t,e,i){var s=this,n=this.getFilterType(t),a=this.isExternalFlt?this.externalFltTgtIds[t]:null,l=n===S.INPUT?"text":"hidden",h=(0,o.createElm)(S.INPUT,["id",this.prfxFlt+t+"_"+this.id],["type",l],["ct",t]);"hidden"!==l&&this.watermark&&h.setAttribute("placeholder",this.isWatermarkArray?this.watermark[t]||"":this.watermark),h.className=e||this.fltCssClass,(0,r.addEvt)(h,"focus",function(t){return s.onInpFocus(t)}),a?(0,o.elm)(a).appendChild(h):i.appendChild(h),this.fltIds.push(h.id),(0,r.addEvt)(h,"keypress",function(t){return s.detectKey(t)}),(0,r.addEvt)(h,"keydown",function(){return s.onKeyDown()}),(0,r.addEvt)(h,"keyup",function(t){return s.onKeyUp(t)}),(0,r.addEvt)(h,"blur",function(){return s.onInpBlur()})},t.prototype._buildSubmitButton=function(t,e){var i=this,s=this.isExternalFlt?this.externalFltTgtIds[t]:null,n=(0,o.createElm)(S.INPUT,["id",this.prfxValButton+t+"_"+this.id],["type","button"],["value",this.btnText]);n.className=this.btnCssClass,s?(0,o.elm)(s).appendChild(n):e.appendChild(n),(0,r.addEvt)(n,"click",function(){return i.filter()})},t.prototype.feature=function(t){return this.Mod[t]},t.prototype.initExtensions=function(){var t=this.extensions;i.p=this.basePath,this.emitter.emit("before-loading-extensions",this);for(var e=0,s=t.length;e',this.btnPrevPageHtml='',this.btnNextPageHtml='',this.btnFirstPageHtml='',this.btnLastPageHtml='',this.loader=!0,this.loaderHtml='
',this.loaderText=null,this.emitter.emit("after-loading-themes",this)},t.prototype.getStylesheet=function(){var t=arguments.length<=0||void 0===arguments[0]?"default":arguments[0];return(0,o.elm)(this.prfxTf+t)},t.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.Mod,i=this.emitter;this.isExternalFlt&&!this.popupFilters&&this.removeExternalFlts(),this.infDiv&&this.removeToolbar(),this.markActiveColumns&&(this.clearActiveColumns(),i.off(["before-filtering"],function(){return t.clearActiveColumns()}),i.off(["cell-processed"],function(e,i){return t.markActiveColumn(i)})),this.hasExtensions&&this.destroyExtensions(),this.validateAllRows(),this.fltGrid&&!this.gridLayout&&this.tbl.deleteRow(this.filtersRowIndex),i.emit("destroy",this),Object.keys(e).forEach(function(t){var i=e[t];i&&(0,l.isFn)(i.destroy)&&i.destroy()}),this.hasVisibleRows&&i.off(["after-filtering"],function(){return t.enforceVisibility()}),this.linkedFilters&&i.off(["after-filtering"],function(){return t.linkFilters()}),this.emitter.off(["filter-focus"],function(e,i){return t.setActiveFilterId(i.id)}),(0,o.removeClass)(this.tbl,this.prfxTf),(0,o.removeClass)(this.tbl,this.prfxResponsive),this.nbHiddenRows=0,this.validRowsIndex=[],this.fltIds=[],this.initialized=!1}},t.prototype.setToolbar=function(){if(!this.infDiv){var t=(0,o.createElm)("div",["id",this.prfxInfDiv+this.id]);if(t.className=this.infDivCssClass,this.toolBarTgtId)(0,o.elm)(this.toolBarTgtId).appendChild(t);else if(this.gridLayout){var e=this.Mod.gridLayout;e.tblMainCont.appendChild(t),t.className=e.infDivCssClass}else{var i=(0,o.createElm)("caption");i.appendChild(t),this.tbl.insertBefore(i,this.tbl.firstChild)}this.infDiv=(0,o.elm)(this.prfxInfDiv+this.id);var s=(0,o.createElm)("div",["id",this.prfxLDiv+this.id]);s.className=this.lDivCssClass,t.appendChild(s),this.lDiv=(0,o.elm)(this.prfxLDiv+this.id);var n=(0,o.createElm)("div",["id",this.prfxRDiv+this.id]);n.className=this.rDivCssClass,t.appendChild(n),this.rDiv=(0,o.elm)(this.prfxRDiv+this.id);var r=(0,o.createElm)("div",["id",this.prfxMDiv+this.id]);r.className=this.mDivCssClass,t.appendChild(r),this.mDiv=(0,o.elm)(this.prfxMDiv+this.id),(0,l.isUndef)(this.help)&&(this.Mod.help.enabled=!0,this.emitter.emit("init-help",this))}},t.prototype.removeToolbar=function(){if(this.infDiv){(0,o.removeElm)(this.infDiv),this.infDiv=null;var t=this.tbl,e=(0,o.tag)(t,"caption");e.length>0&&[].forEach.call(e,function(e){return t.removeChild(e)})}},t.prototype.removeExternalFlts=function(){if(this.isExternalFlt)for(var t=this.externalFltTgtIds,e=t.length,i=0;i=V):D?(V=(0,h.formatDate)(t.replace(m,""),n),s=j>V):H?(V=(0,h.formatDate)(t.replace(v,""),n),s=j.toString()!==V.toString()):M?(V=(0,h.formatDate)(t.replace(y,""),n),s=j.toString()===V.toString()):b.test(t)?s=(0,a.contains)(t.replace(b,""),e,!1,this.caseSensitive):(0,h.isValidDate)(t,n)?(V=(0,h.formatDate)(t,n),s=j.toString()===V.toString()):s=I?(0,a.isEmpty)(e):N?!(0,a.isEmpty)(e):(0,a.contains)(t,e,this.isExactMatch(i),this.caseSensitive);else if(this.hasColNbFormat&&this.colNbFormat[i]?(f=(0,c.removeNbFormat)(e,this.colNbFormat[i]),p=this.colNbFormat[i]):","===this.thousandsSeparator&&"."===this.decimalSeparator?(f=(0,c.removeNbFormat)(e,"us"),p="us"):(f=(0,c.removeNbFormat)(e,"eu"),p="eu"),o)s=f<=(0,c.removeNbFormat)(t.replace(u,""),p);else if(T)s=f>=(0,c.removeNbFormat)(t.replace(d,""),p);else if(r)s=f<(0,c.removeNbFormat)(t.replace(g,""),p);else if(l)s=f>(0,c.removeNbFormat)(t.replace(m,""),p);else if(P)s=!(0,a.contains)(t.replace(v,""),e,!1,this.caseSensitive);else if(F)s=(0,a.contains)(t.replace(b,""),e,!1,this.caseSensitive);else if(S)s=(0,a.contains)(t.replace(y,""),e,!0,this.caseSensitive);else if(R)s=0===e.indexOf(t.replace(_,""));else if(O){var z=t.replace(C,"");s=e.lastIndexOf(z,e.length-1)===e.length-1-(z.length-1)&&e.lastIndexOf(z,e.length-1)>-1}else if(I)s=(0,a.isEmpty)(e);else if(N)s=!(0,a.isEmpty)(e);else if(L)try{var U=t.replace(E,""),K=new RegExp(U);s=K.test(e)}catch(W){s=!1}else f&&this.hasColNbFormat&&this.colNbFormat[i]&&!this.singleSearchFlt?(t=(0,c.removeNbFormat)(t,p)||t,s=f===t||(0,a.contains)(t.toString(),f.toString(),this.isExactMatch(i),this.caseSensitive)):s=(0,a.contains)(t,e,this.isExactMatch(i),this.caseSensitive);return s}if(this.fltGrid&&this.initialized){this.onBeforeFilter&&this.onBeforeFilter.call(null,this),this.emitter.emit("before-filtering",this);var i=this.tbl.rows,s=this.getRowsNb(!0),n=0;this.validRowsIndex=[];for(var r=this.getFiltersValue(),f=void 0,p=void 0,u=new RegExp(this.leOperator),d=new RegExp(this.geOperator),g=new RegExp(this.lwOperator),m=new RegExp(this.grOperator),v=new RegExp(this.dfOperator),b=new RegExp((0,a.rgxEsc)(this.lkOperator)),y=new RegExp(this.eqOperator),_=new RegExp(this.stOperator),C=new RegExp(this.enOperator),x=this.emOperator,w=this.nmOperator,E=new RegExp((0,a.rgxEsc)(this.rgxOperator)),T=this.refRow;T1,D=N.toString().split(this.anOperator),B=D.length>1;if((0,l.isArray)(N)||A||B){var H=void 0,M=void 0,j=!1;M=(0,l.isArray)(N)?N:A?k:D;for(var V=0,z=M.length;V0&&(l=s.indexOf(a)!==-1);var h=n[a].cells,f=h.length;if(f===this.nbCells&&!l)for(var p=0;p0,r=n?null:F.createDocumentFragment(),a=0;a2)return t;var e=void 0;return t<=99&&t>50&&(e="19"+t),(t<50||"00"===t)&&(e="20"+t),e}function s(t){if(void 0===t)return 0;for(var e=void 0,i=["january","february","march","april","may","june","july","august","september","october","november","december","jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],s=0;s11||e<23)&&(e-=12),e<1||e>12?0:e}Object.defineProperty(e,"__esModule",{value:!0});var n=(e.isValidDate=function(t,e){if(e||(e="DMY"),e=e.toUpperCase(),3!==e.length&&"DDMMMYYYY"===e){var i=n(t,e);t=i.getDate()+"/"+(i.getMonth()+1)+"/"+i.getFullYear(),e="DMY"}e.indexOf("M")!==-1&&e.indexOf("D")!==-1&&e.indexOf("Y")!==-1||(e="DMY");var s=void 0,r=void 0;if("Y"===e.substring(0,1)?(s=/^\d{2}(\-|\/|\.)\d{1,2}\1\d{1,2}$/,r=/^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/):"Y"===e.substring(1,2)?(s=/^\d{1,2}(\-|\/|\.)\d{2}\1\d{1,2}$/,r=/^\d{1,2}(\-|\/|\.)\d{4}\1\d{1,2}$/):(s=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2}$/,r=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/),s.test(t)===!1&&r.test(t)===!1)return!1;var o=t.split(RegExp.$1),a=void 0,l=void 0,h=void 0;a="M"===e.substring(0,1)?o[0]:"M"===e.substring(1,2)?o[1]:o[2],l="D"===e.substring(0,1)?o[0]:"D"===e.substring(1,2)?o[1]:o[2],h="Y"===e.substring(0,1)?o[0]:"Y"===e.substring(1,2)?o[1]:o[2],parseInt(h,10)<=50&&(h=(parseInt(h,10)+2e3).toString()),parseInt(h,10)<=99&&(h=(parseInt(h,10)+1900).toString());var c=new Date(parseInt(h,10),parseInt(a,10)-1,parseInt(l,10),0,0,0,0);return parseInt(l,10)===c.getDate()&&parseInt(a,10)-1===c.getMonth()},e.formatDate=function(t,e){if(e||(e="DMY"),!t||""===t)return new Date(1001,0,1);var n=void 0,r=void 0;switch(e.toUpperCase()){case"DDMMMYYYY":r=t.replace(/[- \/.]/g," ").split(" "),n=new Date(i(r[2]),s(r[1])-1,r[0]);break;case"DMY":r=t.replace(/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)$/,"$1 $3 $5").split(" "),n=new Date(i(r[2]),r[1]-1,r[0]);break;case"MDY":r=t.replace(/^(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])([- \/.])((\d\d)?\d\d)$/,"$1 $3 $5").split(" "),n=new Date(i(r[2]),r[0]-1,r[1]);break;case"YMD":r=t.replace(/^((\d\d)?\d\d)([- \/.])(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])$/,"$1 $4 $6").split(" "),n=new Date(i(r[0]),r[1]-1,r[2]);break;default:r=t.replace(/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)$/,"$1 $3 $5").split(" "),n=new Date(i(r[2]),r[1]-1,r[0])}return n})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.removeNbFormat=function(t){var e=arguments.length<=1||void 0===arguments[1]?"us":arguments[1],i=t;return i="us"===e.toLowerCase()?+i.replace(/[^\d\.-]/g,""):+i.replace(/[^\d\,-]/g,"").replace(",",".")}},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.Emitter=function(){function t(){i(this,t),this.events={}}return t.prototype.on=function(t,e){var i=this;t.forEach(function(t){i.events[t]=i.events[t]||[],i.events[t].push(e)})},t.prototype.off=function(t,e){var i=this;t.forEach(function(t){t in i.events&&i.events[t].splice(i.events[t].indexOf(e),1)})},t.prototype.emit=function(t){if(t in this.events)for(var e=0;e0,i.fltGrid=r.enableFilters,r}return r(e,t),e.prototype.init=function(){var t=this,e=this.tf,i=e.tbl;if(!this.initialized){this.setOverrides(),this.setDefaultColWidths();var s=this.initialTableWidth();this.tblMainCont=this.createContainer(this.prfxMainTblCont+e.id,"div",this.mainContCssClass),this.width&&(this.tblMainCont.style.width=this.width),i.parentNode.insertBefore(this.tblMainCont,i),this.tblCont=this.createContainer(this.prfxTblCont+e.id,"div",this.contCssClass),this.setConfigWidth(this.tblCont),this.height&&(this.tblCont.style.height=this.height),i.parentNode.insertBefore(this.tblCont,i);var n=(0,a.removeElm)(i);this.tblCont.appendChild(n),""===i.style.width&&(i.style.width=((0,h.contains)("%",s)?i.clientWidth:s)+"px");var r=(0,a.removeElm)(this.tblCont);this.tblMainCont.appendChild(r),this.headTblCont=this.createContainer(this.prfxHeadTblCont+e.id,"div",this.headContCssClass),this.setConfigWidth(this.headTblCont),this.headTbl=(0,a.createElm)("table",["id",this.prfxHeadTbl+e.id]);var o=(0,a.createElm)("tHead"),f=i.rows[this.headRowIndex],p=this.getSortTriggerIds(f),u=this.createFiltersRow();this.setHeadersRow(o),this.headTbl.appendChild(o),0===e.filtersRowIndex?o.insertBefore(u,f):o.appendChild(u),this.headTblCont.appendChild(this.headTbl),this.tblCont.parentNode.insertBefore(this.headTblCont,this.tblCont);var d=(0,a.tag)(i,"thead");d.length>0&&i.removeChild(d[0]),this.headTbl.style.tableLayout="fixed",i.style.tableLayout="fixed",this.headTbl.cellPadding=i.cellPadding,this.headTbl.cellSpacing=i.cellSpacing,e.setColWidths(this.headTbl),i.style.width="",this.headTbl.style.width=i.clientWidth+"px",(0,l.addEvt)(this.tblCont,"scroll",function(e){var i=(0,l.targetEvt)(e),s=i.scrollLeft;t.headTblCont.scrollLeft=s});var g=e.extension("sort");g&&(g.asyncSort=!0,g.triggerIds=p),this.setColumnElements(),e.popupFilters&&(u.style.display=c.NONE),i.clientWidth!==this.headTbl.clientWidth&&(i.style.width=this.headTbl.clientWidth+"px"),this.initialized=!0}},e.prototype.setOverrides=function(){var t=this.tf;t.refRow=0,t.headersRow=0,t.filtersRowIndex=1,t.isExternalFlt=!0},e.prototype.setDefaultColWidths=function(){var t=this.tf;if(!t.hasColWidths){for(var e=0,i=t.getCellsNb();e0;for(var i=t.nbCells-1;i>=0;i--){var s=void 0,n=t.id+"_col_"+i;this.tblHasColTag?(s=e[i],s.setAttribute("id",n)):(s=(0,a.createElm)("col",["id",n]),t.tbl.insertBefore(s,t.tbl.firstChild)),s.style.width=t.colWidths[i],this.colElms[i]=s}this.tblHasColTag=!0},e.prototype.setHeadersRow=function(t){if(this.noHeaders)t.appendChild((0,a.createElm)("tr"));else for(var e=0;e',r.containerCssClass=o.popup_div_css_class||"popUpFilter",r.onBeforeOpen=(0,a.isFn)(o.on_before_popup_filter_open)?o.on_before_popup_filter_open:null,r.onAfterOpen=(0,a.isFn)(o.on_after_popup_filter_open)?o.on_after_popup_filter_open:null,r.onBeforeClose=(0,a.isFn)(o.on_before_popup_filter_close)?o.on_before_popup_filter_close:null,r.onAfterClose=(0,a.isFn)(o.on_after_popup_filter_close)?o.on_after_popup_filter_close:null,r.fltSpans=[],r.fltIcons=[],r.filtersCache=null,r.fltElms=r.filtersCache||[],r.adjustToContainer=!0,r.prfxSpan="popUpSpan_",r.prfxDiv="popUpDiv_",r}return r(e,t),e.prototype.onClick=function(t){var e=(0,h.targetEvt)(t).parentNode,i=parseInt(e.getAttribute("ci"),10);if(this.closeAll(i),this.toggle(i),this.adjustToContainer){var s=this.fltElms[i],n=this.tf.getHeaderElement(i),r=.95*n.clientWidth;s.style.width=parseInt(r,10)+"px"}(0,h.cancelEvt)(t),(0,h.stopEvt)(t)},e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf;e.headersRow<=1&&(e.headersRow=0);for(var i=0;is?1:0},e.numSortAsc=function(t,e){return t-e},e.numSortDesc=function(t,e){return e-t}},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(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}),e.CheckList=void 0;var o=i(10),a=i(3),l=i(16),h=i(5),c=i(17),f=i(1),p=i(4),u=i(11),d="Filter options for column {0} cannot be sorted in {1} manner.";e.CheckList=function(t){function e(i){s(this,e);var r=n(this,t.call(this,i,"checkList")),o=r.config;return r.containers=[],r.containerCssClass=o.div_checklist_css_class||"div_checklist",r.filterCssClass=o.checklist_css_class||"flt_checklist",r.itemCssClass=o.checklist_item_css_class||"flt_checklist_item",r.selectedItemCssClass=o.checklist_selected_item_css_class||"flt_checklist_slc_item",r.activateText=o.activate_checklist_text||"Click to load filter data",r.disabledItemCssClass=o.checklist_item_disabled_css_class||"flt_checklist_item_disabled",r.enableResetOption=o.enable_checklist_reset_filter!==!1,r.prfx="chkdiv_",r.isCustom=!1,r.opts=[],r.optsTxt=[],r.excludedOpts=[],r}return r(e,t),e.prototype.optionClick=function(t){var e=(0,f.targetEvt)(t),i=this.tf;this.emitter.emit("filter-focus",i,e),this.setCheckListValues(e),i.filter()},e.prototype.onCheckListClick=function(t){var e=this,i=(0,f.targetEvt)(t);if(this.tf.loadFltOnDemand&&"0"===i.getAttribute("filled")){var s=i.getAttribute("ct"),n=this.containers[s];this.build(s),(0,f.removeEvt)(n,"click",function(t){return e.onCheckListClick(t)})}},e.prototype.init=function(t,e,i){var s=this,n=this.tf,r=e?n.externalFltTgtIds[t]:null,o=(0,a.createElm)("div",["id",this.prfx+t+"_"+n.id],["ct",t],["filled","0"]);o.className=this.containerCssClass,r?(0,a.elm)(r).appendChild(o):i.appendChild(o),this.containers[t]=o,n.fltIds.push(n.prfxFlt+t+"_"+n.id),n.loadFltOnDemand?((0,f.addEvt)(o,"click",function(t){return s.onCheckListClick(t)}),o.appendChild((0,a.createText)(this.activateText))):this.build(t),this.emitter.on(["build-checklist-filter"],function(t,e){return s.build(e)}),this.emitter.on(["select-checklist-options"],function(t,e,i){return s.selectOptions(e,i)}),this.initialized=!0},e.prototype.build=function(t){var e=this.tf;t=parseInt(t,10),this.emitter.emit("before-populating-filter",e,t),this.opts=[],this.optsTxt=[];var i=this.containers[t],s=(0,a.createElm)("ul",["id",e.fltIds[t]],["colIndex",t]);s.className=this.filterCssClass;var n=e.tbl.rows,r=e.getRowsNb(!0),o=e.caseSensitive;this.isCustom=e.isCustomOptions(t);var f=void 0,p=e.getActiveFilterId();e.linkedFilters&&p&&(f=e.getColumnIndexFromFilterId(p));var u=[];e.linkedFilters&&e.disableExcludedOptions&&(this.excludedOpts=[]),i.innerHTML="";for(var g=e.refRow;g0?1:0),r=n+s.pagingLength-1<=e.getValidRowsNb()?n+s.pagingLength-1:e.getValidRowsNb();i=n+this.fromToTextSeparator+r+this.overText+e.getValidRowsNb()}}else i=t&&""!==t?t:e.getFilterableRowsNb()-e.nbHiddenRows;this.label.innerHTML=i,this.onAfterRefreshCounter&&this.onAfterRefreshCounter.call(null,e,this.label,i)}},e.prototype.destroy=function(){var t=this;this.initialized&&(!this.targetId&&this.container?(0,a.removeElm)(this.container):(0,a.elm)(this.targetId).innerHTML="",this.label=null,this.container=null,this.emitter.off(["after-filtering","grouped-by-page"],function(){return t.refresh(tf.getValidRowsNb())}),this.emitter.off(["rows-changed"],function(){return t.refresh()}),this.initialized=!1)},e}(o.Feature)},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(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}),e.StatusBar=void 0;var o=i(10),a=i(2),l=i(3),h=i(4);e.StatusBar=function(t){function e(i){s(this,e);var r=n(this,t.call(this,i,"statusBar")),o=r.config;return r.targetId=o.status_bar_target_id||null,r.container=null,r.msgContainer=null,r.labelContainer=null,r.text=o.status_bar_text||"",r.cssClass=o.status_bar_css_class||"status",r.delay=250,r.onBeforeShowMsg=(0,h.isFn)(o.on_before_show_msg)?o.on_before_show_msg:null,r.onAfterShowMsg=(0,h.isFn)(o.on_after_show_msg)?o.on_after_show_msg:null,r.msgFilter=o.msg_filter||"Filtering data...",r.msgPopulate=o.msg_populate||"Populating filter...",r.msgPopulateCheckList=o.msg_populate_checklist||"Populating list...",r.msgChangePage=o.msg_change_page||"Collecting paging data...",r.msgClear=o.msg_clear||"Clearing filters...",r.msgChangeResults=o.msg_change_results||"Changing results per page...",r.msgResetPage=o.msg_reset_page||"Re-setting page...",r.msgResetPageLength=o.msg_reset_page_length||"Re-setting page length...",r.msgSort=o.msg_sort||"Sorting data...",r.msgLoadExtensions=o.msg_load_extensions||"Loading extensions...",r.msgLoadThemes=o.msg_load_themes||"Loading theme(s)...",r.prfxCont="status_",r.prfxLabel="statusSpan_",r.prfxText="statusText_",r}return r(e,t),e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf,i=this.emitter,s=(0,l.createElm)("div",["id",this.prfxCont+e.id]);s.className=this.cssClass;var n=(0,l.createElm)("span",["id",this.prfxLabel+e.id]),r=(0,l.createElm)("span",["id",this.prfxText+e.id]);r.appendChild((0,l.createText)(this.text)),this.targetId||e.setToolbar();var o=this.targetId?(0,l.elm)(this.targetId):e.lDiv;this.targetId?(o.appendChild(r),o.appendChild(n)):(s.appendChild(r),s.appendChild(n),o.appendChild(s)),this.container=s,this.msgContainer=n,this.labelContainer=r,i.on(["before-filtering"],function(){return t.message(t.msgFilter)}),i.on(["before-populating-filter"],function(){return t.message(t.msgPopulate)}),i.on(["before-page-change"],function(){return t.message(t.msgChangePage)}),i.on(["before-clearing-filters"],function(){return t.message(t.msgClear)}),i.on(["before-page-length-change"],function(){return t.message(t.msgChangeResults)}),i.on(["before-reset-page"],function(){return t.message(t.msgResetPage)}),i.on(["before-reset-page-length"],function(){return t.message(t.msgResetPageLength)}),i.on(["before-loading-extensions"],function(){return t.message(t.msgLoadExtensions)}),i.on(["before-loading-themes"],function(){return t.message(t.msgLoadThemes)}),i.on(["after-filtering","after-populating-filter","after-page-change","after-clearing-filters","after-page-length-change","after-reset-page","after-reset-page-length","after-loading-extensions","after-loading-themes"],function(){return t.message("")}),this.initialized=!0}},e.prototype.message=function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?"":arguments[0];if(this.isEnabled()){this.onBeforeShowMsg&&this.onBeforeShowMsg.call(null,this.tf,e);var i=""===e?this.delay:1;a.root.setTimeout(function(){t.initialized&&(t.msgContainer.innerHTML=e,t.onAfterShowMsg&&t.onAfterShowMsg.call(null,t.tf,e))},i)}},e.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.emitter;this.container.innerHTML="",this.targetId||(0,l.removeElm)(this.container),this.labelContainer=null,this.msgContainer=null,this.container=null,e.off(["before-filtering"],function(){return t.message(t.msgFilter)}),e.off(["before-populating-filter"],function(){return t.message(t.msgPopulate)}),e.off(["before-page-change"],function(){return t.message(t.msgChangePage)}),e.off(["before-clearing-filters"],function(){return t.message(t.msgClear)}),e.off(["before-page-length-change"],function(){return t.message(t.msgChangeResults)}),e.off(["before-reset-page"],function(){return t.message(t.msgResetPage)}),e.off(["before-reset-page-length"],function(){return t.message(t.msgResetPageLength)}),e.off(["before-loading-extensions"],function(){return t.message(t.msgLoadExtensions)}),e.off(["before-loading-themes"],function(){return t.message(t.msgLoadThemes)}),e.off(["after-filtering","after-populating-filter","after-page-change","after-clearing-filters","after-page-length-change","after-reset-page","after-reset-page-length","after-loading-extensions","after-loading-themes"],function(){return t.message("")}),this.initialized=!1}},e}(o.Feature)},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(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}),e.Paging=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},a=i(10),l=i(3),h=i(4),c=i(1),f=i(11);e.Paging=function(t){function e(i){s(this,e);var r=n(this,t.call(this,i,"paging")),o=r.config;r.btnPageCssClass=o.paging_btn_css_class||"pgInp",r.pagingSlc=null,r.resultsPerPageSlc=null,r.pagingTgtId=o.paging_target_id||null,r.pagingLength=isNaN(o.paging_length)?10:o.paging_length,r.resultsPerPageTgtId=o.results_per_page_target_id||null,r.pgSlcCssClass=o.paging_slc_css_class||"pgSlc",r.pgInpCssClass=o.paging_inp_css_class||"pgNbInp",r.resultsPerPage=o.results_per_page||null,r.hasResultsPerPage=(0,h.isArray)(r.resultsPerPage),r.resultsSlcCssClass=o.results_slc_css_class||"rspg",r.resultsSpanCssClass=o.results_span_css_class||"rspgSpan",r.startPagingRow=0,r.nbPages=0,r.currentPageNb=1,r.btnNextPageText=o.btn_next_page_text||">",r.btnPrevPageText=o.btn_prev_page_text||"<",r.btnLastPageText=o.btn_last_page_text||">|",r.btnFirstPageText=o.btn_first_page_text||"|<",r.btnNextPageHtml=o.btn_next_page_html||(i.enableIcons?'':null),r.btnPrevPageHtml=o.btn_prev_page_html||(i.enableIcons?'':null),r.btnFirstPageHtml=o.btn_first_page_html||(i.enableIcons?'':null),r.btnLastPageHtml=o.btn_last_page_html||(i.enableIcons?'':null),r.pageText=o.page_text||" Page ",r.ofText=o.of_text||" of ",r.nbPgSpanCssClass=o.nb_pages_css_class||"nbpg",r.hasPagingBtns=o.paging_btns!==!1,r.pageSelectorType=o.page_selector_type||f.SELECT,r.onBeforeChangePage=(0,h.isFn)(o.on_before_change_page)?o.on_before_change_page:null,r.onAfterChangePage=(0,h.isFn)(o.on_after_change_page)?o.on_after_change_page:null,r.prfxSlcPages="slcPages_",r.prfxSlcResults="slcResults_",r.prfxSlcResultsTxt="slcResultsTxt_",r.prfxBtnNextSpan="btnNextSpan_",r.prfxBtnPrevSpan="btnPrevSpan_",r.prfxBtnLastSpan="btnLastSpan_",r.prfxBtnFirstSpan="btnFirstSpan_",r.prfxBtnNext="btnNext_",r.prfxBtnPrev="btnPrev_",r.prfxBtnLast="btnLast_",r.prfxBtnFirst="btnFirst_",r.prfxPgSpan="pgspan_",r.prfxPgBeforeSpan="pgbeforespan_",r.prfxPgAfterSpan="pgafterspan_";var a=i.refRow,l=i.getRowsNb(!0);r.nbPages=Math.ceil((l-a)/r.pagingLength);var p=r;return r.evt={slcIndex:function(){return p.pageSelectorType===f.SELECT?p.pagingSlc.options.selectedIndex:parseInt(p.pagingSlc.value,10)-1},nbOpts:function(){return p.pageSelectorType===f.SELECT?parseInt(p.pagingSlc.options.length,10)-1:p.nbPages-1},next:function(){var t=p.evt.slcIndex()0?p.evt.slcIndex()-1:p.evt.nbOpts();p.changePage(t)},last:function(){p.changePage(p.evt.nbOpts())},first:function(){p.changePage(0)},_detectKey:function(t){var e=(0,c.keyCode)(t);e===f.ENTER_KEY&&(i.sorted?(i.filter(),p.changePage(p.evt.slcIndex())):p.changePage(),this.blur())},slcPagesChange:null,nextEvt:null,prevEvt:null,lastEvt:null,firstEvt:null},r}return r(e,t),e.prototype.init=function(){var t,e=this,i=this.tf,s=this.evt;if(!this.initialized){this.hasResultsPerPage&&(this.resultsPerPage.length<2?this.hasResultsPerPage=!1:(this.pagingLength=this.resultsPerPage[1][0],this.setResultsPerPage())),s.slcPagesChange=function(t){var i=t.target;e.changePage(i.selectedIndex)},this.pageSelectorType===f.SELECT&&(t=(0,l.createElm)(f.SELECT,["id",this.prfxSlcPages+i.id]),t.className=this.pgSlcCssClass,(0,c.addEvt)(t,"change",s.slcPagesChange)),this.pageSelectorType===f.INPUT&&(t=(0,l.createElm)(f.INPUT,["id",this.prfxSlcPages+i.id],["value",this.currentPageNb]),t.className=this.pgInpCssClass,(0,c.addEvt)(t,"keypress",s._detectKey));var n=(0,l.createElm)("span",["id",this.prfxBtnNextSpan+i.id]),r=(0,l.createElm)("span",["id",this.prfxBtnPrevSpan+i.id]),o=(0,l.createElm)("span",["id",this.prfxBtnLastSpan+i.id]),a=(0,l.createElm)("span",["id",this.prfxBtnFirstSpan+i.id]);if(this.hasPagingBtns){if(this.btnNextPageHtml)n.innerHTML=this.btnNextPageHtml,(0,c.addEvt)(n,"click",s.next);else{var h=(0,l.createElm)(f.INPUT,["id",this.prfxBtnNext+i.id],["type","button"],["value",this.btnNextPageText],["title","Next"]);h.className=this.btnPageCssClass,(0,c.addEvt)(h,"click",s.next),n.appendChild(h)}if(this.btnPrevPageHtml)r.innerHTML=this.btnPrevPageHtml,(0,c.addEvt)(r,"click",s.prev);else{var p=(0,l.createElm)(f.INPUT,["id",this.prfxBtnPrev+i.id],["type","button"],["value",this.btnPrevPageText],["title","Previous"]);p.className=this.btnPageCssClass,(0,c.addEvt)(p,"click",s.prev),r.appendChild(p)}if(this.btnLastPageHtml)o.innerHTML=this.btnLastPageHtml,(0,c.addEvt)(o,"click",s.last);else{var u=(0,l.createElm)(f.INPUT,["id",this.prfxBtnLast+i.id],["type","button"],["value",this.btnLastPageText],["title","Last"]);u.className=this.btnPageCssClass,(0,c.addEvt)(u,"click",s.last),o.appendChild(u)}if(this.btnFirstPageHtml)a.innerHTML=this.btnFirstPageHtml,(0,c.addEvt)(a,"click",s.first);else{var d=(0,l.createElm)(f.INPUT,["id",this.prfxBtnFirst+i.id],["type","button"],["value",this.btnFirstPageText],["title","First"]);d.className=this.btnPageCssClass,(0,c.addEvt)(d,"click",s.first),a.appendChild(d)}}this.pagingTgtId||i.setToolbar();var g=this.pagingTgtId?(0,l.elm)(this.pagingTgtId):i.mDiv;g.appendChild(a),g.appendChild(r);var m=(0,l.createElm)("span",["id",this.prfxPgBeforeSpan+i.id]);m.appendChild((0,l.createText)(this.pageText)),m.className=this.nbPgSpanCssClass,g.appendChild(m),g.appendChild(t);var v=(0,l.createElm)("span",["id",this.prfxPgAfterSpan+i.id]);v.appendChild((0,l.createText)(this.ofText)),v.className=this.nbPgSpanCssClass,g.appendChild(v);var b=(0,l.createElm)("span",["id",this.prfxPgSpan+i.id]);b.className=this.nbPgSpanCssClass,b.appendChild((0,l.createText)(" "+this.nbPages+" ")),g.appendChild(b),g.appendChild(n),g.appendChild(o),this.pagingSlc=(0,l.elm)(this.prfxSlcPages+i.id),this.setPagingInfo(),i.fltGrid||(i.validateAllRows(),this.setPagingInfo(i.validRowsIndex)),this.emitter.on(["after-filtering"],function(){return e.resetPagingInfo()}),this.emitter.on(["change-page"],function(t,i){return e.setPage(i)}),this.emitter.on(["change-page-results"],function(t,i){return e.changeResultsPerPage(i)}),this.initialized=!0}},e.prototype.reset=function(){var t=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],e=this.tf;this.isEnabled()||(this.enable(),this.init(),t&&e.filter())},e.prototype.resetPagingInfo=function(){this.startPagingRow=0,this.currentPageNb=1,this.setPagingInfo(this.tf.validRowsIndex)},e.prototype.setPagingInfo=function(t){var e=this.tf,i=this.pagingTgtId?(0,l.elm)(this.pagingTgtId):e.mDiv,s=(0,l.elm)(this.prfxPgSpan+e.id);if(e.validRowsIndex=t||e.getValidRows(!0),this.nbPages=Math.ceil(e.validRowsIndex.length/this.pagingLength),s.innerHTML=this.nbPages,this.pageSelectorType===f.SELECT&&(this.pagingSlc.innerHTML=""),this.nbPages>0)if(i.style.visibility="visible",this.pageSelectorType===f.SELECT)for(var n=0;n=s&&r=0&&t<=this.nbPages-1&&(this.onBeforeChangePage&&this.onBeforeChangePage.call(null,this,t+1),this.currentPageNb=parseInt(t,10)+1,this.pageSelectorType===f.SELECT?this.pagingSlc.options[t].selected=!0:this.pagingSlc.value=this.currentPageNb,this.startPagingRow=this.pageSelectorType===f.SELECT?this.pagingSlc.value:t*this.pagingLength,this.groupByPage(),this.onAfterChangePage&&this.onAfterChangePage.call(null,this,t+1)),this.emitter.emit("after-page-change",e,t+1))},e.prototype.changeResultsPerPage=function(t){this.isEnabled()&&!isNaN(t)&&(this.resultsPerPageSlc.value=t,this.onChangeResultsPerPage())},e.prototype.onChangeResultsPerPage=function(){var t=this.tf;if(this.isEnabled()){this.emitter.emit("before-page-length-change",t);var e=this.resultsPerPageSlc,i=e.selectedIndex,s=this.pageSelectorType===f.SELECT?this.pagingSlc.selectedIndex:parseInt(this.pagingSlc.value-1,10);if(this.pagingLength=parseInt(e.options[i].value,10),this.startPagingRow=this.pagingLength*s,!isNaN(this.pagingLength)&&(this.startPagingRow>=t.nbFilterableRows&&(this.startPagingRow=t.nbFilterableRows-this.pagingLength),this.setPagingInfo(),this.pageSelectorType===f.SELECT)){var n=this.pagingSlc.options.length-1<=s?this.pagingSlc.options.length-1:s;this.pagingSlc.options[n].selected=!0}this.emitter.emit("after-page-length-change",t,this.pagingLength)}},e.prototype.resetPage=function(){var t=this.tf;if(this.isEnabled()){this.emitter.emit("before-reset-page",t);var e=t.feature("store").getPageNb();""!==e&&this.changePage(e-1),this.emitter.emit("after-reset-page",t,e)}},e.prototype.resetPageLength=function(){var t=this.tf;if(this.isEnabled()){this.emitter.emit("before-reset-page-length",t);var e=t.feature("store").getPageLength();""!==e&&(this.resultsPerPageSlc.options[e].selected=!0,this.changeResultsPerPage()),this.emitter.emit("after-reset-page-length",t,e)}},e.prototype.destroy=function(){var t=this,e=this.tf;if(this.initialized){var i=(0,l.elm)(this.prfxBtnNextSpan+e.id),s=(0,l.elm)(this.prfxBtnPrevSpan+e.id),n=(0,l.elm)(this.prfxBtnLastSpan+e.id),r=(0,l.elm)(this.prfxBtnFirstSpan+e.id),o=(0,l.elm)(this.prfxPgBeforeSpan+e.id),a=(0,l.elm)(this.prfxPgAfterSpan+e.id),h=(0,l.elm)(this.prfxPgSpan+e.id),p=this.evt;this.pagingSlc&&(this.pageSelectorType===f.SELECT?(0,c.removeEvt)(this.pagingSlc,"change",p.slcPagesChange):this.pageSelectorType===f.INPUT&&(0,c.removeEvt)(this.pagingSlc,"keypress",p._detectKey),(0,l.removeElm)(this.pagingSlc)),i&&((0,c.removeEvt)(i,"click",p.next),(0,l.removeElm)(i)),s&&((0,c.removeEvt)(s,"click",p.prev),(0,l.removeElm)(s)),n&&((0,c.removeEvt)(n,"click",p.last),(0,l.removeElm)(n)),r&&((0,c.removeEvt)(r,"click",p.first),(0,l.removeElm)(r)),o&&(0,l.removeElm)(o),a&&(0,l.removeElm)(a),h&&(0,l.removeElm)(h),this.hasResultsPerPage&&this.removeResultsPerPage(),this.emitter.off(["after-filtering"],function(){return t.resetPagingInfo()}),this.emitter.off(["change-page"],function(e,i){return t.setPage(i)}),this.emitter.off(["change-page-results"],function(e,i){return t.changeResultsPerPage(i)}),this.pagingSlc=null,this.nbPages=0,this.disable(),this.initialized=!1}},e}(a.Feature)},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(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}),e.ClearButton=void 0;var o=i(10),a=i(3),l=i(1);e.ClearButton=function(t){function e(i){s(this,e);var r=n(this,t.call(this,i,"btnReset")),o=r.config;return r.targetId=o.btn_reset_target_id||null,r.element=null,r.text=o.btn_reset_text||"Reset",r.tooltip=o.btn_reset_tooltip||"Clear filters",r.html=o.btn_reset_html||(i.enableIcons?'':null),r.prfxCont="resetspan_",r}return r(e,t),e.prototype.onClick=function(){this.isEnabled()&&this.tf.clearFilters()},e.prototype.init=function(){var t=this,e=this.tf;if(!this.initialized){var i=(0,a.createElm)("span",["id",this.prfxCont+e.id]);this.targetId||e.setToolbar();var s=this.targetId?(0,a.elm)(this.targetId):e.rDiv;if(s.appendChild(i),this.html){i.innerHTML=this.html;var n=i.firstChild;(0,l.addEvt)(n,"click",function(){return t.onClick()})}else{var r=(0,a.createElm)("a",["href","javascript:void(0);"]);r.className=e.btnResetCssClass,r.appendChild((0,a.createText)(this.text)),i.appendChild(r),(0,l.addEvt)(r,"click",function(){return t.onClick()})}this.element=i.firstChild,this.initialized=!0}},e.prototype.destroy=function(){var t=this.tf;if(this.initialized){var e=(0,a.elm)(this.prfxCont+t.id);e&&(0,a.removeElm)(e),this.element=null,this.initialized=!1}},e}(o.Feature)},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(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}),e.Help=void 0;var o=i(10),a=i(3),l=i(1),h=i(11),c="https://github.com/koalyptus/TableFilter/wiki/4.-Filter-operators",f="http://koalyptus.github.io/TableFilter/";e.Help=function(t){function e(i){s(this,e);var r=n(this,t.call(this,i,"help")),o=r.config;return r.tgtId=o.help_instructions_target_id||null,r.contTgtId=o.help_instructions_container_target_id||null,r.instrText=o.help_instructions_text?o.help_instructions_text:'Use the filters above each column to filter and limit table data. Advanced searches can be performed by using the following operators:
<, <=, >, >=, =, *, !, {, }, ||,&&, [empty], [nonempty], rgx:
Learn more
',r.instrHtml=o.help_instructions_html||null,r.btnText=o.help_instructions_btn_text||"?",r.btnHtml=o.help_instructions_btn_html||null,r.btnCssClass=o.help_instructions_btn_css_class||"helpBtn",r.contCssClass=o.help_instructions_container_css_class||"helpCont",r.btn=null,r.cont=null,r.defaultHtml='

TableFilter v'+i.version+'

'+f+"
©2015-"+i.year+' Max Guglielmi
',r.prfxHelpSpan="helpSpan_",r.prfxHelpDiv="helpDiv_",r.emitter.on(["init-help"],function(){return r.init()}),r}return r(e,t),e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf,i=(0,a.createElm)("span",["id",this.prfxHelpSpan+e.id]),s=(0,a.createElm)("div",["id",this.prfxHelpDiv+e.id]);this.tgtId||e.setToolbar();var n=this.tgtId?(0,a.elm)(this.tgtId):e.rDiv;n.appendChild(i);var r=this.contTgtId?(0,a.elm)(this.contTgtId):i;if(this.btnHtml){i.innerHTML=this.btnHtml;var o=i.firstChild;(0,l.addEvt)(o,"click",function(){return t.toggle()}),r.appendChild(s)}else{r.appendChild(s);var h=(0,a.createElm)("a",["href","javascript:void(0);"]);h.className=this.btnCssClass,h.appendChild((0,a.createText)(this.btnText)),i.appendChild(h),(0,l.addEvt)(h,"click",function(){return t.toggle()})}this.instrHtml?(this.contTgtId&&r.appendChild(s),s.innerHTML=this.instrHtml,this.contTgtId||(s.className=this.contCssClass,(0,l.addEvt)(s,"dblclick",function(){return t.toggle()}))):(s.innerHTML=this.instrText,s.className=this.contCssClass,(0,l.addEvt)(s,"dblclick",function(){return t.toggle()})),s.innerHTML+=this.defaultHtml,(0,l.addEvt)(s,"click",function(){return t.toggle()}),this.cont=s,this.btn=i,this.initialized=!0}},e.prototype.toggle=function(){if(this.enabled!==!1){var t=this.cont.style.display;""===t||t===h.NONE?this.cont.style.display="inline":this.cont.style.display=h.NONE}},e.prototype.destroy=function(){this.initialized&&((0,a.removeElm)(this.btn),this.btn=null,this.cont&&((0,a.removeElm)(this.cont),this.cont=null,this.initialized=!1))},e}(o.Feature)},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(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}),e.AlternateRows=void 0;var o=i(10),a=i(3);e.AlternateRows=function(t){function e(i){s(this,e);var r=n(this,t.call(this,i,"alternateRows")),o=r.config;return r.evenCss=o.even_row_css_class||"even",r.oddCss=o.odd_row_css_class||"odd",r}return r(e,t),e.prototype.init=function(){var t=this;this.initialized||(this.processAll(),this.emitter.on(["row-processed","row-paged"],function(e,i,s,n){return t.processRow(i,s,n)}),this.emitter.on(["column-sorted"],function(){return t.processAll()}),this.initialized=!0)},e.prototype.processAll=function(){if(this.isEnabled())for(var t=this.tf,e=t.getValidRows(!0),i=e.length,s=0,n=0;n0?this.hide():this.show()},e.prototype.show=function(){this.initialized&&this.isEnabled()&&(this.onBeforeShow&&this.onBeforeShow.call(null,this.tf,this),this.setWidth(),this.cont.style.display="block",this.onAfterShow&&this.onAfterShow.call(null,this.tf,this))},e.prototype.hide=function(){this.initialized&&this.isEnabled()&&(this.onBeforeHide&&this.onBeforeHide.call(null,this.tf,this),this.cont.style.display=h.NONE,this.onAfterHide&&this.onAfterHide.call(null,this.tf,this))},e.prototype.setWidth=function(){if(this.initialized&&!this.isExternal&&this.isEnabled()){var t=this.tf;if(t.gridLayout){var e=t.feature("gridLayout");this.cont.style.width=e.tblCont.clientWidth+"px"}else this.cont.style.width=(t.tbl.tHead?t.tbl.tHead.clientWidth:t.tbl.tBodies[0].clientWidth)+"px"}},e.prototype.destroy=function(){var t=this;this.initialized&&((0,a.removeElm)(this.cont),this.cont=null,this.emitter.off(["after-filtering"],function(){return t.toggle()}),this.initialized=!1)},e}(o.Feature)},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(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}),e.State=void 0;var o=i(10),a=i(27),l=i(28),h=i(5),c=i(4);e.State=function(t){function e(i){s(this,e);var r=n(this,t.call(this,i,"state")),o=r.config.state;return r.enableHash=o===!0||(0,c.isArray)(o.types)&&o.types.indexOf("hash")!==-1,r.enableLocalStorage=(0,c.isArray)(o.types)&&o.types.indexOf("local_storage")!==-1,r.enableCookie=(0,c.isArray)(o.types)&&o.types.indexOf("cookie")!==-1,r.persistFilters=o.filters!==!1,r.persistPageNumber=Boolean(o.page_number),r.persistPageLength=Boolean(o.page_length),r.persistSort=Boolean(o.sort),r.persistColsVisibility=Boolean(o.columns_visibility),r.persistFiltersVisibility=Boolean(o.filters_visibility),r.cookieDuration=isNaN(o.cookie_duration)?87600:parseInt(o.cookie_duration,10),r.enableStorage=r.enableLocalStorage||r.enableCookie,r.storage=null,r.hash=null,r.pageNb=null,r.pageLength=null,r.sort=null,r.hiddenCols=null,r.filtersVisibility=null,r.state={},r.prfxCol="col_",r.pageNbKey="page",r.pageLengthKey="page_length",r.filtersVisKey="filters_visibility",r}return r(e,t),e.prototype.init=function(){var t=this;this.initialized||(this.emitter.on(["after-filtering"],function(){return t.update()}),this.emitter.on(["after-page-change","after-clearing-filters"],function(e,i){return t.updatePage(i)}),this.emitter.on(["after-page-length-change"],function(e,i){return t.updatePageLength(i)}),this.emitter.on(["column-sorted"],function(e,i,s){return t.updateSort(i,s)}),this.emitter.on(["sort-initialized"],function(){return t._syncSort()}),this.emitter.on(["columns-visibility-initialized"],function(){return t._syncColsVisibility()}),this.emitter.on(["column-shown","column-hidden"],function(e,i,s,n){return t.updateColsVisibility(n)}),this.emitter.on(["filters-visibility-initialized"],function(){return t._syncFiltersVisibility()}),this.emitter.on(["filters-toggled"],function(e,i,s){return t.updateFiltersVisibility(s)}),this.enableHash&&(this.hash=new a.Hash(this),this.hash.init()),this.enableStorage&&(this.storage=new l.Storage(this),this.storage.init()),this.initialized=!0)},e.prototype.update=function(){var t=this;if(this.isEnabled()){var e=this.state,i=this.tf;if(this.persistFilters){var s=i.getFiltersValue();s.forEach(function(i,s){var n=""+t.prfxCol+s;(0,c.isString)(i)&&(0,h.isEmpty)(i)?e.hasOwnProperty(n)&&(e[n].flt=void 0):(e[n]=e[n]||{},e[n].flt=i)})}if(this.persistPageNumber&&((0,c.isNull)(this.pageNb)?e[this.pageNbKey]=void 0:e[this.pageNbKey]=this.pageNb),this.persistPageLength&&((0,c.isNull)(this.pageLength)?e[this.pageLengthKey]=void 0:e[this.pageLengthKey]=this.pageLength),this.persistSort&&!(0,c.isNull)(this.sort)){Object.keys(e).forEach(function(i){i.indexOf(t.prfxCol)!==-1&&e[i]&&(e[i].sort=void 0)});var n=""+this.prfxCol+this.sort.column;e[n]=e[n]||{},e[n].sort={descending:this.sort.descending}}this.persistColsVisibility&&((0,c.isNull)(this.hiddenCols)||(Object.keys(e).forEach(function(i){i.indexOf(t.prfxCol)!==-1&&e[i]&&(e[i].hidden=void 0)}),this.hiddenCols.forEach(function(i){var s=""+t.prfxCol+i;e[s]=e[s]||{},e[s].hidden=!0}))),this.persistFiltersVisibility&&((0,c.isNull)(this.filtersVisibility)?e[this.filtersVisKey]=void 0:e[this.filtersVisKey]=this.filtersVisibility),this.emitter.emit("state-changed",i,e)}},e.prototype.updatePage=function(t){this.pageNb=t,this.update()},e.prototype.updatePageLength=function(t){this.pageLength=t,this.update()},e.prototype.updateSort=function(t,e){this.sort={column:t,descending:e},this.update()},e.prototype.updateColsVisibility=function(t){this.hiddenCols=t,this.update()},e.prototype.updateFiltersVisibility=function(t){this.filtersVisibility=t,this.update()},e.prototype.override=function(t){this.state=t},e.prototype.sync=function(){var t=this.state,e=this.tf;if(this._syncFilters(),this.persistPageNumber){var i=t[this.pageNbKey];this.emitter.emit("change-page",e,i)}if(this.persistPageLength){var s=t[this.pageLengthKey];this.emitter.emit("change-page-results",e,s)}this._syncSort(),this._syncColsVisibility(),this._syncFiltersVisibility()},e.prototype.overrideAndSync=function(t){this.disable(),this.override(t),this.sync(),this.enable()},e.prototype._syncFilters=function(){var t=this;if(this.persistFilters){var e=this.state,i=this.tf;Object.keys(e).forEach(function(s){if(s.indexOf(t.prfxCol)!==-1){var n=parseInt(s.replace(t.prfxCol,""),10),r=e[s].flt;i.setFilterValue(n,r)}}),i.filter()}},e.prototype._syncSort=function(){var t=this;if(this.persistSort){var e=this.state,i=this.tf;Object.keys(e).forEach(function(s){if(s.indexOf(t.prfxCol)!==-1){var n=parseInt(s.replace(t.prfxCol,""),10);if(!(0,c.isUndef)(e[s].sort)){var r=e[s].sort;t.emitter.emit("sort",i,n,r.descending)}}})}},e.prototype._syncColsVisibility=function(){var t=this;if(this.persistColsVisibility){var e=this.state,i=this.tf,s=[];Object.keys(e).forEach(function(i){if(i.indexOf(t.prfxCol)!==-1){var n=parseInt(i.replace(t.prfxCol,""),10);(0,c.isUndef)(e[i].hidden)||s.push(n)}}),s.forEach(function(e){t.emitter.emit("hide-column",i,e)})}},e.prototype._syncFiltersVisibility=function(){if(this.persistFiltersVisibility){var t=this.state,e=this.tf,i=t[this.filtersVisKey];this.filtersVisibility=i,this.emitter.emit("show-filters",e,i)}},e.prototype.destroy=function(){var t=this;this.initialized&&(this.state={},this.emitter.off(["after-filtering"],function(){return t.update()}),this.emitter.off(["after-page-change","after-clearing-filters"],function(e,i){return t.updatePage(i)}),this.emitter.off(["after-page-length-change"],function(e,i){return t.updatePageLength(i)}),this.emitter.off(["column-sorted"],function(e,i,s){return t.updateSort(i,s)}),this.emitter.off(["sort-initialized"],function(){return t._syncSort()}),this.emitter.off(["columns-visibility-initialized"],function(){return t._syncColsVisibility()}),this.emitter.off(["column-shown","column-hidden"],function(e,i,s,n){return t.updateColsVisibility(n)}),this.emitter.off(["filters-visibility-initialized"],function(){return t._syncFiltersVisibility()}),this.emitter.off(["filters-toggled"],function(e,i,s){return t.updateFiltersVisibility(s)}),this.enableHash&&(this.hash.destroy(),this.hash=null),this.enableStorage&&(this.storage.destroy(),this.storage=null),this.initialized=!1)},e}(o.Feature)},function(t,e,i){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Hash=e.hasHashChange=void 0;var n=i(1),r=i(2),o=r.root.JSON,a=r.root.location,l=r.root.decodeURIComponent,h=r.root.encodeURIComponent,c=e.hasHashChange=function(){var t=r.root.documentMode;return"onhashchange"in r.root&&(void 0===t||t>7)};e.Hash=function(){function t(e){s(this,t),this.state=e,this.lastHash=null,this.emitter=e.emitter,this.boundSync=null}return t.prototype.init=function(){var t=this;c()&&(this.lastHash=a.hash,this.boundSync=this.sync.bind(this),this.emitter.on(["state-changed"],function(e,i){return t.update(i)}),this.emitter.on(["initialized"],this.boundSync),(0,n.addEvt)(r.root,"hashchange",this.boundSync))},t.prototype.update=function(t){var e="#"+h(o.stringify(t));this.lastHash!==e&&(a.hash=e,this.lastHash=e)},t.prototype.parse=function(t){return t.indexOf("#")===-1?null:(t=t.substr(1),o.parse(l(t)))},t.prototype.sync=function(){var t=this.parse(a.hash);t&&this.state.overrideAndSync(t)},t.prototype.destroy=function(){var t=this;this.emitter.off(["state-changed"],function(e,i){return t.update(i)}),this.emitter.off(["initialized"],this.boundSync),(0,n.removeEvt)(r.root,"hashchange",this.boundSync),this.state=null,this.lastHash=null,this.emitter=null},t}()},function(t,e,i){"use strict";function s(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}),e.Storage=e.hasStorage=void 0;var r=i(29),o=s(r),a=i(2),l=a.root.JSON,h=a.root.localStorage,c=a.root.location,f=e.hasStorage=function(){return"Storage"in a.root};e.Storage=function(){function t(e){n(this,t),this.state=e,this.tf=e.tf,this.enableLocalStorage=e.enableLocalStorage&&f(),this.enableCookie=e.enableCookie&&!this.enableLocalStorage,this.emitter=e.emitter,this.duration=e.cookieDuration}return t.prototype.init=function(){var t=this;this.emitter.on(["state-changed"],function(e,i){return t.save(i)}),this.emitter.on(["initialized"],function(){return t.sync()})},t.prototype.save=function(t){this.enableLocalStorage?h[this.getKey()]=l.stringify(t):o["default"].write(this.getKey(),l.stringify(t),this.duration)},t.prototype.retrieve=function(){var t=null;return t=this.enableLocalStorage?h[this.getKey()]:o["default"].read(this.getKey()),t?l.parse(t):null},t.prototype.remove=function(){this.enableLocalStorage?h.removeItem(this.getKey()):o["default"].remove(this.getKey())},t.prototype.sync=function(){var t=this.retrieve();t&&this.state.overrideAndSync(t)},t.prototype.getKey=function(){return l.stringify({key:this.tf.prfxTf+"_"+this.tf.id,path:c.pathname})},t.prototype.destroy=function(){var t=this;this.emitter.off(["state-changed"],function(e,i){return t.save(i)}),this.emitter.off(["initialized"],function(){return t.sync()}),this.remove(),this.state=null,this.emitter=null},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(2),n=s.root.document;e["default"]={write:function(t,e,i){var s="";i&&(s=new Date((new Date).getTime()+36e5*i),s="; expires="+s.toGMTString()),n.cookie=t+"="+escape(e)+s},read:function(t){var e="",i=t+"=";if(n.cookie.length>0){var s=n.cookie,r=s.indexOf(i);if(r!==-1){r+=i.length;var o=s.indexOf(";",r);o===-1&&(o=s.length),e=unescape(s.substring(r,o))}}return e},remove:function(t){this.write(t,"",-1)}}}])}); \ No newline at end of file diff --git a/dist/tablefilter/tf-1.js b/dist/tablefilter/tf-1.js index 37a06097..87447b11 100644 --- a/dist/tablefilter/tf-1.js +++ b/dist/tablefilter/tf-1.js @@ -1,6 +1,6 @@ /** - * tablefilter v0.2.56 by Max Guglielmi - * build date: 2016-08-22T16:27:40.696Z + * tablefilter v0.2.57 by Max Guglielmi + * build date: 2016-08-23T03:41:22.869Z * MIT License */ diff --git a/package.json b/package.json index 60dd6aad..cb95a113 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tablefilter", - "version": "0.2.56", + "version": "0.2.57", "description": "A Javascript library making HTML tables filterable and a bit more", "license": "MIT", "author": {