@univerjs-pro/sheets-print 0.10.8 → 0.10.9-experimental.20250925-61b61a0
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/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/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/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/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 +16 -16
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x12a3a4=_0x5218;(function(_0x4f6221,_0x42391e){const _0x1ac03e=_0x5218,_0x556185=_0x4f6221();while(!![]){try{const _0x498dcd=-parseInt(_0x1ac03e(0x12c))/0x1+-parseInt(_0x1ac03e(0x11d))/0x2*(parseInt(_0x1ac03e(0x112))/0x3)+parseInt(_0x1ac03e(0x10e))/0x4+parseInt(_0x1ac03e(0x126))/0x5+-parseInt(_0x1ac03e(0x121))/0x6+parseInt(_0x1ac03e(0x11f))/0x7*(-parseInt(_0x1ac03e(0x109))/0x8)+-parseInt(_0x1ac03e(0x105))/0x9*(-parseInt(_0x1ac03e(0x12a))/0xa);if(_0x498dcd===_0x42391e)break;else _0x556185['push'](_0x556185['shift']());}catch(_0x22d83c){_0x556185['push'](_0x556185['shift']());}}}(_0x3a51,0x47e7e));import{ISheetPrintManagerService as _0x5b65f1,ConfirmSheetPrintOperation as _0x2f368b,SheetPrintOpenOperation as _0x43ac73,CancelSheetPrintOperation as _0x2e1d57,hasPrintFacadePermission as _0x35270a,SheetScreenShotOperation as _0x7ffe1a,SheetPrintClientService as _0x19b78b,PrintArea as _0x1e4000,PrintFreeze as _0x2f80c6,PrintHeaderFooter as _0x153136,PrintHeaderFooterSymbol as _0x227240}from'@univerjs-pro/sheets-print';import{ICommandService as _0x8f6761,PaperType as _0x49ff9e,CanceledError as _0x7bc4d4}from'@univerjs/core';import{FWorkbook as _0x44b080,FRange as _0x10da3e}from'@univerjs/sheets/facade';function _0x5218(_0x55ac3d,_0x131e47){const _0x3a518e=_0x3a51();return _0x5218=function(_0x5218fc,_0x1cdfd1){_0x5218fc=_0x5218fc-0x104;let _0x301c3f=_0x3a518e[_0x5218fc];return _0x301c3f;},_0x5218(_0x55ac3d,_0x131e47);}import{FEventName as _0x1179af,FEnum as _0x8e2ac1,FUniver as _0x57d13d}from'@univerjs/core/facade';import{PrintAlign as _0x27f31c,PrintPaperMargin as _0x3467b5,PrintScale as _0x57625c,PrintDirection as _0x51b18e}from'@univerjs-pro/print';class A extends _0x44b080{[_0x12a3a4(0x11b)](_0x2ee605){const _0x218c82=_0x12a3a4;return this['_injector'][_0x218c82(0x131)](_0x5b65f1)[_0x218c82(0x12e)](_0x2ee605),this;}['updatePrintRenderConfig'](_0x1ed298){const _0x4c736c=_0x12a3a4;return this['_injector'][_0x4c736c(0x131)](_0x5b65f1)[_0x4c736c(0x115)](_0x1ed298),this;}[_0x12a3a4(0x110)](){const _0xf6347c=_0x12a3a4;return this[_0xf6347c(0x114)][_0xf6347c(0x131)](_0x8f6761)[_0xf6347c(0x113)](_0x2f368b['id']);}[_0x12a3a4(0x129)](){const _0x1c17da=_0x12a3a4;return this[_0x1c17da(0x114)][_0x1c17da(0x131)](_0x8f6761)['syncExecuteCommand'](_0x43ac73['id']);}[_0x12a3a4(0x10c)](){const _0x276d46=_0x12a3a4;return this[_0x276d46(0x114)][_0x276d46(0x131)](_0x8f6761)[_0x276d46(0x113)](_0x2e1d57['id']);}async['saveScreenshotToClipboard'](){const _0x365259=_0x12a3a4;return _0x35270a(this['_injector'])?this[_0x365259(0x114)][_0x365259(0x131)](_0x8f6761)[_0x365259(0x128)](_0x7ffe1a['id']):!0x1;}}_0x44b080[_0x12a3a4(0x117)](A);class B extends _0x10da3e{[_0x12a3a4(0x10f)](){const _0xf5be18=_0x12a3a4;return _0x35270a(this[_0xf5be18(0x114)])?this[_0xf5be18(0x114)][_0xf5be18(0x131)](_0x19b78b)['getRangeImage'](this[_0xf5be18(0x122)][_0xf5be18(0x130)](),this['_worksheet'][_0xf5be18(0x125)](),this['_range']):!0x1;}}_0x10da3e[_0x12a3a4(0x117)](B);class H{get[_0x12a3a4(0x118)](){const _0x2fcc2a=_0x12a3a4;return _0x2fcc2a(0x118);}get[_0x12a3a4(0x107)](){const _0x220d32=_0x12a3a4;return _0x220d32(0x107);}get[_0x12a3a4(0x11a)](){return'BeforeSheetPrintCanceled';}get[_0x12a3a4(0x123)](){const _0x5f4ec0=_0x12a3a4;return _0x5f4ec0(0x123);}get[_0x12a3a4(0x11c)](){const _0x22d936=_0x12a3a4;return _0x22d936(0x11c);}get[_0x12a3a4(0x11e)](){const _0x25a265=_0x12a3a4;return _0x25a265(0x11e);}}_0x1179af[_0x12a3a4(0x117)](H);class U{get['PrintArea'](){return _0x1e4000;}get['PrintAlign'](){return _0x27f31c;}get['PrintPaperSize'](){return _0x49ff9e;}get['PrintPaperMargin'](){return _0x3467b5;}get[_0x12a3a4(0x127)](){return _0x57625c;}get['PrintDirection'](){return _0x51b18e;}get[_0x12a3a4(0x108)](){return _0x2f80c6;}get[_0x12a3a4(0x12f)](){return _0x153136;}get[_0x12a3a4(0x10b)](){return _0x227240;}}_0x8e2ac1[_0x12a3a4(0x117)](U);class M extends _0x57d13d{[_0x12a3a4(0x10a)](_0x344253){const _0x1c5959=_0x12a3a4,_0x12e073=_0x344253[_0x1c5959(0x131)](_0x8f6761);this[_0x1c5959(0x119)](this[_0x1c5959(0x124)][_0x1c5959(0x118)],()=>_0x12e073['beforeCommandExecuted'](_0x11f836=>{const _0x2714cd=_0x1c5959;if(_0x11f836['id']===_0x43ac73['id']){const _0x2178d4=this[_0x2714cd(0x106)]();if(!_0x2178d4)return;const _0x7606ec={'workbook':_0x2178d4,'worksheet':_0x2178d4[_0x2714cd(0x111)]()};if(_0x7606ec==null)return;if(this[_0x2714cd(0x120)](this[_0x2714cd(0x124)][_0x2714cd(0x118)],_0x7606ec),_0x7606ec[_0x2714cd(0x12d)])throw new _0x7bc4d4();}})),this[_0x1c5959(0x119)](this[_0x1c5959(0x124)]['BeforeSheetPrintConfirm'],()=>_0x12e073['beforeCommandExecuted'](_0x22991d=>{const _0x49d7a0=_0x1c5959;if(_0x22991d['id']===_0x2f368b['id']){const _0x1644da=_0x344253[_0x49d7a0(0x131)](_0x5b65f1);if(!this['getActiveUniverSheet']())return;const _0x156045={'layoutConfig':_0x1644da['layoutConfig'],'renderConfig':_0x1644da['renderConfig']};if(_0x156045==null)return;if(this['fireEvent'](this['Event'][_0x49d7a0(0x107)],_0x156045),_0x156045['cancel'])throw new _0x7bc4d4();}})),this[_0x1c5959(0x119)](this['Event']['BeforeSheetPrintCanceled'],()=>_0x12e073[_0x1c5959(0x12b)](_0x163ff8=>{const _0xd84785=_0x1c5959;if(_0x163ff8['id']===_0x2e1d57['id']){const _0x168c03=_0x344253[_0xd84785(0x131)](_0x5b65f1);if(!this[_0xd84785(0x106)]())return;const _0x55fffa={'layoutConfig':_0x168c03[_0xd84785(0x10d)],'renderConfig':_0x168c03['renderConfig']};if(_0x55fffa==null)return;if(this['fireEvent'](this[_0xd84785(0x124)]['BeforeSheetPrintCanceled'],_0x55fffa),_0x55fffa[_0xd84785(0x12d)])throw new _0x7bc4d4();}})),this[_0x1c5959(0x119)](this[_0x1c5959(0x124)][_0x1c5959(0x123)],()=>_0x12e073[_0x1c5959(0x116)](_0xd8137d=>{const _0x38d51e=_0x1c5959;if(_0xd8137d['id']===_0x43ac73['id']){const _0x20887d=this[_0x38d51e(0x106)]();if(!_0x20887d)return;const _0x4eccca={'workbook':_0x20887d,'worksheet':_0x20887d[_0x38d51e(0x111)]()};if(_0x4eccca==null)return;this[_0x38d51e(0x120)](this['Event'][_0x38d51e(0x123)],_0x4eccca);}})),this[_0x1c5959(0x119)](this[_0x1c5959(0x124)][_0x1c5959(0x11c)],()=>_0x12e073[_0x1c5959(0x116)](_0x51de5c=>{const _0x173672=_0x1c5959;if(_0x51de5c['id']===_0x2f368b['id']){const _0x3b78c5=_0x344253[_0x173672(0x131)](_0x5b65f1);if(!this[_0x173672(0x106)]())return;const _0x3e76b9={'layoutConfig':_0x3b78c5[_0x173672(0x10d)],'renderConfig':_0x3b78c5['renderConfig']};if(_0x3e76b9==null)return;this[_0x173672(0x120)](this[_0x173672(0x124)][_0x173672(0x11c)],_0x3e76b9);}})),this['registerEventHandler'](this[_0x1c5959(0x124)][_0x1c5959(0x11e)],()=>_0x12e073[_0x1c5959(0x116)](_0x18874c=>{const _0x3ed8f9=_0x1c5959;if(_0x18874c['id']===_0x2e1d57['id']){const _0x494cff=_0x344253[_0x3ed8f9(0x131)](_0x5b65f1);if(!this['getActiveUniverSheet']())return;const _0x1f7d99={'layoutConfig':_0x494cff[_0x3ed8f9(0x10d)],'renderConfig':_0x494cff[_0x3ed8f9(0x104)]};if(_0x1f7d99==null)return;this[_0x3ed8f9(0x120)](this['Event']['SheetPrintCanceled'],_0x1f7d99);}}));}}_0x57d13d[_0x12a3a4(0x117)](M);function _0x3a51(){const _0x3697f3=['updatePrintConfig','SheetPrintConfirmed','6742xhwkoT','SheetPrintCanceled','7CPiPyC','fireEvent','2601684HYJnPQ','_workbook','SheetPrintOpen','Event','getSheetId','2218665KxoKEZ','PrintScale','executeCommand','openPrintDialog','930PrEmYj','beforeCommandExecuted','299054AJDusq','cancel','updateLayoutConfig','PrintHeaderFooter','getUnitId','get','renderConfig','142371qWIGrA','getActiveUniverSheet','BeforeSheetPrintConfirm','PrintFreeze','3799784NyZJuR','_initialize','PrintHeaderFooterSymbol','closePrintDialog','layoutConfig','587412Qfjhnv','getScreenshot','print','getActiveSheet','498YHUeVA','syncExecuteCommand','_injector','updateRenderConfig','onCommandExecuted','extend','BeforeSheetPrintOpen','registerEventHandler','BeforeSheetPrintCanceled'];_0x3a51=function(){return _0x3697f3;};return _0x3a51();}
|