@univerjs-pro/sheets-print 0.12.1 → 0.12.2-experimental.20251201-5b27b55
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 +40 -40
- 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 +17 -17
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x23f9(){const _0x13998c=['列與欄限制','Tabloid\x20(11\x22\x20x\x2017\x22)','自訂頁首/頁尾','所有工作表','6QnNWBt','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','列印版面配置','工作表頁碼','標準\x20(100%)','選取範圍','總計:','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','目前工作表','日期F','重複凍結的列','10233180mupHZP','日期D','圖片複製到剪貼簿失敗!','HH:mm:ss','93yRAFhm','hh:mm','Letter\x20(8.5\x22\x20x\x2011\x22)','頁首和頁尾','日期A','關閉並隱藏分頁線','8nXZdVM','https://univer.ai/pro','每頁最大欄數','日期格式','Legal\x20(8.5\x22\x20x\x2014\x22)','活頁簿','MM/DD','點擊以新增文字','自訂义頁邊距','自訂比例','重複凍結的欄','YYYY-MM-DD','1YjEhFy','總頁數','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','調整至頁面寬度','所有選取的儲存格','時間C','複製為圖片','格式設定','94832CHmnLi','頁面方向','時間A','編輯自訂頁首/頁尾','列與欄標題','9LaiytI','顯示格線','1810746KGOQbj','目前日期','活頁簿標題','9877490ygbZDf','日期C','日期E','工作表名稱','1812797oVjygP','垂直對齊','水平對齊','Executive\x20(7.25\x22\x20x\x2010.5\x22)','8057599bDeaDC','已選取的儲存格','顯示分頁符號','A5\x20(5.83\x22\x20x\x208.27\x22)','A4\x20(8.27\x22\x20x\x2011.69\x22)','B4\x20(9.84\x22\x20x\x2013.90\x22)','1692560zwVluH','下一步','目前時間','顯示分頁線','HH:mm'];_0x23f9=function(){return _0x13998c;};return _0x23f9();}const _0x166146=_0x2e65;function _0x2e65(_0x15d16f,_0x1987b0){const _0x23f94b=_0x23f9();return _0x2e65=function(_0x2e659a,_0x191bc4){_0x2e659a=_0x2e659a-0x1e5;let _0x1be375=_0x23f94b[_0x2e659a];return _0x1be375;},_0x2e65(_0x15d16f,_0x1987b0);}(function(_0x1b2577,_0x28422f){const _0x2d0bce=_0x2e65,_0x58c0cb=_0x1b2577();while(!![]){try{const _0x5bfb0e=parseInt(_0x2d0bce(0x207))/0x1*(-parseInt(_0x2d0bce(0x216))/0x2)+parseInt(_0x2d0bce(0x1f5))/0x3*(parseInt(_0x2d0bce(0x20f))/0x4)+parseInt(_0x2d0bce(0x227))/0x5*(-parseInt(_0x2d0bce(0x1e6))/0x6)+parseInt(_0x2d0bce(0x21d))/0x7*(parseInt(_0x2d0bce(0x1fb))/0x8)+parseInt(_0x2d0bce(0x214))/0x9*(parseInt(_0x2d0bce(0x219))/0xa)+parseInt(_0x2d0bce(0x221))/0xb+-parseInt(_0x2d0bce(0x1f1))/0xc;if(_0x5bfb0e===_0x28422f)break;else _0x58c0cb['push'](_0x58c0cb['shift']());}catch(_0x491966){_0x58c0cb['push'](_0x58c0cb['shift']());}}}(_0x23f9,0x96c37));const e={'print':{'header':{'total':_0x166146(0x1ec),'pages':'頁','cancel':'取消','next':_0x166146(0x228),'printing':'列印中,請勿關閉頁面'},'menu':'列印','title':'列印','grid':{'title':_0x166146(0x1e8),'showGrid':_0x166146(0x223),'showGridLabel':_0x166146(0x22a),'closeAndHide':_0x166146(0x1fa)},'screenshot':{'title':_0x166146(0x20d),'success':'圖片已成功複製到剪貼簿!','fail':_0x166146(0x1f3)},'size':{'title':'紙張大小','letter':_0x166146(0x1f7),'tabloid':_0x166146(0x22d),'legal':_0x166146(0x1ff),'statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':_0x166146(0x220),'folio':'Folio\x20(8.5\x22\x20x\x2013\x22)','a3':'A3\x20(11.69\x22\x20x\x2016.54\x22)','a4':_0x166146(0x225),'a5':_0x166146(0x224),'b4':_0x166146(0x226),'b5':'B5\x20(6.93\x22\x20x\x209.84\x22)'},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x166146(0x203),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x166146(0x1ee),'workbook':_0x166146(0x200),'currentSelection':_0x166146(0x222),'maxRowsEachPage':'每頁最大列數','maxColumnsEachPage':_0x166146(0x1fd),'limit':_0x166146(0x22c),'allSelection':_0x166146(0x20b)},'selection':{'title':_0x166146(0x1eb),'allWorkbook':_0x166146(0x1e5),'workbookUnit':'張工作表'},'scale':{'title':'縮放','normal':_0x166146(0x1ea),'fitWidth':_0x166146(0x20a),'fitHeight':'調整至頁面高度','fitPage':'調整至頁面大小','custom':_0x166146(0x204)},'orientation':{'title':_0x166146(0x210),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x166146(0x20e),'skeleton':_0x166146(0x215),'waterMark':'顯示浮水印'},'align':{'title':'對齊','horizontal':{'title':_0x166146(0x21f),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x166146(0x21e),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x166146(0x1f8),'page':'頁碼','workbook':_0x166146(0x218),'sheet':_0x166146(0x21c),'date':_0x166146(0x217),'time':_0x166146(0x229),'customHeadFooter':_0x166146(0x22e),'editCustomHeadFooter':_0x166146(0x212),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x166146(0x1fe),'dateA':_0x166146(0x206),'dateB':'MM-DD','dateC':'L','dateD':_0x166146(0x201),'timeA':_0x166146(0x1f4),'timeB':_0x166146(0x22b),'timeC':'hh:mm:ss','timeD':_0x166146(0x1f6),'display':{'page':'頁碼','title':_0x166146(0x218),'sheet':_0x166146(0x21c),'dateA':_0x166146(0x1f9),'dateB':'日期B','dateC':_0x166146(0x21a),'dateD':_0x166146(0x1f2),'dateE':_0x166146(0x21b),'dateF':_0x166146(0x1ef),'timeA':_0x166146(0x211),'timeB':'時間B','timeC':_0x166146(0x20c),'timeD':'時間D','sheetPage':_0x166146(0x1e9),'pageTotal':_0x166146(0x208),'sheetPageTotal':'工作表總頁數'},'placeholder':_0x166146(0x202),'submit':'確定'},'freeze':{'title':_0x166146(0x213),'desc':_0x166146(0x209),'row':_0x166146(0x1f0),'column':_0x166146(0x205)},'limit':{'page':_0x166146(0x1ed),'waterMark':_0x166146(0x1e7),'link':_0x166146(0x1fc)}}};export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5e3f21=_0x44c4;(function(_0x4d7061,_0x380d25){const _0x3dfb79=_0x44c4,_0x2f71a3=_0x4d7061();while(!![]){try{const _0x116efd=-parseInt(_0x3dfb79(0x157))/0x1+-parseInt(_0x3dfb79(0x14e))/0x2*(-parseInt(_0x3dfb79(0x149))/0x3)+parseInt(_0x3dfb79(0x156))/0x4+-parseInt(_0x3dfb79(0x15c))/0x5*(-parseInt(_0x3dfb79(0x154))/0x6)+parseInt(_0x3dfb79(0x165))/0x7*(-parseInt(_0x3dfb79(0x155))/0x8)+parseInt(_0x3dfb79(0x159))/0x9+parseInt(_0x3dfb79(0x15d))/0xa*(-parseInt(_0x3dfb79(0x160))/0xb);if(_0x116efd===_0x380d25)break;else _0x2f71a3['push'](_0x2f71a3['shift']());}catch(_0x3aec8e){_0x2f71a3['push'](_0x2f71a3['shift']());}}}(_0x5010,0x696a4));import{ISheetPrintManagerService as _0x1885b8,ConfirmSheetPrintOperation as _0x15b2e9,SheetPrintOpenOperation as _0x5b5da4,CancelSheetPrintOperation as _0x193961,hasPrintFacadePermission as _0x54586e,SheetScreenShotOperation as _0x518b63,SheetPrintClientService as _0x1e65af,PrintArea as _0x25ad69,PrintFreeze as _0x2c9732,PrintHeaderFooter as _0x1384f3,PrintHeaderFooterSymbol as _0xb521c5}from'@univerjs-pro/sheets-print';import{ICommandService as _0x3d7180,PaperType as _0x2093ec,CanceledError as _0x5c1d84}from'@univerjs/core';import{FWorkbook as _0x5bfba1,FRange as _0x17ff8c}from'@univerjs/sheets/facade';import{FEventName as _0x36c9c0,FEnum as _0x5f28b2,FUniver as _0x46d700}from'@univerjs/core/facade';import{PrintAlign as _0x35baa0,PrintPaperMargin as _0x3c57e3,PrintScale as _0x44a166,PrintDirection as _0x3ae5d4}from'@univerjs-pro/print';class A extends _0x5bfba1{[_0x5e3f21(0x171)](_0x10fdcd){const _0x31b47c=_0x5e3f21;return this['_injector'][_0x31b47c(0x161)](_0x1885b8)[_0x31b47c(0x15a)](_0x10fdcd),this;}['updatePrintRenderConfig'](_0x3b925c){const _0x5cb7b6=_0x5e3f21;return this[_0x5cb7b6(0x167)][_0x5cb7b6(0x161)](_0x1885b8)[_0x5cb7b6(0x164)](_0x3b925c),this;}['print'](){const _0x1ff6cc=_0x5e3f21;return this[_0x1ff6cc(0x167)]['get'](_0x3d7180)[_0x1ff6cc(0x148)](_0x15b2e9['id']);}['openPrintDialog'](){const _0x58ae75=_0x5e3f21;return this[_0x58ae75(0x167)][_0x58ae75(0x161)](_0x3d7180)[_0x58ae75(0x148)](_0x5b5da4['id']);}['closePrintDialog'](){const _0x341329=_0x5e3f21;return this[_0x341329(0x167)][_0x341329(0x161)](_0x3d7180)[_0x341329(0x148)](_0x193961['id']);}async['saveScreenshotToClipboard'](){const _0x40fe9f=_0x5e3f21;return _0x54586e(this['_injector'])?this['_injector'][_0x40fe9f(0x161)](_0x3d7180)[_0x40fe9f(0x14c)](_0x518b63['id']):!0x1;}}function _0x5010(){const _0x2694c1=['updatePrintConfig','layoutConfig','PrintHeaderFooterSymbol','PrintPaperSize','syncExecuteCommand','1164morJEz','extend','PrintArea','executeCommand','getUnitId','1536wniXNR','onCommandExecuted','BeforeSheetPrintOpen','BeforeSheetPrintConfirm','getActiveSheet','beforeCommandExecuted','5052GHaJIs','9840DPBMNJ','218372fInssm','129735ofhonG','SheetPrintCanceled','1555443NXVwgg','updateLayoutConfig','PrintDirection','4180hJDXkk','4550110iFASvS','getRangeImage','getActiveUniverSheet','11JiWyps','get','SheetPrintOpen','getScreenshot','updateRenderConfig','1211vmnZuo','registerEventHandler','_injector','renderConfig','BeforeSheetPrintCanceled','Event','SheetPrintConfirmed','cancel','_worksheet','fireEvent','PrintFreeze','_initialize'];_0x5010=function(){return _0x2694c1;};return _0x5010();}_0x5bfba1[_0x5e3f21(0x14a)](A);class B extends _0x17ff8c{[_0x5e3f21(0x163)](){const _0x48991e=_0x5e3f21;return _0x54586e(this[_0x48991e(0x167)])?this['_injector'][_0x48991e(0x161)](_0x1e65af)[_0x48991e(0x15e)](this['_workbook'][_0x48991e(0x14d)](),this[_0x48991e(0x16d)]['getSheetId'](),this['_range']):!0x1;}}_0x17ff8c[_0x5e3f21(0x14a)](B);function _0x44c4(_0x4ad6ec,_0x16f0bd){const _0x5010b0=_0x5010();return _0x44c4=function(_0x44c4ee,_0x1bb41e){_0x44c4ee=_0x44c4ee-0x146;let _0x23709f=_0x5010b0[_0x44c4ee];return _0x23709f;},_0x44c4(_0x4ad6ec,_0x16f0bd);}class H{get[_0x5e3f21(0x150)](){const _0x1b283a=_0x5e3f21;return _0x1b283a(0x150);}get[_0x5e3f21(0x151)](){return'BeforeSheetPrintConfirm';}get[_0x5e3f21(0x169)](){const _0x1f273e=_0x5e3f21;return _0x1f273e(0x169);}get[_0x5e3f21(0x162)](){const _0x3fe7ac=_0x5e3f21;return _0x3fe7ac(0x162);}get['SheetPrintConfirmed'](){const _0x105f90=_0x5e3f21;return _0x105f90(0x16b);}get[_0x5e3f21(0x158)](){const _0x37334e=_0x5e3f21;return _0x37334e(0x158);}}_0x36c9c0[_0x5e3f21(0x14a)](H);class U{get[_0x5e3f21(0x14b)](){return _0x25ad69;}get['PrintAlign'](){return _0x35baa0;}get[_0x5e3f21(0x147)](){return _0x2093ec;}get['PrintPaperMargin'](){return _0x3c57e3;}get['PrintScale'](){return _0x44a166;}get[_0x5e3f21(0x15b)](){return _0x3ae5d4;}get[_0x5e3f21(0x16f)](){return _0x2c9732;}get['PrintHeaderFooter'](){return _0x1384f3;}get[_0x5e3f21(0x146)](){return _0xb521c5;}}_0x5f28b2[_0x5e3f21(0x14a)](U);class M extends _0x46d700{[_0x5e3f21(0x170)](_0x4968ac){const _0x2ce7e9=_0x5e3f21,_0x3696f5=_0x4968ac[_0x2ce7e9(0x161)](_0x3d7180);this[_0x2ce7e9(0x166)](this[_0x2ce7e9(0x16a)]['BeforeSheetPrintOpen'],()=>_0x3696f5[_0x2ce7e9(0x153)](_0x473587=>{const _0x17e962=_0x2ce7e9;if(_0x473587['id']===_0x5b5da4['id']){const _0x252f96=this[_0x17e962(0x15f)]();if(!_0x252f96)return;const _0x4fb6ca={'workbook':_0x252f96,'worksheet':_0x252f96[_0x17e962(0x152)]()};if(_0x4fb6ca==null)return;if(this[_0x17e962(0x16e)](this[_0x17e962(0x16a)][_0x17e962(0x150)],_0x4fb6ca),_0x4fb6ca['cancel'])throw new _0x5c1d84();}})),this['registerEventHandler'](this[_0x2ce7e9(0x16a)][_0x2ce7e9(0x151)],()=>_0x3696f5['beforeCommandExecuted'](_0x3906ff=>{const _0x3bac12=_0x2ce7e9;if(_0x3906ff['id']===_0x15b2e9['id']){const _0xce237a=_0x4968ac['get'](_0x1885b8);if(!this[_0x3bac12(0x15f)]())return;const _0x2d7000={'layoutConfig':_0xce237a['layoutConfig'],'renderConfig':_0xce237a[_0x3bac12(0x168)]};if(_0x2d7000==null)return;if(this[_0x3bac12(0x16e)](this[_0x3bac12(0x16a)][_0x3bac12(0x151)],_0x2d7000),_0x2d7000[_0x3bac12(0x16c)])throw new _0x5c1d84();}})),this['registerEventHandler'](this[_0x2ce7e9(0x16a)][_0x2ce7e9(0x169)],()=>_0x3696f5[_0x2ce7e9(0x153)](_0x630825=>{const _0x240af1=_0x2ce7e9;if(_0x630825['id']===_0x193961['id']){const _0x27d6be=_0x4968ac[_0x240af1(0x161)](_0x1885b8);if(!this[_0x240af1(0x15f)]())return;const _0x22fbcb={'layoutConfig':_0x27d6be[_0x240af1(0x172)],'renderConfig':_0x27d6be[_0x240af1(0x168)]};if(_0x22fbcb==null)return;if(this['fireEvent'](this['Event'][_0x240af1(0x169)],_0x22fbcb),_0x22fbcb['cancel'])throw new _0x5c1d84();}})),this[_0x2ce7e9(0x166)](this[_0x2ce7e9(0x16a)][_0x2ce7e9(0x162)],()=>_0x3696f5[_0x2ce7e9(0x14f)](_0x2f1b11=>{const _0x313c47=_0x2ce7e9;if(_0x2f1b11['id']===_0x5b5da4['id']){const _0x2f3287=this[_0x313c47(0x15f)]();if(!_0x2f3287)return;const _0x34a26a={'workbook':_0x2f3287,'worksheet':_0x2f3287[_0x313c47(0x152)]()};if(_0x34a26a==null)return;this[_0x313c47(0x16e)](this['Event'][_0x313c47(0x162)],_0x34a26a);}})),this['registerEventHandler'](this[_0x2ce7e9(0x16a)][_0x2ce7e9(0x16b)],()=>_0x3696f5['onCommandExecuted'](_0x20a0f3=>{const _0x7cec1d=_0x2ce7e9;if(_0x20a0f3['id']===_0x15b2e9['id']){const _0x1e39e9=_0x4968ac[_0x7cec1d(0x161)](_0x1885b8);if(!this[_0x7cec1d(0x15f)]())return;const _0x1c7473={'layoutConfig':_0x1e39e9[_0x7cec1d(0x172)],'renderConfig':_0x1e39e9[_0x7cec1d(0x168)]};if(_0x1c7473==null)return;this[_0x7cec1d(0x16e)](this[_0x7cec1d(0x16a)][_0x7cec1d(0x16b)],_0x1c7473);}})),this[_0x2ce7e9(0x166)](this[_0x2ce7e9(0x16a)]['SheetPrintCanceled'],()=>_0x3696f5[_0x2ce7e9(0x14f)](_0xb070b4=>{const _0x511612=_0x2ce7e9;if(_0xb070b4['id']===_0x193961['id']){const _0x28e95d=_0x4968ac[_0x511612(0x161)](_0x1885b8);if(!this[_0x511612(0x15f)]())return;const _0x4873ab={'layoutConfig':_0x28e95d[_0x511612(0x172)],'renderConfig':_0x28e95d[_0x511612(0x168)]};if(_0x4873ab==null)return;this[_0x511612(0x16e)](this[_0x511612(0x16a)][_0x511612(0x158)],_0x4873ab);}}));}}_0x46d700[_0x5e3f21(0x14a)](M);
|