Lines Matching +full:d +full:- +full:tech
3 * © SpryMedia Ltd - datatables.net/license
5 * FileSaver.js (1.3.3) - MIT license
6 * Copyright © 2016 Eli Grey - http://eligrey.com
12 define( ['jquery', 'datatables.net', 'datatables.net-buttons'], function ( $ ) {
25 require('datatables.net-buttons')(root, $);
97 (typeof navigator !== 'undefined' && /MSIE [1-9]\./.test(navigator.userAgent))
113 is_chrome_ios = /CriOS\/[\d]+/.test(navigator.userAgent),
119 force_saveable_type = 'application/octet-stream',
138 while (i--) {
150 // prepend BOM for UTF-8 XML and text/* types (including HTML)
151 // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF
153 /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(
345 * Older versions of Safari (prior to tech preview 18) don't support the
352 navigator.userAgent.indexOf('Safari') !== -1 &&
353 navigator.userAgent.indexOf('Chrome') === -1 &&
354 navigator.userAgent.indexOf('Opera') === -1;
360 var version = navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);
376 var len = ordZ - ordA + 1;
381 n = Math.floor(n / len) - 1;
412 .indexOf('xmlns:r') === -1;
431 for (i = worksheet.attributes.length - 1; i >= 0; i--) {
435 if (attrName.indexOf(':') !== -1) {
456 if (str.indexOf('<?xml') === -1) {
457 str = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' + str;
464 str = str.replace(/xmlns:NS[\d]+="" NS[\d]+:/g, '');
482 * @param {object} opts Options - can be `attr` (attributes), `children`
528 if (str.indexOf('\n') !== -1) {
531 return b.length - a.length;
556 // Excel - Pre-defined strings to build a basic XLSX file
559 '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
565 '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
572 '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
573 '<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">' +
575 …'<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" …
577 …'<Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.…
578 …'<Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-office…
579 …'<Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.sp…
583 '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
597 '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
598 …ument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" m…
604 '<?xml version="1.0" encoding="UTF-8"?>' +
605 …/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" m…
607 '<numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/>' +
609 '<numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/>' +
793 // Ref: section 3.8.30 - built in formatters in open spreadsheet
794 // https://www.ecma-international.org/news/TC45_current_work/Office%20Open%20XML%20Part%204%20-%2…
797 match: /^\-?\d+\.\d%$/,
799 fmt: function (d) { argument
800 return d / 100;
802 }, // Percent with d.p.
804 match: /^\-?\d+\.?\d*%$/,
806 fmt: function (d) { argument
807 return d / 100;
810 { match: /^\-?\$[\d,]+.?\d*$/, style: 57 }, // Dollars
811 { match: /^\-?£[\d,]+.?\d*$/, style: 58 }, // Pounds
812 { match: /^\-?€[\d,]+.?\d*$/, style: 59 }, // Euros
813 { match: /^\-?\d+$/, style: 65 }, // Numbers without thousand separators
814 { match: /^\-?\d+\.\d{2}$/, style: 66 }, // Numbers 2 d.p. without thousands separators
816 match: /^\([\d,]+\)$/,
818 fmt: function (d) { argument
819 return -1 * d.replace(/[\(\)]/g, '');
823 match: /^\([\d,]+\.\d{2}\)$/,
825 fmt: function (d) { argument
826 return -1 * d.replace(/[\(\)]/g, '');
828 }, // Negative numbers indicated by brackets - 2d.p.
829 { match: /^\-?[\d,]+$/, style: 63 }, // Numbers with thousand separators
830 { match: /^\-?[\d,]+\.\d{2}$/, style: 64 },
832 match: /^[\d]{4}\-[01][\d]\-[0123][\d]$/,
834 fmt: function (d) { argument
835 return Math.round(25569 + Date.parse(d) / (86400 * 1000));
837 } //Date yyyy-mm-dd
848 className: 'buttons-copy buttons-html5',
906 _: 'Copied %d rows to clipboard'
938 var container = $(message).closest('.dt-button-info');
940 container.off('click.buttons-copy');
941 $(document).off('.buttons-copy');
945 container.on('click.buttons-copy', close);
947 .on('keydown.buttons-copy', function (e) {
954 .on('copy.buttons-copy cut.buttons-copy', function () {
983 className: 'buttons-csv buttons-html5',
1050 className: 'buttons-excel buttons-html5',
1129 if (row[i].match && !row[i].match(/^0\d+/) && row[i].match(special.match)) {
1130 var val = row[i].replace(/[^\d\.\-]/g, '');
1152 row[i].match(/^-?\d+(\.\d+)?([eE]\-?\d+)?$/) && // Includes exponential format
1153 !row[i].match(/^0\d+/))
1155 // Detect numbers - don't match numbers with leading zeros
1166 // String output - replace non standard characters for text output
1169 : originalContent.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g, '');
1214 $('row:eq(' + (row - 1) + ') c', rels).attr('s', '51'); // centre
1221 mergeCells(rowPos, data.header.length - 1);
1226 mergeCells(rowPos, data.header.length - 1);
1251 mergeCells(rowPos, data.header.length - 1);
1285 createCellPos(data.header.length - 1) +
1303 createCellPos(data.header.length - 1) +
1324 mimeType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
1330 …// https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8…
1376 // PDF export - using pdfMake - http://pdfmake.org
1379 className: 'buttons-pdf buttons-html5',
1399 $.map(data.header, function (d) { argument
1401 text: typeof d === 'string' ? d : d + '',
1410 $.map(data.body[i], function (d) { argument
1411 if (d === null || d === undefined) {
1412 d = '';
1415 text: typeof d === 'string' ? d : d + '',
1424 $.map(data.footer, function (d) { argument
1426 text: typeof d === 'string' ? d : d + '',