@univerjs-pro/sheets-print 0.10.9 → 0.10.10
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 +15 -15
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1235e1=_0x30e3;(function(_0x56637b,_0x5cba93){const _0x2ad32c=_0x30e3,_0x3623a5=_0x56637b();while(!![]){try{const _0x279848=-parseInt(_0x2ad32c(0x1a0))/0x1+-parseInt(_0x2ad32c(0x1a1))/0x2*(parseInt(_0x2ad32c(0x1a3))/0x3)+-parseInt(_0x2ad32c(0x1bf))/0x4+parseInt(_0x2ad32c(0x1b2))/0x5*(-parseInt(_0x2ad32c(0x1bc))/0x6)+-parseInt(_0x2ad32c(0x1a7))/0x7+parseInt(_0x2ad32c(0x1bd))/0x8*(parseInt(_0x2ad32c(0x1c1))/0x9)+parseInt(_0x2ad32c(0x19c))/0xa;if(_0x279848===_0x5cba93)break;else _0x3623a5['push'](_0x3623a5['shift']());}catch(_0x23cdef){_0x3623a5['push'](_0x3623a5['shift']());}}}(_0xc399,0xeca49));import{ISheetPrintManagerService as _0x27fc63,ConfirmSheetPrintOperation as _0x5c4613,SheetPrintOpenOperation as _0x28f8fe,CancelSheetPrintOperation as _0x4a0566,hasPrintFacadePermission as _0x201cf1,SheetScreenShotOperation as _0x355b75,SheetPrintClientService as _0x206a57,PrintArea as _0x4ff651,PrintFreeze as _0xa13785,PrintHeaderFooter as _0x56d6bd,PrintHeaderFooterSymbol as _0xbae47d}from'@univerjs-pro/sheets-print';import{ICommandService as _0x2deae0,PaperType as _0x2d537b,CanceledError as _0x1601c0}from'@univerjs/core';import{FWorkbook as _0x57aed6,FRange as _0x2bc1cd}from'@univerjs/sheets/facade';function _0xc399(){const _0x27ac33=['onCommandExecuted','341108BgnZVI','12VlCiQM','PrintPaperMargin','139164jPuxnd','_workbook','BeforeSheetPrintConfirm','extend','12574828vFLoHO','fireEvent','_worksheet','BeforeSheetPrintCanceled','BeforeSheetPrintOpen','getUnitId','getRangeImage','print','_initialize','Event','PrintArea','1690185UMUzHH','cancel','registerEventHandler','syncExecuteCommand','updateLayoutConfig','SheetPrintConfirmed','SheetPrintOpen','getSheetId','PrintHeaderFooterSymbol','layoutConfig','12usnnbi','8cVvOED','PrintHeaderFooter','3182560mZvGTp','PrintDirection','5637132BFvqll','PrintPaperSize','closePrintDialog','PrintAlign','renderConfig','get','SheetPrintCanceled','_injector','_range','getActiveUniverSheet','updatePrintConfig','executeCommand','openPrintDialog','beforeCommandExecuted','PrintScale','42304950kLERLZ','updateRenderConfig','getActiveSheet'];_0xc399=function(){return _0x27ac33;};return _0xc399();}import{FEventName as _0x44948b,FEnum as _0x1bf1ba,FUniver as _0x950695}from'@univerjs/core/facade';import{PrintAlign as _0x213eb6,PrintPaperMargin as _0x1f8fcc,PrintScale as _0x351117,PrintDirection as _0xa94a5e}from'@univerjs-pro/print';class A extends _0x57aed6{[_0x1235e1(0x197)](_0x528152){const _0x64564e=_0x1235e1;return this[_0x64564e(0x1c8)][_0x64564e(0x1c6)](_0x27fc63)[_0x64564e(0x1b6)](_0x528152),this;}['updatePrintRenderConfig'](_0x2c6068){const _0xd655e0=_0x1235e1;return this[_0xd655e0(0x1c8)]['get'](_0x27fc63)[_0xd655e0(0x19d)](_0x2c6068),this;}[_0x1235e1(0x1ae)](){const _0x46f260=_0x1235e1;return this[_0x46f260(0x1c8)][_0x46f260(0x1c6)](_0x2deae0)[_0x46f260(0x1b5)](_0x5c4613['id']);}[_0x1235e1(0x199)](){const _0x4cac5e=_0x1235e1;return this['_injector'][_0x4cac5e(0x1c6)](_0x2deae0)[_0x4cac5e(0x1b5)](_0x28f8fe['id']);}[_0x1235e1(0x1c3)](){const _0x2522e2=_0x1235e1;return this['_injector'][_0x2522e2(0x1c6)](_0x2deae0)[_0x2522e2(0x1b5)](_0x4a0566['id']);}async['saveScreenshotToClipboard'](){const _0x32e608=_0x1235e1;return _0x201cf1(this['_injector'])?this[_0x32e608(0x1c8)][_0x32e608(0x1c6)](_0x2deae0)[_0x32e608(0x198)](_0x355b75['id']):!0x1;}}_0x57aed6[_0x1235e1(0x1a6)](A);class B extends _0x2bc1cd{['getScreenshot'](){const _0x370e4c=_0x1235e1;return _0x201cf1(this[_0x370e4c(0x1c8)])?this['_injector'][_0x370e4c(0x1c6)](_0x206a57)[_0x370e4c(0x1ad)](this[_0x370e4c(0x1a4)][_0x370e4c(0x1ac)](),this[_0x370e4c(0x1a9)][_0x370e4c(0x1b9)](),this[_0x370e4c(0x1c9)]):!0x1;}}_0x2bc1cd['extend'](B);class H{get['BeforeSheetPrintOpen'](){const _0x2ae764=_0x1235e1;return _0x2ae764(0x1ab);}get['BeforeSheetPrintConfirm'](){const _0x48ce03=_0x1235e1;return _0x48ce03(0x1a5);}get[_0x1235e1(0x1aa)](){return'BeforeSheetPrintCanceled';}get[_0x1235e1(0x1b8)](){const _0x55eb47=_0x1235e1;return _0x55eb47(0x1b8);}get[_0x1235e1(0x1b7)](){const _0x3442cd=_0x1235e1;return _0x3442cd(0x1b7);}get[_0x1235e1(0x1c7)](){const _0x5a30a9=_0x1235e1;return _0x5a30a9(0x1c7);}}_0x44948b['extend'](H);class U{get[_0x1235e1(0x1b1)](){return _0x4ff651;}get[_0x1235e1(0x1c4)](){return _0x213eb6;}get[_0x1235e1(0x1c2)](){return _0x2d537b;}get[_0x1235e1(0x1a2)](){return _0x1f8fcc;}get[_0x1235e1(0x19b)](){return _0x351117;}get[_0x1235e1(0x1c0)](){return _0xa94a5e;}get['PrintFreeze'](){return _0xa13785;}get[_0x1235e1(0x1be)](){return _0x56d6bd;}get[_0x1235e1(0x1ba)](){return _0xbae47d;}}_0x1bf1ba[_0x1235e1(0x1a6)](U);class M extends _0x950695{[_0x1235e1(0x1af)](_0x4aed02){const _0x1d4864=_0x1235e1,_0x186d29=_0x4aed02[_0x1d4864(0x1c6)](_0x2deae0);this[_0x1d4864(0x1b4)](this['Event'][_0x1d4864(0x1ab)],()=>_0x186d29[_0x1d4864(0x19a)](_0x53979b=>{const _0x35d8d3=_0x1d4864;if(_0x53979b['id']===_0x28f8fe['id']){const _0x31dfe3=this['getActiveUniverSheet']();if(!_0x31dfe3)return;const _0x5312f9={'workbook':_0x31dfe3,'worksheet':_0x31dfe3[_0x35d8d3(0x19e)]()};if(_0x5312f9==null)return;if(this[_0x35d8d3(0x1a8)](this[_0x35d8d3(0x1b0)][_0x35d8d3(0x1ab)],_0x5312f9),_0x5312f9[_0x35d8d3(0x1b3)])throw new _0x1601c0();}})),this[_0x1d4864(0x1b4)](this[_0x1d4864(0x1b0)][_0x1d4864(0x1a5)],()=>_0x186d29['beforeCommandExecuted'](_0x166a9a=>{const _0x107531=_0x1d4864;if(_0x166a9a['id']===_0x5c4613['id']){const _0x5cb09c=_0x4aed02['get'](_0x27fc63);if(!this[_0x107531(0x196)]())return;const _0x11c319={'layoutConfig':_0x5cb09c[_0x107531(0x1bb)],'renderConfig':_0x5cb09c[_0x107531(0x1c5)]};if(_0x11c319==null)return;if(this[_0x107531(0x1a8)](this[_0x107531(0x1b0)][_0x107531(0x1a5)],_0x11c319),_0x11c319[_0x107531(0x1b3)])throw new _0x1601c0();}})),this[_0x1d4864(0x1b4)](this[_0x1d4864(0x1b0)][_0x1d4864(0x1aa)],()=>_0x186d29['beforeCommandExecuted'](_0x20aeb6=>{const _0x68f707=_0x1d4864;if(_0x20aeb6['id']===_0x4a0566['id']){const _0x2ec96c=_0x4aed02[_0x68f707(0x1c6)](_0x27fc63);if(!this[_0x68f707(0x196)]())return;const _0x262929={'layoutConfig':_0x2ec96c[_0x68f707(0x1bb)],'renderConfig':_0x2ec96c['renderConfig']};if(_0x262929==null)return;if(this[_0x68f707(0x1a8)](this[_0x68f707(0x1b0)][_0x68f707(0x1aa)],_0x262929),_0x262929[_0x68f707(0x1b3)])throw new _0x1601c0();}})),this['registerEventHandler'](this[_0x1d4864(0x1b0)][_0x1d4864(0x1b8)],()=>_0x186d29[_0x1d4864(0x19f)](_0x34360c=>{const _0x5667ec=_0x1d4864;if(_0x34360c['id']===_0x28f8fe['id']){const _0x42a5b0=this['getActiveUniverSheet']();if(!_0x42a5b0)return;const _0xb49710={'workbook':_0x42a5b0,'worksheet':_0x42a5b0[_0x5667ec(0x19e)]()};if(_0xb49710==null)return;this[_0x5667ec(0x1a8)](this[_0x5667ec(0x1b0)][_0x5667ec(0x1b8)],_0xb49710);}})),this[_0x1d4864(0x1b4)](this[_0x1d4864(0x1b0)][_0x1d4864(0x1b7)],()=>_0x186d29[_0x1d4864(0x19f)](_0x3dc048=>{const _0x2a6198=_0x1d4864;if(_0x3dc048['id']===_0x5c4613['id']){const _0x2d1735=_0x4aed02[_0x2a6198(0x1c6)](_0x27fc63);if(!this[_0x2a6198(0x196)]())return;const _0x349b2f={'layoutConfig':_0x2d1735['layoutConfig'],'renderConfig':_0x2d1735[_0x2a6198(0x1c5)]};if(_0x349b2f==null)return;this['fireEvent'](this[_0x2a6198(0x1b0)][_0x2a6198(0x1b7)],_0x349b2f);}})),this[_0x1d4864(0x1b4)](this[_0x1d4864(0x1b0)][_0x1d4864(0x1c7)],()=>_0x186d29[_0x1d4864(0x19f)](_0x4d4b75=>{const _0x2c23c0=_0x1d4864;if(_0x4d4b75['id']===_0x4a0566['id']){const _0x55ee49=_0x4aed02[_0x2c23c0(0x1c6)](_0x27fc63);if(!this[_0x2c23c0(0x196)]())return;const _0x2c260d={'layoutConfig':_0x55ee49[_0x2c23c0(0x1bb)],'renderConfig':_0x55ee49[_0x2c23c0(0x1c5)]};if(_0x2c260d==null)return;this[_0x2c23c0(0x1a8)](this[_0x2c23c0(0x1b0)]['SheetPrintCanceled'],_0x2c260d);}}));}}function _0x30e3(_0x42b6da,_0x2b2f6e){const _0xc39902=_0xc399();return _0x30e3=function(_0x30e3e4,_0x12f4aa){_0x30e3e4=_0x30e3e4-0x196;let _0x5c262e=_0xc39902[_0x30e3e4];return _0x5c262e;},_0x30e3(_0x42b6da,_0x2b2f6e);}_0x950695[_0x1235e1(0x1a6)](M);
|