@univerjs-pro/sheets-print 0.25.0 → 0.25.2
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x52bd5c=_0x10db;(function(_0x496768,_0xec4485){const _0xffc51=_0x10db,_0x200b93=_0x496768();while(!![]){try{const _0x2684f3=-parseInt(_0xffc51(0x21d))/0x1+parseInt(_0xffc51(0x203))/0x2+parseInt(_0xffc51(0x213))/0x3*(-parseInt(_0xffc51(0x204))/0x4)+-parseInt(_0xffc51(0x206))/0x5*(-parseInt(_0xffc51(0x21c))/0x6)+-parseInt(_0xffc51(0x1f6))/0x7+-parseInt(_0xffc51(0x205))/0x8*(-parseInt(_0xffc51(0x209))/0x9)+parseInt(_0xffc51(0x20b))/0xa*(parseInt(_0xffc51(0x1f9))/0xb);if(_0x2684f3===_0xec4485)break;else _0x200b93['push'](_0x200b93['shift']());}catch(_0x7cb942){_0x200b93['push'](_0x200b93['shift']());}}}(_0x1805,0x19556));import{CancelSheetPrintOperation as _0x2dc3e3,ConfirmSheetPrintOperation as _0x5b7093,ISheetPrintManagerService as _0x30b636,PrintArea as _0x1a63b7,PrintFreeze as _0x32cbc1,PrintHeaderFooter as _0x206e81,PrintHeaderFooterSymbol as _0x3e85c6,SheetPrintClientService as _0x259461,SheetPrintOpenOperation as _0x3fb5fa,SheetScreenShotOperation as _0x5f1888,hasPrintFacadePermission as _0x37f144}from'@univerjs-pro/sheets-print';import{CanceledError as _0x3acc75,ICommandService as _0x322906,PaperType as _0x5e3198}from'@univerjs/core';import{FRange as _0x389674,FWorkbook as _0x27e829}from'@univerjs/sheets/facade';import{FEnum as _0x85432b,FEventName as _0x5e3cd1,FUniver as _0x24f7ee}from'@univerjs/core/facade';import{PrintAlign as _0x561a89,PrintDirection as _0x5f39e7,PrintPaperMargin as _0x3e1f02,PrintScale as _0x27e538}from'@univerjs-pro/print';var C=class extends _0x27e829{[_0x52bd5c(0x225)](_0xf13692){const _0x2cff72=_0x52bd5c;return this[_0x2cff72(0x1fb)][_0x2cff72(0x214)](_0x30b636)[_0x2cff72(0x1fd)](_0xf13692),this;}[_0x52bd5c(0x217)](_0x192a15){const _0x26fa0=_0x52bd5c;return this[_0x26fa0(0x1fb)][_0x26fa0(0x214)](_0x30b636)[_0x26fa0(0x1f1)](_0x192a15),this;}[_0x52bd5c(0x219)](){const _0x3bd749=_0x52bd5c;return this[_0x3bd749(0x1fb)][_0x3bd749(0x214)](_0x322906)[_0x3bd749(0x1f8)](_0x5b7093['id']);}[_0x52bd5c(0x201)](){const _0x481e41=_0x52bd5c;return this[_0x481e41(0x1fb)][_0x481e41(0x214)](_0x322906)[_0x481e41(0x1f8)](_0x3fb5fa['id']);}[_0x52bd5c(0x20d)](){const _0x52dc0a=_0x52bd5c;return this[_0x52dc0a(0x1fb)][_0x52dc0a(0x214)](_0x322906)[_0x52dc0a(0x1f8)](_0x2dc3e3['id']);}async['saveScreenshotToClipboard'](){const _0x17cf58=_0x52bd5c;return _0x37f144(this['_injector'])?this['_injector'][_0x17cf58(0x214)](_0x322906)[_0x17cf58(0x1f7)](_0x5f1888['id']):!0x1;}};_0x27e829[_0x52bd5c(0x218)](C);var w=class extends _0x389674{[_0x52bd5c(0x220)](_0x2ef75d){const _0x59ca1c=_0x52bd5c;return _0x37f144(this[_0x59ca1c(0x1fb)])?this[_0x59ca1c(0x1fb)][_0x59ca1c(0x214)](_0x259461)['getRangeImage'](this[_0x59ca1c(0x20f)][_0x59ca1c(0x224)](),this[_0x59ca1c(0x1f2)]['getSheetId'](),this[_0x59ca1c(0x21a)],_0x2ef75d==null?void 0x0:_0x2ef75d[_0x59ca1c(0x208)]):!0x1;}};_0x389674['extend'](w);var T=class extends _0x5e3cd1{get[_0x52bd5c(0x221)](){const _0x31a1ec=_0x52bd5c;return _0x31a1ec(0x221);}get['BeforeSheetPrintConfirm'](){const _0x542d6e=_0x52bd5c;return _0x542d6e(0x21b);}get[_0x52bd5c(0x21e)](){const _0x3b5935=_0x52bd5c;return _0x3b5935(0x21e);}get['SheetPrintOpen'](){return'SheetPrintOpen';}get[_0x52bd5c(0x211)](){const _0x2864b7=_0x52bd5c;return _0x2864b7(0x211);}get[_0x52bd5c(0x216)](){const _0x4a3c7c=_0x52bd5c;return _0x4a3c7c(0x216);}};_0x5e3cd1[_0x52bd5c(0x218)](T);var E=class extends _0x85432b{get[_0x52bd5c(0x215)](){return _0x1a63b7;}get[_0x52bd5c(0x210)](){return _0x561a89;}get[_0x52bd5c(0x1ff)](){return _0x5e3198;}get[_0x52bd5c(0x202)](){return _0x3e1f02;}get[_0x52bd5c(0x1f4)](){return _0x27e538;}get[_0x52bd5c(0x200)](){return _0x5f39e7;}get['PrintFreeze'](){return _0x32cbc1;}get[_0x52bd5c(0x223)](){return _0x206e81;}get['PrintHeaderFooterSymbol'](){return _0x3e85c6;}};_0x85432b[_0x52bd5c(0x218)](E);var D=class extends _0x24f7ee{[_0x52bd5c(0x1fe)](_0x2a5451){const _0x227ea3=_0x52bd5c;let _0xd0b20d=_0x2a5451[_0x227ea3(0x214)](_0x322906);this[_0x227ea3(0x20e)](this['registerEventHandler'](this['Event']['BeforeSheetPrintOpen'],()=>_0xd0b20d['beforeCommandExecuted'](_0x18920a=>{const _0x3b8bdf=_0x227ea3;if(_0x18920a['id']===_0x3fb5fa['id']){let _0x172326=this[_0x3b8bdf(0x226)]();if(!_0x172326)return;let _0x450a45={'workbook':_0x172326,'worksheet':_0x172326[_0x3b8bdf(0x212)]()};if(_0x450a45==null)return;if(this[_0x3b8bdf(0x1f5)](this[_0x3b8bdf(0x1fa)][_0x3b8bdf(0x221)],_0x450a45),_0x450a45['cancel'])throw new _0x3acc75();}}))),this[_0x227ea3(0x20e)](this[_0x227ea3(0x222)](this['Event'][_0x227ea3(0x21b)],()=>_0xd0b20d['beforeCommandExecuted'](_0x5485ef=>{const _0x19a741=_0x227ea3;if(_0x5485ef['id']===_0x5b7093['id']){let _0x3bcb87=_0x2a5451[_0x19a741(0x214)](_0x30b636);if(!this['getActiveUniverSheet']())return;let _0x2ff462={'layoutConfig':_0x3bcb87['layoutConfig'],'renderConfig':_0x3bcb87['renderConfig']};if(_0x2ff462==null)return;if(this[_0x19a741(0x1f5)](this[_0x19a741(0x1fa)][_0x19a741(0x21b)],_0x2ff462),_0x2ff462[_0x19a741(0x1fc)])throw new _0x3acc75();}}))),this['disposeWithMe'](this[_0x227ea3(0x222)](this[_0x227ea3(0x1fa)][_0x227ea3(0x21e)],()=>_0xd0b20d[_0x227ea3(0x20a)](_0x24904f=>{const _0x5e7a78=_0x227ea3;if(_0x24904f['id']===_0x2dc3e3['id']){let _0x3acb5b=_0x2a5451[_0x5e7a78(0x214)](_0x30b636);if(!this[_0x5e7a78(0x226)]())return;let _0x1cc0e6={'layoutConfig':_0x3acb5b[_0x5e7a78(0x1f3)],'renderConfig':_0x3acb5b[_0x5e7a78(0x21f)]};if(_0x1cc0e6==null)return;if(this[_0x5e7a78(0x1f5)](this[_0x5e7a78(0x1fa)]['BeforeSheetPrintCanceled'],_0x1cc0e6),_0x1cc0e6[_0x5e7a78(0x1fc)])throw new _0x3acc75();}}))),this[_0x227ea3(0x20e)](this['registerEventHandler'](this[_0x227ea3(0x1fa)][_0x227ea3(0x207)],()=>_0xd0b20d['onCommandExecuted'](_0x29092c=>{const _0x5d283c=_0x227ea3;if(_0x29092c['id']===_0x3fb5fa['id']){let _0x353da2=this[_0x5d283c(0x226)]();if(!_0x353da2)return;let _0x44d118={'workbook':_0x353da2,'worksheet':_0x353da2['getActiveSheet']()};if(_0x44d118==null)return;this[_0x5d283c(0x1f5)](this[_0x5d283c(0x1fa)][_0x5d283c(0x207)],_0x44d118);}}))),this['disposeWithMe'](this[_0x227ea3(0x222)](this[_0x227ea3(0x1fa)][_0x227ea3(0x211)],()=>_0xd0b20d[_0x227ea3(0x20c)](_0x46acfa=>{const _0x1a4142=_0x227ea3;if(_0x46acfa['id']===_0x5b7093['id']){let _0x466c8d=_0x2a5451[_0x1a4142(0x214)](_0x30b636);if(!this[_0x1a4142(0x226)]())return;let _0x566949={'layoutConfig':_0x466c8d['layoutConfig'],'renderConfig':_0x466c8d[_0x1a4142(0x21f)]};if(_0x566949==null)return;this[_0x1a4142(0x1f5)](this[_0x1a4142(0x1fa)][_0x1a4142(0x211)],_0x566949);}}))),this[_0x227ea3(0x20e)](this['registerEventHandler'](this[_0x227ea3(0x1fa)][_0x227ea3(0x216)],()=>_0xd0b20d['onCommandExecuted'](_0x22b795=>{const _0x523f3c=_0x227ea3;if(_0x22b795['id']===_0x2dc3e3['id']){let _0x19e5cf=_0x2a5451[_0x523f3c(0x214)](_0x30b636);if(!this[_0x523f3c(0x226)]())return;let _0x5480bc={'layoutConfig':_0x19e5cf[_0x523f3c(0x1f3)],'renderConfig':_0x19e5cf[_0x523f3c(0x21f)]};if(_0x5480bc==null)return;this[_0x523f3c(0x1f5)](this[_0x523f3c(0x1fa)]['SheetPrintCanceled'],_0x5480bc);}})));}};function _0x1805(){const _0x138e69=['executeCommand','syncExecuteCommand','77oxikDu','Event','_injector','cancel','updateLayoutConfig','_initialize','PrintPaperSize','PrintDirection','openPrintDialog','PrintPaperMargin','14586RRXMzi','20khsjBZ','24qcRywj','5kdjpDg','SheetPrintOpen','includeHeaders','421002GPqsCj','beforeCommandExecuted','195530jkqdOt','onCommandExecuted','closePrintDialog','disposeWithMe','_workbook','PrintAlign','SheetPrintConfirmed','getActiveSheet','67263vGLdRB','get','PrintArea','SheetPrintCanceled','updatePrintRenderConfig','extend','print','_range','BeforeSheetPrintConfirm','435018fWDKXE','23512OQcRvo','BeforeSheetPrintCanceled','renderConfig','getScreenshot','BeforeSheetPrintOpen','registerEventHandler','PrintHeaderFooter','getUnitId','updatePrintConfig','getActiveUniverSheet','updateRenderConfig','_worksheet','layoutConfig','PrintScale','fireEvent','823326eBzDbu'];_0x1805=function(){return _0x138e69;};return _0x1805();}_0x24f7ee['extend'](D);function _0x10db(_0x47956b,_0x3e7d44){_0x47956b=_0x47956b-0x1f1;const _0x1805bd=_0x1805();let _0x10db79=_0x1805bd[_0x47956b];return _0x10db79;}export{};
|