@univerjs-pro/sheets-print 0.8.0-nightly.202506111607 → 0.8.1-nightly.202506121607

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 _0x4a03c3=_0x1a4c;(function(_0x45be88,_0x1d91ef){const _0x4ed668=_0x1a4c,_0x323210=_0x45be88();while(!![]){try{const _0xab33f6=parseInt(_0x4ed668(0xbc))/0x1+parseInt(_0x4ed668(0xcd))/0x2*(-parseInt(_0x4ed668(0xf2))/0x3)+-parseInt(_0x4ed668(0xb5))/0x4+parseInt(_0x4ed668(0xb6))/0x5+-parseInt(_0x4ed668(0xea))/0x6*(parseInt(_0x4ed668(0xc7))/0x7)+parseInt(_0x4ed668(0xbf))/0x8*(-parseInt(_0x4ed668(0xe8))/0x9)+parseInt(_0x4ed668(0xd8))/0xa;if(_0xab33f6===_0x1d91ef)break;else _0x323210['push'](_0x323210['shift']());}catch(_0x23094c){_0x323210['push'](_0x323210['shift']());}}}(_0x1f8b,0xdfbd8));const e=require(_0x4a03c3(0xd1)),a=require(_0x4a03c3(0xba)),d=require('@univerjs/sheets/facade'),g=require(_0x4a03c3(0xb3)),c=require(_0x4a03c3(0xe9));function _0x1a4c(_0x180cb3,_0x426750){const _0x1f8b98=_0x1f8b();return _0x1a4c=function(_0x1a4c34,_0x129830){_0x1a4c34=_0x1a4c34-0xb0;let _0x486386=_0x1f8b98[_0x1a4c34];return _0x486386;},_0x1a4c(_0x180cb3,_0x426750);}class S extends d['FWorkbook']{[_0x4a03c3(0xdc)](_0x3c76b0){const _0x157f0c=_0x4a03c3;return this['_injector'][_0x157f0c(0xe1)](e[_0x157f0c(0xed)])[_0x157f0c(0xca)](_0x3c76b0),this;}['updatePrintRenderConfig'](_0x261409){const _0x300e91=_0x4a03c3;return this[_0x300e91(0xbd)]['get'](e[_0x300e91(0xed)])[_0x300e91(0xc6)](_0x261409),this;}[_0x4a03c3(0xef)](){const _0x2f33ae=_0x4a03c3;return this['_injector'][_0x2f33ae(0xe1)](a[_0x2f33ae(0xde)])[_0x2f33ae(0xe6)](e[_0x2f33ae(0xdd)]['id']);}['openPrintDialog'](){const _0x15dde6=_0x4a03c3;return this[_0x15dde6(0xbd)][_0x15dde6(0xe1)](a['ICommandService'])[_0x15dde6(0xe6)](e[_0x15dde6(0xc9)]['id']);}[_0x4a03c3(0xda)](){const _0x24388c=_0x4a03c3;return this[_0x24388c(0xbd)][_0x24388c(0xe1)](a[_0x24388c(0xde)])[_0x24388c(0xe6)](e[_0x24388c(0xdf)]['id']);}async['saveScreenshotToClipboard'](){const _0x3c5b55=_0x4a03c3;return e['hasPrintFacadePermission'](this[_0x3c5b55(0xbd)])?this[_0x3c5b55(0xbd)][_0x3c5b55(0xe1)](a['ICommandService'])[_0x3c5b55(0xd3)](e['SheetScreenShotOperation']['id']):!0x1;}}d[_0x4a03c3(0xc0)]['extend'](S);class f extends d[_0x4a03c3(0xf3)]{[_0x4a03c3(0xb7)](){const _0x4ba042=_0x4a03c3;return e[_0x4ba042(0xc8)](this['_injector'])?this[_0x4ba042(0xbd)]['get'](e['SheetPrintClientService'])[_0x4ba042(0xf4)](this[_0x4ba042(0xc3)][_0x4ba042(0xb1)](),this[_0x4ba042(0xd4)][_0x4ba042(0xd0)](),this[_0x4ba042(0xd6)]):!0x1;}}d[_0x4a03c3(0xf3)][_0x4a03c3(0xe2)](f);class P{get[_0x4a03c3(0xd9)](){const _0xf83dd3=_0x4a03c3;return _0xf83dd3(0xd9);}get[_0x4a03c3(0xbb)](){const _0x1283a9=_0x4a03c3;return _0x1283a9(0xbb);}get['BeforeSheetPrintCanceled'](){const _0x2672c4=_0x4a03c3;return _0x2672c4(0xcc);}get['SheetPrintOpen'](){const _0x2b3be2=_0x4a03c3;return _0x2b3be2(0xeb);}get['SheetPrintConfirmed'](){const _0x477bda=_0x4a03c3;return _0x477bda(0xbe);}get[_0x4a03c3(0xe7)](){const _0x13402a=_0x4a03c3;return _0x13402a(0xe7);}}g[_0x4a03c3(0xb4)]['extend'](P);class u{get[_0x4a03c3(0xb0)](){const _0x2c2e6b=_0x4a03c3;return e[_0x2c2e6b(0xb0)];}get[_0x4a03c3(0xd2)](){const _0x52f578=_0x4a03c3;return c[_0x52f578(0xd2)];}get[_0x4a03c3(0xe5)](){const _0x739e08=_0x4a03c3;return a[_0x739e08(0xd7)];}get[_0x4a03c3(0xe3)](){const _0x3f5207=_0x4a03c3;return c[_0x3f5207(0xe3)];}get[_0x4a03c3(0xee)](){const _0x54272c=_0x4a03c3;return c[_0x54272c(0xee)];}get[_0x4a03c3(0xb2)](){return c['PrintDirection'];}get[_0x4a03c3(0xdb)](){const _0x2b273f=_0x4a03c3;return e[_0x2b273f(0xdb)];}get[_0x4a03c3(0xce)](){return e['PrintHeaderFooter'];}get['PrintHeaderFooterSymbol'](){const _0x2d1caf=_0x4a03c3;return e[_0x2d1caf(0xc5)];}}g['FEnum']['extend'](u);class l extends g[_0x4a03c3(0xcf)]{[_0x4a03c3(0xf0)](_0x202a2f){const _0x22fed7=_0x4a03c3,_0x2fbb63=_0x202a2f['get'](a[_0x22fed7(0xde)]);this[_0x22fed7(0xc1)](this[_0x22fed7(0xe4)][_0x22fed7(0xd9)],()=>_0x2fbb63[_0x22fed7(0xec)](_0x119585=>{const _0x23a1b5=_0x22fed7;if(_0x119585['id']===e[_0x23a1b5(0xc9)]['id']){const _0x4d5547=this[_0x23a1b5(0xb8)]();if(!_0x4d5547)return;const _0xb9fc0b={'workbook':_0x4d5547,'worksheet':_0x4d5547[_0x23a1b5(0xf1)]()};if(_0xb9fc0b==null)return;if(this[_0x23a1b5(0xc4)](this[_0x23a1b5(0xe4)][_0x23a1b5(0xd9)],_0xb9fc0b),_0xb9fc0b['cancel'])throw new a['CanceledError']();}})),this[_0x22fed7(0xc1)](this[_0x22fed7(0xe4)][_0x22fed7(0xbb)],()=>_0x2fbb63[_0x22fed7(0xec)](_0x47063f=>{const _0x119911=_0x22fed7;if(_0x47063f['id']===e[_0x119911(0xdd)]['id']){const _0x568065=_0x202a2f[_0x119911(0xe1)](e['ISheetPrintManagerService']);if(!this[_0x119911(0xb8)]())return;const _0x4f7bfd={'layoutConfig':_0x568065['layoutConfig'],'renderConfig':_0x568065['renderConfig']};if(_0x4f7bfd==null)return;if(this[_0x119911(0xc4)](this[_0x119911(0xe4)][_0x119911(0xbb)],_0x4f7bfd),_0x4f7bfd[_0x119911(0xcb)])throw new a[(_0x119911(0xc2))]();}})),this['registerEventHandler'](this[_0x22fed7(0xe4)][_0x22fed7(0xcc)],()=>_0x2fbb63['beforeCommandExecuted'](_0x219454=>{const _0x26dbb3=_0x22fed7;if(_0x219454['id']===e['CancelSheetPrintOperation']['id']){const _0x48bd11=_0x202a2f[_0x26dbb3(0xe1)](e['ISheetPrintManagerService']);if(!this[_0x26dbb3(0xb8)]())return;const _0x290ce7={'layoutConfig':_0x48bd11[_0x26dbb3(0xd5)],'renderConfig':_0x48bd11[_0x26dbb3(0xe0)]};if(_0x290ce7==null)return;if(this[_0x26dbb3(0xc4)](this['Event'][_0x26dbb3(0xcc)],_0x290ce7),_0x290ce7['cancel'])throw new a['CanceledError']();}})),this[_0x22fed7(0xc1)](this['Event']['SheetPrintOpen'],()=>_0x2fbb63[_0x22fed7(0xb9)](_0x548bf1=>{const _0x57a0be=_0x22fed7;if(_0x548bf1['id']===e['SheetPrintOpenOperation']['id']){const _0x234d6d=this['getActiveUniverSheet']();if(!_0x234d6d)return;const _0x3a8ddb={'workbook':_0x234d6d,'worksheet':_0x234d6d['getActiveSheet']()};if(_0x3a8ddb==null)return;this[_0x57a0be(0xc4)](this[_0x57a0be(0xe4)]['SheetPrintOpen'],_0x3a8ddb);}})),this[_0x22fed7(0xc1)](this[_0x22fed7(0xe4)][_0x22fed7(0xbe)],()=>_0x2fbb63[_0x22fed7(0xb9)](_0x364e38=>{const _0x125076=_0x22fed7;if(_0x364e38['id']===e[_0x125076(0xdd)]['id']){const _0x296553=_0x202a2f['get'](e[_0x125076(0xed)]);if(!this['getActiveUniverSheet']())return;const _0x2ac28b={'layoutConfig':_0x296553['layoutConfig'],'renderConfig':_0x296553[_0x125076(0xe0)]};if(_0x2ac28b==null)return;this[_0x125076(0xc4)](this[_0x125076(0xe4)][_0x125076(0xbe)],_0x2ac28b);}})),this[_0x22fed7(0xc1)](this[_0x22fed7(0xe4)][_0x22fed7(0xe7)],()=>_0x2fbb63[_0x22fed7(0xb9)](_0xf25fc8=>{const _0x22475b=_0x22fed7;if(_0xf25fc8['id']===e[_0x22475b(0xdf)]['id']){const _0x144db4=_0x202a2f[_0x22475b(0xe1)](e['ISheetPrintManagerService']);if(!this[_0x22475b(0xb8)]())return;const _0x1ce121={'layoutConfig':_0x144db4[_0x22475b(0xd5)],'renderConfig':_0x144db4[_0x22475b(0xe0)]};if(_0x1ce121==null)return;this['fireEvent'](this['Event'][_0x22475b(0xe7)],_0x1ce121);}}));}}g['FUniver'][_0x4a03c3(0xe2)](l);function _0x1f8b(){const _0x5b3490=['PrintDirection','@univerjs/core/facade','FEventName','35912KORrpZ','8096530RhNUyz','getScreenshot','getActiveUniverSheet','onCommandExecuted','@univerjs/core','BeforeSheetPrintConfirm','1702750QafPin','_injector','SheetPrintConfirmed','16Nhfnfw','FWorkbook','registerEventHandler','CanceledError','_workbook','fireEvent','PrintHeaderFooterSymbol','updateRenderConfig','763sowpBD','hasPrintFacadePermission','SheetPrintOpenOperation','updateLayoutConfig','cancel','BeforeSheetPrintCanceled','12bCDPYz','PrintHeaderFooter','FUniver','getSheetId','@univerjs-pro/sheets-print','PrintAlign','executeCommand','_worksheet','layoutConfig','_range','PaperType','9816920gYyngZ','BeforeSheetPrintOpen','closePrintDialog','PrintFreeze','updatePrintConfig','ConfirmSheetPrintOperation','ICommandService','CancelSheetPrintOperation','renderConfig','get','extend','PrintPaperMargin','Event','PrintPaperSize','syncExecuteCommand','SheetPrintCanceled','1818693LtPrYf','@univerjs-pro/print','99972zyGlWA','SheetPrintOpen','beforeCommandExecuted','ISheetPrintManagerService','PrintScale','print','_initialize','getActiveSheet','579009mutgFR','FRange','getRangeImage','PrintArea','getUnitId'];_0x1f8b=function(){return _0x5b3490;};return _0x1f8b();}
1
+ 'use strict';const _0x53b3f1=_0x5538;(function(_0x379edf,_0x2ee306){const _0x51b4cf=_0x5538,_0x355b5b=_0x379edf();while(!![]){try{const _0x4c854d=-parseInt(_0x51b4cf(0x17f))/0x1*(parseInt(_0x51b4cf(0x16b))/0x2)+-parseInt(_0x51b4cf(0x195))/0x3+parseInt(_0x51b4cf(0x16c))/0x4*(parseInt(_0x51b4cf(0x155))/0x5)+-parseInt(_0x51b4cf(0x193))/0x6+parseInt(_0x51b4cf(0x181))/0x7*(parseInt(_0x51b4cf(0x187))/0x8)+parseInt(_0x51b4cf(0x15c))/0x9+-parseInt(_0x51b4cf(0x16d))/0xa*(-parseInt(_0x51b4cf(0x163))/0xb);if(_0x4c854d===_0x2ee306)break;else _0x355b5b['push'](_0x355b5b['shift']());}catch(_0x3079ab){_0x355b5b['push'](_0x355b5b['shift']());}}}(_0xc94d,0xcf48c));function _0x5538(_0x29307b,_0x4fea5a){const _0xc94dd0=_0xc94d();return _0x5538=function(_0x55386a,_0x40a64b){_0x55386a=_0x55386a-0x152;let _0x781b73=_0xc94dd0[_0x55386a];return _0x781b73;},_0x5538(_0x29307b,_0x4fea5a);}function _0xc94d(){const _0x50a6e1=['getSheetId','PrintFreeze','cancel','SheetPrintOpen','hasPrintFacadePermission','SheetPrintCanceled','BeforeSheetPrintConfirm','SheetPrintOpenOperation','updateRenderConfig','layoutConfig','PrintHeaderFooter','PrintPaperMargin','_range','updatePrintRenderConfig','closePrintDialog','1vVpvHD','PrintArea','14CWZHyc','FUniver','SheetScreenShotOperation','ICommandService','SheetPrintClientService','renderConfig','5989184bJThBs','fireEvent','syncExecuteCommand','getUnitId','@univerjs-pro/sheets-print','getActiveSheet','print','executeCommand','SheetPrintConfirmed','extend','PrintDirection','openPrintDialog','2809686toXeIR','PaperType','3087099OuouVD','CancelSheetPrintOperation','PrintPaperSize','@univerjs-pro/print','updateLayoutConfig','FRange','2265mcnrfe','FEventName','getActiveUniverSheet','getRangeImage','BeforeSheetPrintCanceled','FWorkbook','onCommandExecuted','6887880VxFOtT','_workbook','get','ISheetPrintManagerService','_injector','BeforeSheetPrintOpen','PrintHeaderFooterSymbol','66MwCXpZ','beforeCommandExecuted','PrintAlign','ConfirmSheetPrintOperation','registerEventHandler','@univerjs/core','Event','CanceledError','1157038XBcfqJ','1948NCkPAq','736070ZzWPbe','getScreenshot','FEnum'];_0xc94d=function(){return _0x50a6e1;};return _0xc94d();}const e=require(_0x53b3f1(0x18b)),a=require(_0x53b3f1(0x168)),d=require('@univerjs/sheets/facade'),g=require('@univerjs/core/facade'),c=require(_0x53b3f1(0x152));class S extends d['FWorkbook']{['updatePrintConfig'](_0x991d2d){const _0x5a1d24=_0x53b3f1;return this[_0x5a1d24(0x160)][_0x5a1d24(0x15e)](e[_0x5a1d24(0x15f)])[_0x5a1d24(0x153)](_0x991d2d),this;}[_0x53b3f1(0x17d)](_0x3a0c8a){const _0x434295=_0x53b3f1;return this[_0x434295(0x160)]['get'](e[_0x434295(0x15f)])[_0x434295(0x178)](_0x3a0c8a),this;}[_0x53b3f1(0x18d)](){const _0x382b1c=_0x53b3f1;return this[_0x382b1c(0x160)][_0x382b1c(0x15e)](a[_0x382b1c(0x184)])[_0x382b1c(0x189)](e[_0x382b1c(0x166)]['id']);}[_0x53b3f1(0x192)](){const _0x1df0b0=_0x53b3f1;return this['_injector'][_0x1df0b0(0x15e)](a['ICommandService'])[_0x1df0b0(0x189)](e[_0x1df0b0(0x177)]['id']);}[_0x53b3f1(0x17e)](){const _0x541aba=_0x53b3f1;return this['_injector'][_0x541aba(0x15e)](a['ICommandService'])[_0x541aba(0x189)](e[_0x541aba(0x196)]['id']);}async['saveScreenshotToClipboard'](){const _0x980533=_0x53b3f1;return e[_0x980533(0x174)](this['_injector'])?this[_0x980533(0x160)][_0x980533(0x15e)](a['ICommandService'])[_0x980533(0x18e)](e[_0x980533(0x183)]['id']):!0x1;}}d[_0x53b3f1(0x15a)][_0x53b3f1(0x190)](S);class f extends d['FRange']{[_0x53b3f1(0x16e)](){const _0x172c37=_0x53b3f1;return e[_0x172c37(0x174)](this[_0x172c37(0x160)])?this['_injector']['get'](e[_0x172c37(0x185)])[_0x172c37(0x158)](this[_0x172c37(0x15d)][_0x172c37(0x18a)](),this['_worksheet'][_0x172c37(0x170)](),this[_0x172c37(0x17c)]):!0x1;}}d[_0x53b3f1(0x154)][_0x53b3f1(0x190)](f);class P{get['BeforeSheetPrintOpen'](){const _0x511f48=_0x53b3f1;return _0x511f48(0x161);}get[_0x53b3f1(0x176)](){const _0x17ac41=_0x53b3f1;return _0x17ac41(0x176);}get[_0x53b3f1(0x159)](){const _0x386efa=_0x53b3f1;return _0x386efa(0x159);}get[_0x53b3f1(0x173)](){return'SheetPrintOpen';}get[_0x53b3f1(0x18f)](){const _0x1d3544=_0x53b3f1;return _0x1d3544(0x18f);}get[_0x53b3f1(0x175)](){return'SheetPrintCanceled';}}g[_0x53b3f1(0x156)][_0x53b3f1(0x190)](P);class u{get[_0x53b3f1(0x180)](){const _0x19cd97=_0x53b3f1;return e[_0x19cd97(0x180)];}get[_0x53b3f1(0x165)](){const _0x30795b=_0x53b3f1;return c[_0x30795b(0x165)];}get[_0x53b3f1(0x197)](){const _0x33b213=_0x53b3f1;return a[_0x33b213(0x194)];}get[_0x53b3f1(0x17b)](){const _0x124e80=_0x53b3f1;return c[_0x124e80(0x17b)];}get['PrintScale'](){return c['PrintScale'];}get[_0x53b3f1(0x191)](){const _0x8707e=_0x53b3f1;return c[_0x8707e(0x191)];}get[_0x53b3f1(0x171)](){const _0x17efb4=_0x53b3f1;return e[_0x17efb4(0x171)];}get[_0x53b3f1(0x17a)](){return e['PrintHeaderFooter'];}get[_0x53b3f1(0x162)](){const _0x3d36d1=_0x53b3f1;return e[_0x3d36d1(0x162)];}}g[_0x53b3f1(0x16f)][_0x53b3f1(0x190)](u);class l extends g[_0x53b3f1(0x182)]{['_initialize'](_0x30109){const _0x35a989=_0x53b3f1,_0x32287=_0x30109[_0x35a989(0x15e)](a[_0x35a989(0x184)]);this['registerEventHandler'](this['Event'][_0x35a989(0x161)],()=>_0x32287[_0x35a989(0x164)](_0x288c6e=>{const _0x53296a=_0x35a989;if(_0x288c6e['id']===e['SheetPrintOpenOperation']['id']){const _0x25f499=this['getActiveUniverSheet']();if(!_0x25f499)return;const _0x869047={'workbook':_0x25f499,'worksheet':_0x25f499['getActiveSheet']()};if(_0x869047==null)return;if(this[_0x53296a(0x188)](this[_0x53296a(0x169)][_0x53296a(0x161)],_0x869047),_0x869047[_0x53296a(0x172)])throw new a[(_0x53296a(0x16a))]();}})),this[_0x35a989(0x167)](this['Event'][_0x35a989(0x176)],()=>_0x32287['beforeCommandExecuted'](_0x4bc371=>{const _0x171e76=_0x35a989;if(_0x4bc371['id']===e['ConfirmSheetPrintOperation']['id']){const _0x28be27=_0x30109[_0x171e76(0x15e)](e['ISheetPrintManagerService']);if(!this['getActiveUniverSheet']())return;const _0x5803e9={'layoutConfig':_0x28be27['layoutConfig'],'renderConfig':_0x28be27[_0x171e76(0x186)]};if(_0x5803e9==null)return;if(this[_0x171e76(0x188)](this[_0x171e76(0x169)][_0x171e76(0x176)],_0x5803e9),_0x5803e9[_0x171e76(0x172)])throw new a['CanceledError']();}})),this['registerEventHandler'](this[_0x35a989(0x169)][_0x35a989(0x159)],()=>_0x32287['beforeCommandExecuted'](_0x27ecc4=>{const _0x216bef=_0x35a989;if(_0x27ecc4['id']===e[_0x216bef(0x196)]['id']){const _0x5a7ea3=_0x30109[_0x216bef(0x15e)](e[_0x216bef(0x15f)]);if(!this['getActiveUniverSheet']())return;const _0x4e0a13={'layoutConfig':_0x5a7ea3[_0x216bef(0x179)],'renderConfig':_0x5a7ea3[_0x216bef(0x186)]};if(_0x4e0a13==null)return;if(this[_0x216bef(0x188)](this[_0x216bef(0x169)][_0x216bef(0x159)],_0x4e0a13),_0x4e0a13[_0x216bef(0x172)])throw new a['CanceledError']();}})),this[_0x35a989(0x167)](this[_0x35a989(0x169)]['SheetPrintOpen'],()=>_0x32287[_0x35a989(0x15b)](_0x662679=>{const _0x88639d=_0x35a989;if(_0x662679['id']===e[_0x88639d(0x177)]['id']){const _0x1d4947=this['getActiveUniverSheet']();if(!_0x1d4947)return;const _0x29c488={'workbook':_0x1d4947,'worksheet':_0x1d4947[_0x88639d(0x18c)]()};if(_0x29c488==null)return;this[_0x88639d(0x188)](this[_0x88639d(0x169)][_0x88639d(0x173)],_0x29c488);}})),this['registerEventHandler'](this[_0x35a989(0x169)]['SheetPrintConfirmed'],()=>_0x32287[_0x35a989(0x15b)](_0x34472e=>{const _0x237f4c=_0x35a989;if(_0x34472e['id']===e[_0x237f4c(0x166)]['id']){const _0x34bc03=_0x30109[_0x237f4c(0x15e)](e[_0x237f4c(0x15f)]);if(!this[_0x237f4c(0x157)]())return;const _0x88d7ce={'layoutConfig':_0x34bc03[_0x237f4c(0x179)],'renderConfig':_0x34bc03[_0x237f4c(0x186)]};if(_0x88d7ce==null)return;this[_0x237f4c(0x188)](this['Event'][_0x237f4c(0x18f)],_0x88d7ce);}})),this['registerEventHandler'](this[_0x35a989(0x169)][_0x35a989(0x175)],()=>_0x32287[_0x35a989(0x15b)](_0x38204e=>{const _0x4884a4=_0x35a989;if(_0x38204e['id']===e[_0x4884a4(0x196)]['id']){const _0x259176=_0x30109[_0x4884a4(0x15e)](e[_0x4884a4(0x15f)]);if(!this[_0x4884a4(0x157)]())return;const _0x43c48c={'layoutConfig':_0x259176[_0x4884a4(0x179)],'renderConfig':_0x259176[_0x4884a4(0x186)]};if(_0x43c48c==null)return;this[_0x4884a4(0x188)](this['Event'][_0x4884a4(0x175)],_0x43c48c);}}));}}g['FUniver'][_0x53b3f1(0x190)](l);