@univerjs-pro/sheets-print 0.12.4 → 0.13.0
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +41 -41
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1cfa(_0x3bb899,_0x4395db){_0x3bb899=_0x3bb899-0x98;const _0x29eeb0=_0x29ee();let _0x1cfa77=_0x29eeb0[_0x3bb899];return _0x1cfa77;}const _0x1f4200=_0x1cfa;(function(_0x4fcaeb,_0x2c71d3){const _0x3755cd=_0x1cfa,_0x347afa=_0x4fcaeb();while(!![]){try{const _0x542153=-parseInt(_0x3755cd(0xc1))/0x1+-parseInt(_0x3755cd(0xab))/0x2*(-parseInt(_0x3755cd(0xa0))/0x3)+-parseInt(_0x3755cd(0xba))/0x4*(parseInt(_0x3755cd(0xa5))/0x5)+parseInt(_0x3755cd(0xb7))/0x6*(parseInt(_0x3755cd(0xca))/0x7)+parseInt(_0x3755cd(0xa7))/0x8+-parseInt(_0x3755cd(0x9b))/0x9*(parseInt(_0x3755cd(0xa8))/0xa)+parseInt(_0x3755cd(0xc3))/0xb*(parseInt(_0x3755cd(0xc8))/0xc);if(_0x542153===_0x2c71d3)break;else _0x347afa['push'](_0x347afa['shift']());}catch(_0x28ba0a){_0x347afa['push'](_0x347afa['shift']());}}}(_0x29ee,0x3128f));function _0x29ee(){const _0x19cd7c=['日期D','自訂頁首/頁尾','活頁簿','目前時間','Tabloid\x20(11\x22\x20x\x2017\x22)','時間D','hh:mm','調整至頁面大小','目前日期','頁首和頁尾','工作表頁碼','575502nGwjJu','圖片已成功複製到剪貼簿!','紙張大小','1036fucRWn','目前工作表','YYYY-MM-DD','顯示分頁線','已選取的儲存格','Statement\x20(5.5\x22\x20x\x208.5\x22)','日期F','387162RSChBi','日期E','1705WzvLYd','標準\x20(100%)','複製為圖片','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','格式設定','23892LgdRwS','時間B','7uTnQwE','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','日期C','工作表總頁數','選取範圍','活頁簿標題','A4\x20(8.27\x22\x20x\x2011.69\x22)','總頁數','B5\x20(6.93\x22\x20x\x209.84\x22)','時間A','總計:','B4\x20(9.84\x22\x20x\x2013.90\x22)','HH:mm','Legal\x20(8.5\x22\x20x\x2014\x22)','列印版面配置','編輯自訂頁首/頁尾','工作表名稱','MM-DD','每頁最大欄數','時間C','A5\x20(5.83\x22\x20x\x208.27\x22)','關閉並隱藏分頁線','下一步','水平對齊','Folio\x20(8.5\x22\x20x\x2013\x22)','9kmQGsb','顯示浮水印','日期B','Letter\x20(8.5\x22\x20x\x2011\x22)','MM/DD','22839JzYWlm','https://univer.ai/pro','Executive\x20(7.25\x22\x20x\x2010.5\x22)','重複凍結的欄','所有工作表','3945sgMdaq','調整至頁面高度','3213840BEVktm','2950610NtXlGX','日期格式','點擊以新增文字','74UhPkLu'];_0x29ee=function(){return _0x19cd7c;};return _0x29ee();}const e={'print':{'header':{'total':_0x1f4200(0xd4),'pages':'頁','cancel':'取消','next':_0x1f4200(0x98),'printing':'列印中,請勿關閉頁面'},'menu':'列印','title':'列印','grid':{'title':_0x1f4200(0xd8),'showGrid':'顯示分頁符號','showGridLabel':_0x1f4200(0xbd),'closeAndHide':_0x1f4200(0xdf)},'screenshot':{'title':_0x1f4200(0xc5),'success':_0x1f4200(0xb8),'fail':'圖片複製到剪貼簿失敗!'},'size':{'title':_0x1f4200(0xb9),'letter':_0x1f4200(0x9e),'tabloid':_0x1f4200(0xb0),'legal':_0x1f4200(0xd7),'statement':_0x1f4200(0xbf),'executive':_0x1f4200(0xa2),'folio':_0x1f4200(0x9a),'a3':'A3\x20(11.69\x22\x20x\x2016.54\x22)','a4':_0x1f4200(0xd0),'a5':_0x1f4200(0xde),'b4':_0x1f4200(0xd5),'b5':_0x1f4200(0xd2)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':'自訂义頁邊距','top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x1f4200(0xbb),'workbook':_0x1f4200(0xae),'currentSelection':_0x1f4200(0xbe),'maxRowsEachPage':'每頁最大列數','maxColumnsEachPage':_0x1f4200(0xdc),'limit':'列與欄限制','allSelection':'所有選取的儲存格'},'selection':{'title':_0x1f4200(0xce),'allWorkbook':_0x1f4200(0xa4),'workbookUnit':'張工作表'},'scale':{'title':'縮放','normal':_0x1f4200(0xc4),'fitWidth':'調整至頁面寬度','fitHeight':_0x1f4200(0xa6),'fitPage':_0x1f4200(0xb3),'custom':'自訂比例'},'orientation':{'title':'頁面方向','landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x1f4200(0xc7),'skeleton':'顯示格線','waterMark':_0x1f4200(0x9c)},'align':{'title':'對齊','horizontal':{'title':_0x1f4200(0x99),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':'垂直對齊','start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x1f4200(0xb5),'page':'頁碼','workbook':'活頁簿標題','sheet':_0x1f4200(0xda),'date':_0x1f4200(0xb4),'time':_0x1f4200(0xaf),'customHeadFooter':_0x1f4200(0xad),'editCustomHeadFooter':_0x1f4200(0xd9),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x1f4200(0xa9),'dateA':_0x1f4200(0xbc),'dateB':_0x1f4200(0xdb),'dateC':'L','dateD':_0x1f4200(0x9f),'timeA':'HH:mm:ss','timeB':_0x1f4200(0xd6),'timeC':'hh:mm:ss','timeD':_0x1f4200(0xb2),'display':{'page':'頁碼','title':_0x1f4200(0xcf),'sheet':_0x1f4200(0xda),'dateA':'日期A','dateB':_0x1f4200(0x9d),'dateC':_0x1f4200(0xcc),'dateD':_0x1f4200(0xac),'dateE':_0x1f4200(0xc2),'dateF':_0x1f4200(0xc0),'timeA':_0x1f4200(0xd3),'timeB':_0x1f4200(0xc9),'timeC':_0x1f4200(0xdd),'timeD':_0x1f4200(0xb1),'sheetPage':_0x1f4200(0xb6),'pageTotal':_0x1f4200(0xd1),'sheetPageTotal':_0x1f4200(0xcd)},'placeholder':_0x1f4200(0xaa),'submit':'確定'},'freeze':{'title':'列與欄標題','desc':'前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','row':'重複凍結的列','column':_0x1f4200(0xa3)},'limit':{'page':_0x1f4200(0xcb),'waterMark':_0x1f4200(0xc6),'link':_0x1f4200(0xa1)}}};module['exports']=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40dd7c=_0x3c67;(function(_0x4b95d7,_0x35f04e){const _0x224266=_0x3c67,_0x5c2c42=_0x4b95d7();while(!![]){try{const _0xb0baa1=-parseInt(_0x224266(0x1c7))/0x1*(-parseInt(_0x224266(0x1bc))/0x2)+parseInt(_0x224266(0x1c2))/0x3*(-parseInt(_0x224266(0x1e2))/0x4)+-parseInt(_0x224266(0x1df))/0x5+parseInt(_0x224266(0x1d4))/0x6*(parseInt(_0x224266(0x1b8))/0x7)+parseInt(_0x224266(0x1c6))/0x8*(-parseInt(_0x224266(0x1bf))/0x9)+-parseInt(_0x224266(0x1c8))/0xa+-parseInt(_0x224266(0x1d8))/0xb*(-parseInt(_0x224266(0x1dd))/0xc);if(_0xb0baa1===_0x35f04e)break;else _0x5c2c42['push'](_0x5c2c42['shift']());}catch(_0xa2b4b0){_0x5c2c42['push'](_0x5c2c42['shift']());}}}(_0x5e93,0xdabb0));import{ISheetPrintManagerService as _0x2aaf68,ConfirmSheetPrintOperation as _0x4eea5e,SheetPrintOpenOperation as _0xe382fd,CancelSheetPrintOperation as _0x3275c8,hasPrintFacadePermission as _0x25689b,SheetScreenShotOperation as _0x5f47f0,SheetPrintClientService as _0x91bf48,PrintArea as _0x1dcfd7,PrintFreeze as _0x35e83a,PrintHeaderFooter as _0x48aba4,PrintHeaderFooterSymbol as _0x3aca51}from'@univerjs-pro/sheets-print';import{ICommandService as _0x5cb157,PaperType as _0x47f4b5,CanceledError as _0x4d45ba}from'@univerjs/core';import{FWorkbook as _0x26f48e,FRange as _0x46d45a}from'@univerjs/sheets/facade';import{FEventName as _0x17a028,FEnum as _0xf161b8,FUniver as _0x3c0547}from'@univerjs/core/facade';import{PrintAlign as _0x4aad69,PrintPaperMargin as _0x46be27,PrintScale as _0x12a20b,PrintDirection as _0x40c19f}from'@univerjs-pro/print';class A extends _0x26f48e{[_0x40dd7c(0x1b5)](_0xfc6a73){const _0x10dae6=_0x40dd7c;return this[_0x10dae6(0x1be)][_0x10dae6(0x1c1)](_0x2aaf68)[_0x10dae6(0x1cb)](_0xfc6a73),this;}[_0x40dd7c(0x1c4)](_0x3a0ec2){const _0x5b49da=_0x40dd7c;return this[_0x5b49da(0x1be)][_0x5b49da(0x1c1)](_0x2aaf68)[_0x5b49da(0x1da)](_0x3a0ec2),this;}['print'](){const _0x352fa9=_0x40dd7c;return this[_0x352fa9(0x1be)][_0x352fa9(0x1c1)](_0x5cb157)[_0x352fa9(0x1c3)](_0x4eea5e['id']);}[_0x40dd7c(0x1c5)](){const _0x2f49b2=_0x40dd7c;return this[_0x2f49b2(0x1be)][_0x2f49b2(0x1c1)](_0x5cb157)[_0x2f49b2(0x1c3)](_0xe382fd['id']);}['closePrintDialog'](){const _0x575c20=_0x40dd7c;return this[_0x575c20(0x1be)][_0x575c20(0x1c1)](_0x5cb157)[_0x575c20(0x1c3)](_0x3275c8['id']);}async['saveScreenshotToClipboard'](){const _0x2ad23a=_0x40dd7c;return _0x25689b(this[_0x2ad23a(0x1be)])?this[_0x2ad23a(0x1be)][_0x2ad23a(0x1c1)](_0x5cb157)[_0x2ad23a(0x1d9)](_0x5f47f0['id']):!0x1;}}_0x26f48e['extend'](A);function _0x3c67(_0x10aa0f,_0x14c126){_0x10aa0f=_0x10aa0f-0x1b4;const _0x5e933a=_0x5e93();let _0x3c67ed=_0x5e933a[_0x10aa0f];return _0x3c67ed;}class B extends _0x46d45a{[_0x40dd7c(0x1b7)](){const _0x45378a=_0x40dd7c;return _0x25689b(this[_0x45378a(0x1be)])?this[_0x45378a(0x1be)][_0x45378a(0x1c1)](_0x91bf48)[_0x45378a(0x1de)](this[_0x45378a(0x1d0)][_0x45378a(0x1b9)](),this[_0x45378a(0x1c0)]['getSheetId'](),this['_range']):!0x1;}}_0x46d45a[_0x40dd7c(0x1e5)](B);class H{get[_0x40dd7c(0x1bb)](){const _0x4a5089=_0x40dd7c;return _0x4a5089(0x1bb);}get[_0x40dd7c(0x1b6)](){const _0x480cd5=_0x40dd7c;return _0x480cd5(0x1b6);}get[_0x40dd7c(0x1bd)](){return'BeforeSheetPrintCanceled';}get[_0x40dd7c(0x1d5)](){const _0x2a9b5f=_0x40dd7c;return _0x2a9b5f(0x1d5);}get[_0x40dd7c(0x1d7)](){const _0x40a456=_0x40dd7c;return _0x40a456(0x1d7);}get[_0x40dd7c(0x1ce)](){const _0x890b48=_0x40dd7c;return _0x890b48(0x1ce);}}_0x17a028['extend'](H);function _0x5e93(){const _0x1689d4=['132gznuZU','SheetPrintOpen','PrintDirection','SheetPrintConfirmed','14804053hHuXDM','executeCommand','updateRenderConfig','cancel','Event','36woxQaP','getRangeImage','2562345wbuTrh','renderConfig','getActiveSheet','4RBzsTb','registerEventHandler','getActiveUniverSheet','extend','PrintAlign','updatePrintConfig','BeforeSheetPrintConfirm','getScreenshot','40201cQQxMF','getUnitId','_initialize','BeforeSheetPrintOpen','201554rUPYCJ','BeforeSheetPrintCanceled','_injector','1152UBFXxR','_worksheet','get','1327749VlgJTp','syncExecuteCommand','updatePrintRenderConfig','openPrintDialog','104144vCzjEt','1NotjgX','7473160wLmffw','onCommandExecuted','layoutConfig','updateLayoutConfig','PrintHeaderFooterSymbol','PrintScale','SheetPrintCanceled','fireEvent','_workbook','PrintHeaderFooter','beforeCommandExecuted','PrintArea'];_0x5e93=function(){return _0x1689d4;};return _0x5e93();}class U{get[_0x40dd7c(0x1d3)](){return _0x1dcfd7;}get[_0x40dd7c(0x1b4)](){return _0x4aad69;}get['PrintPaperSize'](){return _0x47f4b5;}get['PrintPaperMargin'](){return _0x46be27;}get[_0x40dd7c(0x1cd)](){return _0x12a20b;}get[_0x40dd7c(0x1d6)](){return _0x40c19f;}get['PrintFreeze'](){return _0x35e83a;}get[_0x40dd7c(0x1d1)](){return _0x48aba4;}get[_0x40dd7c(0x1cc)](){return _0x3aca51;}}_0xf161b8[_0x40dd7c(0x1e5)](U);class M extends _0x3c0547{[_0x40dd7c(0x1ba)](_0x2e32ad){const _0x1aa725=_0x40dd7c,_0x18e36c=_0x2e32ad['get'](_0x5cb157);this[_0x1aa725(0x1e3)](this[_0x1aa725(0x1dc)][_0x1aa725(0x1bb)],()=>_0x18e36c[_0x1aa725(0x1d2)](_0x452c13=>{const _0x43ffd9=_0x1aa725;if(_0x452c13['id']===_0xe382fd['id']){const _0x3aa44d=this[_0x43ffd9(0x1e4)]();if(!_0x3aa44d)return;const _0x3ff9ca={'workbook':_0x3aa44d,'worksheet':_0x3aa44d[_0x43ffd9(0x1e1)]()};if(_0x3ff9ca==null)return;if(this['fireEvent'](this[_0x43ffd9(0x1dc)]['BeforeSheetPrintOpen'],_0x3ff9ca),_0x3ff9ca[_0x43ffd9(0x1db)])throw new _0x4d45ba();}})),this[_0x1aa725(0x1e3)](this['Event'][_0x1aa725(0x1b6)],()=>_0x18e36c[_0x1aa725(0x1d2)](_0x4752c4=>{const _0x329794=_0x1aa725;if(_0x4752c4['id']===_0x4eea5e['id']){const _0x3d2364=_0x2e32ad['get'](_0x2aaf68);if(!this[_0x329794(0x1e4)]())return;const _0x355261={'layoutConfig':_0x3d2364[_0x329794(0x1ca)],'renderConfig':_0x3d2364[_0x329794(0x1e0)]};if(_0x355261==null)return;if(this[_0x329794(0x1cf)](this['Event'][_0x329794(0x1b6)],_0x355261),_0x355261[_0x329794(0x1db)])throw new _0x4d45ba();}})),this[_0x1aa725(0x1e3)](this[_0x1aa725(0x1dc)][_0x1aa725(0x1bd)],()=>_0x18e36c[_0x1aa725(0x1d2)](_0xc48481=>{const _0x5c7349=_0x1aa725;if(_0xc48481['id']===_0x3275c8['id']){const _0x589155=_0x2e32ad[_0x5c7349(0x1c1)](_0x2aaf68);if(!this[_0x5c7349(0x1e4)]())return;const _0x2e0d89={'layoutConfig':_0x589155[_0x5c7349(0x1ca)],'renderConfig':_0x589155[_0x5c7349(0x1e0)]};if(_0x2e0d89==null)return;if(this[_0x5c7349(0x1cf)](this['Event'][_0x5c7349(0x1bd)],_0x2e0d89),_0x2e0d89[_0x5c7349(0x1db)])throw new _0x4d45ba();}})),this['registerEventHandler'](this[_0x1aa725(0x1dc)]['SheetPrintOpen'],()=>_0x18e36c[_0x1aa725(0x1c9)](_0x31e7f9=>{const _0x19506d=_0x1aa725;if(_0x31e7f9['id']===_0xe382fd['id']){const _0x406655=this['getActiveUniverSheet']();if(!_0x406655)return;const _0x25f4a7={'workbook':_0x406655,'worksheet':_0x406655[_0x19506d(0x1e1)]()};if(_0x25f4a7==null)return;this[_0x19506d(0x1cf)](this[_0x19506d(0x1dc)][_0x19506d(0x1d5)],_0x25f4a7);}})),this['registerEventHandler'](this[_0x1aa725(0x1dc)][_0x1aa725(0x1d7)],()=>_0x18e36c[_0x1aa725(0x1c9)](_0x4ffbce=>{const _0x3f7134=_0x1aa725;if(_0x4ffbce['id']===_0x4eea5e['id']){const _0x41b5b7=_0x2e32ad[_0x3f7134(0x1c1)](_0x2aaf68);if(!this[_0x3f7134(0x1e4)]())return;const _0x4bb054={'layoutConfig':_0x41b5b7[_0x3f7134(0x1ca)],'renderConfig':_0x41b5b7[_0x3f7134(0x1e0)]};if(_0x4bb054==null)return;this[_0x3f7134(0x1cf)](this[_0x3f7134(0x1dc)]['SheetPrintConfirmed'],_0x4bb054);}})),this[_0x1aa725(0x1e3)](this[_0x1aa725(0x1dc)][_0x1aa725(0x1ce)],()=>_0x18e36c[_0x1aa725(0x1c9)](_0x2b75dd=>{const _0x543c01=_0x1aa725;if(_0x2b75dd['id']===_0x3275c8['id']){const _0x4d8eb4=_0x2e32ad[_0x543c01(0x1c1)](_0x2aaf68);if(!this['getActiveUniverSheet']())return;const _0x5c6017={'layoutConfig':_0x4d8eb4[_0x543c01(0x1ca)],'renderConfig':_0x4d8eb4[_0x543c01(0x1e0)]};if(_0x5c6017==null)return;this['fireEvent'](this['Event'][_0x543c01(0x1ce)],_0x5c6017);}}));}}_0x3c0547[_0x40dd7c(0x1e5)](M);
|