From 891b6cce90187308697b43ff45783add4d91e4a6 Mon Sep 17 00:00:00 2001 From: "m.r" Date: Fri, 21 Jun 2024 14:47:43 -0800 Subject: [PATCH] V 5.3.0 --- CHANGELOG.md | 6 ++++++ README.md | 6 ++++++ change-log | 8 +++++--- dist/excel-table.mjs | 4 ++++ dist/excel-table.umd.js | 2 +- example/CDN/generateExcel/ex5.html | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/index.ts | 2 +- tsconfig.json | 28 +++++++++++++--------------- 10 files changed, 40 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c660eae..77e8590 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Version 5.3.0 (2024-06-21) + +### New Feature + +- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf)) + ## Version 5.2.0 (2024-02-08) ### New Features diff --git a/README.md b/README.md index 0996629..c52a91c 100644 --- a/README.md +++ b/README.md @@ -8468,6 +8468,12 @@ To migrate from Version 2 to Version 3, you need to follow the steps below: ## Release Notes [⬆️](#table-of-contents) +## Version 5.3.0 (2024-06-21) + +### New Feature + +- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf)) + ## Version 5.2.0 (2024-02-08) ### New Features diff --git a/change-log b/change-log index c54e7c9..b82c6de 100644 --- a/change-log +++ b/change-log @@ -1,5 +1,7 @@ -## Version 5.2.0 (2024-02-08) +# Changelog -### New Features +## Version 5.3.0 (2024-06-21) -- `generateCSV` & `generateText` functions create files in different formats, namely .csv and .txt +### New Feature + +- feat: add new dollar format (by [Sergio Fernández](https://github.com/xergiodf)) diff --git a/dist/excel-table.mjs b/dist/excel-table.mjs index 6f550fd..a851c6a 100644 --- a/dist/excel-table.mjs +++ b/dist/excel-table.mjs @@ -564,6 +564,10 @@ const Pt = { key: 182, value: '' }, + dollar_rounded: { + key: 183, + value: '' + }, dollar_2: { key: 183, value: '' diff --git a/dist/excel-table.umd.js b/dist/excel-table.umd.js index 0b6f45b..1c5422d 100644 --- a/dist/excel-table.umd.js +++ b/dist/excel-table.umd.js @@ -3,7 +3,7 @@ `+a.reduce((h,e)=>(e=e.toLowerCase(),t[e]?h:e=="svg"?(t.png=!0,t.svg=!0,h+''):e=="jpeg"||e=="jpg"?(t.jpeg=!0,t.jpg=!0,h+''):(t.curr=!0,h+'')),"")+S.reduce((h,e)=>h+'',"")+s+(n.length>0?n.reduce((h,e)=>h+'',""):"")+''+(l?'':"")+''+x.reduce((h,e)=>h+'',"")+(f.length>0?f.reduce((h,e,m)=>h+'',""):"")+''}function ae(s,S){return` Microsoft Excel0falseWorksheets`+s+' '+S+"falsefalsefalse16.0300"}function sc(s,S,a,x){s=s.toUpperCase();let f="";if(S.formula){let e=S,m=e.formula.indexOf("=")==0?e.formula.substring(1):e.formula,b=s.indexOf(":")>0,y=e.referenceCells?e.referenceCells:s,d=b?s.substring(0,s.indexOf(":")):s,i=d.replace(/[0-9]/g,""),c=parseInt(s.substr(i.length)),p=e.returnType?e.returnType:e.isArray||b?' t="str"':"",u="styleId"in e&&x&&typeof e.styleId=="string"&&x[e.styleId]?' s="'+x[e.styleId].index+'"':"",v=e.isArray||b?' t="array" ref="'+y+'"':"";return f='"+m+"",{column:i,row:c,needCalcChain:!1,isCustom:!0,cell:f}}let l=s.replace(/[0-9]/g,""),n=parseInt(s.substr(l.length)),t=!1,h="";if(S.noArgType){const e=S;if(e.noArgType=="NOW"||e.noArgType=="TODAY"){const m="styleId"in e&&x&&typeof e.styleId=="string"&&x[e.styleId]?' s="'+x[e.styleId].index+'"':"";f='"+e.noArgType+"()"}else{let m="NOW()";const b="styleId"in e&&x&&typeof e.styleId=="string"&&x[e.styleId]?' s="'+x[e.styleId].index+'"':"";f='"+e.noArgType.substring(4)+"("+m+")"}h='',t=!0}else if(S.referenceCell){const e=S;let m="";typeof e.value<"u"&&(m=","+e.value);let b="";e.type=="COT"&&(b="_xlfn.");const y="styleId"in e&&x&&typeof e.styleId=="string"&&x[e.styleId]?' s="'+x[e.styleId].index+'"':"";f='"+b+e.type+"("+e.referenceCell.toUpperCase()+m+")",h='',t=!0}else{const e=S;f='"+e.type+"("+e.start.toUpperCase()+":"+e.end.toUpperCase()+")"}return{column:l,row:n,cell:f,needCalcChain:t,chainCell:h}}function hc(s,S,a){let x=!1,f,l;if(typeof s=="object"){if("author"in s&&s.author&&(x=!0,l=s.author),"styleId"in s&&typeof s.styleId=="string"){let n=S[s.styleId];typeof n=="string"&&(a=n)}f="comment"in s&&typeof s.comment=="string"?Ac(s.comment):[""]}else f=s?Ac(s):[""];return x&&f.unshift(l+":"),{hasAuthor:x,author:l,commentStyle:a,commentStr:f}}function Ac(s){var S=s.split(/\r?\n|\r|\n/g);return S}function uc(s,S,a,x){let f='',l="";return S.forEach((n,t)=>{let h="";if(n.length==0){l+=` `;return}t>0&&(h=' xml:space="preserve"',l+=` -`),f+=""+a+""+l+n+"",l=""}),l.length>0&&f.indexOf("")>0&&(f=f.substring(0,f.length-8)+l+""),f+="",f}const de='',Qo=function(s){return s.replace(/\&/g,"&").replace(/\/g,">")};function tc(s,S){let a={result:[],str:S},x=s.reduce((f,l)=>{let n=f.str.indexOf(l);return f.result.push(f.str.substring(0,n)),f.str=f.str.substring(n+l.length),f},a);return x.result.push(x.str),x.result}function Oc(s,S,a,x,f,l,n,t,h){if(x){let e=[],m=[],b=[];const y=l.length;f.forEach((d,i)=>{let c;try{c=d.match(s)}catch(p){if(typeof s=="string")c=d.match("\\"+s);else throw p}if(c)if(t){let p;h?p=tc(c,d):p=d.split(s),e.push(...p),m.push(...c),b.push(...c.reduce((u,v)=>[...u,S],[]))}else{let p;h?p=tc(c,d):p=d.split(s).reduce((u,v,C)=>C>=2?(u[1]+=s+v,u):[...u,v],[]),e.push(...p),b.push(S),m.push(s.toString())}else e.push(d);y>i&&(m.push(l[i]),b.push(n[i]))}),f=e,l=m,n=b}else{let e;try{e=a.match(s)}catch(m){if(typeof s=="string")e=a.match("\\"+s);else throw m}e?t?(l.push(...e),n.push(...e.reduce((m,b)=>[...m,S],[])),h?f=tc(e,a):f=a.split(s)):(l.push(s.toString()),n.push(S),h?f=tc(e,a):f=a.split(s).reduce((m,b,y)=>y>=2?(m[1]+=s+b,m):[...m,b],[])):f.push(a),x=!0}return{v:s,text:a,splittedText:x,splitValue:f,matchValue:l,styleMatchValue:n}}function bc(s,S,a,x,f){if(typeof s=="object"){let l="",n=[],t=[],h=[],e=!1;if(Object.keys(s).forEach(d=>{const i=s[d];if(d!=="reg"){let c=Oc(d,typeof i=="string"?i:"",S,e,h,n,t,!1,f);e=c.splittedText,h=c.splitValue,n=c.matchValue,t=c.styleMatchValue}}),"reg"in s&&Array.isArray(s.reg)){const d=s.reg.length;for(let i=0;i0&&(l+=""+y+''+i+""),c.length>0&&(l+=""+(a[p]?a[p]:y)+''+c+"")}return h[b].length>0?l=""+l+""+y+""+Qo(h[b])+"":l=""+l+"",l}else return""+Qo(S)+""}const Ic={time:{key:165,value:''},date:{key:187,value:''},short_date:{key:14},fraction:{key:13},percentage:{key:9},float_1:{key:180,value:''},float_2:{key:181,value:''},float_3:{key:164,value:''},float_4:{key:182,value:''},dollar_2:{key:183,value:''},num_sep:{key:184,value:''},num_sep_1:{key:185,value:''},num_sep_2:{key:186,value:''},dollar:{key:163,value:''},$:{key:163,value:''},pound:{key:162,value:''},"£":{key:162,value:''},euro:{key:161,value:''},"€":{key:161,value:''},yen:{key:160,value:''},"¥":{key:160,value:''},CHF:{key:179,value:''},ruble:{key:178,value:''},"₽":{key:178,value:''},"֏":{key:177,value:''},manat:{key:176,value:''},"₼":{key:176,value:''},"₼1":{key:175,value:''},"₽1":{key:174,value:''},"₽2":{key:173,value:''},"₽3":{key:172,value:''},ريال:{key:171,value:''}},Fc=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],zc=(s,S,a=!1,x)=>{let f,l=!1;return typeof x=="function"?(f=x,l=!0):f=fetch,f(s).then(n=>l?n:a?n.arrayBuffer():n.blob()).then(n=>l||a?n:new File([n],S)).catch(n=>{throw n})};function qo(s,S){s=s.toUpperCase();let a=s.replace(/[0-9]/g,"");if(a.length==0)throw"Invalid Column";let x=parseInt(s.substring(a.length));if(isNaN(x))throw"Invalid Row";x=Math.max(0,x-1);let f=S.indexOf(a);return f<0&&(S=ec(S,Math.pow(10,a.length+1),""),f=S.indexOf(a),f<0&&(f=0)),{col:f,row:x}}let ne={},pc=new Proxy(ne,{get(s,S){return S in s?s[S]:(this.set(s,S,{},!0),{})},set(s,S,a,x){return s[S]=a,!0}});function Rc(s,S,a){pc[s],pc[s][S]=a}function Pc(s,S,a){Object.keys(a).forEach(f=>{const l=a[f];typeof l=="object"?f!="data"&&f!="headers"&&Pc(s,S.length>0?S+"."+f:f,l):Rc(s,S.length>0?S+"."+f:f,l)})}function se(s,S){Pc(s,"",S)}function he(s,S){let a=S,x=pc[s];return Object.keys(x).forEach(l=>{const n=l.split(".");let t=a,h=x[l];for(let e=0;e0&&(s=he(S,s)),typeof s.creator=="string"&&s.creator.trim().length<=0)throw'length of "creator" most be bigger then 0';if(typeof s.created=="string"&&new Date(s.created).toString()=="Invalid Date")throw'"created" is not valid date';if(typeof s.modified=="string"&&new Date(s.modified).toString()=="Invalid Date")throw'"modified" is not valid date';const a=s.backend,x={lt:"lessThan",gt:"greaterThan",between:"between",ct:"containsText",eq:"equal"};let f=[...Fc];s.numberOfColumn&&s.numberOfColumn>25&&(f=ec(f,s.numberOfColumn));const n=(await Promise.resolve().then(()=>gc)).default;let t=new n;const h=s.sheet.length;let e=t.folder("xl"),m=null,b=null,y=null;s.styles||(s.styles={}),s.addDefaultTitleStyle&&(s.styles.titleStyle={alignment:{horizontal:"center",vertical:"center"}});const d=Object.keys(s.styles),i=de,c=s.activateConditionalFormatting?s.activateConditionalFormatting:!1,p={},u={};let v=d.reduce((co,o,O)=>{const E=s.styles[o];if(E.type&&(E.type=="headerFooter"||E.type=="HF")){let P="",I="-",K="Regular";if(E.fontFamily&&(I=E.fontFamily),E.bold&&(K="Bold"),E.italic&&(K=="Regular"&&(K=""),K+="Italic"),(I!="-"||K!="Regular")&&(P='&"'+I+","+K+'"'),E.size&&(P+="&"+E.size),E.doubleUnderline?P+="&E":E.underline&&(P+="&U"),E.color){const Q=Uo(E.color,a);typeof Q=="string"&&Q.length>0&&(P+="&K"+Q.toUpperCase())}return p[o]=P,co}if(c&&typeof E.type=="string"&&E.type&&(E.type=="conditionalFormatting"||E.type.toUpperCase()=="CF")){u[o]=co.conditionalFormatting.count;let P=Uo(E.color,a),I=Uo(E.backgroundColor,a);return co.conditionalFormatting.value+=' ',co.conditionalFormatting.count++,co}const _={fillIndex:0,fontIndex:0,borderIndex:0,formatIndex:0};if(E.backgroundColor){let P=Uo(E.backgroundColor,a);_.fillIndex=co.fill.count,co.fill.count++,co.fill.value=co.fill.value+''+(P?'':"")+""}if(E.color||E.fontFamily||E.size||E.bold||E.italic||E.underline||E.doubleUnderline){const P=Uo(E.color,a);_.fontIndex=co.font.count,co.font.count++,co.font.value=co.font.value+""+(E.bold?"":"")+(E.italic?"":"")+(E.underline||E.doubleUnderline?"":"")+(E.size?'':"")+(P?'':"")+(E.fontFamily?'':"")+"",co.commentSyntax.value[o]=""+(E.bold?"":"")+(E.italic?"":"")+(E.underline||E.doubleUnderline?"":"")+''+(P?'':"")+''}let g="/>";E.alignment&&(E.alignment.rtl&&(E.alignment.readingOrder=2),delete E.alignment.rtl,E.alignment.ltr&&(E.alignment.readingOrder=1),delete E.alignment.ltr,g=' applyAlignment="1">P+" "+I+'="'+E.alignment[I]+'" ',"")+" />");const w=E.border;let F="";if(typeof w=="object"&&((w.left||w.full)&&(F+=''),(w.right||w.full)&&(F+=''),(w.top||w.full)&&(F+=''),(w.bottom||w.full)&&(F+=''),_.borderIndex=co.border.count,co.border.count++,co.border.value+=""+F+""),E.format){const P=Ic[E.format];P&&(_.formatIndex=P.key,"value"in P&&(co.format.count++,co.format.value+=P.value))}return co.cell.value=co.cell.value+'0?' applyBorder="1" ':"")+(_.fillIndex>0?' applyFill="1" ':"")+(_.fontIndex>=0?' applyFont="1" ':"")+(_.formatIndex>0?' applyNumberFormat="1" ':"")+g,s.styles[o].index=co.cell.count,co.cell.count++,co},{conditionalFormatting:{count:c?1:0,value:' '},commentSyntax:{value:{}},format:{count:0,value:""},border:{count:1,value:""},fill:{count:2,value:""},font:{count:2,value:""},cell:{count:2,value:""}});e==null||e.file("styles.xml",le(v,c));let C='',A="",T=0,j="",B="",N={};const z={};let H="",G=4,k=!1,L=-1,r=[],M=1;const so={checkbox:` +`),f+=""+a+""+l+n+"",l=""}),l.length>0&&f.indexOf("")>0&&(f=f.substring(0,f.length-8)+l+""),f+="",f}const de='',Qo=function(s){return s.replace(/\&/g,"&").replace(/\/g,">")};function tc(s,S){let a={result:[],str:S},x=s.reduce((f,l)=>{let n=f.str.indexOf(l);return f.result.push(f.str.substring(0,n)),f.str=f.str.substring(n+l.length),f},a);return x.result.push(x.str),x.result}function Oc(s,S,a,x,f,l,n,t,h){if(x){let e=[],m=[],b=[];const y=l.length;f.forEach((d,i)=>{let c;try{c=d.match(s)}catch(p){if(typeof s=="string")c=d.match("\\"+s);else throw p}if(c)if(t){let p;h?p=tc(c,d):p=d.split(s),e.push(...p),m.push(...c),b.push(...c.reduce((u,v)=>[...u,S],[]))}else{let p;h?p=tc(c,d):p=d.split(s).reduce((u,v,C)=>C>=2?(u[1]+=s+v,u):[...u,v],[]),e.push(...p),b.push(S),m.push(s.toString())}else e.push(d);y>i&&(m.push(l[i]),b.push(n[i]))}),f=e,l=m,n=b}else{let e;try{e=a.match(s)}catch(m){if(typeof s=="string")e=a.match("\\"+s);else throw m}e?t?(l.push(...e),n.push(...e.reduce((m,b)=>[...m,S],[])),h?f=tc(e,a):f=a.split(s)):(l.push(s.toString()),n.push(S),h?f=tc(e,a):f=a.split(s).reduce((m,b,y)=>y>=2?(m[1]+=s+b,m):[...m,b],[])):f.push(a),x=!0}return{v:s,text:a,splittedText:x,splitValue:f,matchValue:l,styleMatchValue:n}}function bc(s,S,a,x,f){if(typeof s=="object"){let l="",n=[],t=[],h=[],e=!1;if(Object.keys(s).forEach(d=>{const i=s[d];if(d!=="reg"){let c=Oc(d,typeof i=="string"?i:"",S,e,h,n,t,!1,f);e=c.splittedText,h=c.splitValue,n=c.matchValue,t=c.styleMatchValue}}),"reg"in s&&Array.isArray(s.reg)){const d=s.reg.length;for(let i=0;i0&&(l+=""+y+''+i+""),c.length>0&&(l+=""+(a[p]?a[p]:y)+''+c+"")}return h[b].length>0?l=""+l+""+y+""+Qo(h[b])+"":l=""+l+"",l}else return""+Qo(S)+""}const Ic={time:{key:165,value:''},date:{key:187,value:''},short_date:{key:14},fraction:{key:13},percentage:{key:9},float_1:{key:180,value:''},float_2:{key:181,value:''},float_3:{key:164,value:''},float_4:{key:182,value:''},dollar_rounded:{key:183,value:''},dollar_2:{key:183,value:''},num_sep:{key:184,value:''},num_sep_1:{key:185,value:''},num_sep_2:{key:186,value:''},dollar:{key:163,value:''},$:{key:163,value:''},pound:{key:162,value:''},"£":{key:162,value:''},euro:{key:161,value:''},"€":{key:161,value:''},yen:{key:160,value:''},"¥":{key:160,value:''},CHF:{key:179,value:''},ruble:{key:178,value:''},"₽":{key:178,value:''},"֏":{key:177,value:''},manat:{key:176,value:''},"₼":{key:176,value:''},"₼1":{key:175,value:''},"₽1":{key:174,value:''},"₽2":{key:173,value:''},"₽3":{key:172,value:''},ريال:{key:171,value:''}},Fc=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],zc=(s,S,a=!1,x)=>{let f,l=!1;return typeof x=="function"?(f=x,l=!0):f=fetch,f(s).then(n=>l?n:a?n.arrayBuffer():n.blob()).then(n=>l||a?n:new File([n],S)).catch(n=>{throw n})};function qo(s,S){s=s.toUpperCase();let a=s.replace(/[0-9]/g,"");if(a.length==0)throw"Invalid Column";let x=parseInt(s.substring(a.length));if(isNaN(x))throw"Invalid Row";x=Math.max(0,x-1);let f=S.indexOf(a);return f<0&&(S=ec(S,Math.pow(10,a.length+1),""),f=S.indexOf(a),f<0&&(f=0)),{col:f,row:x}}let ne={},pc=new Proxy(ne,{get(s,S){return S in s?s[S]:(this.set(s,S,{},!0),{})},set(s,S,a,x){return s[S]=a,!0}});function Rc(s,S,a){pc[s],pc[s][S]=a}function Pc(s,S,a){Object.keys(a).forEach(f=>{const l=a[f];typeof l=="object"?f!="data"&&f!="headers"&&Pc(s,S.length>0?S+"."+f:f,l):Rc(s,S.length>0?S+"."+f:f,l)})}function se(s,S){Pc(s,"",S)}function he(s,S){let a=S,x=pc[s];return Object.keys(x).forEach(l=>{const n=l.split(".");let t=a,h=x[l];for(let e=0;e0&&(s=he(S,s)),typeof s.creator=="string"&&s.creator.trim().length<=0)throw'length of "creator" most be bigger then 0';if(typeof s.created=="string"&&new Date(s.created).toString()=="Invalid Date")throw'"created" is not valid date';if(typeof s.modified=="string"&&new Date(s.modified).toString()=="Invalid Date")throw'"modified" is not valid date';const a=s.backend,x={lt:"lessThan",gt:"greaterThan",between:"between",ct:"containsText",eq:"equal"};let f=[...Fc];s.numberOfColumn&&s.numberOfColumn>25&&(f=ec(f,s.numberOfColumn));const n=(await Promise.resolve().then(()=>gc)).default;let t=new n;const h=s.sheet.length;let e=t.folder("xl"),m=null,b=null,y=null;s.styles||(s.styles={}),s.addDefaultTitleStyle&&(s.styles.titleStyle={alignment:{horizontal:"center",vertical:"center"}});const d=Object.keys(s.styles),i=de,c=s.activateConditionalFormatting?s.activateConditionalFormatting:!1,p={},u={};let v=d.reduce((co,o,O)=>{const E=s.styles[o];if(E.type&&(E.type=="headerFooter"||E.type=="HF")){let P="",I="-",K="Regular";if(E.fontFamily&&(I=E.fontFamily),E.bold&&(K="Bold"),E.italic&&(K=="Regular"&&(K=""),K+="Italic"),(I!="-"||K!="Regular")&&(P='&"'+I+","+K+'"'),E.size&&(P+="&"+E.size),E.doubleUnderline?P+="&E":E.underline&&(P+="&U"),E.color){const Q=Uo(E.color,a);typeof Q=="string"&&Q.length>0&&(P+="&K"+Q.toUpperCase())}return p[o]=P,co}if(c&&typeof E.type=="string"&&E.type&&(E.type=="conditionalFormatting"||E.type.toUpperCase()=="CF")){u[o]=co.conditionalFormatting.count;let P=Uo(E.color,a),I=Uo(E.backgroundColor,a);return co.conditionalFormatting.value+=' ',co.conditionalFormatting.count++,co}const _={fillIndex:0,fontIndex:0,borderIndex:0,formatIndex:0};if(E.backgroundColor){let P=Uo(E.backgroundColor,a);_.fillIndex=co.fill.count,co.fill.count++,co.fill.value=co.fill.value+''+(P?'':"")+""}if(E.color||E.fontFamily||E.size||E.bold||E.italic||E.underline||E.doubleUnderline){const P=Uo(E.color,a);_.fontIndex=co.font.count,co.font.count++,co.font.value=co.font.value+""+(E.bold?"":"")+(E.italic?"":"")+(E.underline||E.doubleUnderline?"":"")+(E.size?'':"")+(P?'':"")+(E.fontFamily?'':"")+"",co.commentSyntax.value[o]=""+(E.bold?"":"")+(E.italic?"":"")+(E.underline||E.doubleUnderline?"":"")+''+(P?'':"")+''}let g="/>";E.alignment&&(E.alignment.rtl&&(E.alignment.readingOrder=2),delete E.alignment.rtl,E.alignment.ltr&&(E.alignment.readingOrder=1),delete E.alignment.ltr,g=' applyAlignment="1">P+" "+I+'="'+E.alignment[I]+'" ',"")+" />");const w=E.border;let F="";if(typeof w=="object"&&((w.left||w.full)&&(F+=''),(w.right||w.full)&&(F+=''),(w.top||w.full)&&(F+=''),(w.bottom||w.full)&&(F+=''),_.borderIndex=co.border.count,co.border.count++,co.border.value+=""+F+""),E.format){const P=Ic[E.format];P&&(_.formatIndex=P.key,"value"in P&&(co.format.count++,co.format.value+=P.value))}return co.cell.value=co.cell.value+'0?' applyBorder="1" ':"")+(_.fillIndex>0?' applyFill="1" ':"")+(_.fontIndex>=0?' applyFont="1" ':"")+(_.formatIndex>0?' applyNumberFormat="1" ':"")+g,s.styles[o].index=co.cell.count,co.cell.count++,co},{conditionalFormatting:{count:c?1:0,value:' '},commentSyntax:{value:{}},format:{count:0,value:""},border:{count:1,value:""},fill:{count:2,value:""},font:{count:2,value:""},cell:{count:2,value:""}});e==null||e.file("styles.xml",le(v,c));let C='',A="",T=0,j="",B="",N={};const z={};let H="",G=4,k=!1,L=-1,r=[],M=1;const so={checkbox:` `};let $=1024;const po={checkbox:`'s from expanding the number of files TypeScript should add to a project. */ @@ -52,13 +50,13 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ - "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - "declarationMap": true, /* Create sourcemaps for d.ts files. */ + "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */, + "declarationMap": true /* Create sourcemaps for d.ts files. */, // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ - "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + "sourceMap": true /* Create source map files for emitted JavaScript files. */, // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ // "outFile": "./build", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - "outDir": "./build", /* Specify an output folder for all emitted files. */ + "outDir": "./build" /* Specify an output folder for all emitted files. */, // "removeComments": true, /* Disable emitting comments. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ @@ -80,12 +78,12 @@ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ + "strict": true /* Enable all strict type-checking options. */, // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ @@ -107,6 +105,6 @@ /* Completeness */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ } }