@univerjs-pro/sheets-print 0.10.5-nightly.202508290716 → 0.10.6-experimental.20250903-f52e3bf
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 +42 -42
- 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/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x52d727=_0x5e59;(function(_0x1eceb8,_0xb4504){const _0xc59a62=_0x5e59,_0x55ade2=_0x1eceb8();while(!![]){try{const _0x4af482=-parseInt(_0xc59a62(0x179))/0x1*(parseInt(_0xc59a62(0x165))/0x2)+parseInt(_0xc59a62(0x167))/0x3+-parseInt(_0xc59a62(0x163))/0x4+parseInt(_0xc59a62(0x160))/0x5+-parseInt(_0xc59a62(0x188))/0x6+parseInt(_0xc59a62(0x189))/0x7*(-parseInt(_0xc59a62(0x175))/0x8)+parseInt(_0xc59a62(0x180))/0x9*(parseInt(_0xc59a62(0x16a))/0xa);if(_0x4af482===_0xb4504)break;else _0x55ade2['push'](_0x55ade2['shift']());}catch(_0x182116){_0x55ade2['push'](_0x55ade2['shift']());}}}(_0xac8d,0xe0262));import{ISheetPrintManagerService as _0xd33aca,ConfirmSheetPrintOperation as _0x3a147d,SheetPrintOpenOperation as _0x442153,CancelSheetPrintOperation as _0x34a89c,hasPrintFacadePermission as _0x59db99,SheetScreenShotOperation as _0x3fb26f,SheetPrintClientService as _0x447147,PrintArea as _0x5dfa72,PrintFreeze as _0x59ed7e,PrintHeaderFooter as _0x546965,PrintHeaderFooterSymbol as _0x3a4ebc}from'@univerjs-pro/sheets-print';import{ICommandService as _0x335b1d,PaperType as _0x13ba7f,CanceledError as _0x368e62}from'@univerjs/core';function _0x5e59(_0x12ed4a,_0x5084ea){const _0xac8df4=_0xac8d();return _0x5e59=function(_0x5e59c3,_0x644833){_0x5e59c3=_0x5e59c3-0x15b;let _0x43dea2=_0xac8df4[_0x5e59c3];return _0x43dea2;},_0x5e59(_0x12ed4a,_0x5084ea);}import{FWorkbook as _0x5bde02,FRange as _0x15fc17}from'@univerjs/sheets/facade';import{FEventName as _0x1c781a,FEnum as _0x4f33b8,FUniver as _0x347f6e}from'@univerjs/core/facade';import{PrintAlign as _0x364e6b,PrintPaperMargin as _0x5221e0,PrintScale as _0x53145b,PrintDirection as _0x7521e}from'@univerjs-pro/print';class A extends _0x5bde02{['updatePrintConfig'](_0xc89c76){const _0x90127e=_0x5e59;return this[_0x90127e(0x16b)][_0x90127e(0x17f)](_0xd33aca)[_0x90127e(0x15b)](_0xc89c76),this;}[_0x52d727(0x185)](_0x40d44f){const _0x250150=_0x52d727;return this[_0x250150(0x16b)][_0x250150(0x17f)](_0xd33aca)[_0x250150(0x182)](_0x40d44f),this;}[_0x52d727(0x15e)](){const _0x4a31e6=_0x52d727;return this[_0x4a31e6(0x16b)]['get'](_0x335b1d)[_0x4a31e6(0x15d)](_0x3a147d['id']);}[_0x52d727(0x168)](){const _0x3bfef5=_0x52d727;return this[_0x3bfef5(0x16b)][_0x3bfef5(0x17f)](_0x335b1d)['syncExecuteCommand'](_0x442153['id']);}['closePrintDialog'](){const _0x3b051d=_0x52d727;return this[_0x3b051d(0x16b)][_0x3b051d(0x17f)](_0x335b1d)['syncExecuteCommand'](_0x34a89c['id']);}async[_0x52d727(0x181)](){const _0x2439f3=_0x52d727;return _0x59db99(this[_0x2439f3(0x16b)])?this['_injector'][_0x2439f3(0x17f)](_0x335b1d)[_0x2439f3(0x176)](_0x3fb26f['id']):!0x1;}}_0x5bde02[_0x52d727(0x15c)](A);class B extends _0x15fc17{['getScreenshot'](){const _0x28ea5d=_0x52d727;return _0x59db99(this['_injector'])?this[_0x28ea5d(0x16b)][_0x28ea5d(0x17f)](_0x447147)[_0x28ea5d(0x187)](this['_workbook']['getUnitId'](),this[_0x28ea5d(0x178)][_0x28ea5d(0x186)](),this[_0x28ea5d(0x172)]):!0x1;}}_0x15fc17['extend'](B);class H{get[_0x52d727(0x164)](){return'BeforeSheetPrintOpen';}get['BeforeSheetPrintConfirm'](){const _0x5ea84a=_0x52d727;return _0x5ea84a(0x170);}get['BeforeSheetPrintCanceled'](){const _0x35ca96=_0x52d727;return _0x35ca96(0x184);}get[_0x52d727(0x16d)](){const _0x5dde43=_0x52d727;return _0x5dde43(0x16d);}get[_0x52d727(0x17c)](){const _0x307d2e=_0x52d727;return _0x307d2e(0x17c);}get[_0x52d727(0x174)](){const _0x52bbe5=_0x52d727;return _0x52bbe5(0x174);}}_0x1c781a[_0x52d727(0x15c)](H);class U{get[_0x52d727(0x177)](){return _0x5dfa72;}get['PrintAlign'](){return _0x364e6b;}get['PrintPaperSize'](){return _0x13ba7f;}get[_0x52d727(0x17b)](){return _0x5221e0;}get[_0x52d727(0x166)](){return _0x53145b;}get[_0x52d727(0x173)](){return _0x7521e;}get[_0x52d727(0x17d)](){return _0x59ed7e;}get[_0x52d727(0x161)](){return _0x546965;}get[_0x52d727(0x16f)](){return _0x3a4ebc;}}function _0xac8d(){const _0xc78b88=['renderConfig','18341540TsAHYI','_injector','getActiveSheet','SheetPrintOpen','getActiveUniverSheet','PrintHeaderFooterSymbol','BeforeSheetPrintConfirm','beforeCommandExecuted','_range','PrintDirection','SheetPrintCanceled','195304IXhRDO','executeCommand','PrintArea','_worksheet','193lqrDJM','registerEventHandler','PrintPaperMargin','SheetPrintConfirmed','PrintFreeze','onCommandExecuted','get','18RkJrEH','saveScreenshotToClipboard','updateRenderConfig','Event','BeforeSheetPrintCanceled','updatePrintRenderConfig','getSheetId','getRangeImage','3478722jhihme','434khKQUc','updateLayoutConfig','extend','syncExecuteCommand','print','fireEvent','2767660twsKGO','PrintHeaderFooter','layoutConfig','7282368ELCAYx','BeforeSheetPrintOpen','10622vvRVAI','PrintScale','4905846ioMPhJ','openPrintDialog'];_0xac8d=function(){return _0xc78b88;};return _0xac8d();}_0x4f33b8[_0x52d727(0x15c)](U);class M extends _0x347f6e{['_initialize'](_0x4f8484){const _0x306b4d=_0x52d727,_0x3dd895=_0x4f8484[_0x306b4d(0x17f)](_0x335b1d);this['registerEventHandler'](this['Event']['BeforeSheetPrintOpen'],()=>_0x3dd895['beforeCommandExecuted'](_0x31c354=>{const _0x377fcd=_0x306b4d;if(_0x31c354['id']===_0x442153['id']){const _0x2e2b60=this[_0x377fcd(0x16e)]();if(!_0x2e2b60)return;const _0x507c1e={'workbook':_0x2e2b60,'worksheet':_0x2e2b60[_0x377fcd(0x16c)]()};if(_0x507c1e==null)return;if(this[_0x377fcd(0x15f)](this['Event']['BeforeSheetPrintOpen'],_0x507c1e),_0x507c1e['cancel'])throw new _0x368e62();}})),this[_0x306b4d(0x17a)](this[_0x306b4d(0x183)][_0x306b4d(0x170)],()=>_0x3dd895[_0x306b4d(0x171)](_0x445a37=>{const _0x605550=_0x306b4d;if(_0x445a37['id']===_0x3a147d['id']){const _0x31fdce=_0x4f8484[_0x605550(0x17f)](_0xd33aca);if(!this['getActiveUniverSheet']())return;const _0xabc938={'layoutConfig':_0x31fdce[_0x605550(0x162)],'renderConfig':_0x31fdce[_0x605550(0x169)]};if(_0xabc938==null)return;if(this['fireEvent'](this['Event'][_0x605550(0x170)],_0xabc938),_0xabc938['cancel'])throw new _0x368e62();}})),this['registerEventHandler'](this[_0x306b4d(0x183)][_0x306b4d(0x184)],()=>_0x3dd895['beforeCommandExecuted'](_0x109564=>{const _0x55c8c1=_0x306b4d;if(_0x109564['id']===_0x34a89c['id']){const _0x2ecdfa=_0x4f8484[_0x55c8c1(0x17f)](_0xd33aca);if(!this[_0x55c8c1(0x16e)]())return;const _0x2643b0={'layoutConfig':_0x2ecdfa[_0x55c8c1(0x162)],'renderConfig':_0x2ecdfa['renderConfig']};if(_0x2643b0==null)return;if(this[_0x55c8c1(0x15f)](this['Event']['BeforeSheetPrintCanceled'],_0x2643b0),_0x2643b0['cancel'])throw new _0x368e62();}})),this[_0x306b4d(0x17a)](this[_0x306b4d(0x183)][_0x306b4d(0x16d)],()=>_0x3dd895[_0x306b4d(0x17e)](_0x456530=>{const _0x2a3f51=_0x306b4d;if(_0x456530['id']===_0x442153['id']){const _0x43aa21=this[_0x2a3f51(0x16e)]();if(!_0x43aa21)return;const _0x4d484f={'workbook':_0x43aa21,'worksheet':_0x43aa21[_0x2a3f51(0x16c)]()};if(_0x4d484f==null)return;this[_0x2a3f51(0x15f)](this[_0x2a3f51(0x183)][_0x2a3f51(0x16d)],_0x4d484f);}})),this[_0x306b4d(0x17a)](this['Event']['SheetPrintConfirmed'],()=>_0x3dd895['onCommandExecuted'](_0x2acd07=>{const _0x520df6=_0x306b4d;if(_0x2acd07['id']===_0x3a147d['id']){const _0x1c5154=_0x4f8484[_0x520df6(0x17f)](_0xd33aca);if(!this[_0x520df6(0x16e)]())return;const _0x493203={'layoutConfig':_0x1c5154[_0x520df6(0x162)],'renderConfig':_0x1c5154[_0x520df6(0x169)]};if(_0x493203==null)return;this['fireEvent'](this[_0x520df6(0x183)][_0x520df6(0x17c)],_0x493203);}})),this[_0x306b4d(0x17a)](this['Event'][_0x306b4d(0x174)],()=>_0x3dd895[_0x306b4d(0x17e)](_0x21bff6=>{const _0x58d96f=_0x306b4d;if(_0x21bff6['id']===_0x34a89c['id']){const _0x45745e=_0x4f8484['get'](_0xd33aca);if(!this['getActiveUniverSheet']())return;const _0x279ea9={'layoutConfig':_0x45745e['layoutConfig'],'renderConfig':_0x45745e[_0x58d96f(0x169)]};if(_0x279ea9==null)return;this['fireEvent'](this['Event'][_0x58d96f(0x174)],_0x279ea9);}}));}}_0x347f6e['extend'](M);
|