@flyfish-group/file-viewer3 1.0.3 → 1.0.4

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.
@@ -59,4 +59,4 @@ use chrome, FireFox or Internet Explorer 11`)}var n=e("safe-buffer"),t=e("random
59
59
  * @author Louis-Dominique Dubeau
60
60
  * @license MIT
61
61
  * @copyright Louis-Dominique Dubeau
62
- */function d(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}Object.defineProperty(_,"__esModule",{value:!0}),_.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",_.NC_NAME_CHAR="-"+_.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.NC_NAME_START_CHAR_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]$","u"),_.NC_NAME_CHAR_RE=new RegExp("^["+_.NC_NAME_CHAR+"]$","u"),_.NC_NAME_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]["+_.NC_NAME_CHAR+"]*$","u"),_.isNCNameStartChar=d,_.isNCNameChar=function(o){return d(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}]},{},[15])(15)})})(jr);var vn=jr.exports,wn=yn(vn);const ir=self;ir.onmessage=W=>Jt(this,null,function*(){const{data:{type:Z,payload:{sheet:e,workbook:S}}}=W;switch(Z){case"parseWorkbook":yield _n(S);break;case"parseSheet":xn(e);break}}),ir.onerror=W=>{console.error(W)};const _n=W=>Jt(this,null,function*(){var Z,e;Le.workbook=yield new wn.Workbook().xlsx.load(W),kn(),Sn((e=(Z=Le.workbook)==null?void 0:Z.model)==null?void 0:e.themes)}),xn=W=>{const Z=Le.workbook,e=Le.sheets;if(Z!=null&&Z.getWorksheet&&e.length){const S=Z.getWorksheet(W);if(!S)return;const _=yr.create(S).toObject();ir.postMessage({type:"parseSheet",payload:{sheetData:_}})}},kn=()=>{const W=Le.workbook;return W!=null&&W.worksheets&&(Le.sheets=W.worksheets.filter(Z=>Z.rowCount).map(Z=>({id:Z.id,name:Z.name})),ir.postMessage({type:"sheets",payload:{sheets:Le.sheets}})),[]},Sn=W=>{Array.isArray(W)?W.forEach(Ir):W&&Object.values(W).forEach(Ir)},Ir=W=>{const Z=he(W),S=ae(Z,_=>_.tagName==="a:clrScheme")[0];if(S){const _=S.children,d={};for(let o=0;o<_.length;o++){const a=_[o];if(!a)continue;const n=a.children[0];if(!n)continue;let t;n.tagName==="a:sysClr"?t=n.attributes.lastClr:t=n.attributes.val,d[a.tagName.substring(2)]=t||"000000"}Le.themeColors=d}}})();
62
+ */function d(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}Object.defineProperty(_,"__esModule",{value:!0}),_.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",_.NC_NAME_CHAR="-"+_.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.NC_NAME_START_CHAR_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]$","u"),_.NC_NAME_CHAR_RE=new RegExp("^["+_.NC_NAME_CHAR+"]$","u"),_.NC_NAME_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]["+_.NC_NAME_CHAR+"]*$","u"),_.isNCNameStartChar=d,_.isNCNameChar=function(o){return d(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}]},{},[15])(15)})})(jr);var vn=jr.exports,wn=yn(vn);const ir=self;ir.onmessage=W=>Jt(this,null,function*(){const{data:{type:Z,payload:{sheet:e,workbook:S}}}=W;switch(Z){case"parseWorkbook":yield _n(S);break;case"parseSheet":xn(e);break}}),ir.onerror=W=>{console.error(W)};const _n=W=>Jt(this,null,function*(){var Z,e;Le.workbook=yield new wn.Workbook().xlsx.load(W,{ignoreNodes:["dataValidations"]}),kn(),Sn((e=(Z=Le.workbook)==null?void 0:Z.model)==null?void 0:e.themes)}),xn=W=>{const Z=Le.workbook,e=Le.sheets;if(Z!=null&&Z.getWorksheet&&e.length){const S=Z.getWorksheet(W);if(!S)return;const _=yr.create(S).toObject();ir.postMessage({type:"parseSheet",payload:{sheetData:_}})}},kn=()=>{const W=Le.workbook;return W!=null&&W.worksheets&&(Le.sheets=W.worksheets.filter(Z=>Z.rowCount).map(Z=>({id:Z.id,name:Z.name})),ir.postMessage({type:"sheets",payload:{sheets:Le.sheets}})),[]},Sn=W=>{Array.isArray(W)?W.forEach(Ir):W&&Object.values(W).forEach(Ir)},Ir=W=>{const Z=he(W),S=ae(Z,_=>_.tagName==="a:clrScheme")[0];if(S){const _=S.children,d={};for(let o=0;o<_.length;o++){const a=_[o];if(!a)continue;const n=a.children[0];if(!n)continue;let t;n.tagName==="a:sysClr"?t=n.attributes.lastClr:t=n.attributes.val,d[a.tagName.substring(2)]=t||"000000"}Le.themeColors=d}}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyfish-group/file-viewer3",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "description": "基于Vue3+TypeScript+Vite实现的文件在线预览组件,此组件开源,请打赏任意金额即可获取仓库地址",
6
6
  "keywords": [