@univerjs-pro/sheets-print 0.15.0 → 0.15.1-insiders.20260117-8ce4a01
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 +42 -41
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-range.d.ts +14 -3
- package/lib/types/services/sheet-print.service.d.ts +1 -1
- package/lib/types/views/components/sheet-print-canvas-view.d.ts +4 -0
- 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 +17 -17
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x136b(_0x3de80a,_0x56ec78){_0x3de80a=_0x3de80a-0x124;const _0x327d33=_0x327d();let _0x136b4f=_0x327d33[_0x3de80a];return _0x136b4f;}const _0x170dc0=_0x136b;(function(_0xff584,_0x396dff){const _0x406a3d=_0x136b,_0xfc7ea8=_0xff584();while(!![]){try{const _0x540576=-parseInt(_0x406a3d(0x13b))/0x1+-parseInt(_0x406a3d(0x13e))/0x2*(-parseInt(_0x406a3d(0x148))/0x3)+-parseInt(_0x406a3d(0x13d))/0x4+parseInt(_0x406a3d(0x14f))/0x5+parseInt(_0x406a3d(0x125))/0x6+-parseInt(_0x406a3d(0x14e))/0x7+-parseInt(_0x406a3d(0x135))/0x8*(-parseInt(_0x406a3d(0x13f))/0x9);if(_0x540576===_0x396dff)break;else _0xfc7ea8['push'](_0xfc7ea8['shift']());}catch(_0x1635f9){_0xfc7ea8['push'](_0xfc7ea8['shift']());}}}(_0x327d,0xf0bb3));const e={'print':{'header':{'total':_0x170dc0(0x156),'pages':'頁','cancel':'取消','next':_0x170dc0(0x138),'printing':'列印中,請勿關閉頁面'},'menu':'列印','title':'列印','grid':{'title':'列印版面配置','showGrid':_0x170dc0(0x14a),'showGridLabel':'顯示分頁線','closeAndHide':'關閉並隱藏分頁線'},'screenshot':{'title':_0x170dc0(0x160),'success':_0x170dc0(0x137),'fail':_0x170dc0(0x139)},'size':{'title':'紙張大小','letter':_0x170dc0(0x143),'tabloid':_0x170dc0(0x153),'legal':'Legal\x20(8.5\x22\x20x\x2014\x22)','statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':_0x170dc0(0x159),'folio':_0x170dc0(0x144),'a3':'A3\x20(11.69\x22\x20x\x2016.54\x22)','a4':_0x170dc0(0x14b),'a5':_0x170dc0(0x15d),'b4':_0x170dc0(0x15f),'b5':_0x170dc0(0x152)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x170dc0(0x126),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x170dc0(0x140),'workbook':'活頁簿','currentSelection':_0x170dc0(0x132),'maxRowsEachPage':_0x170dc0(0x130),'maxColumnsEachPage':_0x170dc0(0x149),'limit':_0x170dc0(0x154),'allSelection':_0x170dc0(0x13c)},'selection':{'title':_0x170dc0(0x127),'allWorkbook':_0x170dc0(0x12f),'workbookUnit':_0x170dc0(0x136)},'scale':{'title':'縮放','normal':_0x170dc0(0x124),'fitWidth':_0x170dc0(0x128),'fitHeight':_0x170dc0(0x141),'fitPage':_0x170dc0(0x151),'custom':_0x170dc0(0x14d)},'orientation':{'title':'頁面方向','landscape':'橫向','portrait':'直向'},'formatting':{'title':'格式設定','skeleton':_0x170dc0(0x147),'waterMark':_0x170dc0(0x146)},'align':{'title':'對齊','horizontal':{'title':_0x170dc0(0x15c),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':'垂直對齊','start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x170dc0(0x12a),'page':'頁碼','workbook':_0x170dc0(0x12c),'sheet':'工作表名稱','date':_0x170dc0(0x145),'time':_0x170dc0(0x158),'customHeadFooter':_0x170dc0(0x12b),'editCustomHeadFooter':_0x170dc0(0x134),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x170dc0(0x15b),'dateA':'YYYY-MM-DD','dateB':'MM-DD','dateC':'L','dateD':_0x170dc0(0x162),'timeA':'HH:mm:ss','timeB':_0x170dc0(0x163),'timeC':_0x170dc0(0x15a),'timeD':'hh:mm','display':{'page':'頁碼','title':_0x170dc0(0x12c),'sheet':_0x170dc0(0x150),'dateA':_0x170dc0(0x161),'dateB':'日期B','dateC':'日期C','dateD':'日期D','dateE':_0x170dc0(0x14c),'dateF':_0x170dc0(0x129),'timeA':'時間A','timeB':'時間B','timeC':_0x170dc0(0x157),'timeD':_0x170dc0(0x142),'sheetPage':_0x170dc0(0x155),'pageTotal':'總頁數','sheetPageTotal':_0x170dc0(0x12d)},'placeholder':_0x170dc0(0x133),'submit':'確定'},'freeze':{'title':_0x170dc0(0x13a),'desc':_0x170dc0(0x15e),'row':'重複凍結的列','column':'重複凍結的欄'},'limit':{'page':_0x170dc0(0x12e),'waterMark':'Univer\x20免費版本,由\x20univer.ai\x20提供支援。','link':_0x170dc0(0x131)}}};export{e as default};function _0x327d(){const _0x175af8=['所有選取的儲存格','1979736gkBNac','6mdMRoC','9iqTgWu','目前工作表','調整至頁面高度','時間D','Letter\x20(8.5\x22\x20x\x2011\x22)','Folio\x20(8.5\x22\x20x\x2013\x22)','目前日期','顯示浮水印','顯示格線','320907KgLEtK','每頁最大欄數','顯示分頁符號','A4\x20(8.27\x22\x20x\x2011.69\x22)','日期E','自訂比例','5582927LEpBzl','821445lWpdZv','工作表名稱','調整至頁面大小','B5\x20(6.93\x22\x20x\x209.84\x22)','Tabloid\x20(11\x22\x20x\x2017\x22)','列與欄限制','工作表頁碼','總計:','時間C','目前時間','Executive\x20(7.25\x22\x20x\x2010.5\x22)','hh:mm:ss','日期格式','水平對齊','A5\x20(5.83\x22\x20x\x208.27\x22)','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','B4\x20(9.84\x22\x20x\x2013.90\x22)','複製為圖片','日期A','MM/DD','HH:mm','標準\x20(100%)','7491246UJKtgC','自訂义頁邊距','選取範圍','調整至頁面寬度','日期F','頁首和頁尾','自訂頁首/頁尾','活頁簿標題','工作表總頁數','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','所有工作表','每頁最大列數','https://univer.ai/pro','已選取的儲存格','點擊以新增文字','編輯自訂頁首/頁尾','7521320NfpLTU','張工作表','圖片已成功複製到剪貼簿!','下一步','圖片複製到剪貼簿失敗!','列與欄標題','395372dDPoJS'];_0x327d=function(){return _0x175af8;};return _0x327d();}
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x495967=_0x37c4;(function(_0x732dd1,_0x2d11ab){const _0x4a76f7=_0x37c4,_0x46c482=_0x732dd1();while(!![]){try{const _0x4c1c8b=parseInt(_0x4a76f7(0x1b8))/0x1+parseInt(_0x4a76f7(0x1a9))/0x2+-parseInt(_0x4a76f7(0x1bb))/0x3+-parseInt(_0x4a76f7(0x1be))/0x4+-parseInt(_0x4a76f7(0x1b2))/0x5*(parseInt(_0x4a76f7(0x1b5))/0x6)+-parseInt(_0x4a76f7(0x1bf))/0x7+parseInt(_0x4a76f7(0x1b6))/0x8*(parseInt(_0x4a76f7(0x1ca))/0x9);if(_0x4c1c8b===_0x2d11ab)break;else _0x46c482['push'](_0x46c482['shift']());}catch(_0x2ee345){_0x46c482['push'](_0x46c482['shift']());}}}(_0xa0bd,0x52005));import{ISheetPrintManagerService as _0x3feb1b,ConfirmSheetPrintOperation as _0x53b227,SheetPrintOpenOperation as _0x3672c2,CancelSheetPrintOperation as _0xa2a2a6,hasPrintFacadePermission as _0x6bfffe,SheetScreenShotOperation as _0xc6f4e9,SheetPrintClientService as _0x3f98d9,PrintArea as _0xb5f9c8,PrintFreeze as _0x48daaf,PrintHeaderFooter as _0xbc1973,PrintHeaderFooterSymbol as _0x224c7b}from'@univerjs-pro/sheets-print';import{ICommandService as _0x1c9755,PaperType as _0x2e3c59,CanceledError as _0x15776a}from'@univerjs/core';import{FWorkbook as _0x4e8765,FRange as _0x494c1c}from'@univerjs/sheets/facade';import{FEventName as _0x2d8395,FEnum as _0x5c5be1,FUniver as _0xed2c17}from'@univerjs/core/facade';import{PrintAlign as _0x3eb96f,PrintPaperMargin as _0x5f22c9,PrintScale as _0x1bb44b,PrintDirection as _0x151d42}from'@univerjs-pro/print';function _0xa0bd(){const _0x235b6b=['SheetPrintOpen','Event','getScreenshot','PrintAlign','57355amrrHq','openPrintDialog','BeforeSheetPrintConfirm','198NZEFgf','35776gjXKuB','executeCommand','193490ucMwcG','BeforeSheetPrintOpen','PrintHeaderFooter','1558251STijUd','syncExecuteCommand','getActiveUniverSheet','2181632TRHbFB','3426941zxWBug','saveScreenshotToClipboard','PrintDirection','SheetPrintConfirmed','fireEvent','closePrintDialog','get','renderConfig','cancel','getActiveSheet','includeHeaders','3393EjimMN','_injector','updateLayoutConfig','updatePrintConfig','_worksheet','_range','getRangeImage','layoutConfig','PrintPaperMargin','onCommandExecuted','registerEventHandler','PrintArea','beforeCommandExecuted','SheetPrintCanceled','PrintFreeze','778748vFvBwe','extend','_workbook','BeforeSheetPrintCanceled','getUnitId'];_0xa0bd=function(){return _0x235b6b;};return _0xa0bd();}class A extends _0x4e8765{[_0x495967(0x1cd)](_0x5170a1){const _0x3605a7=_0x495967;return this[_0x3605a7(0x1cb)][_0x3605a7(0x1c5)](_0x3feb1b)[_0x3605a7(0x1cc)](_0x5170a1),this;}['updatePrintRenderConfig'](_0x580df1){const _0x774e0d=_0x495967;return this[_0x774e0d(0x1cb)][_0x774e0d(0x1c5)](_0x3feb1b)['updateRenderConfig'](_0x580df1),this;}['print'](){const _0x2d12bb=_0x495967;return this[_0x2d12bb(0x1cb)][_0x2d12bb(0x1c5)](_0x1c9755)[_0x2d12bb(0x1bc)](_0x53b227['id']);}[_0x495967(0x1b3)](){const _0x504d5f=_0x495967;return this[_0x504d5f(0x1cb)][_0x504d5f(0x1c5)](_0x1c9755)[_0x504d5f(0x1bc)](_0x3672c2['id']);}[_0x495967(0x1c4)](){const _0x4aa93f=_0x495967;return this['_injector'][_0x4aa93f(0x1c5)](_0x1c9755)[_0x4aa93f(0x1bc)](_0xa2a2a6['id']);}async[_0x495967(0x1c0)](){const _0x681362=_0x495967;return _0x6bfffe(this[_0x681362(0x1cb)])?this[_0x681362(0x1cb)][_0x681362(0x1c5)](_0x1c9755)[_0x681362(0x1b7)](_0xc6f4e9['id']):!0x1;}}_0x4e8765['extend'](A);class B extends _0x494c1c{[_0x495967(0x1b0)](_0x59890d){const _0x5a1b02=_0x495967;return _0x6bfffe(this[_0x5a1b02(0x1cb)])?this['_injector'][_0x5a1b02(0x1c5)](_0x3f98d9)[_0x5a1b02(0x1d0)](this[_0x5a1b02(0x1ab)][_0x5a1b02(0x1ad)](),this[_0x5a1b02(0x1ce)]['getSheetId'](),this[_0x5a1b02(0x1cf)],_0x59890d==null?void 0x0:_0x59890d[_0x5a1b02(0x1c9)]):!0x1;}}_0x494c1c[_0x495967(0x1aa)](B);class H{get['BeforeSheetPrintOpen'](){return'BeforeSheetPrintOpen';}get[_0x495967(0x1b4)](){const _0x276617=_0x495967;return _0x276617(0x1b4);}get['BeforeSheetPrintCanceled'](){const _0x5d4ab0=_0x495967;return _0x5d4ab0(0x1ac);}get[_0x495967(0x1ae)](){return'SheetPrintOpen';}get['SheetPrintConfirmed'](){const _0x1bab10=_0x495967;return _0x1bab10(0x1c2);}get[_0x495967(0x1d7)](){const _0x132a19=_0x495967;return _0x132a19(0x1d7);}}_0x2d8395[_0x495967(0x1aa)](H);function _0x37c4(_0x138fa9,_0x8fdc19){_0x138fa9=_0x138fa9-0x1a8;const _0xa0bdca=_0xa0bd();let _0x37c451=_0xa0bdca[_0x138fa9];return _0x37c451;}class U{get[_0x495967(0x1d5)](){return _0xb5f9c8;}get[_0x495967(0x1b1)](){return _0x3eb96f;}get['PrintPaperSize'](){return _0x2e3c59;}get[_0x495967(0x1d2)](){return _0x5f22c9;}get['PrintScale'](){return _0x1bb44b;}get[_0x495967(0x1c1)](){return _0x151d42;}get[_0x495967(0x1a8)](){return _0x48daaf;}get[_0x495967(0x1ba)](){return _0xbc1973;}get['PrintHeaderFooterSymbol'](){return _0x224c7b;}}_0x5c5be1['extend'](U);class M extends _0xed2c17{['_initialize'](_0x2f7532){const _0x5008dd=_0x495967,_0x3ea7c7=_0x2f7532[_0x5008dd(0x1c5)](_0x1c9755);this['registerEventHandler'](this[_0x5008dd(0x1af)][_0x5008dd(0x1b9)],()=>_0x3ea7c7['beforeCommandExecuted'](_0x3cefa4=>{const _0x59c2cc=_0x5008dd;if(_0x3cefa4['id']===_0x3672c2['id']){const _0x1ef309=this[_0x59c2cc(0x1bd)]();if(!_0x1ef309)return;const _0x4f74f5={'workbook':_0x1ef309,'worksheet':_0x1ef309[_0x59c2cc(0x1c8)]()};if(_0x4f74f5==null)return;if(this[_0x59c2cc(0x1c3)](this[_0x59c2cc(0x1af)][_0x59c2cc(0x1b9)],_0x4f74f5),_0x4f74f5[_0x59c2cc(0x1c7)])throw new _0x15776a();}})),this[_0x5008dd(0x1d4)](this['Event'][_0x5008dd(0x1b4)],()=>_0x3ea7c7[_0x5008dd(0x1d6)](_0x595291=>{const _0x4a32aa=_0x5008dd;if(_0x595291['id']===_0x53b227['id']){const _0x15716c=_0x2f7532['get'](_0x3feb1b);if(!this[_0x4a32aa(0x1bd)]())return;const _0x5f268a={'layoutConfig':_0x15716c[_0x4a32aa(0x1d1)],'renderConfig':_0x15716c[_0x4a32aa(0x1c6)]};if(_0x5f268a==null)return;if(this[_0x4a32aa(0x1c3)](this['Event']['BeforeSheetPrintConfirm'],_0x5f268a),_0x5f268a[_0x4a32aa(0x1c7)])throw new _0x15776a();}})),this[_0x5008dd(0x1d4)](this[_0x5008dd(0x1af)]['BeforeSheetPrintCanceled'],()=>_0x3ea7c7[_0x5008dd(0x1d6)](_0x899d53=>{const _0x37cac3=_0x5008dd;if(_0x899d53['id']===_0xa2a2a6['id']){const _0x5613be=_0x2f7532[_0x37cac3(0x1c5)](_0x3feb1b);if(!this[_0x37cac3(0x1bd)]())return;const _0x978606={'layoutConfig':_0x5613be['layoutConfig'],'renderConfig':_0x5613be[_0x37cac3(0x1c6)]};if(_0x978606==null)return;if(this['fireEvent'](this['Event']['BeforeSheetPrintCanceled'],_0x978606),_0x978606[_0x37cac3(0x1c7)])throw new _0x15776a();}})),this['registerEventHandler'](this[_0x5008dd(0x1af)]['SheetPrintOpen'],()=>_0x3ea7c7['onCommandExecuted'](_0x4e6100=>{const _0x2586b4=_0x5008dd;if(_0x4e6100['id']===_0x3672c2['id']){const _0x45f3a8=this['getActiveUniverSheet']();if(!_0x45f3a8)return;const _0x4eb50b={'workbook':_0x45f3a8,'worksheet':_0x45f3a8[_0x2586b4(0x1c8)]()};if(_0x4eb50b==null)return;this[_0x2586b4(0x1c3)](this[_0x2586b4(0x1af)][_0x2586b4(0x1ae)],_0x4eb50b);}})),this[_0x5008dd(0x1d4)](this[_0x5008dd(0x1af)][_0x5008dd(0x1c2)],()=>_0x3ea7c7[_0x5008dd(0x1d3)](_0x27f025=>{const _0xe1ea97=_0x5008dd;if(_0x27f025['id']===_0x53b227['id']){const _0x36f0ee=_0x2f7532['get'](_0x3feb1b);if(!this[_0xe1ea97(0x1bd)]())return;const _0x31a234={'layoutConfig':_0x36f0ee[_0xe1ea97(0x1d1)],'renderConfig':_0x36f0ee[_0xe1ea97(0x1c6)]};if(_0x31a234==null)return;this[_0xe1ea97(0x1c3)](this[_0xe1ea97(0x1af)][_0xe1ea97(0x1c2)],_0x31a234);}})),this['registerEventHandler'](this[_0x5008dd(0x1af)][_0x5008dd(0x1d7)],()=>_0x3ea7c7[_0x5008dd(0x1d3)](_0x4cc73b=>{const _0x102203=_0x5008dd;if(_0x4cc73b['id']===_0xa2a2a6['id']){const _0x1d6a93=_0x2f7532[_0x102203(0x1c5)](_0x3feb1b);if(!this[_0x102203(0x1bd)]())return;const _0x5945d7={'layoutConfig':_0x1d6a93[_0x102203(0x1d1)],'renderConfig':_0x1d6a93[_0x102203(0x1c6)]};if(_0x5945d7==null)return;this['fireEvent'](this['Event'][_0x102203(0x1d7)],_0x5945d7);}}));}}_0xed2c17[_0x495967(0x1aa)](M);
|