@univerjs-pro/sheets-print 0.10.3 → 0.10.4-nightly.202508220605
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 +17 -17
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3dc295=_0x324c;(function(_0x15c88b,_0x13030a){const _0x1c4cf7=_0x324c,_0x58daa4=_0x15c88b();while(!![]){try{const _0x38e737=-parseInt(_0x1c4cf7(0xf4))/0x1+parseInt(_0x1c4cf7(0x108))/0x2*(-parseInt(_0x1c4cf7(0xf9))/0x3)+parseInt(_0x1c4cf7(0xf3))/0x4+parseInt(_0x1c4cf7(0x101))/0x5+parseInt(_0x1c4cf7(0x102))/0x6+parseInt(_0x1c4cf7(0xed))/0x7*(parseInt(_0x1c4cf7(0xee))/0x8)+-parseInt(_0x1c4cf7(0x10e))/0x9;if(_0x38e737===_0x13030a)break;else _0x58daa4['push'](_0x58daa4['shift']());}catch(_0x21721f){_0x58daa4['push'](_0x58daa4['shift']());}}}(_0x37f2,0xafa24));import{ISheetPrintManagerService as _0x772e26,ConfirmSheetPrintOperation as _0x1550bc,SheetPrintOpenOperation as _0x4d4df1,CancelSheetPrintOperation as _0x325b10,hasPrintFacadePermission as _0x59f838,SheetScreenShotOperation as _0x5d372d,SheetPrintClientService as _0x1c6434,PrintArea as _0x970ce1,PrintFreeze as _0x4a3337,PrintHeaderFooter as _0x3a284b,PrintHeaderFooterSymbol as _0x41bd22}from'@univerjs-pro/sheets-print';import{ICommandService as _0x1d4304,PaperType as _0x3d82d1,CanceledError as _0x2e47bc}from'@univerjs/core';import{FWorkbook as _0x4b6281,FRange as _0x3726e4}from'@univerjs/sheets/facade';import{FEventName as _0xa68c1,FEnum as _0x194e89,FUniver as _0x3a0eff}from'@univerjs/core/facade';import{PrintAlign as _0x701694,PrintPaperMargin as _0x1c10d5,PrintScale as _0x1c9db5,PrintDirection as _0x2a19ca}from'@univerjs-pro/print';class A extends _0x4b6281{[_0x3dc295(0x114)](_0xaa3424){const _0x2c7108=_0x3dc295;return this[_0x2c7108(0xf6)][_0x2c7108(0x10c)](_0x772e26)['updateLayoutConfig'](_0xaa3424),this;}[_0x3dc295(0x107)](_0x6994b){const _0x5f2708=_0x3dc295;return this[_0x5f2708(0xf6)][_0x5f2708(0x10c)](_0x772e26)['updateRenderConfig'](_0x6994b),this;}['print'](){const _0x557ec0=_0x3dc295;return this[_0x557ec0(0xf6)][_0x557ec0(0x10c)](_0x1d4304)[_0x557ec0(0xf7)](_0x1550bc['id']);}[_0x3dc295(0xf0)](){const _0x5a088b=_0x3dc295;return this[_0x5a088b(0xf6)]['get'](_0x1d4304)[_0x5a088b(0xf7)](_0x4d4df1['id']);}['closePrintDialog'](){const _0x537229=_0x3dc295;return this[_0x537229(0xf6)][_0x537229(0x10c)](_0x1d4304)[_0x537229(0xf7)](_0x325b10['id']);}async[_0x3dc295(0xff)](){const _0x374732=_0x3dc295;return _0x59f838(this[_0x374732(0xf6)])?this[_0x374732(0xf6)][_0x374732(0x10c)](_0x1d4304)[_0x374732(0x103)](_0x5d372d['id']):!0x1;}}_0x4b6281['extend'](A);function _0x324c(_0x301156,_0x5ed5ef){const _0x37f244=_0x37f2();return _0x324c=function(_0x324c89,_0x269dba){_0x324c89=_0x324c89-0xed;let _0x4ac057=_0x37f244[_0x324c89];return _0x4ac057;},_0x324c(_0x301156,_0x5ed5ef);}class B extends _0x3726e4{['getScreenshot'](){const _0x50972c=_0x3dc295;return _0x59f838(this[_0x50972c(0xf6)])?this[_0x50972c(0xf6)]['get'](_0x1c6434)[_0x50972c(0x116)](this[_0x50972c(0x100)]['getUnitId'](),this[_0x50972c(0x104)][_0x50972c(0x10b)](),this[_0x50972c(0xfb)]):!0x1;}}_0x3726e4[_0x3dc295(0x10d)](B);class H{get[_0x3dc295(0xef)](){const _0x449108=_0x3dc295;return _0x449108(0xef);}get[_0x3dc295(0x112)](){const _0x288171=_0x3dc295;return _0x288171(0x112);}get[_0x3dc295(0x118)](){const _0x3c3333=_0x3dc295;return _0x3c3333(0x118);}get[_0x3dc295(0xfd)](){return'SheetPrintOpen';}get[_0x3dc295(0x110)](){const _0x451aab=_0x3dc295;return _0x451aab(0x110);}get[_0x3dc295(0xfa)](){const _0x1c904a=_0x3dc295;return _0x1c904a(0xfa);}}_0xa68c1[_0x3dc295(0x10d)](H);class U{get[_0x3dc295(0x117)](){return _0x970ce1;}get[_0x3dc295(0x106)](){return _0x701694;}get[_0x3dc295(0xf2)](){return _0x3d82d1;}get['PrintPaperMargin'](){return _0x1c10d5;}get['PrintScale'](){return _0x1c9db5;}get[_0x3dc295(0x11a)](){return _0x2a19ca;}get[_0x3dc295(0x109)](){return _0x4a3337;}get[_0x3dc295(0x113)](){return _0x3a284b;}get[_0x3dc295(0xf8)](){return _0x41bd22;}}_0x194e89[_0x3dc295(0x10d)](U);class M extends _0x3a0eff{['_initialize'](_0x5bbdc9){const _0x31c0a9=_0x3dc295,_0x3f40ef=_0x5bbdc9['get'](_0x1d4304);this[_0x31c0a9(0x115)](this[_0x31c0a9(0xfc)][_0x31c0a9(0xef)],()=>_0x3f40ef[_0x31c0a9(0xf5)](_0x2262f6=>{const _0x246042=_0x31c0a9;if(_0x2262f6['id']===_0x4d4df1['id']){const _0x5d3935=this[_0x246042(0x111)]();if(!_0x5d3935)return;const _0x3ab065={'workbook':_0x5d3935,'worksheet':_0x5d3935[_0x246042(0xf1)]()};if(_0x3ab065==null)return;if(this[_0x246042(0xfe)](this['Event'][_0x246042(0xef)],_0x3ab065),_0x3ab065['cancel'])throw new _0x2e47bc();}})),this[_0x31c0a9(0x115)](this['Event'][_0x31c0a9(0x112)],()=>_0x3f40ef['beforeCommandExecuted'](_0x58da20=>{const _0x3548ea=_0x31c0a9;if(_0x58da20['id']===_0x1550bc['id']){const _0x509e69=_0x5bbdc9[_0x3548ea(0x10c)](_0x772e26);if(!this['getActiveUniverSheet']())return;const _0x3fe0f9={'layoutConfig':_0x509e69[_0x3548ea(0x119)],'renderConfig':_0x509e69[_0x3548ea(0x105)]};if(_0x3fe0f9==null)return;if(this[_0x3548ea(0xfe)](this[_0x3548ea(0xfc)][_0x3548ea(0x112)],_0x3fe0f9),_0x3fe0f9['cancel'])throw new _0x2e47bc();}})),this['registerEventHandler'](this[_0x31c0a9(0xfc)][_0x31c0a9(0x118)],()=>_0x3f40ef[_0x31c0a9(0xf5)](_0x100b95=>{const _0x14f7d9=_0x31c0a9;if(_0x100b95['id']===_0x325b10['id']){const _0x49309a=_0x5bbdc9[_0x14f7d9(0x10c)](_0x772e26);if(!this['getActiveUniverSheet']())return;const _0xcbf288={'layoutConfig':_0x49309a[_0x14f7d9(0x119)],'renderConfig':_0x49309a[_0x14f7d9(0x105)]};if(_0xcbf288==null)return;if(this[_0x14f7d9(0xfe)](this[_0x14f7d9(0xfc)][_0x14f7d9(0x118)],_0xcbf288),_0xcbf288[_0x14f7d9(0x10f)])throw new _0x2e47bc();}})),this[_0x31c0a9(0x115)](this[_0x31c0a9(0xfc)][_0x31c0a9(0xfd)],()=>_0x3f40ef[_0x31c0a9(0x10a)](_0x5be5a1=>{const _0x233e5c=_0x31c0a9;if(_0x5be5a1['id']===_0x4d4df1['id']){const _0x57bf4a=this[_0x233e5c(0x111)]();if(!_0x57bf4a)return;const _0xd82064={'workbook':_0x57bf4a,'worksheet':_0x57bf4a[_0x233e5c(0xf1)]()};if(_0xd82064==null)return;this[_0x233e5c(0xfe)](this[_0x233e5c(0xfc)]['SheetPrintOpen'],_0xd82064);}})),this[_0x31c0a9(0x115)](this[_0x31c0a9(0xfc)]['SheetPrintConfirmed'],()=>_0x3f40ef[_0x31c0a9(0x10a)](_0x562146=>{const _0x406d1f=_0x31c0a9;if(_0x562146['id']===_0x1550bc['id']){const _0x35ec3f=_0x5bbdc9[_0x406d1f(0x10c)](_0x772e26);if(!this[_0x406d1f(0x111)]())return;const _0x99dfdc={'layoutConfig':_0x35ec3f[_0x406d1f(0x119)],'renderConfig':_0x35ec3f[_0x406d1f(0x105)]};if(_0x99dfdc==null)return;this[_0x406d1f(0xfe)](this[_0x406d1f(0xfc)][_0x406d1f(0x110)],_0x99dfdc);}})),this['registerEventHandler'](this['Event'][_0x31c0a9(0xfa)],()=>_0x3f40ef[_0x31c0a9(0x10a)](_0x52d65c=>{const _0x596f31=_0x31c0a9;if(_0x52d65c['id']===_0x325b10['id']){const _0x35bd82=_0x5bbdc9[_0x596f31(0x10c)](_0x772e26);if(!this[_0x596f31(0x111)]())return;const _0x4347a1={'layoutConfig':_0x35bd82['layoutConfig'],'renderConfig':_0x35bd82[_0x596f31(0x105)]};if(_0x4347a1==null)return;this[_0x596f31(0xfe)](this[_0x596f31(0xfc)][_0x596f31(0xfa)],_0x4347a1);}}));}}_0x3a0eff[_0x3dc295(0x10d)](M);function _0x37f2(){const _0x1cabd3=['onCommandExecuted','getSheetId','get','extend','13209282YrVzcX','cancel','SheetPrintConfirmed','getActiveUniverSheet','BeforeSheetPrintConfirm','PrintHeaderFooter','updatePrintConfig','registerEventHandler','getRangeImage','PrintArea','BeforeSheetPrintCanceled','layoutConfig','PrintDirection','596057XyFXtR','24EyuIbi','BeforeSheetPrintOpen','openPrintDialog','getActiveSheet','PrintPaperSize','4348464SRywdO','729755vTYfGg','beforeCommandExecuted','_injector','syncExecuteCommand','PrintHeaderFooterSymbol','9ZXPCaR','SheetPrintCanceled','_range','Event','SheetPrintOpen','fireEvent','saveScreenshotToClipboard','_workbook','2134980pJeklx','6962562cPtrKK','executeCommand','_worksheet','renderConfig','PrintAlign','updatePrintRenderConfig','8762FerbWi','PrintFreeze'];_0x37f2=function(){return _0x1cabd3;};return _0x37f2();}
|