You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plugins/dataRender/intl.min.mjs

2 lines
612 B
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.render.intlDateTime=function(t,r){var n;return window.Intl?(n=new Intl.DateTimeFormat(t,r),function(t,r){var e;return"string"==typeof t?e=Date.parse(t):t instanceof Date&&(e=t),isNaN(e)||"type"===r||"sort"===r?t:n.format(e)}):function(t){return t}},DataTable.render.intlNumber=function(t,r){var e;return window.Intl?(e=new Intl.NumberFormat(t,r),function(t,r){return"display"===r?e.format(t):"filter"===r?t+" "+e.format(t):t}):function(t){return t}};export default DataTable;