@univerjs-pro/sheets-print 0.12.1 → 0.12.2-experimental.20251129-0fa20cd
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 +17 -17
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5b76f7=_0x39ea;(function(_0x331a13,_0x3dc42d){const _0x3b8ab4=_0x39ea,_0x2994c6=_0x331a13();while(!![]){try{const _0x2659d9=parseInt(_0x3b8ab4(0x9a))/0x1+-parseInt(_0x3b8ab4(0xd1))/0x2+-parseInt(_0x3b8ab4(0x99))/0x3+-parseInt(_0x3b8ab4(0xa8))/0x4+parseInt(_0x3b8ab4(0xb5))/0x5*(parseInt(_0x3b8ab4(0xaa))/0x6)+parseInt(_0x3b8ab4(0xb9))/0x7*(parseInt(_0x3b8ab4(0xa1))/0x8)+-parseInt(_0x3b8ab4(0xb4))/0x9*(-parseInt(_0x3b8ab4(0xad))/0xa);if(_0x2659d9===_0x3dc42d)break;else _0x2994c6['push'](_0x2994c6['shift']());}catch(_0xf8f537){_0x2994c6['push'](_0x2994c6['shift']());}}}(_0x5d59,0xc9c90));const e={'print':{'header':{'total':_0x5b76f7(0xcf),'pages':'頁','cancel':'取消','next':'下一步','printing':_0x5b76f7(0x9b)},'menu':'列印','title':'列印','grid':{'title':_0x5b76f7(0xc2),'showGrid':'顯示分頁符號','showGridLabel':'顯示分頁線','closeAndHide':_0x5b76f7(0xd5)},'screenshot':{'title':_0x5b76f7(0xa7),'success':'圖片已成功複製到剪貼簿!','fail':_0x5b76f7(0xa6)},'size':{'title':_0x5b76f7(0xc8),'letter':_0x5b76f7(0xbf),'tabloid':_0x5b76f7(0xc5),'legal':_0x5b76f7(0xc9),'statement':_0x5b76f7(0xa5),'executive':'Executive\x20(7.25\x22\x20x\x2010.5\x22)','folio':_0x5b76f7(0xdb),'a3':_0x5b76f7(0xbb),'a4':_0x5b76f7(0xc0),'a5':'A5\x20(5.83\x22\x20x\x208.27\x22)','b4':_0x5b76f7(0xd7),'b5':_0x5b76f7(0xcb)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x5b76f7(0xd8),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x5b76f7(0xa9),'workbook':_0x5b76f7(0xb0),'currentSelection':_0x5b76f7(0xa4),'maxRowsEachPage':'每頁最大列數','maxColumnsEachPage':_0x5b76f7(0xb3),'limit':'列與欄限制','allSelection':_0x5b76f7(0xba)},'selection':{'title':_0x5b76f7(0xae),'allWorkbook':_0x5b76f7(0x9d),'workbookUnit':_0x5b76f7(0xd3)},'scale':{'title':'縮放','normal':_0x5b76f7(0xb7),'fitWidth':_0x5b76f7(0xc7),'fitHeight':_0x5b76f7(0xb1),'fitPage':_0x5b76f7(0xcc),'custom':_0x5b76f7(0x9c)},'orientation':{'title':_0x5b76f7(0xcd),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x5b76f7(0xbe),'skeleton':_0x5b76f7(0xac),'waterMark':_0x5b76f7(0xab)},'align':{'title':'對齊','horizontal':{'title':_0x5b76f7(0xd2),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':'垂直對齊','start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x5b76f7(0xce),'page':'頁碼','workbook':_0x5b76f7(0xaf),'sheet':_0x5b76f7(0xbc),'date':'目前日期','time':_0x5b76f7(0xca),'customHeadFooter':'自訂頁首/頁尾','editCustomHeadFooter':'編輯自訂頁首/頁尾','header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x5b76f7(0xa3),'dateA':'YYYY-MM-DD','dateB':_0x5b76f7(0xd4),'dateC':'L','dateD':_0x5b76f7(0xb6),'timeA':_0x5b76f7(0x98),'timeB':_0x5b76f7(0xb2),'timeC':_0x5b76f7(0xd9),'timeD':'hh:mm','display':{'page':'頁碼','title':_0x5b76f7(0xaf),'sheet':_0x5b76f7(0xbc),'dateA':_0x5b76f7(0xd0),'dateB':_0x5b76f7(0xda),'dateC':'日期C','dateD':'日期D','dateE':_0x5b76f7(0xa2),'dateF':'日期F','timeA':_0x5b76f7(0xc1),'timeB':_0x5b76f7(0xc4),'timeC':'時間C','timeD':'時間D','sheetPage':_0x5b76f7(0xbd),'pageTotal':_0x5b76f7(0xc3),'sheetPageTotal':_0x5b76f7(0xc6)},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':_0x5b76f7(0xd6),'desc':_0x5b76f7(0xa0),'row':_0x5b76f7(0x97),'column':_0x5b76f7(0x9f)},'limit':{'page':_0x5b76f7(0xdc),'waterMark':_0x5b76f7(0x9e),'link':_0x5b76f7(0xb8)}}};function _0x5d59(){const _0x2689f6=['MM/DD','標準\x20(100%)','https://univer.ai/pro','11382pVQPAv','所有選取的儲存格','A3\x20(11.69\x22\x20x\x2016.54\x22)','工作表名稱','工作表頁碼','格式設定','Letter\x20(8.5\x22\x20x\x2011\x22)','A4\x20(8.27\x22\x20x\x2011.69\x22)','時間A','列印版面配置','總頁數','時間B','Tabloid\x20(11\x22\x20x\x2017\x22)','工作表總頁數','調整至頁面寬度','紙張大小','Legal\x20(8.5\x22\x20x\x2014\x22)','目前時間','B5\x20(6.93\x22\x20x\x209.84\x22)','調整至頁面大小','頁面方向','頁首和頁尾','總計:','日期A','2059010SXbSAO','水平對齊','張工作表','MM-DD','關閉並隱藏分頁線','列與欄標題','B4\x20(9.84\x22\x20x\x2013.90\x22)','自訂义頁邊距','hh:mm:ss','日期B','Folio\x20(8.5\x22\x20x\x2013\x22)','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','重複凍結的列','HH:mm:ss','4854072TUdCLf','996465occeKx','列印中,請勿關閉頁面','自訂比例','所有工作表','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','重複凍結的欄','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','5912gYCJik','日期E','日期格式','已選取的儲存格','Statement\x20(5.5\x22\x20x\x208.5\x22)','圖片複製到剪貼簿失敗!','複製為圖片','5732548sdLYJO','目前工作表','7349334TUGtsC','顯示浮水印','顯示格線','70ddYlXs','選取範圍','活頁簿標題','活頁簿','調整至頁面高度','HH:mm','每頁最大欄數','1908270yGfMpd','5JAILEv'];_0x5d59=function(){return _0x2689f6;};return _0x5d59();}function _0x39ea(_0x44d293,_0x36a741){const _0x5d5937=_0x5d59();return _0x39ea=function(_0x39eaaf,_0x9ef305){_0x39eaaf=_0x39eaaf-0x97;let _0x5dbfff=_0x5d5937[_0x39eaaf];return _0x5dbfff;},_0x39ea(_0x44d293,_0x36a741);}export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a4837=_0x19fd;(function(_0x76cfc,_0x17fc9e){const _0x54b9a4=_0x19fd,_0x5ea33a=_0x76cfc();while(!![]){try{const _0x4aad5b=parseInt(_0x54b9a4(0x1d9))/0x1+parseInt(_0x54b9a4(0x1d5))/0x2+-parseInt(_0x54b9a4(0x1e2))/0x3*(-parseInt(_0x54b9a4(0x1d1))/0x4)+parseInt(_0x54b9a4(0x1e1))/0x5*(-parseInt(_0x54b9a4(0x1ec))/0x6)+parseInt(_0x54b9a4(0x1ce))/0x7*(parseInt(_0x54b9a4(0x1d6))/0x8)+-parseInt(_0x54b9a4(0x1fb))/0x9*(-parseInt(_0x54b9a4(0x1d0))/0xa)+-parseInt(_0x54b9a4(0x1e3))/0xb;if(_0x4aad5b===_0x17fc9e)break;else _0x5ea33a['push'](_0x5ea33a['shift']());}catch(_0x3836d0){_0x5ea33a['push'](_0x5ea33a['shift']());}}}(_0x1148,0x9b573));import{ISheetPrintManagerService as _0x2c506b,ConfirmSheetPrintOperation as _0x2f6e12,SheetPrintOpenOperation as _0x208528,CancelSheetPrintOperation as _0x2b7832,hasPrintFacadePermission as _0x449365,SheetScreenShotOperation as _0x3e929b,SheetPrintClientService as _0x211d67,PrintArea as _0x45d605,PrintFreeze as _0x151d2d,PrintHeaderFooter as _0x941d50,PrintHeaderFooterSymbol as _0x4f4a31}from'@univerjs-pro/sheets-print';import{ICommandService as _0x1f0f93,PaperType as _0x554e25,CanceledError as _0x54a56b}from'@univerjs/core';import{FWorkbook as _0x512066,FRange as _0x3981e5}from'@univerjs/sheets/facade';import{FEventName as _0x45f8c6,FEnum as _0x10bd69,FUniver as _0x292a1e}from'@univerjs/core/facade';import{PrintAlign as _0x4b11be,PrintPaperMargin as _0x43f6e1,PrintScale as _0x3a7c64,PrintDirection as _0x43e24f}from'@univerjs-pro/print';class A extends _0x512066{['updatePrintConfig'](_0x7d8c42){const _0x58f741=_0x19fd;return this[_0x58f741(0x1e6)]['get'](_0x2c506b)[_0x58f741(0x1e9)](_0x7d8c42),this;}['updatePrintRenderConfig'](_0x556a2b){const _0x1a4267=_0x19fd;return this[_0x1a4267(0x1e6)][_0x1a4267(0x1f5)](_0x2c506b)[_0x1a4267(0x1f0)](_0x556a2b),this;}[_0x4a4837(0x1dd)](){const _0x5659b0=_0x4a4837;return this[_0x5659b0(0x1e6)][_0x5659b0(0x1f5)](_0x1f0f93)['syncExecuteCommand'](_0x2f6e12['id']);}['openPrintDialog'](){const _0x372751=_0x4a4837;return this[_0x372751(0x1e6)][_0x372751(0x1f5)](_0x1f0f93)['syncExecuteCommand'](_0x208528['id']);}['closePrintDialog'](){const _0x202686=_0x4a4837;return this['_injector'][_0x202686(0x1f5)](_0x1f0f93)[_0x202686(0x1eb)](_0x2b7832['id']);}async[_0x4a4837(0x1e4)](){const _0x365f83=_0x4a4837;return _0x449365(this[_0x365f83(0x1e6)])?this['_injector']['get'](_0x1f0f93)[_0x365f83(0x1f7)](_0x3e929b['id']):!0x1;}}_0x512066[_0x4a4837(0x1ef)](A);class B extends _0x3981e5{[_0x4a4837(0x1ea)](){const _0xbf3972=_0x4a4837;return _0x449365(this['_injector'])?this['_injector'][_0xbf3972(0x1f5)](_0x211d67)['getRangeImage'](this[_0xbf3972(0x1f1)][_0xbf3972(0x1e8)](),this[_0xbf3972(0x1fa)][_0xbf3972(0x1e0)](),this[_0xbf3972(0x1e7)]):!0x1;}}_0x3981e5[_0x4a4837(0x1ef)](B);class H{get['BeforeSheetPrintOpen'](){const _0x161302=_0x4a4837;return _0x161302(0x1e5);}get[_0x4a4837(0x1d3)](){return'BeforeSheetPrintConfirm';}get[_0x4a4837(0x1f3)](){const _0x2368a0=_0x4a4837;return _0x2368a0(0x1f3);}get[_0x4a4837(0x1f2)](){const _0x2a5888=_0x4a4837;return _0x2a5888(0x1f2);}get[_0x4a4837(0x1f9)](){const _0x294978=_0x4a4837;return _0x294978(0x1f9);}get[_0x4a4837(0x1d4)](){const _0x284b70=_0x4a4837;return _0x284b70(0x1d4);}}function _0x19fd(_0x5026a6,_0x493006){const _0x1148b3=_0x1148();return _0x19fd=function(_0x19fddd,_0x3eb8ff){_0x19fddd=_0x19fddd-0x1cd;let _0x366890=_0x1148b3[_0x19fddd];return _0x366890;},_0x19fd(_0x5026a6,_0x493006);}function _0x1148(){const _0x34f42c=['21087913HPXeGG','saveScreenshotToClipboard','BeforeSheetPrintOpen','_injector','_range','getUnitId','updateLayoutConfig','getScreenshot','syncExecuteCommand','3378YIEYvP','registerEventHandler','beforeCommandExecuted','extend','updateRenderConfig','_workbook','SheetPrintOpen','BeforeSheetPrintCanceled','renderConfig','get','Event','executeCommand','layoutConfig','SheetPrintConfirmed','_worksheet','205533QIRpHd','PrintHeaderFooter','71911ILmagn','PrintScale','110qITcKh','7836EYXqGM','fireEvent','BeforeSheetPrintConfirm','SheetPrintCanceled','484048HrZIsY','584guoqZH','onCommandExecuted','getActiveSheet','921380xgLoks','_initialize','PrintFreeze','PrintPaperSize','print','getActiveUniverSheet','PrintDirection','getSheetId','705tsrxIn','717zKdZLm'];_0x1148=function(){return _0x34f42c;};return _0x1148();}_0x45f8c6[_0x4a4837(0x1ef)](H);class U{get['PrintArea'](){return _0x45d605;}get['PrintAlign'](){return _0x4b11be;}get[_0x4a4837(0x1dc)](){return _0x554e25;}get['PrintPaperMargin'](){return _0x43f6e1;}get[_0x4a4837(0x1cf)](){return _0x3a7c64;}get[_0x4a4837(0x1df)](){return _0x43e24f;}get[_0x4a4837(0x1db)](){return _0x151d2d;}get[_0x4a4837(0x1cd)](){return _0x941d50;}get['PrintHeaderFooterSymbol'](){return _0x4f4a31;}}_0x10bd69['extend'](U);class M extends _0x292a1e{[_0x4a4837(0x1da)](_0x2505d9){const _0x54c455=_0x4a4837,_0x5b472d=_0x2505d9[_0x54c455(0x1f5)](_0x1f0f93);this[_0x54c455(0x1ed)](this[_0x54c455(0x1f6)]['BeforeSheetPrintOpen'],()=>_0x5b472d['beforeCommandExecuted'](_0x18d455=>{const _0x5c2552=_0x54c455;if(_0x18d455['id']===_0x208528['id']){const _0x43db69=this[_0x5c2552(0x1de)]();if(!_0x43db69)return;const _0xd78685={'workbook':_0x43db69,'worksheet':_0x43db69[_0x5c2552(0x1d8)]()};if(_0xd78685==null)return;if(this['fireEvent'](this['Event'][_0x5c2552(0x1e5)],_0xd78685),_0xd78685['cancel'])throw new _0x54a56b();}})),this[_0x54c455(0x1ed)](this[_0x54c455(0x1f6)][_0x54c455(0x1d3)],()=>_0x5b472d[_0x54c455(0x1ee)](_0x245136=>{const _0x6dc847=_0x54c455;if(_0x245136['id']===_0x2f6e12['id']){const _0x4587b4=_0x2505d9[_0x6dc847(0x1f5)](_0x2c506b);if(!this['getActiveUniverSheet']())return;const _0x565b28={'layoutConfig':_0x4587b4[_0x6dc847(0x1f8)],'renderConfig':_0x4587b4['renderConfig']};if(_0x565b28==null)return;if(this[_0x6dc847(0x1d2)](this[_0x6dc847(0x1f6)][_0x6dc847(0x1d3)],_0x565b28),_0x565b28['cancel'])throw new _0x54a56b();}})),this[_0x54c455(0x1ed)](this[_0x54c455(0x1f6)][_0x54c455(0x1f3)],()=>_0x5b472d[_0x54c455(0x1ee)](_0x56efde=>{const _0xda821=_0x54c455;if(_0x56efde['id']===_0x2b7832['id']){const _0x43fd65=_0x2505d9[_0xda821(0x1f5)](_0x2c506b);if(!this[_0xda821(0x1de)]())return;const _0x3d9c0f={'layoutConfig':_0x43fd65[_0xda821(0x1f8)],'renderConfig':_0x43fd65[_0xda821(0x1f4)]};if(_0x3d9c0f==null)return;if(this[_0xda821(0x1d2)](this[_0xda821(0x1f6)][_0xda821(0x1f3)],_0x3d9c0f),_0x3d9c0f['cancel'])throw new _0x54a56b();}})),this[_0x54c455(0x1ed)](this[_0x54c455(0x1f6)][_0x54c455(0x1f2)],()=>_0x5b472d[_0x54c455(0x1d7)](_0x2e64f8=>{const _0x4b0d1e=_0x54c455;if(_0x2e64f8['id']===_0x208528['id']){const _0x2b13f9=this['getActiveUniverSheet']();if(!_0x2b13f9)return;const _0x13c3ca={'workbook':_0x2b13f9,'worksheet':_0x2b13f9['getActiveSheet']()};if(_0x13c3ca==null)return;this[_0x4b0d1e(0x1d2)](this['Event'][_0x4b0d1e(0x1f2)],_0x13c3ca);}})),this[_0x54c455(0x1ed)](this[_0x54c455(0x1f6)]['SheetPrintConfirmed'],()=>_0x5b472d[_0x54c455(0x1d7)](_0x5c2a08=>{const _0x38abea=_0x54c455;if(_0x5c2a08['id']===_0x2f6e12['id']){const _0x4b19be=_0x2505d9[_0x38abea(0x1f5)](_0x2c506b);if(!this['getActiveUniverSheet']())return;const _0x598119={'layoutConfig':_0x4b19be[_0x38abea(0x1f8)],'renderConfig':_0x4b19be[_0x38abea(0x1f4)]};if(_0x598119==null)return;this[_0x38abea(0x1d2)](this[_0x38abea(0x1f6)]['SheetPrintConfirmed'],_0x598119);}})),this[_0x54c455(0x1ed)](this[_0x54c455(0x1f6)][_0x54c455(0x1d4)],()=>_0x5b472d[_0x54c455(0x1d7)](_0x2b849c=>{const _0x30ad31=_0x54c455;if(_0x2b849c['id']===_0x2b7832['id']){const _0x2e8f46=_0x2505d9['get'](_0x2c506b);if(!this[_0x30ad31(0x1de)]())return;const _0x36b6fb={'layoutConfig':_0x2e8f46[_0x30ad31(0x1f8)],'renderConfig':_0x2e8f46[_0x30ad31(0x1f4)]};if(_0x36b6fb==null)return;this['fireEvent'](this[_0x30ad31(0x1f6)][_0x30ad31(0x1d4)],_0x36b6fb);}}));}}_0x292a1e[_0x4a4837(0x1ef)](M);
|