mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-29 10:50:51 +02:00
commit
f73f3d62d9
4
dist/starter.html
vendored
4
dist/starter.html
vendored
|
@ -1,10 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>tablefilter v0.4.8 - Starter</title>
|
<title>tablefilter v0.4.9 - Starter</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>tablefilter v0.4.8</h1>
|
<h1>tablefilter v0.4.9</h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
4
dist/tablefilter/style/colsVisibility.css
vendored
4
dist/tablefilter/style/colsVisibility.css
vendored
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* tablefilter v0.4.8 by Max Guglielmi
|
* tablefilter v0.4.9 by Max Guglielmi
|
||||||
* build date: 2016-11-05T11:03:38.397Z
|
* build date: 2016-11-10T04:38:41.934Z
|
||||||
* MIT License
|
* 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}
|
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}
|
4
dist/tablefilter/style/filtersVisibility.css
vendored
4
dist/tablefilter/style/filtersVisibility.css
vendored
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* tablefilter v0.4.8 by Max Guglielmi
|
* tablefilter v0.4.9 by Max Guglielmi
|
||||||
* build date: 2016-11-05T11:03:38.397Z
|
* build date: 2016-11-10T04:38:41.934Z
|
||||||
* MIT License
|
* 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}
|
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}
|
4
dist/tablefilter/style/tablefilter.css
vendored
4
dist/tablefilter/style/tablefilter.css
vendored
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* tablefilter v0.4.8 by Max Guglielmi
|
* tablefilter v0.4.9 by Max Guglielmi
|
||||||
* build date: 2016-11-05T11:03:38.397Z
|
* build date: 2016-11-10T04:38:41.934Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
.activeHeader{background-color:#66afe9 !important;color:#fff !important}
|
.activeHeader{background-color:#66afe9 !important;color:#fff !important}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* tablefilter v0.4.8 by Max Guglielmi
|
* tablefilter v0.4.9 by Max Guglielmi
|
||||||
* build date: 2016-11-05T11:03:38.397Z
|
* build date: 2016-11-10T04:38:41.934Z
|
||||||
* MIT License
|
* 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}
|
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}
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* tablefilter v0.4.8 by Max Guglielmi
|
* tablefilter v0.4.9 by Max Guglielmi
|
||||||
* build date: 2016-11-05T11:03:38.397Z
|
* build date: 2016-11-10T04:38:41.934Z
|
||||||
* MIT License
|
* 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}
|
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}
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* tablefilter v0.4.8 by Max Guglielmi
|
* tablefilter v0.4.9 by Max Guglielmi
|
||||||
* build date: 2016-11-05T11:03:38.397Z
|
* build date: 2016-11-10T04:38:41.934Z
|
||||||
* MIT License
|
* 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}
|
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}
|
18
dist/tablefilter/tablefilter.js
vendored
18
dist/tablefilter/tablefilter.js
vendored
File diff suppressed because one or more lines are too long
4
dist/tablefilter/tf-1.js
vendored
4
dist/tablefilter/tf-1.js
vendored
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* tablefilter v0.4.8 by Max Guglielmi
|
* tablefilter v0.4.9 by Max Guglielmi
|
||||||
* build date: 2016-11-05T11:03:38.311Z
|
* build date: 2016-11-10T04:38:41.917Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tablefilter",
|
"name": "tablefilter",
|
||||||
"version": "0.4.8",
|
"version": "0.4.9",
|
||||||
"description": "A Javascript library making HTML tables filterable and a bit more",
|
"description": "A Javascript library making HTML tables filterable and a bit more",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": {
|
"author": {
|
||||||
|
|
20
src/dom.js
20
src/dom.js
|
@ -13,7 +13,7 @@ const doc = root.document;
|
||||||
* @param {NodeElement} node
|
* @param {NodeElement} node
|
||||||
* @return {String}
|
* @return {String}
|
||||||
*/
|
*/
|
||||||
export const getText = node => {
|
export const getText = (node) => {
|
||||||
if (isUndef(node.textContent)) {
|
if (isUndef(node.textContent)) {
|
||||||
return trim(node.innerText);
|
return trim(node.innerText);
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ export const getText = node => {
|
||||||
* @param {NodeElement} node node
|
* @param {NodeElement} node node
|
||||||
* @return {String}
|
* @return {String}
|
||||||
*/
|
*/
|
||||||
export const getFirstTextNode = node => {
|
export const getFirstTextNode = (node) => {
|
||||||
for (let i = 0; i < node.childNodes.length; i++) {
|
for (let i = 0; i < node.childNodes.length; i++) {
|
||||||
let n = node.childNodes[i];
|
let n = node.childNodes[i];
|
||||||
if (n.nodeType === 3) {
|
if (n.nodeType === 3) {
|
||||||
|
@ -64,14 +64,14 @@ export const createElm = (...args) => {
|
||||||
* @param {DOMElement} node
|
* @param {DOMElement} node
|
||||||
* @return {DOMElement} old node reference
|
* @return {DOMElement} old node reference
|
||||||
*/
|
*/
|
||||||
export const removeElm = node => node.parentNode.removeChild(node);
|
export const removeElm = (node) => node.parentNode.removeChild(node);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a text node with given text
|
* Returns a text node with given text
|
||||||
* @param {String} txt
|
* @param {String} txt
|
||||||
* @return {Object}
|
* @return {Object}
|
||||||
*/
|
*/
|
||||||
export const createText = txt => doc.createTextNode(txt);
|
export const createText = (txt) => doc.createTextNode(txt);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether the passed elements is assigned the given class
|
* Determine whether the passed elements is assigned the given class
|
||||||
|
@ -149,17 +149,17 @@ export const createOpt = (text, value, isSel) => {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a checklist item
|
* Creates and returns a checklist item
|
||||||
* @param {Number} chkIndex index of check item
|
* @param {String} id index of check item
|
||||||
* @param {String} chkValue check item value
|
* @param {String} chkValue check item value
|
||||||
* @param {String} labelText check item label text
|
* @param {String} labelText check item label text
|
||||||
* @return {Object} li DOM element
|
* @return {Object} li DOM element
|
||||||
*/
|
*/
|
||||||
export const createCheckItem = (chkIndex, chkValue, labelText) => {
|
export const createCheckItem = (id, chkValue, labelText) => {
|
||||||
let li = createElm('li');
|
let li = createElm('li');
|
||||||
let label = createElm('label', ['for', chkIndex]);
|
let label = createElm('label', ['for', id]);
|
||||||
let check = createElm('input',
|
let check = createElm('input',
|
||||||
['id', chkIndex],
|
['id', id],
|
||||||
['name', chkIndex],
|
['name', id],
|
||||||
['type', 'checkbox'],
|
['type', 'checkbox'],
|
||||||
['value', chkValue]
|
['value', chkValue]
|
||||||
);
|
);
|
||||||
|
@ -176,7 +176,7 @@ export const createCheckItem = (chkIndex, chkValue, labelText) => {
|
||||||
* @param {String} id Element identifier
|
* @param {String} id Element identifier
|
||||||
* @return {DOMElement}
|
* @return {DOMElement}
|
||||||
*/
|
*/
|
||||||
export const elm = id => doc.getElementById(id);
|
export const elm = (id) => doc.getElementById(id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns list of element matching the supplied tag name
|
* Returns list of element matching the supplied tag name
|
||||||
|
|
|
@ -155,7 +155,7 @@ export class CheckList extends Feature {
|
||||||
tf.externalFltTgtIds[colIndex] : null;
|
tf.externalFltTgtIds[colIndex] : null;
|
||||||
|
|
||||||
let divCont = createElm('div',
|
let divCont = createElm('div',
|
||||||
['id', this.prfx + colIndex + '_' + tf.id],
|
['id', `${this.prfx}${colIndex}_${tf.id}`],
|
||||||
['ct', colIndex], ['filled', '0']);
|
['ct', colIndex], ['filled', '0']);
|
||||||
divCont.className = this.containerCssClass;
|
divCont.className = this.containerCssClass;
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ export class CheckList extends Feature {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.containers[colIndex] = divCont;
|
this.containers[colIndex] = divCont;
|
||||||
tf.fltIds.push(tf.prfxFlt + colIndex + '_' + tf.id);
|
tf.fltIds.push(tf.buildFilterId(colIndex));
|
||||||
|
|
||||||
if (!tf.loadFltOnDemand) {
|
if (!tf.loadFltOnDemand) {
|
||||||
this.build(colIndex);
|
this.build(colIndex);
|
||||||
|
@ -206,7 +206,8 @@ export class CheckList extends Feature {
|
||||||
this.optsTxt = [];
|
this.optsTxt = [];
|
||||||
|
|
||||||
let flt = this.containers[colIndex];
|
let flt = this.containers[colIndex];
|
||||||
let ul = createElm('ul', ['id', tf.fltIds[colIndex]],
|
let ul = createElm('ul',
|
||||||
|
['id', tf.fltIds[colIndex]],
|
||||||
['colIndex', colIndex]);
|
['colIndex', colIndex]);
|
||||||
ul.className = this.filterCssClass;
|
ul.className = this.filterCssClass;
|
||||||
|
|
||||||
|
@ -352,8 +353,8 @@ export class CheckList extends Feature {
|
||||||
for (let y = 0; y < this.opts.length; y++) {
|
for (let y = 0; y < this.opts.length; y++) {
|
||||||
let val = this.opts[y]; //item value
|
let val = this.opts[y]; //item value
|
||||||
let lbl = this.isCustom ? this.optsTxt[y] : val; //item text
|
let lbl = this.isCustom ? this.optsTxt[y] : val; //item text
|
||||||
let li = createCheckItem(tf.fltIds[colIndex] + '_' + (y + chkCt),
|
let fltId = tf.fltIds[colIndex];
|
||||||
val, lbl);
|
let li = createCheckItem(`${fltId}_${(y + chkCt)}`, val, lbl);
|
||||||
li.className = this.itemCssClass;
|
li.className = this.itemCssClass;
|
||||||
|
|
||||||
if (tf.linkedFilters && tf.disableExcludedOptions &&
|
if (tf.linkedFilters && tf.disableExcludedOptions &&
|
||||||
|
@ -383,8 +384,8 @@ export class CheckList extends Feature {
|
||||||
addTChecks(colIndex, ul) {
|
addTChecks(colIndex, ul) {
|
||||||
let tf = this.tf;
|
let tf = this.tf;
|
||||||
let chkCt = 1;
|
let chkCt = 1;
|
||||||
let li0 = createCheckItem(tf.fltIds[colIndex] + '_0', '',
|
let fltId = tf.fltIds[colIndex];
|
||||||
tf.displayAllText);
|
let li0 = createCheckItem(`${fltId}_0`, '', tf.displayAllText);
|
||||||
li0.className = this.itemCssClass;
|
li0.className = this.itemCssClass;
|
||||||
ul.appendChild(li0);
|
ul.appendChild(li0);
|
||||||
|
|
||||||
|
@ -395,8 +396,8 @@ export class CheckList extends Feature {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tf.enableEmptyOption) {
|
if (tf.enableEmptyOption) {
|
||||||
let li1 = createCheckItem(tf.fltIds[colIndex] + '_1',
|
let li1 = createCheckItem(`${fltId}_1`, tf.emOperator,
|
||||||
tf.emOperator, tf.emptyText);
|
tf.emptyText);
|
||||||
li1.className = this.itemCssClass;
|
li1.className = this.itemCssClass;
|
||||||
ul.appendChild(li1);
|
ul.appendChild(li1);
|
||||||
addEvt(li1.check, 'click', evt => this.optionClick(evt));
|
addEvt(li1.check, 'click', evt => this.optionClick(evt));
|
||||||
|
@ -404,7 +405,7 @@ export class CheckList extends Feature {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tf.enableNonEmptyOption) {
|
if (tf.enableNonEmptyOption) {
|
||||||
let li2 = createCheckItem(tf.fltIds[colIndex] + '_2', tf.nmOperator,
|
let li2 = createCheckItem(`${fltId}_2`, tf.nmOperator,
|
||||||
tf.nonEmptyText);
|
tf.nonEmptyText);
|
||||||
li2.className = this.itemCssClass;
|
li2.className = this.itemCssClass;
|
||||||
ul.appendChild(li2);
|
ul.appendChild(li2);
|
||||||
|
|
|
@ -105,7 +105,7 @@ export class Dropdown extends Feature {
|
||||||
tf.externalFltTgtIds[colIndex] : null;
|
tf.externalFltTgtIds[colIndex] : null;
|
||||||
|
|
||||||
let slc = createElm(SELECT,
|
let slc = createElm(SELECT,
|
||||||
['id', tf.prfxFlt + colIndex + '_' + tf.id],
|
['id', tf.buildFilterId(colIndex)],
|
||||||
['ct', colIndex], ['filled', '0']
|
['ct', colIndex], ['filled', '0']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -377,7 +377,7 @@ export class GridLayout extends Feature {
|
||||||
if (this.enableFilters && tf.fltGrid) {
|
if (this.enableFilters && tf.fltGrid) {
|
||||||
tf.externalFltTgtIds = [];
|
tf.externalFltTgtIds = [];
|
||||||
for (let j = 0; j < tf.getCellsNb(); j++) {
|
for (let j = 0; j < tf.getCellsNb(); j++) {
|
||||||
let fltTdId = tf.prfxFlt + j + this.prfxGridFltTd + tf.id;
|
let fltTdId = `${tf.prfxFlt + j + this.prfxGridFltTd + tf.id}`;
|
||||||
let cl = createElm(tf.fltCellTag, ['id', fltTdId]);
|
let cl = createElm(tf.fltCellTag, ['id', fltTdId]);
|
||||||
filtersRow.appendChild(cl);
|
filtersRow.appendChild(cl);
|
||||||
tf.externalFltTgtIds[j] = fltTdId;
|
tf.externalFltTgtIds[j] = fltTdId;
|
||||||
|
@ -458,7 +458,7 @@ export class GridLayout extends Feature {
|
||||||
let c = row.cells[n];
|
let c = row.cells[n];
|
||||||
let thId = c.getAttribute('id');
|
let thId = c.getAttribute('id');
|
||||||
if (!thId || thId === '') {
|
if (!thId || thId === '') {
|
||||||
thId = this.prfxGridTh + n + '_' + tf.id;
|
thId = `${this.prfxGridTh + n}_${tf.id}`;
|
||||||
c.setAttribute('id', thId);
|
c.setAttribute('id', thId);
|
||||||
}
|
}
|
||||||
sortTriggers.push(thId);
|
sortTriggers.push(thId);
|
||||||
|
|
|
@ -120,7 +120,7 @@ export class PopupFilter extends Feature {
|
||||||
* @type {String}
|
* @type {String}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.prfxDiv = 'popUpDiv_';
|
this.prfxDiv = 'popup_';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -233,10 +233,11 @@ export class PopupFilter extends Feature {
|
||||||
*/
|
*/
|
||||||
build(colIndex, div) {
|
build(colIndex, div) {
|
||||||
let tf = this.tf;
|
let tf = this.tf;
|
||||||
let popUpDiv = div ||
|
let contId = `${this.prfxDiv}${tf.id}_${colIndex}`;
|
||||||
createElm('div', ['id', this.prfxDiv + tf.id + '_' + colIndex]);
|
let popUpDiv = div || createElm('div', ['id', contId]);
|
||||||
popUpDiv.className = this.containerCssClass;
|
popUpDiv.className = this.containerCssClass;
|
||||||
tf.externalFltTgtIds.push(popUpDiv.id);
|
tf.externalFltTgtIds.push(popUpDiv.id);
|
||||||
|
|
||||||
let header = tf.getHeaderElement(colIndex);
|
let header = tf.getHeaderElement(colIndex);
|
||||||
header.insertBefore(popUpDiv, header.firstChild);
|
header.insertBefore(popUpDiv, header.firstChild);
|
||||||
addEvt(popUpDiv, 'click', (evt) => stopEvt(evt));
|
addEvt(popUpDiv, 'click', (evt) => stopEvt(evt));
|
||||||
|
|
|
@ -1337,12 +1337,12 @@ export class TableFilter {
|
||||||
let col = this.getFilterType(colIndex);
|
let col = this.getFilterType(colIndex);
|
||||||
let externalFltTgtId = this.isExternalFlt ?
|
let externalFltTgtId = this.isExternalFlt ?
|
||||||
this.externalFltTgtIds[colIndex] : null;
|
this.externalFltTgtIds[colIndex] : null;
|
||||||
let inptype = col === INPUT ? 'text' : 'hidden';
|
let inpType = col === INPUT ? 'text' : 'hidden';
|
||||||
let inp = createElm(INPUT,
|
let inp = createElm(INPUT,
|
||||||
['id', this.prfxFlt + colIndex + '_' + this.id],
|
['id', this.buildFilterId(colIndex)],
|
||||||
['type', inptype], ['ct', colIndex]);
|
['type', inpType], ['ct', colIndex]);
|
||||||
|
|
||||||
if (inptype !== 'hidden' && this.watermark) {
|
if (inpType !== 'hidden' && this.watermark) {
|
||||||
inp.setAttribute('placeholder',
|
inp.setAttribute('placeholder',
|
||||||
this.isWatermarkArray ? (this.watermark[colIndex] || '') :
|
this.isWatermarkArray ? (this.watermark[colIndex] || '') :
|
||||||
this.watermark
|
this.watermark
|
||||||
|
@ -1375,8 +1375,9 @@ export class TableFilter {
|
||||||
let externalFltTgtId = this.isExternalFlt ?
|
let externalFltTgtId = this.isExternalFlt ?
|
||||||
this.externalFltTgtIds[colIndex] : null;
|
this.externalFltTgtIds[colIndex] : null;
|
||||||
let btn = createElm(INPUT,
|
let btn = createElm(INPUT,
|
||||||
['id', this.prfxValButton + colIndex + '_' + this.id],
|
['type', 'button'],
|
||||||
['type', 'button'], ['value', this.btnText]);
|
['value', this.btnText]
|
||||||
|
);
|
||||||
btn.className = this.btnCssClass;
|
btn.className = this.btnCssClass;
|
||||||
|
|
||||||
//filter is appended in custom element
|
//filter is appended in custom element
|
||||||
|
@ -1598,45 +1599,45 @@ export class TableFilter {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** container div ***/
|
/*** container div ***/
|
||||||
let infdiv = createElm('div', ['id', this.prfxInfDiv + this.id]);
|
let infDiv = createElm('div');
|
||||||
infdiv.className = this.infDivCssClass;
|
infDiv.className = this.infDivCssClass;
|
||||||
|
|
||||||
//custom container
|
//custom container
|
||||||
if (this.toolBarTgtId) {
|
if (this.toolBarTgtId) {
|
||||||
elm(this.toolBarTgtId).appendChild(infdiv);
|
elm(this.toolBarTgtId).appendChild(infDiv);
|
||||||
}
|
}
|
||||||
//grid-layout
|
//grid-layout
|
||||||
else if (this.gridLayout) {
|
else if (this.gridLayout) {
|
||||||
let gridLayout = this.Mod.gridLayout;
|
let gridLayout = this.Mod.gridLayout;
|
||||||
gridLayout.tblMainCont.appendChild(infdiv);
|
gridLayout.tblMainCont.appendChild(infDiv);
|
||||||
infdiv.className = gridLayout.infDivCssClass;
|
infDiv.className = gridLayout.infDivCssClass;
|
||||||
}
|
}
|
||||||
//default location: just above the table
|
//default location: just above the table
|
||||||
else {
|
else {
|
||||||
let cont = createElm('caption');
|
let cont = createElm('caption');
|
||||||
cont.appendChild(infdiv);
|
cont.appendChild(infDiv);
|
||||||
this.tbl.insertBefore(cont, this.tbl.firstChild);
|
this.tbl.insertBefore(cont, this.tbl.firstChild);
|
||||||
}
|
}
|
||||||
this.infDiv = elm(this.prfxInfDiv + this.id);
|
this.infDiv = infDiv;
|
||||||
|
|
||||||
/*** left div containing rows # displayer ***/
|
/*** left div containing rows # displayer ***/
|
||||||
let ldiv = createElm('div', ['id', this.prfxLDiv + this.id]);
|
let lDiv = createElm('div');
|
||||||
ldiv.className = this.lDivCssClass;
|
lDiv.className = this.lDivCssClass;
|
||||||
infdiv.appendChild(ldiv);
|
infDiv.appendChild(lDiv);
|
||||||
this.lDiv = elm(this.prfxLDiv + this.id);
|
this.lDiv = lDiv;
|
||||||
|
|
||||||
/*** right div containing reset button
|
/*** right div containing reset button
|
||||||
+ nb results per page select ***/
|
+ nb results per page select ***/
|
||||||
let rdiv = createElm('div', ['id', this.prfxRDiv + this.id]);
|
let rDiv = createElm('div');
|
||||||
rdiv.className = this.rDivCssClass;
|
rDiv.className = this.rDivCssClass;
|
||||||
infdiv.appendChild(rdiv);
|
infDiv.appendChild(rDiv);
|
||||||
this.rDiv = elm(this.prfxRDiv + this.id);
|
this.rDiv = rDiv;
|
||||||
|
|
||||||
/*** mid div containing paging elements ***/
|
/*** mid div containing paging elements ***/
|
||||||
let mdiv = createElm('div', ['id', this.prfxMDiv + this.id]);
|
let mDiv = createElm('div');
|
||||||
mdiv.className = this.mDivCssClass;
|
mDiv.className = this.mDivCssClass;
|
||||||
infdiv.appendChild(mdiv);
|
infDiv.appendChild(mDiv);
|
||||||
this.mDiv = elm(this.prfxMDiv + this.id);
|
this.mDiv = mDiv;
|
||||||
|
|
||||||
// emit help initialisation only if undefined
|
// emit help initialisation only if undefined
|
||||||
if (isUndef(this.help)) {
|
if (isUndef(this.help)) {
|
||||||
|
@ -2538,7 +2539,7 @@ export class TableFilter {
|
||||||
if (tblHasColTag) {
|
if (tblHasColTag) {
|
||||||
col = colTags[k];
|
col = colTags[k];
|
||||||
} else {
|
} else {
|
||||||
col = createElm('col', ['id', this.id + '_col_' + k]);
|
col = createElm('col');
|
||||||
frag.appendChild(col);
|
frag.appendChild(col);
|
||||||
}
|
}
|
||||||
col.style.width = colWidths[k];
|
col.style.width = colWidths[k];
|
||||||
|
@ -2644,6 +2645,16 @@ export class TableFilter {
|
||||||
return parseInt(idx, 10);
|
return parseInt(idx, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds filter element ID for a given column index
|
||||||
|
* @param {any} colIndex
|
||||||
|
* @returns {String} Filter element ID string
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
buildFilterId(colIndex) {
|
||||||
|
return `${this.prfxFlt}${colIndex}_${this.id}`;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make specified column's filter active
|
* Make specified column's filter active
|
||||||
* @param colIndex Index of a column
|
* @param colIndex Index of a column
|
||||||
|
|
|
@ -34,7 +34,8 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
tf1.init();
|
tf1.init();
|
||||||
var btn = document.querySelector('#'+tf1.prfxValButton+'4_'+tf1.id);
|
|
||||||
|
var btn = document.querySelector('.' + tf1.btnCssClass);
|
||||||
|
|
||||||
module('Table 2: sanity checks');
|
module('Table 2: sanity checks');
|
||||||
test('TableFilter instance', function() {
|
test('TableFilter instance', function() {
|
||||||
|
|
Loading…
Reference in a new issue