@univerjs-pro/sheets-print 0.10.8 → 0.10.9
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 +38 -38
- 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 +16 -16
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4f462e=_0x19f4;function _0x19f4(_0x16bff3,_0x20002a){const _0x4b01f8=_0x4b01();return _0x19f4=function(_0x19f430,_0x49863c){_0x19f430=_0x19f430-0x1aa;let _0x5a138c=_0x4b01f8[_0x19f430];return _0x5a138c;},_0x19f4(_0x16bff3,_0x20002a);}(function(_0x50a7d7,_0xbefa03){const _0x4fc10f=_0x19f4,_0x3baaea=_0x50a7d7();while(!![]){try{const _0xa99e0a=parseInt(_0x4fc10f(0x1ae))/0x1*(-parseInt(_0x4fc10f(0x1bf))/0x2)+parseInt(_0x4fc10f(0x1d3))/0x3+parseInt(_0x4fc10f(0x1cb))/0x4+-parseInt(_0x4fc10f(0x1d6))/0x5+parseInt(_0x4fc10f(0x1cf))/0x6+-parseInt(_0x4fc10f(0x1be))/0x7+parseInt(_0x4fc10f(0x1c9))/0x8;if(_0xa99e0a===_0xbefa03)break;else _0x3baaea['push'](_0x3baaea['shift']());}catch(_0x417376){_0x3baaea['push'](_0x3baaea['shift']());}}}(_0x4b01,0x5d6a1));import{ISheetPrintManagerService as _0x2056f6,ConfirmSheetPrintOperation as _0x505ca3,SheetPrintOpenOperation as _0x261e90,CancelSheetPrintOperation as _0x23cdfb,hasPrintFacadePermission as _0x4bb022,SheetScreenShotOperation as _0x4f450e,SheetPrintClientService as _0x12d339,PrintArea as _0x914ec9,PrintFreeze as _0x5d7f75,PrintHeaderFooter as _0x425932,PrintHeaderFooterSymbol as _0x2c2878}from'@univerjs-pro/sheets-print';import{ICommandService as _0x54d60a,PaperType as _0x450f6f,CanceledError as _0x3cb37f}from'@univerjs/core';import{FWorkbook as _0xba4a74,FRange as _0x2149d5}from'@univerjs/sheets/facade';function _0x4b01(){const _0x29f863=['_worksheet','_workbook','getScreenshot','1451758xIlDIm','391876ETMFxi','BeforeSheetPrintCanceled','SheetPrintCanceled','openPrintDialog','PrintFreeze','PrintArea','updateLayoutConfig','SheetPrintOpen','BeforeSheetPrintConfirm','SheetPrintConfirmed','2217568PbFEkC','_initialize','2666368uqNtgQ','getActiveUniverSheet','PrintHeaderFooter','renderConfig','719526ziBMhA','PrintDirection','cancel','registerEventHandler','252510juWJoN','syncExecuteCommand','getActiveSheet','1809610ELuHaX','getRangeImage','beforeCommandExecuted','_injector','fireEvent','saveScreenshotToClipboard','updatePrintRenderConfig','PrintPaperMargin','PrintAlign','closePrintDialog','1vdNLoh','executeCommand','onCommandExecuted','Event','layoutConfig','updateRenderConfig','get','updatePrintConfig','PrintScale','print','BeforeSheetPrintOpen','getSheetId','extend'];_0x4b01=function(){return _0x29f863;};return _0x4b01();}import{FEventName as _0x4d5c58,FEnum as _0x549579,FUniver as _0xacf3fd}from'@univerjs/core/facade';import{PrintAlign as _0x23e1cb,PrintPaperMargin as _0x4b377b,PrintScale as _0x4fb5c5,PrintDirection as _0x590163}from'@univerjs-pro/print';class A extends _0xba4a74{[_0x4f462e(0x1b5)](_0x461b3f){const _0x5a0a77=_0x4f462e;return this['_injector'][_0x5a0a77(0x1b4)](_0x2056f6)[_0x5a0a77(0x1c5)](_0x461b3f),this;}[_0x4f462e(0x1aa)](_0x520e22){const _0x434575=_0x4f462e;return this[_0x434575(0x1d9)]['get'](_0x2056f6)[_0x434575(0x1b3)](_0x520e22),this;}[_0x4f462e(0x1b7)](){const _0xfe17e1=_0x4f462e;return this[_0xfe17e1(0x1d9)]['get'](_0x54d60a)[_0xfe17e1(0x1d4)](_0x505ca3['id']);}[_0x4f462e(0x1c2)](){const _0x3a7ec8=_0x4f462e;return this['_injector'][_0x3a7ec8(0x1b4)](_0x54d60a)[_0x3a7ec8(0x1d4)](_0x261e90['id']);}[_0x4f462e(0x1ad)](){const _0x342785=_0x4f462e;return this['_injector'][_0x342785(0x1b4)](_0x54d60a)[_0x342785(0x1d4)](_0x23cdfb['id']);}async[_0x4f462e(0x1db)](){const _0x4432a5=_0x4f462e;return _0x4bb022(this[_0x4432a5(0x1d9)])?this[_0x4432a5(0x1d9)][_0x4432a5(0x1b4)](_0x54d60a)[_0x4432a5(0x1af)](_0x4f450e['id']):!0x1;}}_0xba4a74[_0x4f462e(0x1ba)](A);class B extends _0x2149d5{[_0x4f462e(0x1bd)](){const _0x11530b=_0x4f462e;return _0x4bb022(this[_0x11530b(0x1d9)])?this[_0x11530b(0x1d9)]['get'](_0x12d339)[_0x11530b(0x1d7)](this[_0x11530b(0x1bc)]['getUnitId'](),this[_0x11530b(0x1bb)][_0x11530b(0x1b9)](),this['_range']):!0x1;}}_0x2149d5[_0x4f462e(0x1ba)](B);class H{get[_0x4f462e(0x1b8)](){const _0x33e7fa=_0x4f462e;return _0x33e7fa(0x1b8);}get[_0x4f462e(0x1c7)](){const _0x44f546=_0x4f462e;return _0x44f546(0x1c7);}get['BeforeSheetPrintCanceled'](){const _0x23ad30=_0x4f462e;return _0x23ad30(0x1c0);}get['SheetPrintOpen'](){const _0x486a3=_0x4f462e;return _0x486a3(0x1c6);}get[_0x4f462e(0x1c8)](){return'SheetPrintConfirmed';}get[_0x4f462e(0x1c1)](){const _0x2fbff2=_0x4f462e;return _0x2fbff2(0x1c1);}}_0x4d5c58[_0x4f462e(0x1ba)](H);class U{get[_0x4f462e(0x1c4)](){return _0x914ec9;}get[_0x4f462e(0x1ac)](){return _0x23e1cb;}get['PrintPaperSize'](){return _0x450f6f;}get[_0x4f462e(0x1ab)](){return _0x4b377b;}get[_0x4f462e(0x1b6)](){return _0x4fb5c5;}get[_0x4f462e(0x1d0)](){return _0x590163;}get[_0x4f462e(0x1c3)](){return _0x5d7f75;}get[_0x4f462e(0x1cd)](){return _0x425932;}get['PrintHeaderFooterSymbol'](){return _0x2c2878;}}_0x549579['extend'](U);class M extends _0xacf3fd{[_0x4f462e(0x1ca)](_0x36c4e5){const _0x4918da=_0x4f462e,_0x5dcc3f=_0x36c4e5[_0x4918da(0x1b4)](_0x54d60a);this[_0x4918da(0x1d2)](this['Event'][_0x4918da(0x1b8)],()=>_0x5dcc3f[_0x4918da(0x1d8)](_0x450711=>{const _0x2c213b=_0x4918da;if(_0x450711['id']===_0x261e90['id']){const _0x1fb49f=this[_0x2c213b(0x1cc)]();if(!_0x1fb49f)return;const _0x4e084c={'workbook':_0x1fb49f,'worksheet':_0x1fb49f[_0x2c213b(0x1d5)]()};if(_0x4e084c==null)return;if(this['fireEvent'](this[_0x2c213b(0x1b1)][_0x2c213b(0x1b8)],_0x4e084c),_0x4e084c[_0x2c213b(0x1d1)])throw new _0x3cb37f();}})),this[_0x4918da(0x1d2)](this['Event'][_0x4918da(0x1c7)],()=>_0x5dcc3f[_0x4918da(0x1d8)](_0xb4a709=>{const _0x1c3519=_0x4918da;if(_0xb4a709['id']===_0x505ca3['id']){const _0x3764d8=_0x36c4e5[_0x1c3519(0x1b4)](_0x2056f6);if(!this['getActiveUniverSheet']())return;const _0x230f5a={'layoutConfig':_0x3764d8[_0x1c3519(0x1b2)],'renderConfig':_0x3764d8[_0x1c3519(0x1ce)]};if(_0x230f5a==null)return;if(this[_0x1c3519(0x1da)](this['Event'][_0x1c3519(0x1c7)],_0x230f5a),_0x230f5a[_0x1c3519(0x1d1)])throw new _0x3cb37f();}})),this['registerEventHandler'](this[_0x4918da(0x1b1)][_0x4918da(0x1c0)],()=>_0x5dcc3f['beforeCommandExecuted'](_0x4ac7a1=>{const _0x5acc48=_0x4918da;if(_0x4ac7a1['id']===_0x23cdfb['id']){const _0x470ba3=_0x36c4e5[_0x5acc48(0x1b4)](_0x2056f6);if(!this[_0x5acc48(0x1cc)]())return;const _0x107c63={'layoutConfig':_0x470ba3['layoutConfig'],'renderConfig':_0x470ba3[_0x5acc48(0x1ce)]};if(_0x107c63==null)return;if(this['fireEvent'](this[_0x5acc48(0x1b1)][_0x5acc48(0x1c0)],_0x107c63),_0x107c63[_0x5acc48(0x1d1)])throw new _0x3cb37f();}})),this[_0x4918da(0x1d2)](this[_0x4918da(0x1b1)][_0x4918da(0x1c6)],()=>_0x5dcc3f[_0x4918da(0x1b0)](_0xb3764c=>{const _0xd6958b=_0x4918da;if(_0xb3764c['id']===_0x261e90['id']){const _0x164568=this[_0xd6958b(0x1cc)]();if(!_0x164568)return;const _0x5537cb={'workbook':_0x164568,'worksheet':_0x164568[_0xd6958b(0x1d5)]()};if(_0x5537cb==null)return;this[_0xd6958b(0x1da)](this[_0xd6958b(0x1b1)][_0xd6958b(0x1c6)],_0x5537cb);}})),this[_0x4918da(0x1d2)](this['Event'][_0x4918da(0x1c8)],()=>_0x5dcc3f[_0x4918da(0x1b0)](_0xf2f730=>{const _0x26b9e3=_0x4918da;if(_0xf2f730['id']===_0x505ca3['id']){const _0x5b2430=_0x36c4e5['get'](_0x2056f6);if(!this[_0x26b9e3(0x1cc)]())return;const _0x33ba5d={'layoutConfig':_0x5b2430['layoutConfig'],'renderConfig':_0x5b2430[_0x26b9e3(0x1ce)]};if(_0x33ba5d==null)return;this[_0x26b9e3(0x1da)](this['Event']['SheetPrintConfirmed'],_0x33ba5d);}})),this['registerEventHandler'](this[_0x4918da(0x1b1)][_0x4918da(0x1c1)],()=>_0x5dcc3f[_0x4918da(0x1b0)](_0x45cdd8=>{const _0x410e02=_0x4918da;if(_0x45cdd8['id']===_0x23cdfb['id']){const _0x54eff8=_0x36c4e5[_0x410e02(0x1b4)](_0x2056f6);if(!this[_0x410e02(0x1cc)]())return;const _0x1ffca6={'layoutConfig':_0x54eff8[_0x410e02(0x1b2)],'renderConfig':_0x54eff8[_0x410e02(0x1ce)]};if(_0x1ffca6==null)return;this[_0x410e02(0x1da)](this[_0x410e02(0x1b1)][_0x410e02(0x1c1)],_0x1ffca6);}}));}}_0xacf3fd['extend'](M);
|