@univerjs-pro/sheets-print 0.10.0 → 0.10.1
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 +15 -15
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x396ba7=_0x1de3;(function(_0x1091af,_0x2df2b8){const _0x42486f=_0x1de3,_0x2e3345=_0x1091af();while(!![]){try{const _0x4dc871=parseInt(_0x42486f(0xf1))/0x1+-parseInt(_0x42486f(0xd7))/0x2+parseInt(_0x42486f(0xdc))/0x3+parseInt(_0x42486f(0xd2))/0x4*(-parseInt(_0x42486f(0xc8))/0x5)+-parseInt(_0x42486f(0xda))/0x6*(parseInt(_0x42486f(0xc6))/0x7)+-parseInt(_0x42486f(0xc9))/0x8+parseInt(_0x42486f(0xe8))/0x9*(parseInt(_0x42486f(0xde))/0xa);if(_0x4dc871===_0x2df2b8)break;else _0x2e3345['push'](_0x2e3345['shift']());}catch(_0x4158fd){_0x2e3345['push'](_0x2e3345['shift']());}}}(_0x55e0,0x60c4b));import{ISheetPrintManagerService as _0x4795fe,ConfirmSheetPrintOperation as _0x4395c5,SheetPrintOpenOperation as _0x4001cd,CancelSheetPrintOperation as _0x2afd74,hasPrintFacadePermission as _0x5412b3,SheetScreenShotOperation as _0x4fb07a,SheetPrintClientService as _0x2d43ed,PrintArea as _0x2fee9b,PrintFreeze as _0x55db32,PrintHeaderFooter as _0x4fa779,PrintHeaderFooterSymbol as _0x5acb2d}from'@univerjs-pro/sheets-print';import{ICommandService as _0x56c5db,PaperType as _0x3848f1,CanceledError as _0x7b7ab0}from'@univerjs/core';import{FWorkbook as _0x463d56,FRange as _0x3b193a}from'@univerjs/sheets/facade';import{FEventName as _0x4bef1c,FEnum as _0x19407e,FUniver as _0x1c5140}from'@univerjs/core/facade';import{PrintAlign as _0x2d0622,PrintPaperMargin as _0x56c6c9,PrintScale as _0x5f4100,PrintDirection as _0xc9a45c}from'@univerjs-pro/print';class A extends _0x463d56{['updatePrintConfig'](_0x1f28bc){const _0x142ea5=_0x1de3;return this['_injector'][_0x142ea5(0xea)](_0x4795fe)[_0x142ea5(0xd9)](_0x1f28bc),this;}['updatePrintRenderConfig'](_0x15eebc){const _0x3e7497=_0x1de3;return this[_0x3e7497(0xd0)]['get'](_0x4795fe)[_0x3e7497(0xee)](_0x15eebc),this;}[_0x396ba7(0xdd)](){return this['_injector']['get'](_0x56c5db)['syncExecuteCommand'](_0x4395c5['id']);}['openPrintDialog'](){const _0x19d9c3=_0x396ba7;return this[_0x19d9c3(0xd0)][_0x19d9c3(0xea)](_0x56c5db)[_0x19d9c3(0xcd)](_0x4001cd['id']);}['closePrintDialog'](){const _0x3b904e=_0x396ba7;return this['_injector'][_0x3b904e(0xea)](_0x56c5db)[_0x3b904e(0xcd)](_0x2afd74['id']);}async[_0x396ba7(0xd8)](){const _0x31500f=_0x396ba7;return _0x5412b3(this['_injector'])?this['_injector'][_0x31500f(0xea)](_0x56c5db)[_0x31500f(0xcf)](_0x4fb07a['id']):!0x1;}}_0x463d56[_0x396ba7(0xd4)](A);class B extends _0x3b193a{['getScreenshot'](){const _0x52ef08=_0x396ba7;return _0x5412b3(this[_0x52ef08(0xd0)])?this[_0x52ef08(0xd0)][_0x52ef08(0xea)](_0x2d43ed)['getRangeImage'](this[_0x52ef08(0xf2)][_0x52ef08(0xdf)](),this[_0x52ef08(0xe7)][_0x52ef08(0xf4)](),this[_0x52ef08(0xf0)]):!0x1;}}function _0x55e0(){const _0x10a3e0=['syncExecuteCommand','BeforeSheetPrintCanceled','executeCommand','_injector','fireEvent','4JmUVJN','BeforeSheetPrintConfirm','extend','registerEventHandler','PrintHeaderFooterSymbol','1256164jeQxXN','saveScreenshotToClipboard','updateLayoutConfig','318QeWTLq','PrintFreeze','168255JefZbI','print','10REEVBF','getUnitId','SheetPrintConfirmed','SheetPrintOpen','PrintHeaderFooter','PrintPaperMargin','getActiveSheet','Event','PrintArea','_worksheet','21218454BGyLqZ','SheetPrintCanceled','get','PrintAlign','PrintPaperSize','renderConfig','updateRenderConfig','BeforeSheetPrintOpen','_range','44462CysEmD','_workbook','getActiveUniverSheet','getSheetId','PrintScale','onCommandExecuted','26369BbkyHG','beforeCommandExecuted','3260395Splpvz','4655824vCNDWM','cancel','PrintDirection','layoutConfig'];_0x55e0=function(){return _0x10a3e0;};return _0x55e0();}_0x3b193a[_0x396ba7(0xd4)](B);class H{get[_0x396ba7(0xef)](){return'BeforeSheetPrintOpen';}get['BeforeSheetPrintConfirm'](){const _0x3d7985=_0x396ba7;return _0x3d7985(0xd3);}get[_0x396ba7(0xce)](){const _0x25cf6b=_0x396ba7;return _0x25cf6b(0xce);}get[_0x396ba7(0xe1)](){return'SheetPrintOpen';}get[_0x396ba7(0xe0)](){return'SheetPrintConfirmed';}get[_0x396ba7(0xe9)](){const _0x188921=_0x396ba7;return _0x188921(0xe9);}}_0x4bef1c['extend'](H);class U{get[_0x396ba7(0xe6)](){return _0x2fee9b;}get[_0x396ba7(0xeb)](){return _0x2d0622;}get[_0x396ba7(0xec)](){return _0x3848f1;}get[_0x396ba7(0xe3)](){return _0x56c6c9;}get[_0x396ba7(0xf5)](){return _0x5f4100;}get[_0x396ba7(0xcb)](){return _0xc9a45c;}get[_0x396ba7(0xdb)](){return _0x55db32;}get[_0x396ba7(0xe2)](){return _0x4fa779;}get[_0x396ba7(0xd6)](){return _0x5acb2d;}}_0x19407e[_0x396ba7(0xd4)](U);class M extends _0x1c5140{['_initialize'](_0x387685){const _0x4a4b04=_0x396ba7,_0x8e9fd0=_0x387685[_0x4a4b04(0xea)](_0x56c5db);this[_0x4a4b04(0xd5)](this['Event'][_0x4a4b04(0xef)],()=>_0x8e9fd0[_0x4a4b04(0xc7)](_0xdf3ec7=>{const _0x1be877=_0x4a4b04;if(_0xdf3ec7['id']===_0x4001cd['id']){const _0x32eb82=this[_0x1be877(0xf3)]();if(!_0x32eb82)return;const _0x2f70e0={'workbook':_0x32eb82,'worksheet':_0x32eb82[_0x1be877(0xe4)]()};if(_0x2f70e0==null)return;if(this['fireEvent'](this[_0x1be877(0xe5)][_0x1be877(0xef)],_0x2f70e0),_0x2f70e0['cancel'])throw new _0x7b7ab0();}})),this['registerEventHandler'](this['Event'][_0x4a4b04(0xd3)],()=>_0x8e9fd0[_0x4a4b04(0xc7)](_0x139632=>{const _0x5a9507=_0x4a4b04;if(_0x139632['id']===_0x4395c5['id']){const _0x3a89c7=_0x387685[_0x5a9507(0xea)](_0x4795fe);if(!this['getActiveUniverSheet']())return;const _0x522cdf={'layoutConfig':_0x3a89c7[_0x5a9507(0xcc)],'renderConfig':_0x3a89c7[_0x5a9507(0xed)]};if(_0x522cdf==null)return;if(this[_0x5a9507(0xd1)](this[_0x5a9507(0xe5)][_0x5a9507(0xd3)],_0x522cdf),_0x522cdf['cancel'])throw new _0x7b7ab0();}})),this[_0x4a4b04(0xd5)](this['Event'][_0x4a4b04(0xce)],()=>_0x8e9fd0[_0x4a4b04(0xc7)](_0x59c1cc=>{const _0x1c62a7=_0x4a4b04;if(_0x59c1cc['id']===_0x2afd74['id']){const _0xcf57ad=_0x387685[_0x1c62a7(0xea)](_0x4795fe);if(!this['getActiveUniverSheet']())return;const _0x19b9e9={'layoutConfig':_0xcf57ad[_0x1c62a7(0xcc)],'renderConfig':_0xcf57ad[_0x1c62a7(0xed)]};if(_0x19b9e9==null)return;if(this['fireEvent'](this[_0x1c62a7(0xe5)][_0x1c62a7(0xce)],_0x19b9e9),_0x19b9e9[_0x1c62a7(0xca)])throw new _0x7b7ab0();}})),this['registerEventHandler'](this[_0x4a4b04(0xe5)][_0x4a4b04(0xe1)],()=>_0x8e9fd0['onCommandExecuted'](_0x32479f=>{const _0xeb444=_0x4a4b04;if(_0x32479f['id']===_0x4001cd['id']){const _0x430310=this[_0xeb444(0xf3)]();if(!_0x430310)return;const _0x1c9558={'workbook':_0x430310,'worksheet':_0x430310[_0xeb444(0xe4)]()};if(_0x1c9558==null)return;this['fireEvent'](this[_0xeb444(0xe5)][_0xeb444(0xe1)],_0x1c9558);}})),this[_0x4a4b04(0xd5)](this[_0x4a4b04(0xe5)][_0x4a4b04(0xe0)],()=>_0x8e9fd0[_0x4a4b04(0xf6)](_0x1bdca7=>{const _0x1ee8c6=_0x4a4b04;if(_0x1bdca7['id']===_0x4395c5['id']){const _0xd7cd84=_0x387685['get'](_0x4795fe);if(!this[_0x1ee8c6(0xf3)]())return;const _0x3b782f={'layoutConfig':_0xd7cd84['layoutConfig'],'renderConfig':_0xd7cd84['renderConfig']};if(_0x3b782f==null)return;this[_0x1ee8c6(0xd1)](this[_0x1ee8c6(0xe5)]['SheetPrintConfirmed'],_0x3b782f);}})),this[_0x4a4b04(0xd5)](this['Event'][_0x4a4b04(0xe9)],()=>_0x8e9fd0[_0x4a4b04(0xf6)](_0x4f014c=>{const _0x3c27cb=_0x4a4b04;if(_0x4f014c['id']===_0x2afd74['id']){const _0x429fc6=_0x387685[_0x3c27cb(0xea)](_0x4795fe);if(!this[_0x3c27cb(0xf3)]())return;const _0x52f06c={'layoutConfig':_0x429fc6['layoutConfig'],'renderConfig':_0x429fc6['renderConfig']};if(_0x52f06c==null)return;this[_0x3c27cb(0xd1)](this[_0x3c27cb(0xe5)][_0x3c27cb(0xe9)],_0x52f06c);}}));}}function _0x1de3(_0x315681,_0x562977){const _0x55e078=_0x55e0();return _0x1de3=function(_0x1de346,_0x4e78e7){_0x1de346=_0x1de346-0xc6;let _0x23c0ba=_0x55e078[_0x1de346];return _0x23c0ba;},_0x1de3(_0x315681,_0x562977);}_0x1c5140[_0x396ba7(0xd4)](M);
|