@univerjs-pro/sheets-print 1.1.0 → 1.3.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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +8 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3e8786=_0x48b8;function _0x48b8(_0x329496,_0x21eaac){_0x329496=_0x329496-0x15a;const _0x5b0938=_0x5b09();let _0x48b8da=_0x5b0938[_0x329496];return _0x48b8da;}(function(_0x1993f4,_0x38970a){const _0xc75afa=_0x48b8,_0x353d62=_0x1993f4();while(!![]){try{const _0x5f4cb0=-parseInt(_0xc75afa(0x193))/0x1*(parseInt(_0xc75afa(0x176))/0x2)+-parseInt(_0xc75afa(0x168))/0x3+-parseInt(_0xc75afa(0x197))/0x4+-parseInt(_0xc75afa(0x17a))/0x5+parseInt(_0xc75afa(0x16f))/0x6+parseInt(_0xc75afa(0x18d))/0x7*(parseInt(_0xc75afa(0x19c))/0x8)+-parseInt(_0xc75afa(0x183))/0x9*(-parseInt(_0xc75afa(0x188))/0xa);if(_0x5f4cb0===_0x38970a)break;else _0x353d62['push'](_0x353d62['shift']());}catch(_0x412189){_0x353d62['push'](_0x353d62['shift']());}}}(_0x5b09,0xef8e2));function _0x5b09(){const _0x107108=['153sLvQmd','自訂頁首/頁尾','自訂頁邊距','Tabloid\x20(11\x22\x20x\x2017\x22)','選取範圍','1585340lbLpNF','複製為圖片','A3\x20(11.69\x22\x20x\x2016.54\x22)','格式設定','hh:mm:ss','63iwdAme','顯示分頁線','已選取的儲存格','每頁最大列數','exports','該工作表已被保護,目前無列印權限。如需列印,請聯絡創作者。\x20','447389qnonSj','日期F','時間C','標準\x20(100%)','242848MErYgK','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','調整至頁面寬度','關閉並隱藏分頁線','目前時間','475896puRYGr','工作表頁碼','調整至頁面大小','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','HH:mm','重複凍結的列','日期C','顯示浮水印','總頁數','列印版面配置','YYYY/MM/DD','Executive\x20(7.25\x22\x20x\x2010.5\x22)','B5\x20(6.93\x22\x20x\x209.84\x22)','Legal\x20(8.5\x22\x20x\x2014\x22)','Statement\x20(5.5\x22\x20x\x208.5\x22)','日期A','4066152HpGAyz','頁面方向','時間A','https://pro.univer.ai','所有工作表','列與欄標題','自訂比例','4269072LqVxEc','重複凍結的欄','日期B','圖片已成功複製到剪貼簿!','顯示分頁符號','日期格式','MM/DD','2JsoVqW','紙張大小','時間B','列印中,請勿關閉頁面','5486350eAZudV','目前工作表','垂直對齊','活頁簿','A5\x20(5.83\x22\x20x\x208.27\x22)','YYYY-MM-DD','頁首和頁尾','調整至頁面高度','張工作表'];_0x5b09=function(){return _0x107108;};return _0x5b09();}const e={'sheets-print':{'permission':{'printErr':_0x3e8786(0x192)},'header':{'total':'總計:','pages':'頁','cancel':'取消','next':'下一步','printing':_0x3e8786(0x179)},'menu':'列印','title':'列印','grid':{'title':_0x3e8786(0x161),'showGrid':_0x3e8786(0x173),'showGridLabel':_0x3e8786(0x18e),'closeAndHide':_0x3e8786(0x19a)},'screenshot':{'title':_0x3e8786(0x189),'success':_0x3e8786(0x172),'fail':'圖片複製到剪貼簿失敗!'},'size':{'title':_0x3e8786(0x177),'letter':'Letter\x20(8.5\x22\x20x\x2011\x22)','tabloid':_0x3e8786(0x186),'legal':_0x3e8786(0x165),'statement':_0x3e8786(0x166),'executive':_0x3e8786(0x163),'folio':'Folio\x20(8.5\x22\x20x\x2013\x22)','a3':_0x3e8786(0x18a),'a4':'A4\x20(8.27\x22\x20x\x2011.69\x22)','a5':_0x3e8786(0x17e),'b4':'B4\x20(9.84\x22\x20x\x2013.90\x22)','b5':_0x3e8786(0x164)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x3e8786(0x185),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x3e8786(0x17b),'workbook':_0x3e8786(0x17d),'currentSelection':_0x3e8786(0x18f),'maxRowsEachPage':_0x3e8786(0x190),'maxColumnsEachPage':'每頁最大欄數','limit':'列與欄限制','allSelection':'所有選取的儲存格'},'selection':{'title':_0x3e8786(0x187),'allWorkbook':_0x3e8786(0x16c),'workbookUnit':_0x3e8786(0x182)},'scale':{'title':'縮放','normal':_0x3e8786(0x196),'fitWidth':_0x3e8786(0x199),'fitHeight':_0x3e8786(0x181),'fitPage':_0x3e8786(0x15a),'custom':_0x3e8786(0x16e)},'orientation':{'title':_0x3e8786(0x169),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x3e8786(0x18b),'skeleton':'顯示格線','waterMark':_0x3e8786(0x15f)},'align':{'title':'對齊','horizontal':{'title':'水平對齊','middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x3e8786(0x17c),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x3e8786(0x180),'page':'頁碼','workbook':'活頁簿標題','sheet':'工作表名稱','date':'目前日期','time':_0x3e8786(0x19b),'customHeadFooter':_0x3e8786(0x184),'editCustomHeadFooter':'編輯自訂頁首/頁尾','header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x3e8786(0x174),'dateA':_0x3e8786(0x17f),'dateB':'MM-DD','dateC':'L','dateD':_0x3e8786(0x175),'dateE':_0x3e8786(0x162),'timeA':'HH:mm:ss','timeB':_0x3e8786(0x15c),'timeC':_0x3e8786(0x18c),'timeD':'hh:mm','display':{'page':'頁碼','title':'活頁簿標題','sheet':'工作表名稱','dateA':_0x3e8786(0x167),'dateB':_0x3e8786(0x171),'dateC':_0x3e8786(0x15e),'dateD':'日期D','dateE':'日期E','dateF':_0x3e8786(0x194),'timeA':_0x3e8786(0x16a),'timeB':_0x3e8786(0x178),'timeC':_0x3e8786(0x195),'timeD':'時間D','sheetPage':_0x3e8786(0x19d),'pageTotal':_0x3e8786(0x160),'sheetPageTotal':'工作表總頁數'},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':_0x3e8786(0x16d),'desc':_0x3e8786(0x198),'row':_0x3e8786(0x15d),'column':_0x3e8786(0x170)},'limit':{'page':_0x3e8786(0x15b),'waterMark':'Univer\x20免費版本,由\x20univer.ai\x20提供支援。','link':_0x3e8786(0x16b)}}};module[_0x3e8786(0x191)]=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5485e5=_0x2910;(function(_0x5a9926,_0x10f1d5){const _0x106cc7=_0x2910,_0x585a34=_0x5a9926();while(!![]){try{const _0x1ab7f9=-parseInt(_0x106cc7(0x132))/0x1+parseInt(_0x106cc7(0x12d))/0x2*(parseInt(_0x106cc7(0x14d))/0x3)+-parseInt(_0x106cc7(0x13d))/0x4*(-parseInt(_0x106cc7(0x146))/0x5)+-parseInt(_0x106cc7(0x134))/0x6+parseInt(_0x106cc7(0x129))/0x7+parseInt(_0x106cc7(0x140))/0x8+parseInt(_0x106cc7(0x159))/0x9;if(_0x1ab7f9===_0x10f1d5)break;else _0x585a34['push'](_0x585a34['shift']());}catch(_0x591225){_0x585a34['push'](_0x585a34['shift']());}}}(_0x48f5,0x32d05));import{CancelSheetPrintOperation as _0x527c1f,ConfirmSheetPrintOperation as _0xc41f17,ISheetPrintManagerService as _0x35e188,PrintArea as _0x4dd764,PrintFreeze as _0x1ae97c,PrintHeaderFooter as _0x2ec70e,PrintHeaderFooterSymbol as _0x54ac16,SheetPrintClientService as _0x98c6d8,SheetPrintOpenOperation as _0x2b5d49,SheetScreenShotOperation as _0x3ecc71,hasPrintFacadePermission as _0xdc8df1}from'@univerjs-pro/sheets-print';import{CanceledError as _0x2414ec,ICommandService as _0x2ed9e1,PaperType as _0x209ed3}from'@univerjs/core';import{FRange as _0x1c1c27,FWorkbook as _0x407573}from'@univerjs/sheets/facade';function _0x2910(_0xa05245,_0x11463f){_0xa05245=_0xa05245-0x127;const _0x48f55b=_0x48f5();let _0x29107c=_0x48f55b[_0xa05245];return _0x29107c;}import{FEnum as _0x1bf1bb,FEventName as _0x2ffb22,FUniver as _0x537129}from'@univerjs/core/facade';import{PrintAlign as _0x5e8220,PrintDirection as _0x1ca011,PrintPaperMargin as _0xe1cfba,PrintScale as _0x3ce63d}from'@univerjs-pro/print';var C=class extends _0x407573{['updatePrintConfig'](_0x25e38f){const _0x1b1a2f=_0x2910;return this['_injector'][_0x1b1a2f(0x152)](_0x35e188)[_0x1b1a2f(0x139)](_0x25e38f),this;}[_0x5485e5(0x14c)](_0x5af832){const _0x369038=_0x5485e5;return this[_0x369038(0x13b)][_0x369038(0x152)](_0x35e188)[_0x369038(0x131)](_0x5af832),this;}[_0x5485e5(0x13c)](){const _0x102971=_0x5485e5;return this[_0x102971(0x13b)][_0x102971(0x152)](_0x2ed9e1)[_0x102971(0x142)](_0xc41f17['id']);}[_0x5485e5(0x151)](){const _0x1d58d1=_0x5485e5;return this[_0x1d58d1(0x13b)][_0x1d58d1(0x152)](_0x2ed9e1)['syncExecuteCommand'](_0x2b5d49['id']);}[_0x5485e5(0x143)](){const _0x5cfdce=_0x5485e5;return this['_injector'][_0x5cfdce(0x152)](_0x2ed9e1)['syncExecuteCommand'](_0x527c1f['id']);}async[_0x5485e5(0x12e)](){const _0x4b5c12=_0x5485e5;return _0xdc8df1(this[_0x4b5c12(0x13b)])?this[_0x4b5c12(0x13b)]['get'](_0x2ed9e1)['executeCommand'](_0x3ecc71['id']):!0x1;}};_0x407573['extend'](C);var w=class extends _0x1c1c27{['getScreenshot'](_0x3de9f1){const _0x555661=_0x5485e5;return _0xdc8df1(this[_0x555661(0x13b)])?this['_injector'][_0x555661(0x152)](_0x98c6d8)[_0x555661(0x127)](this[_0x555661(0x156)][_0x555661(0x141)](),this[_0x555661(0x12f)][_0x555661(0x13f)](),this[_0x555661(0x137)],_0x3de9f1==null?void 0x0:_0x3de9f1[_0x555661(0x128)]):!0x1;}};_0x1c1c27[_0x5485e5(0x133)](w);var T=class extends _0x2ffb22{get['BeforeSheetPrintOpen'](){const _0x229497=_0x5485e5;return _0x229497(0x147);}get[_0x5485e5(0x14b)](){const _0x425920=_0x5485e5;return _0x425920(0x14b);}get['BeforeSheetPrintCanceled'](){const _0x1ece30=_0x5485e5;return _0x1ece30(0x150);}get[_0x5485e5(0x153)](){return'SheetPrintOpen';}get[_0x5485e5(0x136)](){return'SheetPrintConfirmed';}get[_0x5485e5(0x14e)](){const _0x2e5b56=_0x5485e5;return _0x2e5b56(0x14e);}};_0x2ffb22[_0x5485e5(0x133)](T);var E=class extends _0x1bf1bb{get[_0x5485e5(0x138)](){return _0x4dd764;}get[_0x5485e5(0x12a)](){return _0x5e8220;}get[_0x5485e5(0x12b)](){return _0x209ed3;}get['PrintPaperMargin'](){return _0xe1cfba;}get['PrintScale'](){return _0x3ce63d;}get[_0x5485e5(0x14f)](){return _0x1ca011;}get['PrintFreeze'](){return _0x1ae97c;}get[_0x5485e5(0x155)](){return _0x2ec70e;}get[_0x5485e5(0x154)](){return _0x54ac16;}};_0x1bf1bb['extend'](E);function _0x48f5(){const _0x1616ab=['includeHeaders','1079372BQDLNa','PrintAlign','PrintPaperSize','getActiveWorkbook','298soZkQT','saveScreenshotToClipboard','_worksheet','layoutConfig','updateRenderConfig','52699tNRolp','extend','1575432qtYYkB','getActiveSheet','SheetPrintConfirmed','_range','PrintArea','updateLayoutConfig','renderConfig','_injector','print','54236hRFlNB','disposeWithMe','getSheetId','922776yCPxkA','getUnitId','syncExecuteCommand','closePrintDialog','cancel','onCommandExecuted','15CUPWEI','BeforeSheetPrintOpen','Event','_initialize','fireEvent','BeforeSheetPrintConfirm','updatePrintRenderConfig','3027NXUkQE','SheetPrintCanceled','PrintDirection','BeforeSheetPrintCanceled','openPrintDialog','get','SheetPrintOpen','PrintHeaderFooterSymbol','PrintHeaderFooter','_workbook','registerEventHandler','beforeCommandExecuted','565587aYiyzc','getRangeImage'];_0x48f5=function(){return _0x1616ab;};return _0x48f5();}var D=class extends _0x537129{[_0x5485e5(0x149)](_0x507678){const _0x555e5d=_0x5485e5;let _0x2ce186=_0x507678[_0x555e5d(0x152)](_0x2ed9e1);this[_0x555e5d(0x13e)](this[_0x555e5d(0x157)](this[_0x555e5d(0x148)]['BeforeSheetPrintOpen'],()=>_0x2ce186['beforeCommandExecuted'](_0x3accd0=>{const _0x1a73c7=_0x555e5d;if(_0x3accd0['id']===_0x2b5d49['id']){let _0x345e5e=this[_0x1a73c7(0x12c)]();if(!_0x345e5e)return;let _0x1b69fb={'workbook':_0x345e5e,'worksheet':_0x345e5e[_0x1a73c7(0x135)]()};if(_0x1b69fb==null)return;if(this['fireEvent'](this[_0x1a73c7(0x148)]['BeforeSheetPrintOpen'],_0x1b69fb),_0x1b69fb[_0x1a73c7(0x144)])throw new _0x2414ec();}}))),this[_0x555e5d(0x13e)](this['registerEventHandler'](this[_0x555e5d(0x148)][_0x555e5d(0x14b)],()=>_0x2ce186[_0x555e5d(0x158)](_0x33a245=>{const _0x5de442=_0x555e5d;if(_0x33a245['id']===_0xc41f17['id']){let _0x3536c6=_0x507678[_0x5de442(0x152)](_0x35e188);if(!this['getActiveWorkbook']())return;let _0x1dc703={'layoutConfig':_0x3536c6[_0x5de442(0x130)],'renderConfig':_0x3536c6['renderConfig']};if(_0x1dc703==null)return;if(this[_0x5de442(0x14a)](this[_0x5de442(0x148)]['BeforeSheetPrintConfirm'],_0x1dc703),_0x1dc703['cancel'])throw new _0x2414ec();}}))),this[_0x555e5d(0x13e)](this[_0x555e5d(0x157)](this[_0x555e5d(0x148)][_0x555e5d(0x150)],()=>_0x2ce186[_0x555e5d(0x158)](_0x219b84=>{const _0x44ae6b=_0x555e5d;if(_0x219b84['id']===_0x527c1f['id']){let _0x3b944c=_0x507678[_0x44ae6b(0x152)](_0x35e188);if(!this[_0x44ae6b(0x12c)]())return;let _0x148219={'layoutConfig':_0x3b944c[_0x44ae6b(0x130)],'renderConfig':_0x3b944c[_0x44ae6b(0x13a)]};if(_0x148219==null)return;if(this[_0x44ae6b(0x14a)](this['Event']['BeforeSheetPrintCanceled'],_0x148219),_0x148219[_0x44ae6b(0x144)])throw new _0x2414ec();}}))),this[_0x555e5d(0x13e)](this[_0x555e5d(0x157)](this[_0x555e5d(0x148)][_0x555e5d(0x153)],()=>_0x2ce186[_0x555e5d(0x145)](_0x383f3a=>{const _0x34636=_0x555e5d;if(_0x383f3a['id']===_0x2b5d49['id']){let _0x440f39=this[_0x34636(0x12c)]();if(!_0x440f39)return;let _0x2e14c7={'workbook':_0x440f39,'worksheet':_0x440f39[_0x34636(0x135)]()};if(_0x2e14c7==null)return;this[_0x34636(0x14a)](this[_0x34636(0x148)][_0x34636(0x153)],_0x2e14c7);}}))),this[_0x555e5d(0x13e)](this['registerEventHandler'](this[_0x555e5d(0x148)][_0x555e5d(0x136)],()=>_0x2ce186[_0x555e5d(0x145)](_0x56ee53=>{const _0x553876=_0x555e5d;if(_0x56ee53['id']===_0xc41f17['id']){let _0x221d08=_0x507678[_0x553876(0x152)](_0x35e188);if(!this['getActiveWorkbook']())return;let _0x6a29c0={'layoutConfig':_0x221d08['layoutConfig'],'renderConfig':_0x221d08[_0x553876(0x13a)]};if(_0x6a29c0==null)return;this[_0x553876(0x14a)](this[_0x553876(0x148)]['SheetPrintConfirmed'],_0x6a29c0);}}))),this[_0x555e5d(0x13e)](this[_0x555e5d(0x157)](this[_0x555e5d(0x148)][_0x555e5d(0x14e)],()=>_0x2ce186[_0x555e5d(0x145)](_0x24936d=>{const _0x5880c6=_0x555e5d;if(_0x24936d['id']===_0x527c1f['id']){let _0x1982de=_0x507678['get'](_0x35e188);if(!this[_0x5880c6(0x12c)]())return;let _0x42520e={'layoutConfig':_0x1982de[_0x5880c6(0x130)],'renderConfig':_0x1982de[_0x5880c6(0x13a)]};if(_0x42520e==null)return;this[_0x5880c6(0x14a)](this[_0x5880c6(0x148)]['SheetPrintCanceled'],_0x42520e);}})));}};_0x537129[_0x5485e5(0x133)](D);export{};
|