mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-18 14:26:40 +02:00
Initial commit
This commit is contained in:
parent
b15e1440c4
commit
d3b85cbdb0
|
@ -47,9 +47,9 @@ module.exports = function (grunt) {
|
||||||
dist: {
|
dist: {
|
||||||
src: [
|
src: [
|
||||||
'**',
|
'**',
|
||||||
'!*.styl',
|
'!**/*.styl',
|
||||||
'!**/extensions/**',
|
'!**/extensions/**',
|
||||||
'!**/*.styl'
|
'!**/mixins/**'
|
||||||
],
|
],
|
||||||
cwd: 'static/style',
|
cwd: 'static/style',
|
||||||
dest: 'dist/tablefilter/style',
|
dest: 'dist/tablefilter/style',
|
||||||
|
|
15
dist/starter.html
vendored
15
dist/starter.html
vendored
|
@ -450,14 +450,21 @@
|
||||||
<script data-config>
|
<script data-config>
|
||||||
var filtersConfig = {
|
var filtersConfig = {
|
||||||
base_path: 'tablefilter/',
|
base_path: 'tablefilter/',
|
||||||
|
// col_0: 'checklist',
|
||||||
col_1: 'select',
|
col_1: 'select',
|
||||||
col_2: 'select',
|
col_2: 'select',
|
||||||
col_3: 'select',
|
// col_3: 'multiple',
|
||||||
alternate_rows: true,
|
alternate_rows: true,
|
||||||
rows_counter: true,
|
|
||||||
btn_reset: true,
|
btn_reset: true,
|
||||||
loader: true,
|
loader: true,
|
||||||
status_bar: true,
|
status_bar: true/*,
|
||||||
|
popup_filters: true,
|
||||||
|
single_search_filter: true,
|
||||||
|
enable_icons: false,
|
||||||
|
btn: true,
|
||||||
|
btn_text: 'Go',
|
||||||
|
|
||||||
|
|
||||||
mark_active_columns: true,
|
mark_active_columns: true,
|
||||||
col_number_format: [
|
col_number_format: [
|
||||||
null, null, 'US',
|
null, null, 'US',
|
||||||
|
@ -481,7 +488,7 @@
|
||||||
'70px', '70px', '70px',
|
'70px', '70px', '70px',
|
||||||
'70px', '60px', '60px'
|
'70px', '60px', '60px'
|
||||||
],
|
],
|
||||||
extensions:[{ name: 'sort' }]
|
extensions:[{ name: 'sort' }]*/
|
||||||
};
|
};
|
||||||
|
|
||||||
var tf = new TableFilter('demo', filtersConfig);
|
var tf = new TableFilter('demo', filtersConfig);
|
||||||
|
|
33
dist/tablefilter/style/colsVisibility.css
vendored
33
dist/tablefilter/style/colsVisibility.css
vendored
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* TableFilter v0.0.0 by Max Guglielmi
|
* TableFilter v0.0.0 by Max Guglielmi
|
||||||
* build date: 2015-08-06T05:20:40.430Z
|
* build date: 2015-08-07T07:26:43.498Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
@ -13,18 +13,45 @@ span.colVisSpan a.colVis {
|
||||||
margin: 0 5px 0 5px;
|
margin: 0 5px 0 5px;
|
||||||
}
|
}
|
||||||
div.colVisCont {
|
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;
|
position: absolute;
|
||||||
display: none;
|
display: none;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
height: auto;
|
height: auto;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: 18px 0 0 0;
|
margin: 28px 0 0 -100px;
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
padding: 10px 10px 10px 10px;
|
padding: 10px 10px 10px 10px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
box-shadow: 3px 3px 2px #888;
|
}
|
||||||
|
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 {
|
div.colVisCont p {
|
||||||
margin: 6px auto 6px auto;
|
margin: 6px auto 6px auto;
|
||||||
|
|
2
dist/tablefilter/style/filtersVisibility.css
vendored
2
dist/tablefilter/style/filtersVisibility.css
vendored
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* TableFilter v0.0.0 by Max Guglielmi
|
* TableFilter v0.0.0 by Max Guglielmi
|
||||||
* build date: 2015-08-06T05:20:40.430Z
|
* build date: 2015-08-07T07:26:43.498Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
223
dist/tablefilter/style/tablefilter.css
vendored
223
dist/tablefilter/style/tablefilter.css
vendored
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* TableFilter v0.0.0 by Max Guglielmi
|
* TableFilter v0.0.0 by Max Guglielmi
|
||||||
* build date: 2015-08-06T05:20:40.430Z
|
* build date: 2015-08-07T07:26:43.498Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.odd {
|
.odd {
|
||||||
background-color: #e5e5e5;
|
background-color: #f9f9f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -117,12 +117,12 @@ select[multiple="multiple"].ezSelectEditor {
|
||||||
*/
|
*/
|
||||||
.div_checklist {
|
.div_checklist {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 90px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #f4f4f4;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #333 !important;
|
color: #444;
|
||||||
}
|
}
|
||||||
.div_checklist ul.flt_checklist {
|
.div_checklist ul.flt_checklist {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
@ -133,7 +133,7 @@ select[multiple="multiple"].ezSelectEditor {
|
||||||
padding: 1px !important;
|
padding: 1px !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
font-size: 10px !important;
|
font-size: 10px !important;
|
||||||
border-bottom: 1px solid #ccc !important;
|
border-bottom: 1px solid #f4f4f4 !important;
|
||||||
}
|
}
|
||||||
.div_checklist li.flt_checklist_item:hover {
|
.div_checklist li.flt_checklist_item:hover {
|
||||||
background-color: #335ea8 !important;
|
background-color: #335ea8 !important;
|
||||||
|
@ -158,74 +158,116 @@ select[multiple="multiple"].ezSelectEditor {
|
||||||
* Filters' default style
|
* Filters' default style
|
||||||
*/
|
*/
|
||||||
.fltrow {
|
.fltrow {
|
||||||
height: 20px;
|
height: 1em;
|
||||||
background-color: #f4f4f4;
|
background-color: #eaeaea;
|
||||||
}
|
}
|
||||||
.fltrow td,
|
.fltrow td {
|
||||||
.fltrow th {
|
border-bottom: 1px solid #ccc !important;
|
||||||
padding: 2px !important;
|
border-top: 1px solid #ccc;
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
border-right: 1px solid #f4f4f4;
|
||||||
}
|
}
|
||||||
.btnflt {
|
.btnflt {
|
||||||
font-size: 11px;
|
height: 35px;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin: 0 2px 0 2px;
|
margin: 0 2px 0 2px;
|
||||||
padding: 0 1px 0 1px;
|
padding: 0 1px 0 1px;
|
||||||
}
|
}
|
||||||
.btnflt_icon {
|
.btnflt_icon {
|
||||||
width: 19px;
|
font-family: inherit;
|
||||||
height: 19px;
|
font-size: inherit;
|
||||||
|
width: 35px;
|
||||||
|
height: 35px;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background: transparent url("themes/btn_filter.png") center center no-repeat !important;
|
background: transparent url("themes/btn_filter.png") center center no-repeat !important;
|
||||||
}
|
}
|
||||||
.flt {
|
.flt,
|
||||||
|
.flt_s,
|
||||||
|
.single_flt {
|
||||||
|
font-family: inherit;
|
||||||
|
display: block;
|
||||||
|
color: #444;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #f4f4f4;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 97%;
|
padding: 0 0 0 0.2em;
|
||||||
|
width: 100%;
|
||||||
|
height: 35px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
select.flt {
|
.flt:focus,
|
||||||
background-color: #fff;
|
.flt_s:focus,
|
||||||
border: 1px solid #ccc;
|
.single_flt:focus {
|
||||||
margin: 0 1px 1px 0;
|
border-color: #66afe9;
|
||||||
width: 99%;
|
outline: 0 none;
|
||||||
vertical-align: middle;
|
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.075) inset, 0px 0px 8px rgba(102,175,233,0.6);
|
||||||
|
-moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.075) inset, 0px 0px 8px rgba(102,175,233,0.6);
|
||||||
|
box-shadow: 0px 1px 1px rgba(0,0,0,0.075) inset, 0px 0px 8px rgba(102,175,233,0.6);
|
||||||
}
|
}
|
||||||
select.flt_multi {
|
select.flt_multi {
|
||||||
|
font-family: inherit;
|
||||||
|
color: #444;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #f4f4f4;
|
||||||
margin: 0 1px 1px 0;
|
margin: 0;
|
||||||
width: 99%;
|
padding: 0.2em;
|
||||||
height: 100px;
|
width: 100%;
|
||||||
|
height: 90px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.flt_s {
|
.flt_s {
|
||||||
background-color: #fff;
|
width: 60%;
|
||||||
border: 1px solid #ccc;
|
box-sizing: initial;
|
||||||
margin: 0;
|
display: initial;
|
||||||
width: 80%;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
.single_flt {
|
.single_flt {
|
||||||
background-color: #fff;
|
width: 70%;
|
||||||
border-left: 1px solid #999;
|
box-sizing: initial;
|
||||||
border-right: 1px solid #ccc;
|
display: initial;
|
||||||
border-top: 1px solid #ccc;
|
|
||||||
border-bottom: 1px solid #999;
|
|
||||||
margin: 0;
|
|
||||||
width: 120px;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
div.popUpFilter {
|
div.popUpFilter {
|
||||||
|
position: relative;
|
||||||
|
background: #fff;
|
||||||
|
-webkit-box-shadow: 3px 3px 2px #888;
|
||||||
|
-moz-box-shadow: 3px 3px 2px #888;
|
||||||
|
box-shadow: 3px 3px 2px #888;
|
||||||
|
margin: 30px auto 0 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: none;
|
display: none;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
background-color: #c8e0fb;
|
background-color: #eaeaea;
|
||||||
border: 1px solid #e4e4e4;
|
border: 1px solid #eaeaea;
|
||||||
padding: 1px 3px 1px 1px;
|
padding: 0;
|
||||||
margin: 20px auto 0 0px;
|
}
|
||||||
|
div.popUpFilter:after,
|
||||||
|
div.popUpFilter:before {
|
||||||
|
bottom: 100%;
|
||||||
|
left: 50%;
|
||||||
|
border: solid transparent;
|
||||||
|
content: " ";
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
div.popUpFilter:after {
|
||||||
|
border-color: rgba(255,255,255,0);
|
||||||
|
border-bottom-color: #fff;
|
||||||
|
border-width: 10px;
|
||||||
|
margin-left: -10px;
|
||||||
|
}
|
||||||
|
div.popUpFilter:before {
|
||||||
|
border-color: rgba(255,255,255,0);
|
||||||
|
border-bottom-color: #eaeaea;
|
||||||
|
border-width: 12px;
|
||||||
|
margin-left: -12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -309,25 +351,58 @@ div.grd_tblCont table td {
|
||||||
* Help box default style
|
* Help box default style
|
||||||
*/
|
*/
|
||||||
.helpBtn {
|
.helpBtn {
|
||||||
margin: 0 5px 0 5px;
|
display: inline-block;
|
||||||
padding: 2px 4px 2px 4px;
|
margin: 0;
|
||||||
|
padding: 10px 15px 10px 15px;
|
||||||
border-left: 1px solid #ccc;
|
border-left: 1px solid #ccc;
|
||||||
border-right: 1px solid #ccc;
|
border-right: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
.helpBtn:hover {
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
div.helpCont {
|
div.helpCont {
|
||||||
|
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;
|
position: absolute;
|
||||||
display: none;
|
display: none;
|
||||||
|
width: 250px;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 15px 0;
|
margin: 35px 0 0 -100px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #333;
|
color: #333;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
box-shadow: 3px 3px 2px #888;
|
}
|
||||||
|
div.helpCont:after,
|
||||||
|
div.helpCont:before {
|
||||||
|
bottom: 100%;
|
||||||
|
left: 50%;
|
||||||
|
border: solid transparent;
|
||||||
|
content: " ";
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
div.helpCont:after {
|
||||||
|
border-color: rgba(255,255,255,0);
|
||||||
|
border-bottom-color: #fff;
|
||||||
|
border-width: 10px;
|
||||||
|
margin-left: -10px;
|
||||||
|
}
|
||||||
|
div.helpCont:before {
|
||||||
|
border-color: rgba(255,255,255,0);
|
||||||
|
border-bottom-color: #ccc;
|
||||||
|
border-width: 12px;
|
||||||
|
margin-left: -12px;
|
||||||
}
|
}
|
||||||
div.helpCont a {
|
div.helpCont a {
|
||||||
color: #c00;
|
color: #c00;
|
||||||
|
@ -442,15 +517,16 @@ span.rspgSpan {
|
||||||
* Reset button default style
|
* Reset button default style
|
||||||
*/
|
*/
|
||||||
input.reset {
|
input.reset {
|
||||||
width: 19px;
|
width: 35px;
|
||||||
height: 19px;
|
height: 100%;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
border: 0 !important;
|
border: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background: transparent url("themes/btn_clear_filters.png") center center no-repeat !important;
|
background: transparent url("themes/btn_clear_filters.png") center center no-repeat !important;
|
||||||
}
|
}
|
||||||
input.reset:hover {
|
input.reset:hover {
|
||||||
background: #cad1d6 url("themes/btn_clear_filters.png") center center no-repeat !important;
|
background: #f4f4f4 url("themes/btn_clear_filters.png") center center no-repeat !important;
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -507,27 +583,25 @@ div.status span {
|
||||||
* Table's default style
|
* Table's default style
|
||||||
*/
|
*/
|
||||||
table.TF {
|
table.TF {
|
||||||
|
font-family: inherit;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
border-top: 1px solid #d0d0d0;
|
border: 0;
|
||||||
border-left: 1px solid #d0d0d0;
|
|
||||||
border-bottom: 1px solid #ccc;
|
|
||||||
border-right: 1px solid #ccc;
|
|
||||||
}
|
}
|
||||||
table.TF th {
|
table.TF th {
|
||||||
|
height: 35px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: #ebecee;
|
background-color: #eaeaea;
|
||||||
border-bottom: 1px solid #d0d0d0;
|
border-bottom: 1px solid #ddd;
|
||||||
border-right: 1px solid #d0d0d0;
|
border-top: 1px solid #f4f4f4;
|
||||||
border-left: 1px solid #fff;
|
border-left: 1px solid #ccc;
|
||||||
border-top: 1px solid #fff;
|
border-right: 1px solid #f4f4f4;
|
||||||
padding: 5px;
|
padding: 0.1em 0.7em;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
table.TF td {
|
table.TF td {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px;
|
padding: 0.5em 0.7em;
|
||||||
border-bottom: 1px solid #d0d0d0;
|
border-bottom: 1px solid #c6c6c6;
|
||||||
border-right: 1px solid #d0d0d0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -536,13 +610,17 @@ table.TF td {
|
||||||
.inf {
|
.inf {
|
||||||
clear: both;
|
clear: both;
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 25px;
|
height: 35px;
|
||||||
background-color: #f4f4f4;
|
background-color: transparent;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 1px 3px 1px 3px;
|
padding: 0;
|
||||||
border: 1px solid #ccc;
|
border-top: 1px solid #ccc;
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
border-right: 1px solid #ccc;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
}
|
}
|
||||||
.inf a {
|
.inf a {
|
||||||
color: #333;
|
color: #333;
|
||||||
|
@ -552,15 +630,21 @@ table.TF td {
|
||||||
.inf a:hover {
|
.inf a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
.inf span {
|
||||||
|
width: 35px;
|
||||||
|
height: 35px;
|
||||||
|
}
|
||||||
.ldiv {
|
.ldiv {
|
||||||
float: left;
|
float: left;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
height: 100%;
|
||||||
position: inherit;
|
position: inherit;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.mdiv {
|
.mdiv {
|
||||||
float: left;
|
float: left;
|
||||||
width: 38%;
|
width: 38%;
|
||||||
|
height: 100%;
|
||||||
position: inherit;
|
position: inherit;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 1px 0;
|
padding: 1px 0;
|
||||||
|
@ -568,6 +652,7 @@ table.TF td {
|
||||||
.rdiv {
|
.rdiv {
|
||||||
float: right;
|
float: right;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
height: 100%;
|
||||||
position: inherit;
|
position: inherit;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* TableFilter v0.0.0 by Max Guglielmi
|
* TableFilter v0.0.0 by Max Guglielmi
|
||||||
* build date: 2015-08-06T05:20:40.430Z
|
* build date: 2015-08-07T07:26:43.498Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* TableFilter v0.0.0 by Max Guglielmi
|
* TableFilter v0.0.0 by Max Guglielmi
|
||||||
* build date: 2015-08-06T05:20:40.430Z
|
* build date: 2015-08-07T07:26:43.498Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* TableFilter v0.0.0 by Max Guglielmi
|
* TableFilter v0.0.0 by Max Guglielmi
|
||||||
* build date: 2015-08-06T05:20:40.430Z
|
* build date: 2015-08-07T07:26:43.498Z
|
||||||
* MIT License
|
* MIT License
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|
7029
dist/tablefilter/tablefilter.js
vendored
7029
dist/tablefilter/tablefilter.js
vendored
File diff suppressed because one or more lines are too long
2228
dist/tablefilter/tf-1.js
vendored
2228
dist/tablefilter/tf-1.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.even
|
.even
|
||||||
background-color #fff
|
background-color #FFF
|
||||||
.odd
|
.odd
|
||||||
background-color #E5E5E5
|
background-color #F9F9F9
|
||||||
|
|
|
@ -3,24 +3,34 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// table
|
// table
|
||||||
$border-color-0 = #FFF
|
$font-family = inherit
|
||||||
$border-color-1 = #CCC
|
$padding = 0.5em 0.7em
|
||||||
$border-color-2 = #D0D0D0
|
|
||||||
$padding = 5px
|
|
||||||
|
|
||||||
// header cell
|
// header cell
|
||||||
$th-bg-color = #EBECEE
|
// $th-bg-color = #EBECEE
|
||||||
|
$th-height = 35px
|
||||||
|
$th-bg-color = #EAEAEA
|
||||||
$th-padding = 5px
|
$th-padding = 5px
|
||||||
$th-font-color = #333
|
$th-font-color = #333
|
||||||
|
$th-bottom-border-color = #DDD
|
||||||
|
$th-top-border-color = #F4F4F4
|
||||||
|
$th-left-border-color = #CCC
|
||||||
|
$th-right-border-color = #F4F4F4
|
||||||
|
|
||||||
// filter
|
// cell
|
||||||
$filter-bg-color = #fff
|
$td-border-color = #C6C6C6
|
||||||
$filter-border-color = #ccc
|
|
||||||
|
// filters
|
||||||
|
$filter-font-color = #444
|
||||||
|
$filter-row-bg-color = #EAEAEA
|
||||||
|
$filter-bg-color = #FFF
|
||||||
|
$filter-border-color = #F4F4F4
|
||||||
|
$filter-height = 35px
|
||||||
|
|
||||||
// toolbar container (.inf)
|
// toolbar container (.inf)
|
||||||
$toolbar-bg-color = #f4f4f4
|
$toolbar-bg-color = transparent
|
||||||
$toolbar-font-size = 12px
|
$toolbar-font-size = 12px
|
||||||
$toolbar-border-color = #ccc
|
$toolbar-border-color = #CCC
|
||||||
|
|
||||||
// paging
|
// paging
|
||||||
$paging-nav-button-bg-color-hover = #CAD1D6
|
$paging-nav-button-bg-color-hover = #CAD1D6
|
||||||
|
@ -28,3 +38,7 @@ $paging-nav-button-bg-color-hover = #CAD1D6
|
||||||
// grid layout
|
// grid layout
|
||||||
$grid-layout-bg-color = #C8E0FB
|
$grid-layout-bg-color = #C8E0FB
|
||||||
$grid-layout-border-color = #99BBE8
|
$grid-layout-border-color = #99BBE8
|
||||||
|
|
||||||
|
// elements
|
||||||
|
$min-width = 35px
|
||||||
|
$min-height = 35px
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
* ColsVisibility extension default style
|
* ColsVisibility extension default style
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@import '../mixins/arrow'
|
||||||
|
@import '../mixins/box-shadow'
|
||||||
|
|
||||||
$item-bg-color = #335EA8
|
$item-bg-color = #335EA8
|
||||||
$item-font-color = #fff
|
$item-font-color = #fff
|
||||||
|
|
||||||
|
@ -14,18 +17,19 @@ span.colVisSpan
|
||||||
|
|
||||||
// container element
|
// container element
|
||||||
div.colVisCont
|
div.colVisCont
|
||||||
|
arrow(top, 10px white, 2px #ccc)
|
||||||
|
box-shadow(3px 3px 2px #888)
|
||||||
position absolute
|
position absolute
|
||||||
display none
|
display none
|
||||||
border 1px solid #ccc
|
border 1px solid #ccc
|
||||||
height auto
|
height auto
|
||||||
width 250px
|
width 250px
|
||||||
background-color #fff
|
background-color #fff
|
||||||
margin 18px 0 0 0
|
margin 28px 0 0 -100px
|
||||||
z-index 10000
|
z-index 10000
|
||||||
padding 10px 10px 10px 10px
|
padding 10px 10px 10px 10px
|
||||||
text-align left
|
text-align left
|
||||||
font-size 12px
|
font-size 12px
|
||||||
box-shadow 3px 3px 2px #888
|
|
||||||
|
|
||||||
p
|
p
|
||||||
margin 6px auto 6px auto
|
margin 6px auto 6px auto
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Checklist filters default style
|
* Checklist filters default style
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import 'config'
|
@import 'config'
|
||||||
|
|
||||||
$item-bg-color = #335EA8
|
$item-bg-color = #335EA8
|
||||||
$item-font-color = #fff
|
$item-font-color = #fff
|
||||||
|
@ -10,12 +10,12 @@ $item-font-color = #fff
|
||||||
// div containing checklist
|
// div containing checklist
|
||||||
.div_checklist
|
.div_checklist
|
||||||
width 100%
|
width 100%
|
||||||
height 100px
|
height 90px
|
||||||
border 1px solid $filter-border-color
|
border 1px solid $filter-border-color
|
||||||
overflow auto
|
overflow auto
|
||||||
text-align left
|
text-align left
|
||||||
background-color $filter-bg-color
|
background-color $filter-bg-color
|
||||||
color: #333 !important
|
color: $filter-font-color
|
||||||
|
|
||||||
ul.flt_checklist
|
ul.flt_checklist
|
||||||
padding 0 !important
|
padding 0 !important
|
||||||
|
|
|
@ -2,83 +2,97 @@
|
||||||
* Filters' default style
|
* Filters' default style
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import 'config'
|
@import 'config'
|
||||||
|
@import 'mixins/arrow'
|
||||||
|
@import 'mixins/box-shadow'
|
||||||
|
|
||||||
// Filters row style
|
// Filters row style
|
||||||
.fltrow
|
.fltrow
|
||||||
height 20px
|
height 1em
|
||||||
background-color #f4f4f4
|
background-color $filter-row-bg-color
|
||||||
|
|
||||||
td
|
td
|
||||||
th
|
border-bottom: 1px solid #CCC !important
|
||||||
padding 2px !important
|
border-top: 1px solid #CCC
|
||||||
|
border-left 1px solid #CCC
|
||||||
|
border-right 1px solid #f4f4f4
|
||||||
|
|
||||||
// button appearance
|
// button appearance
|
||||||
.btnflt
|
.btnflt
|
||||||
font-size 11px
|
height $filter-height
|
||||||
vertical-align middle
|
font-family inherit
|
||||||
margin 0 2px 0 2px
|
font-size inherit
|
||||||
padding 0 1px 0 1px
|
vertical-align middle
|
||||||
|
margin 0 2px 0 2px
|
||||||
|
padding 0 1px 0 1px
|
||||||
|
|
||||||
// button appearance when displayIcons is true
|
// button appearance when displayIcons is true
|
||||||
.btnflt_icon
|
.btnflt_icon
|
||||||
width 19px
|
font-family inherit
|
||||||
height 19px
|
font-size inherit
|
||||||
cursor pointer !important
|
width $min-width
|
||||||
border 0 !important
|
height $filter-height
|
||||||
vertical-align middle
|
cursor pointer !important
|
||||||
background transparent url(themes/btn_filter.png) center center no-repeat !important
|
border 0 !important
|
||||||
|
vertical-align middle
|
||||||
|
background transparent url(themes/btn_filter.png) center center no-repeat !important
|
||||||
|
|
||||||
// input type filter
|
// input and select filter type
|
||||||
.flt
|
.flt
|
||||||
background-color $filter-bg-color
|
font-family inherit
|
||||||
border 1px solid $filter-border-color
|
display block
|
||||||
margin 0
|
color $filter-font-color
|
||||||
width 97%
|
background-color $filter-bg-color
|
||||||
vertical-align middle
|
border 1px solid $filter-border-color
|
||||||
|
margin 0
|
||||||
|
padding 0 0 0 0.2em
|
||||||
|
width 100%
|
||||||
|
height $filter-height
|
||||||
|
vertical-align middle
|
||||||
|
border-radius 2px
|
||||||
|
box-sizing border-box
|
||||||
|
|
||||||
// select type filter
|
&:focus
|
||||||
select.flt
|
border-color #66AFE9
|
||||||
background-color $filter-bg-color
|
outline 0 none
|
||||||
border 1px solid $filter-border-color
|
box-shadow 0px 1px 1px rgba(0, 0, 0, 0.075) inset,
|
||||||
margin 0 1px 1px 0
|
0px 0px 8px rgba(102, 175, 233, 0.6)
|
||||||
width 99%
|
|
||||||
vertical-align middle
|
|
||||||
|
|
||||||
// multiple select type filter
|
// multiple select type filter
|
||||||
select.flt_multi
|
select.flt_multi
|
||||||
background-color $filter-bg-color
|
font-family inherit
|
||||||
border 1px solid $filter-border-color
|
color $filter-font-color
|
||||||
margin 0 1px 1px 0
|
background-color $filter-bg-color
|
||||||
width 99%
|
border 1px solid $filter-border-color
|
||||||
height 100px
|
margin 0
|
||||||
vertical-align middle
|
padding 0.2em
|
||||||
|
width 100%
|
||||||
|
height 90px
|
||||||
|
vertical-align middle
|
||||||
|
box-sizing border-box
|
||||||
|
|
||||||
// tiny input type filter
|
// tiny input type filter
|
||||||
.flt_s
|
.flt_s
|
||||||
background-color $filter-bg-color
|
@extend .flt
|
||||||
border 1px solid $filter-border-color
|
width 60%
|
||||||
margin 0
|
box-sizing initial
|
||||||
width 80%
|
display initial
|
||||||
vertical-align middle
|
|
||||||
|
|
||||||
// single filter type
|
// single filter type
|
||||||
.single_flt
|
.single_flt
|
||||||
background-color $filter-bg-color
|
@extend .flt
|
||||||
border-left 1px solid #999
|
width 70%
|
||||||
border-right 1px solid $filter-border-color
|
box-sizing initial
|
||||||
border-top 1px solid $filter-border-color
|
display initial
|
||||||
border-bottom 1px solid #999
|
|
||||||
margin 0
|
|
||||||
width 120px
|
|
||||||
vertical-align middle
|
|
||||||
|
|
||||||
// Pop-up filters elements
|
// Pop-up filters elements
|
||||||
div.popUpFilter
|
div.popUpFilter
|
||||||
position absolute
|
arrow(top, 10px white, 2px $th-bg-color)
|
||||||
display none
|
box-shadow(3px 3px 2px #888)
|
||||||
width 100px
|
margin 30px auto 0 0
|
||||||
background-color #C8E0FB
|
position absolute
|
||||||
border 1px solid #e4e4e4
|
display none
|
||||||
padding 1px 3px 1px 1px
|
width 100px
|
||||||
margin 20px auto 0 0px
|
background-color $th-bg-color
|
||||||
|
border 1px solid $filter-row-bg-color
|
||||||
|
padding 0
|
||||||
|
|
|
@ -2,28 +2,39 @@
|
||||||
* Help box default style
|
* Help box default style
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@import 'config'
|
||||||
|
@import 'mixins/arrow'
|
||||||
|
@import 'mixins/box-shadow'
|
||||||
|
|
||||||
// help button
|
// help button
|
||||||
.helpBtn
|
.helpBtn
|
||||||
margin 0 5px 0 5px
|
display inline-block
|
||||||
padding 2px 4px 2px 4px
|
margin 0
|
||||||
border-left 1px solid #ccc
|
padding 10px 15px 10px 15px
|
||||||
border-right 1px solid #ccc
|
border-left 1px solid #ccc
|
||||||
|
border-right 1px solid #ccc
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
background-color #F4F4F4
|
||||||
|
border-radius 3px
|
||||||
|
|
||||||
// help container
|
// help container
|
||||||
div.helpCont
|
div.helpCont
|
||||||
|
arrow(top, 10px white, 2px #ccc)
|
||||||
|
box-shadow(3px 3px 2px #888)
|
||||||
position absolute
|
position absolute
|
||||||
display none
|
display none
|
||||||
|
width 250px
|
||||||
max-width 300px
|
max-width 300px
|
||||||
overflow auto
|
overflow auto
|
||||||
padding 10px
|
padding 10px
|
||||||
margin 15px 0
|
margin 35px 0 0 -100px
|
||||||
border 1px solid #CCC
|
border 1px solid #CCC
|
||||||
line-height 20px
|
line-height 20px
|
||||||
font-size 12px
|
font-size 12px
|
||||||
color #333
|
color #333
|
||||||
background #fff
|
background #fff
|
||||||
text-align left
|
text-align left
|
||||||
box-shadow 3px 3px 2px #888
|
|
||||||
|
|
||||||
a
|
a
|
||||||
color #cc0000
|
color #cc0000
|
||||||
|
|
63
static/style/mixins/arrow.styl
Normal file
63
static/style/mixins/arrow.styl
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
/**
|
||||||
|
* An arrow mixin for Stylus, based on @shojberg's "cssarrowplease.com"
|
||||||
|
* @param {Position} position
|
||||||
|
* @param {size, color} arrow
|
||||||
|
* @param {size, color} border (optional)
|
||||||
|
*/
|
||||||
|
arrow(position, arrow, border = 0 white)
|
||||||
|
// Resolve arguments
|
||||||
|
$arrowSize = arrow[0]
|
||||||
|
$arrowColor = arrow[1]
|
||||||
|
$borderWidth = border[0]
|
||||||
|
$borderColor = border[1]
|
||||||
|
|
||||||
|
$oppositePosition = opposite-position(position)
|
||||||
|
|
||||||
|
// Base CSS
|
||||||
|
position: relative
|
||||||
|
background: $arrowColor
|
||||||
|
|
||||||
|
// Selector generation
|
||||||
|
$selectors = "&:after"
|
||||||
|
if $borderWidth > 0
|
||||||
|
$selectors = $selectors + ", &:before"
|
||||||
|
|
||||||
|
// Arrow position
|
||||||
|
{$selectors}
|
||||||
|
{$oppositePosition}: 100%
|
||||||
|
|
||||||
|
// Offset
|
||||||
|
if position in (top bottom)
|
||||||
|
left: 50%
|
||||||
|
else
|
||||||
|
top: 50%
|
||||||
|
|
||||||
|
border: solid transparent
|
||||||
|
content: " "
|
||||||
|
height: 0
|
||||||
|
width: 0
|
||||||
|
position: absolute
|
||||||
|
pointer-events: none
|
||||||
|
|
||||||
|
// The arrow itself
|
||||||
|
&:after
|
||||||
|
border-color: rgba(white, 0) // transparent
|
||||||
|
border-{$oppositePosition}-color: $arrowColor
|
||||||
|
border-width: $arrowSize
|
||||||
|
|
||||||
|
if position in (top bottom)
|
||||||
|
margin-left: (- @border-width)
|
||||||
|
else
|
||||||
|
margin-top: (- @border-width)
|
||||||
|
|
||||||
|
// The border
|
||||||
|
if $borderWidth > 0
|
||||||
|
&:before
|
||||||
|
border-color: rgba(white, 0) // transparent
|
||||||
|
border-{$oppositePosition}-color: $borderColor
|
||||||
|
border-width: $arrowSize + $borderWidth
|
||||||
|
|
||||||
|
if position in (top bottom)
|
||||||
|
margin-left: (- @border-width)
|
||||||
|
else
|
||||||
|
margin-top: (- @border-width)
|
8
static/style/mixins/box-shadow.styl
Normal file
8
static/style/mixins/box-shadow.styl
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/**
|
||||||
|
* Box shadow mixin
|
||||||
|
*/
|
||||||
|
|
||||||
|
box-shadow()
|
||||||
|
-webkit-box-shadow arguments
|
||||||
|
-moz-box-shadow arguments
|
||||||
|
box-shadow arguments
|
|
@ -2,13 +2,16 @@
|
||||||
* Reset button default style
|
* Reset button default style
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@import 'config'
|
||||||
|
|
||||||
input.reset
|
input.reset
|
||||||
width 19px
|
width $min-width
|
||||||
height 19px
|
height 100%
|
||||||
cursor pointer !important
|
cursor pointer !important
|
||||||
border 0 !important
|
border 0
|
||||||
vertical-align: middle
|
vertical-align middle
|
||||||
background: transparent url(themes/btn_clear_filters.png) center center no-repeat !important
|
background: transparent url(themes/btn_clear_filters.png) center center no-repeat !important
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
background #CAD1D6 url(themes/btn_clear_filters.png) center center no-repeat !important
|
background #F4F4F4 url(themes/btn_clear_filters.png) center center no-repeat !important
|
||||||
|
border-radius 3px
|
||||||
|
|
|
@ -2,27 +2,25 @@
|
||||||
* Table's default style
|
* Table's default style
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import 'config'
|
@import 'config'
|
||||||
|
|
||||||
table.TF
|
table.TF
|
||||||
border-spacing 0
|
font-family $font-family
|
||||||
border-top 1px solid $border-color-2
|
border-spacing 0
|
||||||
border-left 1px solid $border-color-2
|
border 0
|
||||||
border-bottom 1px solid $border-color-1
|
|
||||||
border-right 1px solid $border-color-1
|
|
||||||
|
|
||||||
th
|
th
|
||||||
|
height $th-height
|
||||||
margin 0
|
margin 0
|
||||||
background-color $th-bg-color
|
background-color $th-bg-color
|
||||||
border-bottom 1px solid $border-color-2
|
border-bottom 1px solid $th-bottom-border-color
|
||||||
border-right 1px solid $border-color-2
|
border-top 1px solid $th-top-border-color
|
||||||
border-left 1px solid $border-color-0
|
border-left 1px solid $th-left-border-color
|
||||||
border-top 1px solid $border-color-0
|
border-right 1px solid $th-right-border-color
|
||||||
padding $padding
|
padding 0.1em 0.7em
|
||||||
color $th-font-color
|
color $th-font-color
|
||||||
|
|
||||||
td
|
td
|
||||||
margin 0
|
margin 0
|
||||||
padding $padding
|
padding $padding
|
||||||
border-bottom 1px solid $border-color-2
|
border-bottom 1px solid $td-border-color
|
||||||
border-right 1px solid $border-color-2
|
|
||||||
|
|
|
@ -6,15 +6,19 @@
|
||||||
|
|
||||||
// left, middle and right divs container (toolbar)
|
// left, middle and right divs container (toolbar)
|
||||||
.inf
|
.inf
|
||||||
clear both
|
clear both
|
||||||
width auto
|
width auto
|
||||||
height 25px
|
height 35px
|
||||||
background-color $toolbar-bg-color
|
background-color $toolbar-bg-color
|
||||||
font-size $toolbar-font-size
|
font-size $toolbar-font-size
|
||||||
margin 0
|
margin 0
|
||||||
padding 1px 3px 1px 3px
|
padding 0
|
||||||
border 1px solid #ccc
|
border-top 1px solid $toolbar-border-color
|
||||||
overflow hidden
|
border-left 1px solid $toolbar-border-color
|
||||||
|
border-right 1px solid $toolbar-border-color
|
||||||
|
overflow hidden
|
||||||
|
border-top-left-radius 3px
|
||||||
|
border-top-right-radius 3px
|
||||||
|
|
||||||
// link appearence
|
// link appearence
|
||||||
a
|
a
|
||||||
|
@ -24,24 +28,31 @@
|
||||||
&:hover
|
&:hover
|
||||||
text-decoration underline
|
text-decoration underline
|
||||||
|
|
||||||
|
span
|
||||||
|
width $min-width
|
||||||
|
height $min-height
|
||||||
|
|
||||||
// left div
|
// left div
|
||||||
.ldiv
|
.ldiv
|
||||||
float left
|
float left
|
||||||
width 30%
|
width 30%
|
||||||
position inherit
|
height 100%
|
||||||
text-align left
|
position inherit
|
||||||
|
text-align left
|
||||||
|
|
||||||
// middle div
|
// middle div
|
||||||
.mdiv
|
.mdiv
|
||||||
float left
|
float left
|
||||||
width: 38%
|
width 38%
|
||||||
position inherit
|
height 100%
|
||||||
text-align center
|
position inherit
|
||||||
padding 1px 0
|
text-align center
|
||||||
|
padding 1px 0
|
||||||
|
|
||||||
// right div
|
// right div
|
||||||
.rdiv
|
.rdiv
|
||||||
float right
|
float right
|
||||||
width 30%
|
width 30%
|
||||||
position inherit
|
height 100%
|
||||||
text-align right
|
position inherit
|
||||||
|
text-align right
|
||||||
|
|
|
@ -14,14 +14,21 @@
|
||||||
<script data-config>
|
<script data-config>
|
||||||
var filtersConfig = {
|
var filtersConfig = {
|
||||||
base_path: 'tablefilter/',
|
base_path: 'tablefilter/',
|
||||||
|
// col_0: 'checklist',
|
||||||
col_1: 'select',
|
col_1: 'select',
|
||||||
col_2: 'select',
|
col_2: 'select',
|
||||||
col_3: 'select',
|
// col_3: 'multiple',
|
||||||
alternate_rows: true,
|
alternate_rows: true,
|
||||||
rows_counter: true,
|
|
||||||
btn_reset: true,
|
btn_reset: true,
|
||||||
loader: true,
|
loader: true,
|
||||||
status_bar: true,
|
status_bar: true/*,
|
||||||
|
popup_filters: true,
|
||||||
|
single_search_filter: true,
|
||||||
|
enable_icons: false,
|
||||||
|
btn: true,
|
||||||
|
btn_text: 'Go',
|
||||||
|
|
||||||
|
|
||||||
mark_active_columns: true,
|
mark_active_columns: true,
|
||||||
col_number_format: [
|
col_number_format: [
|
||||||
null, null, 'US',
|
null, null, 'US',
|
||||||
|
@ -45,7 +52,7 @@
|
||||||
'70px', '70px', '70px',
|
'70px', '70px', '70px',
|
||||||
'70px', '60px', '60px'
|
'70px', '60px', '60px'
|
||||||
],
|
],
|
||||||
extensions:[{ name: 'sort' }]
|
extensions:[{ name: 'sort' }]*/
|
||||||
};
|
};
|
||||||
|
|
||||||
var tf = new TableFilter('demo', filtersConfig);
|
var tf = new TableFilter('demo', filtersConfig);
|
||||||
|
|
Loading…
Reference in a new issue