@univerjs-pro/sheets-print 0.6.10-nightly.202504281607 → 0.7.0-beta.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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x267e36=_0xd97f;(function(_0x21584c,_0x5748dc){const _0x5a78b5=_0xd97f,_0x35e794=_0x21584c();while(!![]){try{const _0x584be0=-parseInt(_0x5a78b5(0xf4))/0x1*(-parseInt(_0x5a78b5(0xfb))/0x2)+-parseInt(_0x5a78b5(0x104))/0x3+-parseInt(_0x5a78b5(0xf7))/0x4+parseInt(_0x5a78b5(0xe5))/0x5+parseInt(_0x5a78b5(0xed))/0x6+-parseInt(_0x5a78b5(0x102))/0x7+parseInt(_0x5a78b5(0xf3))/0x8;if(_0x584be0===_0x5748dc)break;else _0x35e794['push'](_0x35e794['shift']());}catch(_0x47bb06){_0x35e794['push'](_0x35e794['shift']());}}}(_0xc4dc,0xd9536));function _0xd97f(_0x413eac,_0x4d3ccd){const _0xc4dc09=_0xc4dc();return _0xd97f=function(_0xd97f13,_0x437582){_0xd97f13=_0xd97f13-0xc6;let _0x3c1bdb=_0xc4dc09[_0xd97f13];return _0x3c1bdb;},_0xd97f(_0x413eac,_0x4d3ccd);}const e=require(_0x267e36(0xd9)),a=require(_0x267e36(0xd7)),d=require(_0x267e36(0xf8)),g=require('@univerjs/core/facade'),c=require(_0x267e36(0xda));function _0xc4dc(){const _0xbb07fd=['4005740QklvYc','updateLayoutConfig','onCommandExecuted','renderConfig','PrintArea','FRange','SheetPrintCanceled','updateRenderConfig','8917398xmWgvb','beforeCommandExecuted','layoutConfig','PrintFreeze','PrintAlign','PrintPaperMargin','7879208KXXeoj','267719BfPJqJ','_worksheet','extend','5352228axPVIp','@univerjs/sheets/facade','ICommandService','SheetPrintConfirmed','10uePWqd','FWorkbook','fireEvent','getUnitId','SheetPrintOpen','hasPrintFacadePermission','SheetPrintOpenOperation','6119491HVUiNC','PrintScale','4525323uLsihj','getScreenshot','BeforeSheetPrintConfirm','ISheetPrintManagerService','print','CanceledError','FEventName','FUniver','PrintHeaderFooterSymbol','BeforeSheetPrintOpen','saveScreenshotToClipboard','_range','syncExecuteCommand','Event','BeforeSheetPrintCanceled','executeCommand','SheetScreenShotOperation','_workbook','FEnum','cancel','PrintHeaderFooter','registerEventHandler','@univerjs/core','PrintDirection','@univerjs-pro/sheets-print','@univerjs-pro/print','_injector','updatePrintRenderConfig','getActiveUniverSheet','PrintPaperSize','getActiveSheet','ConfirmSheetPrintOperation','get','CancelSheetPrintOperation','getRangeImage','updatePrintConfig'];_0xc4dc=function(){return _0xbb07fd;};return _0xc4dc();}class S extends d[_0x267e36(0xfc)]{[_0x267e36(0xe4)](_0x356c33){const _0x422970=_0x267e36;return this['_injector'][_0x422970(0xe1)](e[_0x422970(0x107)])[_0x422970(0xe6)](_0x356c33),this;}[_0x267e36(0xdc)](_0x2817f1){const _0x59d9fd=_0x267e36;return this[_0x59d9fd(0xdb)][_0x59d9fd(0xe1)](e[_0x59d9fd(0x107)])[_0x59d9fd(0xec)](_0x2817f1),this;}[_0x267e36(0x108)](){const _0x2ed1fb=_0x267e36;return this[_0x2ed1fb(0xdb)]['get'](a[_0x2ed1fb(0xf9)])['syncExecuteCommand'](e['ConfirmSheetPrintOperation']['id']);}['openPrintDialog'](){const _0x57a74e=_0x267e36;return this[_0x57a74e(0xdb)]['get'](a['ICommandService'])[_0x57a74e(0xcd)](e[_0x57a74e(0x101)]['id']);}['closePrintDialog'](){const _0x38a641=_0x267e36;return this['_injector'][_0x38a641(0xe1)](a[_0x38a641(0xf9)])[_0x38a641(0xcd)](e[_0x38a641(0xe2)]['id']);}async[_0x267e36(0xcb)](){const _0x29e544=_0x267e36;return e['hasPrintFacadePermission'](this[_0x29e544(0xdb)])?this['_injector'][_0x29e544(0xe1)](a['ICommandService'])[_0x29e544(0xd0)](e[_0x29e544(0xd1)]['id']):!0x1;}}d[_0x267e36(0xfc)][_0x267e36(0xf6)](S);class f extends d['FRange']{[_0x267e36(0x105)](){const _0x435b2d=_0x267e36;return e[_0x435b2d(0x100)](this[_0x435b2d(0xdb)])?this['_injector'][_0x435b2d(0xe1)](e['SheetPrintClientService'])[_0x435b2d(0xe3)](this[_0x435b2d(0xd2)][_0x435b2d(0xfe)](),this[_0x435b2d(0xf5)]['getSheetId'](),this[_0x435b2d(0xcc)]):!0x1;}}d[_0x267e36(0xea)][_0x267e36(0xf6)](f);class P{get['BeforeSheetPrintOpen'](){const _0x51d6b7=_0x267e36;return _0x51d6b7(0xca);}get[_0x267e36(0x106)](){const _0x35a321=_0x267e36;return _0x35a321(0x106);}get[_0x267e36(0xcf)](){const _0x2c33cb=_0x267e36;return _0x2c33cb(0xcf);}get[_0x267e36(0xff)](){const _0x27e8d6=_0x267e36;return _0x27e8d6(0xff);}get[_0x267e36(0xfa)](){const _0x540ddf=_0x267e36;return _0x540ddf(0xfa);}get[_0x267e36(0xeb)](){const _0x326e1d=_0x267e36;return _0x326e1d(0xeb);}}g[_0x267e36(0xc7)][_0x267e36(0xf6)](P);class u{get[_0x267e36(0xe9)](){const _0x21736c=_0x267e36;return e[_0x21736c(0xe9)];}get[_0x267e36(0xf1)](){return c['PrintAlign'];}get[_0x267e36(0xde)](){return a['PaperType'];}get[_0x267e36(0xf2)](){const _0x254e2f=_0x267e36;return c[_0x254e2f(0xf2)];}get[_0x267e36(0x103)](){const _0x64b907=_0x267e36;return c[_0x64b907(0x103)];}get['PrintDirection'](){const _0x3ee066=_0x267e36;return c[_0x3ee066(0xd8)];}get[_0x267e36(0xf0)](){const _0x2f380c=_0x267e36;return e[_0x2f380c(0xf0)];}get[_0x267e36(0xd5)](){const _0x33c62f=_0x267e36;return e[_0x33c62f(0xd5)];}get[_0x267e36(0xc9)](){return e['PrintHeaderFooterSymbol'];}}g[_0x267e36(0xd3)]['extend'](u);class l extends g['FUniver']{['_initialize'](_0x277a0c){const _0x909c32=_0x267e36,_0x3326bc=_0x277a0c[_0x909c32(0xe1)](a[_0x909c32(0xf9)]);this[_0x909c32(0xd6)](this[_0x909c32(0xce)]['BeforeSheetPrintOpen'],()=>_0x3326bc[_0x909c32(0xee)](_0x3dc07f=>{const _0x212587=_0x909c32;if(_0x3dc07f['id']===e[_0x212587(0x101)]['id']){const _0x3b319f=this[_0x212587(0xdd)]();if(!_0x3b319f)return;const _0x3e6ff1={'workbook':_0x3b319f,'worksheet':_0x3b319f[_0x212587(0xdf)]()};if(_0x3e6ff1==null)return;if(this[_0x212587(0xfd)](this[_0x212587(0xce)][_0x212587(0xca)],_0x3e6ff1),_0x3e6ff1['cancel'])throw new a[(_0x212587(0xc6))]();}})),this[_0x909c32(0xd6)](this[_0x909c32(0xce)][_0x909c32(0x106)],()=>_0x3326bc[_0x909c32(0xee)](_0x4277c5=>{const _0x4406cb=_0x909c32;if(_0x4277c5['id']===e[_0x4406cb(0xe0)]['id']){const _0x5b1d55=_0x277a0c[_0x4406cb(0xe1)](e[_0x4406cb(0x107)]);if(!this[_0x4406cb(0xdd)]())return;const _0x2cf31d={'layoutConfig':_0x5b1d55[_0x4406cb(0xef)],'renderConfig':_0x5b1d55[_0x4406cb(0xe8)]};if(_0x2cf31d==null)return;if(this['fireEvent'](this[_0x4406cb(0xce)][_0x4406cb(0x106)],_0x2cf31d),_0x2cf31d[_0x4406cb(0xd4)])throw new a[(_0x4406cb(0xc6))]();}})),this[_0x909c32(0xd6)](this[_0x909c32(0xce)][_0x909c32(0xcf)],()=>_0x3326bc[_0x909c32(0xee)](_0x1cabe8=>{const _0x46523e=_0x909c32;if(_0x1cabe8['id']===e[_0x46523e(0xe2)]['id']){const _0x2994e8=_0x277a0c[_0x46523e(0xe1)](e[_0x46523e(0x107)]);if(!this[_0x46523e(0xdd)]())return;const _0x833d41={'layoutConfig':_0x2994e8[_0x46523e(0xef)],'renderConfig':_0x2994e8['renderConfig']};if(_0x833d41==null)return;if(this[_0x46523e(0xfd)](this[_0x46523e(0xce)][_0x46523e(0xcf)],_0x833d41),_0x833d41[_0x46523e(0xd4)])throw new a[(_0x46523e(0xc6))]();}})),this[_0x909c32(0xd6)](this['Event']['SheetPrintOpen'],()=>_0x3326bc[_0x909c32(0xe7)](_0x426638=>{const _0x4a50ab=_0x909c32;if(_0x426638['id']===e['SheetPrintOpenOperation']['id']){const _0x4f91f5=this[_0x4a50ab(0xdd)]();if(!_0x4f91f5)return;const _0x1b43f2={'workbook':_0x4f91f5,'worksheet':_0x4f91f5[_0x4a50ab(0xdf)]()};if(_0x1b43f2==null)return;this[_0x4a50ab(0xfd)](this[_0x4a50ab(0xce)][_0x4a50ab(0xff)],_0x1b43f2);}})),this[_0x909c32(0xd6)](this[_0x909c32(0xce)][_0x909c32(0xfa)],()=>_0x3326bc[_0x909c32(0xe7)](_0xbd272b=>{const _0x46401c=_0x909c32;if(_0xbd272b['id']===e[_0x46401c(0xe0)]['id']){const _0xedcf18=_0x277a0c['get'](e['ISheetPrintManagerService']);if(!this[_0x46401c(0xdd)]())return;const _0x5fe9ab={'layoutConfig':_0xedcf18[_0x46401c(0xef)],'renderConfig':_0xedcf18['renderConfig']};if(_0x5fe9ab==null)return;this[_0x46401c(0xfd)](this['Event'][_0x46401c(0xfa)],_0x5fe9ab);}})),this[_0x909c32(0xd6)](this['Event'][_0x909c32(0xeb)],()=>_0x3326bc[_0x909c32(0xe7)](_0x13535c=>{const _0x5030c0=_0x909c32;if(_0x13535c['id']===e[_0x5030c0(0xe2)]['id']){const _0x1ab934=_0x277a0c[_0x5030c0(0xe1)](e[_0x5030c0(0x107)]);if(!this[_0x5030c0(0xdd)]())return;const _0x43b974={'layoutConfig':_0x1ab934[_0x5030c0(0xef)],'renderConfig':_0x1ab934[_0x5030c0(0xe8)]};if(_0x43b974==null)return;this['fireEvent'](this[_0x5030c0(0xce)][_0x5030c0(0xeb)],_0x43b974);}}));}}g[_0x267e36(0xc8)][_0x267e36(0xf6)](l);
1
+ 'use strict';const _0x251069=_0x1c86;function _0x1c86(_0x108b4,_0x5e9a33){const _0x4a8ecd=_0x4a8e();return _0x1c86=function(_0x1c869b,_0x189518){_0x1c869b=_0x1c869b-0x172;let _0x5b012a=_0x4a8ecd[_0x1c869b];return _0x5b012a;},_0x1c86(_0x108b4,_0x5e9a33);}(function(_0x197792,_0x3a225f){const _0x7ebf6c=_0x1c86,_0x14e417=_0x197792();while(!![]){try{const _0x3187bf=parseInt(_0x7ebf6c(0x190))/0x1*(parseInt(_0x7ebf6c(0x198))/0x2)+-parseInt(_0x7ebf6c(0x181))/0x3+-parseInt(_0x7ebf6c(0x19c))/0x4+parseInt(_0x7ebf6c(0x1ab))/0x5+parseInt(_0x7ebf6c(0x1ae))/0x6*(parseInt(_0x7ebf6c(0x1a3))/0x7)+parseInt(_0x7ebf6c(0x1a4))/0x8*(parseInt(_0x7ebf6c(0x173))/0x9)+-parseInt(_0x7ebf6c(0x177))/0xa*(parseInt(_0x7ebf6c(0x18f))/0xb);if(_0x3187bf===_0x3a225f)break;else _0x14e417['push'](_0x14e417['shift']());}catch(_0x576686){_0x14e417['push'](_0x14e417['shift']());}}}(_0x4a8e,0x8fad4));function _0x4a8e(){const _0x41b519=['Event','FRange','saveScreenshotToClipboard','SheetPrintOpenOperation','SheetPrintOpen','PrintFreeze','_initialize','1414980SlQTBv','@univerjs/core/facade','ICommandService','cancel','PrintPaperSize','_worksheet','CanceledError','ConfirmSheetPrintOperation','SheetPrintCanceled','getUnitId','_workbook','_range','hasPrintFacadePermission','FEventName','242yTQAme','1mQKHWD','renderConfig','PrintHeaderFooter','getRangeImage','registerEventHandler','PrintHeaderFooterSymbol','get','@univerjs/core','1274852jspMKf','layoutConfig','getActiveUniverSheet','PrintAlign','540296sKhpSX','openPrintDialog','FEnum','ISheetPrintManagerService','updateLayoutConfig','BeforeSheetPrintConfirm','onCommandExecuted','119KGtaBA','8304960TBKzwa','fireEvent','PrintScale','extend','PrintDirection','SheetPrintConfirmed','_injector','3733275aJpvqb','PrintArea','PrintPaperMargin','77226KKgiBX','CancelSheetPrintOperation','syncExecuteCommand','beforeCommandExecuted','closePrintDialog','getActiveSheet','BeforeSheetPrintCanceled','9iSNQzk','BeforeSheetPrintOpen','getSheetId','FWorkbook','657170CGdRMP','print','@univerjs-pro/sheets-print'];_0x4a8e=function(){return _0x41b519;};return _0x4a8e();}const e=require(_0x251069(0x179)),a=require(_0x251069(0x197)),d=require('@univerjs/sheets/facade'),g=require(_0x251069(0x182)),c=require('@univerjs-pro/print');class S extends d[_0x251069(0x176)]{['updatePrintConfig'](_0x2da47f){const _0x34eef9=_0x251069;return this[_0x34eef9(0x1aa)][_0x34eef9(0x196)](e['ISheetPrintManagerService'])[_0x34eef9(0x1a0)](_0x2da47f),this;}['updatePrintRenderConfig'](_0x72caed){const _0x5daa78=_0x251069;return this[_0x5daa78(0x1aa)][_0x5daa78(0x196)](e[_0x5daa78(0x19f)])['updateRenderConfig'](_0x72caed),this;}[_0x251069(0x178)](){const _0x5ad139=_0x251069;return this[_0x5ad139(0x1aa)]['get'](a[_0x5ad139(0x183)])[_0x5ad139(0x1b0)](e[_0x5ad139(0x188)]['id']);}[_0x251069(0x19d)](){const _0x3f18c1=_0x251069;return this[_0x3f18c1(0x1aa)]['get'](a[_0x3f18c1(0x183)])[_0x3f18c1(0x1b0)](e['SheetPrintOpenOperation']['id']);}[_0x251069(0x1b2)](){const _0x2b832f=_0x251069;return this[_0x2b832f(0x1aa)]['get'](a[_0x2b832f(0x183)])[_0x2b832f(0x1b0)](e[_0x2b832f(0x1af)]['id']);}async[_0x251069(0x17c)](){const _0xb7e59c=_0x251069;return e['hasPrintFacadePermission'](this[_0xb7e59c(0x1aa)])?this['_injector'][_0xb7e59c(0x196)](a[_0xb7e59c(0x183)])['executeCommand'](e['SheetScreenShotOperation']['id']):!0x1;}}d[_0x251069(0x176)]['extend'](S);class f extends d[_0x251069(0x17b)]{['getScreenshot'](){const _0x33470c=_0x251069;return e[_0x33470c(0x18d)](this['_injector'])?this[_0x33470c(0x1aa)][_0x33470c(0x196)](e['SheetPrintClientService'])[_0x33470c(0x193)](this[_0x33470c(0x18b)][_0x33470c(0x18a)](),this[_0x33470c(0x186)][_0x33470c(0x175)](),this[_0x33470c(0x18c)]):!0x1;}}d[_0x251069(0x17b)][_0x251069(0x1a7)](f);class P{get[_0x251069(0x174)](){return'BeforeSheetPrintOpen';}get[_0x251069(0x1a1)](){const _0x40996d=_0x251069;return _0x40996d(0x1a1);}get[_0x251069(0x172)](){const _0x4d2c61=_0x251069;return _0x4d2c61(0x172);}get[_0x251069(0x17e)](){const _0x16573e=_0x251069;return _0x16573e(0x17e);}get[_0x251069(0x1a9)](){return'SheetPrintConfirmed';}get['SheetPrintCanceled'](){const _0x2ed974=_0x251069;return _0x2ed974(0x189);}}g[_0x251069(0x18e)][_0x251069(0x1a7)](P);class u{get[_0x251069(0x1ac)](){const _0x580037=_0x251069;return e[_0x580037(0x1ac)];}get[_0x251069(0x19b)](){return c['PrintAlign'];}get[_0x251069(0x185)](){return a['PaperType'];}get['PrintPaperMargin'](){const _0xf899d0=_0x251069;return c[_0xf899d0(0x1ad)];}get[_0x251069(0x1a6)](){const _0x4151e1=_0x251069;return c[_0x4151e1(0x1a6)];}get[_0x251069(0x1a8)](){const _0x5946cf=_0x251069;return c[_0x5946cf(0x1a8)];}get[_0x251069(0x17f)](){return e['PrintFreeze'];}get[_0x251069(0x192)](){const _0x3927cf=_0x251069;return e[_0x3927cf(0x192)];}get[_0x251069(0x195)](){const _0x59972d=_0x251069;return e[_0x59972d(0x195)];}}g[_0x251069(0x19e)][_0x251069(0x1a7)](u);class l extends g['FUniver']{[_0x251069(0x180)](_0x1a8a24){const _0x25e163=_0x251069,_0x35db07=_0x1a8a24[_0x25e163(0x196)](a[_0x25e163(0x183)]);this['registerEventHandler'](this[_0x25e163(0x17a)][_0x25e163(0x174)],()=>_0x35db07[_0x25e163(0x1b1)](_0x14aba3=>{const _0x5ca31e=_0x25e163;if(_0x14aba3['id']===e[_0x5ca31e(0x17d)]['id']){const _0x5c3ab3=this['getActiveUniverSheet']();if(!_0x5c3ab3)return;const _0x1198d6={'workbook':_0x5c3ab3,'worksheet':_0x5c3ab3[_0x5ca31e(0x1b3)]()};if(_0x1198d6==null)return;if(this[_0x5ca31e(0x1a5)](this[_0x5ca31e(0x17a)][_0x5ca31e(0x174)],_0x1198d6),_0x1198d6[_0x5ca31e(0x184)])throw new a[(_0x5ca31e(0x187))]();}})),this[_0x25e163(0x194)](this[_0x25e163(0x17a)]['BeforeSheetPrintConfirm'],()=>_0x35db07[_0x25e163(0x1b1)](_0x54cf4f=>{const _0x563b23=_0x25e163;if(_0x54cf4f['id']===e[_0x563b23(0x188)]['id']){const _0x1d1fe3=_0x1a8a24[_0x563b23(0x196)](e[_0x563b23(0x19f)]);if(!this[_0x563b23(0x19a)]())return;const _0x5ed866={'layoutConfig':_0x1d1fe3['layoutConfig'],'renderConfig':_0x1d1fe3['renderConfig']};if(_0x5ed866==null)return;if(this[_0x563b23(0x1a5)](this['Event']['BeforeSheetPrintConfirm'],_0x5ed866),_0x5ed866[_0x563b23(0x184)])throw new a['CanceledError']();}})),this[_0x25e163(0x194)](this['Event'][_0x25e163(0x172)],()=>_0x35db07['beforeCommandExecuted'](_0x4ae547=>{const _0x4c7faa=_0x25e163;if(_0x4ae547['id']===e[_0x4c7faa(0x1af)]['id']){const _0x30b357=_0x1a8a24[_0x4c7faa(0x196)](e[_0x4c7faa(0x19f)]);if(!this[_0x4c7faa(0x19a)]())return;const _0x14f218={'layoutConfig':_0x30b357['layoutConfig'],'renderConfig':_0x30b357[_0x4c7faa(0x191)]};if(_0x14f218==null)return;if(this[_0x4c7faa(0x1a5)](this['Event'][_0x4c7faa(0x172)],_0x14f218),_0x14f218[_0x4c7faa(0x184)])throw new a[(_0x4c7faa(0x187))]();}})),this[_0x25e163(0x194)](this[_0x25e163(0x17a)]['SheetPrintOpen'],()=>_0x35db07[_0x25e163(0x1a2)](_0x2664f5=>{const _0x3db0b1=_0x25e163;if(_0x2664f5['id']===e[_0x3db0b1(0x17d)]['id']){const _0x4183fd=this[_0x3db0b1(0x19a)]();if(!_0x4183fd)return;const _0x174721={'workbook':_0x4183fd,'worksheet':_0x4183fd['getActiveSheet']()};if(_0x174721==null)return;this[_0x3db0b1(0x1a5)](this[_0x3db0b1(0x17a)][_0x3db0b1(0x17e)],_0x174721);}})),this[_0x25e163(0x194)](this['Event'][_0x25e163(0x1a9)],()=>_0x35db07[_0x25e163(0x1a2)](_0x271d00=>{const _0x138cc6=_0x25e163;if(_0x271d00['id']===e[_0x138cc6(0x188)]['id']){const _0x504e8b=_0x1a8a24['get'](e[_0x138cc6(0x19f)]);if(!this[_0x138cc6(0x19a)]())return;const _0x20ff18={'layoutConfig':_0x504e8b[_0x138cc6(0x199)],'renderConfig':_0x504e8b[_0x138cc6(0x191)]};if(_0x20ff18==null)return;this[_0x138cc6(0x1a5)](this[_0x138cc6(0x17a)]['SheetPrintConfirmed'],_0x20ff18);}})),this['registerEventHandler'](this[_0x25e163(0x17a)][_0x25e163(0x189)],()=>_0x35db07[_0x25e163(0x1a2)](_0x543c41=>{const _0x184dc4=_0x25e163;if(_0x543c41['id']===e[_0x184dc4(0x1af)]['id']){const _0xcc7b47=_0x1a8a24[_0x184dc4(0x196)](e[_0x184dc4(0x19f)]);if(!this[_0x184dc4(0x19a)]())return;const _0x35048c={'layoutConfig':_0xcc7b47['layoutConfig'],'renderConfig':_0xcc7b47[_0x184dc4(0x191)]};if(_0x35048c==null)return;this[_0x184dc4(0x1a5)](this[_0x184dc4(0x17a)]['SheetPrintCanceled'],_0x35048c);}}));}}g['FUniver'][_0x251069(0x1a7)](l);