diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-27 03:47:30 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-27 03:47:30 +0300 |
| commit | 059e0d95d0c28bc5060e87e146eaf7411f51bf90 (patch) | |
| tree | 7c21ac432f16dde2329a0d5954d70711eceb48e6 /public/assets/js/DataTables/Scroller-2.1.1 | |
| parent | 26cd8ee99659ef1926c96a049c93645ffc9b169d (diff) | |
| download | gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.gz gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.bz2 gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.zip | |
skeleton commit; based on an anom project
Diffstat (limited to 'public/assets/js/DataTables/Scroller-2.1.1')
34 files changed, 2121 insertions, 0 deletions
diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap.css new file mode 100644 index 0000000..849a26c --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap.css @@ -0,0 +1,37 @@ +div.dts { + display: block !important; +} +div.dts tbody th, +div.dts tbody td { + white-space: nowrap; +} +div.dts div.dts_loading { + z-index: 1; +} +div.dts div.dts_label { + position: absolute; + right: 10px; + background: rgba(0, 0, 0, 0.8); + color: white; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); + text-align: right; + border-radius: 3px; + padding: 0.4em; + z-index: 2; + display: none; +} +div.dts div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.dts div.dataTables_scrollBody table { + background-color: white; + z-index: 2; +} +div.dts div.dataTables_paginate, +div.dts div.dataTables_length { + display: none; +} + +div.DTS tbody tr { + background-color: white; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap.min.css new file mode 100644 index 0000000..8f7eae8 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap.min.css @@ -0,0 +1 @@ +div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none}div.DTS tbody tr{background-color:white} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap4.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap4.css new file mode 100644 index 0000000..ff5791a --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap4.css @@ -0,0 +1,37 @@ +div.dts { + display: block !important; +} +div.dts tbody th, +div.dts tbody td { + white-space: nowrap; +} +div.dts div.dts_loading { + z-index: 1; +} +div.dts div.dts_label { + position: absolute; + right: 10px; + background: rgba(0, 0, 0, 0.8); + color: white; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); + text-align: right; + border-radius: 3px; + padding: 0.4em; + z-index: 2; + display: none; +} +div.dts div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.dts div.dataTables_scrollBody table { + background-color: white; + z-index: 2; +} +div.dts div.dataTables_paginate, +div.dts div.dataTables_length { + display: none; +} + +div.DTS div.dataTables_scrollBody table { + background-color: white; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap4.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap4.min.css new file mode 100644 index 0000000..a22cb2f --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap4.min.css @@ -0,0 +1 @@ +div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none}div.DTS div.dataTables_scrollBody table{background-color:white} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap5.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap5.css new file mode 100644 index 0000000..ff5791a --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap5.css @@ -0,0 +1,37 @@ +div.dts { + display: block !important; +} +div.dts tbody th, +div.dts tbody td { + white-space: nowrap; +} +div.dts div.dts_loading { + z-index: 1; +} +div.dts div.dts_label { + position: absolute; + right: 10px; + background: rgba(0, 0, 0, 0.8); + color: white; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); + text-align: right; + border-radius: 3px; + padding: 0.4em; + z-index: 2; + display: none; +} +div.dts div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.dts div.dataTables_scrollBody table { + background-color: white; + z-index: 2; +} +div.dts div.dataTables_paginate, +div.dts div.dataTables_length { + display: none; +} + +div.DTS div.dataTables_scrollBody table { + background-color: white; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap5.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap5.min.css new file mode 100644 index 0000000..a22cb2f --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bootstrap5.min.css @@ -0,0 +1 @@ +div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none}div.DTS div.dataTables_scrollBody table{background-color:white} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bulma.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bulma.css new file mode 100644 index 0000000..ce5959d --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bulma.css @@ -0,0 +1,33 @@ +div.dts { + display: block !important; +} +div.dts tbody th, +div.dts tbody td { + white-space: nowrap; +} +div.dts div.dts_loading { + z-index: 1; +} +div.dts div.dts_label { + position: absolute; + right: 10px; + background: rgba(0, 0, 0, 0.8); + color: white; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); + text-align: right; + border-radius: 3px; + padding: 0.4em; + z-index: 2; + display: none; +} +div.dts div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.dts div.dataTables_scrollBody table { + background-color: white; + z-index: 2; +} +div.dts div.dataTables_paginate, +div.dts div.dataTables_length { + display: none; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bulma.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bulma.min.css new file mode 100644 index 0000000..08fb958 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.bulma.min.css @@ -0,0 +1 @@ +div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.dataTables.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.dataTables.css new file mode 100644 index 0000000..ce5959d --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.dataTables.css @@ -0,0 +1,33 @@ +div.dts { + display: block !important; +} +div.dts tbody th, +div.dts tbody td { + white-space: nowrap; +} +div.dts div.dts_loading { + z-index: 1; +} +div.dts div.dts_label { + position: absolute; + right: 10px; + background: rgba(0, 0, 0, 0.8); + color: white; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); + text-align: right; + border-radius: 3px; + padding: 0.4em; + z-index: 2; + display: none; +} +div.dts div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.dts div.dataTables_scrollBody table { + background-color: white; + z-index: 2; +} +div.dts div.dataTables_paginate, +div.dts div.dataTables_length { + display: none; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.dataTables.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.dataTables.min.css new file mode 100644 index 0000000..08fb958 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.dataTables.min.css @@ -0,0 +1 @@ +div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.foundation.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.foundation.css new file mode 100644 index 0000000..29d3a46 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.foundation.css @@ -0,0 +1,17 @@ +div.DTS tbody th, +div.DTS tbody td { + white-space: nowrap; +} +div.DTS div.DTS_Loading { + z-index: 1; +} +div.DTS div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.DTS div.dataTables_scrollBody table { + z-index: 2; +} +div.DTS div.dataTables_paginate, +div.DTS div.dataTables_length { + display: none; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.foundation.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.foundation.min.css new file mode 100644 index 0000000..0c83fee --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.foundation.min.css @@ -0,0 +1 @@ +div.DTS tbody th,div.DTS tbody td{white-space:nowrap}div.DTS div.DTS_Loading{z-index:1}div.DTS div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.DTS div.dataTables_scrollBody table{z-index:2}div.DTS div.dataTables_paginate,div.DTS div.dataTables_length{display:none} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.jqueryui.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.jqueryui.css new file mode 100644 index 0000000..ce5959d --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.jqueryui.css @@ -0,0 +1,33 @@ +div.dts { + display: block !important; +} +div.dts tbody th, +div.dts tbody td { + white-space: nowrap; +} +div.dts div.dts_loading { + z-index: 1; +} +div.dts div.dts_label { + position: absolute; + right: 10px; + background: rgba(0, 0, 0, 0.8); + color: white; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); + text-align: right; + border-radius: 3px; + padding: 0.4em; + z-index: 2; + display: none; +} +div.dts div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.dts div.dataTables_scrollBody table { + background-color: white; + z-index: 2; +} +div.dts div.dataTables_paginate, +div.dts div.dataTables_length { + display: none; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.jqueryui.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.jqueryui.min.css new file mode 100644 index 0000000..08fb958 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.jqueryui.min.css @@ -0,0 +1 @@ +div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.semanticui.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.semanticui.css new file mode 100644 index 0000000..ce5959d --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.semanticui.css @@ -0,0 +1,33 @@ +div.dts { + display: block !important; +} +div.dts tbody th, +div.dts tbody td { + white-space: nowrap; +} +div.dts div.dts_loading { + z-index: 1; +} +div.dts div.dts_label { + position: absolute; + right: 10px; + background: rgba(0, 0, 0, 0.8); + color: white; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); + text-align: right; + border-radius: 3px; + padding: 0.4em; + z-index: 2; + display: none; +} +div.dts div.dataTables_scrollBody { + background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px); +} +div.dts div.dataTables_scrollBody table { + background-color: white; + z-index: 2; +} +div.dts div.dataTables_paginate, +div.dts div.dataTables_length { + display: none; +} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.semanticui.min.css b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.semanticui.min.css new file mode 100644 index 0000000..08fb958 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/css/scroller.semanticui.min.css @@ -0,0 +1 @@ +div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none} diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/dataTables.scroller.js b/public/assets/js/DataTables/Scroller-2.1.1/js/dataTables.scroller.js new file mode 100644 index 0000000..de27e27 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/dataTables.scroller.js @@ -0,0 +1,1353 @@ +/*! Scroller 2.1.1 + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + +/** + * @summary Scroller + * @description Virtual rendering for DataTables + * @version 2.1.1 + * @author SpryMedia Ltd (www.sprymedia.co.uk) + * @contact www.sprymedia.co.uk/contact + * @copyright SpryMedia Ltd. + * + * This source file is free software, available under the following license: + * MIT license - http://datatables.net/license/mit + * + * This source file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. + * + * For details please refer to: http://www.datatables.net + */ + + +/** + * Scroller is a virtual rendering plug-in for DataTables which allows large + * datasets to be drawn on screen every quickly. What the virtual rendering means + * is that only the visible portion of the table (and a bit to either side to make + * the scrolling smooth) is drawn, while the scrolling container gives the + * visual impression that the whole table is visible. This is done by making use + * of the pagination abilities of DataTables and moving the table around in the + * scrolling container DataTables adds to the page. The scrolling container is + * forced to the height it would be for the full table display using an extra + * element. + * + * Note that rows in the table MUST all be the same height. Information in a cell + * which expands on to multiple lines will cause some odd behaviour in the scrolling. + * + * Scroller is initialised by simply including the letter 'S' in the sDom for the + * table you want to have this feature enabled on. Note that the 'S' must come + * AFTER the 't' parameter in `dom`. + * + * Key features include: + * <ul class="limit_length"> + * <li>Speed! The aim of Scroller for DataTables is to make rendering large data sets fast</li> + * <li>Full compatibility with deferred rendering in DataTables for maximum speed</li> + * <li>Display millions of rows</li> + * <li>Integration with state saving in DataTables (scrolling position is saved)</li> + * <li>Easy to use</li> + * </ul> + * + * @class + * @constructor + * @global + * @param {object} dt DataTables settings object or API instance + * @param {object} [opts={}] Configuration object for Scroller. Options + * are defined by {@link Scroller.defaults} + * + * @requires jQuery 1.7+ + * @requires DataTables 1.10.0+ + * + * @example + * $(document).ready(function() { + * $('#example').DataTable( { + * "scrollY": "200px", + * "ajax": "media/dataset/large.txt", + * "scroller": true, + * "deferRender": true + * } ); + * } ); + */ +var Scroller = function ( dt, opts ) { + /* Sanity check - you just know it will happen */ + if ( ! (this instanceof Scroller) ) { + alert( "Scroller warning: Scroller must be initialised with the 'new' keyword." ); + return; + } + + if ( opts === undefined ) { + opts = {}; + } + + var dtApi = $.fn.dataTable.Api( dt ); + + /** + * Settings object which contains customisable information for the Scroller instance + * @namespace + * @private + * @extends Scroller.defaults + */ + this.s = { + /** + * DataTables settings object + * @type object + * @default Passed in as first parameter to constructor + */ + dt: dtApi.settings()[0], + + /** + * DataTables API instance + * @type DataTable.Api + */ + dtApi: dtApi, + + /** + * Pixel location of the top of the drawn table in the viewport + * @type int + * @default 0 + */ + tableTop: 0, + + /** + * Pixel location of the bottom of the drawn table in the viewport + * @type int + * @default 0 + */ + tableBottom: 0, + + /** + * Pixel location of the boundary for when the next data set should be loaded and drawn + * when scrolling up the way. + * @type int + * @default 0 + * @private + */ + redrawTop: 0, + + /** + * Pixel location of the boundary for when the next data set should be loaded and drawn + * when scrolling down the way. Note that this is actually calculated as the offset from + * the top. + * @type int + * @default 0 + * @private + */ + redrawBottom: 0, + + /** + * Auto row height or not indicator + * @type bool + * @default 0 + */ + autoHeight: true, + + /** + * Number of rows calculated as visible in the visible viewport + * @type int + * @default 0 + */ + viewportRows: 0, + + /** + * setTimeout reference for state saving, used when state saving is enabled in the DataTable + * and when the user scrolls the viewport in order to stop the cookie set taking too much + * CPU! + * @type int + * @default 0 + */ + stateTO: null, + + stateSaveThrottle: function () {}, + + /** + * setTimeout reference for the redraw, used when server-side processing is enabled in the + * DataTables in order to prevent DoSing the server + * @type int + * @default null + */ + drawTO: null, + + heights: { + jump: null, + page: null, + virtual: null, + scroll: null, + + /** + * Height of rows in the table + * @type int + * @default 0 + */ + row: null, + + /** + * Pixel height of the viewport + * @type int + * @default 0 + */ + viewport: null, + labelHeight: 0, + xbar: 0 + }, + + topRowFloat: 0, + scrollDrawDiff: null, + loaderVisible: false, + forceReposition: false, + baseRowTop: 0, + baseScrollTop: 0, + mousedown: false, + lastScrollTop: 0 + }; + + // @todo The defaults should extend a `c` property and the internal settings + // only held in the `s` property. At the moment they are mixed + this.s = $.extend( this.s, Scroller.oDefaults, opts ); + + // Workaround for row height being read from height object (see above comment) + this.s.heights.row = this.s.rowHeight; + + /** + * DOM elements used by the class instance + * @private + * @namespace + * + */ + this.dom = { + "force": document.createElement('div'), + "label": $('<div class="dts_label">0</div>'), + "scroller": null, + "table": null, + "loader": null + }; + + // Attach the instance to the DataTables instance so it can be accessed in + // future. Don't initialise Scroller twice on the same table + if ( this.s.dt.oScroller ) { + return; + } + + this.s.dt.oScroller = this; + + /* Let's do it */ + this.construct(); +}; + + + +$.extend( Scroller.prototype, { + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Public methods - to be exposed via the DataTables API + */ + + /** + * Calculate and store information about how many rows are to be displayed + * in the scrolling viewport, based on current dimensions in the browser's + * rendering. This can be particularly useful if the table is initially + * drawn in a hidden element - for example in a tab. + * @param {bool} [redraw=true] Redraw the table automatically after the recalculation, with + * the new dimensions forming the basis for the draw. + * @returns {void} + */ + measure: function ( redraw ) + { + if ( this.s.autoHeight ) + { + this._calcRowHeight(); + } + + var heights = this.s.heights; + + if ( heights.row ) { + heights.viewport = this._parseHeight($(this.dom.scroller).css('max-height')); + + this.s.viewportRows = parseInt( heights.viewport / heights.row, 10 )+1; + this.s.dt._iDisplayLength = this.s.viewportRows * this.s.displayBuffer; + } + + var label = this.dom.label.outerHeight(); + + heights.xbar = this.dom.scroller.offsetHeight - this.dom.scroller.clientHeight; + heights.labelHeight = label; + + if ( redraw === undefined || redraw ) + { + this.s.dt.oInstance.fnDraw( false ); + } + }, + + /** + * Get information about current displayed record range. This corresponds to + * the information usually displayed in the "Info" block of the table. + * + * @returns {object} info as an object: + * { + * start: {int}, // the 0-indexed record at the top of the viewport + * end: {int}, // the 0-indexed record at the bottom of the viewport + * } + */ + pageInfo: function() + { + var + dt = this.s.dt, + iScrollTop = this.dom.scroller.scrollTop, + iTotal = dt.fnRecordsDisplay(), + iPossibleEnd = Math.ceil(this.pixelsToRow(iScrollTop + this.s.heights.viewport, false, this.s.ani)); + + return { + start: Math.floor(this.pixelsToRow(iScrollTop, false, this.s.ani)), + end: iTotal < iPossibleEnd ? iTotal-1 : iPossibleEnd-1 + }; + }, + + /** + * Calculate the row number that will be found at the given pixel position + * (y-scroll). + * + * Please note that when the height of the full table exceeds 1 million + * pixels, Scroller switches into a non-linear mode for the scrollbar to fit + * all of the records into a finite area, but this function returns a linear + * value (relative to the last non-linear positioning). + * @param {int} pixels Offset from top to calculate the row number of + * @param {int} [intParse=true] If an integer value should be returned + * @param {int} [virtual=false] Perform the calculations in the virtual domain + * @returns {int} Row index + */ + pixelsToRow: function ( pixels, intParse, virtual ) + { + var diff = pixels - this.s.baseScrollTop; + var row = virtual ? + (this._domain( 'physicalToVirtual', this.s.baseScrollTop ) + diff) / this.s.heights.row : + ( diff / this.s.heights.row ) + this.s.baseRowTop; + + return intParse || intParse === undefined ? + parseInt( row, 10 ) : + row; + }, + + /** + * Calculate the pixel position from the top of the scrolling container for + * a given row + * @param {int} iRow Row number to calculate the position of + * @returns {int} Pixels + */ + rowToPixels: function ( rowIdx, intParse, virtual ) + { + var pixels; + var diff = rowIdx - this.s.baseRowTop; + + if ( virtual ) { + pixels = this._domain( 'virtualToPhysical', this.s.baseScrollTop ); + pixels += diff * this.s.heights.row; + } + else { + pixels = this.s.baseScrollTop; + pixels += diff * this.s.heights.row; + } + + return intParse || intParse === undefined ? + parseInt( pixels, 10 ) : + pixels; + }, + + + /** + * Calculate the row number that will be found at the given pixel position (y-scroll) + * @param {int} row Row index to scroll to + * @param {bool} [animate=true] Animate the transition or not + * @returns {void} + */ + scrollToRow: function ( row, animate ) + { + var that = this; + var ani = false; + var px = this.rowToPixels( row ); + + // We need to know if the table will redraw or not before doing the + // scroll. If it will not redraw, then we need to use the currently + // displayed table, and scroll with the physical pixels. Otherwise, we + // need to calculate the table's new position from the virtual + // transform. + var preRows = ((this.s.displayBuffer-1)/2) * this.s.viewportRows; + var drawRow = row - preRows; + if ( drawRow < 0 ) { + drawRow = 0; + } + + if ( (px > this.s.redrawBottom || px < this.s.redrawTop) && this.s.dt._iDisplayStart !== drawRow ) { + ani = true; + px = this._domain( 'virtualToPhysical', row * this.s.heights.row ); + + // If we need records outside the current draw region, but the new + // scrolling position is inside that (due to the non-linear nature + // for larger numbers of records), we need to force position update. + if ( this.s.redrawTop < px && px < this.s.redrawBottom ) { + this.s.forceReposition = true; + animate = false; + } + } + + if ( animate === undefined || animate ) + { + this.s.ani = ani; + $(this.dom.scroller).animate( { + "scrollTop": px + }, function () { + // This needs to happen after the animation has completed and + // the final scroll event fired + setTimeout( function () { + that.s.ani = false; + }, 250 ); + } ); + } + else + { + $(this.dom.scroller).scrollTop( px ); + } + }, + + + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Constructor + */ + + /** + * Initialisation for Scroller + * @returns {void} + * @private + */ + construct: function () + { + var that = this; + var dt = this.s.dtApi; + + /* Sanity check */ + if ( !this.s.dt.oFeatures.bPaginate ) { + this.s.dt.oApi._fnLog( this.s.dt, 0, 'Pagination must be enabled for Scroller' ); + return; + } + + /* Insert a div element that we can use to force the DT scrolling container to + * the height that would be required if the whole table was being displayed + */ + this.dom.force.style.position = "relative"; + this.dom.force.style.top = "0px"; + this.dom.force.style.left = "0px"; + this.dom.force.style.width = "1px"; + + this.dom.scroller = $('div.'+this.s.dt.oClasses.sScrollBody, this.s.dt.nTableWrapper)[0]; + this.dom.scroller.appendChild( this.dom.force ); + this.dom.scroller.style.position = "relative"; + + this.dom.table = $('>table', this.dom.scroller)[0]; + this.dom.table.style.position = "absolute"; + this.dom.table.style.top = "0px"; + this.dom.table.style.left = "0px"; + + // Add class to 'announce' that we are a Scroller table + $(dt.table().container()).addClass('dts DTS'); + + // Add a 'loading' indicator + if ( this.s.loadingIndicator ) + { + this.dom.loader = $('<div class="dataTables_processing dts_loading">'+this.s.dt.oLanguage.sLoadingRecords+'</div>') + .css('display', 'none'); + + $(this.dom.scroller.parentNode) + .css('position', 'relative') + .append( this.dom.loader ); + } + + this.dom.label.appendTo(this.dom.scroller); + + /* Initial size calculations */ + if ( this.s.heights.row && this.s.heights.row != 'auto' ) + { + this.s.autoHeight = false; + } + + // Scrolling callback to see if a page change is needed + this.s.ingnoreScroll = true; + $(this.dom.scroller).on( 'scroll.dt-scroller', function (e) { + that._scroll.call( that ); + } ); + + // In iOS we catch the touchstart event in case the user tries to scroll + // while the display is already scrolling + $(this.dom.scroller).on('touchstart.dt-scroller', function () { + that._scroll.call( that ); + } ); + + $(this.dom.scroller) + .on('mousedown.dt-scroller', function () { + that.s.mousedown = true; + }) + .on('mouseup.dt-scroller', function () { + that.s.labelVisible = false; + that.s.mousedown = false; + that.dom.label.css('display', 'none'); + }); + + // On resize, update the information element, since the number of rows shown might change + $(window).on( 'resize.dt-scroller', function () { + that.measure( false ); + that._info(); + } ); + + // Add a state saving parameter to the DT state saving so we can restore the exact + // position of the scrolling. + var initialStateSave = true; + var loadedState = dt.state.loaded(); + + dt.on( 'stateSaveParams.scroller', function ( e, settings, data ) { + if ( initialStateSave && loadedState ) { + data.scroller = loadedState.scroller; + initialStateSave = false; + + if (data.scroller) { + that.s.lastScrollTop = data.scroller.scrollTop; + } + } + else { + // Need to used the saved position on init + data.scroller = { + topRow: that.s.topRowFloat, + baseScrollTop: that.s.baseScrollTop, + baseRowTop: that.s.baseRowTop, + scrollTop: that.s.lastScrollTop + }; + } + } ); + + dt.on( 'stateLoadParams.scroller', function( e, settings, data ) { + if (data.scroller !== undefined) { + that.scrollToRow(data.scroller.topRow); + } + }); + + if ( loadedState && loadedState.scroller ) { + this.s.topRowFloat = loadedState.scroller.topRow; + this.s.baseScrollTop = loadedState.scroller.baseScrollTop; + this.s.baseRowTop = loadedState.scroller.baseRowTop; + } + + this.measure( false ); + + that.s.stateSaveThrottle = that.s.dt.oApi._fnThrottle( function () { + that.s.dtApi.state.save(); + }, 500 ); + + dt.on( 'init.scroller', function () { + that.measure( false ); + + // Setting to `jump` will instruct _draw to calculate the scroll top + // position + that.s.scrollType = 'jump'; + that._draw(); + + // Update the scroller when the DataTable is redrawn + dt.on( 'draw.scroller', function () { + that._draw(); + }); + } ); + + // Set height before the draw happens, allowing everything else to update + // on draw complete without worry for roder. + dt.on( 'preDraw.dt.scroller', function () { + that._scrollForce(); + } ); + + // Destructor + dt.on( 'destroy.scroller', function () { + $(window).off( 'resize.dt-scroller' ); + $(that.dom.scroller).off('.dt-scroller'); + $(that.s.dt.nTable).off( '.scroller' ); + + $(that.s.dt.nTableWrapper).removeClass('DTS'); + $('div.DTS_Loading', that.dom.scroller.parentNode).remove(); + + that.dom.table.style.position = ""; + that.dom.table.style.top = ""; + that.dom.table.style.left = ""; + } ); + }, + + + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Private methods + */ + + /** + * Automatic calculation of table row height. This is just a little tricky here as using + * initialisation DataTables has tale the table out of the document, so we need to create + * a new table and insert it into the document, calculate the row height and then whip the + * table out. + * @returns {void} + * @private + */ + _calcRowHeight: function () + { + var dt = this.s.dt; + var origTable = dt.nTable; + var nTable = origTable.cloneNode( false ); + var tbody = $('<tbody/>').appendTo( nTable ); + var container = $( + '<div class="'+dt.oClasses.sWrapper+' DTS">'+ + '<div class="'+dt.oClasses.sScrollWrapper+'">'+ + '<div class="'+dt.oClasses.sScrollBody+'"></div>'+ + '</div>'+ + '</div>' + ); + + // Want 3 rows in the sizing table so :first-child and :last-child + // CSS styles don't come into play - take the size of the middle row + $('tbody tr:lt(4)', origTable).clone().appendTo( tbody ); + var rowsCount = $('tr', tbody).length; + + if ( rowsCount === 1 ) { + tbody.prepend('<tr><td> </td></tr>'); + tbody.append('<tr><td> </td></tr>'); + } + else { + for (; rowsCount < 3; rowsCount++) { + tbody.append('<tr><td> </td></tr>'); + } + } + + $('div.'+dt.oClasses.sScrollBody, container).append( nTable ); + + // If initialised using `dom`, use the holding element as the insert point + var insertEl = this.s.dt.nHolding || origTable.parentNode; + + if ( ! $(insertEl).is(':visible') ) { + insertEl = 'body'; + } + + // Remove form element links as they might select over others (particularly radio and checkboxes) + container.find("input").removeAttr("name"); + + container.appendTo( insertEl ); + this.s.heights.row = $('tr', tbody).eq(1).outerHeight(); + + container.remove(); + }, + + /** + * Draw callback function which is fired when the DataTable is redrawn. The main function of + * this method is to position the drawn table correctly the scrolling container for the rows + * that is displays as a result of the scrolling position. + * @returns {void} + * @private + */ + _draw: function () + { + var + that = this, + heights = this.s.heights, + iScrollTop = this.dom.scroller.scrollTop, + iTableHeight = $(this.s.dt.nTable).height(), + displayStart = this.s.dt._iDisplayStart, + displayLen = this.s.dt._iDisplayLength, + displayEnd = this.s.dt.fnRecordsDisplay(), + viewportEndY = iScrollTop + heights.viewport; + + // Disable the scroll event listener while we are updating the DOM + this.s.skip = true; + + // If paging is reset + if ( (this.s.dt.bSorted || this.s.dt.bFiltered) && displayStart === 0 && !this.s.dt._drawHold ) { + this.s.topRowFloat = 0; + } + + iScrollTop = this.s.scrollType === 'jump' ? + this._domain( 'virtualToPhysical', this.s.topRowFloat * heights.row ) : + iScrollTop; + + // Store positional information so positional calculations can be based + // upon the current table draw position + this.s.baseScrollTop = iScrollTop; + this.s.baseRowTop = this.s.topRowFloat; + + // Position the table in the virtual scroller + var tableTop = iScrollTop - ((this.s.topRowFloat - displayStart) * heights.row); + if ( displayStart === 0 ) { + tableTop = 0; + } + else if ( displayStart + displayLen >= displayEnd ) { + tableTop = heights.scroll - iTableHeight; + } + else { + var iTableBottomY = tableTop + iTableHeight; + if (iTableBottomY < viewportEndY) { + // The last row of the data is above the end of the viewport. + // This means the background is visible, which is not what the user expects. + var newTableTop = viewportEndY - iTableHeight; + var diffPx = newTableTop - tableTop; + this.s.baseScrollTop += diffPx + 1; // Update start row number in footer. + tableTop = newTableTop; // Move table so last line of data is at the bottom of the viewport. + } + } + + this.dom.table.style.top = tableTop+'px'; + + /* Cache some information for the scroller */ + this.s.tableTop = tableTop; + this.s.tableBottom = iTableHeight + this.s.tableTop; + + // Calculate the boundaries for where a redraw will be triggered by the + // scroll event listener + var boundaryPx = (iScrollTop - this.s.tableTop) * this.s.boundaryScale; + this.s.redrawTop = iScrollTop - boundaryPx; + this.s.redrawBottom = iScrollTop + boundaryPx > heights.scroll - heights.viewport - heights.row ? + heights.scroll - heights.viewport - heights.row : + iScrollTop + boundaryPx; + + this.s.skip = false; + + if(that.s.ingnoreScroll) { + // Restore the scrolling position that was saved by DataTable's state + // saving Note that this is done on the second draw when data is Ajax + // sourced, and the first draw when DOM soured + if ( this.s.dt.oFeatures.bStateSave && this.s.dt.oLoadedState !== null && + typeof this.s.dt.oLoadedState.scroller != 'undefined' ) + { + // A quirk of DataTables is that the draw callback will occur on an + // empty set if Ajax sourced, but not if server-side processing. + var ajaxSourced = (this.s.dt.sAjaxSource || that.s.dt.ajax) && ! this.s.dt.oFeatures.bServerSide ? + true : + false; + + if ( ( ajaxSourced && this.s.dt.iDraw >= 2) || + (!ajaxSourced && this.s.dt.iDraw >= 1) ) + { + setTimeout( function () { + $(that.dom.scroller).scrollTop( that.s.dt.oLoadedState.scroller.scrollTop ); + + // In order to prevent layout thrashing we need another + // small delay + setTimeout( function () { + that.s.ingnoreScroll = false; + }, 0 ); + }, 0 ); + } + } + else { + that.s.ingnoreScroll = false; + } + } + + + // Because of the order of the DT callbacks, the info update will + // take precedence over the one we want here. So a 'thread' break is + // needed. Only add the thread break if bInfo is set + if ( this.s.dt.oFeatures.bInfo ) { + setTimeout( function () { + that._info.call( that ); + }, 0 ); + } + + $(this.s.dt.nTable).triggerHandler('position.dts.dt', tableTop); + + // Hide the loading indicator + if ( this.dom.loader && this.s.loaderVisible ) { + this.dom.loader.css( 'display', 'none' ); + this.s.loaderVisible = false; + } + }, + + /** + * Convert from one domain to another. The physical domain is the actual + * pixel count on the screen, while the virtual is if we had browsers which + * had scrolling containers of infinite height (i.e. the absolute value) + * + * @param {string} dir Domain transform direction, `virtualToPhysical` or + * `physicalToVirtual` + * @returns {number} Calculated transform + * @private + */ + _domain: function ( dir, val ) + { + var heights = this.s.heights; + var diff; + var magic = 10000; // the point at which the non-linear calculations start to happen + + // If the virtual and physical height match, then we use a linear + // transform between the two, allowing the scrollbar to be linear + if ( heights.virtual === heights.scroll ) { + return val; + } + + // In the first 10k pixels and the last 10k pixels, we want the scrolling + // to be linear. After that it can be non-linear. It would be unusual for + // anyone to mouse wheel through that much. + if ( val < magic ) { + return val; + } + else if ( dir === 'virtualToPhysical' && val >= heights.virtual - magic ) { + diff = heights.virtual - val; + return heights.scroll - diff; + } + else if ( dir === 'physicalToVirtual' && val >= heights.scroll - magic ) { + diff = heights.scroll - val; + return heights.virtual - diff; + } + + // Otherwise, we want a non-linear scrollbar to take account of the + // redrawing regions at the start and end of the table, otherwise these + // can stutter badly - on large tables 30px (for example) scroll might + // be hundreds of rows, so the table would be redrawing every few px at + // the start and end. Use a simple linear eq. to stop this, effectively + // causing a kink in the scrolling ratio. It does mean the scrollbar is + // non-linear, but with such massive data sets, the scrollbar is going + // to be a best guess anyway + var m = (heights.virtual - magic - magic) / (heights.scroll - magic - magic); + var c = magic - (m*magic); + + return dir === 'virtualToPhysical' ? + (val-c) / m : + (m*val) + c; + }, + + /** + * Update any information elements that are controlled by the DataTable based on the scrolling + * viewport and what rows are visible in it. This function basically acts in the same way as + * _fnUpdateInfo in DataTables, and effectively replaces that function. + * @returns {void} + * @private + */ + _info: function () + { + if ( !this.s.dt.oFeatures.bInfo ) + { + return; + } + + var + dt = this.s.dt, + language = dt.oLanguage, + iScrollTop = this.dom.scroller.scrollTop, + iStart = Math.floor( this.pixelsToRow(iScrollTop, false, this.s.ani)+1 ), + iMax = dt.fnRecordsTotal(), + iTotal = dt.fnRecordsDisplay(), + iPossibleEnd = Math.ceil( this.pixelsToRow(iScrollTop+this.s.heights.viewport, false, this.s.ani) ), + iEnd = iTotal < iPossibleEnd ? iTotal : iPossibleEnd, + sStart = dt.fnFormatNumber( iStart ), + sEnd = dt.fnFormatNumber( iEnd ), + sMax = dt.fnFormatNumber( iMax ), + sTotal = dt.fnFormatNumber( iTotal ), + sOut; + + if ( dt.fnRecordsDisplay() === 0 && + dt.fnRecordsDisplay() == dt.fnRecordsTotal() ) + { + /* Empty record set */ + sOut = language.sInfoEmpty+ language.sInfoPostFix; + } + else if ( dt.fnRecordsDisplay() === 0 ) + { + /* Empty record set after filtering */ + sOut = language.sInfoEmpty +' '+ + language.sInfoFiltered.replace('_MAX_', sMax)+ + language.sInfoPostFix; + } + else if ( dt.fnRecordsDisplay() == dt.fnRecordsTotal() ) + { + /* Normal record set */ + sOut = language.sInfo. + replace('_START_', sStart). + replace('_END_', sEnd). + replace('_MAX_', sMax). + replace('_TOTAL_', sTotal)+ + language.sInfoPostFix; + } + else + { + /* Record set after filtering */ + sOut = language.sInfo. + replace('_START_', sStart). + replace('_END_', sEnd). + replace('_MAX_', sMax). + replace('_TOTAL_', sTotal) +' '+ + language.sInfoFiltered.replace( + '_MAX_', + dt.fnFormatNumber(dt.fnRecordsTotal()) + )+ + language.sInfoPostFix; + } + + var callback = language.fnInfoCallback; + if ( callback ) { + sOut = callback.call( dt.oInstance, + dt, iStart, iEnd, iMax, iTotal, sOut + ); + } + + var n = dt.aanFeatures.i; + if ( typeof n != 'undefined' ) + { + for ( var i=0, iLen=n.length ; i<iLen ; i++ ) + { + $(n[i]).html( sOut ); + } + } + + // DT doesn't actually (yet) trigger this event, but it will in future + $(dt.nTable).triggerHandler( 'info.dt' ); + }, + + /** + * Parse CSS height property string as number + * + * An attempt is made to parse the string as a number. Currently supported units are 'px', + * 'vh', and 'rem'. 'em' is partially supported; it works as long as the parent element's + * font size matches the body element. Zero is returned for unrecognized strings. + * @param {string} cssHeight CSS height property string + * @returns {number} height + * @private + */ + _parseHeight: function(cssHeight) { + var height; + var matches = /^([+-]?(?:\d+(?:\.\d+)?|\.\d+))(px|em|rem|vh)$/.exec(cssHeight); + + if (matches === null) { + return 0; + } + + var value = parseFloat(matches[1]); + var unit = matches[2]; + + if ( unit === 'px' ) { + height = value; + } + else if ( unit === 'vh' ) { + height = ( value / 100 ) * $(window).height(); + } + else if ( unit === 'rem' ) { + height = value * parseFloat($(':root').css('font-size')); + } + else if ( unit === 'em' ) { + height = value * parseFloat($('body').css('font-size')); + } + + return height ? + height : + 0; + }, + + /** + * Scrolling function - fired whenever the scrolling position is changed. + * This method needs to use the stored values to see if the table should be + * redrawn as we are moving towards the end of the information that is + * currently drawn or not. If needed, then it will redraw the table based on + * the new position. + * @returns {void} + * @private + */ + _scroll: function () + { + var + that = this, + heights = this.s.heights, + iScrollTop = this.dom.scroller.scrollTop, + iTopRow; + + if ( this.s.skip ) { + return; + } + + if ( this.s.ingnoreScroll ) { + return; + } + + if ( iScrollTop === this.s.lastScrollTop ) { + return; + } + + /* If the table has been sorted or filtered, then we use the redraw that + * DataTables as done, rather than performing our own + */ + if ( this.s.dt.bFiltered || this.s.dt.bSorted ) { + this.s.lastScrollTop = 0; + return; + } + + /* Update the table's information display for what is now in the viewport */ + this._info(); + + /* We don't want to state save on every scroll event - that's heavy + * handed, so use a timeout to update the state saving only when the + * scrolling has finished + */ + clearTimeout( this.s.stateTO ); + this.s.stateTO = setTimeout( function () { + that.s.dtApi.state.save(); + }, 250 ); + + this.s.scrollType = Math.abs(iScrollTop - this.s.lastScrollTop) > heights.viewport ? + 'jump' : + 'cont'; + + this.s.topRowFloat = this.s.scrollType === 'cont' ? + this.pixelsToRow( iScrollTop, false, false ) : + this._domain( 'physicalToVirtual', iScrollTop ) / heights.row; + + if ( this.s.topRowFloat < 0 ) { + this.s.topRowFloat = 0; + } + + /* Check if the scroll point is outside the trigger boundary which would required + * a DataTables redraw + */ + if ( this.s.forceReposition || iScrollTop < this.s.redrawTop || iScrollTop > this.s.redrawBottom ) { + var preRows = Math.ceil( ((this.s.displayBuffer-1)/2) * this.s.viewportRows ); + + iTopRow = parseInt(this.s.topRowFloat, 10) - preRows; + this.s.forceReposition = false; + + if ( iTopRow <= 0 ) { + /* At the start of the table */ + iTopRow = 0; + } + else if ( iTopRow + this.s.dt._iDisplayLength > this.s.dt.fnRecordsDisplay() ) { + /* At the end of the table */ + iTopRow = this.s.dt.fnRecordsDisplay() - this.s.dt._iDisplayLength; + if ( iTopRow < 0 ) { + iTopRow = 0; + } + } + else if ( iTopRow % 2 !== 0 ) { + // For the row-striping classes (odd/even) we want only to start + // on evens otherwise the stripes will change between draws and + // look rubbish + iTopRow++; + } + + // Store calcuated value, in case the following condition is not met, but so + // that the draw function will still use it. + this.s.targetTop = iTopRow; + + if ( iTopRow != this.s.dt._iDisplayStart ) { + /* Cache the new table position for quick lookups */ + this.s.tableTop = $(this.s.dt.nTable).offset().top; + this.s.tableBottom = $(this.s.dt.nTable).height() + this.s.tableTop; + + var draw = function () { + that.s.dt._iDisplayStart = that.s.targetTop; + that.s.dt.oApi._fnDraw( that.s.dt ); + }; + + /* Do the DataTables redraw based on the calculated start point - note that when + * using server-side processing we introduce a small delay to not DoS the server... + */ + if ( this.s.dt.oFeatures.bServerSide ) { + this.s.forceReposition = true; + + clearTimeout( this.s.drawTO ); + this.s.drawTO = setTimeout( draw, this.s.serverWait ); + } + else { + draw(); + } + + if ( this.dom.loader && ! this.s.loaderVisible ) { + this.dom.loader.css( 'display', 'block' ); + this.s.loaderVisible = true; + } + } + } + else { + this.s.topRowFloat = this.pixelsToRow( iScrollTop, false, true ); + } + + this.s.lastScrollTop = iScrollTop; + this.s.stateSaveThrottle(); + + if ( this.s.scrollType === 'jump' && this.s.mousedown ) { + this.s.labelVisible = true; + } + if (this.s.labelVisible) { + var labelFactor = (heights.viewport-heights.labelHeight - heights.xbar) / heights.scroll; + + this.dom.label + .html( this.s.dt.fnFormatNumber( parseInt( this.s.topRowFloat, 10 )+1 ) ) + .css( 'top', iScrollTop + (iScrollTop * labelFactor) ) + .css( 'right', 10 - this.dom.scroller.scrollLeft) + .css( 'display', 'block' ); + } + }, + + /** + * Force the scrolling container to have height beyond that of just the + * table that has been drawn so the user can scroll the whole data set. + * + * Note that if the calculated required scrolling height exceeds a maximum + * value (1 million pixels - hard-coded) the forcing element will be set + * only to that maximum value and virtual / physical domain transforms will + * be used to allow Scroller to display tables of any number of records. + * @returns {void} + * @private + */ + _scrollForce: function () + { + var heights = this.s.heights; + var max = 1000000; + + heights.virtual = heights.row * this.s.dt.fnRecordsDisplay(); + heights.scroll = heights.virtual; + + if ( heights.scroll > max ) { + heights.scroll = max; + } + + // Minimum height so there is always a row visible (the 'no rows found' + // if reduced to zero filtering) + this.dom.force.style.height = heights.scroll > this.s.heights.row ? + heights.scroll+'px' : + this.s.heights.row+'px'; + } +} ); + + + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Statics + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + + +/** + * Scroller default settings for initialisation + * @namespace + * @name Scroller.defaults + * @static + */ +Scroller.defaults = { + /** + * Scroller uses the boundary scaling factor to decide when to redraw the table - which it + * typically does before you reach the end of the currently loaded data set (in order to + * allow the data to look continuous to a user scrolling through the data). If given as 0 + * then the table will be redrawn whenever the viewport is scrolled, while 1 would not + * redraw the table until the currently loaded data has all been shown. You will want + * something in the middle - the default factor of 0.5 is usually suitable. + * @type float + * @default 0.5 + * @static + */ + boundaryScale: 0.5, + + /** + * The display buffer is what Scroller uses to calculate how many rows it should pre-fetch + * for scrolling. Scroller automatically adjusts DataTables' display length to pre-fetch + * rows that will be shown in "near scrolling" (i.e. just beyond the current display area). + * The value is based upon the number of rows that can be displayed in the viewport (i.e. + * a value of 1), and will apply the display range to records before before and after the + * current viewport - i.e. a factor of 3 will allow Scroller to pre-fetch 1 viewport's worth + * of rows before the current viewport, the current viewport's rows and 1 viewport's worth + * of rows after the current viewport. Adjusting this value can be useful for ensuring + * smooth scrolling based on your data set. + * @type int + * @default 7 + * @static + */ + displayBuffer: 9, + + /** + * Show (or not) the loading element in the background of the table. Note that you should + * include the dataTables.scroller.css file for this to be displayed correctly. + * @type boolean + * @default false + * @static + */ + loadingIndicator: false, + + /** + * Scroller will attempt to automatically calculate the height of rows for it's internal + * calculations. However the height that is used can be overridden using this parameter. + * @type int|string + * @default auto + * @static + */ + rowHeight: "auto", + + /** + * When using server-side processing, Scroller will wait a small amount of time to allow + * the scrolling to finish before requesting more data from the server. This prevents + * you from DoSing your own server! The wait time can be configured by this parameter. + * @type int + * @default 200 + * @static + */ + serverWait: 200 +}; + +Scroller.oDefaults = Scroller.defaults; + + + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Constants + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Scroller version + * @type String + * @default See code + * @name Scroller.version + * @static + */ +Scroller.version = "2.1.1"; + + + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Initialisation + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +// Attach a listener to the document which listens for DataTables initialisation +// events so we can automatically initialise +$(document).on( 'preInit.dt.dtscroller', function (e, settings) { + if ( e.namespace !== 'dt' ) { + return; + } + + var init = settings.oInit.scroller; + var defaults = DataTable.defaults.scroller; + + if ( init || defaults ) { + var opts = $.extend( {}, init, defaults ); + + if ( init !== false ) { + new Scroller( settings, opts ); + } + } +} ); + + +// Attach Scroller to DataTables so it can be accessed as an 'extra' +$.fn.dataTable.Scroller = Scroller; +$.fn.DataTable.Scroller = Scroller; + + +// DataTables 1.10 API method aliases +var Api = $.fn.dataTable.Api; + +Api.register( 'scroller()', function () { + return this; +} ); + +// Undocumented and deprecated - is it actually useful at all? +Api.register( 'scroller().rowToPixels()', function ( rowIdx, intParse, virtual ) { + var ctx = this.context; + + if ( ctx.length && ctx[0].oScroller ) { + return ctx[0].oScroller.rowToPixels( rowIdx, intParse, virtual ); + } + // undefined +} ); + +// Undocumented and deprecated - is it actually useful at all? +Api.register( 'scroller().pixelsToRow()', function ( pixels, intParse, virtual ) { + var ctx = this.context; + + if ( ctx.length && ctx[0].oScroller ) { + return ctx[0].oScroller.pixelsToRow( pixels, intParse, virtual ); + } + // undefined +} ); + +// `scroller().scrollToRow()` is undocumented and deprecated. Use `scroller.toPosition() +Api.register( ['scroller().scrollToRow()', 'scroller.toPosition()'], function ( idx, ani ) { + this.iterator( 'table', function ( ctx ) { + if ( ctx.oScroller ) { + ctx.oScroller.scrollToRow( idx, ani ); + } + } ); + + return this; +} ); + +Api.register( 'row().scrollTo()', function ( ani ) { + var that = this; + + this.iterator( 'row', function ( ctx, rowIdx ) { + if ( ctx.oScroller ) { + var displayIdx = that + .rows( { order: 'applied', search: 'applied' } ) + .indexes() + .indexOf( rowIdx ); + + ctx.oScroller.scrollToRow( displayIdx, ani ); + } + } ); + + return this; +} ); + +Api.register( 'scroller.measure()', function ( redraw ) { + this.iterator( 'table', function ( ctx ) { + if ( ctx.oScroller ) { + ctx.oScroller.measure( redraw ); + } + } ); + + return this; +} ); + +Api.register( 'scroller.page()', function() { + var ctx = this.context; + + if ( ctx.length && ctx[0].oScroller ) { + return ctx[0].oScroller.pageInfo(); + } + // undefined +} ); + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/dataTables.scroller.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/dataTables.scroller.min.js new file mode 100644 index 0000000..83c88ab --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/dataTables.scroller.min.js @@ -0,0 +1,4 @@ +/*! Scroller 2.1.1 + * © SpryMedia Ltd - datatables.net/license + */ +!function(o){var e,l;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(s){return o(s,window,document)}):"object"==typeof exports?(e=require("jquery"),l=function(s,t){t.fn.dataTable||require("datatables.net")(s,t)},"undefined"!=typeof window?module.exports=function(s,t){return s=s||window,t=t||e(s),l(s,t),o(t,s,s.document)}:(l(window,e),module.exports=o(e,window,window.document))):o(jQuery,window,document)}(function(f,i,o,a){"use strict";function l(s,t){this instanceof l?(t===a&&(t={}),s=f.fn.dataTable.Api(s),this.s={dt:s.settings()[0],dtApi:s,tableTop:0,tableBottom:0,redrawTop:0,redrawBottom:0,autoHeight:!0,viewportRows:0,stateTO:null,stateSaveThrottle:function(){},drawTO:null,heights:{jump:null,page:null,virtual:null,scroll:null,row:null,viewport:null,labelHeight:0,xbar:0},topRowFloat:0,scrollDrawDiff:null,loaderVisible:!1,forceReposition:!1,baseRowTop:0,baseScrollTop:0,mousedown:!1,lastScrollTop:0},this.s=f.extend(this.s,l.oDefaults,t),this.s.heights.row=this.s.rowHeight,this.dom={force:o.createElement("div"),label:f('<div class="dts_label">0</div>'),scroller:null,table:null,loader:null},this.s.dt.oScroller||(this.s.dt.oScroller=this).construct()):alert("Scroller warning: Scroller must be initialised with the 'new' keyword.")}var r=f.fn.dataTable,s=(f.extend(l.prototype,{measure:function(s){this.s.autoHeight&&this._calcRowHeight();var t=this.s.heights,o=(t.row&&(t.viewport=this._parseHeight(f(this.dom.scroller).css("max-height")),this.s.viewportRows=parseInt(t.viewport/t.row,10)+1,this.s.dt._iDisplayLength=this.s.viewportRows*this.s.displayBuffer),this.dom.label.outerHeight());t.xbar=this.dom.scroller.offsetHeight-this.dom.scroller.clientHeight,t.labelHeight=o,s!==a&&!s||this.s.dt.oInstance.fnDraw(!1)},pageInfo:function(){var s=this.s.dt,t=this.dom.scroller.scrollTop,s=s.fnRecordsDisplay(),o=Math.ceil(this.pixelsToRow(t+this.s.heights.viewport,!1,this.s.ani));return{start:Math.floor(this.pixelsToRow(t,!1,this.s.ani)),end:s<o?s-1:o-1}},pixelsToRow:function(s,t,o){s-=this.s.baseScrollTop,o=o?(this._domain("physicalToVirtual",this.s.baseScrollTop)+s)/this.s.heights.row:s/this.s.heights.row+this.s.baseRowTop;return t||t===a?parseInt(o,10):o},rowToPixels:function(s,t,o){s-=this.s.baseRowTop,o=o?this._domain("virtualToPhysical",this.s.baseScrollTop):this.s.baseScrollTop;return o+=s*this.s.heights.row,t||t===a?parseInt(o,10):o},scrollToRow:function(s,t){var o=this,e=!1,l=this.rowToPixels(s),r=s-(this.s.displayBuffer-1)/2*this.s.viewportRows;r<0&&(r=0),(t=(l>this.s.redrawBottom||l<this.s.redrawTop)&&this.s.dt._iDisplayStart!==r&&(e=!0,l=this._domain("virtualToPhysical",s*this.s.heights.row),this.s.redrawTop<l)&&l<this.s.redrawBottom?!(this.s.forceReposition=!0):t)===a||t?(this.s.ani=e,f(this.dom.scroller).animate({scrollTop:l},function(){setTimeout(function(){o.s.ani=!1},250)})):f(this.dom.scroller).scrollTop(l)},construct:function(){var e,l,r=this,s=this.s.dtApi;this.s.dt.oFeatures.bPaginate?(this.dom.force.style.position="relative",this.dom.force.style.top="0px",this.dom.force.style.left="0px",this.dom.force.style.width="1px",this.dom.scroller=f("div."+this.s.dt.oClasses.sScrollBody,this.s.dt.nTableWrapper)[0],this.dom.scroller.appendChild(this.dom.force),this.dom.scroller.style.position="relative",this.dom.table=f(">table",this.dom.scroller)[0],this.dom.table.style.position="absolute",this.dom.table.style.top="0px",this.dom.table.style.left="0px",f(s.table().container()).addClass("dts DTS"),this.s.loadingIndicator&&(this.dom.loader=f('<div class="dataTables_processing dts_loading">'+this.s.dt.oLanguage.sLoadingRecords+"</div>").css("display","none"),f(this.dom.scroller.parentNode).css("position","relative").append(this.dom.loader)),this.dom.label.appendTo(this.dom.scroller),this.s.heights.row&&"auto"!=this.s.heights.row&&(this.s.autoHeight=!1),this.s.ingnoreScroll=!0,f(this.dom.scroller).on("scroll.dt-scroller",function(s){r._scroll.call(r)}),f(this.dom.scroller).on("touchstart.dt-scroller",function(){r._scroll.call(r)}),f(this.dom.scroller).on("mousedown.dt-scroller",function(){r.s.mousedown=!0}).on("mouseup.dt-scroller",function(){r.s.labelVisible=!1,r.s.mousedown=!1,r.dom.label.css("display","none")}),f(i).on("resize.dt-scroller",function(){r.measure(!1),r._info()}),e=!0,l=s.state.loaded(),s.on("stateSaveParams.scroller",function(s,t,o){e&&l?(o.scroller=l.scroller,e=!1,o.scroller&&(r.s.lastScrollTop=o.scroller.scrollTop)):o.scroller={topRow:r.s.topRowFloat,baseScrollTop:r.s.baseScrollTop,baseRowTop:r.s.baseRowTop,scrollTop:r.s.lastScrollTop}}),s.on("stateLoadParams.scroller",function(s,t,o){o.scroller!==a&&r.scrollToRow(o.scroller.topRow)}),l&&l.scroller&&(this.s.topRowFloat=l.scroller.topRow,this.s.baseScrollTop=l.scroller.baseScrollTop,this.s.baseRowTop=l.scroller.baseRowTop),this.measure(!1),r.s.stateSaveThrottle=r.s.dt.oApi._fnThrottle(function(){r.s.dtApi.state.save()},500),s.on("init.scroller",function(){r.measure(!1),r.s.scrollType="jump",r._draw(),s.on("draw.scroller",function(){r._draw()})}),s.on("preDraw.dt.scroller",function(){r._scrollForce()}),s.on("destroy.scroller",function(){f(i).off("resize.dt-scroller"),f(r.dom.scroller).off(".dt-scroller"),f(r.s.dt.nTable).off(".scroller"),f(r.s.dt.nTableWrapper).removeClass("DTS"),f("div.DTS_Loading",r.dom.scroller.parentNode).remove(),r.dom.table.style.position="",r.dom.table.style.top="",r.dom.table.style.left=""})):this.s.dt.oApi._fnLog(this.s.dt,0,"Pagination must be enabled for Scroller")},_calcRowHeight:function(){var s=this.s.dt,t=s.nTable,o=t.cloneNode(!1),e=f("<tbody/>").appendTo(o),l=f('<div class="'+s.oClasses.sWrapper+' DTS"><div class="'+s.oClasses.sScrollWrapper+'"><div class="'+s.oClasses.sScrollBody+'"></div></div></div>'),r=(f("tbody tr:lt(4)",t).clone().appendTo(e),f("tr",e).length);if(1===r)e.prepend("<tr><td> </td></tr>"),e.append("<tr><td> </td></tr>");else for(;r<3;r++)e.append("<tr><td> </td></tr>");f("div."+s.oClasses.sScrollBody,l).append(o);s=this.s.dt.nHolding||t.parentNode;f(s).is(":visible")||(s="body"),l.find("input").removeAttr("name"),l.appendTo(s),this.s.heights.row=f("tr",e).eq(1).outerHeight(),l.remove()},_draw:function(){var s=this,t=this.s.heights,o=this.dom.scroller.scrollTop,e=f(this.s.dt.nTable).height(),l=this.s.dt._iDisplayStart,r=this.s.dt._iDisplayLength,i=this.s.dt.fnRecordsDisplay(),a=o+t.viewport,n=(this.s.skip=!0,!this.s.dt.bSorted&&!this.s.dt.bFiltered||0!==l||this.s.dt._drawHold||(this.s.topRowFloat=0),o="jump"===this.s.scrollType?this._domain("virtualToPhysical",this.s.topRowFloat*t.row):o,this.s.baseScrollTop=o,this.s.baseRowTop=this.s.topRowFloat,o-(this.s.topRowFloat-l)*t.row),l=(0===l?n=0:i<=l+r?n=t.scroll-e:n+e<a&&(this.s.baseScrollTop+=1+((i=a-e)-n),n=i),this.dom.table.style.top=n+"px",this.s.tableTop=n,this.s.tableBottom=e+this.s.tableTop,(o-this.s.tableTop)*this.s.boundaryScale);this.s.redrawTop=o-l,this.s.redrawBottom=o+l>t.scroll-t.viewport-t.row?t.scroll-t.viewport-t.row:o+l,this.s.skip=!1,s.s.ingnoreScroll&&(this.s.dt.oFeatures.bStateSave&&null!==this.s.dt.oLoadedState&&void 0!==this.s.dt.oLoadedState.scroller?((r=!(!this.s.dt.sAjaxSource&&!s.s.dt.ajax||this.s.dt.oFeatures.bServerSide))&&2<=this.s.dt.iDraw||!r&&1<=this.s.dt.iDraw)&&setTimeout(function(){f(s.dom.scroller).scrollTop(s.s.dt.oLoadedState.scroller.scrollTop),setTimeout(function(){s.s.ingnoreScroll=!1},0)},0):s.s.ingnoreScroll=!1),this.s.dt.oFeatures.bInfo&&setTimeout(function(){s._info.call(s)},0),f(this.s.dt.nTable).triggerHandler("position.dts.dt",n),this.dom.loader&&this.s.loaderVisible&&(this.dom.loader.css("display","none"),this.s.loaderVisible=!1)},_domain:function(s,t){var o,e=this.s.heights,l=1e4;return e.virtual===e.scroll||t<l?t:"virtualToPhysical"===s&&t>=e.virtual-l?(o=e.virtual-t,e.scroll-o):"physicalToVirtual"===s&&t>=e.scroll-l?(o=e.scroll-t,e.virtual-o):(e=l-(o=(e.virtual-l-l)/(e.scroll-l-l))*l,"virtualToPhysical"===s?(t-e)/o:o*t+e)},_info:function(){if(this.s.dt.oFeatures.bInfo){var s=this.s.dt,t=s.oLanguage,o=this.dom.scroller.scrollTop,e=Math.floor(this.pixelsToRow(o,!1,this.s.ani)+1),l=s.fnRecordsTotal(),r=s.fnRecordsDisplay(),o=Math.ceil(this.pixelsToRow(o+this.s.heights.viewport,!1,this.s.ani)),o=r<o?r:o,i=s.fnFormatNumber(e),a=s.fnFormatNumber(o),n=s.fnFormatNumber(l),h=s.fnFormatNumber(r),c=0===s.fnRecordsDisplay()&&s.fnRecordsDisplay()==s.fnRecordsTotal()?t.sInfoEmpty+t.sInfoPostFix:0===s.fnRecordsDisplay()?t.sInfoEmpty+" "+t.sInfoFiltered.replace("_MAX_",n)+t.sInfoPostFix:s.fnRecordsDisplay()==s.fnRecordsTotal()?t.sInfo.replace("_START_",i).replace("_END_",a).replace("_MAX_",n).replace("_TOTAL_",h)+t.sInfoPostFix:t.sInfo.replace("_START_",i).replace("_END_",a).replace("_MAX_",n).replace("_TOTAL_",h)+" "+t.sInfoFiltered.replace("_MAX_",s.fnFormatNumber(s.fnRecordsTotal()))+t.sInfoPostFix,i=t.fnInfoCallback,d=(i&&(c=i.call(s.oInstance,s,e,o,l,r,c)),s.aanFeatures.i);if(void 0!==d)for(var p=0,u=d.length;p<u;p++)f(d[p]).html(c);f(s.nTable).triggerHandler("info.dt")}},_parseHeight:function(s){var t,o,s=/^([+-]?(?:\d+(?:\.\d+)?|\.\d+))(px|em|rem|vh)$/.exec(s);return null!==s&&(o=parseFloat(s[1]),"px"===(s=s[2])?t=o:"vh"===s?t=o/100*f(i).height():"rem"===s?t=o*parseFloat(f(":root").css("font-size")):"em"===s&&(t=o*parseFloat(f("body").css("font-size"))),t)||0},_scroll:function(){var s,t=this,o=this.s.heights,e=this.dom.scroller.scrollTop;this.s.skip||this.s.ingnoreScroll||e!==this.s.lastScrollTop&&(this.s.dt.bFiltered||this.s.dt.bSorted?this.s.lastScrollTop=0:(this._info(),clearTimeout(this.s.stateTO),this.s.stateTO=setTimeout(function(){t.s.dtApi.state.save()},250),this.s.scrollType=Math.abs(e-this.s.lastScrollTop)>o.viewport?"jump":"cont",this.s.topRowFloat="cont"===this.s.scrollType?this.pixelsToRow(e,!1,!1):this._domain("physicalToVirtual",e)/o.row,this.s.topRowFloat<0&&(this.s.topRowFloat=0),this.s.forceReposition||e<this.s.redrawTop||e>this.s.redrawBottom?(s=Math.ceil((this.s.displayBuffer-1)/2*this.s.viewportRows),s=parseInt(this.s.topRowFloat,10)-s,this.s.forceReposition=!1,s<=0?s=0:s+this.s.dt._iDisplayLength>this.s.dt.fnRecordsDisplay()?(s=this.s.dt.fnRecordsDisplay()-this.s.dt._iDisplayLength)<0&&(s=0):s%2!=0&&s++,(this.s.targetTop=s)!=this.s.dt._iDisplayStart&&(this.s.tableTop=f(this.s.dt.nTable).offset().top,this.s.tableBottom=f(this.s.dt.nTable).height()+this.s.tableTop,s=function(){t.s.dt._iDisplayStart=t.s.targetTop,t.s.dt.oApi._fnDraw(t.s.dt)},this.s.dt.oFeatures.bServerSide?(this.s.forceReposition=!0,clearTimeout(this.s.drawTO),this.s.drawTO=setTimeout(s,this.s.serverWait)):s(),this.dom.loader)&&!this.s.loaderVisible&&(this.dom.loader.css("display","block"),this.s.loaderVisible=!0)):this.s.topRowFloat=this.pixelsToRow(e,!1,!0),this.s.lastScrollTop=e,this.s.stateSaveThrottle(),"jump"===this.s.scrollType&&this.s.mousedown&&(this.s.labelVisible=!0),this.s.labelVisible&&(s=(o.viewport-o.labelHeight-o.xbar)/o.scroll,this.dom.label.html(this.s.dt.fnFormatNumber(parseInt(this.s.topRowFloat,10)+1)).css("top",e+e*s).css("right",10-this.dom.scroller.scrollLeft).css("display","block"))))},_scrollForce:function(){var s=this.s.heights;s.virtual=s.row*this.s.dt.fnRecordsDisplay(),s.scroll=s.virtual,1e6<s.scroll&&(s.scroll=1e6),this.dom.force.style.height=s.scroll>this.s.heights.row?s.scroll+"px":this.s.heights.row+"px"}}),l.oDefaults=l.defaults={boundaryScale:.5,displayBuffer:9,loadingIndicator:!1,rowHeight:"auto",serverWait:200},l.version="2.1.1",f(o).on("preInit.dt.dtscroller",function(s,t){var o,e;"dt"===s.namespace&&(s=t.oInit.scroller,o=r.defaults.scroller,s||o)&&(e=f.extend({},s,o),!1!==s)&&new l(t,e)}),f.fn.dataTable.Scroller=l,f.fn.DataTable.Scroller=l,f.fn.dataTable.Api);return s.register("scroller()",function(){return this}),s.register("scroller().rowToPixels()",function(s,t,o){var e=this.context;if(e.length&&e[0].oScroller)return e[0].oScroller.rowToPixels(s,t,o)}),s.register("scroller().pixelsToRow()",function(s,t,o){var e=this.context;if(e.length&&e[0].oScroller)return e[0].oScroller.pixelsToRow(s,t,o)}),s.register(["scroller().scrollToRow()","scroller.toPosition()"],function(t,o){return this.iterator("table",function(s){s.oScroller&&s.oScroller.scrollToRow(t,o)}),this}),s.register("row().scrollTo()",function(o){var e=this;return this.iterator("row",function(s,t){s.oScroller&&(t=e.rows({order:"applied",search:"applied"}).indexes().indexOf(t),s.oScroller.scrollToRow(t,o))}),this}),s.register("scroller.measure()",function(t){return this.iterator("table",function(s){s.oScroller&&s.oScroller.measure(t)}),this}),s.register("scroller.page()",function(){var s=this.context;if(s.length&&s[0].oScroller)return s[0].oScroller.pageInfo()}),r});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap.js new file mode 100644 index 0000000..ff13d34 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap.js @@ -0,0 +1,58 @@ +/*! Bootstrap 3 styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-bs', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-bs')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap.min.js new file mode 100644 index 0000000..d8b755a --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap.min.js @@ -0,0 +1,4 @@ +/*! Bootstrap 3 styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-scroller"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-bs")(e,n),n.fn.dataTable.Scroller||require("datatables.net-scroller")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";return e.fn.dataTable});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap4.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap4.js new file mode 100644 index 0000000..aec23b1 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap4.js @@ -0,0 +1,58 @@ +/*! Bootstrap 4 styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-bs4', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-bs4')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap4.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap4.min.js new file mode 100644 index 0000000..825b6bc --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap4.min.js @@ -0,0 +1,4 @@ +/*! Bootstrap 4 styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-scroller"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-bs4")(e,n),n.fn.dataTable.Scroller||require("datatables.net-scroller")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";return e.fn.dataTable});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap5.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap5.js new file mode 100644 index 0000000..8262a4e --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap5.js @@ -0,0 +1,58 @@ +/*! Bootstrap 5 styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-bs5', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-bs5')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap5.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap5.min.js new file mode 100644 index 0000000..94bad51 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bootstrap5.min.js @@ -0,0 +1,4 @@ +/*! Bootstrap 5 styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-scroller"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-bs5")(e,n),n.fn.dataTable.Scroller||require("datatables.net-scroller")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";return e.fn.dataTable});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bulma.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bulma.js new file mode 100644 index 0000000..b856f58 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bulma.js @@ -0,0 +1,58 @@ +/*! Bulma styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-bm', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-bm')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bulma.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bulma.min.js new file mode 100644 index 0000000..b242775 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.bulma.min.js @@ -0,0 +1,4 @@ +/*! Bulma styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bm","datatables.net-scroller"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-bm")(e,n),n.fn.dataTable.Scroller||require("datatables.net-scroller")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";return e.fn.dataTable});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.dataTables.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.dataTables.js new file mode 100644 index 0000000..5b808e2 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.dataTables.js @@ -0,0 +1,58 @@ +/*! DataTables styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-dt', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-dt')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.dataTables.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.dataTables.min.js new file mode 100644 index 0000000..f2ef3b3 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.dataTables.min.js @@ -0,0 +1,4 @@ +/*! DataTables styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(n){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-scroller"],function(e){return n(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,t){t.fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable.Scroller||require("datatables.net-scroller")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||o(e),d(e,t),n(t,0,e.document)}:(d(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(e,t,n,o){"use strict";return e.fn.dataTable});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.foundation.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.foundation.js new file mode 100644 index 0000000..accbcc4 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.foundation.js @@ -0,0 +1,58 @@ +/*! Foundation styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-zf', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-zf')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.foundation.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.foundation.min.js new file mode 100644 index 0000000..a279177 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.foundation.min.js @@ -0,0 +1,4 @@ +/*! Foundation styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-zf","datatables.net-scroller"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-zf")(e,n),n.fn.dataTable.Scroller||require("datatables.net-scroller")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";return e.fn.dataTable});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.jqueryui.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.jqueryui.js new file mode 100644 index 0000000..c17385e --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.jqueryui.js @@ -0,0 +1,58 @@ +/*! jQuery UI styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-jqui', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-jqui')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.jqueryui.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.jqueryui.min.js new file mode 100644 index 0000000..2222ce4 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.jqueryui.min.js @@ -0,0 +1,4 @@ +/*! jQuery UI styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-jqui","datatables.net-scroller"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-jqui")(e,n),n.fn.dataTable.Scroller||require("datatables.net-scroller")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";return e.fn.dataTable});
\ No newline at end of file diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.semanticui.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.semanticui.js new file mode 100644 index 0000000..6d3ae53 --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.semanticui.js @@ -0,0 +1,58 @@ +/*! Semanic UI styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ + +(function( factory ){ + if ( typeof define === 'function' && define.amd ) { + // AMD + define( ['jquery', 'datatables.net-se', 'datatables.net-scroller'], function ( $ ) { + return factory( $, window, document ); + } ); + } + else if ( typeof exports === 'object' ) { + // CommonJS + var jq = require('jquery'); + var cjsRequires = function (root, $) { + if ( ! $.fn.dataTable ) { + require('datatables.net-se')(root, $); + } + + if ( ! $.fn.dataTable.Scroller ) { + require('datatables.net-scroller')(root, $); + } + }; + + if (typeof window !== 'undefined') { + module.exports = function (root, $) { + if ( ! root ) { + // CommonJS environments without a window global must pass a + // root. This will give an error otherwise + root = window; + } + + if ( ! $ ) { + $ = jq( root ); + } + + cjsRequires( root, $ ); + return factory( $, root, root.document ); + }; + } + else { + cjsRequires( window, jq ); + module.exports = factory( jq, window, window.document ); + } + } + else { + // Browser + factory( jQuery, window, document ); + } +}(function( $, window, document, undefined ) { +'use strict'; +var DataTable = $.fn.dataTable; + + + + +return DataTable; +})); diff --git a/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.semanticui.min.js b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.semanticui.min.js new file mode 100644 index 0000000..12c2d3c --- /dev/null +++ b/public/assets/js/DataTables/Scroller-2.1.1/js/scroller.semanticui.min.js @@ -0,0 +1,4 @@ +/*! Semanic UI styling wrapper for Scroller + * © SpryMedia Ltd - datatables.net/license + */ +!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-se","datatables.net-scroller"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-se")(e,n),n.fn.dataTable.Scroller||require("datatables.net-scroller")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";return e.fn.dataTable});
\ No newline at end of file |
