Primer Commit
This commit is contained in:
10364
assets/libs/tablesaw/dist/dependencies/jquery.js
vendored
Normal file
10364
assets/libs/tablesaw/dist/dependencies/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
45
assets/libs/tablesaw/dist/dependencies/naturalsort.js
vendored
Normal file
45
assets/libs/tablesaw/dist/dependencies/naturalsort.js
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Natural Sort algorithm for Javascript - Version 0.7 - Released under MIT license
|
||||
* Author: Jim Palmer (based on chunking idea from Dave Koelle)
|
||||
*/
|
||||
/*jshint unused:false */
|
||||
module.exports = function naturalSort (a, b) {
|
||||
"use strict";
|
||||
var re = /(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,
|
||||
sre = /(^[ ]*|[ ]*$)/g,
|
||||
dre = /(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,
|
||||
hre = /^0x[0-9a-f]+$/i,
|
||||
ore = /^0/,
|
||||
i = function(s) { return naturalSort.insensitive && ('' + s).toLowerCase() || '' + s; },
|
||||
// convert all to strings strip whitespace
|
||||
x = i(a).replace(sre, '') || '',
|
||||
y = i(b).replace(sre, '') || '',
|
||||
// chunk/tokenize
|
||||
xN = x.replace(re, '\0$1\0').replace(/\0$/,'').replace(/^\0/,'').split('\0'),
|
||||
yN = y.replace(re, '\0$1\0').replace(/\0$/,'').replace(/^\0/,'').split('\0'),
|
||||
// numeric, hex or date detection
|
||||
xD = parseInt(x.match(hre), 16) || (xN.length !== 1 && x.match(dre) && Date.parse(x)),
|
||||
yD = parseInt(y.match(hre), 16) || xD && y.match(dre) && Date.parse(y) || null,
|
||||
oFxNcL, oFyNcL;
|
||||
// first try and sort Hex codes or Dates
|
||||
if (yD) {
|
||||
if ( xD < yD ) { return -1; }
|
||||
else if ( xD > yD ) { return 1; }
|
||||
}
|
||||
// natural sorting through split numeric strings and default strings
|
||||
for(var cLoc=0, numS=Math.max(xN.length, yN.length); cLoc < numS; cLoc++) {
|
||||
// find floats not starting with '0', string or 0 if not defined (Clint Priest)
|
||||
oFxNcL = !(xN[cLoc] || '').match(ore) && parseFloat(xN[cLoc]) || xN[cLoc] || 0;
|
||||
oFyNcL = !(yN[cLoc] || '').match(ore) && parseFloat(yN[cLoc]) || yN[cLoc] || 0;
|
||||
// handle numeric vs string comparison - number < string - (Kyle Adams)
|
||||
if (isNaN(oFxNcL) !== isNaN(oFyNcL)) { return (isNaN(oFxNcL)) ? 1 : -1; }
|
||||
// rely on string comparison if different types - i.e. '02' < 2 != '02' < '2'
|
||||
else if (typeof oFxNcL !== typeof oFyNcL) {
|
||||
oFxNcL += '';
|
||||
oFyNcL += '';
|
||||
}
|
||||
if (oFxNcL < oFyNcL) { return -1; }
|
||||
if (oFxNcL > oFyNcL) { return 1; }
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
436
assets/libs/tablesaw/dist/dependencies/qunit.css
vendored
Normal file
436
assets/libs/tablesaw/dist/dependencies/qunit.css
vendored
Normal file
@@ -0,0 +1,436 @@
|
||||
/*!
|
||||
* QUnit 2.9.2
|
||||
* https://qunitjs.com/
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* https://jquery.org/license
|
||||
*
|
||||
* Date: 2019-02-21T22:49Z
|
||||
*/
|
||||
|
||||
/** Font Family and Sizes */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
|
||||
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
||||
#qunit-tests { font-size: smaller; }
|
||||
|
||||
|
||||
/** Resets */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
/** Header (excluding toolbar) */
|
||||
|
||||
#qunit-header {
|
||||
padding: 0.5em 0 0.5em 1em;
|
||||
|
||||
color: #8699A4;
|
||||
background-color: #0D3349;
|
||||
|
||||
font-size: 1.5em;
|
||||
line-height: 1em;
|
||||
font-weight: 400;
|
||||
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
#qunit-header a {
|
||||
text-decoration: none;
|
||||
color: #C2CCD1;
|
||||
}
|
||||
|
||||
#qunit-header a:hover,
|
||||
#qunit-header a:focus {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
#qunit-banner {
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
#qunit-filteredTest {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
color: #366097;
|
||||
background-color: #F4FF77;
|
||||
}
|
||||
|
||||
#qunit-userAgent {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
color: #FFF;
|
||||
background-color: #2B81AF;
|
||||
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
||||
}
|
||||
|
||||
|
||||
/** Toolbar */
|
||||
|
||||
#qunit-testrunner-toolbar {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
color: #5E740B;
|
||||
background-color: #EEE;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar .clearfix {
|
||||
height: 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar label {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar input[type=checkbox],
|
||||
#qunit-testrunner-toolbar input[type=radio] {
|
||||
margin: 3px;
|
||||
vertical-align: -2px;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar input[type=text] {
|
||||
box-sizing: border-box;
|
||||
height: 1.6em;
|
||||
}
|
||||
|
||||
.qunit-url-config,
|
||||
.qunit-filter,
|
||||
#qunit-modulefilter {
|
||||
display: inline-block;
|
||||
line-height: 2.1em;
|
||||
}
|
||||
|
||||
.qunit-filter,
|
||||
#qunit-modulefilter {
|
||||
float: right;
|
||||
position: relative;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.qunit-url-config label {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-search {
|
||||
box-sizing: border-box;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-search-container:after {
|
||||
position: absolute;
|
||||
right: 0.3em;
|
||||
content: "\25bc";
|
||||
color: black;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown {
|
||||
/* align with #qunit-modulefilter-search */
|
||||
box-sizing: border-box;
|
||||
width: 400px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
margin-top: 0.8em;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
border-top: none;
|
||||
border-radius: 0 0 .25em .25em;
|
||||
color: #000;
|
||||
background-color: #F5F5F5;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown .clickable.checked {
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
background-color: #D2E0E6;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown .clickable:hover {
|
||||
color: #FFF;
|
||||
background-color: #0D3349;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-actions {
|
||||
display: block;
|
||||
overflow: auto;
|
||||
|
||||
/* align with #qunit-modulefilter-dropdown-list */
|
||||
font: smaller/1.5em sans-serif;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown #qunit-modulefilter-actions > * {
|
||||
box-sizing: border-box;
|
||||
max-height: 2.8em;
|
||||
display: block;
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown #qunit-modulefilter-actions > button {
|
||||
float: right;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown #qunit-modulefilter-actions > :last-child {
|
||||
/* insert padding to align with checkbox margins */
|
||||
padding-left: 3px;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown-list {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
margin: 0;
|
||||
border-top: 2px groove threedhighlight;
|
||||
padding: 0.4em 0 0;
|
||||
font: smaller/1.5em sans-serif;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown-list li {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-dropdown-list .clickable {
|
||||
display: block;
|
||||
padding-left: 0.15em;
|
||||
}
|
||||
|
||||
|
||||
/** Tests: Pass/Fail */
|
||||
|
||||
#qunit-tests {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
#qunit-tests li {
|
||||
padding: 0.4em 1em 0.4em 1em;
|
||||
border-bottom: 1px solid #FFF;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
#qunit-tests > li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#qunit-tests li.running,
|
||||
#qunit-tests li.pass,
|
||||
#qunit-tests li.fail,
|
||||
#qunit-tests li.skipped,
|
||||
#qunit-tests li.aborted {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
#qunit-tests.hidepass {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#qunit-tests.hidepass li.running,
|
||||
#qunit-tests.hidepass li.pass:not(.todo) {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#qunit-tests li strong {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#qunit-tests li.skipped strong {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
#qunit-tests li a {
|
||||
padding: 0.5em;
|
||||
color: #C2CCD1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#qunit-tests li p a {
|
||||
padding: 0.25em;
|
||||
color: #6B6464;
|
||||
}
|
||||
#qunit-tests li a:hover,
|
||||
#qunit-tests li a:focus {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#qunit-tests li .runtime {
|
||||
float: right;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.qunit-assert-list {
|
||||
margin-top: 0.5em;
|
||||
padding: 0.5em;
|
||||
|
||||
background-color: #FFF;
|
||||
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.qunit-source {
|
||||
margin: 0.6em 0 0.3em;
|
||||
}
|
||||
|
||||
.qunit-collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#qunit-tests table {
|
||||
border-collapse: collapse;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
|
||||
#qunit-tests th {
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
padding: 0 0.5em 0 0;
|
||||
}
|
||||
|
||||
#qunit-tests td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#qunit-tests pre {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#qunit-tests del {
|
||||
color: #374E0C;
|
||||
background-color: #E0F2BE;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#qunit-tests ins {
|
||||
color: #500;
|
||||
background-color: #FFCACA;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*** Test Counts */
|
||||
|
||||
#qunit-tests b.counts { color: #000; }
|
||||
#qunit-tests b.passed { color: #5E740B; }
|
||||
#qunit-tests b.failed { color: #710909; }
|
||||
|
||||
#qunit-tests li li {
|
||||
padding: 5px;
|
||||
background-color: #FFF;
|
||||
border-bottom: none;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/*** Passing Styles */
|
||||
|
||||
#qunit-tests li li.pass {
|
||||
color: #3C510C;
|
||||
background-color: #FFF;
|
||||
border-left: 10px solid #C6E746;
|
||||
}
|
||||
|
||||
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
||||
#qunit-tests .pass .test-name { color: #366097; }
|
||||
|
||||
#qunit-tests .pass .test-actual,
|
||||
#qunit-tests .pass .test-expected { color: #999; }
|
||||
|
||||
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
||||
|
||||
/*** Failing Styles */
|
||||
|
||||
#qunit-tests li li.fail {
|
||||
color: #710909;
|
||||
background-color: #FFF;
|
||||
border-left: 10px solid #EE5757;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
#qunit-tests > li:last-child {
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
|
||||
#qunit-tests .fail { color: #000; background-color: #EE5757; }
|
||||
#qunit-tests .fail .test-name,
|
||||
#qunit-tests .fail .module-name { color: #000; }
|
||||
|
||||
#qunit-tests .fail .test-actual { color: #EE5757; }
|
||||
#qunit-tests .fail .test-expected { color: #008000; }
|
||||
|
||||
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
||||
|
||||
|
||||
/*** Aborted tests */
|
||||
#qunit-tests .aborted { color: #000; background-color: orange; }
|
||||
/*** Skipped tests */
|
||||
|
||||
#qunit-tests .skipped {
|
||||
background-color: #EBECE9;
|
||||
}
|
||||
|
||||
#qunit-tests .qunit-todo-label,
|
||||
#qunit-tests .qunit-skipped-label {
|
||||
background-color: #F4FF77;
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
color: #366097;
|
||||
line-height: 1.8em;
|
||||
padding: 0 0.5em;
|
||||
margin: -0.4em 0.4em -0.4em 0;
|
||||
}
|
||||
|
||||
#qunit-tests .qunit-todo-label {
|
||||
background-color: #EEE;
|
||||
}
|
||||
|
||||
/** Result */
|
||||
|
||||
#qunit-testresult {
|
||||
color: #2B81AF;
|
||||
background-color: #D2E0E6;
|
||||
|
||||
border-bottom: 1px solid #FFF;
|
||||
}
|
||||
#qunit-testresult .clearfix {
|
||||
height: 0;
|
||||
clear: both;
|
||||
}
|
||||
#qunit-testresult .module-name {
|
||||
font-weight: 700;
|
||||
}
|
||||
#qunit-testresult-display {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
width: 85%;
|
||||
float:left;
|
||||
}
|
||||
#qunit-testresult-controls {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
width: 10%;
|
||||
float:left;
|
||||
}
|
||||
|
||||
/** Fixture */
|
||||
|
||||
#qunit-fixture {
|
||||
position: absolute;
|
||||
top: -10000px;
|
||||
left: -10000px;
|
||||
width: 1000px;
|
||||
height: 1000px;
|
||||
}
|
||||
6604
assets/libs/tablesaw/dist/dependencies/qunit.js
vendored
Normal file
6604
assets/libs/tablesaw/dist/dependencies/qunit.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
148
assets/libs/tablesaw/dist/stackonly/tablesaw.stackonly.css
vendored
Normal file
148
assets/libs/tablesaw/dist/stackonly/tablesaw.stackonly.css
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
/*! Tablesaw - v3.1.2 - 2019-03-19
|
||||
* https://github.com/filamentgroup/tablesaw
|
||||
* Copyright (c) 2019 Filament Group; Licensed MIT */
|
||||
|
||||
.tablesaw {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
empty-cells: show;
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tablesaw * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tablesaw-stack td .tablesaw-cell-label,
|
||||
.tablesaw-stack th .tablesaw-cell-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Mobile first styles: Begin with the stacked presentation at narrow widths */
|
||||
|
||||
/* Support note IE9+: @media only all */
|
||||
|
||||
@media only all {
|
||||
/* Show the table cells as a block level element */
|
||||
|
||||
.tablesaw-stack {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.tablesaw-stack td,
|
||||
.tablesaw-stack th {
|
||||
text-align: left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tablesaw-stack tr {
|
||||
clear: both;
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
/* Make the label elements a percentage width */
|
||||
|
||||
.tablesaw-stack td .tablesaw-cell-label,
|
||||
.tablesaw-stack th .tablesaw-cell-label {
|
||||
display: inline-block;
|
||||
padding: 0 .6em 0 0;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
/* For grouped headers, have a different style to visually separate the levels by classing the first label in each col group */
|
||||
|
||||
.tablesaw-stack th .tablesaw-cell-label-top,
|
||||
.tablesaw-stack td .tablesaw-cell-label-top {
|
||||
display: block;
|
||||
padding: .4em 0;
|
||||
margin: .4em 0;
|
||||
}
|
||||
|
||||
.tablesaw-cell-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Avoid double strokes when stacked */
|
||||
|
||||
.tablesaw-stack tbody th.group {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
/* Avoid double strokes when stacked */
|
||||
|
||||
.tablesaw-stack th.group b.tablesaw-cell-label {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 39.9375em) {
|
||||
/* Table rows have a gray bottom stroke by default */
|
||||
|
||||
.tablesaw-stack tbody tr {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
}
|
||||
|
||||
.tablesaw-stack thead td,
|
||||
.tablesaw-stack thead th {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tablesaw-stack tbody td,
|
||||
.tablesaw-stack tbody th {
|
||||
display: block;
|
||||
float: left;
|
||||
clear: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tablesaw-cell-label {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.tablesaw-cell-content {
|
||||
display: inline-block;
|
||||
max-width: 67%;
|
||||
}
|
||||
|
||||
.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-label,
|
||||
.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-content {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tablesaw-stack td:empty,
|
||||
.tablesaw-stack th:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Media query to show as a standard table at 560px (35em x 16px) or wider */
|
||||
|
||||
@media (min-width: 40em) {
|
||||
.tablesaw-stack tr {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
/* Show the table header rows */
|
||||
|
||||
.tablesaw-stack td,
|
||||
.tablesaw-stack th,
|
||||
.tablesaw-stack thead td,
|
||||
.tablesaw-stack thead th {
|
||||
display: table-cell;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Hide the labels in each cell */
|
||||
|
||||
.tablesaw-stack td .tablesaw-cell-label,
|
||||
.tablesaw-stack th .tablesaw-cell-label {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
670
assets/libs/tablesaw/dist/stackonly/tablesaw.stackonly.jquery.js
vendored
Normal file
670
assets/libs/tablesaw/dist/stackonly/tablesaw.stackonly.jquery.js
vendored
Normal file
@@ -0,0 +1,670 @@
|
||||
/*! Tablesaw - v3.1.2 - 2019-03-19
|
||||
* https://github.com/filamentgroup/tablesaw
|
||||
* Copyright (c) 2019 Filament Group; Licensed MIT */
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(["jquery"], function (jQuery) {
|
||||
return (root.Tablesaw = factory(jQuery, root));
|
||||
});
|
||||
} else if (typeof exports === 'object') {
|
||||
if( "document" in root ) {
|
||||
module.exports = factory(require('jquery'), root);
|
||||
} else {
|
||||
// special jQuery case for CommonJS (pass in a window)
|
||||
module.exports = factory(require('jquery')(root), root);
|
||||
}
|
||||
} else {
|
||||
root.Tablesaw = factory(jQuery, root);
|
||||
}
|
||||
}(typeof window !== "undefined" ? window : this, function ($, window) {
|
||||
"use strict";
|
||||
|
||||
var document = window.document;
|
||||
|
||||
// Account for Tablesaw being loaded either before or after the DOMContentLoaded event is fired.
|
||||
var domContentLoadedTriggered = /complete|loaded/.test(document.readyState);
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
domContentLoadedTriggered = true;
|
||||
});
|
||||
|
||||
var Tablesaw = {
|
||||
i18n: {
|
||||
modeStack: "Stack",
|
||||
modeSwipe: "Swipe",
|
||||
modeToggle: "Toggle",
|
||||
modeSwitchColumnsAbbreviated: "Cols",
|
||||
modeSwitchColumns: "Columns",
|
||||
columnToggleButton: "Columns",
|
||||
columnToggleError: "No eligible columns.",
|
||||
sort: "Sort",
|
||||
swipePreviousColumn: "Previous column",
|
||||
swipeNextColumn: "Next column"
|
||||
},
|
||||
// cut the mustard
|
||||
mustard:
|
||||
"head" in document && // IE9+, Firefox 4+, Safari 5.1+, Mobile Safari 4.1+, Opera 11.5+, Android 2.3+
|
||||
(!window.blackberry || window.WebKitPoint) && // only WebKit Blackberry (OS 6+)
|
||||
!window.operamini,
|
||||
$: $,
|
||||
_init: function(element) {
|
||||
Tablesaw.$(element || document).trigger("enhance.tablesaw");
|
||||
},
|
||||
init: function(element) {
|
||||
// Account for Tablesaw being loaded either before or after the DOMContentLoaded event is fired.
|
||||
domContentLoadedTriggered =
|
||||
domContentLoadedTriggered || /complete|loaded/.test(document.readyState);
|
||||
if (!domContentLoadedTriggered) {
|
||||
if ("addEventListener" in document) {
|
||||
// Use raw DOMContentLoaded instead of shoestring (may have issues in Android 2.3, exhibited by stack table)
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
Tablesaw._init(element);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
Tablesaw._init(element);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$(document).on("enhance.tablesaw", function() {
|
||||
// Extend i18n config, if one exists.
|
||||
if (typeof TablesawConfig !== "undefined" && TablesawConfig.i18n) {
|
||||
Tablesaw.i18n = $.extend(Tablesaw.i18n, TablesawConfig.i18n || {});
|
||||
}
|
||||
|
||||
Tablesaw.i18n.modes = [
|
||||
Tablesaw.i18n.modeStack,
|
||||
Tablesaw.i18n.modeSwipe,
|
||||
Tablesaw.i18n.modeToggle
|
||||
];
|
||||
});
|
||||
|
||||
if (Tablesaw.mustard) {
|
||||
$(document.documentElement).addClass("tablesaw-enhanced");
|
||||
}
|
||||
|
||||
(function() {
|
||||
var pluginName = "tablesaw";
|
||||
var classes = {
|
||||
toolbar: "tablesaw-bar"
|
||||
};
|
||||
var events = {
|
||||
create: "tablesawcreate",
|
||||
destroy: "tablesawdestroy",
|
||||
refresh: "tablesawrefresh",
|
||||
resize: "tablesawresize"
|
||||
};
|
||||
var defaultMode = "stack";
|
||||
var initSelector = "table";
|
||||
var initFilterSelector = "[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]";
|
||||
var defaultConfig = {};
|
||||
|
||||
Tablesaw.events = events;
|
||||
|
||||
var Table = function(element) {
|
||||
if (!element) {
|
||||
throw new Error("Tablesaw requires an element.");
|
||||
}
|
||||
|
||||
this.table = element;
|
||||
this.$table = $(element);
|
||||
|
||||
// only one <thead> and <tfoot> are allowed, per the specification
|
||||
this.$thead = this.$table
|
||||
.children()
|
||||
.filter("thead")
|
||||
.eq(0);
|
||||
|
||||
// multiple <tbody> are allowed, per the specification
|
||||
this.$tbody = this.$table.children().filter("tbody");
|
||||
|
||||
this.mode = this.$table.attr("data-tablesaw-mode") || defaultMode;
|
||||
|
||||
this.$toolbar = null;
|
||||
|
||||
this.attributes = {
|
||||
subrow: "data-tablesaw-subrow",
|
||||
ignorerow: "data-tablesaw-ignorerow"
|
||||
};
|
||||
|
||||
this.init();
|
||||
};
|
||||
|
||||
Table.prototype.init = function() {
|
||||
if (!this.$thead.length) {
|
||||
throw new Error("tablesaw: a <thead> is required, but none was found.");
|
||||
}
|
||||
|
||||
if (!this.$thead.find("th").length) {
|
||||
throw new Error("tablesaw: no header cells found. Are you using <th> inside of <thead>?");
|
||||
}
|
||||
|
||||
// assign an id if there is none
|
||||
if (!this.$table.attr("id")) {
|
||||
this.$table.attr("id", pluginName + "-" + Math.round(Math.random() * 10000));
|
||||
}
|
||||
|
||||
this.createToolbar();
|
||||
|
||||
this._initCells();
|
||||
|
||||
this.$table.data(pluginName, this);
|
||||
|
||||
this.$table.trigger(events.create, [this]);
|
||||
};
|
||||
|
||||
Table.prototype.getConfig = function(pluginSpecificConfig) {
|
||||
// shoestring extend doesn’t support arbitrary args
|
||||
var configs = $.extend(defaultConfig, pluginSpecificConfig || {});
|
||||
return $.extend(configs, typeof TablesawConfig !== "undefined" ? TablesawConfig : {});
|
||||
};
|
||||
|
||||
Table.prototype._getPrimaryHeaderRow = function() {
|
||||
return this._getHeaderRows().eq(0);
|
||||
};
|
||||
|
||||
Table.prototype._getHeaderRows = function() {
|
||||
return this.$thead
|
||||
.children()
|
||||
.filter("tr")
|
||||
.filter(function() {
|
||||
return !$(this).is("[data-tablesaw-ignorerow]");
|
||||
});
|
||||
};
|
||||
|
||||
Table.prototype._getRowIndex = function($row) {
|
||||
return $row.prevAll().length;
|
||||
};
|
||||
|
||||
Table.prototype._getHeaderRowIndeces = function() {
|
||||
var self = this;
|
||||
var indeces = [];
|
||||
this._getHeaderRows().each(function() {
|
||||
indeces.push(self._getRowIndex($(this)));
|
||||
});
|
||||
return indeces;
|
||||
};
|
||||
|
||||
Table.prototype._getPrimaryHeaderCells = function($row) {
|
||||
return ($row || this._getPrimaryHeaderRow()).find("th");
|
||||
};
|
||||
|
||||
Table.prototype._$getCells = function(th) {
|
||||
var self = this;
|
||||
return $(th)
|
||||
.add(th.cells)
|
||||
.filter(function() {
|
||||
var $t = $(this);
|
||||
var $row = $t.parent();
|
||||
var hasColspan = $t.is("[colspan]");
|
||||
// no subrows or ignored rows (keep cells in ignored rows that do not have a colspan)
|
||||
return (
|
||||
!$row.is("[" + self.attributes.subrow + "]") &&
|
||||
(!$row.is("[" + self.attributes.ignorerow + "]") || !hasColspan)
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
Table.prototype._getVisibleColspan = function() {
|
||||
var colspan = 0;
|
||||
this._getPrimaryHeaderCells().each(function() {
|
||||
var $t = $(this);
|
||||
if ($t.css("display") !== "none") {
|
||||
colspan += parseInt($t.attr("colspan"), 10) || 1;
|
||||
}
|
||||
});
|
||||
return colspan;
|
||||
};
|
||||
|
||||
Table.prototype.getColspanForCell = function($cell) {
|
||||
var visibleColspan = this._getVisibleColspan();
|
||||
var visibleSiblingColumns = 0;
|
||||
if ($cell.closest("tr").data("tablesaw-rowspanned")) {
|
||||
visibleSiblingColumns++;
|
||||
}
|
||||
|
||||
$cell.siblings().each(function() {
|
||||
var $t = $(this);
|
||||
var colColspan = parseInt($t.attr("colspan"), 10) || 1;
|
||||
|
||||
if ($t.css("display") !== "none") {
|
||||
visibleSiblingColumns += colColspan;
|
||||
}
|
||||
});
|
||||
// console.log( $cell[ 0 ], visibleColspan, visibleSiblingColumns );
|
||||
|
||||
return visibleColspan - visibleSiblingColumns;
|
||||
};
|
||||
|
||||
Table.prototype.isCellInColumn = function(header, cell) {
|
||||
return $(header)
|
||||
.add(header.cells)
|
||||
.filter(function() {
|
||||
return this === cell;
|
||||
}).length;
|
||||
};
|
||||
|
||||
Table.prototype.updateColspanCells = function(cls, header, userAction) {
|
||||
var self = this;
|
||||
var primaryHeaderRow = self._getPrimaryHeaderRow();
|
||||
|
||||
// find persistent column rowspans
|
||||
this.$table.find("[rowspan][data-tablesaw-priority]").each(function() {
|
||||
var $t = $(this);
|
||||
if ($t.attr("data-tablesaw-priority") !== "persist") {
|
||||
return;
|
||||
}
|
||||
|
||||
var $row = $t.closest("tr");
|
||||
var rowspan = parseInt($t.attr("rowspan"), 10);
|
||||
if (rowspan > 1) {
|
||||
$row = $row.next();
|
||||
|
||||
$row.data("tablesaw-rowspanned", true);
|
||||
|
||||
rowspan--;
|
||||
}
|
||||
});
|
||||
|
||||
this.$table
|
||||
.find("[colspan],[data-tablesaw-maxcolspan]")
|
||||
.filter(function() {
|
||||
// is not in primary header row
|
||||
return $(this).closest("tr")[0] !== primaryHeaderRow[0];
|
||||
})
|
||||
.each(function() {
|
||||
var $cell = $(this);
|
||||
|
||||
if (userAction === undefined || self.isCellInColumn(header, this)) {
|
||||
} else {
|
||||
// if is not a user action AND the cell is not in the updating column, kill it
|
||||
return;
|
||||
}
|
||||
|
||||
var colspan = self.getColspanForCell($cell);
|
||||
|
||||
if (cls && userAction !== undefined) {
|
||||
// console.log( colspan === 0 ? "addClass" : "removeClass", $cell );
|
||||
$cell[colspan === 0 ? "addClass" : "removeClass"](cls);
|
||||
}
|
||||
|
||||
// cache original colspan
|
||||
var maxColspan = parseInt($cell.attr("data-tablesaw-maxcolspan"), 10);
|
||||
if (!maxColspan) {
|
||||
$cell.attr("data-tablesaw-maxcolspan", $cell.attr("colspan"));
|
||||
} else if (colspan > maxColspan) {
|
||||
colspan = maxColspan;
|
||||
}
|
||||
|
||||
// console.log( this, "setting colspan to ", colspan );
|
||||
$cell.attr("colspan", colspan);
|
||||
});
|
||||
};
|
||||
|
||||
Table.prototype._findPrimaryHeadersForCell = function(cell) {
|
||||
var $headerRow = this._getPrimaryHeaderRow();
|
||||
var headerRowIndex = this._getRowIndex($headerRow);
|
||||
var results = [];
|
||||
|
||||
for (var rowNumber = 0; rowNumber < this.headerMapping.length; rowNumber++) {
|
||||
if (rowNumber === headerRowIndex) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (var colNumber = 0; colNumber < this.headerMapping[rowNumber].length; colNumber++) {
|
||||
if (this.headerMapping[rowNumber][colNumber] === cell) {
|
||||
results.push(this.headerMapping[headerRowIndex][colNumber]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return results;
|
||||
};
|
||||
|
||||
// used by init cells
|
||||
Table.prototype.getRows = function() {
|
||||
var self = this;
|
||||
return this.$table.find("tr").filter(function() {
|
||||
return $(this)
|
||||
.closest("table")
|
||||
.is(self.$table);
|
||||
});
|
||||
};
|
||||
|
||||
// used by sortable
|
||||
Table.prototype.getBodyRows = function(tbody) {
|
||||
return (tbody ? $(tbody) : this.$tbody).children().filter("tr");
|
||||
};
|
||||
|
||||
Table.prototype.getHeaderCellIndex = function(cell) {
|
||||
var lookup = this.headerMapping[0];
|
||||
for (var colIndex = 0; colIndex < lookup.length; colIndex++) {
|
||||
if (lookup[colIndex] === cell) {
|
||||
return colIndex;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
};
|
||||
|
||||
Table.prototype._initCells = function() {
|
||||
// re-establish original colspans
|
||||
this.$table.find("[data-tablesaw-maxcolspan]").each(function() {
|
||||
var $t = $(this);
|
||||
$t.attr("colspan", $t.attr("data-tablesaw-maxcolspan"));
|
||||
});
|
||||
|
||||
var $rows = this.getRows();
|
||||
var columnLookup = [];
|
||||
|
||||
$rows.each(function(rowNumber) {
|
||||
columnLookup[rowNumber] = [];
|
||||
});
|
||||
|
||||
$rows.each(function(rowNumber) {
|
||||
var coltally = 0;
|
||||
var $t = $(this);
|
||||
var children = $t.children();
|
||||
|
||||
children.each(function() {
|
||||
var colspan = parseInt(
|
||||
this.getAttribute("data-tablesaw-maxcolspan") || this.getAttribute("colspan"),
|
||||
10
|
||||
);
|
||||
var rowspan = parseInt(this.getAttribute("rowspan"), 10);
|
||||
|
||||
// set in a previous rowspan
|
||||
while (columnLookup[rowNumber][coltally]) {
|
||||
coltally++;
|
||||
}
|
||||
|
||||
columnLookup[rowNumber][coltally] = this;
|
||||
|
||||
// TODO? both colspan and rowspan
|
||||
if (colspan) {
|
||||
for (var k = 0; k < colspan - 1; k++) {
|
||||
coltally++;
|
||||
columnLookup[rowNumber][coltally] = this;
|
||||
}
|
||||
}
|
||||
if (rowspan) {
|
||||
for (var j = 1; j < rowspan; j++) {
|
||||
columnLookup[rowNumber + j][coltally] = this;
|
||||
}
|
||||
}
|
||||
|
||||
coltally++;
|
||||
});
|
||||
});
|
||||
|
||||
var headerRowIndeces = this._getHeaderRowIndeces();
|
||||
for (var colNumber = 0; colNumber < columnLookup[0].length; colNumber++) {
|
||||
for (var headerIndex = 0, k = headerRowIndeces.length; headerIndex < k; headerIndex++) {
|
||||
var headerCol = columnLookup[headerRowIndeces[headerIndex]][colNumber];
|
||||
|
||||
var rowNumber = headerRowIndeces[headerIndex];
|
||||
var rowCell;
|
||||
|
||||
if (!headerCol.cells) {
|
||||
headerCol.cells = [];
|
||||
}
|
||||
|
||||
while (rowNumber < columnLookup.length) {
|
||||
rowCell = columnLookup[rowNumber][colNumber];
|
||||
|
||||
if (headerCol !== rowCell) {
|
||||
headerCol.cells.push(rowCell);
|
||||
}
|
||||
|
||||
rowNumber++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.headerMapping = columnLookup;
|
||||
};
|
||||
|
||||
Table.prototype.refresh = function() {
|
||||
this._initCells();
|
||||
|
||||
this.$table.trigger(events.refresh, [this]);
|
||||
};
|
||||
|
||||
Table.prototype._getToolbarAnchor = function() {
|
||||
var $parent = this.$table.parent();
|
||||
if ($parent.is(".tablesaw-overflow")) {
|
||||
return $parent;
|
||||
}
|
||||
return this.$table;
|
||||
};
|
||||
|
||||
Table.prototype._getToolbar = function($anchor) {
|
||||
if (!$anchor) {
|
||||
$anchor = this._getToolbarAnchor();
|
||||
}
|
||||
return $anchor.prev().filter("." + classes.toolbar);
|
||||
};
|
||||
|
||||
Table.prototype.createToolbar = function() {
|
||||
// Insert the toolbar
|
||||
// TODO move this into a separate component
|
||||
var $anchor = this._getToolbarAnchor();
|
||||
var $toolbar = this._getToolbar($anchor);
|
||||
if (!$toolbar.length) {
|
||||
$toolbar = $("<div>")
|
||||
.addClass(classes.toolbar)
|
||||
.insertBefore($anchor);
|
||||
}
|
||||
this.$toolbar = $toolbar;
|
||||
|
||||
if (this.mode) {
|
||||
this.$toolbar.addClass("tablesaw-mode-" + this.mode);
|
||||
}
|
||||
};
|
||||
|
||||
Table.prototype.destroy = function() {
|
||||
// Don’t remove the toolbar, just erase the classes on it.
|
||||
// Some of the table features are not yet destroy-friendly.
|
||||
this._getToolbar().each(function() {
|
||||
this.className = this.className.replace(/\btablesaw-mode\-\w*\b/gi, "");
|
||||
});
|
||||
|
||||
var tableId = this.$table.attr("id");
|
||||
$(document).off("." + tableId);
|
||||
$(window).off("." + tableId);
|
||||
|
||||
// other plugins
|
||||
this.$table.trigger(events.destroy, [this]);
|
||||
|
||||
this.$table.removeData(pluginName);
|
||||
};
|
||||
|
||||
// Collection method.
|
||||
$.fn[pluginName] = function() {
|
||||
return this.each(function() {
|
||||
var $t = $(this);
|
||||
|
||||
if ($t.data(pluginName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
new Table(this);
|
||||
});
|
||||
};
|
||||
|
||||
var $doc = $(document);
|
||||
$doc.on("enhance.tablesaw", function(e) {
|
||||
// Cut the mustard
|
||||
if (Tablesaw.mustard) {
|
||||
var $target = $(e.target);
|
||||
if ($target.parent().length) {
|
||||
$target = $target.parent();
|
||||
}
|
||||
|
||||
$target
|
||||
.find(initSelector)
|
||||
.filter(initFilterSelector)
|
||||
[pluginName]();
|
||||
}
|
||||
});
|
||||
|
||||
// Avoid a resize during scroll:
|
||||
// Some Mobile devices trigger a resize during scroll (sometimes when
|
||||
// doing elastic stretch at the end of the document or from the
|
||||
// location bar hide)
|
||||
var isScrolling = false;
|
||||
var scrollTimeout;
|
||||
$doc.on("scroll.tablesaw", function() {
|
||||
isScrolling = true;
|
||||
|
||||
window.clearTimeout(scrollTimeout);
|
||||
scrollTimeout = window.setTimeout(function() {
|
||||
isScrolling = false;
|
||||
}, 300); // must be greater than the resize timeout below
|
||||
});
|
||||
|
||||
var resizeTimeout;
|
||||
$(window).on("resize", function() {
|
||||
if (!isScrolling) {
|
||||
window.clearTimeout(resizeTimeout);
|
||||
resizeTimeout = window.setTimeout(function() {
|
||||
$doc.trigger(events.resize);
|
||||
}, 150); // must be less than the scrolling timeout above.
|
||||
}
|
||||
});
|
||||
|
||||
Tablesaw.Table = Table;
|
||||
})();
|
||||
|
||||
(function() {
|
||||
var classes = {
|
||||
stackTable: "tablesaw-stack",
|
||||
cellLabels: "tablesaw-cell-label",
|
||||
cellContentLabels: "tablesaw-cell-content"
|
||||
};
|
||||
|
||||
var data = {
|
||||
key: "tablesaw-stack"
|
||||
};
|
||||
|
||||
var attrs = {
|
||||
labelless: "data-tablesaw-no-labels",
|
||||
hideempty: "data-tablesaw-hide-empty"
|
||||
};
|
||||
|
||||
var Stack = function(element, tablesaw) {
|
||||
this.tablesaw = tablesaw;
|
||||
this.$table = $(element);
|
||||
|
||||
this.labelless = this.$table.is("[" + attrs.labelless + "]");
|
||||
this.hideempty = this.$table.is("[" + attrs.hideempty + "]");
|
||||
|
||||
this.$table.data(data.key, this);
|
||||
};
|
||||
|
||||
Stack.prototype.init = function() {
|
||||
this.$table.addClass(classes.stackTable);
|
||||
|
||||
if (this.labelless) {
|
||||
return;
|
||||
}
|
||||
|
||||
var self = this;
|
||||
|
||||
this.$table
|
||||
.find("th, td")
|
||||
.filter(function() {
|
||||
return !$(this).closest("thead").length;
|
||||
})
|
||||
.filter(function() {
|
||||
return (
|
||||
!$(this).is("[" + attrs.labelless + "]") &&
|
||||
!$(this)
|
||||
.closest("tr")
|
||||
.is("[" + attrs.labelless + "]") &&
|
||||
(!self.hideempty || !!$(this).html())
|
||||
);
|
||||
})
|
||||
.each(function() {
|
||||
var $newHeader = $(document.createElement("b")).addClass(classes.cellLabels);
|
||||
var $cell = $(this);
|
||||
|
||||
$(self.tablesaw._findPrimaryHeadersForCell(this)).each(function(index) {
|
||||
var $header = $(this.cloneNode(true));
|
||||
// TODO decouple from sortable better
|
||||
// Changed from .text() in https://github.com/filamentgroup/tablesaw/commit/b9c12a8f893ec192830ec3ba2d75f062642f935b
|
||||
// to preserve structural html in headers, like <a>
|
||||
var $sortableButton = $header.find(".tablesaw-sortable-btn");
|
||||
$header.find(".tablesaw-sortable-arrow").remove();
|
||||
|
||||
// TODO decouple from checkall better
|
||||
var $checkall = $header.find("[data-tablesaw-checkall]");
|
||||
$checkall.closest("label").remove();
|
||||
if ($checkall.length) {
|
||||
$newHeader = $([]);
|
||||
return;
|
||||
}
|
||||
|
||||
if (index > 0) {
|
||||
$newHeader.append(document.createTextNode(", "));
|
||||
}
|
||||
|
||||
var parentNode = $sortableButton.length ? $sortableButton[0] : $header[0];
|
||||
var el;
|
||||
while ((el = parentNode.firstChild)) {
|
||||
$newHeader[0].appendChild(el);
|
||||
}
|
||||
});
|
||||
|
||||
if ($newHeader.length && !$cell.find("." + classes.cellContentLabels).length) {
|
||||
$cell.wrapInner("<span class='" + classes.cellContentLabels + "'></span>");
|
||||
}
|
||||
|
||||
// Update if already exists.
|
||||
var $label = $cell.find("." + classes.cellLabels);
|
||||
if (!$label.length) {
|
||||
$cell.prepend(document.createTextNode(" "));
|
||||
$cell.prepend($newHeader);
|
||||
} else {
|
||||
// only if changed
|
||||
$label.replaceWith($newHeader);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Stack.prototype.destroy = function() {
|
||||
this.$table.removeClass(classes.stackTable);
|
||||
this.$table.find("." + classes.cellLabels).remove();
|
||||
this.$table.find("." + classes.cellContentLabels).each(function() {
|
||||
$(this).replaceWith($(this.childNodes));
|
||||
});
|
||||
};
|
||||
|
||||
// on tablecreate, init
|
||||
$(document)
|
||||
.on(Tablesaw.events.create, function(e, tablesaw) {
|
||||
if (tablesaw.mode === "stack") {
|
||||
var table = new Stack(tablesaw.table, tablesaw);
|
||||
table.init();
|
||||
}
|
||||
})
|
||||
.on(Tablesaw.events.refresh, function(e, tablesaw) {
|
||||
if (tablesaw.mode === "stack") {
|
||||
$(tablesaw.table)
|
||||
.data(data.key)
|
||||
.init();
|
||||
}
|
||||
})
|
||||
.on(Tablesaw.events.destroy, function(e, tablesaw) {
|
||||
if (tablesaw.mode === "stack") {
|
||||
$(tablesaw.table)
|
||||
.data(data.key)
|
||||
.destroy();
|
||||
}
|
||||
});
|
||||
|
||||
Tablesaw.Stack = Stack;
|
||||
})();
|
||||
|
||||
return Tablesaw;
|
||||
}));
|
||||
2371
assets/libs/tablesaw/dist/stackonly/tablesaw.stackonly.js
vendored
Normal file
2371
assets/libs/tablesaw/dist/stackonly/tablesaw.stackonly.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
18
assets/libs/tablesaw/dist/tablesaw-init.js
vendored
Normal file
18
assets/libs/tablesaw/dist/tablesaw-init.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*! Tablesaw - v3.1.2 - 2019-03-19
|
||||
* https://github.com/filamentgroup/tablesaw
|
||||
* Copyright (c) 2019 Filament Group; Licensed MIT */
|
||||
(function(win) {
|
||||
"use strict";
|
||||
|
||||
// DOM-ready auto-init of plugins.
|
||||
// Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM
|
||||
// Use raw DOMContentLoaded instead of shoestring (may have issues in Android 2.3, exhibited by stack table)
|
||||
if (!("Tablesaw" in win)) {
|
||||
throw new Error("Tablesaw library not found.");
|
||||
}
|
||||
if (!("init" in Tablesaw)) {
|
||||
throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version.");
|
||||
}
|
||||
|
||||
Tablesaw.init();
|
||||
})(typeof window !== "undefined" ? window : this);
|
||||
752
assets/libs/tablesaw/dist/tablesaw.css
vendored
Normal file
752
assets/libs/tablesaw/dist/tablesaw.css
vendored
Normal file
@@ -0,0 +1,752 @@
|
||||
/*! Tablesaw - v3.1.2 - 2019-03-19
|
||||
* https://github.com/filamentgroup/tablesaw
|
||||
* Copyright (c) 2019 Filament Group; Licensed MIT */
|
||||
|
||||
.tablesaw {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
empty-cells: show;
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tablesaw * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tablesaw-btn {
|
||||
border: 1px solid #ccc;
|
||||
border-radius: .25em;
|
||||
background: none;
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,1);
|
||||
color: #4a4a4a;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: .5em .85em .4em .85em;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: capitalize;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
a.tablesaw-btn {
|
||||
color: #1c95d4;
|
||||
}
|
||||
|
||||
.tablesaw-btn:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Default radio/checkbox styling horizonal controlgroups. */
|
||||
|
||||
.tablesaw-btn:active {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
@supports (box-shadow: none ) {
|
||||
.tablesaw-btn:focus {
|
||||
background-color: #fff;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.tablesaw-btn:focus {
|
||||
box-shadow: 0 0 .35em #4faeef !important;
|
||||
}
|
||||
}
|
||||
|
||||
.tablesaw-btn-select select {
|
||||
background: none;
|
||||
border: none;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 2;
|
||||
min-height: 1em;
|
||||
opacity: 0;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.tablesaw-btn select option {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.tablesaw-btn {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
height: auto;
|
||||
position: relative;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.tablesaw-btn.btn-small {
|
||||
font-size: 1.0625em;
|
||||
line-height: 19px;
|
||||
padding: .3em 1em .3em 1em;
|
||||
}
|
||||
|
||||
.tablesaw-btn.btn-micro {
|
||||
font-size: .8125em;
|
||||
padding: .4em .7em .25em .7em;
|
||||
}
|
||||
|
||||
.tablesaw-btn-select {
|
||||
padding-right: 1.5em;
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
color: #4d4d4d;
|
||||
padding-right: 2.5em;
|
||||
min-width: 7.25em;
|
||||
}
|
||||
|
||||
.tablesaw-btn-select:after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
background: none;
|
||||
background-repeat: no-repeat;
|
||||
background-position: .25em .45em;
|
||||
content: "\25bc";
|
||||
font-size: .55em;
|
||||
padding-top: 1.2em;
|
||||
padding-left: 1em;
|
||||
left: auto;
|
||||
right: 0;
|
||||
margin: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 1.8em;
|
||||
}
|
||||
|
||||
.tablesaw-btn-select.btn-small:after,
|
||||
.tablesaw-btn-select.btn-micro:after {
|
||||
width: 1.2em;
|
||||
font-size: .5em;
|
||||
padding-top: 1em;
|
||||
padding-right: .5em;
|
||||
line-height: 1.65;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
border-left-width: 0;
|
||||
}
|
||||
|
||||
/* Column navigation buttons for swipe and columntoggle tables */
|
||||
|
||||
.tablesaw-advance .tablesaw-btn {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
box-sizing: border-box;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
border-radius: .25em;
|
||||
}
|
||||
|
||||
.tablesaw-advance .tablesaw-btn.btn-micro {
|
||||
font-size: .8125em;
|
||||
padding: .3em .7em .25em .7em;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
width: 1.8em;
|
||||
height: 1.8em;
|
||||
background-position: 50% 50%;
|
||||
margin-left: .25em;
|
||||
margin-right: .25em;
|
||||
position: relative;
|
||||
text-indent: -9999px;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn.left:before,
|
||||
.tablesaw-advance a.tablesaw-nav-btn.right:before,
|
||||
.tablesaw-advance a.tablesaw-nav-btn.down:before,
|
||||
.tablesaw-advance a.tablesaw-nav-btn.up:before {
|
||||
content: "\0020";
|
||||
overflow: hidden;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn.down:before {
|
||||
left: .5em;
|
||||
top: .65em;
|
||||
border-left: 5px solid transparent;
|
||||
border-right: 5px solid transparent;
|
||||
border-top: 5px solid #808080;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn.up:before {
|
||||
left: .5em;
|
||||
top: .65em;
|
||||
border-left: 5px solid transparent;
|
||||
border-right: 5px solid transparent;
|
||||
border-bottom: 5px solid #808080;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn.left:before,
|
||||
.tablesaw-advance a.tablesaw-nav-btn.right:before {
|
||||
top: .45em;
|
||||
border-top: 5px solid transparent;
|
||||
border-bottom: 5px solid transparent;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn.left:before {
|
||||
left: .6em;
|
||||
border-right: 5px solid #808080;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn.right:before {
|
||||
left: .7em;
|
||||
border-left: 5px solid #808080;
|
||||
}
|
||||
|
||||
.tablesaw-advance a.tablesaw-nav-btn.disabled {
|
||||
opacity: .25;
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Table Toolbar */
|
||||
|
||||
.tablesaw-bar {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.tablesaw-bar * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tablesaw-bar-section {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.tablesaw-bar-section label {
|
||||
font-size: .875em;
|
||||
padding: .5em 0;
|
||||
clear: both;
|
||||
display: block;
|
||||
color: #888;
|
||||
margin-right: .5em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.tablesaw-btn,
|
||||
.tablesaw-enhanced .tablesaw-btn {
|
||||
margin-top: .5em;
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
|
||||
.tablesaw-btn-select,
|
||||
.tablesaw-enhanced .tablesaw-btn-select {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* TODO */
|
||||
|
||||
.tablesaw-bar .tablesaw-bar-section .tablesaw-btn {
|
||||
margin-left: .4em;
|
||||
margin-top: 0;
|
||||
text-transform: uppercase;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background: transparent;
|
||||
font-size: 1em;
|
||||
padding-left: .3em;
|
||||
}
|
||||
|
||||
.tablesaw-bar .tablesaw-bar-section .btn-select {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.tablesaw-bar .tablesaw-bar-section .btn-select:after {
|
||||
padding-top: .9em;
|
||||
}
|
||||
|
||||
.tablesaw-bar .tablesaw-bar-section select {
|
||||
color: #888;
|
||||
text-transform: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.tablesaw-bar-section ~ table {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.tablesaw-bar-section .abbreviated {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.tablesaw-bar-section .longform {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width: 24em) {
|
||||
.tablesaw-bar-section .abbreviated {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tablesaw-bar-section .longform {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
.tablesaw th,
|
||||
.tablesaw td {
|
||||
padding: .5em .7em;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.tablesaw-sortable-btn {
|
||||
/* same as cell padding above */
|
||||
padding: .5em .7em;
|
||||
}
|
||||
|
||||
.tablesaw thead th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Table rows have a gray bottom stroke by default */
|
||||
|
||||
.tablesaw-row-border tr {
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
}
|
||||
|
||||
/* Zebra striping */
|
||||
|
||||
.tablesaw-row-zebra tr:nth-child(2n) {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
.tablesaw caption {
|
||||
text-align: left;
|
||||
margin: .59375em 0;
|
||||
}
|
||||
|
||||
.tablesaw-swipe .tablesaw-swipe-cellpersist {
|
||||
border-right: 2px solid #e4e1de;
|
||||
}
|
||||
|
||||
.tablesaw-swipe-shadow .tablesaw-swipe-cellpersist {
|
||||
border-right-width: 1px;
|
||||
}
|
||||
|
||||
.tablesaw-swipe-shadow .tablesaw-swipe-cellpersist {
|
||||
box-shadow: 3px 0 4px -1px #e4e1de;
|
||||
}
|
||||
|
||||
.tablesaw-stack td .tablesaw-cell-label,
|
||||
.tablesaw-stack th .tablesaw-cell-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Mobile first styles: Begin with the stacked presentation at narrow widths */
|
||||
|
||||
/* Support note IE9+: @media only all */
|
||||
|
||||
@media only all {
|
||||
/* Show the table cells as a block level element */
|
||||
|
||||
.tablesaw-stack {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.tablesaw-stack td,
|
||||
.tablesaw-stack th {
|
||||
text-align: left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tablesaw-stack tr {
|
||||
clear: both;
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
/* Make the label elements a percentage width */
|
||||
|
||||
.tablesaw-stack td .tablesaw-cell-label,
|
||||
.tablesaw-stack th .tablesaw-cell-label {
|
||||
display: inline-block;
|
||||
padding: 0 .6em 0 0;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
/* For grouped headers, have a different style to visually separate the levels by classing the first label in each col group */
|
||||
|
||||
.tablesaw-stack th .tablesaw-cell-label-top,
|
||||
.tablesaw-stack td .tablesaw-cell-label-top {
|
||||
display: block;
|
||||
padding: .4em 0;
|
||||
margin: .4em 0;
|
||||
}
|
||||
|
||||
.tablesaw-cell-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Avoid double strokes when stacked */
|
||||
|
||||
.tablesaw-stack tbody th.group {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
/* Avoid double strokes when stacked */
|
||||
|
||||
.tablesaw-stack th.group b.tablesaw-cell-label {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 39.9375em) {
|
||||
/* Table rows have a gray bottom stroke by default */
|
||||
|
||||
.tablesaw-stack tbody tr {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
}
|
||||
|
||||
.tablesaw-stack thead td,
|
||||
.tablesaw-stack thead th {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tablesaw-stack tbody td,
|
||||
.tablesaw-stack tbody th {
|
||||
display: block;
|
||||
float: left;
|
||||
clear: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tablesaw-cell-label {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.tablesaw-cell-content {
|
||||
display: inline-block;
|
||||
max-width: 67%;
|
||||
}
|
||||
|
||||
.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-label,
|
||||
.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-content {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tablesaw-stack td:empty,
|
||||
.tablesaw-stack th:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Media query to show as a standard table at 560px (35em x 16px) or wider */
|
||||
|
||||
@media (min-width: 40em) {
|
||||
.tablesaw-stack tr {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
/* Show the table header rows */
|
||||
|
||||
.tablesaw-stack td,
|
||||
.tablesaw-stack th,
|
||||
.tablesaw-stack thead td,
|
||||
.tablesaw-stack thead th {
|
||||
display: table-cell;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Hide the labels in each cell */
|
||||
|
||||
.tablesaw-stack td .tablesaw-cell-label,
|
||||
.tablesaw-stack th .tablesaw-cell-label {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.tablesaw-fix-persist {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
@media only all {
|
||||
/* Unchecked manually: Always hide */
|
||||
|
||||
.tablesaw-swipe th.tablesaw-swipe-cellhidden,
|
||||
.tablesaw-swipe td.tablesaw-swipe-cellhidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.tablesaw-overflow {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/* More in skin.css */
|
||||
}
|
||||
|
||||
.tablesaw-overflow > .tablesaw {
|
||||
margin-top: 2px;
|
||||
/* sortable focus rings are clipped */
|
||||
}
|
||||
|
||||
/* Used for a11y text on button: "Columns" */
|
||||
|
||||
.tablesaw-columntoggle-btn span {
|
||||
text-indent: -9999px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-btnwrap {
|
||||
position: relative;
|
||||
/* for dialog positioning */
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-btnwrap .dialog-content {
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle tbody td {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Remove top/bottom margins around the fieldcontain on check list */
|
||||
|
||||
.tablesaw-columntoggle-popup {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-btnwrap.visible .tablesaw-columntoggle-popup {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 2em;
|
||||
right: 0;
|
||||
background-color: #fff;
|
||||
padding: .5em .8em;
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 0 1px 2px #ccc;
|
||||
border-radius: .2em;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-popup fieldset {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Hide all prioritized columns by default */
|
||||
|
||||
@media only all {
|
||||
.tablesaw-columntoggle th.tablesaw-priority-6,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-6,
|
||||
.tablesaw-columntoggle th.tablesaw-priority-5,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-5,
|
||||
.tablesaw-columntoggle th.tablesaw-priority-4,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-4,
|
||||
.tablesaw-columntoggle th.tablesaw-priority-3,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-3,
|
||||
.tablesaw-columntoggle th.tablesaw-priority-2,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-2,
|
||||
.tablesaw-columntoggle th.tablesaw-priority-1,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-1,
|
||||
.tablesaw-columntoggle th.tablesaw-priority-0,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-0 {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-btnwrap .dialog-content {
|
||||
top: 0 !important;
|
||||
right: 1em;
|
||||
left: auto !important;
|
||||
width: 12em;
|
||||
max-width: 18em;
|
||||
margin: -.5em auto 0;
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-btnwrap .dialog-content:focus {
|
||||
outline-style: none;
|
||||
}
|
||||
|
||||
/* Preset breakpoints if "" class added to table */
|
||||
|
||||
/* Show priority 1 at 320px (20em x 16px) */
|
||||
|
||||
@media (min-width: 20em) {
|
||||
.tablesaw-columntoggle th.tablesaw-priority-1,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-1 {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show priority 2 at 480px (30em x 16px) */
|
||||
|
||||
@media (min-width: 30em) {
|
||||
.tablesaw-columntoggle th.tablesaw-priority-2,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-2 {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show priority 3 at 640px (40em x 16px) */
|
||||
|
||||
@media (min-width: 40em) {
|
||||
.tablesaw-columntoggle th.tablesaw-priority-3,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-3 {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle tbody td {
|
||||
line-height: 2;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show priority 4 at 800px (50em x 16px) */
|
||||
|
||||
@media (min-width: 50em) {
|
||||
.tablesaw-columntoggle th.tablesaw-priority-4,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-4 {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show priority 5 at 960px (60em x 16px) */
|
||||
|
||||
@media (min-width: 60em) {
|
||||
.tablesaw-columntoggle th.tablesaw-priority-5,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-5 {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show priority 6 at 1,120px (70em x 16px) */
|
||||
|
||||
@media (min-width: 70em) {
|
||||
.tablesaw-columntoggle th.tablesaw-priority-6,
|
||||
.tablesaw-columntoggle td.tablesaw-priority-6 {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
|
||||
@media only all {
|
||||
/* Unchecked manually: Always hide */
|
||||
|
||||
.tablesaw-columntoggle th.tablesaw-toggle-cellhidden,
|
||||
.tablesaw-columntoggle td.tablesaw-toggle-cellhidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Checked manually: Always show */
|
||||
|
||||
.tablesaw-columntoggle th.tablesaw-toggle-cellvisible,
|
||||
.tablesaw-columntoggle td.tablesaw-toggle-cellvisible {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-popup .tablesaw-btn-group > label {
|
||||
display: block;
|
||||
padding: .2em 0;
|
||||
white-space: nowrap;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.tablesaw-columntoggle-popup .tablesaw-btn-group > label input {
|
||||
margin-right: .8em;
|
||||
}
|
||||
|
||||
.tablesaw-sortable-head {
|
||||
position: relative;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Override */
|
||||
|
||||
.tablesaw .tablesaw-sortable-head {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tablesaw-sortable-btn {
|
||||
min-width: 100%;
|
||||
color: inherit;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
text-align: inherit;
|
||||
font: inherit;
|
||||
text-transform: inherit;
|
||||
}
|
||||
|
||||
.tablesaw-sortable-arrow:after {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 14px;
|
||||
content: " ";
|
||||
margin-left: .3125em;
|
||||
}
|
||||
|
||||
.tablesaw-sortable-ascending .tablesaw-sortable-arrow:after,
|
||||
.tablesaw-sortable-descending .tablesaw-sortable-arrow:after {
|
||||
content: "\0020";
|
||||
}
|
||||
|
||||
.tablesaw-sortable-ascending .tablesaw-sortable-arrow:after {
|
||||
content: "\2191";
|
||||
}
|
||||
|
||||
.tablesaw-sortable-descending .tablesaw-sortable-arrow:after {
|
||||
content: "\2193";
|
||||
}
|
||||
|
||||
.tablesaw-advance {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.tablesaw-advance.minimap {
|
||||
margin-right: .4em;
|
||||
}
|
||||
|
||||
.tablesaw-advance-dots {
|
||||
float: left;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.tablesaw-advance-dots li {
|
||||
display: table-cell;
|
||||
margin: 0;
|
||||
padding: .4em .2em;
|
||||
}
|
||||
|
||||
.tablesaw-advance-dots li i {
|
||||
width: .25em;
|
||||
height: .25em;
|
||||
background: #555;
|
||||
border-radius: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.tablesaw-advance-dots-hide {
|
||||
opacity: .25;
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
2156
assets/libs/tablesaw/dist/tablesaw.jquery.js
vendored
Normal file
2156
assets/libs/tablesaw/dist/tablesaw.jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3857
assets/libs/tablesaw/dist/tablesaw.js
vendored
Normal file
3857
assets/libs/tablesaw/dist/tablesaw.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user