@univerjs-pro/sheets-print 0.6.4 → 0.6.5-nightly.202503131607
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 +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/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 +19 -19
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x39d119=_0x99c7;(function(_0x396f90,_0x8f2577){const _0x4ce32c=_0x99c7,_0x3e05d3=_0x396f90();while(!![]){try{const _0x3ad9da=-parseInt(_0x4ce32c(0x1be))/0x1+parseInt(_0x4ce32c(0x1d0))/0x2*(-parseInt(_0x4ce32c(0x1d3))/0x3)+-parseInt(_0x4ce32c(0x1cd))/0x4+parseInt(_0x4ce32c(0x1d5))/0x5+-parseInt(_0x4ce32c(0x1bf))/0x6*(-parseInt(_0x4ce32c(0x1a3))/0x7)+-parseInt(_0x4ce32c(0x1a4))/0x8*(-parseInt(_0x4ce32c(0x1ac))/0x9)+parseInt(_0x4ce32c(0x1af))/0xa;if(_0x3ad9da===_0x8f2577)break;else _0x3e05d3['push'](_0x3e05d3['shift']());}catch(_0x47e778){_0x3e05d3['push'](_0x3e05d3['shift']());}}}(_0x2464,0x1c639));const e=require(_0x39d119(0x1bd)),a=require('@univerjs/core'),d=require(_0x39d119(0x1a5)),g=require(_0x39d119(0x1a7)),h=require(_0x39d119(0x1da));class S extends d[_0x39d119(0x1b5)]{[_0x39d119(0x1c5)](_0x30e3cf){const _0xae09ad=_0x39d119;return this[_0xae09ad(0x1c6)]['get'](e[_0xae09ad(0x1e6)])[_0xae09ad(0x1c8)](_0x30e3cf),this;}['updatePrintRenderConfig'](_0x35fadc){const _0x2a74eb=_0x39d119;return this[_0x2a74eb(0x1c6)][_0x2a74eb(0x1ca)](e[_0x2a74eb(0x1e6)])[_0x2a74eb(0x1dd)](_0x35fadc),this;}[_0x39d119(0x1b4)](){const _0x1600d1=_0x39d119;return this['_injector'][_0x1600d1(0x1ca)](a[_0x1600d1(0x1d2)])[_0x1600d1(0x1e3)](e['ConfirmSheetPrintOperation']['id']);}[_0x39d119(0x1cb)](){const _0x36e309=_0x39d119;return this[_0x36e309(0x1c6)]['get'](a[_0x36e309(0x1d2)])[_0x36e309(0x1e3)](e['SheetPrintOpenOperation']['id']);}[_0x39d119(0x1c0)](){const _0x2ed20f=_0x39d119;return this[_0x2ed20f(0x1c6)][_0x2ed20f(0x1ca)](a[_0x2ed20f(0x1d2)])['syncExecuteCommand'](e[_0x2ed20f(0x1d9)]['id']);}async['saveScreenshotToClipboard'](){const _0x2317ee=_0x39d119;return e[_0x2317ee(0x1b0)](this[_0x2317ee(0x1c6)])?this[_0x2317ee(0x1c6)][_0x2317ee(0x1ca)](a[_0x2317ee(0x1d2)])[_0x2317ee(0x1b1)](e[_0x2317ee(0x1cc)]['id']):!0x1;}}d[_0x39d119(0x1b5)]['extend'](S);class f extends d[_0x39d119(0x1b9)]{[_0x39d119(0x1e2)](){const _0x20f80a=_0x39d119;return e[_0x20f80a(0x1b0)](this[_0x20f80a(0x1c6)])?this[_0x20f80a(0x1c6)]['get'](e[_0x20f80a(0x1c1)])[_0x20f80a(0x1b2)](this[_0x20f80a(0x1a8)]['getUnitId'](),this[_0x20f80a(0x1e1)][_0x20f80a(0x1e5)](),this[_0x20f80a(0x1a9)]):!0x1;}}d[_0x39d119(0x1b9)][_0x39d119(0x1e0)](f);class P{get['BeforeSheetPrintOpen'](){const _0xdfd32e=_0x39d119;return _0xdfd32e(0x1ab);}get[_0x39d119(0x1c4)](){const _0x336e96=_0x39d119;return _0x336e96(0x1c4);}get[_0x39d119(0x1b3)](){const _0x511c81=_0x39d119;return _0x511c81(0x1b3);}get[_0x39d119(0x1a6)](){const _0x20a549=_0x39d119;return _0x20a549(0x1a6);}get[_0x39d119(0x1c7)](){const _0x544d59=_0x39d119;return _0x544d59(0x1c7);}get[_0x39d119(0x1b7)](){const _0x681db0=_0x39d119;return _0x681db0(0x1b7);}}g[_0x39d119(0x1d7)][_0x39d119(0x1e0)](P);class u{get[_0x39d119(0x1bc)](){const _0x362279=_0x39d119;return e[_0x362279(0x1bc)];}get[_0x39d119(0x1b8)](){return h['PrintAlign'];}get['PrintPaperSize'](){return h['PrintPaperSize'];}get['PrintPaperMargin'](){const _0x1fb79c=_0x39d119;return h[_0x1fb79c(0x1df)];}get[_0x39d119(0x1b6)](){return h['PrintScale'];}get[_0x39d119(0x1aa)](){return h['PrintDirection'];}get[_0x39d119(0x1de)](){return e['PrintFreeze'];}get[_0x39d119(0x1ae)](){const _0x3c9c34=_0x39d119;return e[_0x3c9c34(0x1ae)];}get['PrintHeaderFooterSymbol'](){const _0x23b42f=_0x39d119;return e[_0x23b42f(0x1d6)];}}function _0x99c7(_0x389d72,_0x9a98b9){const _0x246479=_0x2464();return _0x99c7=function(_0x1ada55,_0x41b65c){_0x1ada55=_0x1ada55-0x1a3;let _0x3207b7=_0x246479[_0x1ada55];return _0x3207b7;},_0x99c7(_0x389d72,_0x9a98b9);}g['FEnum'][_0x39d119(0x1e0)](u);class l extends g['FUniver']{[_0x39d119(0x1d4)](_0x238038){const _0x181f50=_0x39d119,_0x165b48=_0x238038[_0x181f50(0x1ca)](a[_0x181f50(0x1d2)]);this['registerEventHandler'](this[_0x181f50(0x1d8)][_0x181f50(0x1ab)],()=>_0x165b48[_0x181f50(0x1d1)](_0x3eb58a=>{const _0x33af7d=_0x181f50;if(_0x3eb58a['id']===e[_0x33af7d(0x1ad)]['id']){const _0x2dbdc5=this[_0x33af7d(0x1bb)]();if(!_0x2dbdc5)return;const _0x57ac98={'workbook':_0x2dbdc5,'worksheet':_0x2dbdc5[_0x33af7d(0x1cf)]()};if(_0x57ac98==null)return;if(this[_0x33af7d(0x1db)](this['Event'][_0x33af7d(0x1ab)],_0x57ac98),_0x57ac98[_0x33af7d(0x1ba)])throw new a['CanceledError']();}})),this[_0x181f50(0x1c9)](this[_0x181f50(0x1d8)][_0x181f50(0x1c4)],()=>_0x165b48[_0x181f50(0x1d1)](_0x38627e=>{const _0x35a2b4=_0x181f50;if(_0x38627e['id']===e['ConfirmSheetPrintOperation']['id']){const _0x1c32e9=_0x238038[_0x35a2b4(0x1ca)](e[_0x35a2b4(0x1e6)]);if(!this[_0x35a2b4(0x1bb)]())return;const _0x28c08f={'layoutConfig':_0x1c32e9[_0x35a2b4(0x1c2)],'renderConfig':_0x1c32e9[_0x35a2b4(0x1c3)]};if(_0x28c08f==null)return;if(this['fireEvent'](this['Event'][_0x35a2b4(0x1c4)],_0x28c08f),_0x28c08f[_0x35a2b4(0x1ba)])throw new a[(_0x35a2b4(0x1e4))]();}})),this[_0x181f50(0x1c9)](this[_0x181f50(0x1d8)][_0x181f50(0x1b3)],()=>_0x165b48['beforeCommandExecuted'](_0x27c0c7=>{const _0x3c0536=_0x181f50;if(_0x27c0c7['id']===e[_0x3c0536(0x1d9)]['id']){const _0x3c54ae=_0x238038[_0x3c0536(0x1ca)](e[_0x3c0536(0x1e6)]);if(!this[_0x3c0536(0x1bb)]())return;const _0x5c341f={'layoutConfig':_0x3c54ae[_0x3c0536(0x1c2)],'renderConfig':_0x3c54ae[_0x3c0536(0x1c3)]};if(_0x5c341f==null)return;if(this[_0x3c0536(0x1db)](this['Event']['BeforeSheetPrintCanceled'],_0x5c341f),_0x5c341f['cancel'])throw new a['CanceledError']();}})),this['registerEventHandler'](this['Event']['SheetPrintOpen'],()=>_0x165b48[_0x181f50(0x1ce)](_0x50154b=>{const _0x57cebf=_0x181f50;if(_0x50154b['id']===e[_0x57cebf(0x1ad)]['id']){const _0xf05a7c=this[_0x57cebf(0x1bb)]();if(!_0xf05a7c)return;const _0x5ebc02={'workbook':_0xf05a7c,'worksheet':_0xf05a7c[_0x57cebf(0x1cf)]()};if(_0x5ebc02==null)return;this['fireEvent'](this[_0x57cebf(0x1d8)][_0x57cebf(0x1a6)],_0x5ebc02);}})),this['registerEventHandler'](this[_0x181f50(0x1d8)][_0x181f50(0x1c7)],()=>_0x165b48[_0x181f50(0x1ce)](_0x4e4170=>{const _0x3681a3=_0x181f50;if(_0x4e4170['id']===e[_0x3681a3(0x1dc)]['id']){const _0x4039de=_0x238038['get'](e[_0x3681a3(0x1e6)]);if(!this[_0x3681a3(0x1bb)]())return;const _0x238dae={'layoutConfig':_0x4039de['layoutConfig'],'renderConfig':_0x4039de['renderConfig']};if(_0x238dae==null)return;this[_0x3681a3(0x1db)](this[_0x3681a3(0x1d8)][_0x3681a3(0x1c7)],_0x238dae);}})),this[_0x181f50(0x1c9)](this[_0x181f50(0x1d8)][_0x181f50(0x1b7)],()=>_0x165b48[_0x181f50(0x1ce)](_0x496866=>{const _0x7fb6=_0x181f50;if(_0x496866['id']===e[_0x7fb6(0x1d9)]['id']){const _0x1141b1=_0x238038[_0x7fb6(0x1ca)](e[_0x7fb6(0x1e6)]);if(!this['getActiveUniverSheet']())return;const _0x398da6={'layoutConfig':_0x1141b1[_0x7fb6(0x1c2)],'renderConfig':_0x1141b1[_0x7fb6(0x1c3)]};if(_0x398da6==null)return;this[_0x7fb6(0x1db)](this[_0x7fb6(0x1d8)]['SheetPrintCanceled'],_0x398da6);}}));}}g['FUniver'][_0x39d119(0x1e0)](l);function _0x2464(){const _0x2542f9=['extend','_worksheet','getScreenshot','syncExecuteCommand','CanceledError','getSheetId','ISheetPrintManagerService','7DRwTQD','48qjQSLy','@univerjs/sheets/facade','SheetPrintOpen','@univerjs/core/facade','_workbook','_range','PrintDirection','BeforeSheetPrintOpen','23292UaUSpD','SheetPrintOpenOperation','PrintHeaderFooter','91100TSCigF','hasPrintFacadePermission','executeCommand','getRangeImage','BeforeSheetPrintCanceled','print','FWorkbook','PrintScale','SheetPrintCanceled','PrintAlign','FRange','cancel','getActiveUniverSheet','PrintArea','@univerjs-pro/sheets-print','108508QqMeYI','1323936LALscO','closePrintDialog','SheetPrintClientService','layoutConfig','renderConfig','BeforeSheetPrintConfirm','updatePrintConfig','_injector','SheetPrintConfirmed','updateLayoutConfig','registerEventHandler','get','openPrintDialog','SheetScreenShotOperation','319444WiFPiJ','onCommandExecuted','getActiveSheet','52526EMAQyR','beforeCommandExecuted','ICommandService','6nbRnbo','_initialize','559410KFmGwM','PrintHeaderFooterSymbol','FEventName','Event','CancelSheetPrintOperation','@univerjs-pro/print','fireEvent','ConfirmSheetPrintOperation','updateRenderConfig','PrintFreeze','PrintPaperMargin'];_0x2464=function(){return _0x2542f9;};return _0x2464();}
|