@univerjs-pro/sheets-print 0.8.3-nightly.202507021607 → 0.8.3
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/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/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/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/en-US.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 +40 -40
- 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/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 +14 -14
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x5646(_0x3c5923,_0x287f7d){const _0x3cce2c=_0x3cce();return _0x5646=function(_0x564645,_0x1c6067){_0x564645=_0x564645-0x105;let _0x4bd581=_0x3cce2c[_0x564645];return _0x4bd581;},_0x5646(_0x3c5923,_0x287f7d);}const _0x395013=_0x5646;(function(_0x14390d,_0x306ec3){const _0x4f4d3d=_0x5646,_0x587f11=_0x14390d();while(!![]){try{const _0x45024b=-parseInt(_0x4f4d3d(0x134))/0x1*(-parseInt(_0x4f4d3d(0x105))/0x2)+parseInt(_0x4f4d3d(0x128))/0x3*(parseInt(_0x4f4d3d(0x12b))/0x4)+-parseInt(_0x4f4d3d(0x127))/0x5+parseInt(_0x4f4d3d(0x142))/0x6+parseInt(_0x4f4d3d(0x107))/0x7+-parseInt(_0x4f4d3d(0x115))/0x8*(parseInt(_0x4f4d3d(0x106))/0x9)+parseInt(_0x4f4d3d(0x11c))/0xa;if(_0x45024b===_0x306ec3)break;else _0x587f11['push'](_0x587f11['shift']());}catch(_0x424dc6){_0x587f11['push'](_0x587f11['shift']());}}}(_0x3cce,0x61b9f));const e=require(_0x395013(0x12d)),a=require('@univerjs/core'),d=require('@univerjs/sheets/facade'),g=require(_0x395013(0x12f)),c=require(_0x395013(0x10d));class S extends d['FWorkbook']{['updatePrintConfig'](_0x474a77){const _0x506527=_0x395013;return this[_0x506527(0x138)]['get'](e[_0x506527(0x11b)])[_0x506527(0x119)](_0x474a77),this;}['updatePrintRenderConfig'](_0x4ac8ed){const _0x203b1a=_0x395013;return this['_injector'][_0x203b1a(0x112)](e['ISheetPrintManagerService'])[_0x203b1a(0x109)](_0x4ac8ed),this;}['print'](){const _0x57ef46=_0x395013;return this['_injector'][_0x57ef46(0x112)](a[_0x57ef46(0x13f)])[_0x57ef46(0x12e)](e[_0x57ef46(0x121)]['id']);}['openPrintDialog'](){const _0xe05211=_0x395013;return this['_injector'][_0xe05211(0x112)](a[_0xe05211(0x13f)])[_0xe05211(0x12e)](e[_0xe05211(0x10c)]['id']);}['closePrintDialog'](){const _0x513bd6=_0x395013;return this[_0x513bd6(0x138)]['get'](a[_0x513bd6(0x13f)])[_0x513bd6(0x12e)](e[_0x513bd6(0x12a)]['id']);}async['saveScreenshotToClipboard'](){const _0x54505b=_0x395013;return e[_0x54505b(0x125)](this[_0x54505b(0x138)])?this[_0x54505b(0x138)][_0x54505b(0x112)](a[_0x54505b(0x13f)])[_0x54505b(0x11a)](e[_0x54505b(0x114)]['id']):!0x1;}}d[_0x395013(0x120)][_0x395013(0x110)](S);function _0x3cce(){const _0x3919c4=['PaperType','FEventName','extend','fireEvent','get','getActiveUniverSheet','SheetScreenShotOperation','136axdcoo','PrintPaperMargin','getRangeImage','PrintFreeze','updateLayoutConfig','executeCommand','ISheetPrintManagerService','4021010lEZegW','onCommandExecuted','BeforeSheetPrintConfirm','FRange','FWorkbook','ConfirmSheetPrintOperation','BeforeSheetPrintOpen','PrintScale','SheetPrintCanceled','hasPrintFacadePermission','SheetPrintOpen','3655760JuLJeQ','342693DOqQYt','beforeCommandExecuted','CancelSheetPrintOperation','12VxdevT','getUnitId','@univerjs-pro/sheets-print','syncExecuteCommand','@univerjs/core/facade','SheetPrintClientService','layoutConfig','renderConfig','PrintArea','80185hjMxER','PrintHeaderFooterSymbol','getActiveSheet','getScreenshot','_injector','SheetPrintConfirmed','BeforeSheetPrintCanceled','PrintHeaderFooter','_initialize','Event','PrintAlign','ICommandService','cancel','FUniver','1000380XMstDD','_range','2gtJFTv','99081KhbwrH','2288181hMTiEc','FEnum','updateRenderConfig','CanceledError','registerEventHandler','SheetPrintOpenOperation','@univerjs-pro/print'];_0x3cce=function(){return _0x3919c4;};return _0x3cce();}class f extends d[_0x395013(0x11f)]{[_0x395013(0x137)](){const _0x3f4906=_0x395013;return e['hasPrintFacadePermission'](this[_0x3f4906(0x138)])?this[_0x3f4906(0x138)][_0x3f4906(0x112)](e[_0x3f4906(0x130)])[_0x3f4906(0x117)](this['_workbook'][_0x3f4906(0x12c)](),this['_worksheet']['getSheetId'](),this[_0x3f4906(0x143)]):!0x1;}}d[_0x395013(0x11f)][_0x395013(0x110)](f);class P{get[_0x395013(0x122)](){const _0x153627=_0x395013;return _0x153627(0x122);}get[_0x395013(0x11e)](){return'BeforeSheetPrintConfirm';}get[_0x395013(0x13a)](){return'BeforeSheetPrintCanceled';}get[_0x395013(0x126)](){return'SheetPrintOpen';}get['SheetPrintConfirmed'](){const _0x2d70de=_0x395013;return _0x2d70de(0x139);}get[_0x395013(0x124)](){const _0xd42ca=_0x395013;return _0xd42ca(0x124);}}g[_0x395013(0x10f)]['extend'](P);class u{get[_0x395013(0x133)](){const _0x57d876=_0x395013;return e[_0x57d876(0x133)];}get[_0x395013(0x13e)](){const _0x5f568e=_0x395013;return c[_0x5f568e(0x13e)];}get['PrintPaperSize'](){const _0x1c06ad=_0x395013;return a[_0x1c06ad(0x10e)];}get[_0x395013(0x116)](){return c['PrintPaperMargin'];}get[_0x395013(0x123)](){const _0x589a09=_0x395013;return c[_0x589a09(0x123)];}get['PrintDirection'](){return c['PrintDirection'];}get['PrintFreeze'](){const _0x4b742d=_0x395013;return e[_0x4b742d(0x118)];}get[_0x395013(0x13b)](){const _0x15461d=_0x395013;return e[_0x15461d(0x13b)];}get[_0x395013(0x135)](){return e['PrintHeaderFooterSymbol'];}}g[_0x395013(0x108)][_0x395013(0x110)](u);class l extends g[_0x395013(0x141)]{[_0x395013(0x13c)](_0x712d2b){const _0xe82fc5=_0x395013,_0x1aae77=_0x712d2b[_0xe82fc5(0x112)](a['ICommandService']);this[_0xe82fc5(0x10b)](this['Event'][_0xe82fc5(0x122)],()=>_0x1aae77[_0xe82fc5(0x129)](_0x2f5c81=>{const _0x1a8fba=_0xe82fc5;if(_0x2f5c81['id']===e[_0x1a8fba(0x10c)]['id']){const _0x3c9884=this[_0x1a8fba(0x113)]();if(!_0x3c9884)return;const _0x598e93={'workbook':_0x3c9884,'worksheet':_0x3c9884[_0x1a8fba(0x136)]()};if(_0x598e93==null)return;if(this[_0x1a8fba(0x111)](this[_0x1a8fba(0x13d)]['BeforeSheetPrintOpen'],_0x598e93),_0x598e93[_0x1a8fba(0x140)])throw new a['CanceledError']();}})),this[_0xe82fc5(0x10b)](this[_0xe82fc5(0x13d)]['BeforeSheetPrintConfirm'],()=>_0x1aae77['beforeCommandExecuted'](_0xdbb8f9=>{const _0x4716c8=_0xe82fc5;if(_0xdbb8f9['id']===e[_0x4716c8(0x121)]['id']){const _0x1f7139=_0x712d2b[_0x4716c8(0x112)](e[_0x4716c8(0x11b)]);if(!this['getActiveUniverSheet']())return;const _0x528137={'layoutConfig':_0x1f7139['layoutConfig'],'renderConfig':_0x1f7139[_0x4716c8(0x132)]};if(_0x528137==null)return;if(this[_0x4716c8(0x111)](this[_0x4716c8(0x13d)]['BeforeSheetPrintConfirm'],_0x528137),_0x528137['cancel'])throw new a[(_0x4716c8(0x10a))]();}})),this[_0xe82fc5(0x10b)](this['Event'][_0xe82fc5(0x13a)],()=>_0x1aae77['beforeCommandExecuted'](_0x4bfb9e=>{const _0x3bceca=_0xe82fc5;if(_0x4bfb9e['id']===e['CancelSheetPrintOperation']['id']){const _0x34ab5e=_0x712d2b[_0x3bceca(0x112)](e[_0x3bceca(0x11b)]);if(!this[_0x3bceca(0x113)]())return;const _0x32fb4d={'layoutConfig':_0x34ab5e[_0x3bceca(0x131)],'renderConfig':_0x34ab5e['renderConfig']};if(_0x32fb4d==null)return;if(this['fireEvent'](this[_0x3bceca(0x13d)][_0x3bceca(0x13a)],_0x32fb4d),_0x32fb4d['cancel'])throw new a[(_0x3bceca(0x10a))]();}})),this[_0xe82fc5(0x10b)](this[_0xe82fc5(0x13d)]['SheetPrintOpen'],()=>_0x1aae77['onCommandExecuted'](_0x302496=>{const _0x163f93=_0xe82fc5;if(_0x302496['id']===e[_0x163f93(0x10c)]['id']){const _0x1e0d65=this['getActiveUniverSheet']();if(!_0x1e0d65)return;const _0x11dbc0={'workbook':_0x1e0d65,'worksheet':_0x1e0d65[_0x163f93(0x136)]()};if(_0x11dbc0==null)return;this['fireEvent'](this[_0x163f93(0x13d)][_0x163f93(0x126)],_0x11dbc0);}})),this[_0xe82fc5(0x10b)](this[_0xe82fc5(0x13d)][_0xe82fc5(0x139)],()=>_0x1aae77[_0xe82fc5(0x11d)](_0x14f0b3=>{const _0x22162f=_0xe82fc5;if(_0x14f0b3['id']===e[_0x22162f(0x121)]['id']){const _0x2a40ce=_0x712d2b['get'](e[_0x22162f(0x11b)]);if(!this[_0x22162f(0x113)]())return;const _0x48fd5a={'layoutConfig':_0x2a40ce[_0x22162f(0x131)],'renderConfig':_0x2a40ce[_0x22162f(0x132)]};if(_0x48fd5a==null)return;this[_0x22162f(0x111)](this[_0x22162f(0x13d)][_0x22162f(0x139)],_0x48fd5a);}})),this[_0xe82fc5(0x10b)](this[_0xe82fc5(0x13d)]['SheetPrintCanceled'],()=>_0x1aae77['onCommandExecuted'](_0x442836=>{const _0x2ab27e=_0xe82fc5;if(_0x442836['id']===e[_0x2ab27e(0x12a)]['id']){const _0x53752f=_0x712d2b['get'](e[_0x2ab27e(0x11b)]);if(!this[_0x2ab27e(0x113)]())return;const _0x344005={'layoutConfig':_0x53752f['layoutConfig'],'renderConfig':_0x53752f[_0x2ab27e(0x132)]};if(_0x344005==null)return;this[_0x2ab27e(0x111)](this[_0x2ab27e(0x13d)][_0x2ab27e(0x124)],_0x344005);}}));}}g[_0x395013(0x141)][_0x395013(0x110)](l);
|