@univerjs-pro/sheets-print 0.10.11 → 0.10.12-nightly.202510221114
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 +15 -15
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5c8c42=_0x1a69;(function(_0x3683b9,_0x30d9a5){const _0x2b2ca8=_0x1a69,_0x54f658=_0x3683b9();while(!![]){try{const _0x4f5962=parseInt(_0x2b2ca8(0x1e7))/0x1+parseInt(_0x2b2ca8(0x1fb))/0x2*(-parseInt(_0x2b2ca8(0x20c))/0x3)+-parseInt(_0x2b2ca8(0x209))/0x4*(parseInt(_0x2b2ca8(0x1e2))/0x5)+parseInt(_0x2b2ca8(0x1f7))/0x6+-parseInt(_0x2b2ca8(0x1f8))/0x7+parseInt(_0x2b2ca8(0x207))/0x8*(parseInt(_0x2b2ca8(0x203))/0x9)+-parseInt(_0x2b2ca8(0x1f1))/0xa*(parseInt(_0x2b2ca8(0x1fa))/0xb);if(_0x4f5962===_0x30d9a5)break;else _0x54f658['push'](_0x54f658['shift']());}catch(_0x49d4d0){_0x54f658['push'](_0x54f658['shift']());}}}(_0x3a4a,0x542e8));import{ISheetPrintManagerService as _0xac9ef1,ConfirmSheetPrintOperation as _0x1f1de2,SheetPrintOpenOperation as _0x32ac3f,CancelSheetPrintOperation as _0x2b50dd,hasPrintFacadePermission as _0x44ad87,SheetScreenShotOperation as _0x4f95cf,SheetPrintClientService as _0x3312fd,PrintArea as _0x4fb5f6,PrintFreeze as _0x260add,PrintHeaderFooter as _0x1bf841,PrintHeaderFooterSymbol as _0x25307e}from'@univerjs-pro/sheets-print';import{ICommandService as _0x523487,PaperType as _0x622300,CanceledError as _0x208fd1}from'@univerjs/core';import{FWorkbook as _0x9ac7a0,FRange as _0x5ee9f3}from'@univerjs/sheets/facade';import{FEventName as _0x8fd473,FEnum as _0x29a58c,FUniver as _0x1af2e1}from'@univerjs/core/facade';function _0x1a69(_0xf77b4c,_0x7221d8){const _0x3a4abe=_0x3a4a();return _0x1a69=function(_0x1a6957,_0x460c6f){_0x1a6957=_0x1a6957-0x1e0;let _0xa26d0f=_0x3a4abe[_0x1a6957];return _0xa26d0f;},_0x1a69(_0xf77b4c,_0x7221d8);}import{PrintAlign as _0x32532a,PrintPaperMargin as _0x1201f9,PrintScale as _0x4558b6,PrintDirection as _0x197ad1}from'@univerjs-pro/print';class A extends _0x9ac7a0{['updatePrintConfig'](_0x403412){const _0x43e894=_0x1a69;return this[_0x43e894(0x202)][_0x43e894(0x1e9)](_0xac9ef1)[_0x43e894(0x1ff)](_0x403412),this;}['updatePrintRenderConfig'](_0x3e1022){const _0x5e51f6=_0x1a69;return this[_0x5e51f6(0x202)][_0x5e51f6(0x1e9)](_0xac9ef1)[_0x5e51f6(0x20b)](_0x3e1022),this;}['print'](){const _0x5ccc4b=_0x1a69;return this[_0x5ccc4b(0x202)]['get'](_0x523487)[_0x5ccc4b(0x1ef)](_0x1f1de2['id']);}['openPrintDialog'](){const _0x3d194e=_0x1a69;return this[_0x3d194e(0x202)][_0x3d194e(0x1e9)](_0x523487)[_0x3d194e(0x1ef)](_0x32ac3f['id']);}[_0x5c8c42(0x204)](){const _0xae2d56=_0x5c8c42;return this[_0xae2d56(0x202)][_0xae2d56(0x1e9)](_0x523487)['syncExecuteCommand'](_0x2b50dd['id']);}async['saveScreenshotToClipboard'](){const _0x12a57c=_0x5c8c42;return _0x44ad87(this['_injector'])?this[_0x12a57c(0x202)][_0x12a57c(0x1e9)](_0x523487)['executeCommand'](_0x4f95cf['id']):!0x1;}}_0x9ac7a0[_0x5c8c42(0x200)](A);class B extends _0x5ee9f3{['getScreenshot'](){const _0x19d890=_0x5c8c42;return _0x44ad87(this['_injector'])?this[_0x19d890(0x202)][_0x19d890(0x1e9)](_0x3312fd)[_0x19d890(0x1e3)](this[_0x19d890(0x1f0)][_0x19d890(0x1e0)](),this[_0x19d890(0x1f2)]['getSheetId'](),this[_0x19d890(0x1e8)]):!0x1;}}_0x5ee9f3[_0x5c8c42(0x200)](B);class H{get[_0x5c8c42(0x1e6)](){return'BeforeSheetPrintOpen';}get[_0x5c8c42(0x1ee)](){return'BeforeSheetPrintConfirm';}get[_0x5c8c42(0x201)](){return'BeforeSheetPrintCanceled';}get[_0x5c8c42(0x1fe)](){const _0x17e949=_0x5c8c42;return _0x17e949(0x1fe);}get[_0x5c8c42(0x206)](){const _0x13daf1=_0x5c8c42;return _0x13daf1(0x206);}get[_0x5c8c42(0x1f4)](){return'SheetPrintCanceled';}}_0x8fd473['extend'](H);class U{get[_0x5c8c42(0x1fd)](){return _0x4fb5f6;}get[_0x5c8c42(0x1f6)](){return _0x32532a;}get[_0x5c8c42(0x205)](){return _0x622300;}get[_0x5c8c42(0x20d)](){return _0x1201f9;}get['PrintScale'](){return _0x4558b6;}get[_0x5c8c42(0x1ea)](){return _0x197ad1;}get[_0x5c8c42(0x1f3)](){return _0x260add;}get[_0x5c8c42(0x1fc)](){return _0x1bf841;}get['PrintHeaderFooterSymbol'](){return _0x25307e;}}function _0x3a4a(){const _0x190d83=['_workbook','1275640KnkLLr','_worksheet','PrintFreeze','SheetPrintCanceled','fireEvent','PrintAlign','3303540OfuWiz','3383583QTsLYT','getActiveUniverSheet','11ORVQmn','31798REcABn','PrintHeaderFooter','PrintArea','SheetPrintOpen','updateLayoutConfig','extend','BeforeSheetPrintCanceled','_injector','1062TvNzLS','closePrintDialog','PrintPaperSize','SheetPrintConfirmed','38480rDBiKn','registerEventHandler','8hLchyq','layoutConfig','updateRenderConfig','42ucIObX','PrintPaperMargin','getUnitId','getActiveSheet','963945vmLcbO','getRangeImage','cancel','onCommandExecuted','BeforeSheetPrintOpen','445735ZRNWIn','_range','get','PrintDirection','renderConfig','beforeCommandExecuted','Event','BeforeSheetPrintConfirm','syncExecuteCommand'];_0x3a4a=function(){return _0x190d83;};return _0x3a4a();}_0x29a58c[_0x5c8c42(0x200)](U);class M extends _0x1af2e1{['_initialize'](_0x1213bb){const _0x381455=_0x5c8c42,_0x240032=_0x1213bb[_0x381455(0x1e9)](_0x523487);this[_0x381455(0x208)](this[_0x381455(0x1ed)][_0x381455(0x1e6)],()=>_0x240032['beforeCommandExecuted'](_0x19b41f=>{const _0x34729a=_0x381455;if(_0x19b41f['id']===_0x32ac3f['id']){const _0x42f4ea=this['getActiveUniverSheet']();if(!_0x42f4ea)return;const _0x3a9cbd={'workbook':_0x42f4ea,'worksheet':_0x42f4ea[_0x34729a(0x1e1)]()};if(_0x3a9cbd==null)return;if(this[_0x34729a(0x1f5)](this[_0x34729a(0x1ed)][_0x34729a(0x1e6)],_0x3a9cbd),_0x3a9cbd['cancel'])throw new _0x208fd1();}})),this[_0x381455(0x208)](this[_0x381455(0x1ed)][_0x381455(0x1ee)],()=>_0x240032[_0x381455(0x1ec)](_0x35a9e7=>{const _0x5a6965=_0x381455;if(_0x35a9e7['id']===_0x1f1de2['id']){const _0x282cf2=_0x1213bb[_0x5a6965(0x1e9)](_0xac9ef1);if(!this[_0x5a6965(0x1f9)]())return;const _0x583b25={'layoutConfig':_0x282cf2[_0x5a6965(0x20a)],'renderConfig':_0x282cf2['renderConfig']};if(_0x583b25==null)return;if(this['fireEvent'](this[_0x5a6965(0x1ed)][_0x5a6965(0x1ee)],_0x583b25),_0x583b25[_0x5a6965(0x1e4)])throw new _0x208fd1();}})),this[_0x381455(0x208)](this[_0x381455(0x1ed)]['BeforeSheetPrintCanceled'],()=>_0x240032[_0x381455(0x1ec)](_0x44b3af=>{const _0x5013fe=_0x381455;if(_0x44b3af['id']===_0x2b50dd['id']){const _0x47d885=_0x1213bb['get'](_0xac9ef1);if(!this[_0x5013fe(0x1f9)]())return;const _0x168ace={'layoutConfig':_0x47d885['layoutConfig'],'renderConfig':_0x47d885[_0x5013fe(0x1eb)]};if(_0x168ace==null)return;if(this[_0x5013fe(0x1f5)](this['Event'][_0x5013fe(0x201)],_0x168ace),_0x168ace[_0x5013fe(0x1e4)])throw new _0x208fd1();}})),this[_0x381455(0x208)](this[_0x381455(0x1ed)]['SheetPrintOpen'],()=>_0x240032[_0x381455(0x1e5)](_0x24b2d4=>{const _0x3008b5=_0x381455;if(_0x24b2d4['id']===_0x32ac3f['id']){const _0x23db7a=this[_0x3008b5(0x1f9)]();if(!_0x23db7a)return;const _0x437dc0={'workbook':_0x23db7a,'worksheet':_0x23db7a[_0x3008b5(0x1e1)]()};if(_0x437dc0==null)return;this[_0x3008b5(0x1f5)](this[_0x3008b5(0x1ed)][_0x3008b5(0x1fe)],_0x437dc0);}})),this['registerEventHandler'](this[_0x381455(0x1ed)][_0x381455(0x206)],()=>_0x240032[_0x381455(0x1e5)](_0x38f23d=>{const _0x1cc13f=_0x381455;if(_0x38f23d['id']===_0x1f1de2['id']){const _0x23a5e6=_0x1213bb[_0x1cc13f(0x1e9)](_0xac9ef1);if(!this['getActiveUniverSheet']())return;const _0x2afec4={'layoutConfig':_0x23a5e6[_0x1cc13f(0x20a)],'renderConfig':_0x23a5e6[_0x1cc13f(0x1eb)]};if(_0x2afec4==null)return;this[_0x1cc13f(0x1f5)](this[_0x1cc13f(0x1ed)][_0x1cc13f(0x206)],_0x2afec4);}})),this[_0x381455(0x208)](this['Event'][_0x381455(0x1f4)],()=>_0x240032['onCommandExecuted'](_0x372dc3=>{const _0x57c976=_0x381455;if(_0x372dc3['id']===_0x2b50dd['id']){const _0x155807=_0x1213bb[_0x57c976(0x1e9)](_0xac9ef1);if(!this['getActiveUniverSheet']())return;const _0x2d1f10={'layoutConfig':_0x155807[_0x57c976(0x20a)],'renderConfig':_0x155807[_0x57c976(0x1eb)]};if(_0x2d1f10==null)return;this[_0x57c976(0x1f5)](this[_0x57c976(0x1ed)][_0x57c976(0x1f4)],_0x2d1f10);}}));}}_0x1af2e1[_0x5c8c42(0x200)](M);
|