@univerjs-pro/sheets-print 0.20.1 → 0.21.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/sk-SK.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/sk-SK.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/sk-SK.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/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/sk-SK.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 +17 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x14eb18=_0x68f0;(function(_0x200843,_0x1730c6){const _0x2ed80f=_0x68f0,_0x4d45ab=_0x200843();while(!![]){try{const _0x29c9b9=parseInt(_0x2ed80f(0x198))/0x1+-parseInt(_0x2ed80f(0x19a))/0x2*(parseInt(_0x2ed80f(0x193))/0x3)+-parseInt(_0x2ed80f(0x1b1))/0x4+-parseInt(_0x2ed80f(0x1a1))/0x5+-parseInt(_0x2ed80f(0x19e))/0x6+parseInt(_0x2ed80f(0x1ad))/0x7+parseInt(_0x2ed80f(0x1b5))/0x8*(parseInt(_0x2ed80f(0x1cc))/0x9);if(_0x29c9b9===_0x1730c6)break;else _0x4d45ab['push'](_0x4d45ab['shift']());}catch(_0x1c88ce){_0x4d45ab['push'](_0x4d45ab['shift']());}}}(_0x565e,0x8f643));let _univerjs_pro_sheets_print=require('@univerjs-pro/sheets-print'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets_facade=require('@univerjs/sheets/facade'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_print=require('@univerjs-pro/print');var FWorkbookSheetsPrintMixin=class extends _univerjs_sheets_facade['FWorkbook']{[_0x14eb18(0x1c3)](_0x362b10){const _0x263ef8=_0x14eb18;return this[_0x263ef8(0x1c4)][_0x263ef8(0x1cf)](_univerjs_pro_sheets_print['ISheetPrintManagerService'])['updateLayoutConfig'](_0x362b10),this;}[_0x14eb18(0x19c)](_0x5e2ad1){const _0x100945=_0x14eb18;return this['_injector'][_0x100945(0x1cf)](_univerjs_pro_sheets_print[_0x100945(0x199)])['updateRenderConfig'](_0x5e2ad1),this;}[_0x14eb18(0x1ca)](){const _0x38d0ee=_0x14eb18;return this['_injector'][_0x38d0ee(0x1cf)](_univerjs_core['ICommandService'])[_0x38d0ee(0x1b3)](_univerjs_pro_sheets_print[_0x38d0ee(0x1ce)]['id']);}[_0x14eb18(0x1c9)](){const _0x27abd1=_0x14eb18;return this[_0x27abd1(0x1c4)][_0x27abd1(0x1cf)](_univerjs_core[_0x27abd1(0x1bd)])[_0x27abd1(0x1b3)](_univerjs_pro_sheets_print[_0x27abd1(0x197)]['id']);}['closePrintDialog'](){const _0x4543e5=_0x14eb18;return this[_0x4543e5(0x1c4)][_0x4543e5(0x1cf)](_univerjs_core[_0x4543e5(0x1bd)])[_0x4543e5(0x1b3)](_univerjs_pro_sheets_print['CancelSheetPrintOperation']['id']);}async[_0x14eb18(0x1ac)](){const _0x3ad322=_0x14eb18;if(!(0x0,_univerjs_pro_sheets_print[_0x3ad322(0x1b2)])(this['_injector']))return![];return this[_0x3ad322(0x1c4)][_0x3ad322(0x1cf)](_univerjs_core[_0x3ad322(0x1bd)])[_0x3ad322(0x1c2)](_univerjs_pro_sheets_print[_0x3ad322(0x1b0)]['id']);}};_univerjs_sheets_facade[_0x14eb18(0x1c6)][_0x14eb18(0x1c7)](FWorkbookSheetsPrintMixin);var FRangeSheetsPrint=class extends _univerjs_sheets_facade[_0x14eb18(0x1a7)]{['getScreenshot'](_0x135e65){const _0x18b621=_0x14eb18;if(!(0x0,_univerjs_pro_sheets_print[_0x18b621(0x1b2)])(this[_0x18b621(0x1c4)]))return![];return this[_0x18b621(0x1c4)][_0x18b621(0x1cf)](_univerjs_pro_sheets_print['SheetPrintClientService'])['getRangeImage'](this[_0x18b621(0x1b7)][_0x18b621(0x1a4)](),this['_worksheet'][_0x18b621(0x19f)](),this[_0x18b621(0x1c1)],_0x135e65===null||_0x135e65===void 0x0?void 0x0:_0x135e65['includeHeaders']);}};_univerjs_sheets_facade[_0x14eb18(0x1a7)][_0x14eb18(0x1c7)](FRangeSheetsPrint);function _0x68f0(_0x44b241,_0x1e62bc){_0x44b241=_0x44b241-0x192;const _0x565eb1=_0x565e();let _0x68f0cb=_0x565eb1[_0x44b241];return _0x68f0cb;}var FSheetsPrintEventNameMixin=class extends _univerjs_core_facade[_0x14eb18(0x1ba)]{get[_0x14eb18(0x1b8)](){const _0x44a2cf=_0x14eb18;return _0x44a2cf(0x1b8);}get[_0x14eb18(0x1b6)](){const _0x30c0ce=_0x14eb18;return _0x30c0ce(0x1b6);}get[_0x14eb18(0x1a5)](){const _0x453270=_0x14eb18;return _0x453270(0x1a5);}get['SheetPrintOpen'](){return'SheetPrintOpen';}get[_0x14eb18(0x1cd)](){return'SheetPrintConfirmed';}get[_0x14eb18(0x1bf)](){const _0x551d89=_0x14eb18;return _0x551d89(0x1bf);}};_univerjs_core_facade[_0x14eb18(0x1ba)][_0x14eb18(0x1c7)](FSheetsPrintEventNameMixin);var FSheetsPrintEnumMixin=class extends _univerjs_core_facade['FEnum']{get[_0x14eb18(0x1a0)](){const _0x1a37c2=_0x14eb18;return _univerjs_pro_sheets_print[_0x1a37c2(0x1a0)];}get['PrintAlign'](){const _0x776915=_0x14eb18;return _univerjs_pro_print[_0x776915(0x1a8)];}get['PrintPaperSize'](){const _0x2ef1b7=_0x14eb18;return _univerjs_core[_0x2ef1b7(0x1c8)];}get['PrintPaperMargin'](){return _univerjs_pro_print['PrintPaperMargin'];}get[_0x14eb18(0x1b4)](){const _0x16f6cc=_0x14eb18;return _univerjs_pro_print[_0x16f6cc(0x1b4)];}get[_0x14eb18(0x1ab)](){const _0x1902de=_0x14eb18;return _univerjs_pro_print[_0x1902de(0x1ab)];}get[_0x14eb18(0x1bc)](){const _0x37cb1e=_0x14eb18;return _univerjs_pro_sheets_print[_0x37cb1e(0x1bc)];}get[_0x14eb18(0x19b)](){const _0x4d4432=_0x14eb18;return _univerjs_pro_sheets_print[_0x4d4432(0x19b)];}get[_0x14eb18(0x1c5)](){const _0x5095ca=_0x14eb18;return _univerjs_pro_sheets_print[_0x5095ca(0x1c5)];}};function _0x565e(){const _0x13b78a=['extend','PaperType','openPrintDialog','print','registerEventHandler','2230659jKyBRD','SheetPrintConfirmed','ConfirmSheetPrintOperation','get','getActiveSheet','72NJELST','fireEvent','getActiveUniverSheet','CancelSheetPrintOperation','SheetPrintOpenOperation','584318YEJNCd','ISheetPrintManagerService','21594xOEhqQ','PrintHeaderFooter','updatePrintRenderConfig','onCommandExecuted','6876144MUhMHS','getSheetId','PrintArea','1361305QPwgHU','CanceledError','renderConfig','getUnitId','BeforeSheetPrintCanceled','beforeCommandExecuted','FRange','PrintAlign','_initialize','FEnum','PrintDirection','saveScreenshotToClipboard','3288124LrgmZV','disposeWithMe','layoutConfig','SheetScreenShotOperation','2097052GhXbaC','hasPrintFacadePermission','syncExecuteCommand','PrintScale','56pTAvdB','BeforeSheetPrintConfirm','_workbook','BeforeSheetPrintOpen','SheetPrintOpen','FEventName','FUniver','PrintFreeze','ICommandService','Event','SheetPrintCanceled','cancel','_range','executeCommand','updatePrintConfig','_injector','PrintHeaderFooterSymbol','FWorkbook'];_0x565e=function(){return _0x13b78a;};return _0x565e();}_univerjs_core_facade[_0x14eb18(0x1aa)][_0x14eb18(0x1c7)](FSheetsPrintEnumMixin);var FUniverSheetsPrintMixin=class extends _univerjs_core_facade[_0x14eb18(0x1bb)]{[_0x14eb18(0x1a9)](_0x2f0481){const _0x3f5aad=_0x14eb18,_0xdd4816=_0x2f0481[_0x3f5aad(0x1cf)](_univerjs_core[_0x3f5aad(0x1bd)]);this[_0x3f5aad(0x1ae)](this[_0x3f5aad(0x1cb)](this[_0x3f5aad(0x1be)][_0x3f5aad(0x1b8)],()=>_0xdd4816[_0x3f5aad(0x1a6)](_0x47e0d9=>{const _0x3466fb=_0x3f5aad;if(_0x47e0d9['id']===_univerjs_pro_sheets_print[_0x3466fb(0x197)]['id']){const _0x13cd2f=this[_0x3466fb(0x195)]();if(!_0x13cd2f)return;const _0x51c574={'workbook':_0x13cd2f,'worksheet':_0x13cd2f[_0x3466fb(0x192)]()};if(_0x51c574==null)return;this[_0x3466fb(0x194)](this['Event'][_0x3466fb(0x1b8)],_0x51c574);if(_0x51c574[_0x3466fb(0x1c0)])throw new _univerjs_core['CanceledError']();}}))),this['disposeWithMe'](this[_0x3f5aad(0x1cb)](this['Event'][_0x3f5aad(0x1b6)],()=>_0xdd4816['beforeCommandExecuted'](_0x3e0a13=>{const _0x4ec06d=_0x3f5aad;if(_0x3e0a13['id']===_univerjs_pro_sheets_print['ConfirmSheetPrintOperation']['id']){const _0xe0fcd2=_0x2f0481[_0x4ec06d(0x1cf)](_univerjs_pro_sheets_print[_0x4ec06d(0x199)]);if(!this['getActiveUniverSheet']())return;const _0x3e8793={'layoutConfig':_0xe0fcd2[_0x4ec06d(0x1af)],'renderConfig':_0xe0fcd2['renderConfig']};if(_0x3e8793==null)return;this[_0x4ec06d(0x194)](this[_0x4ec06d(0x1be)]['BeforeSheetPrintConfirm'],_0x3e8793);if(_0x3e8793[_0x4ec06d(0x1c0)])throw new _univerjs_core[(_0x4ec06d(0x1a2))]();}}))),this[_0x3f5aad(0x1ae)](this['registerEventHandler'](this[_0x3f5aad(0x1be)][_0x3f5aad(0x1a5)],()=>_0xdd4816[_0x3f5aad(0x1a6)](_0x597f69=>{const _0x2c3470=_0x3f5aad;if(_0x597f69['id']===_univerjs_pro_sheets_print[_0x2c3470(0x196)]['id']){const _0x5c48c3=_0x2f0481[_0x2c3470(0x1cf)](_univerjs_pro_sheets_print['ISheetPrintManagerService']);if(!this[_0x2c3470(0x195)]())return;const _0x15aee9={'layoutConfig':_0x5c48c3['layoutConfig'],'renderConfig':_0x5c48c3['renderConfig']};if(_0x15aee9==null)return;this[_0x2c3470(0x194)](this[_0x2c3470(0x1be)][_0x2c3470(0x1a5)],_0x15aee9);if(_0x15aee9['cancel'])throw new _univerjs_core[(_0x2c3470(0x1a2))]();}}))),this[_0x3f5aad(0x1ae)](this[_0x3f5aad(0x1cb)](this[_0x3f5aad(0x1be)][_0x3f5aad(0x1b9)],()=>_0xdd4816[_0x3f5aad(0x19d)](_0x3530ce=>{const _0x4c8fe7=_0x3f5aad;if(_0x3530ce['id']===_univerjs_pro_sheets_print['SheetPrintOpenOperation']['id']){const _0x312388=this[_0x4c8fe7(0x195)]();if(!_0x312388)return;const _0x112a1d={'workbook':_0x312388,'worksheet':_0x312388[_0x4c8fe7(0x192)]()};if(_0x112a1d==null)return;this[_0x4c8fe7(0x194)](this[_0x4c8fe7(0x1be)][_0x4c8fe7(0x1b9)],_0x112a1d);}}))),this[_0x3f5aad(0x1ae)](this[_0x3f5aad(0x1cb)](this[_0x3f5aad(0x1be)][_0x3f5aad(0x1cd)],()=>_0xdd4816[_0x3f5aad(0x19d)](_0x41e82a=>{const _0x22743a=_0x3f5aad;if(_0x41e82a['id']===_univerjs_pro_sheets_print[_0x22743a(0x1ce)]['id']){const _0x591da5=_0x2f0481[_0x22743a(0x1cf)](_univerjs_pro_sheets_print[_0x22743a(0x199)]);if(!this[_0x22743a(0x195)]())return;const _0x2acbc0={'layoutConfig':_0x591da5[_0x22743a(0x1af)],'renderConfig':_0x591da5[_0x22743a(0x1a3)]};if(_0x2acbc0==null)return;this[_0x22743a(0x194)](this['Event']['SheetPrintConfirmed'],_0x2acbc0);}}))),this[_0x3f5aad(0x1ae)](this[_0x3f5aad(0x1cb)](this[_0x3f5aad(0x1be)][_0x3f5aad(0x1bf)],()=>_0xdd4816[_0x3f5aad(0x19d)](_0xb45294=>{const _0x548169=_0x3f5aad;if(_0xb45294['id']===_univerjs_pro_sheets_print[_0x548169(0x196)]['id']){const _0xe02ac1=_0x2f0481[_0x548169(0x1cf)](_univerjs_pro_sheets_print[_0x548169(0x199)]);if(!this['getActiveUniverSheet']())return;const _0x33c23e={'layoutConfig':_0xe02ac1['layoutConfig'],'renderConfig':_0xe02ac1[_0x548169(0x1a3)]};if(_0x33c23e==null)return;this[_0x548169(0x194)](this[_0x548169(0x1be)][_0x548169(0x1bf)],_0x33c23e);}})));}};_univerjs_core_facade[_0x14eb18(0x1bb)][_0x14eb18(0x1c7)](FUniverSheetsPrintMixin);
|