@univerjs-pro/sheets-print 0.10.1 → 0.10.2
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 +39 -39
- 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 +15 -15
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37484d=_0x80e3;(function(_0x4e5ce2,_0x4cdd22){const _0x2db4a1=_0x80e3,_0x4b7fe3=_0x4e5ce2();while(!![]){try{const _0x18ac52=-parseInt(_0x2db4a1(0x10f))/0x1+parseInt(_0x2db4a1(0xfb))/0x2*(parseInt(_0x2db4a1(0xf0))/0x3)+parseInt(_0x2db4a1(0xf6))/0x4+parseInt(_0x2db4a1(0x119))/0x5+-parseInt(_0x2db4a1(0xf1))/0x6+-parseInt(_0x2db4a1(0x107))/0x7*(parseInt(_0x2db4a1(0x103))/0x8)+parseInt(_0x2db4a1(0xef))/0x9;if(_0x18ac52===_0x4cdd22)break;else _0x4b7fe3['push'](_0x4b7fe3['shift']());}catch(_0x74c5e8){_0x4b7fe3['push'](_0x4b7fe3['shift']());}}}(_0x2604,0x87a76));import{ISheetPrintManagerService as _0x57900c,ConfirmSheetPrintOperation as _0x166ef4,SheetPrintOpenOperation as _0x5a4cc5,CancelSheetPrintOperation as _0x4d536f,hasPrintFacadePermission as _0x41a5ed,SheetScreenShotOperation as _0x16f29d,SheetPrintClientService as _0x3ea982,PrintArea as _0x318485,PrintFreeze as _0x44bb83,PrintHeaderFooter as _0x21496b,PrintHeaderFooterSymbol as _0x43f91d}from'@univerjs-pro/sheets-print';import{ICommandService as _0x2b3053,PaperType as _0x5250f4,CanceledError as _0x4381e4}from'@univerjs/core';import{FWorkbook as _0x557caf,FRange as _0x136604}from'@univerjs/sheets/facade';import{FEventName as _0x36d767,FEnum as _0x2b363e,FUniver as _0x3a25a9}from'@univerjs/core/facade';import{PrintAlign as _0x26aa20,PrintPaperMargin as _0x2f3fb4,PrintScale as _0x538196,PrintDirection as _0x51f37f}from'@univerjs-pro/print';function _0x80e3(_0x379ce6,_0x22daaf){const _0x26042d=_0x2604();return _0x80e3=function(_0x80e37,_0x300ad8){_0x80e37=_0x80e37-0xee;let _0x27df61=_0x26042d[_0x80e37];return _0x27df61;},_0x80e3(_0x379ce6,_0x22daaf);}class A extends _0x557caf{[_0x37484d(0x109)](_0x8f2dfc){const _0x150de7=_0x37484d;return this[_0x150de7(0xf4)]['get'](_0x57900c)[_0x150de7(0x115)](_0x8f2dfc),this;}[_0x37484d(0xf8)](_0x41b80e){const _0x558a7d=_0x37484d;return this[_0x558a7d(0xf4)][_0x558a7d(0xfc)](_0x57900c)[_0x558a7d(0x11b)](_0x41b80e),this;}[_0x37484d(0xfa)](){const _0x1b0c02=_0x37484d;return this[_0x1b0c02(0xf4)]['get'](_0x2b3053)[_0x1b0c02(0xee)](_0x166ef4['id']);}['openPrintDialog'](){return this['_injector']['get'](_0x2b3053)['syncExecuteCommand'](_0x5a4cc5['id']);}[_0x37484d(0x102)](){const _0x570949=_0x37484d;return this[_0x570949(0xf4)][_0x570949(0xfc)](_0x2b3053)[_0x570949(0xee)](_0x4d536f['id']);}async[_0x37484d(0x104)](){const _0xf63f48=_0x37484d;return _0x41a5ed(this[_0xf63f48(0xf4)])?this[_0xf63f48(0xf4)][_0xf63f48(0xfc)](_0x2b3053)['executeCommand'](_0x16f29d['id']):!0x1;}}function _0x2604(){const _0x4a7e49=['18406125TCfSOo','686487nPwkDC','3800316PONWDo','PrintArea','PrintPaperSize','_injector','PrintFreeze','158764MWvxAG','getScreenshot','updatePrintRenderConfig','onCommandExecuted','print','2WzeHfM','get','PrintPaperMargin','layoutConfig','PrintDirection','renderConfig','_range','closePrintDialog','4842928SmKlak','saveScreenshotToClipboard','cancel','BeforeSheetPrintOpen','7pdigKF','SheetPrintConfirmed','updatePrintConfig','_workbook','getSheetId','getActiveSheet','BeforeSheetPrintCanceled','SheetPrintCanceled','741137QDAVuy','getActiveUniverSheet','registerEventHandler','fireEvent','extend','SheetPrintOpen','updateLayoutConfig','beforeCommandExecuted','PrintHeaderFooterSymbol','Event','1109410gWaXuy','BeforeSheetPrintConfirm','updateRenderConfig','syncExecuteCommand'];_0x2604=function(){return _0x4a7e49;};return _0x2604();}_0x557caf[_0x37484d(0x113)](A);class B extends _0x136604{[_0x37484d(0xf7)](){const _0x41a450=_0x37484d;return _0x41a5ed(this[_0x41a450(0xf4)])?this[_0x41a450(0xf4)][_0x41a450(0xfc)](_0x3ea982)['getRangeImage'](this[_0x41a450(0x10a)]['getUnitId'](),this['_worksheet'][_0x41a450(0x10b)](),this[_0x41a450(0x101)]):!0x1;}}_0x136604[_0x37484d(0x113)](B);class H{get[_0x37484d(0x106)](){const _0x1e2c97=_0x37484d;return _0x1e2c97(0x106);}get[_0x37484d(0x11a)](){const _0x413cdc=_0x37484d;return _0x413cdc(0x11a);}get[_0x37484d(0x10d)](){const _0x46c385=_0x37484d;return _0x46c385(0x10d);}get[_0x37484d(0x114)](){const _0x2baa38=_0x37484d;return _0x2baa38(0x114);}get['SheetPrintConfirmed'](){const _0x5335e9=_0x37484d;return _0x5335e9(0x108);}get[_0x37484d(0x10e)](){const _0x2a6aef=_0x37484d;return _0x2a6aef(0x10e);}}_0x36d767['extend'](H);class U{get[_0x37484d(0xf2)](){return _0x318485;}get['PrintAlign'](){return _0x26aa20;}get[_0x37484d(0xf3)](){return _0x5250f4;}get[_0x37484d(0xfd)](){return _0x2f3fb4;}get['PrintScale'](){return _0x538196;}get[_0x37484d(0xff)](){return _0x51f37f;}get[_0x37484d(0xf5)](){return _0x44bb83;}get['PrintHeaderFooter'](){return _0x21496b;}get[_0x37484d(0x117)](){return _0x43f91d;}}_0x2b363e[_0x37484d(0x113)](U);class M extends _0x3a25a9{['_initialize'](_0x447982){const _0x1f1f95=_0x37484d,_0x3141a0=_0x447982[_0x1f1f95(0xfc)](_0x2b3053);this['registerEventHandler'](this[_0x1f1f95(0x118)]['BeforeSheetPrintOpen'],()=>_0x3141a0['beforeCommandExecuted'](_0x58ccf4=>{const _0x158221=_0x1f1f95;if(_0x58ccf4['id']===_0x5a4cc5['id']){const _0xda7490=this['getActiveUniverSheet']();if(!_0xda7490)return;const _0x48c38a={'workbook':_0xda7490,'worksheet':_0xda7490[_0x158221(0x10c)]()};if(_0x48c38a==null)return;if(this[_0x158221(0x112)](this[_0x158221(0x118)][_0x158221(0x106)],_0x48c38a),_0x48c38a[_0x158221(0x105)])throw new _0x4381e4();}})),this[_0x1f1f95(0x111)](this[_0x1f1f95(0x118)][_0x1f1f95(0x11a)],()=>_0x3141a0[_0x1f1f95(0x116)](_0x355780=>{const _0x23252b=_0x1f1f95;if(_0x355780['id']===_0x166ef4['id']){const _0x32ccf2=_0x447982[_0x23252b(0xfc)](_0x57900c);if(!this['getActiveUniverSheet']())return;const _0x409f56={'layoutConfig':_0x32ccf2[_0x23252b(0xfe)],'renderConfig':_0x32ccf2[_0x23252b(0x100)]};if(_0x409f56==null)return;if(this[_0x23252b(0x112)](this[_0x23252b(0x118)][_0x23252b(0x11a)],_0x409f56),_0x409f56[_0x23252b(0x105)])throw new _0x4381e4();}})),this[_0x1f1f95(0x111)](this[_0x1f1f95(0x118)][_0x1f1f95(0x10d)],()=>_0x3141a0[_0x1f1f95(0x116)](_0x241be1=>{const _0x2db970=_0x1f1f95;if(_0x241be1['id']===_0x4d536f['id']){const _0x49938c=_0x447982[_0x2db970(0xfc)](_0x57900c);if(!this[_0x2db970(0x110)]())return;const _0xf44084={'layoutConfig':_0x49938c[_0x2db970(0xfe)],'renderConfig':_0x49938c[_0x2db970(0x100)]};if(_0xf44084==null)return;if(this[_0x2db970(0x112)](this[_0x2db970(0x118)][_0x2db970(0x10d)],_0xf44084),_0xf44084[_0x2db970(0x105)])throw new _0x4381e4();}})),this['registerEventHandler'](this['Event']['SheetPrintOpen'],()=>_0x3141a0['onCommandExecuted'](_0x2efa80=>{const _0x3e57f5=_0x1f1f95;if(_0x2efa80['id']===_0x5a4cc5['id']){const _0x27781a=this[_0x3e57f5(0x110)]();if(!_0x27781a)return;const _0xf87ce9={'workbook':_0x27781a,'worksheet':_0x27781a[_0x3e57f5(0x10c)]()};if(_0xf87ce9==null)return;this[_0x3e57f5(0x112)](this[_0x3e57f5(0x118)]['SheetPrintOpen'],_0xf87ce9);}})),this[_0x1f1f95(0x111)](this[_0x1f1f95(0x118)][_0x1f1f95(0x108)],()=>_0x3141a0[_0x1f1f95(0xf9)](_0x302be6=>{const _0x58496c=_0x1f1f95;if(_0x302be6['id']===_0x166ef4['id']){const _0x3866cc=_0x447982['get'](_0x57900c);if(!this[_0x58496c(0x110)]())return;const _0x2d1d67={'layoutConfig':_0x3866cc['layoutConfig'],'renderConfig':_0x3866cc[_0x58496c(0x100)]};if(_0x2d1d67==null)return;this['fireEvent'](this['Event'][_0x58496c(0x108)],_0x2d1d67);}})),this[_0x1f1f95(0x111)](this[_0x1f1f95(0x118)][_0x1f1f95(0x10e)],()=>_0x3141a0[_0x1f1f95(0xf9)](_0x15ac8e=>{const _0x5aacd1=_0x1f1f95;if(_0x15ac8e['id']===_0x4d536f['id']){const _0x36feb0=_0x447982[_0x5aacd1(0xfc)](_0x57900c);if(!this[_0x5aacd1(0x110)]())return;const _0x4a48f0={'layoutConfig':_0x36feb0[_0x5aacd1(0xfe)],'renderConfig':_0x36feb0['renderConfig']};if(_0x4a48f0==null)return;this[_0x5aacd1(0x112)](this[_0x5aacd1(0x118)][_0x5aacd1(0x10e)],_0x4a48f0);}}));}}_0x3a25a9['extend'](M);
|