Sorting: Fix for type sorting which weren't on the `type` property

pull/295/merge
Allan Jardine 2 years ago
parent 139780ffe2
commit d4842eb445

@ -92,9 +92,9 @@ DT_BUILT="${DT_SRC}/built/DataTables"
PLUGINS="${DT_SRC}/extensions/Plugins"
for file in $PLUGINS/api/src/*.ts; do
ts_plugin $file
done
# for file in $PLUGINS/api/src/*.ts; do
# ts_plugin $file
# done
# for file in $PLUGINS/buttons/src/*.ts; do
# ts_plugin $file
@ -108,9 +108,9 @@ done
# ts_plugin $file
# done
# for file in $PLUGINS/sorting/src/*.ts; do
# ts_plugin $file
# done
for file in $PLUGINS/sorting/src/*.ts; do
ts_plugin $file
done
# for file in $PLUGINS/type-detection/src/*.ts; do
# ts_plugin $file

754
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -66,7 +66,7 @@ var DataTable = $.fn.dataTable;
* ]
* });
**/
DataTable.ext.order['case-sensitive-asc'] = function (a, b) {
DataTable.ext.type.order['case-sensitive-asc'] = function (a, b) {
if (a < b) {
return -1;
}
@ -75,7 +75,7 @@ DataTable.ext.order['case-sensitive-asc'] = function (a, b) {
}
return 0;
};
DataTable.ext.order['case-sensitive-desc'] = function (a, b) {
DataTable.ext.type.order['case-sensitive-desc'] = function (a, b) {
if (a > b) {
return -1;
}

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.order["case-sensitive-asc"]=function(e,n){return e<n?-1:n<e?1:0},e.ext.order["case-sensitive-desc"]=function(e,n){return n<e?-1:e<n?1:0},e});
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.type.order["case-sensitive-asc"]=function(e,n){return e<n?-1:n<e?1:0},e.ext.type.order["case-sensitive-desc"]=function(e,n){return n<e?-1:e<n?1:0},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["case-sensitive-asc"]=function(e,a){return e<a?-1:a<e?1:0},DataTable.ext.order["case-sensitive-desc"]=function(e,a){return a<e?-1:e<a?1:0};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["case-sensitive-asc"]=function(e,t){return e<t?-1:t<e?1:0},DataTable.ext.type.order["case-sensitive-desc"]=function(e,t){return t<e?-1:e<t?1:0};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
*
*This plug in will sort data taking into account upper and lower case. In ascending order it will prioritise
@ -23,7 +26,7 @@ import DataTable from 'datatables.net';
* ]
* });
**/
DataTable.ext.order['case-sensitive-asc'] = function (a, b) {
DataTable.ext.type.order['case-sensitive-asc'] = function (a, b) {
if (a < b) {
return -1;
}
@ -32,7 +35,7 @@ DataTable.ext.order['case-sensitive-asc'] = function (a, b) {
}
return 0;
};
DataTable.ext.order['case-sensitive-desc'] = function (a, b) {
DataTable.ext.type.order['case-sensitive-desc'] = function (a, b) {
if (a > b) {
return -1;
}

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(a){var o,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return a(e,window,document)}):"object"==typeof exports?(o=require("jquery"),n=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||o(e),n(e,t),a(t,0,e.document)}:(n(window,o),module.exports=a(o,window,window.document))):a(jQuery,window,document)}(function(e,t,a,r){"use strict";function o(e){Array.isArray(e)||(e=[e]);for(var o={name:"absoluteOrder"+s++,alwaysTop:{},alwaysBottom:{},asc:function(e,t,a){},desc:function(e,t,a){}},t=0,a=e.length;t<a;t++){var n=e[t];"string"==typeof n?o.alwaysTop[n]=!0:n.position===r||"top"===n.position?o.alwaysTop[n.value]=!0:o.alwaysBottom[n.value]=!0}return o.asc=function(e,t,a){return o.alwaysTop[e]&&o.alwaysTop[t]||o.alwaysBottom[e]&&o.alwaysBottom[t]?0:o.alwaysTop[e]||o.alwaysBottom[t]?-1:o.alwaysBottom[e]||o.alwaysTop[t]?1:(a&&("string"==typeof e&&(e=+e.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),e<t?-1:t<e?1:0)},o.desc=function(e,t,a){return o.alwaysTop[e]&&o.alwaysTop[t]||o.alwaysBottom[e]&&o.alwaysBottom[t]?0:o.alwaysTop[e]||o.alwaysBottom[t]?-1:o.alwaysBottom[e]||o.alwaysTop[t]||(a&&("string"==typeof e&&(e=+e.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),e<t)?1:t<e?-1:0},o}var n=e.fn.dataTable,s=0;return n.absoluteOrder=function(e){e=o(e);return n.ext.type.order[e.name+"-asc"]=e.asc,n.ext.type.order[e.name+"-desc"]=e.desc,e.name},n.absoluteOrderNumber=function(e){var a=o(e);return n.ext.type.order[a.name+"-asc"]=function(e,t){return a.asc(e,t,!0)},n.ext.type.order[a.name+"-desc"]=function(e,t){return a.desc(e,t,!0)},a.name},n});
!function(a){var o,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return a(e,window,document)}):"object"==typeof exports?(o=require("jquery"),n=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||o(e),n(e,t),a(t,0,e.document)}:(n(window,o),module.exports=a(o,window,window.document))):a(jQuery,window,document)}(function(e,t,a,r){"use strict";function o(e){Array.isArray(e)||(e=[e]);for(var o={name:"absoluteOrder"+s++,alwaysTop:{},alwaysBottom:{},asc:function(e,t,a){},desc:function(e,t,a){}},t=0,a=e.length;t<a;t++){var n=e[t];"string"==typeof n?o.alwaysTop[n]=!0:n.position===r||"top"===n.position?o.alwaysTop[n.value]=!0:o.alwaysBottom[n.value]=!0}return o.asc=function(e,t,a){return o.alwaysTop[e]&&o.alwaysTop[t]||o.alwaysBottom[e]&&o.alwaysBottom[t]?0:o.alwaysTop[e]||o.alwaysBottom[t]?-1:o.alwaysBottom[e]||o.alwaysTop[t]?1:(a&&("string"==typeof e&&(e=+e.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),e<t?-1:t<e?1:0)},o.desc=function(e,t,a){return o.alwaysTop[e]&&o.alwaysTop[t]||o.alwaysBottom[e]&&o.alwaysBottom[t]?0:o.alwaysTop[e]||o.alwaysBottom[t]?-1:o.alwaysBottom[e]||o.alwaysTop[t]||(a&&("string"==typeof e&&(e=+e.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),e<t)?1:t<e?-1:0},o}var n=e.fn.dataTable,s=0;return n.absoluteOrder=function(e){e=o(e);return n.ext.type.order[e.name+"-asc"]=e.asc,n.ext.type.order[e.name+"-desc"]=e.desc,e.name},n.absoluteOrderNumber=function(e){var a=o(e);return n.ext.type.order[a.name+"-asc"]=function(e,t){return a.asc(e,t,!0)},n.ext.type.order[a.name+"-desc"]=function(e,t){return a.desc(e,t,!0)},a.name},n});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";var _unique=0,_setup=function(a){Array.isArray(a)||(a=[a]);for(var o={name:"absoluteOrder"+_unique++,alwaysTop:{},alwaysBottom:{},asc:function(a,t,e){},desc:function(a,t,e){}},t=0,e=a.length;t<e;t++){var r=a[t];"string"==typeof r?o.alwaysTop[r]=!0:void 0===r.position||"top"===r.position?o.alwaysTop[r.value]=!0:o.alwaysBottom[r.value]=!0}return o.asc=function(a,t,e){return o.alwaysTop[a]&&o.alwaysTop[t]||o.alwaysBottom[a]&&o.alwaysBottom[t]?0:o.alwaysTop[a]||o.alwaysBottom[t]?-1:o.alwaysBottom[a]||o.alwaysTop[t]?1:(e&&("string"==typeof a&&(a=+a.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),a<t?-1:t<a?1:0)},o.desc=function(a,t,e){return o.alwaysTop[a]&&o.alwaysTop[t]||o.alwaysBottom[a]&&o.alwaysBottom[t]?0:o.alwaysTop[a]||o.alwaysBottom[t]?-1:o.alwaysBottom[a]||o.alwaysTop[t]||(e&&("string"==typeof a&&(a=+a.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),a<t)?1:t<a?-1:0},o};DataTable.absoluteOrder=function(a){a=_setup(a);return DataTable.ext.type.order[a.name+"-asc"]=a.asc,DataTable.ext.type.order[a.name+"-desc"]=a.desc,a.name},DataTable.absoluteOrderNumber=function(a){var e=_setup(a);return DataTable.ext.type.order[e.name+"-asc"]=function(a,t){return e.asc(a,t,!0)},DataTable.ext.type.order[e.name+"-desc"]=function(a,t){return e.desc(a,t,!0)},e.name};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;var _unique=0,_setup=function(a){Array.isArray(a)||(a=[a]);for(var o={name:"absoluteOrder"+_unique++,alwaysTop:{},alwaysBottom:{},asc:function(a,t,e){},desc:function(a,t,e){}},t=0,e=a.length;t<e;t++){var r=a[t];"string"==typeof r?o.alwaysTop[r]=!0:void 0===r.position||"top"===r.position?o.alwaysTop[r.value]=!0:o.alwaysBottom[r.value]=!0}return o.asc=function(a,t,e){return o.alwaysTop[a]&&o.alwaysTop[t]||o.alwaysBottom[a]&&o.alwaysBottom[t]?0:o.alwaysTop[a]||o.alwaysBottom[t]?-1:o.alwaysBottom[a]||o.alwaysTop[t]?1:(e&&("string"==typeof a&&(a=+a.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),a<t?-1:t<a?1:0)},o.desc=function(a,t,e){return o.alwaysTop[a]&&o.alwaysTop[t]||o.alwaysBottom[a]&&o.alwaysBottom[t]?0:o.alwaysTop[a]||o.alwaysBottom[t]?-1:o.alwaysBottom[a]||o.alwaysTop[t]||(e&&("string"==typeof a&&(a=+a.replace(/[^\d\-\.]/g,"")),"string"==typeof t)&&(t=+t.replace(/[^\d\-\.]/g,"")),a<t)?1:t<a?-1:0},o};DataTable.absoluteOrder=function(a){a=_setup(a);return DataTable.ext.type.order[a.name+"-asc"]=a.asc,DataTable.ext.type.order[a.name+"-desc"]=a.desc,a.name},DataTable.absoluteOrderNumber=function(a){var e=_setup(a);return DataTable.ext.type.order[e.name+"-asc"]=function(a,t){return e.asc(a,t,!0)},DataTable.ext.type.order[e.name+"-desc"]=function(a,t){return e.desc(a,t,!0)},e.name};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* When sorting a DataTable you might find that you want to keep a specific
* item at the top or bottom of the table. For example when sorting a column

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -62,7 +62,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['alt-string-pre'] = function (a) {
DataTable.ext.type.order['alt-string-pre'] = function (a) {
return a.match(/alt="(.*?)"/)[1].toLowerCase();
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Jumpy - datatables.net/license */
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";e=e.fn.dataTable;return e.ext.order["alt-string-pre"]=function(e){return e.match(/alt="(.*?)"/)[1].toLowerCase()},e});
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";e=e.fn.dataTable;return e.ext.type.order["alt-string-pre"]=function(e){return e.match(/alt="(.*?)"/)[1].toLowerCase()},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Jumpy - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["alt-string-pre"]=function(t){return t.match(/alt="(.*?)"/)[1].toLowerCase()};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["alt-string-pre"]=function(t){return t.match(/alt="(.*?)"/)[1].toLowerCase()};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Jumpy - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sort on the 'alt' tag of images in a column. This is particularly useful if
* you have a column of images (ticks and crosses for example) and you want to
@ -19,7 +22,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['alt-string-pre'] = function (a) {
DataTable.ext.type.order['alt-string-pre'] = function (a) {
return a.match(/alt="(.*?)"/)[1].toLowerCase();
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -63,7 +63,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['anti-the-pre'] = function (a) {
DataTable.ext.type.order['anti-the-pre'] = function (a) {
return a.replace(/^the /i, '');
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.order["anti-the-pre"]=function(e){return e.replace(/^the /i,"")},e});
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.type.order["anti-the-pre"]=function(e){return e.replace(/^the /i,"")},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["anti-the-pre"]=function(e){return e.replace(/^the /i,"")};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["anti-the-pre"]=function(e){return e.replace(/^the /i,"")};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Often a list of data which has titles in it (books, albums etc) will have
* the word "the" at the start of some individual titles, which you don't want
@ -20,7 +23,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['anti-the-pre'] = function (a) {
DataTable.ext.type.order['anti-the-pre'] = function (a) {
return a.replace(/^the /i, '');
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -82,10 +82,10 @@ function _anyNumberSort(a, b, high) {
b = b !== null ? parseFloat(b[0]) : high;
return a < b ? -1 : a > b ? 1 : 0;
}
DataTable.ext.order['any-number-asc'] = function (a, b) {
DataTable.ext.type.order['any-number-asc'] = function (a, b) {
return _anyNumberSort(a, b, Number.POSITIVE_INFINITY);
};
DataTable.ext.order['any-number-desc'] = function (a, b) {
DataTable.ext.type.order['any-number-desc'] = function (a, b) {
return _anyNumberSort(a, b, Number.NEGATIVE_INFINITY) * -1;
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
!function(t){var r,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),u(e,n),t(n,0,e.document)}:(u(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,n,t,r){"use strict";e=e.fn.dataTable;function u(e,n,t){var r=/[+-]?((\d+(\.\d*)?)|\.\d+)([eE][+-]?[0-9]+)?/;return(e=null!==(e=e.replace(",",".").match(r))?parseFloat(e[0]):t)<(n=null!==(n=n.replace(",",".").match(r))?parseFloat(n[0]):t)?-1:n<e?1:0}return e.ext.order["any-number-asc"]=function(e,n){return u(e,n,Number.POSITIVE_INFINITY)},e.ext.order["any-number-desc"]=function(e,n){return-1*u(e,n,Number.NEGATIVE_INFINITY)},e});
!function(t){var r,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),u(e,n),t(n,0,e.document)}:(u(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,n,t,r){"use strict";e=e.fn.dataTable;function u(e,n,t){var r=/[+-]?((\d+(\.\d*)?)|\.\d+)([eE][+-]?[0-9]+)?/;return(e=null!==(e=e.replace(",",".").match(r))?parseFloat(e[0]):t)<(n=null!==(n=n.replace(",",".").match(r))?parseFloat(n[0]):t)?-1:n<e?1:0}return e.ext.type.order["any-number-asc"]=function(e,n){return u(e,n,Number.POSITIVE_INFINITY)},e.ext.type.order["any-number-desc"]=function(e,n){return-1*u(e,n,Number.NEGATIVE_INFINITY)},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";function _anyNumberSort(a,e,r){var t=/[+-]?((\d+(\.\d*)?)|\.\d+)([eE][+-]?[0-9]+)?/;return(a=null!==(a=a.replace(",",".").match(t))?parseFloat(a[0]):r)<(e=null!==(e=e.replace(",",".").match(t))?parseFloat(e[0]):r)?-1:e<a?1:0}DataTable.ext.order["any-number-asc"]=function(a,e){return _anyNumberSort(a,e,Number.POSITIVE_INFINITY)},DataTable.ext.order["any-number-desc"]=function(a,e){return-1*_anyNumberSort(a,e,Number.NEGATIVE_INFINITY)};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;function _anyNumberSort(e,r,a){var t=/[+-]?((\d+(\.\d*)?)|\.\d+)([eE][+-]?[0-9]+)?/;return(e=null!==(e=e.replace(",",".").match(t))?parseFloat(e[0]):a)<(r=null!==(r=r.replace(",",".").match(t))?parseFloat(r[0]):a)?-1:r<e?1:0}DataTable.ext.type.order["any-number-asc"]=function(e,r){return _anyNumberSort(e,r,Number.POSITIVE_INFINITY)},DataTable.ext.type.order["any-number-desc"]=function(e,r){return-1*_anyNumberSort(e,r,Number.NEGATIVE_INFINITY)};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorts columns by any number, ignoring text. This plugin is useful if you have
* mixed content in a column, but still want to sort by numbers. Any number means
@ -39,10 +42,10 @@ function _anyNumberSort(a, b, high) {
b = b !== null ? parseFloat(b[0]) : high;
return a < b ? -1 : a > b ? 1 : 0;
}
DataTable.ext.order['any-number-asc'] = function (a, b) {
DataTable.ext.type.order['any-number-asc'] = function (a, b) {
return _anyNumberSort(a, b, Number.POSITIVE_INFINITY);
};
DataTable.ext.order['any-number-desc'] = function (a, b) {
DataTable.ext.type.order['any-number-desc'] = function (a, b) {
return _anyNumberSort(a, b, Number.NEGATIVE_INFINITY) * -1;
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, - datatables.net/license */
!function(n){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||r(e),o(e,t),n(t,0,e.document)}:(o(window,r),module.exports=n(r,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";var e=e.fn.dataTable,o=e.util.escapeRegex("$£€c0123456789.-,()'"),u=new RegExp("[^"+o+"]");return e.ext.type.detect.unshift(function(e){return"string"!=typeof e||u.test(e)?null:"currency"}),e.ext.type.order["currency-pre"]=function(e){return""===e?0:(e=e.match(/[\()]/g)?!0!==e.match(/[\-]/g)?"-"+e.replace(/[\$£€c\(\),]/g,""):e.replace(/[^\d\-\.]/g,""):e.replace(/[\$£€\,]/g,""),parseFloat(e))},e});
!function(n){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||r(e),o(e,t),n(t,0,e.document)}:(o(window,r),module.exports=n(r,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";var e=e.fn.dataTable,o=e.util.escapeRegex("$£€c0123456789.-,()'"),u=new RegExp("[^"+o+"]");return e.ext.type.detect.unshift(function(e){return"string"!=typeof e||u.test(e)?null:"currency"}),e.ext.type.order["currency-pre"]=function(e){return""===e?0:(e=e.match(/[\()]/g)?!0!==e.match(/[\-]/g)?"-"+e.replace(/[\$£€c\(\),]/g,""):e.replace(/[^\d\-\.]/g,""):e.replace(/[\$£€\,]/g,""),parseFloat(e))},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";var validChars="$£€c0123456789.-,()'",str=DataTable.util.escapeRegex(validChars),re=new RegExp("[^"+str+"]");DataTable.ext.type.detect.unshift(function(e){return"string"!=typeof e||re.test(e)?null:"currency"}),DataTable.ext.type.order["currency-pre"]=function(e){return""===e?0:(e=e.match(/[\()]/g)?!0!==e.match(/[\-]/g)?"-"+e.replace(/[\$£€c\(\),]/g,""):e.replace(/[^\d\-\.]/g,""):e.replace(/[\$£€\,]/g,""),parseFloat(e))};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;var validChars="$£€c0123456789.-,()'",str=DataTable.util.escapeRegex(validChars),re=new RegExp("[^"+str+"]");DataTable.ext.type.detect.unshift(function(e){return"string"!=typeof e||re.test(e)?null:"currency"}),DataTable.ext.type.order["currency-pre"]=function(e){return""===e?0:(e=e.match(/[\()]/g)?!0!==e.match(/[\-]/g)?"-"+e.replace(/[\$£€c\(\),]/g,""):e.replace(/[^\d\-\.]/g,""):e.replace(/[\$£€\,]/g,""),parseFloat(e))};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* This plug-in will add automatic negative currency detection for currency columns to
* DataTables. Note that only $, c, £ and symbols are detected with this code,

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -64,7 +64,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['chapter-pre'] = function (a) {
DataTable.ext.type.order['chapter-pre'] = function (a) {
var constMaxSections = 5;
var constMaxSectionDigits = 4;
var filler;

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";e=e.fn.dataTable;return e.ext.order["chapter-pre"]=function(e){for(var n,t="",o=e.split("."),r=0;r<5;r++)t=(t+=0==(n=r<o.length?4-o[r].length:4)?"":Array(1+n).join("0"))+(r<o.length?o[r]:"");return t},e});
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";e=e.fn.dataTable;return e.ext.type.order["chapter-pre"]=function(e){for(var n,t="",o=e.split("."),r=0;r<5;r++)t=(t+=0==(n=r<o.length?4-o[r].length:4)?"":Array(1+n).join("0"))+(r<o.length?o[r]:"");return t},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["chapter-pre"]=function(t){for(var a,e="",r=t.split("."),l=0;l<5;l++)e=(e+=0==(a=l<r.length?4-r[l].length:4)?"":Array(1+a).join("0"))+(l<r.length?r[l]:"");return e};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["chapter-pre"]=function(e){for(var t,r="",a=e.split("."),l=0;l<5;l++)r=(r+=0==(t=l<a.length?4-a[l].length:4)?"":Array(1+t).join("0"))+(l<a.length?a[l]:"");return r};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorts a column containing chapter numbers. This can be most useful when
* using DataTables for a book or book reference style application. By
@ -21,7 +24,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['chapter-pre'] = function (a) {
DataTable.ext.type.order['chapter-pre'] = function (a) {
var constMaxSections = 5;
var constMaxSectionDigits = 4;
var filler;

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -66,10 +66,10 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['chinese-string-asc'] = function (s1, s2) {
DataTable.ext.type.order['chinese-string-asc'] = function (s1, s2) {
return s1.localeCompare(s2);
};
DataTable.ext.order['chinese-string-desc'] = function (s1, s2) {
DataTable.ext.type.order['chinese-string-desc'] = function (s1, s2) {
return s2.localeCompare(s1);
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Patrik Lindström - datatables.net/license */
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";e=e.fn.dataTable;return e.ext.order["chinese-string-asc"]=function(e,n){return e.localeCompare(n)},e.ext.order["chinese-string-desc"]=function(e,n){return n.localeCompare(e)},e});
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";e=e.fn.dataTable;return e.ext.type.order["chinese-string-asc"]=function(e,n){return e.localeCompare(n)},e.ext.type.order["chinese-string-desc"]=function(e,n){return n.localeCompare(e)},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Patrik Lindström - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["chinese-string-asc"]=function(e,a){return e.localeCompare(a)},DataTable.ext.order["chinese-string-desc"]=function(e,a){return a.localeCompare(e)};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["chinese-string-asc"]=function(e,t){return e.localeCompare(t)},DataTable.ext.type.order["chinese-string-desc"]=function(e,t){return t.localeCompare(e)};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Patrik Lindström - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorting in Javascript for Chinese Character. The Chinese Characters are
* sorted on the radical and number of strokes. This plug-in performs sorting
@ -23,10 +26,10 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['chinese-string-asc'] = function (s1, s2) {
DataTable.ext.type.order['chinese-string-asc'] = function (s1, s2) {
return s1.localeCompare(s2);
};
DataTable.ext.order['chinese-string-desc'] = function (s1, s2) {
DataTable.ext.type.order['chinese-string-desc'] = function (s1, s2) {
return s2.localeCompare(s1);
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -60,7 +60,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['czech-pre'] = function (a) {
DataTable.ext.type.order['czech-pre'] = function (a) {
var special_letters = {
A: 'Aa',
a: 'aa',

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(n){var t,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(t=require("jquery"),o=function(e,a){a.fn.dataTable||require("datatables.net")(e,a)},"undefined"!=typeof window?module.exports=function(e,a){return e=e||window,a=a||t(e),o(e,a),n(a,0,e.document)}:(o(window,t),module.exports=n(t,window,window.document))):n(jQuery,window,document)}(function(e,a,n,t){"use strict";e=e.fn.dataTable;return e.ext.order["czech-pre"]=function(e){var a,n={A:"Aa",a:"aa","Á":"Ab","á":"ab",C:"Ca",c:"ca","Č":"Cb","č":"cb",D:"Da",d:"da","Ď":"db","ď":"db",E:"Ea",e:"ea","É":"eb","é":"eb","Ě":"Ec","ě":"ec",I:"Ia",i:"ia","Í":"Ib","í":"ib",N:"Na",n:"na","Ň":"Nb","ň":"nb",O:"Oa",o:"oa","Ó":"Ob","ó":"ob",R:"Ra",r:"ra","Ř":"Rb","ř":"rb",S:"Sa",s:"sa","Š":"Sb","š":"sb",T:"Ta",t:"ta","Ť":"Tb","ť":"tb",U:"Ua",u:"ua","Ú":"Ub","ú":"ub","Ů":"Uc","ů":"uc",Y:"Ya",y:"ya","Ý":"Yb","ý":"yb",Z:"Za",z:"za","Ž":"Zb","ž":"zb"};for(a in n)e=e.split(a).join(n[a]).toLowerCase();return e},e});
!function(n){var t,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(t=require("jquery"),o=function(e,a){a.fn.dataTable||require("datatables.net")(e,a)},"undefined"==typeof window?module.exports=function(e,a){return e=e||window,a=a||t(e),o(e,a),n(a,0,e.document)}:(o(window,t),module.exports=n(t,window,window.document))):n(jQuery,window,document)}(function(e,a,n,t){"use strict";e=e.fn.dataTable;return e.ext.type.order["czech-pre"]=function(e){var a,n={A:"Aa",a:"aa","Á":"Ab","á":"ab",C:"Ca",c:"ca","Č":"Cb","č":"cb",D:"Da",d:"da","Ď":"db","ď":"db",E:"Ea",e:"ea","É":"eb","é":"eb","Ě":"Ec","ě":"ec",I:"Ia",i:"ia","Í":"Ib","í":"ib",N:"Na",n:"na","Ň":"Nb","ň":"nb",O:"Oa",o:"oa","Ó":"Ob","ó":"ob",R:"Ra",r:"ra","Ř":"Rb","ř":"rb",S:"Sa",s:"sa","Š":"Sb","š":"sb",T:"Ta",t:"ta","Ť":"Tb","ť":"tb",U:"Ua",u:"ua","Ú":"Ub","ú":"ub","Ů":"Uc","ů":"uc",Y:"Ya",y:"ya","Ý":"Yb","ý":"yb",Z:"Za",z:"za","Ž":"Zb","ž":"zb"};for(a in n)e=e.split(a).join(n[a]).toLowerCase();return e},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["czech-pre"]=function(a){var b,e={A:"Aa",a:"aa","Á":"Ab","á":"ab",C:"Ca",c:"ca","Č":"Cb","č":"cb",D:"Da",d:"da","Ď":"db","ď":"db",E:"Ea",e:"ea","É":"eb","é":"eb","Ě":"Ec","ě":"ec",I:"Ia",i:"ia","Í":"Ib","í":"ib",N:"Na",n:"na","Ň":"Nb","ň":"nb",O:"Oa",o:"oa","Ó":"Ob","ó":"ob",R:"Ra",r:"ra","Ř":"Rb","ř":"rb",S:"Sa",s:"sa","Š":"Sb","š":"sb",T:"Ta",t:"ta","Ť":"Tb","ť":"tb",U:"Ua",u:"ua","Ú":"Ub","ú":"ub","Ů":"Uc","ů":"uc",Y:"Ya",y:"ya","Ý":"Yb","ý":"yb",Z:"Za",z:"za","Ž":"Zb","ž":"zb"};for(b in e)a=a.split(b).join(e[b]).toLowerCase();return a};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["czech-pre"]=function(a){var b,e={A:"Aa",a:"aa","Á":"Ab","á":"ab",C:"Ca",c:"ca","Č":"Cb","č":"cb",D:"Da",d:"da","Ď":"db","ď":"db",E:"Ea",e:"ea","É":"eb","é":"eb","Ě":"Ec","ě":"ec",I:"Ia",i:"ia","Í":"Ib","í":"ib",N:"Na",n:"na","Ň":"Nb","ň":"nb",O:"Oa",o:"oa","Ó":"Ob","ó":"ob",R:"Ra",r:"ra","Ř":"Rb","ř":"rb",S:"Sa",s:"sa","Š":"Sb","š":"sb",T:"Ta",t:"ta","Ť":"Tb","ť":"tb",U:"Ua",u:"ua","Ú":"Ub","ú":"ub","Ů":"Uc","ů":"uc",Y:"Ya",y:"ya","Ý":"Yb","ý":"yb",Z:"Za",z:"za","Ž":"Zb","ž":"zb"};for(b in e)a=a.split(b).join(e[b]).toLowerCase();return a};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* This plug-in provides locale aware sorting for Czech.
*
@ -17,7 +20,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['czech-pre'] = function (a) {
DataTable.ext.type.order['czech-pre'] = function (a) {
var special_letters = {
A: 'Aa',
a: 'aa',

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -316,7 +316,7 @@ DataTable.ext.type.search.allowDiacritics = function (array) {
}
}
};
DataTable.ext.order['diacritics-neutralise-pre'] = function (a) {
DataTable.ext.type.order['diacritics-neutralise-pre'] = function (a) {
return removeDiacritics(a.toString().toLowerCase());
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* This plug-in will provide diacritics neutral sorting of strings.
*
@ -273,7 +276,7 @@ DataTable.ext.type.search.allowDiacritics = function (array) {
}
}
};
DataTable.ext.order['diacritics-neutralise-pre'] = function (a) {
DataTable.ext.type.order['diacritics-neutralise-pre'] = function (a) {
return removeDiacritics(a.toString().toLowerCase());
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -79,7 +79,7 @@ DataTable['enum'] = function (arr) {
return lookup[d] !== undefined ? name : null;
});
// Add sorting method
types.order[name + '-pre'] = function (d) {
types.type.order[name + '-pre'] = function (d) {
return lookup[d];
};
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var o,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),u(e,n),t(n,e,e.document)}:(u(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,r,n,d){"use strict";var e=e.fn.dataTable,i=0,f=e.ext.type;return e.enum=function(e){for(var n="enum-"+i++,t=r.Map?new Map:{},o=0,u=e.length;o<u;o++)t[e[o]]=o;f.detect.unshift(function(e){return t[e]!==d?n:null}),f.order[n+"-pre"]=function(e){return t[e]}},e});
!function(t){var o,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),u(e,n),t(n,e,e.document)}:(u(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,r,n,d){"use strict";var e=e.fn.dataTable,i=0,f=e.ext.type;return e.enum=function(e){for(var n="enum-"+i++,t=r.Map?new Map:{},o=0,u=e.length;o<u;o++)t[e[o]]=o;f.detect.unshift(function(e){return t[e]!==d?n:null}),f.type.order[n+"-pre"]=function(e){return t[e]}},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";var unique=0,types=DataTable.ext.type;DataTable.enum=function(e){for(var t="enum-"+unique++,a=window.Map?new Map:{},n=0,r=e.length;n<r;n++)a[e[n]]=n;types.detect.unshift(function(e){return void 0!==a[e]?t:null}),types.order[t+"-pre"]=function(e){return a[e]}};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;var unique=0,types=DataTable.ext.type;DataTable.enum=function(e){for(var t="enum-"+unique++,a=window.Map?new Map:{},n=0,r=e.length;n<r;n++)a[e[n]]=n;types.detect.unshift(function(e){return void 0!==a[e]?t:null}),types.type.order[t+"-pre"]=function(e){return a[e]}};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sort data by a defined enumerated (enum) list. The options for the values in
* the enum are defined by passing the values in an array to the method
@ -36,7 +39,7 @@ DataTable['enum'] = function (arr) {
return lookup[d] !== undefined ? name : null;
});
// Add sorting method
types.order[name + '-pre'] = function (d) {
types.type.order[name + '-pre'] = function (d) {
return lookup[d];
};
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -99,7 +99,7 @@ function farsiToLatin(farsi) {
break;
}
}
DataTable.ext.order['farsi-numbers-pre'] = function (a) {
DataTable.ext.type.order['farsi-numbers-pre'] = function (a) {
var latin = '', i = 0;
for (i; i < a.length; i++) {
latin += farsiToLatin(a.charAt(i));

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Behrooz Janfada - datatables.net/license */
!function(r){var t,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?(t=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||t(e),u(e,n),r(n,0,e.document)}:(u(window,t),module.exports=r(t,window,window.document))):r(jQuery,window,document)}(function(e,n,r,t){"use strict";e=e.fn.dataTable;return e.ext.order["farsi-numbers-pre"]=function(e){for(var n="",r=0;r<e.length;r++)n+=function(e){switch(e){case"۰":return 0;case"۱":return 1;case"۲":return 2;case"۳":return 3;case"۴":return 4;case"۵":return 5;case"۶":return 6;case"۷":return 7;case"۸":return 8;case"۹":return 9;default:return 0}}(e.charAt(r));return parseInt(n)},e});
!function(r){var t,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?(t=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||t(e),u(e,n),r(n,0,e.document)}:(u(window,t),module.exports=r(t,window,window.document))):r(jQuery,window,document)}(function(e,n,r,t){"use strict";e=e.fn.dataTable;return e.ext.type.order["farsi-numbers-pre"]=function(e){for(var n="",r=0;r<e.length;r++)n+=function(e){switch(e){case"۰":return 0;case"۱":return 1;case"۲":return 2;case"۳":return 3;case"۴":return 4;case"۵":return 5;case"۶":return 6;case"۷":return 7;case"۸":return 8;case"۹":return 9;default:return 0}}(e.charAt(r));return parseInt(n)},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Behrooz Janfada - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";function farsiToLatin(r){switch(r){case"۰":return 0;case"۱":return 1;case"۲":return 2;case"۳":return 3;case"۴":return 4;case"۵":return 5;case"۶":return 6;case"۷":return 7;case"۸":return 8;case"۹":return 9;default:return 0}}DataTable.ext.order["farsi-numbers-pre"]=function(r){for(var e="",a=0;a<r.length;a++)e+=farsiToLatin(r.charAt(a));return parseInt(e)};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;function farsiToLatin(r){switch(r){case"۰":return 0;case"۱":return 1;case"۲":return 2;case"۳":return 3;case"۴":return 4;case"۵":return 5;case"۶":return 6;case"۷":return 7;case"۸":return 8;case"۹":return 9;default:return 0}}DataTable.ext.type.order["farsi-numbers-pre"]=function(r){for(var e="",t=0;t<r.length;t++)e+=farsiToLatin(r.charAt(t));return parseInt(e)};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Behrooz Janfada - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorts a column containing Farsi numbers. Farsi numbers can easily be
* mapped 1:1 to latin numbers - ۱ = 1, ۲ = 2, ۱۲ = 12 and so on.
@ -56,7 +59,7 @@ function farsiToLatin(farsi) {
break;
}
}
DataTable.ext.order['farsi-numbers-pre'] = function (a) {
DataTable.ext.type.order['farsi-numbers-pre'] = function (a) {
var latin = '', i = 0;
for (i; i < a.length; i++) {
latin += farsiToLatin(a.charAt(i));

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(n){var o,i;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(o=require("jquery"),i=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||o(e),i(e,t),n(t,0,e.document)}:(i(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(e,t,n,o){"use strict";e=e.fn.dataTable;return e.ext.type.order["file-size-pre"]=function(e){var t;return null===e||""===e?0:(e=e.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i))?(t={b:1,bytes:1,kb:1e3,kib:1024,mb:1e6,mib:1048576,gb:1e9,gib:1073741824,tb:1e12,tib:1099511627776,pb:1e15,pib:0x4000000000000}[e[2].toLowerCase()],parseFloat(e[1])*t):-1},e});
!function(n){var o,i;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(o=require("jquery"),i=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||o(e),i(e,t),n(t,0,e.document)}:(i(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(e,t,n,o){"use strict";e=e.fn.dataTable;return e.ext.type.order["file-size-pre"]=function(e){var t;return null===e||""===e?0:(e=e.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i))?(t={b:1,bytes:1,kb:1e3,kib:1024,mb:1e6,mib:1048576,gb:1e9,gib:1073741824,tb:1e12,tib:1099511627776,pb:1e15,pib:0x4000000000000}[e[2].toLowerCase()],parseFloat(e[1])*t):-1},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.type.order["file-size-pre"]=function(e){var t;return null===e||""===e?0:(e=e.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i))?(t={b:1,bytes:1,kb:1e3,kib:1024,mb:1e6,mib:1048576,gb:1e9,gib:1073741824,tb:1e12,tib:1099511627776,pb:1e15,pib:0x4000000000000}[e[2].toLowerCase()],parseFloat(e[1])*t):-1};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["file-size-pre"]=function(e){var t;return null===e||""===e?0:(e=e.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i))?(t={b:1,bytes:1,kb:1e3,kib:1024,mb:1e6,mib:1048576,gb:1e9,gib:1073741824,tb:1e12,tib:1099511627776,pb:1e15,pib:0x4000000000000}[e[2].toLowerCase()],parseFloat(e[1])*t):-1};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* When dealing with computer file sizes, it is common to append a post fix
* such as B, KB, MB or GB to a string in order to easily denote the order of

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -71,7 +71,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['formatted-num-pre'] = function (a) {
DataTable.ext.type.order['formatted-num-pre'] = function (a) {
a = a === '-' || a === '' ? 0 : a.replace(/[^\d\-\.]/g, '');
return parseFloat(a);
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.order["formatted-num-pre"]=function(e){return e="-"===e||""===e?0:e.replace(/[^\d\-\.]/g,""),parseFloat(e)},e});
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.type.order["formatted-num-pre"]=function(e){return e="-"===e||""===e?0:e.replace(/[^\d\-\.]/g,""),parseFloat(e)},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["formatted-num-pre"]=function(a){return a="-"===a||""===a?0:a.replace(/[^\d\-\.]/g,""),parseFloat(a)};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["formatted-num-pre"]=function(e){return e="-"===e||""===e?0:e.replace(/[^\d\-\.]/g,""),parseFloat(e)};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* This plug-in will provide numeric sorting for numeric columns which have
* extra formatting, such as thousands separators, currency symbols or any other
@ -28,7 +31,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['formatted-num-pre'] = function (a) {
DataTable.ext.type.order['formatted-num-pre'] = function (a) {
a = a === '-' || a === '' ? 0 : a.replace(/[^\d\-\.]/g, '');
return parseFloat(a);
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -93,7 +93,7 @@ DataTable.intlOrder = function (locales, options) {
}
};
// Old style originally introduced in the blog post
DataTable.ext.order.intl = DataTable.intlOrder;
DataTable.ext.type.order.intl = DataTable.intlOrder;
return DataTable;

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),o(e,n),t(n,e,e.document)}:(o(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,r,n,t){"use strict";var o=e.fn.dataTable;return o.intlOrder=function(e,n){var t;r.Intl&&(t=new Intl.Collator(e,n),delete(e=o.ext.type).order["string-pre"],e.order["string-asc"]=t.compare,e.order["string-desc"]=function(e,n){return-1*t.compare(e,n)})},o.ext.order.intl=o.intlOrder,o});
!function(t){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),o(e,n),t(n,e,e.document)}:(o(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,r,n,t){"use strict";var o=e.fn.dataTable;return o.intlOrder=function(e,n){var t;r.Intl&&(t=new Intl.Collator(e,n),delete(e=o.ext.type).order["string-pre"],e.order["string-asc"]=t.compare,e.order["string-desc"]=function(e,n){return-1*t.compare(e,n)})},o.ext.type.order.intl=o.intlOrder,o});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.intlOrder=function(e,t){var r;window.Intl&&(r=new Intl.Collator(e,t),delete(e=DataTable.ext.type).order["string-pre"],e.order["string-asc"]=r.compare,e.order["string-desc"]=function(e,t){return-1*r.compare(e,t)})},DataTable.ext.order.intl=DataTable.intlOrder;export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.intlOrder=function(e,t){var r;window.Intl&&(r=new Intl.Collator(e,t),delete(e=DataTable.ext.type).order["string-pre"],e.order["string-asc"]=r.compare,e.order["string-desc"]=function(e,t){return-1*r.compare(e,t)})},DataTable.ext.type.order.intl=DataTable.intlOrder;export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* This sorting type will replace DataTables' default string sort with one that
* will use a locale aware collator. This is supported by IE11, Edge, Chrome,
@ -50,7 +53,7 @@ DataTable.intlOrder = function (locales, options) {
}
};
// Old style originally introduced in the blog post
DataTable.ext.order.intl = DataTable.intlOrder;
DataTable.ext.type.order.intl = DataTable.intlOrder;
export default DataTable;

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -65,7 +65,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['ip-address-pre'] = function (a) {
DataTable.ext.type.order['ip-address-pre'] = function (a) {
var i, item;
var m, n, t, p;
var x, xa;

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Dominique Fournier, Brad Wasson, Peter Vilhan, Kevin Gilkey-Graham - datatables.net/license */
!function(n){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||r(e),o(e,t),n(t,0,e.document)}:(o(window,r),module.exports=n(r,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.ext.order["ip-address-pre"]=function(e){var t,n,r,o,i,u;if(!e)return"000000000000";if(2==(r=(e=e.replace(/<[\s\S]*?>/g,"")).split(":")).length?(n=r[0].split("."),o=r[1]):n=e.split("."),f=e.split(":"),u=i="",4==n.length){for(l=0;l<n.length;l++)t=n[l],i+="000".substr(t.length)+t;o&&(i+=":"+"00000".substr(o.length)+o)}else if(0<f.length){for(var d=0,l=0;l<f.length;l++)0<l&&(u+=":"),0===(t=f[l]).length?d+=0:(u+="0000".substr(t.length)+t,d+=4);var f=u.split(":"),s=0;for(l=0;l<f.length;l++)if(0===(t=f[l]).length&&0===s)for(var a=0;a<32-d;a++)i+="0",s=1;else i+=t}return i},e});
!function(n){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||r(e),o(e,t),n(t,0,e.document)}:(o(window,r),module.exports=n(r,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.ext.type.order["ip-address-pre"]=function(e){var t,n,r,o,i,u;if(!e)return"000000000000";if(2==(r=(e=e.replace(/<[\s\S]*?>/g,"")).split(":")).length?(n=r[0].split("."),o=r[1]):n=e.split("."),f=e.split(":"),u=i="",4==n.length){for(l=0;l<n.length;l++)t=n[l],i+="000".substr(t.length)+t;o&&(i+=":"+"00000".substr(o.length)+o)}else if(0<f.length){for(var d=0,l=0;l<f.length;l++)0<l&&(u+=":"),0===(t=f[l]).length?d+=0:(u+="0000".substr(t.length)+t,d+=4);var f=u.split(":"),s=0;for(l=0;l<f.length;l++)if(0===(t=f[l]).length&&0===s)for(var a=0;a<32-d;a++)i+="0",s=1;else i+=t}return i},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Dominique Fournier, Brad Wasson, Peter Vilhan, Kevin Gilkey-Graham - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["ip-address-pre"]=function(t){var e,r,l,a,s,n;if(!t)return"000000000000";if(2==(l=(t=t.replace(/<[\s\S]*?>/g,"")).split(":")).length?(r=l[0].split("."),a=l[1]):r=t.split("."),g=t.split(":"),n=s="",4==r.length){for(f=0;f<r.length;f++)e=r[f],s+="000".substr(e.length)+e;a&&(s+=":"+"00000".substr(a.length)+a)}else if(0<g.length){for(var i=0,f=0;f<g.length;f++)0<f&&(n+=":"),0===(e=g[f]).length?i+=0:(n+="0000".substr(e.length)+e,i+=4);var g=n.split(":"),h=0;for(f=0;f<g.length;f++)if(0===(e=g[f]).length&&0===h)for(var o=0;o<32-i;o++)s+="0",h=1;else s+=e}return s};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["ip-address-pre"]=function(e){var t,r,l,a,s,n;if(!e)return"000000000000";if(2==(l=(e=e.replace(/<[\s\S]*?>/g,"")).split(":")).length?(r=l[0].split("."),a=l[1]):r=e.split("."),g=e.split(":"),n=s="",4==r.length){for(f=0;f<r.length;f++)t=r[f],s+="000".substr(t.length)+t;a&&(s+=":"+"00000".substr(a.length)+a)}else if(0<g.length){for(var i=0,f=0;f<g.length;f++)0<f&&(n+=":"),0===(t=g[f]).length?i+=0:(n+="0000".substr(t.length)+t,i+=4);var g=n.split(":"),p=0;for(f=0;f<g.length;f++)if(0===(t=g[f]).length&&0===p)for(var h=0;h<32-i;h++)s+="0",p=1;else s+=t}return s};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Dominique Fournier, Brad Wasson, Peter Vilhan, Kevin Gilkey-Graham - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorts a column containing IP addresses (IPv4 and IPv6) or IPv4 address and port delimited by ':' in typical dot
* notation / colon. This can be most useful when using DataTables for a
@ -22,7 +25,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['ip-address-pre'] = function (a) {
DataTable.ext.type.order['ip-address-pre'] = function (a) {
var i, item;
var m, n, t, p;
var x, xa;

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -65,7 +65,7 @@ var DataTable = $.fn.dataTable;
* ]
* });
*/
DataTable.ext.order['natural-time-delta-pre'] = function (data) {
DataTable.ext.type.order['natural-time-delta-pre'] = function (data) {
var result = 0;
var pattern = /(\d+\s*decades?\s*)?(\d+\s*years?\s*)?(\d+\s*months?\s*)?(\d+\s*weeks?\s*)?(\d+\s*days?\s*)?(\d+\s*hours?\s*)?(\d+\s*minutes?\s*)?(\d+\s*seconds?\s*)?(\d+\s*milliseconds?\s*)?(\d+\s*microseconds?\s*)?/i;
var format_time_element = function (el, splitter, mul) {

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Shodhan Save - datatables.net/license */
!function(n){var s,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(s=require("jquery"),d=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||s(e),d(e,t),n(t,0,e.document)}:(d(window,s),module.exports=n(s,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.ext.order["natural-time-delta-pre"]=function(e){var s=0,d=e.match(/(\d+\s*decades?\s*)?(\d+\s*years?\s*)?(\d+\s*months?\s*)?(\d+\s*weeks?\s*)?(\d+\s*days?\s*)?(\d+\s*hours?\s*)?(\d+\s*minutes?\s*)?(\d+\s*seconds?\s*)?(\d+\s*milliseconds?\s*)?(\d+\s*microseconds?\s*)?/i);d.reverse();return[{splitter:"us",name:"microsecond",mul:1e-6},{splitter:"ms",name:"millisecond",mul:.001},{splitter:"s",name:"second",mul:1},{splitter:"m",name:"minute",mul:60},{splitter:"h",name:"hour",mul:3600},{splitter:"d",name:"day",mul:86400},{splitter:"w",name:"week",mul:604800},{splitter:"w",name:"month",mul:18144e3},{splitter:"w",name:"year",mul:217728e3},{splitter:"w",name:"decade",mul:217728e4}].forEach(function(e,t){t=d[t],n=e.splitter,e=e.mul;var n,t=t===r?0:parseFloat(t.split(n)[0].trim())*e;s+=t}),s||-1},e});
!function(n){var s,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(s=require("jquery"),d=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||s(e),d(e,t),n(t,0,e.document)}:(d(window,s),module.exports=n(s,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.ext.type.order["natural-time-delta-pre"]=function(e){var s=0,d=e.match(/(\d+\s*decades?\s*)?(\d+\s*years?\s*)?(\d+\s*months?\s*)?(\d+\s*weeks?\s*)?(\d+\s*days?\s*)?(\d+\s*hours?\s*)?(\d+\s*minutes?\s*)?(\d+\s*seconds?\s*)?(\d+\s*milliseconds?\s*)?(\d+\s*microseconds?\s*)?/i);d.reverse();return[{splitter:"us",name:"microsecond",mul:1e-6},{splitter:"ms",name:"millisecond",mul:.001},{splitter:"s",name:"second",mul:1},{splitter:"m",name:"minute",mul:60},{splitter:"h",name:"hour",mul:3600},{splitter:"d",name:"day",mul:86400},{splitter:"w",name:"week",mul:604800},{splitter:"w",name:"month",mul:18144e3},{splitter:"w",name:"year",mul:217728e3},{splitter:"w",name:"decade",mul:217728e4}].forEach(function(e,t){t=d[t],n=e.splitter,e=e.mul;var n,t=t===r?0:parseFloat(t.split(n)[0].trim())*e;s+=t}),s||-1},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Shodhan Save - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["natural-time-delta-pre"]=function(e){var a=0,m=e.match(/(\d+\s*decades?\s*)?(\d+\s*years?\s*)?(\d+\s*months?\s*)?(\d+\s*weeks?\s*)?(\d+\s*days?\s*)?(\d+\s*hours?\s*)?(\d+\s*minutes?\s*)?(\d+\s*seconds?\s*)?(\d+\s*milliseconds?\s*)?(\d+\s*microseconds?\s*)?/i);m.reverse();return[{splitter:"us",name:"microsecond",mul:1e-6},{splitter:"ms",name:"millisecond",mul:.001},{splitter:"s",name:"second",mul:1},{splitter:"m",name:"minute",mul:60},{splitter:"h",name:"hour",mul:3600},{splitter:"d",name:"day",mul:86400},{splitter:"w",name:"week",mul:604800},{splitter:"w",name:"month",mul:18144e3},{splitter:"w",name:"year",mul:217728e3},{splitter:"w",name:"decade",mul:217728e4}].forEach(function(e,s){s=m[s],t=e.splitter,e=e.mul;var t,s=void 0===s?0:parseFloat(s.split(t)[0].trim())*e;a+=s}),a||-1};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["natural-time-delta-pre"]=function(e){var a=0,m=e.match(/(\d+\s*decades?\s*)?(\d+\s*years?\s*)?(\d+\s*months?\s*)?(\d+\s*weeks?\s*)?(\d+\s*days?\s*)?(\d+\s*hours?\s*)?(\d+\s*minutes?\s*)?(\d+\s*seconds?\s*)?(\d+\s*milliseconds?\s*)?(\d+\s*microseconds?\s*)?/i);m.reverse();return[{splitter:"us",name:"microsecond",mul:1e-6},{splitter:"ms",name:"millisecond",mul:.001},{splitter:"s",name:"second",mul:1},{splitter:"m",name:"minute",mul:60},{splitter:"h",name:"hour",mul:3600},{splitter:"d",name:"day",mul:86400},{splitter:"w",name:"week",mul:604800},{splitter:"w",name:"month",mul:18144e3},{splitter:"w",name:"year",mul:217728e3},{splitter:"w",name:"decade",mul:217728e4}].forEach(function(e,s){s=m[s],t=e.splitter,e=e.mul;var t,s=void 0===s?0:parseFloat(s.split(t)[0].trim())*e;a+=s}),a||-1};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Shodhan Save - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* This plug-in allows sorting of human readable time delta, viz.,
* "1 week", "2 weeks 3 days", "4 weeks 5 days 6 hours", etc.
@ -22,7 +25,7 @@ import DataTable from 'datatables.net';
* ]
* });
*/
DataTable.ext.order['natural-time-delta-pre'] = function (data) {
DataTable.ext.type.order['natural-time-delta-pre'] = function (data) {
var result = 0;
var pattern = /(\d+\s*decades?\s*)?(\d+\s*years?\s*)?(\d+\s*months?\s*)?(\d+\s*weeks?\s*)?(\d+\s*days?\s*)?(\d+\s*hours?\s*)?(\d+\s*minutes?\s*)?(\d+\s*seconds?\s*)?(\d+\s*milliseconds?\s*)?(\d+\s*microseconds?\s*)?/i;
var format_time_element = function (el, splitter, mul) {

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -138,24 +138,24 @@ function naturalSort(a, b, html) {
}
return 0;
}
DataTable.ext.order['natural-asc'] = function (a, b) {
DataTable.ext.type.order['natural-asc'] = function (a, b) {
return naturalSort(a, b, true);
};
DataTable.ext.order['natural-desc'] = function (a, b) {
DataTable.ext.type.order['natural-desc'] = function (a, b) {
return naturalSort(a, b, true) * -1;
};
DataTable.ext.order['natural-nohtml-asc'] = function (a, b) {
DataTable.ext.type.order['natural-nohtml-asc'] = function (a, b) {
return naturalSort(a, b, false);
};
DataTable.ext.order['natural-nohtml-asc'] = function (a, b) {
DataTable.ext.type.order['natural-nohtml-asc'] = function (a, b) {
return naturalSort(a, b, false) * -1;
};
DataTable.ext.order['natural-ci-asc'] = function (a, b) {
DataTable.ext.type.order['natural-ci-asc'] = function (a, b) {
a = a.toString().toLowerCase();
b = b.toString().toLowerCase();
return naturalSort(a, b, true);
};
DataTable.ext.order['natural-ci-asc'] = function (a, b) {
DataTable.ext.type.order['natural-ci-asc'] = function (a, b) {
a = a.toString().toLowerCase();
b = b.toString().toLowerCase();
return naturalSort(a, b, true) * -1;

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Jim Palmer, Michael Buehler, Mike Grier, Clint Priest, Kyle Adams, guillermo - datatables.net/license */
!function(r){var n,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?(n=require("jquery"),a=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"!=typeof window?module.exports=function(e,t){return e=e||window,t=t||n(e),a(e,t),r(t,0,e.document)}:(a(window,n),module.exports=r(n,window,window.document))):r(jQuery,window,document)}(function(e,t,r,n){"use strict";e=e.fn.dataTable;function a(e,t,r){var n=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?%?$|^0x[0-9a-f]+$|[0-9]+)/gi,a=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,i=/^0x[0-9a-f]+$/i,u=/^0/,c=/(<([^>]+)>)/gi,e=e.toString().replace(a,"")||"",t=t.toString().replace(a,"")||"",d=(r||(e=e.replace(c,""),t=t.replace(c,"")),e.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")),f=t.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),a=parseInt(e.match(i),10)||1!==d.length&&e.match(o)&&Date.parse(e),r=parseInt(t.match(i),10)||a&&t.match(o)&&Date.parse(t)||null;if(r){if(a<r)return-1;if(r<a)return 1}for(var l=0,s=Math.max(d.length,f.length);l<s;l++){var p=!(d[l]||"").match(u)&&parseFloat(d[l])||d[l]||0,w=!(f[l]||"").match(u)&&parseFloat(f[l])||f[l]||0;if(isNaN(p)!==isNaN(w))return isNaN(p)?1:-1;if(typeof p!=typeof w&&(p+="",w+=""),p<w)return-1;if(w<p)return 1}return 0}return e.ext.order["natural-asc"]=function(e,t){return a(e,t,!0)},e.ext.order["natural-desc"]=function(e,t){return-1*a(e,t,!0)},e.ext.order["natural-nohtml-asc"]=function(e,t){return a(e,t,!1)},e.ext.order["natural-nohtml-asc"]=function(e,t){return-1*a(e,t,!1)},e.ext.order["natural-ci-asc"]=function(e,t){return a(e=e.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)},e.ext.order["natural-ci-asc"]=function(e,t){return-1*a(e=e.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)},e});
!function(r){var n,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?(n=require("jquery"),a=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||n(e),a(e,t),r(t,0,e.document)}:(a(window,n),module.exports=r(n,window,window.document))):r(jQuery,window,document)}(function(e,t,r,n){"use strict";e=e.fn.dataTable;function a(e,t,r){var n=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?%?$|^0x[0-9a-f]+$|[0-9]+)/gi,a=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,i=/^0x[0-9a-f]+$/i,u=/^0/,c=/(<([^>]+)>)/gi,e=e.toString().replace(a,"")||"",t=t.toString().replace(a,"")||"",d=(r||(e=e.replace(c,""),t=t.replace(c,"")),e.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")),f=t.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),a=parseInt(e.match(i),10)||1!==d.length&&e.match(o)&&Date.parse(e),r=parseInt(t.match(i),10)||a&&t.match(o)&&Date.parse(t)||null;if(r){if(a<r)return-1;if(r<a)return 1}for(var l=0,p=Math.max(d.length,f.length);l<p;l++){var s=!(d[l]||"").match(u)&&parseFloat(d[l])||d[l]||0,w=!(f[l]||"").match(u)&&parseFloat(f[l])||f[l]||0;if(isNaN(s)!==isNaN(w))return isNaN(s)?1:-1;if(typeof s!=typeof w&&(s+="",w+=""),s<w)return-1;if(w<s)return 1}return 0}return e.ext.type.order["natural-asc"]=function(e,t){return a(e,t,!0)},e.ext.type.order["natural-desc"]=function(e,t){return-1*a(e,t,!0)},e.ext.type.order["natural-nohtml-asc"]=function(e,t){return a(e,t,!1)},e.ext.type.order["natural-nohtml-asc"]=function(e,t){return-1*a(e,t,!1)},e.ext.type.order["natural-ci-asc"]=function(e,t){return a(e=e.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)},e.ext.type.order["natural-ci-asc"]=function(e,t){return-1*a(e=e.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Jim Palmer, Michael Buehler, Mike Grier, Clint Priest, Kyle Adams, guillermo - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";function naturalSort(a,t,r){var e=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?%?$|^0x[0-9a-f]+$|[0-9]+)/gi,n=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=/^0x[0-9a-f]+$/i,u=/^0/,c=/(<([^>]+)>)/gi,a=a.toString().replace(n,"")||"",t=t.toString().replace(n,"")||"",i=(r||(a=a.replace(c,""),t=t.replace(c,"")),a.replace(e,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")),p=t.replace(e,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),n=parseInt(a.match(l),10)||1!==i.length&&a.match(o)&&Date.parse(a),r=parseInt(t.match(l),10)||n&&t.match(o)&&Date.parse(t)||null;if(r){if(n<r)return-1;if(r<n)return 1}for(var f=0,s=Math.max(i.length,p.length);f<s;f++){var d=!(i[f]||"").match(u)&&parseFloat(i[f])||i[f]||0,m=!(p[f]||"").match(u)&&parseFloat(p[f])||p[f]||0;if(isNaN(d)!==isNaN(m))return isNaN(d)?1:-1;if(typeof d!=typeof m&&(d+="",m+=""),d<m)return-1;if(m<d)return 1}return 0}DataTable.ext.order["natural-asc"]=function(a,t){return naturalSort(a,t,!0)},DataTable.ext.order["natural-desc"]=function(a,t){return-1*naturalSort(a,t,!0)},DataTable.ext.order["natural-nohtml-asc"]=function(a,t){return naturalSort(a,t,!1)},DataTable.ext.order["natural-nohtml-asc"]=function(a,t){return-1*naturalSort(a,t,!1)},DataTable.ext.order["natural-ci-asc"]=function(a,t){return naturalSort(a=a.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)},DataTable.ext.order["natural-ci-asc"]=function(a,t){return-1*naturalSort(a=a.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;function naturalSort(t,a,r){var e=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?%?$|^0x[0-9a-f]+$|[0-9]+)/gi,n=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=/^0x[0-9a-f]+$/i,u=/^0/,c=/(<([^>]+)>)/gi,t=t.toString().replace(n,"")||"",a=a.toString().replace(n,"")||"",i=(r||(t=t.replace(c,""),a=a.replace(c,"")),t.replace(e,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")),p=a.replace(e,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),n=parseInt(t.match(l),10)||1!==i.length&&t.match(o)&&Date.parse(t),r=parseInt(a.match(l),10)||n&&a.match(o)&&Date.parse(a)||null;if(r){if(n<r)return-1;if(r<n)return 1}for(var f=0,s=Math.max(i.length,p.length);f<s;f++){var d=!(i[f]||"").match(u)&&parseFloat(i[f])||i[f]||0,m=!(p[f]||"").match(u)&&parseFloat(p[f])||p[f]||0;if(isNaN(d)!==isNaN(m))return isNaN(d)?1:-1;if(typeof d!=typeof m&&(d+="",m+=""),d<m)return-1;if(m<d)return 1}return 0}DataTable.ext.type.order["natural-asc"]=function(t,a){return naturalSort(t,a,!0)},DataTable.ext.type.order["natural-desc"]=function(t,a){return-1*naturalSort(t,a,!0)},DataTable.ext.type.order["natural-nohtml-asc"]=function(t,a){return naturalSort(t,a,!1)},DataTable.ext.type.order["natural-nohtml-asc"]=function(t,a){return-1*naturalSort(t,a,!1)},DataTable.ext.type.order["natural-ci-asc"]=function(t,a){return naturalSort(t=t.toString().toLowerCase(),a=a.toString().toLowerCase(),!0)},DataTable.ext.type.order["natural-ci-asc"]=function(t,a){return-1*naturalSort(t=t.toString().toLowerCase(),a=a.toString().toLowerCase(),!0)};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Jim Palmer, Michael Buehler, Mike Grier, Clint Priest, Kyle Adams, guillermo - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Data can often be a complicated mix of numbers and letters (file names
* are a common example) and sorting them in a natural manner is quite a
@ -95,24 +98,24 @@ function naturalSort(a, b, html) {
}
return 0;
}
DataTable.ext.order['natural-asc'] = function (a, b) {
DataTable.ext.type.order['natural-asc'] = function (a, b) {
return naturalSort(a, b, true);
};
DataTable.ext.order['natural-desc'] = function (a, b) {
DataTable.ext.type.order['natural-desc'] = function (a, b) {
return naturalSort(a, b, true) * -1;
};
DataTable.ext.order['natural-nohtml-asc'] = function (a, b) {
DataTable.ext.type.order['natural-nohtml-asc'] = function (a, b) {
return naturalSort(a, b, false);
};
DataTable.ext.order['natural-nohtml-asc'] = function (a, b) {
DataTable.ext.type.order['natural-nohtml-asc'] = function (a, b) {
return naturalSort(a, b, false) * -1;
};
DataTable.ext.order['natural-ci-asc'] = function (a, b) {
DataTable.ext.type.order['natural-ci-asc'] = function (a, b) {
a = a.toString().toLowerCase();
b = b.toString().toLowerCase();
return naturalSort(a, b, true);
};
DataTable.ext.order['natural-ci-asc'] = function (a, b) {
DataTable.ext.type.order['natural-ci-asc'] = function (a, b) {
a = a.toString().toLowerCase();
b = b.toString().toLowerCase();
return naturalSort(a, b, true) * -1;

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -103,7 +103,7 @@ function nepaliToLatin(nepali) {
break;
}
}
DataTable.ext.order['nepali-numbers-pre'] = function (a) {
DataTable.ext.type.order['nepali-numbers-pre'] = function (a) {
var latin = '', i = 0;
for (i; i < a.length; i++) {
latin += nepaliToLatin(a.charAt(i));

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
!function(r){var t,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?(t=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||t(e),u(e,n),r(n,0,e.document)}:(u(window,t),module.exports=r(t,window,window.document))):r(jQuery,window,document)}(function(e,n,r,t){"use strict";e=e.fn.dataTable;return e.ext.order["nepali-numbers-pre"]=function(e){for(var n="",r=0;r<e.length;r++)n+=function(e){switch(e){case"":return 0;case"१":return 1;case"२":return 2;case"३":return 3;case"४":return 4;case"५":return 5;case"६":return 6;case"७":return 7;case"८":return 8;case"९":return 9;default:return 0}}(e.charAt(r));return parseInt(n,10)},e});
!function(t){var r,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),u(e,n),t(n,0,e.document)}:(u(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,n,t,r){"use strict";e=e.fn.dataTable;return e.ext.type.order["nepali-numbers-pre"]=function(e){for(var n="",t=0;t<e.length;t++)n+=function(e){switch(e){case"":return 0;case"१":return 1;case"२":return 2;case"३":return 3;case"४":return 4;case"५":return 5;case"६":return 6;case"७":return 7;case"८":return 8;case"९":return 9;default:return 0}}(e.charAt(t));return parseInt(n,10)},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";function nepaliToLatin(e){switch(e){case"":return 0;case"१":return 1;case"२":return 2;case"३":return 3;case"४":return 4;case"५":return 5;case"६":return 6;case"७":return 7;case"८":return 8;case"९":return 9;default:return 0}}DataTable.ext.order["nepali-numbers-pre"]=function(e){for(var r="",a=0;a<e.length;a++)r+=nepaliToLatin(e.charAt(a));return parseInt(r,10)};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;function nepaliToLatin(e){switch(e){case"":return 0;case"१":return 1;case"२":return 2;case"३":return 3;case"४":return 4;case"५":return 5;case"६":return 6;case"७":return 7;case"८":return 8;case"९":return 9;default:return 0}}DataTable.ext.type.order["nepali-numbers-pre"]=function(e){for(var r="",t=0;t<e.length;t++)r+=nepaliToLatin(e.charAt(t));return parseInt(r,10)};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorts a column containing nepali numbers. Nepali numbers can easily be
* mapped 1:1 to latin numbers - = 1, = 2, १२ = 12 and so on.
@ -60,7 +63,7 @@ function nepaliToLatin(nepali) {
break;
}
}
DataTable.ext.order['nepali-numbers-pre'] = function (a) {
DataTable.ext.type.order['nepali-numbers-pre'] = function (a) {
var latin = '', i = 0;
for (i; i < a.length; i++) {
latin += nepaliToLatin(a.charAt(i));

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var u,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(u=require("jquery"),o=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||u(e),o(e,n),t(n,0,e.document)}:(o(window,u),module.exports=t(u,window,window.document))):t(jQuery,window,document)}(function(e,n,t,u){"use strict";var o=e.fn.dataTable;return o.numString=function(n){o.ext.type.detect.unshift(function(e){return"string"==typeof e&&e.match(n)?"numString-"+n.source:null}),o.ext.type.order["numString-"+n.source+"-pre"]=function(e){return+e.replace(/\D/g,"")}},o});
!function(t){var u,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(u=require("jquery"),o=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||u(e),o(e,n),t(n,0,e.document)}:(o(window,u),module.exports=t(u,window,window.document))):t(jQuery,window,document)}(function(e,n,t,u){"use strict";var o=e.fn.dataTable;return o.numString=function(n){o.ext.type.detect.unshift(function(e){return"string"==typeof e&&e.match(n)?"numString-"+n.source:null}),o.ext.type.order["numString-"+n.source+"-pre"]=function(e){return+e.replace(/\D/g,"")}},o});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.numString=function(e){DataTable.ext.type.detect.unshift(function(t){return"string"==typeof t&&t.match(e)?"numString-"+e.source:null}),DataTable.ext.type.order["numString-"+e.source+"-pre"]=function(t){return+t.replace(/\D/g,"")}};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.numString=function(e){DataTable.ext.type.detect.unshift(function(t){return"string"==typeof t&&t.match(e)?"numString-"+e.source:null}),DataTable.ext.type.order["numString-"+e.source+"-pre"]=function(t){return+t.replace(/\D/g,"")}};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
*
* This plug in will sort only on the number value that is included anywhere in a Regex.

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -71,7 +71,7 @@ function toEnglishNumber(strNum) {
}
return cache;
}
DataTable.ext.order['kh-persian-numbers-pre'] = function (a, b) {
DataTable.ext.type.order['kh-persian-numbers-pre'] = function (a, b) {
return parseFloat(toEnglishNumber(a));
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Khorshid - datatables.net/license */
!function(t){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),o(e,n),t(n,0,e.document)}:(o(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,n,t,r){"use strict";e=e.fn.dataTable;return e.ext.order["kh-persian-numbers-pre"]=function(e,n){return parseFloat(function(e){for(var n=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],t=["0","1","2","3","4","5","6","7","8","9"],r=e,o=0;o<10;o++)var u=new RegExp(n[o],"g"),r=r.replace(u,t[o]);return r}(e))},e});
!function(t){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),o(e,n),t(n,0,e.document)}:(o(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,n,t,r){"use strict";e=e.fn.dataTable;return e.ext.type.order["kh-persian-numbers-pre"]=function(e,n){return parseFloat(function(e){for(var n=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],t=["0","1","2","3","4","5","6","7","8","9"],r=e,o=0;o<10;o++)var u=new RegExp(n[o],"g"),r=r.replace(u,t[o]);return r}(e))},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Khorshid - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";function toEnglishNumber(e){for(var r=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],a=["0","1","2","3","4","5","6","7","8","9"],t=e,n=0;n<10;n++)var o=new RegExp(r[n],"g"),t=t.replace(o,a[n]);return t}DataTable.ext.order["kh-persian-numbers-pre"]=function(e,r){return parseFloat(toEnglishNumber(e))};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;function toEnglishNumber(e){for(var r=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],t=["0","1","2","3","4","5","6","7","8","9"],a=e,n=0;n<10;n++)var o=new RegExp(r[n],"g"),a=a.replace(o,t[n]);return a}DataTable.ext.type.order["kh-persian-numbers-pre"]=function(e,r){return parseFloat(toEnglishNumber(e))};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Khorshid - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorts a column containing Persian numbers. Persian numbers can easily be
* mapped 1:1 to latin numbers - ۱ = 1, ۲ = 2, ۱۲ = 12 and so on.
@ -28,7 +31,7 @@ function toEnglishNumber(strNum) {
}
return cache;
}
DataTable.ext.order['kh-persian-numbers-pre'] = function (a, b) {
DataTable.ext.type.order['kh-persian-numbers-pre'] = function (a, b) {
return parseFloat(toEnglishNumber(a));
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -113,7 +113,7 @@ function GetUniCode(source) {
}
return 'a' + result;
}
DataTable.ext.order['pstring-pre'] = function (a, b) {
DataTable.ext.type.order['pstring-pre'] = function (a, b) {
return GetUniCode(a.toLowerCase());
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Afshin Mehrabani - datatables.net/license */
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";var e=e.fn.dataTable,i=["آ","ا","ب","پ","ت","ث","ج","چ","ح","خ","د","ذ","ر","ز","ژ","س","ش","ص","ط","ظ","ع","غ","ف","ق","ک","گ","ل","م","ن","و","ه","ی","ي"];return e.ext.order["pstring-pre"]=function(e,n){var t=e.toLowerCase();t=t.trim();for(var o,r="",d=0;d<t.length;d++)r+="00"+(o=(o=(o=i.indexOf(t.charAt(d)))<0?t.charCodeAt(d):o)<10?"0"+o:o);return"a"+r},e});
!function(t){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),r(e,n),t(n,0,e.document)}:(r(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";var e=e.fn.dataTable,i=["آ","ا","ب","پ","ت","ث","ج","چ","ح","خ","د","ذ","ر","ز","ژ","س","ش","ص","ط","ظ","ع","غ","ف","ق","ک","گ","ل","م","ن","و","ه","ی","ي"];return e.ext.type.order["pstring-pre"]=function(e,n){var t=e.toLowerCase();t=t.trim();for(var o,r="",d=0;d<t.length;d++)r+="00"+(o=(o=(o=i.indexOf(t.charAt(d)))<0?t.charCodeAt(d):o)<10?"0"+o:o);return"a"+r},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Afshin Mehrabani - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";var persianSort=["آ","ا","ب","پ","ت","ث","ج","چ","ح","خ","د","ذ","ر","ز","ژ","س","ش","ص","ط","ظ","ع","غ","ف","ق","ک","گ","ل","م","ن","و","ه","ی","ي"];function GetUniCode(r){r=r.trim();for(var t,e="",a=0;a<r.length;a++)e+="00"+(t=(t=(t=persianSort.indexOf(r.charAt(a)))<0?r.charCodeAt(a):t)<10?"0"+t:t);return"a"+e}DataTable.ext.order["pstring-pre"]=function(r,t){return GetUniCode(r.toLowerCase())};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;var persianSort=["آ","ا","ب","پ","ت","ث","ج","چ","ح","خ","د","ذ","ر","ز","ژ","س","ش","ص","ط","ظ","ع","غ","ف","ق","ک","گ","ل","م","ن","و","ه","ی","ي"];function GetUniCode(e){e=e.trim();for(var r,t="",a=0;a<e.length;a++)t+="00"+(r=(r=(r=persianSort.indexOf(e.charAt(a)))<0?e.charCodeAt(a):r)<10?"0"+r:r);return"a"+t}DataTable.ext.type.order["pstring-pre"]=function(e,r){return GetUniCode(e.toLowerCase())};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Afshin Mehrabani - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Sorting in Javascript can be difficult to get right with non-Roman
* characters - for which special consideration must be made. This plug-in
@ -70,7 +73,7 @@ function GetUniCode(source) {
}
return 'a' + result;
}
DataTable.ext.order['pstring-pre'] = function (a, b) {
DataTable.ext.type.order['pstring-pre'] = function (a, b) {
return GetUniCode(a.toLowerCase());
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -61,7 +61,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['scientific-pre'] = function (a) {
DataTable.ext.type.order['scientific-pre'] = function (a) {
return parseFloat(a);
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Nick Schurch - datatables.net/license */
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.order["scientific-pre"]=function(e){return parseFloat(e)},e});
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.type.order["scientific-pre"]=function(e){return parseFloat(e)},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd, Nick Schurch - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["scientific-pre"]=function(a){return parseFloat(a)};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["scientific-pre"]=function(e){return parseFloat(e)};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd, Nick Schurch - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* This plug-in will treat numbers which are in scientific notation (for
* example `1E-10`, `1.2E6` etc) and sort them numerically.
@ -18,7 +21,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['scientific-pre'] = function (a) {
DataTable.ext.type.order['scientific-pre'] = function (a) {
return parseFloat(a);
};

@ -16,7 +16,7 @@
}
};
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
@ -62,7 +62,7 @@ var DataTable = $.fn.dataTable;
* ]
* } );
*/
DataTable.ext.order['signed-num-pre'] = function (a) {
DataTable.ext.type.order['signed-num-pre'] = function (a) {
return a == '-' || a === '' ? 0 : a.replace('+', '') * 1;
};

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.order["signed-num-pre"]=function(e){return"-"==e||""===e?0:+e.replace("+","")},e});
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(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";e=e.fn.dataTable;return e.ext.type.order["signed-num-pre"]=function(e){return"-"==e||""===e?0:+e.replace("+","")},e});

@ -1,2 +1,2 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["signed-num-pre"]=function(e){return"-"==e||""===e?0:+e.replace("+","")};export default DataTable;
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["signed-num-pre"]=function(e){return"-"==e||""===e?0:+e.replace("+","")};export default DataTable;

@ -1,8 +1,11 @@
/*! © SpryMedia Ltd - datatables.net/license */
import $ from 'jquery';
import jQuery from 'jquery';
import DataTable from 'datatables.net';
// Allow reassignment of the $ variable
let $ = jQuery;
/**
* Although DataTables' internal numeric sorting works no problem on negative
* numbers, it does not accept positively signed numbers. This plug-in will
@ -19,7 +22,7 @@ import DataTable from 'datatables.net';
* ]
* } );
*/
DataTable.ext.order['signed-num-pre'] = function (a) {
DataTable.ext.type.order['signed-num-pre'] = function (a) {
return a == '-' || a === '' ? 0 : a.replace('+', '') * 1;
};

@ -23,7 +23,7 @@
import DataTable from 'datatables.net';
DataTable.ext.order['case-sensitive-asc'] = function (a, b) {
DataTable.ext.type.order['case-sensitive-asc'] = function (a, b) {
if (a < b) {
return -1;
}
@ -34,7 +34,7 @@ DataTable.ext.order['case-sensitive-asc'] = function (a, b) {
return 0;
};
DataTable.ext.order['case-sensitive-desc'] = function (a, b) {
DataTable.ext.type.order['case-sensitive-desc'] = function (a, b) {
if (a > b) {
return -1;
}

@ -19,6 +19,6 @@
import DataTable from 'datatables.net';
DataTable.ext.order['alt-string-pre'] = function (a) {
DataTable.ext.type.order['alt-string-pre'] = function (a) {
return a.match(/alt="(.*?)"/)[1].toLowerCase();
};

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save