v.2.30
Добавлен расширенный отчет по реализации Добавлен монитор активности
This commit is contained in:
1
forUpdate/toLibs/datatables_new/buttons.dataTables.min.css
vendored
Normal file
1
forUpdate/toLibs/datatables_new/buttons.dataTables.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
4
forUpdate/toLibs/datatables_new/dataTables.searchBuilder.min.js
vendored
Normal file
4
forUpdate/toLibs/datatables_new/dataTables.searchBuilder.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
60
forUpdate/toLibs/datatables_new/datatables.min.css
vendored
Normal file
60
forUpdate/toLibs/datatables_new/datatables.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
208
forUpdate/toLibs/datatables_new/datatables.min.js
vendored
Normal file
208
forUpdate/toLibs/datatables_new/datatables.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
74
forUpdate/toLibs/datatables_new/datetime-moment.js
Normal file
74
forUpdate/toLibs/datatables_new/datetime-moment.js
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* This plug-in for DataTables represents the ultimate option in extensibility
|
||||
* for sorting date / time strings correctly. It uses
|
||||
* [Moment.js](http://momentjs.com) to create automatic type detection and
|
||||
* sorting plug-ins for DataTables based on a given format. This way, DataTables
|
||||
* will automatically detect your temporal information and sort it correctly.
|
||||
*
|
||||
* For usage instructions, please see the DataTables blog
|
||||
* post that [introduces it](//datatables.net/blog/2014-12-18).
|
||||
*
|
||||
* @name Ultimate Date / Time sorting
|
||||
* @summary Sort date and time in any format using Moment.js
|
||||
* @author [Allan Jardine](//datatables.net)
|
||||
* @depends DataTables 1.10+, Moment.js 1.7+
|
||||
*
|
||||
* @example
|
||||
* $.fn.dataTable.moment( 'HH:mm MMM D, YY' );
|
||||
* $.fn.dataTable.moment( 'dddd, MMMM Do, YYYY' );
|
||||
*
|
||||
* $('#example').DataTable();
|
||||
*/
|
||||
|
||||
(function (factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["jquery", "moment", "datatables.net"], factory);
|
||||
} else {
|
||||
factory(jQuery, moment);
|
||||
}
|
||||
}(function ($, moment) {
|
||||
|
||||
$.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
|
||||
var types = $.fn.dataTable.ext.type;
|
||||
|
||||
// Add type detection
|
||||
types.detect.unshift( function ( d ) {
|
||||
if ( d ) {
|
||||
// Strip HTML tags and newline characters if possible
|
||||
if ( d.replace ) {
|
||||
d = d.replace(/(<.*?>)|(\r?\n|\r)/g, '');
|
||||
}
|
||||
|
||||
// Strip out surrounding white space
|
||||
d = $.trim( d );
|
||||
}
|
||||
|
||||
// Null and empty values are acceptable
|
||||
if ( d === '' || d === null ) {
|
||||
return 'moment-'+format;
|
||||
}
|
||||
|
||||
return moment( d, format, locale, true ).isValid() ?
|
||||
'moment-'+format :
|
||||
null;
|
||||
} );
|
||||
|
||||
// Add sorting method - use an integer for the sorting
|
||||
types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
|
||||
if ( d ) {
|
||||
// Strip HTML tags and newline characters if possible
|
||||
if ( d.replace ) {
|
||||
d = d.replace(/(<.*?>)|(\r?\n|\r)/g, '');
|
||||
}
|
||||
|
||||
// Strip out surrounding white space
|
||||
d = $.trim( d );
|
||||
}
|
||||
|
||||
return !moment(d, format, locale, true).isValid() ?
|
||||
(reverseEmpties ? -Infinity : Infinity) :
|
||||
parseInt( moment( d, format, locale, true ).format( 'x' ), 10 );
|
||||
};
|
||||
};
|
||||
|
||||
}));
|
||||
7
forUpdate/toLibs/datatables_new/moment.min.js
vendored
Normal file
7
forUpdate/toLibs/datatables_new/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
forUpdate/toLibs/datatables_new/pdfmake.min.js
vendored
Normal file
3
forUpdate/toLibs/datatables_new/pdfmake.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
forUpdate/toLibs/datatables_new/searchBuilder.dataTables.min.css
vendored
Normal file
1
forUpdate/toLibs/datatables_new/searchBuilder.dataTables.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
51
forUpdate/toLibs/datatables_new/sum().js
Normal file
51
forUpdate/toLibs/datatables_new/sum().js
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Fairly simply, this plug-in will take the data from an API result set
|
||||
* and sum it, returning the summed value. The data can come from any data
|
||||
* source, including column data, cells or rows.
|
||||
*
|
||||
* Note that it will attempt to 'deformat' any string based data that is passed
|
||||
* into it - i.e. it will strip any non-numeric characters in order to make a
|
||||
* best effort attempt to sum all data types. This can be useful when working
|
||||
* with formatting numbers such as currency. However the trade-off is that no
|
||||
* error is thrown if non-numeric data is passed in. You should be aware of this
|
||||
* in case unexpected values are returned - likely the input data is not what is
|
||||
* expected.
|
||||
*
|
||||
* @name sum()
|
||||
* @summary Sum the values in a data set.
|
||||
* @author [Allan Jardine](http://sprymedia.co.uk)
|
||||
* @requires DataTables 1.10+
|
||||
*
|
||||
* @returns {Number} Summed value
|
||||
*
|
||||
* @example
|
||||
* // Simply get the sum of a column
|
||||
* var table = $('#example').DataTable();
|
||||
* table.column( 3 ).data().sum();
|
||||
*
|
||||
* @example
|
||||
* // Insert the sum of a column into the columns footer, for the visible
|
||||
* // data on each draw
|
||||
* $('#example').DataTable( {
|
||||
* drawCallback: function () {
|
||||
* var api = this.api();
|
||||
* $( api.table().footer() ).html(
|
||||
* api.column( 4, {page:'current'} ).data().sum()
|
||||
* );
|
||||
* }
|
||||
* } );
|
||||
*/
|
||||
|
||||
jQuery.fn.dataTable.Api.register( 'sum()', function ( ) {
|
||||
return this.flatten().reduce( function ( a, b ) {
|
||||
if ( typeof a === 'string' ) {
|
||||
a = a.replace(/[^\d.-]/g, '') * 1;
|
||||
}
|
||||
if ( typeof b === 'string' ) {
|
||||
b = b.replace(/[^\d.-]/g, '') * 1;
|
||||
}
|
||||
|
||||
return a + b;
|
||||
}, 0 );
|
||||
} );
|
||||
|
||||
6
forUpdate/toLibs/datatables_new/vfs_fonts.js
Normal file
6
forUpdate/toLibs/datatables_new/vfs_fonts.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user