style-xlsx-m 0.1.2-2.0 → 0.1.2-3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xlsx.mini.min.js +3 -3
- package/package.json +2 -2
- package/xlsx-js-style/dist/xlsx.bundle.js +1 -0
- package/xlsx-js-style/dist/xlsx.min.js +13 -11
- package/xlsx.js +10 -3
- package/xlsx.bundle.js +0 -26540
- package/xlsx.bundle.js.map +0 -1
package/dist/xlsx.mini.min.js
CHANGED
|
@@ -13227,7 +13227,7 @@ function make_xlsx_lib(e) {
|
|
|
13227
13227
|
return Ye.write(e, r);
|
|
13228
13228
|
}
|
|
13229
13229
|
function Wo(e, r) {
|
|
13230
|
-
console.log('Wo')
|
|
13230
|
+
// console.log('Wo')
|
|
13231
13231
|
var t = gr(r || {});
|
|
13232
13232
|
var a = Eo(e, t);
|
|
13233
13233
|
return Ho(a, t);
|
|
@@ -13367,7 +13367,7 @@ function make_xlsx_lib(e) {
|
|
|
13367
13367
|
return jo(e, t);
|
|
13368
13368
|
}
|
|
13369
13369
|
function Ko(e, r) {
|
|
13370
|
-
console.log('Ko')
|
|
13370
|
+
// console.log('Ko')
|
|
13371
13371
|
o();
|
|
13372
13372
|
Fl(e);
|
|
13373
13373
|
var t = gr(r || {});
|
|
@@ -13457,7 +13457,7 @@ function make_xlsx_lib(e) {
|
|
|
13457
13457
|
e.bookType = r[e.bookType] || e.bookType;
|
|
13458
13458
|
}
|
|
13459
13459
|
function Zo(e, r, t) {
|
|
13460
|
-
console.log('Zo')
|
|
13460
|
+
// console.log('Zo')
|
|
13461
13461
|
var a = t || {};
|
|
13462
13462
|
a.type = "file";
|
|
13463
13463
|
a.file = r;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "style-xlsx-m",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23.2",
|
|
4
4
|
"author": "mor8t (Shukurov Shahrom)",
|
|
5
5
|
"description": "style-xlsx-m is a custom xlsx and xlsx-js-style version library",
|
|
6
6
|
"keywords": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"xlsx": "./bin/xlsx.njs"
|
|
27
27
|
},
|
|
28
28
|
"main": "xlsx.js",
|
|
29
|
-
"module": "./xlsx.bundle.js",
|
|
29
|
+
"module": "./xlsx-js-style/dist/xlsx.bundle.js",
|
|
30
30
|
"unpkg": "dist/xlsx.full.min.js",
|
|
31
31
|
"jsdelivr": "dist/xlsx.full.min.js",
|
|
32
32
|
"types": "types/index.d.ts",
|
|
@@ -14494,6 +14494,7 @@ function make_xlsx_lib(a) {
|
|
|
14494
14494
|
return i.join("");
|
|
14495
14495
|
}
|
|
14496
14496
|
function xl(e, t, r, a) {
|
|
14497
|
+
console.log('e',e,'\n','t',t,'\n','r',r,'\n','a',a)
|
|
14497
14498
|
var n,
|
|
14498
14499
|
s,
|
|
14499
14500
|
i = [ot, Yt("worksheet", null, { xmlns: Qt[0], "xmlns:r": Zt.r })],
|
|
@@ -3368,7 +3368,7 @@ function make_xlsx_lib(a) {
|
|
|
3368
3368
|
return r;
|
|
3369
3369
|
}),
|
|
3370
3370
|
(e.writeFile = function (e, t, r) {
|
|
3371
|
-
console.log('e.writeFile-----------------------------------------'),
|
|
3371
|
+
// console.log('e.writeFile-----------------------------------------'),
|
|
3372
3372
|
i(), (r = a(e, r)), s.writeFileSync(t, r);
|
|
3373
3373
|
}),
|
|
3374
3374
|
(e.utils = {
|
|
@@ -3480,7 +3480,6 @@ function make_xlsx_lib(a) {
|
|
|
3480
3480
|
chrome.downloads.download({ url: n, filename: e, saveAs: !0 })
|
|
3481
3481
|
);
|
|
3482
3482
|
a = document.createElement("a");
|
|
3483
|
-
console.log('------------00000000000000---------------\n00000000000------------00000000\n0-----------------00000000000000--\n-------------00000000000------------0\n00000000-----------------000000000000\n00---------------00000000000------------0\n00000000----------------------000000000-----------------00000000000000---------------00000000000------------000000000-----------------00000000000000---------------00000000000------------000000000-----------------00000000000000---------------00000000000------------000000000-----------------00000000000000---------------00000000000------------000000000-----------------00000000000000---------------00000000000------------000000000-----------------00000000000000---------------00000000000------------000000000-----------------00000000000000---------------00000000000------------000000000-----------------00000000000000---------------00000000000------------000000000-----')
|
|
3484
3483
|
if (null != a.download)
|
|
3485
3484
|
return (
|
|
3486
3485
|
(a.download = e),
|
|
@@ -4204,10 +4203,13 @@ function make_xlsx_lib(a) {
|
|
|
4204
4203
|
return "";
|
|
4205
4204
|
}
|
|
4206
4205
|
function parse_xml_pageSetup(pagesetup){
|
|
4206
|
+
// console.log('------',pagesetup)
|
|
4207
4207
|
if(!pagesetup) return ''
|
|
4208
|
-
let tag = JSON.stringify(pagesetup).replace(/":"/g,'="').replace(/","/g,'" ')
|
|
4209
|
-
tag = tag.slice(2,tag.length-1)
|
|
4210
|
-
return `<pageSetup ${tag} />`
|
|
4208
|
+
// let tag = JSON.stringify(pagesetup).replace(/":"/g,'="').replace(/","/g,'" ')
|
|
4209
|
+
// tag = tag.slice(2,tag.length-1)
|
|
4210
|
+
// return `<pageSetup ${tag} />`
|
|
4211
|
+
// console.log('---------------------------------------------------------------==============',pagesetup)
|
|
4212
|
+
return pagesetup
|
|
4211
4213
|
}
|
|
4212
4214
|
function parse_xml_colBreaks(colBreaks){
|
|
4213
4215
|
if(!colBreaks) return ''
|
|
@@ -4220,7 +4222,7 @@ function make_xlsx_lib(a) {
|
|
|
4220
4222
|
return `<colBreaks ${tag.slice(2,tag.length-1)}>${t}</colBreaks>`
|
|
4221
4223
|
}
|
|
4222
4224
|
function parse_xml_headerFooter(headerfooter){
|
|
4223
|
-
if(
|
|
4225
|
+
if(headerfooter) return ''
|
|
4224
4226
|
return headerfooter
|
|
4225
4227
|
}
|
|
4226
4228
|
function parse_xml(c,i){
|
|
@@ -14542,9 +14544,9 @@ function make_xlsx_lib(a) {
|
|
|
14542
14544
|
((a = { summaryBelow: 1, summaryRight: 1 }),
|
|
14543
14545
|
e["!outline"].above && (a.summaryBelow = 0),
|
|
14544
14546
|
e["!outline"].left && (a.summaryRight = 0),
|
|
14545
|
-
(o = (o || "") + Yt("outlinePr", null, a)))
|
|
14546
|
-
(
|
|
14547
|
-
// (
|
|
14547
|
+
(o = (o || "") + Yt("outlinePr", null, a)));
|
|
14548
|
+
// (o = (o || "") + Yt("outlinePr", null, a))),
|
|
14549
|
+
// (s || o) && (n[n.length] = Yt("sheetPr", o, i));
|
|
14548
14550
|
})(c, r, e, t, i),/////////////////
|
|
14549
14551
|
(i[i.length] = Yt("dimension", null, { ref: l })),
|
|
14550
14552
|
(i[i.length] =
|
|
@@ -26532,7 +26534,7 @@ function make_xlsx_lib(a) {
|
|
|
26532
26534
|
(a.writeFile = nu),
|
|
26533
26535
|
(a.writeFileSync = nu),
|
|
26534
26536
|
(a.writeFileAsync = function (e, t, r, a) {
|
|
26535
|
-
console.log('a.writeFileAsync------------------------------------')
|
|
26537
|
+
// console.log('a.writeFileAsync------------------------------------')
|
|
26536
26538
|
var n = r || {};
|
|
26537
26539
|
return (
|
|
26538
26540
|
(n.type = "file"),
|
|
@@ -26546,7 +26548,7 @@ function make_xlsx_lib(a) {
|
|
|
26546
26548
|
(a.utils = Es),
|
|
26547
26549
|
(a.writeXLSX = tu),
|
|
26548
26550
|
(a.writeFileXLSX = function (e, t, r) {
|
|
26549
|
-
console.log('e.writeFileXLSX-----------------------------')
|
|
26551
|
+
// console.log('e.writeFileXLSX-----------------------------')
|
|
26550
26552
|
return ((r = r || {}).type = "file"), (r.file = t), au(r), tu(e, r);
|
|
26551
26553
|
}),
|
|
26552
26554
|
(a.SSF = e),
|
package/xlsx.js
CHANGED
|
@@ -14603,6 +14603,7 @@ var pagesetupregex = /<(?:\w:)?pageSetup[^>]*\/>/g;
|
|
|
14603
14603
|
var colbreaksregex = /<(?:\w+:)?colBreaks[^>]*>([\s\S]*)<\/(?:\w+:)?colBreaks>/;
|
|
14604
14604
|
var headerFooterregex = /<(?:\w:)?headerFooter[^>]*\/>/g;
|
|
14605
14605
|
var sheetFormatPrregex = /<(?:\w:)?sheetFormatPr[^>]*\/>/g;
|
|
14606
|
+
// var sheetPrregex = /(<(?:\w:)?sheetPr[^>]*\/>)|(<(?:\w+:)?sheetPr[^>]*>([\s\S]*)<\/(?:\w+:)?sheetPr>)/g;
|
|
14606
14607
|
var sheetPrregex = /(<(?:\w:)?sheetPr[^>]*\/>)|(<(?:\w+:)?sheetPr[^>]*>([\s\S]*)<\/(?:\w+:)?sheetPr>)/g;
|
|
14607
14608
|
var pagesetuptagregex = /(\w*="(\d*|\w*\d*|.*)"|r:id="(.*)")/g;
|
|
14608
14609
|
var sheetViewsregex = /(<(?:\w:)?sheetViews[^>]*\/>)|(<(?:\w+:)?sheetViews[^>]*>([\s\S]*)<\/(?:\w+:)?sheetViews>)/g
|
|
@@ -14674,18 +14675,23 @@ function parse_ws_xml(data, opts, idx, rels, wb, themes, styles) {
|
|
|
14674
14675
|
|
|
14675
14676
|
/* 0.1.17 pageSetup mor8t */
|
|
14676
14677
|
var pagesetup = data.match(pagesetupregex);
|
|
14677
|
-
|
|
14678
|
+
console.log('pagesetup',pagesetup[0])
|
|
14679
|
+
// if(pagesetup) parse_ws_xml_pageSetup(s, pagesetup);
|
|
14680
|
+
if(pagesetup) s['!pageSetup'] = pagesetup[0];
|
|
14678
14681
|
|
|
14679
14682
|
/* 0.1.17 colBreacks mor8t */
|
|
14680
14683
|
var colbreaks = data.match(colbreaksregex);
|
|
14684
|
+
console.log('colbreaks',colbreaks[0])
|
|
14681
14685
|
if(colbreaks) parse_ws_xml_colBreaks(s, colbreaks)
|
|
14682
14686
|
|
|
14683
14687
|
/* 0.1.17 headerFooter mor8t */
|
|
14684
14688
|
var headerfooter = data.match(headerFooterregex);
|
|
14689
|
+
console.log('headerfooter',headerfooter[0])
|
|
14685
14690
|
if(headerfooter) parse_ws_xml_headerFooter(s, headerfooter)
|
|
14686
14691
|
|
|
14687
14692
|
/* 0.1.17 sheetPr mor8t */
|
|
14688
14693
|
var sheetPr = data.match(sheetPrregex);
|
|
14694
|
+
console.log('sheetPr',sheetPr[0])
|
|
14689
14695
|
if(sheetPr) s['!sheetPr'] = sheetPr[0]
|
|
14690
14696
|
|
|
14691
14697
|
// /* 0.1.17 sheetFormatPr mor8t */
|
|
@@ -14694,6 +14700,7 @@ function parse_ws_xml(data, opts, idx, rels, wb, themes, styles) {
|
|
|
14694
14700
|
|
|
14695
14701
|
/* 0.1.17 sheetVeiw mor8t */
|
|
14696
14702
|
var sheetViews = data.match(sheetViewsregex);
|
|
14703
|
+
console.log('sheetViews',sheetViews)
|
|
14697
14704
|
if(sheetViews) s['!sheetViews'] = sheetViews[0]
|
|
14698
14705
|
|
|
14699
14706
|
|
|
@@ -23265,6 +23272,7 @@ function safe_parse_sheet(zip, path, relsPath, sheet, idx, sheetRels, sheets, st
|
|
|
23265
23272
|
sheetRels[sheet]=parse_rels(getzipstr(zip, relsPath, true), path);
|
|
23266
23273
|
var data = getzipdata(zip, path);
|
|
23267
23274
|
var _ws;
|
|
23275
|
+
console.log(data)
|
|
23268
23276
|
// console.log('safe_parse_sheet')
|
|
23269
23277
|
// console.log(stype)
|
|
23270
23278
|
switch(stype) {
|
|
@@ -23491,7 +23499,7 @@ function parse_zip(zip, opts) {
|
|
|
23491
23499
|
if(dir.vba.length > 0) out.vbaraw = getzipdata(zip,strip_front_slash(dir.vba[0]),true);
|
|
23492
23500
|
else if(dir.defaults && dir.defaults.bin === CT_VBA) out.vbaraw = getzipdata(zip, 'xl/vbaProject.bin',true);
|
|
23493
23501
|
}
|
|
23494
|
-
// console.log('
|
|
23502
|
+
// console.log('',JSON.stringify(out))
|
|
23495
23503
|
return out;
|
|
23496
23504
|
}
|
|
23497
23505
|
|
|
@@ -24718,7 +24726,6 @@ if(typeof require !== "undefined") {
|
|
|
24718
24726
|
var strmod = require('stream');
|
|
24719
24727
|
if((strmod||{}).Readable) set_readable(strmod.Readable);
|
|
24720
24728
|
}
|
|
24721
|
-
console.log(XLSX)
|
|
24722
24729
|
}
|
|
24723
24730
|
/*global define */
|
|
24724
24731
|
if(typeof exports !== 'undefined') make_xlsx_lib(exports);
|