@univerjs-pro/sheets-print 0.10.13 → 0.10.14
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 +39 -39
- 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 _0x1c38f2=_0x5326;(function(_0x29c8ec,_0x356437){const _0x514085=_0x5326,_0x61d3b9=_0x29c8ec();while(!![]){try{const _0x5b1f3f=-parseInt(_0x514085(0x1d9))/0x1+parseInt(_0x514085(0x204))/0x2*(-parseInt(_0x514085(0x1e6))/0x3)+-parseInt(_0x514085(0x1ef))/0x4+-parseInt(_0x514085(0x1fc))/0x5+parseInt(_0x514085(0x1da))/0x6+parseInt(_0x514085(0x201))/0x7*(parseInt(_0x514085(0x1f8))/0x8)+parseInt(_0x514085(0x203))/0x9*(parseInt(_0x514085(0x1e1))/0xa);if(_0x5b1f3f===_0x356437)break;else _0x61d3b9['push'](_0x61d3b9['shift']());}catch(_0x23e437){_0x61d3b9['push'](_0x61d3b9['shift']());}}}(_0x2e3e,0xa0a4a));import{ISheetPrintManagerService as _0x573946,ConfirmSheetPrintOperation as _0x5899f5,SheetPrintOpenOperation as _0x17cbd5,CancelSheetPrintOperation as _0x545916,hasPrintFacadePermission as _0x1e611e,SheetScreenShotOperation as _0x4ab222,SheetPrintClientService as _0x52bc7e,PrintArea as _0x59aea7,PrintFreeze as _0x64ba29,PrintHeaderFooter as _0x28f410,PrintHeaderFooterSymbol as _0x44531f}from'@univerjs-pro/sheets-print';import{ICommandService as _0x386fd3,PaperType as _0x33068c,CanceledError as _0x407627}from'@univerjs/core';function _0x2e3e(){const _0x30c167=['syncExecuteCommand','beforeCommandExecuted','_range','10iCCrOO','SheetPrintConfirmed','PrintArea','closePrintDialog','_initialize','1389aQqDXX','BeforeSheetPrintCanceled','getScreenshot','fireEvent','Event','PrintHeaderFooter','layoutConfig','executeCommand','print','4316748bmzwIa','getSheetId','extend','getActiveSheet','SheetPrintOpen','SheetPrintCanceled','_workbook','registerEventHandler','saveScreenshotToClipboard','10352kujnvR','PrintFreeze','cancel','PrintScale','2024365EQwsoJ','BeforeSheetPrintConfirm','PrintDirection','_worksheet','onCommandExecuted','2485yerJOb','PrintPaperMargin','21089673wIXUEI','1780FtaYml','getActiveUniverSheet','getUnitId','updatePrintRenderConfig','getRangeImage','_injector','BeforeSheetPrintOpen','665409tOuhrH','2501196XgjYMQ','PrintAlign','get','renderConfig'];_0x2e3e=function(){return _0x30c167;};return _0x2e3e();}import{FWorkbook as _0x271f28,FRange as _0x3b7d65}from'@univerjs/sheets/facade';import{FEventName as _0x7cf4d3,FEnum as _0x324847,FUniver as _0x1415b0}from'@univerjs/core/facade';import{PrintAlign as _0x1243d6,PrintPaperMargin as _0x433e4b,PrintScale as _0x423ce4,PrintDirection as _0x4e2cf5}from'@univerjs-pro/print';class A extends _0x271f28{['updatePrintConfig'](_0x3832ba){const _0x16f959=_0x5326;return this[_0x16f959(0x1d7)][_0x16f959(0x1dc)](_0x573946)['updateLayoutConfig'](_0x3832ba),this;}[_0x1c38f2(0x1d5)](_0x39a051){const _0x38df38=_0x1c38f2;return this[_0x38df38(0x1d7)][_0x38df38(0x1dc)](_0x573946)['updateRenderConfig'](_0x39a051),this;}[_0x1c38f2(0x1ee)](){const _0x5f1921=_0x1c38f2;return this[_0x5f1921(0x1d7)][_0x5f1921(0x1dc)](_0x386fd3)[_0x5f1921(0x1de)](_0x5899f5['id']);}['openPrintDialog'](){const _0x39fb89=_0x1c38f2;return this[_0x39fb89(0x1d7)][_0x39fb89(0x1dc)](_0x386fd3)['syncExecuteCommand'](_0x17cbd5['id']);}[_0x1c38f2(0x1e4)](){const _0x45777c=_0x1c38f2;return this[_0x45777c(0x1d7)]['get'](_0x386fd3)[_0x45777c(0x1de)](_0x545916['id']);}async[_0x1c38f2(0x1f7)](){const _0x48bd9b=_0x1c38f2;return _0x1e611e(this[_0x48bd9b(0x1d7)])?this['_injector'][_0x48bd9b(0x1dc)](_0x386fd3)[_0x48bd9b(0x1ed)](_0x4ab222['id']):!0x1;}}_0x271f28[_0x1c38f2(0x1f1)](A);class B extends _0x3b7d65{[_0x1c38f2(0x1e8)](){const _0x5578ef=_0x1c38f2;return _0x1e611e(this[_0x5578ef(0x1d7)])?this[_0x5578ef(0x1d7)]['get'](_0x52bc7e)[_0x5578ef(0x1d6)](this[_0x5578ef(0x1f5)][_0x5578ef(0x206)](),this[_0x5578ef(0x1ff)][_0x5578ef(0x1f0)](),this[_0x5578ef(0x1e0)]):!0x1;}}_0x3b7d65[_0x1c38f2(0x1f1)](B);class H{get[_0x1c38f2(0x1d8)](){const _0x54b542=_0x1c38f2;return _0x54b542(0x1d8);}get[_0x1c38f2(0x1fd)](){const _0x25ec96=_0x1c38f2;return _0x25ec96(0x1fd);}get[_0x1c38f2(0x1e7)](){const _0x5f2ea9=_0x1c38f2;return _0x5f2ea9(0x1e7);}get[_0x1c38f2(0x1f3)](){const _0x3c6e32=_0x1c38f2;return _0x3c6e32(0x1f3);}get[_0x1c38f2(0x1e2)](){const _0x41635e=_0x1c38f2;return _0x41635e(0x1e2);}get['SheetPrintCanceled'](){const _0x53d0e9=_0x1c38f2;return _0x53d0e9(0x1f4);}}_0x7cf4d3['extend'](H);class U{get[_0x1c38f2(0x1e3)](){return _0x59aea7;}get[_0x1c38f2(0x1db)](){return _0x1243d6;}get['PrintPaperSize'](){return _0x33068c;}get[_0x1c38f2(0x202)](){return _0x433e4b;}get[_0x1c38f2(0x1fb)](){return _0x423ce4;}get[_0x1c38f2(0x1fe)](){return _0x4e2cf5;}get[_0x1c38f2(0x1f9)](){return _0x64ba29;}get[_0x1c38f2(0x1eb)](){return _0x28f410;}get['PrintHeaderFooterSymbol'](){return _0x44531f;}}function _0x5326(_0x28f08b,_0x4aa241){const _0x2e3e87=_0x2e3e();return _0x5326=function(_0x532686,_0x25bd68){_0x532686=_0x532686-0x1d5;let _0x15e24c=_0x2e3e87[_0x532686];return _0x15e24c;},_0x5326(_0x28f08b,_0x4aa241);}_0x324847[_0x1c38f2(0x1f1)](U);class M extends _0x1415b0{[_0x1c38f2(0x1e5)](_0x13c692){const _0x2e4e1a=_0x1c38f2,_0x3915b9=_0x13c692[_0x2e4e1a(0x1dc)](_0x386fd3);this[_0x2e4e1a(0x1f6)](this[_0x2e4e1a(0x1ea)][_0x2e4e1a(0x1d8)],()=>_0x3915b9['beforeCommandExecuted'](_0x5e88d9=>{const _0x5eaa4b=_0x2e4e1a;if(_0x5e88d9['id']===_0x17cbd5['id']){const _0x76ca62=this[_0x5eaa4b(0x205)]();if(!_0x76ca62)return;const _0xce576c={'workbook':_0x76ca62,'worksheet':_0x76ca62[_0x5eaa4b(0x1f2)]()};if(_0xce576c==null)return;if(this[_0x5eaa4b(0x1e9)](this[_0x5eaa4b(0x1ea)]['BeforeSheetPrintOpen'],_0xce576c),_0xce576c[_0x5eaa4b(0x1fa)])throw new _0x407627();}})),this[_0x2e4e1a(0x1f6)](this[_0x2e4e1a(0x1ea)][_0x2e4e1a(0x1fd)],()=>_0x3915b9[_0x2e4e1a(0x1df)](_0x57acfb=>{const _0x218707=_0x2e4e1a;if(_0x57acfb['id']===_0x5899f5['id']){const _0x5c9fc6=_0x13c692[_0x218707(0x1dc)](_0x573946);if(!this[_0x218707(0x205)]())return;const _0x557ab5={'layoutConfig':_0x5c9fc6['layoutConfig'],'renderConfig':_0x5c9fc6[_0x218707(0x1dd)]};if(_0x557ab5==null)return;if(this['fireEvent'](this[_0x218707(0x1ea)][_0x218707(0x1fd)],_0x557ab5),_0x557ab5['cancel'])throw new _0x407627();}})),this[_0x2e4e1a(0x1f6)](this[_0x2e4e1a(0x1ea)][_0x2e4e1a(0x1e7)],()=>_0x3915b9[_0x2e4e1a(0x1df)](_0x369abe=>{const _0x22a033=_0x2e4e1a;if(_0x369abe['id']===_0x545916['id']){const _0x4313c8=_0x13c692['get'](_0x573946);if(!this['getActiveUniverSheet']())return;const _0x2f0250={'layoutConfig':_0x4313c8[_0x22a033(0x1ec)],'renderConfig':_0x4313c8[_0x22a033(0x1dd)]};if(_0x2f0250==null)return;if(this[_0x22a033(0x1e9)](this[_0x22a033(0x1ea)][_0x22a033(0x1e7)],_0x2f0250),_0x2f0250[_0x22a033(0x1fa)])throw new _0x407627();}})),this[_0x2e4e1a(0x1f6)](this[_0x2e4e1a(0x1ea)][_0x2e4e1a(0x1f3)],()=>_0x3915b9['onCommandExecuted'](_0x2196d7=>{const _0x50fae8=_0x2e4e1a;if(_0x2196d7['id']===_0x17cbd5['id']){const _0x2293aa=this[_0x50fae8(0x205)]();if(!_0x2293aa)return;const _0x2f4a5a={'workbook':_0x2293aa,'worksheet':_0x2293aa[_0x50fae8(0x1f2)]()};if(_0x2f4a5a==null)return;this['fireEvent'](this[_0x50fae8(0x1ea)]['SheetPrintOpen'],_0x2f4a5a);}})),this[_0x2e4e1a(0x1f6)](this['Event'][_0x2e4e1a(0x1e2)],()=>_0x3915b9['onCommandExecuted'](_0x33afc7=>{const _0x5c31af=_0x2e4e1a;if(_0x33afc7['id']===_0x5899f5['id']){const _0xa4317a=_0x13c692[_0x5c31af(0x1dc)](_0x573946);if(!this[_0x5c31af(0x205)]())return;const _0x2c9d07={'layoutConfig':_0xa4317a[_0x5c31af(0x1ec)],'renderConfig':_0xa4317a[_0x5c31af(0x1dd)]};if(_0x2c9d07==null)return;this[_0x5c31af(0x1e9)](this[_0x5c31af(0x1ea)]['SheetPrintConfirmed'],_0x2c9d07);}})),this[_0x2e4e1a(0x1f6)](this['Event'][_0x2e4e1a(0x1f4)],()=>_0x3915b9[_0x2e4e1a(0x200)](_0x4d0e9b=>{const _0x2fe4ec=_0x2e4e1a;if(_0x4d0e9b['id']===_0x545916['id']){const _0xcec38c=_0x13c692[_0x2fe4ec(0x1dc)](_0x573946);if(!this[_0x2fe4ec(0x205)]())return;const _0x39dc6a={'layoutConfig':_0xcec38c[_0x2fe4ec(0x1ec)],'renderConfig':_0xcec38c[_0x2fe4ec(0x1dd)]};if(_0x39dc6a==null)return;this[_0x2fe4ec(0x1e9)](this[_0x2fe4ec(0x1ea)][_0x2fe4ec(0x1f4)],_0x39dc6a);}}));}}_0x1415b0['extend'](M);
|