N°7355 - Upgrade datatables.net to 1.13.11 (and plugins)

This commit is contained in:
Molkobain
2024-03-26 11:02:46 +01:00
parent bcfbacc625
commit 12b30c1531
42 changed files with 28058 additions and 5541 deletions

View File

@@ -1,3 +1,5 @@
The MIT License (MIT)
Copyright SpryMedia Limited and other contributors
http://datatables.net
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.

View File

@@ -17,11 +17,17 @@ For inclusion of this library using a standard `<script>` tag, rather than using
npm install datatables.net-fixedheader
```
ES3 Syntax
```
var $ = require( 'jquery' );
require( 'datatables.net-fixedheader' )( window, $ );
```
ES6 Syntax
```
import 'datatables.net-fixedheader'
```
### bower
```
@@ -32,8 +38,7 @@ bower install --save datatables.net-fixedheader
## Documentation
Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
Full documentation and examples for FixedHeader can be found [on the website](https://datatables.net/extensions/fixedheader).
## Bug / Support

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,36 +1,48 @@
{
"name": "datatables.net-fixedheader",
"version": "3.1.8",
"description": "FixedHeader for DataTables ",
"files": [
"js/**/*.js"
],
"description": "FixedHeader for DataTables",
"main": "js/dataTables.fixedHeader.js",
"type": "types.d.ts",
"module": "js/dataTables.fixedHeader.mjs",
"types": "./types/types.d.ts",
"version": "3.4.1",
"files": [
"js/**/*.js",
"js/**/*.mjs",
"types/**/*.d.ts"
],
"keywords": [
"fixed headers",
"sticky",
"DataTables",
"FixedHeader",
"Fixed Headers",
"Sticky",
"Datatables",
"jQuery",
"table",
"DataTables"
"filter",
"sort"
],
"dependencies": {
"datatables.net": "^1.13.0",
"jquery": ">=1.7"
},
"moduleType": [
"globals",
"amd",
"node"
],
"ignore": [
"composer.json",
"datatables.json",
"package.json"
],
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"author": {
"name": "SpryMedia Ltd",
"url": "http://datatables.net"
},
"dependencies": {
"jquery": ">=1.7",
"datatables.net": "^1.10.15"
},
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/DataTables/Dist-DataTables-FixedHeader.git"
},
"devDependencies": {
"@types/jquery": "^3.5.1"
}
}

View File

@@ -0,0 +1,148 @@
// Type definitions for DataTables FixedHeader
//
// Project: https://datatables.net/extensions/fixedheader/, https://datatables.net
// Definitions by:
// SpryMedia
// Jared Szechy <https://github.com/szechyjs>
// Kiarash Ghiaseddin <https://github.com/Silver-Connection>
/// <reference types="jquery" />
import DataTables, {Api} from 'datatables.net';
export default DataTables;
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* DataTables' types integration
*/
declare module 'datatables.net' {
interface Config {
/*
* FixedHeader extension options
*/
fixedHeader?: boolean | ConfigFixedHeader;
}
interface Api<T> {
/**
* FixedHeader methods container
*
* @returns Api for chaining with the additional FixedHeader methods
*/
fixedHeader: ApiFixedHeaderMethods<T>;
}
interface ApiStatic {
/**
* FixedHeader class
*/
FixedHeader: {
/**
* Create a new FixedHeader instance for the target DataTable
*/
new (dt: Api<any>, settings: boolean | ConfigFixedHeader);
/**
* FixedHeader version
*/
version: string;
/**
* Default configuration values
*/
defaults: ConfigFixedHeader;
}
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Options
*/
interface ConfigFixedHeader {
/*
* Enable / disable fixed footer
*/
footer?: boolean;
/*
* Offset the table's fixed footer
*/
footerOffset?: number;
/*
* Enable / disable fixed header
*/
header?: boolean;
/*
* Offset the table's fixed header
*/
headerOffset?: number;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* API
*/
interface ApiFixedHeaderMethods<T> extends Api<T> {
/**
* Recalculate the position of the DataTable on the page and adjust the fixed element as appropriate.
*
* @returns The DataTables API for chaining
*/
adjust(): Api<T>;
/**
* Disable the fixed elements
*
* @returns The DataTables API for chaining
*/
disable(): Api<T>;
/**
* Enable / disable the fixed elements
*
* @param enable Flag to indicate if the FixedHeader elements should be enabled or disabled, default true.
* @returns The DataTables API for chaining
*/
enable(enable?: boolean): Api<T>;
/**
* Simply gets the status of FixedHeader for this table.
*
* @returns true if FixedHeader is enabled on this table. false otherwise.
*/
enabled(): boolean;
/**
* Get the fixed footer's offset.
*
* @returns The current footer offset
*/
footerOffset(): number;
/**
* Set the fixed footer's offset
*
* @param offset The offset to be set
* @returns DataTables Api for chaining
*/
footerOffset(offset: number): Api<T>;
/**
* Get the fixed header's offset.
*
* @returns The current header offset
*/
headerOffset(): number;
/**
* Set the fixed header's offset
*
* @param offset The offset to be set
* @returns The DataTables API for chaining
*/
headerOffset(offset: number): Api<T>;
}