Update dependencies (#2748)
* @fullcalendar/bootstrap ^4.4.0 → ^4.4.2 * @fullcalendar/core ^4.4.0 → ^4.4.2 * @fullcalendar/daygrid ^4.4.0 → ^4.4.2 * @fullcalendar/interaction ^4.4.0 → ^4.4.2 * @fullcalendar/timegrid ^4.4.0 → ^4.4.2 * @ttskch/select2-bootstrap4-theme ^1.3.2 → ^1.4.0 * bootstrap4-duallistbox ^4.0.1 → ^4.0.2 * datatables.net ^1.10.20 → ^1.10.21 * datatables.net-autofill-bs4 ^2.3.4 → ^2.3.5 * datatables.net-bs4 ^1.10.20 → ^1.10.21 * datatables.net-buttons-bs4 ^1.6.1 → ^1.6.2 * datatables.net-fixedcolumns-bs4 ^3.3.0 → ^3.3.1 * datatables.net-fixedheader-bs4 ^3.1.6 → ^3.1.7 * datatables.net-keytable-bs4 ^2.5.1 → ^2.5.2 * datatables.net-responsive-bs4 ^2.2.3 → ^2.2.5 * datatables.net-rowgroup-bs4 ^1.1.1 → ^1.1.2 * datatables.net-rowreorder-bs4 ^1.2.6 → ^1.2.7 * datatables.net-scroller-bs4 ^2.0.1 → ^2.0.2 * filterizr ^2.2.3 → ^2.2.4 * flot ^4.2.0 → ^4.2.1 * jquery-validation ^1.19.1 → ^1.19.2 * jszip ^3.3.0 → ^3.4.0 * overlayscrollbars ^1.11.0 → ^1.12.0 * summernote ^0.8.16 → ^0.8.18 * sweetalert2 ^9.10.8 → ^9.14.0
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
/*! FixedHeader 3.1.6-dev
|
||||
* ©2009-2018 SpryMedia Ltd - datatables.net/license
|
||||
/*! FixedHeader 3.1.7
|
||||
* ©2009-2020 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @summary FixedHeader
|
||||
* @description Fix a table's header or footer, so it is always visible while
|
||||
* scrolling
|
||||
* @version 3.1.6-dev
|
||||
* @version 3.1.7
|
||||
* @file dataTables.fixedHeader.js
|
||||
* @author SpryMedia Ltd (www.sprymedia.co.uk)
|
||||
* @contact www.sprymedia.co.uk/contact
|
||||
* @copyright Copyright 2009-2018 SpryMedia Ltd.
|
||||
* @copyright Copyright 2009-2020 SpryMedia Ltd.
|
||||
*
|
||||
* This source file is free software, available under the following license:
|
||||
* MIT license - http://datatables.net/license/mit
|
||||
@@ -425,6 +425,13 @@ $.extend( FixedHeader.prototype, {
|
||||
var itemDom = this.dom[ item ];
|
||||
var position = this.s.position;
|
||||
|
||||
// It isn't trivial to add a !important css attribute...
|
||||
var importantWidth = function (w) {
|
||||
itemDom.floating.attr('style', function(i,s) {
|
||||
return (s || '') + 'width: '+w+'px !important;';
|
||||
});
|
||||
};
|
||||
|
||||
// Record focus. Browser's will cause input elements to loose focus if
|
||||
// they are inserted else where in the doc
|
||||
var tablePart = this.dom[ item==='footer' ? 'tfoot' : 'thead' ];
|
||||
@@ -465,8 +472,9 @@ $.extend( FixedHeader.prototype, {
|
||||
itemDom.floating
|
||||
.addClass( 'fixedHeader-floating' )
|
||||
.css( item === 'header' ? 'top' : 'bottom', this.c[item+'Offset'] )
|
||||
.css( 'left', position.left+'px' )
|
||||
.css( 'width', position.width+'px' );
|
||||
.css( 'left', position.left+'px' );
|
||||
|
||||
importantWidth(position.width);
|
||||
|
||||
if ( item === 'footer' ) {
|
||||
itemDom.floating.css( 'top', '' );
|
||||
@@ -479,8 +487,9 @@ $.extend( FixedHeader.prototype, {
|
||||
itemDom.floating
|
||||
.addClass( 'fixedHeader-locked' )
|
||||
.css( 'top', position.tfootTop - position.theadHeight )
|
||||
.css( 'left', position.left+'px' )
|
||||
.css( 'width', position.width+'px' );
|
||||
.css( 'left', position.left+'px' );
|
||||
|
||||
importantWidth(position.width);
|
||||
}
|
||||
else if ( mode === 'above' ) { // only used for the footer
|
||||
// Fix the position of the floating footer at top of the table body
|
||||
@@ -489,8 +498,9 @@ $.extend( FixedHeader.prototype, {
|
||||
itemDom.floating
|
||||
.addClass( 'fixedHeader-locked' )
|
||||
.css( 'top', position.tbodyTop )
|
||||
.css( 'left', position.left+'px' )
|
||||
.css( 'width', position.width+'px' );
|
||||
.css( 'left', position.left+'px' );
|
||||
|
||||
importantWidth(position.width);
|
||||
}
|
||||
|
||||
// Restore focus if it was lost
|
||||
@@ -585,7 +595,7 @@ $.extend( FixedHeader.prototype, {
|
||||
|
||||
if ( this.c.footer && this.dom.tfoot.length ) {
|
||||
if ( ! this.s.enable ) {
|
||||
headerMode = 'in-place';
|
||||
footerMode = 'in-place';
|
||||
}
|
||||
else if ( ! position.visible || windowTop + position.windowHeight >= position.tfootBottom + this.c.footerOffset ) {
|
||||
footerMode = 'in-place';
|
||||
@@ -612,7 +622,7 @@ $.extend( FixedHeader.prototype, {
|
||||
* @type {String}
|
||||
* @static
|
||||
*/
|
||||
FixedHeader.version = "3.1.6-dev";
|
||||
FixedHeader.version = "3.1.7";
|
||||
|
||||
/**
|
||||
* Defaults
|
||||
@@ -681,7 +691,7 @@ DataTable.Api.register( 'fixedHeader.enable()', function ( flag ) {
|
||||
|
||||
DataTable.Api.register( 'fixedHeader.enabled()', function () {
|
||||
if ( this.context.length ) {
|
||||
var fx = this.content[0]._fixedHeader;
|
||||
var fh = this.content[0]._fixedHeader;
|
||||
|
||||
if ( fh ) {
|
||||
return fh.enabled();
|
||||
|
||||
Reference in New Issue
Block a user