@univerjs-pro/sheets-print 0.6.0-alpha.0 → 0.6.0-experimental.20250212-dbe9830
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/en-US.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/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/en-US.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/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/types/common/const.d.ts +39 -39
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/views/components/sheet-print-page-preview.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/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 +18 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3491a7=_0x2a79;(function(_0x4b127e,_0x217cbf){const _0x55c5a1=_0x2a79,_0x4be168=_0x4b127e();while(!![]){try{const _0x5b4a9c=-parseInt(_0x55c5a1(0x1bc))/0x1*(parseInt(_0x55c5a1(0x1c1))/0x2)+-parseInt(_0x55c5a1(0x1e0))/0x3+-parseInt(_0x55c5a1(0x1e7))/0x4+parseInt(_0x55c5a1(0x1c6))/0x5+parseInt(_0x55c5a1(0x1ce))/0x6*(-parseInt(_0x55c5a1(0x1bb))/0x7)+parseInt(_0x55c5a1(0x1b3))/0x8+-parseInt(_0x55c5a1(0x1c4))/0x9*(-parseInt(_0x55c5a1(0x1de))/0xa);if(_0x5b4a9c===_0x217cbf)break;else _0x4be168['push'](_0x4be168['shift']());}catch(_0x32fda6){_0x4be168['push'](_0x4be168['shift']());}}}(_0x43e5,0xe9bc6));const e=require(_0x3491a7(0x1ca)),n=require(_0x3491a7(0x1d4)),d=require(_0x3491a7(0x1e1)),h=require(_0x3491a7(0x1c2));class g extends d[_0x3491a7(0x1c3)]{[_0x3491a7(0x1d2)](_0x124ccc){const _0x292984=_0x3491a7;return this['_injector']['get'](e[_0x292984(0x1c8)])['updateLayoutConfig'](_0x124ccc),this;}[_0x3491a7(0x1a9)](_0x5b8756){const _0x485eff=_0x3491a7;return this[_0x485eff(0x1e5)][_0x485eff(0x1ac)](e[_0x485eff(0x1c8)])[_0x485eff(0x1eb)](_0x5b8756),this;}[_0x3491a7(0x1ec)](){const _0x4e8848=_0x3491a7;return this[_0x4e8848(0x1e5)][_0x4e8848(0x1ac)](n[_0x4e8848(0x1b8)])[_0x4e8848(0x1af)](e[_0x4e8848(0x1c9)]['id']);}['openPrintDialog'](){const _0x2338a5=_0x3491a7;return this[_0x2338a5(0x1e5)][_0x2338a5(0x1ac)](n[_0x2338a5(0x1b8)])[_0x2338a5(0x1af)](e['SheetPrintOpenOperation']['id']);}['closePrintDialog'](){const _0x5a7e09=_0x3491a7;return this['_injector']['get'](n['ICommandService'])[_0x5a7e09(0x1af)](e[_0x5a7e09(0x1d5)]['id']);}async['saveScreenshotToClipboard'](){const _0xac38d7=_0x3491a7;return e[_0xac38d7(0x1b7)](this[_0xac38d7(0x1e5)])?this['_injector'][_0xac38d7(0x1ac)](n[_0xac38d7(0x1b8)])[_0xac38d7(0x1ae)](e[_0xac38d7(0x1cb)]['id']):!0x1;}}d['FWorkbook'][_0x3491a7(0x1ea)](g);class S extends d[_0x3491a7(0x1b0)]{[_0x3491a7(0x1b5)](){const _0x2312f1=_0x3491a7;return e[_0x2312f1(0x1b7)](this['_injector'])?this[_0x2312f1(0x1e5)]['get'](e[_0x2312f1(0x1c7)])[_0x2312f1(0x1e9)](this[_0x2312f1(0x1aa)][_0x2312f1(0x1d3)](),this[_0x2312f1(0x1d9)][_0x2312f1(0x1cd)](),this[_0x2312f1(0x1e4)]):!0x1;}}d[_0x3491a7(0x1b0)][_0x3491a7(0x1ea)](S);class P{get[_0x3491a7(0x1d8)](){return'BeforeSheetPrintOpen';}get[_0x3491a7(0x1b1)](){const _0x35f124=_0x3491a7;return _0x35f124(0x1b1);}get['BeforeSheetPrintCanceled'](){const _0x1cb40e=_0x3491a7;return _0x1cb40e(0x1e8);}get[_0x3491a7(0x1d6)](){return'SheetPrintOpen';}get['SheetPrintConfirmed'](){const _0xb0ba47=_0x3491a7;return _0xb0ba47(0x1ed);}get['SheetPrintCanceled'](){const _0x290581=_0x3491a7;return _0x290581(0x1bd);}}function _0x2a79(_0x1f4d9d,_0x40e9ea){const _0x43e5c0=_0x43e5();return _0x2a79=function(_0x2a795b,_0x370d86){_0x2a795b=_0x2a795b-0x1a9;let _0x247290=_0x43e5c0[_0x2a795b];return _0x247290;},_0x2a79(_0x1f4d9d,_0x40e9ea);}n[_0x3491a7(0x1b6)][_0x3491a7(0x1ea)](P);class f{get['PrintArea'](){const _0x48be97=_0x3491a7;return e[_0x48be97(0x1c0)];}get[_0x3491a7(0x1dd)](){return h['PrintAlign'];}get[_0x3491a7(0x1be)](){const _0x33e966=_0x3491a7;return h[_0x33e966(0x1be)];}get[_0x3491a7(0x1bf)](){return h['PrintPaperMargin'];}get[_0x3491a7(0x1b4)](){const _0x37ab9f=_0x3491a7;return h[_0x37ab9f(0x1b4)];}get[_0x3491a7(0x1ba)](){const _0x5a935a=_0x3491a7;return h[_0x5a935a(0x1ba)];}get[_0x3491a7(0x1cf)](){const _0x59817a=_0x3491a7;return e[_0x59817a(0x1cf)];}get[_0x3491a7(0x1b9)](){const _0x2dcd41=_0x3491a7;return e[_0x2dcd41(0x1b9)];}get['PrintHeaderFooterSymbol'](){const _0xa7bc7e=_0x3491a7;return e[_0xa7bc7e(0x1df)];}}n['FEnum'][_0x3491a7(0x1ea)](f);class u extends n[_0x3491a7(0x1da)]{[_0x3491a7(0x1dc)](_0x45e662){const _0x2ce24b=_0x3491a7,_0x3a99b6=_0x45e662[_0x2ce24b(0x1ac)](n[_0x2ce24b(0x1b8)]);this['registerEventHandler'](this[_0x2ce24b(0x1e3)]['BeforeSheetPrintOpen'],()=>_0x3a99b6[_0x2ce24b(0x1e2)](_0x26828d=>{const _0x4f2728=_0x2ce24b;if(_0x26828d['id']===e['SheetPrintOpenOperation']['id']){const _0x3cea7e=this[_0x4f2728(0x1ab)]();if(!_0x3cea7e)return;const _0x7ec1f0={'workbook':_0x3cea7e,'worksheet':_0x3cea7e[_0x4f2728(0x1d1)]()};if(_0x7ec1f0==null)return;if(this[_0x4f2728(0x1d0)](this[_0x4f2728(0x1e3)][_0x4f2728(0x1d8)],_0x7ec1f0),_0x7ec1f0[_0x4f2728(0x1ad)])throw new n[(_0x4f2728(0x1c5))]();}})),this[_0x2ce24b(0x1db)](this[_0x2ce24b(0x1e3)][_0x2ce24b(0x1b1)],()=>_0x3a99b6[_0x2ce24b(0x1e2)](_0x287c20=>{const _0x407e28=_0x2ce24b;if(_0x287c20['id']===e[_0x407e28(0x1c9)]['id']){const _0x2451ad=_0x45e662[_0x407e28(0x1ac)](e[_0x407e28(0x1c8)]);if(!this[_0x407e28(0x1ab)]())return;const _0x2c8ce4={'layoutConfig':_0x2451ad[_0x407e28(0x1b2)],'renderConfig':_0x2451ad[_0x407e28(0x1cc)]};if(_0x2c8ce4==null)return;if(this[_0x407e28(0x1d0)](this[_0x407e28(0x1e3)][_0x407e28(0x1b1)],_0x2c8ce4),_0x2c8ce4[_0x407e28(0x1ad)])throw new n[(_0x407e28(0x1c5))]();}})),this[_0x2ce24b(0x1db)](this[_0x2ce24b(0x1e3)][_0x2ce24b(0x1e8)],()=>_0x3a99b6[_0x2ce24b(0x1e2)](_0x1d1764=>{const _0x3789b3=_0x2ce24b;if(_0x1d1764['id']===e[_0x3789b3(0x1d5)]['id']){const _0x11ed45=_0x45e662['get'](e[_0x3789b3(0x1c8)]);if(!this[_0x3789b3(0x1ab)]())return;const _0x343f37={'layoutConfig':_0x11ed45[_0x3789b3(0x1b2)],'renderConfig':_0x11ed45[_0x3789b3(0x1cc)]};if(_0x343f37==null)return;if(this[_0x3789b3(0x1d0)](this[_0x3789b3(0x1e3)][_0x3789b3(0x1e8)],_0x343f37),_0x343f37[_0x3789b3(0x1ad)])throw new n[(_0x3789b3(0x1c5))]();}})),this[_0x2ce24b(0x1db)](this[_0x2ce24b(0x1e3)][_0x2ce24b(0x1d6)],()=>_0x3a99b6[_0x2ce24b(0x1d7)](_0xece935=>{const _0x144c09=_0x2ce24b;if(_0xece935['id']===e[_0x144c09(0x1e6)]['id']){const _0x20376d=this['getActiveUniverSheet']();if(!_0x20376d)return;const _0x3d101c={'workbook':_0x20376d,'worksheet':_0x20376d[_0x144c09(0x1d1)]()};if(_0x3d101c==null)return;this['fireEvent'](this[_0x144c09(0x1e3)]['SheetPrintOpen'],_0x3d101c);}})),this[_0x2ce24b(0x1db)](this[_0x2ce24b(0x1e3)][_0x2ce24b(0x1ed)],()=>_0x3a99b6[_0x2ce24b(0x1d7)](_0x42f3e9=>{const _0x5055ec=_0x2ce24b;if(_0x42f3e9['id']===e[_0x5055ec(0x1c9)]['id']){const _0x637690=_0x45e662['get'](e[_0x5055ec(0x1c8)]);if(!this[_0x5055ec(0x1ab)]())return;const _0x52e060={'layoutConfig':_0x637690['layoutConfig'],'renderConfig':_0x637690[_0x5055ec(0x1cc)]};if(_0x52e060==null)return;this[_0x5055ec(0x1d0)](this['Event'][_0x5055ec(0x1ed)],_0x52e060);}})),this[_0x2ce24b(0x1db)](this[_0x2ce24b(0x1e3)][_0x2ce24b(0x1bd)],()=>_0x3a99b6[_0x2ce24b(0x1d7)](_0x45d1d0=>{const _0x1dd876=_0x2ce24b;if(_0x45d1d0['id']===e[_0x1dd876(0x1d5)]['id']){const _0x33803a=_0x45e662['get'](e[_0x1dd876(0x1c8)]);if(!this['getActiveUniverSheet']())return;const _0x4b56d7={'layoutConfig':_0x33803a[_0x1dd876(0x1b2)],'renderConfig':_0x33803a['renderConfig']};if(_0x4b56d7==null)return;this[_0x1dd876(0x1d0)](this[_0x1dd876(0x1e3)][_0x1dd876(0x1bd)],_0x4b56d7);}}));}}function _0x43e5(){const _0x18ddae=['cancel','executeCommand','syncExecuteCommand','FRange','BeforeSheetPrintConfirm','layoutConfig','11195912BUPXmI','PrintScale','getScreenshot','FEventName','hasPrintFacadePermission','ICommandService','PrintHeaderFooter','PrintDirection','19607JCNoFj','1fwGkOY','SheetPrintCanceled','PrintPaperSize','PrintPaperMargin','PrintArea','2601854RBMsuR','@univerjs-pro/print','FWorkbook','16067682MBxHkK','CanceledError','8932495RkWWjE','SheetPrintClientService','ISheetPrintManagerService','ConfirmSheetPrintOperation','@univerjs-pro/sheets-print','SheetScreenShotOperation','renderConfig','getSheetId','90nQqkXO','PrintFreeze','fireEvent','getActiveSheet','updatePrintConfig','getUnitId','@univerjs/core','CancelSheetPrintOperation','SheetPrintOpen','onCommandExecuted','BeforeSheetPrintOpen','_worksheet','FUniver','registerEventHandler','_initialize','PrintAlign','10XQxrfg','PrintHeaderFooterSymbol','2307669gDwNNr','@univerjs/sheets/facade','beforeCommandExecuted','Event','_range','_injector','SheetPrintOpenOperation','7606956esVCZC','BeforeSheetPrintCanceled','getRangeImage','extend','updateRenderConfig','print','SheetPrintConfirmed','updatePrintRenderConfig','_workbook','getActiveUniverSheet','get'];_0x43e5=function(){return _0x18ddae;};return _0x43e5();}n[_0x3491a7(0x1da)][_0x3491a7(0x1ea)](u);
|