@univerjs-pro/sheets-print 0.5.3 → 0.5.4-nightly.202501131606

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';function _0x2831(){const _0x26ac8f=['getScreenshot','updatePrintConfig','4303XthEXr','3SfCUxx','ICommandService','132293rHgEOL','5485UBFusx','_workbook','get','SheetScreenShotOperation','print','closePrintDialog','updateLayoutConfig','3662DxTBCD','syncExecuteCommand','_worksheet','_range','@univerjs-pro/sheets-print','9QBrhRt','8grWIUV','SheetPrintOpenOperation','FRange','_injector','@univerjs/core','1085080CfJNQt','CancelSheetPrintOperation','@univerjs/sheets/facade','1210462PUmqhF','saveScreenshotToClipboard','getUnitId','ISheetPrintManagerService','ConfirmSheetPrintOperation','8204ethoNH','6ckuyBj','2313260HkRndl','SheetPrintClientService','getRangeImage','94OdhlYu','updatePrintRenderConfig','12ZZhWwf','hasPrintFacadePermission'];_0x2831=function(){return _0x26ac8f;};return _0x2831();}const _0x25f34b=_0x2394;(function(_0x4683b2,_0x1fe89c){const _0x14ce5d=_0x2394,_0x5d1350=_0x4683b2();while(!![]){try{const _0x229367=-parseInt(_0x14ce5d(0x70))/0x1*(parseInt(_0x14ce5d(0x81))/0x2)+-parseInt(_0x14ce5d(0x77))/0x3*(-parseInt(_0x14ce5d(0x8c))/0x4)+-parseInt(_0x14ce5d(0x7a))/0x5*(-parseInt(_0x14ce5d(0x6c))/0x6)+parseInt(_0x14ce5d(0x79))/0x7*(-parseInt(_0x14ce5d(0x87))/0x8)+parseInt(_0x14ce5d(0x86))/0x9*(-parseInt(_0x14ce5d(0x6d))/0xa)+-parseInt(_0x14ce5d(0x66))/0xb*(-parseInt(_0x14ce5d(0x72))/0xc)+parseInt(_0x14ce5d(0x76))/0xd*(parseInt(_0x14ce5d(0x6b))/0xe);if(_0x229367===_0x1fe89c)break;else _0x5d1350['push'](_0x5d1350['shift']());}catch(_0x1117ce){_0x5d1350['push'](_0x5d1350['shift']());}}}(_0x2831,0x259b4));function _0x2394(_0x318754,_0x2e2fb5){const _0x28317b=_0x2831();return _0x2394=function(_0x2394c0,_0xa5dcbf){_0x2394c0=_0x2394c0-0x64;let _0x146fb1=_0x28317b[_0x2394c0];return _0x146fb1;},_0x2394(_0x318754,_0x2e2fb5);}const e=require(_0x25f34b(0x85)),t=require(_0x25f34b(0x8b)),n=require(_0x25f34b(0x65));class o extends n['FWorkbook']{[_0x25f34b(0x75)](_0x188fd2){const _0x277120=_0x25f34b;return this[_0x277120(0x8a)][_0x277120(0x7c)](e[_0x277120(0x69)])[_0x277120(0x80)](_0x188fd2);}[_0x25f34b(0x71)](_0x5aee54){const _0xf43b73=_0x25f34b;return this[_0xf43b73(0x8a)][_0xf43b73(0x7c)](e[_0xf43b73(0x69)])['updateRenderConfig'](_0x5aee54);}[_0x25f34b(0x7e)](){const _0x43529a=_0x25f34b;return this[_0x43529a(0x8a)][_0x43529a(0x7c)](t[_0x43529a(0x78)])[_0x43529a(0x82)](e[_0x43529a(0x6a)]['id']);}['openPrintDialog'](){const _0x218e45=_0x25f34b;return this['_injector'][_0x218e45(0x7c)](t[_0x218e45(0x78)])['syncExecuteCommand'](e[_0x218e45(0x88)]['id']);}[_0x25f34b(0x7f)](){const _0x46f5c7=_0x25f34b;return this['_injector']['get'](t[_0x46f5c7(0x78)])['syncExecuteCommand'](e[_0x46f5c7(0x64)]['id']);}async[_0x25f34b(0x67)](){const _0x5e1274=_0x25f34b;return e[_0x5e1274(0x73)](this[_0x5e1274(0x8a)])?this[_0x5e1274(0x8a)][_0x5e1274(0x7c)](t['ICommandService'])['executeCommand'](e[_0x5e1274(0x7d)]['id']):!0x1;}}n['FWorkbook']['extend'](o);class a extends n[_0x25f34b(0x89)]{[_0x25f34b(0x74)](){const _0x578413=_0x25f34b;return e[_0x578413(0x73)](this[_0x578413(0x8a)])?this[_0x578413(0x8a)][_0x578413(0x7c)](e[_0x578413(0x6e)])[_0x578413(0x6f)](this[_0x578413(0x7b)][_0x578413(0x68)](),this[_0x578413(0x83)]['getSheetId'](),this[_0x578413(0x84)]):!0x1;}}n['FRange']['extend'](a);
1
+ 'use strict';const _0x504dec=_0x36da;(function(_0xadee09,_0x1a52f3){const _0x1b8c33=_0x36da,_0x41f99b=_0xadee09();while(!![]){try{const _0x1ddbe6=-parseInt(_0x1b8c33(0x1f8))/0x1+-parseInt(_0x1b8c33(0x235))/0x2*(-parseInt(_0x1b8c33(0x233))/0x3)+-parseInt(_0x1b8c33(0x230))/0x4+parseInt(_0x1b8c33(0x22c))/0x5*(parseInt(_0x1b8c33(0x216))/0x6)+parseInt(_0x1b8c33(0x20f))/0x7*(-parseInt(_0x1b8c33(0x219))/0x8)+-parseInt(_0x1b8c33(0x212))/0x9+parseInt(_0x1b8c33(0x20e))/0xa*(parseInt(_0x1b8c33(0x237))/0xb);if(_0x1ddbe6===_0x1a52f3)break;else _0x41f99b['push'](_0x41f99b['shift']());}catch(_0x33e2e4){_0x41f99b['push'](_0x41f99b['shift']());}}}(_0x1709,0xde61b));function _0x36da(_0x830072,_0x22e8f7){const _0x1709be=_0x1709();return _0x36da=function(_0x36dadc,_0x5383bc){_0x36dadc=_0x36dadc-0x1f1;let _0x1917eb=_0x1709be[_0x36dadc];return _0x1917eb;},_0x36da(_0x830072,_0x22e8f7);}function _0x1709(){const _0x141f39=['10tHsxOI','renderConfig','36704305jmLzHL','_worksheet','FWorkbook','getUnitId','Event','get','ICommandService','getSheetId','openPrintDialog','1278746EjGcBi','PrintArea','SheetPrintOpenOperation','PrintScale','ConfirmSheetPrintOperation','PrintFreeze','SheetScreenShotOperation','PrintPaperMargin','BeforeSheetPrintCanceled','updateRenderConfig','SheetPrintOpen','updateLayoutConfig','_injector','getScreenshot','FEnum','PrintAlign','onCommandExecuted','PrintDirection','CancelSheetPrintOperation','FEventName','beforeCommandExecuted','getActiveSheet','10VImroG','38801gRsMxx','FUniver','executeCommand','10069965sIsRiP','_range','BeforeSheetPrintConfirm','SheetPrintConfrimed','98106nkjlQy','syncExecuteCommand','@univerjs/core','128CFxneI','BeforeSheetPrintOpen','@univerjs-pro/print','PrintPaperSize','cancel','@univerjs/sheets/facade','hasPrintFacadePermission','ISheetPrintManagerService','SheetPrintClientService','layoutConfig','hasEventCallback','getRangeImage','disposeWithMe','updatePrintRenderConfig','closePrintDialog','saveScreenshotToClipboard','FRange','fireEvent','getActiveUniverSheet','415EQhFpz','SheetPrintCanceled','CanceledError','extend','6436716ZRckbb','PrintHeaderFooterSymbol','_initialize','187491UwPuli','updatePrintConfig'];_0x1709=function(){return _0x141f39;};return _0x1709();}const e=require('@univerjs-pro/sheets-print'),n=require(_0x504dec(0x218)),h=require(_0x504dec(0x21e)),a=require(_0x504dec(0x21b));class S extends h[_0x504dec(0x1f1)]{[_0x504dec(0x234)](_0x5326e1){const _0x4fa49a=_0x504dec;return this['_injector']['get'](e['ISheetPrintManagerService'])[_0x4fa49a(0x203)](_0x5326e1),this;}[_0x504dec(0x226)](_0x40dc82){const _0x36acc7=_0x504dec;return this[_0x36acc7(0x204)][_0x36acc7(0x1f4)](e[_0x36acc7(0x220)])[_0x36acc7(0x201)](_0x40dc82),this;}['print'](){const _0x8f61e5=_0x504dec;return this[_0x8f61e5(0x204)][_0x8f61e5(0x1f4)](n[_0x8f61e5(0x1f5)])[_0x8f61e5(0x217)](e[_0x8f61e5(0x1fc)]['id']);}[_0x504dec(0x1f7)](){const _0x3e9216=_0x504dec;return this['_injector'][_0x3e9216(0x1f4)](n['ICommandService'])[_0x3e9216(0x217)](e[_0x3e9216(0x1fa)]['id']);}[_0x504dec(0x227)](){const _0x470fcf=_0x504dec;return this[_0x470fcf(0x204)][_0x470fcf(0x1f4)](n['ICommandService'])[_0x470fcf(0x217)](e[_0x470fcf(0x20a)]['id']);}async[_0x504dec(0x228)](){const _0x14136f=_0x504dec;return e[_0x14136f(0x21f)](this[_0x14136f(0x204)])?this[_0x14136f(0x204)][_0x14136f(0x1f4)](n['ICommandService'])[_0x14136f(0x211)](e[_0x14136f(0x1fe)]['id']):!0x1;}}h[_0x504dec(0x1f1)][_0x504dec(0x22f)](S);class P extends h['FRange']{[_0x504dec(0x205)](){const _0x6f0f89=_0x504dec;return e[_0x6f0f89(0x21f)](this['_injector'])?this[_0x6f0f89(0x204)][_0x6f0f89(0x1f4)](e[_0x6f0f89(0x221)])[_0x6f0f89(0x224)](this['_workbook'][_0x6f0f89(0x1f2)](),this[_0x6f0f89(0x238)][_0x6f0f89(0x1f6)](),this[_0x6f0f89(0x213)]):!0x1;}}h[_0x504dec(0x229)][_0x504dec(0x22f)](P);class f{get['BeforeSheetPrintOpen'](){return'BeforeSheetPrintOpen';}get['BeforeSheetPrintConfirm'](){const _0x317fff=_0x504dec;return _0x317fff(0x214);}get[_0x504dec(0x200)](){const _0x577429=_0x504dec;return _0x577429(0x200);}get[_0x504dec(0x202)](){const _0x2de3f7=_0x504dec;return _0x2de3f7(0x202);}get[_0x504dec(0x215)](){const _0x4010da=_0x504dec;return _0x4010da(0x215);}get[_0x504dec(0x22d)](){const _0x4efcc2=_0x504dec;return _0x4efcc2(0x22d);}}n[_0x504dec(0x20b)]['extend'](f);class d{get[_0x504dec(0x1f9)](){return e['PrintArea'];}get['PrintAlign'](){const _0xb0a232=_0x504dec;return a[_0xb0a232(0x207)];}get[_0x504dec(0x21c)](){const _0x4176d8=_0x504dec;return a[_0x4176d8(0x21c)];}get[_0x504dec(0x1ff)](){const _0x409525=_0x504dec;return a[_0x409525(0x1ff)];}get[_0x504dec(0x1fb)](){return a['PrintScale'];}get[_0x504dec(0x209)](){const _0x190fd6=_0x504dec;return a[_0x190fd6(0x209)];}get[_0x504dec(0x1fd)](){const _0x174b23=_0x504dec;return e[_0x174b23(0x1fd)];}get['PrintHeaderFooter'](){return e['PrintHeaderFooter'];}get[_0x504dec(0x231)](){return e['PrintHeaderFooterSymbol'];}}n[_0x504dec(0x206)][_0x504dec(0x22f)](d);class u extends n[_0x504dec(0x210)]{[_0x504dec(0x232)](_0x521dcf){const _0x51589a=_0x504dec,_0x3da742=_0x521dcf['get'](n[_0x51589a(0x1f5)]);this[_0x51589a(0x225)](_0x3da742[_0x51589a(0x20c)](_0x22ac0d=>{const _0x2c8cfc=_0x51589a;switch(_0x22ac0d['id']){case e[_0x2c8cfc(0x1fa)]['id']:{if(!this[_0x2c8cfc(0x223)](this[_0x2c8cfc(0x1f3)][_0x2c8cfc(0x21a)]))return;const _0x315476=this[_0x2c8cfc(0x22b)]();if(!_0x315476)return;const _0x14c2a3={'workbook':_0x315476,'worksheet':_0x315476['getActiveSheet']()};if(_0x14c2a3==null)return;if(this['fireEvent'](this[_0x2c8cfc(0x1f3)]['BeforeSheetPrintOpen'],_0x14c2a3),_0x14c2a3[_0x2c8cfc(0x21d)])throw new n[(_0x2c8cfc(0x22e))]();break;}case e[_0x2c8cfc(0x1fc)]['id']:{if(!this['hasEventCallback'](this[_0x2c8cfc(0x1f3)]['BeforeSheetPrintConfirm']))return;const _0x55e1cd=_0x521dcf[_0x2c8cfc(0x1f4)](e[_0x2c8cfc(0x220)]);if(!this['getActiveUniverSheet']())return;const _0x4ef8de={'layoutConfig':_0x55e1cd[_0x2c8cfc(0x222)],'renderConfig':_0x55e1cd[_0x2c8cfc(0x236)]};if(_0x4ef8de==null)return;if(this['fireEvent'](this[_0x2c8cfc(0x1f3)][_0x2c8cfc(0x214)],_0x4ef8de),_0x4ef8de[_0x2c8cfc(0x21d)])throw new n[(_0x2c8cfc(0x22e))]();break;}case e[_0x2c8cfc(0x20a)]['id']:{if(!this[_0x2c8cfc(0x223)](this['Event'][_0x2c8cfc(0x200)]))return;const _0x2b23c7=_0x521dcf[_0x2c8cfc(0x1f4)](e[_0x2c8cfc(0x220)]);if(!this[_0x2c8cfc(0x22b)]())return;const _0x2d9604={'layoutConfig':_0x2b23c7[_0x2c8cfc(0x222)],'renderConfig':_0x2b23c7[_0x2c8cfc(0x236)]};if(_0x2d9604==null)return;if(this[_0x2c8cfc(0x22a)](this[_0x2c8cfc(0x1f3)][_0x2c8cfc(0x200)],_0x2d9604),_0x2d9604[_0x2c8cfc(0x21d)])throw new n[(_0x2c8cfc(0x22e))]();break;}}})),this['disposeWithMe'](_0x3da742[_0x51589a(0x208)](_0x3e4235=>{const _0x2ba9ec=_0x51589a;switch(_0x3e4235['id']){case e[_0x2ba9ec(0x1fa)]['id']:{if(!this['hasEventCallback'](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x202)]))return;const _0x143289=this[_0x2ba9ec(0x22b)]();if(!_0x143289)return;const _0x5ae75c={'workbook':_0x143289,'worksheet':_0x143289[_0x2ba9ec(0x20d)]()};if(_0x5ae75c==null)return;this[_0x2ba9ec(0x22a)](this['Event'][_0x2ba9ec(0x202)],_0x5ae75c);break;}case e[_0x2ba9ec(0x1fc)]['id']:{if(!this[_0x2ba9ec(0x223)](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x215)]))return;const _0x1ae100=_0x521dcf[_0x2ba9ec(0x1f4)](e[_0x2ba9ec(0x220)]);if(!this['getActiveUniverSheet']())return;const _0xd97222={'layoutConfig':_0x1ae100[_0x2ba9ec(0x222)],'renderConfig':_0x1ae100[_0x2ba9ec(0x236)]};if(_0xd97222==null)return;this[_0x2ba9ec(0x22a)](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x215)],_0xd97222);break;}case e[_0x2ba9ec(0x20a)]['id']:{if(!this['hasEventCallback'](this['Event'][_0x2ba9ec(0x22d)]))return;const _0x18b07c=_0x521dcf[_0x2ba9ec(0x1f4)](e['ISheetPrintManagerService']);if(!this[_0x2ba9ec(0x22b)]())return;const _0x389630={'layoutConfig':_0x18b07c[_0x2ba9ec(0x222)],'renderConfig':_0x18b07c['renderConfig']};if(_0x389630==null)return;this[_0x2ba9ec(0x22a)](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x22d)],_0x389630);break;}}}));}}n['FUniver'][_0x504dec(0x22f)](u);