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,15 +1,15 @@
|
||||
/*! RowGroup 1.1.1
|
||||
* ©2017-2019 SpryMedia Ltd - datatables.net/license
|
||||
/*! RowGroup 1.1.2
|
||||
* ©2017-2020 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @summary RowGroup
|
||||
* @description RowGrouping for DataTables
|
||||
* @version 1.1.1
|
||||
* @version 1.1.2
|
||||
* @file dataTables.rowGroup.js
|
||||
* @author SpryMedia Ltd (www.sprymedia.co.uk)
|
||||
* @contact datatables.net
|
||||
* @copyright Copyright 2017-2019 SpryMedia Ltd.
|
||||
* @copyright Copyright 2017-2020 SpryMedia Ltd.
|
||||
*
|
||||
* This source file is free software, available under the following license:
|
||||
* MIT license - http://datatables.net/license/mit
|
||||
@@ -135,6 +135,15 @@ $.extend( RowGroup.prototype, {
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get enabled flag
|
||||
* @returns boolean
|
||||
*/
|
||||
enabled: function ()
|
||||
{
|
||||
return this.c.enable;
|
||||
},
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Constructor
|
||||
@@ -143,9 +152,10 @@ $.extend( RowGroup.prototype, {
|
||||
{
|
||||
var that = this;
|
||||
var dt = this.s.dt;
|
||||
var hostSettings = dt.settings()[0];
|
||||
|
||||
dt.on( 'draw.dtrg', function () {
|
||||
if ( that.c.enable ) {
|
||||
dt.on( 'draw.dtrg', function (e, s) {
|
||||
if ( that.c.enable && hostSettings === s ) {
|
||||
that._draw();
|
||||
}
|
||||
} );
|
||||
@@ -157,10 +167,6 @@ $.extend( RowGroup.prototype, {
|
||||
dt.on( 'destroy', function () {
|
||||
dt.off( '.dtrg' );
|
||||
} );
|
||||
|
||||
dt.on('responsive-resize.dt', function () {
|
||||
that._adjustColspan();
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -174,7 +180,7 @@ $.extend( RowGroup.prototype, {
|
||||
*/
|
||||
_adjustColspan: function ()
|
||||
{
|
||||
$( 'tr.'+this.c.className, this.s.dt.table().body() ).find('td')
|
||||
$( 'tr.'+this.c.className, this.s.dt.table().body() ).find('td:visible')
|
||||
.attr( 'colspan', this._colspan() );
|
||||
},
|
||||
|
||||
@@ -407,7 +413,7 @@ RowGroup.defaults = {
|
||||
};
|
||||
|
||||
|
||||
RowGroup.version = "1.1.1";
|
||||
RowGroup.version = "1.1.2";
|
||||
|
||||
|
||||
$.fn.dataTable.RowGroup = RowGroup;
|
||||
@@ -434,6 +440,14 @@ DataTable.Api.register( 'rowGroup().enable()', function ( opts ) {
|
||||
} );
|
||||
} );
|
||||
|
||||
DataTable.Api.register( 'rowGroup().enabled()', function () {
|
||||
var ctx = this.context;
|
||||
|
||||
return ctx.length && ctx[0].rowGroup ?
|
||||
ctx[0].rowGroup.enabled() :
|
||||
false;
|
||||
} );
|
||||
|
||||
DataTable.Api.register( 'rowGroup().dataSrc()', function ( val ) {
|
||||
if ( val === undefined ) {
|
||||
return this.context[0].rowGroup.dataSrc();
|
||||
|
||||
Reference in New Issue
Block a user