@univerjs-pro/sheets-print 0.14.0-insiders.20251227-b250a8d → 0.15.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 +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 +15 -15
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5854(_0x5a28e,_0x1eb11c){_0x5a28e=_0x5a28e-0x98;const _0x1cc975=_0x1cc9();let _0x58544d=_0x1cc975[_0x5a28e];return _0x58544d;}const _0x559a22=_0x5854;(function(_0x40f2f1,_0x1a7422){const _0x5903e3=_0x5854,_0x16ee03=_0x40f2f1();while(!![]){try{const _0x2ad7c9=-parseInt(_0x5903e3(0xb9))/0x1*(parseInt(_0x5903e3(0xb0))/0x2)+-parseInt(_0x5903e3(0xcf))/0x3+parseInt(_0x5903e3(0xc0))/0x4+-parseInt(_0x5903e3(0x9c))/0x5+-parseInt(_0x5903e3(0xc4))/0x6*(-parseInt(_0x5903e3(0x99))/0x7)+parseInt(_0x5903e3(0xbb))/0x8+parseInt(_0x5903e3(0xa1))/0x9*(parseInt(_0x5903e3(0x9b))/0xa);if(_0x2ad7c9===_0x1a7422)break;else _0x16ee03['push'](_0x16ee03['shift']());}catch(_0x537430){_0x16ee03['push'](_0x16ee03['shift']());}}}(_0x1cc9,0x629f5));const e={'print':{'header':{'total':'總計:','pages':'頁','cancel':'取消','next':_0x559a22(0x9d),'printing':'列印中,請勿關閉頁面'},'menu':'列印','title':'列印','grid':{'title':_0x559a22(0xc6),'showGrid':_0x559a22(0xaf),'showGridLabel':_0x559a22(0xd7),'closeAndHide':_0x559a22(0xc8)},'screenshot':{'title':'複製為圖片','success':_0x559a22(0x9e),'fail':'圖片複製到剪貼簿失敗!'},'size':{'title':'紙張大小','letter':_0x559a22(0x98),'tabloid':'Tabloid\x20(11\x22\x20x\x2017\x22)','legal':_0x559a22(0xb6),'statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':_0x559a22(0xbe),'folio':_0x559a22(0x9a),'a3':_0x559a22(0xa0),'a4':'A4\x20(8.27\x22\x20x\x2011.69\x22)','a5':_0x559a22(0xa4),'b4':_0x559a22(0xab),'b5':'B5\x20(6.93\x22\x20x\x209.84\x22)'},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':'自訂义頁邊距','top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':'目前工作表','workbook':'活頁簿','currentSelection':_0x559a22(0xd3),'maxRowsEachPage':'每頁最大列數','maxColumnsEachPage':_0x559a22(0xcc),'limit':_0x559a22(0xd2),'allSelection':'所有選取的儲存格'},'selection':{'title':_0x559a22(0xd0),'allWorkbook':_0x559a22(0xbf),'workbookUnit':'張工作表'},'scale':{'title':'縮放','normal':'標準\x20(100%)','fitWidth':'調整至頁面寬度','fitHeight':_0x559a22(0x9f),'fitPage':_0x559a22(0xac),'custom':'自訂比例'},'orientation':{'title':'頁面方向','landscape':'橫向','portrait':'直向'},'formatting':{'title':'格式設定','skeleton':_0x559a22(0xa2),'waterMark':_0x559a22(0xd8)},'align':{'title':'對齊','horizontal':{'title':'水平對齊','middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x559a22(0xba),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x559a22(0xcd),'page':'頁碼','workbook':_0x559a22(0xaa),'sheet':'工作表名稱','date':_0x559a22(0xbc),'time':_0x559a22(0xb7),'customHeadFooter':_0x559a22(0xd6),'editCustomHeadFooter':_0x559a22(0xa3),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x559a22(0xc2),'dateA':_0x559a22(0xc7),'dateB':_0x559a22(0xb8),'dateC':'L','dateD':_0x559a22(0xb3),'timeA':_0x559a22(0xd9),'timeB':_0x559a22(0xc1),'timeC':_0x559a22(0xa7),'timeD':_0x559a22(0xc5),'display':{'page':'頁碼','title':_0x559a22(0xaa),'sheet':'工作表名稱','dateA':_0x559a22(0xa9),'dateB':_0x559a22(0xb2),'dateC':_0x559a22(0xc9),'dateD':_0x559a22(0xa8),'dateE':_0x559a22(0xcb),'dateF':_0x559a22(0xa5),'timeA':_0x559a22(0xad),'timeB':_0x559a22(0xce),'timeC':_0x559a22(0xd5),'timeD':_0x559a22(0xca),'sheetPage':_0x559a22(0xa6),'pageTotal':_0x559a22(0xd4),'sheetPageTotal':_0x559a22(0xd1)},'placeholder':_0x559a22(0xb4),'submit':'確定'},'freeze':{'title':_0x559a22(0xb1),'desc':_0x559a22(0xae),'row':'重複凍結的列','column':'重複凍結的欄'},'limit':{'page':_0x559a22(0xc3),'waterMark':_0x559a22(0xbd),'link':_0x559a22(0xb5)}}};function _0x1cc9(){const _0x281fd8=['97500QJRnKB','hh:mm','列印版面配置','YYYY-MM-DD','關閉並隱藏分頁線','日期C','時間D','日期E','每頁最大欄數','頁首和頁尾','時間B','1085316XwYVVe','選取範圍','工作表總頁數','列與欄限制','已選取的儲存格','總頁數','時間C','自訂頁首/頁尾','顯示分頁線','顯示浮水印','HH:mm:ss','Letter\x20(8.5\x22\x20x\x2011\x22)','315CeAXVY','Folio\x20(8.5\x22\x20x\x2013\x22)','60oYmimh','1191775kKHPCC','下一步','圖片已成功複製到剪貼簿!','調整至頁面高度','A3\x20(11.69\x22\x20x\x2016.54\x22)','128196gcltGW','顯示格線','編輯自訂頁首/頁尾','A5\x20(5.83\x22\x20x\x208.27\x22)','日期F','工作表頁碼','hh:mm:ss','日期D','日期A','活頁簿標題','B4\x20(9.84\x22\x20x\x2013.90\x22)','調整至頁面大小','時間A','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','顯示分頁符號','2sTMvKr','列與欄標題','日期B','MM/DD','點擊以新增文字','https://univer.ai/pro','Legal\x20(8.5\x22\x20x\x2014\x22)','目前時間','MM-DD','706983tlAmXM','垂直對齊','716176SYgiqk','目前日期','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','Executive\x20(7.25\x22\x20x\x2010.5\x22)','所有工作表','3219324SxuhmK','HH:mm','日期格式','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!'];_0x1cc9=function(){return _0x281fd8;};return _0x1cc9();}export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5d3e(){const _0x2a2e91=['getRangeImage','updateRenderConfig','layoutConfig','cancel','775182NqGHfA','updatePrintRenderConfig','BeforeSheetPrintConfirm','updatePrintConfig','PrintScale','syncExecuteCommand','get','_workbook','BeforeSheetPrintCanceled','extend','Event','getSheetId','PrintHeaderFooter','_initialize','1094499WLWVJi','getActiveUniverSheet','PrintPaperSize','onCommandExecuted','beforeCommandExecuted','_worksheet','renderConfig','1231002TrsmsR','getUnitId','SheetPrintConfirmed','_injector','PrintHeaderFooterSymbol','getActiveSheet','465006XlSoTb','BeforeSheetPrintOpen','887442pREmRn','closePrintDialog','fireEvent','4709446EHfXVU','saveScreenshotToClipboard','3098720ZmFQJj','160EBOdUE','SheetPrintCanceled','SheetPrintOpen','registerEventHandler','10AqOhBT','PrintFreeze'];_0x5d3e=function(){return _0x2a2e91;};return _0x5d3e();}const _0x481750=_0x3db8;(function(_0x49e24f,_0x49f881){const _0x2af9cf=_0x3db8,_0x54f334=_0x49e24f();while(!![]){try{const _0x2d9232=-parseInt(_0x2af9cf(0x1bc))/0x1+-parseInt(_0x2af9cf(0x1ce))/0x2+parseInt(_0x2af9cf(0x1af))/0x3+-parseInt(_0x2af9cf(0x1c3))/0x4+parseInt(_0x2af9cf(0x1c8))/0x5*(-parseInt(_0x2af9cf(0x1be))/0x6)+-parseInt(_0x2af9cf(0x1c1))/0x7+-parseInt(_0x2af9cf(0x1c4))/0x8*(-parseInt(_0x2af9cf(0x1b6))/0x9);if(_0x2d9232===_0x49f881)break;else _0x54f334['push'](_0x54f334['shift']());}catch(_0x1fb4bd){_0x54f334['push'](_0x54f334['shift']());}}}(_0x5d3e,0x7b2cc));import{ISheetPrintManagerService as _0x329de0,ConfirmSheetPrintOperation as _0x70d282,SheetPrintOpenOperation as _0x14eaa3,CancelSheetPrintOperation as _0x4ac17b,hasPrintFacadePermission as _0x4a8f0d,SheetScreenShotOperation as _0x3f518f,SheetPrintClientService as _0x1a3c1f,PrintArea as _0x30d2c5,PrintFreeze as _0x22b109,PrintHeaderFooter as _0x1c7457,PrintHeaderFooterSymbol as _0x38eceb}from'@univerjs-pro/sheets-print';import{ICommandService as _0x487f42,PaperType as _0x144151,CanceledError as _0x55cefe}from'@univerjs/core';import{FWorkbook as _0x32642f,FRange as _0x48bf38}from'@univerjs/sheets/facade';function _0x3db8(_0x38c1ec,_0x421759){_0x38c1ec=_0x38c1ec-0x1a2;const _0x5d3eef=_0x5d3e();let _0x3db882=_0x5d3eef[_0x38c1ec];return _0x3db882;}import{FEventName as _0x1e48f4,FEnum as _0x15ef98,FUniver as _0x58fb6f}from'@univerjs/core/facade';import{PrintAlign as _0x40d1cf,PrintPaperMargin as _0x181e3c,PrintScale as _0x48deda,PrintDirection as _0x5599ee}from'@univerjs-pro/print';class A extends _0x32642f{[_0x481750(0x1a4)](_0x581922){const _0x22127c=_0x481750;return this[_0x22127c(0x1b9)][_0x22127c(0x1a7)](_0x329de0)['updateLayoutConfig'](_0x581922),this;}[_0x481750(0x1a2)](_0x4bb668){const _0x286f66=_0x481750;return this[_0x286f66(0x1b9)][_0x286f66(0x1a7)](_0x329de0)[_0x286f66(0x1cb)](_0x4bb668),this;}['print'](){const _0x4e9042=_0x481750;return this[_0x4e9042(0x1b9)]['get'](_0x487f42)[_0x4e9042(0x1a6)](_0x70d282['id']);}['openPrintDialog'](){const _0x4028ea=_0x481750;return this[_0x4028ea(0x1b9)][_0x4028ea(0x1a7)](_0x487f42)['syncExecuteCommand'](_0x14eaa3['id']);}[_0x481750(0x1bf)](){const _0x87332a=_0x481750;return this[_0x87332a(0x1b9)]['get'](_0x487f42)[_0x87332a(0x1a6)](_0x4ac17b['id']);}async[_0x481750(0x1c2)](){const _0x1710b2=_0x481750;return _0x4a8f0d(this[_0x1710b2(0x1b9)])?this[_0x1710b2(0x1b9)][_0x1710b2(0x1a7)](_0x487f42)['executeCommand'](_0x3f518f['id']):!0x1;}}_0x32642f[_0x481750(0x1aa)](A);class B extends _0x48bf38{['getScreenshot'](){const _0x452a93=_0x481750;return _0x4a8f0d(this['_injector'])?this[_0x452a93(0x1b9)][_0x452a93(0x1a7)](_0x1a3c1f)[_0x452a93(0x1ca)](this[_0x452a93(0x1a8)][_0x452a93(0x1b7)](),this[_0x452a93(0x1b4)][_0x452a93(0x1ac)](),this['_range']):!0x1;}}_0x48bf38[_0x481750(0x1aa)](B);class H{get[_0x481750(0x1bd)](){const _0x4b1900=_0x481750;return _0x4b1900(0x1bd);}get['BeforeSheetPrintConfirm'](){return'BeforeSheetPrintConfirm';}get[_0x481750(0x1a9)](){const _0x5e2329=_0x481750;return _0x5e2329(0x1a9);}get['SheetPrintOpen'](){return'SheetPrintOpen';}get[_0x481750(0x1b8)](){const _0x28d34d=_0x481750;return _0x28d34d(0x1b8);}get[_0x481750(0x1c5)](){const _0x3da639=_0x481750;return _0x3da639(0x1c5);}}_0x1e48f4[_0x481750(0x1aa)](H);class U{get['PrintArea'](){return _0x30d2c5;}get['PrintAlign'](){return _0x40d1cf;}get[_0x481750(0x1b1)](){return _0x144151;}get['PrintPaperMargin'](){return _0x181e3c;}get[_0x481750(0x1a5)](){return _0x48deda;}get['PrintDirection'](){return _0x5599ee;}get[_0x481750(0x1c9)](){return _0x22b109;}get[_0x481750(0x1ad)](){return _0x1c7457;}get[_0x481750(0x1ba)](){return _0x38eceb;}}_0x15ef98['extend'](U);class M extends _0x58fb6f{[_0x481750(0x1ae)](_0x5709c9){const _0x16f634=_0x481750,_0x5669af=_0x5709c9[_0x16f634(0x1a7)](_0x487f42);this['registerEventHandler'](this['Event'][_0x16f634(0x1bd)],()=>_0x5669af[_0x16f634(0x1b3)](_0x12c252=>{const _0x23311d=_0x16f634;if(_0x12c252['id']===_0x14eaa3['id']){const _0xff7fb7=this['getActiveUniverSheet']();if(!_0xff7fb7)return;const _0x4df367={'workbook':_0xff7fb7,'worksheet':_0xff7fb7[_0x23311d(0x1bb)]()};if(_0x4df367==null)return;if(this[_0x23311d(0x1c0)](this[_0x23311d(0x1ab)][_0x23311d(0x1bd)],_0x4df367),_0x4df367[_0x23311d(0x1cd)])throw new _0x55cefe();}})),this[_0x16f634(0x1c7)](this[_0x16f634(0x1ab)][_0x16f634(0x1a3)],()=>_0x5669af[_0x16f634(0x1b3)](_0x2046dd=>{const _0x3b76e8=_0x16f634;if(_0x2046dd['id']===_0x70d282['id']){const _0x2a98f9=_0x5709c9['get'](_0x329de0);if(!this[_0x3b76e8(0x1b0)]())return;const _0x1ab719={'layoutConfig':_0x2a98f9['layoutConfig'],'renderConfig':_0x2a98f9[_0x3b76e8(0x1b5)]};if(_0x1ab719==null)return;if(this['fireEvent'](this['Event'][_0x3b76e8(0x1a3)],_0x1ab719),_0x1ab719[_0x3b76e8(0x1cd)])throw new _0x55cefe();}})),this[_0x16f634(0x1c7)](this[_0x16f634(0x1ab)][_0x16f634(0x1a9)],()=>_0x5669af['beforeCommandExecuted'](_0x1ac40b=>{const _0x2cac20=_0x16f634;if(_0x1ac40b['id']===_0x4ac17b['id']){const _0x4d68cc=_0x5709c9[_0x2cac20(0x1a7)](_0x329de0);if(!this['getActiveUniverSheet']())return;const _0x339c1e={'layoutConfig':_0x4d68cc[_0x2cac20(0x1cc)],'renderConfig':_0x4d68cc[_0x2cac20(0x1b5)]};if(_0x339c1e==null)return;if(this[_0x2cac20(0x1c0)](this['Event']['BeforeSheetPrintCanceled'],_0x339c1e),_0x339c1e[_0x2cac20(0x1cd)])throw new _0x55cefe();}})),this[_0x16f634(0x1c7)](this['Event'][_0x16f634(0x1c6)],()=>_0x5669af['onCommandExecuted'](_0x476c43=>{const _0x2fac41=_0x16f634;if(_0x476c43['id']===_0x14eaa3['id']){const _0x1b2952=this[_0x2fac41(0x1b0)]();if(!_0x1b2952)return;const _0x2f8c58={'workbook':_0x1b2952,'worksheet':_0x1b2952[_0x2fac41(0x1bb)]()};if(_0x2f8c58==null)return;this[_0x2fac41(0x1c0)](this['Event'][_0x2fac41(0x1c6)],_0x2f8c58);}})),this[_0x16f634(0x1c7)](this['Event']['SheetPrintConfirmed'],()=>_0x5669af[_0x16f634(0x1b2)](_0x437e4d=>{const _0x46942b=_0x16f634;if(_0x437e4d['id']===_0x70d282['id']){const _0x22132c=_0x5709c9[_0x46942b(0x1a7)](_0x329de0);if(!this['getActiveUniverSheet']())return;const _0x442a86={'layoutConfig':_0x22132c['layoutConfig'],'renderConfig':_0x22132c[_0x46942b(0x1b5)]};if(_0x442a86==null)return;this[_0x46942b(0x1c0)](this[_0x46942b(0x1ab)]['SheetPrintConfirmed'],_0x442a86);}})),this[_0x16f634(0x1c7)](this['Event'][_0x16f634(0x1c5)],()=>_0x5669af[_0x16f634(0x1b2)](_0x3102b9=>{const _0x29cfb0=_0x16f634;if(_0x3102b9['id']===_0x4ac17b['id']){const _0x55bb29=_0x5709c9[_0x29cfb0(0x1a7)](_0x329de0);if(!this['getActiveUniverSheet']())return;const _0x2627da={'layoutConfig':_0x55bb29[_0x29cfb0(0x1cc)],'renderConfig':_0x55bb29[_0x29cfb0(0x1b5)]};if(_0x2627da==null)return;this['fireEvent'](this[_0x29cfb0(0x1ab)][_0x29cfb0(0x1c5)],_0x2627da);}}));}}_0x58fb6f[_0x481750(0x1aa)](M);
|