@univerjs-pro/sheets-print 0.10.4 → 0.10.5
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 +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/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 +17 -17
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3e99b8=_0x1617;(function(_0xc83898,_0x450ca2){const _0x1ebee4=_0x1617,_0x2e89e1=_0xc83898();while(!![]){try{const _0xbeaa69=-parseInt(_0x1ebee4(0xa7))/0x1*(parseInt(_0x1ebee4(0xb9))/0x2)+parseInt(_0x1ebee4(0x9d))/0x3+-parseInt(_0x1ebee4(0xb1))/0x4+parseInt(_0x1ebee4(0x91))/0x5+-parseInt(_0x1ebee4(0xb7))/0x6*(-parseInt(_0x1ebee4(0xbc))/0x7)+parseInt(_0x1ebee4(0x9f))/0x8+-parseInt(_0x1ebee4(0xad))/0x9*(parseInt(_0x1ebee4(0xa4))/0xa);if(_0xbeaa69===_0x450ca2)break;else _0x2e89e1['push'](_0x2e89e1['shift']());}catch(_0x451cbb){_0x2e89e1['push'](_0x2e89e1['shift']());}}}(_0x4f1c,0x3e38d));import{ISheetPrintManagerService as _0x549771,ConfirmSheetPrintOperation as _0xb76f27,SheetPrintOpenOperation as _0x9f4eb6,CancelSheetPrintOperation as _0x3d7aa8,hasPrintFacadePermission as _0x4698bb,SheetScreenShotOperation as _0xc6aac9,SheetPrintClientService as _0x15dba9,PrintArea as _0x42128f,PrintFreeze as _0x11462b,PrintHeaderFooter as _0x48776f,PrintHeaderFooterSymbol as _0x2e42ca}from'@univerjs-pro/sheets-print';function _0x1617(_0x4b1281,_0x39e2e3){const _0x4f1c99=_0x4f1c();return _0x1617=function(_0x1617b4,_0x36bea6){_0x1617b4=_0x1617b4-0x90;let _0x1a2636=_0x4f1c99[_0x1617b4];return _0x1a2636;},_0x1617(_0x4b1281,_0x39e2e3);}import{ICommandService as _0x1d529b,PaperType as _0x319ba3,CanceledError as _0x248bef}from'@univerjs/core';import{FWorkbook as _0x4748ce,FRange as _0x778025}from'@univerjs/sheets/facade';import{FEventName as _0xd8fa66,FEnum as _0x348d78,FUniver as _0x5217cb}from'@univerjs/core/facade';import{PrintAlign as _0x5a4a08,PrintPaperMargin as _0x4d53d8,PrintScale as _0x43752b,PrintDirection as _0x533dd9}from'@univerjs-pro/print';class A extends _0x4748ce{[_0x3e99b8(0x9b)](_0xf7450d){const _0x350a0e=_0x3e99b8;return this[_0x350a0e(0x96)][_0x350a0e(0xa0)](_0x549771)[_0x350a0e(0xb8)](_0xf7450d),this;}[_0x3e99b8(0xae)](_0x1b5e23){const _0x56c07f=_0x3e99b8;return this[_0x56c07f(0x96)]['get'](_0x549771)[_0x56c07f(0x92)](_0x1b5e23),this;}['print'](){const _0x5d0068=_0x3e99b8;return this[_0x5d0068(0x96)]['get'](_0x1d529b)['syncExecuteCommand'](_0xb76f27['id']);}[_0x3e99b8(0xa2)](){const _0x46b327=_0x3e99b8;return this[_0x46b327(0x96)][_0x46b327(0xa0)](_0x1d529b)[_0x46b327(0xb4)](_0x9f4eb6['id']);}[_0x3e99b8(0xa8)](){const _0x5b5af1=_0x3e99b8;return this[_0x5b5af1(0x96)][_0x5b5af1(0xa0)](_0x1d529b)[_0x5b5af1(0xb4)](_0x3d7aa8['id']);}async['saveScreenshotToClipboard'](){const _0x49cda6=_0x3e99b8;return _0x4698bb(this[_0x49cda6(0x96)])?this[_0x49cda6(0x96)][_0x49cda6(0xa0)](_0x1d529b)[_0x49cda6(0x90)](_0xc6aac9['id']):!0x1;}}_0x4748ce[_0x3e99b8(0xab)](A);function _0x4f1c(){const _0x1dc3ae=['PrintAlign','onCommandExecuted','PrintArea','updatePrintConfig','SheetPrintOpen','495471ZqhiHt','_range','182200qtoodK','get','fireEvent','openPrintDialog','cancel','10XdWXEX','beforeCommandExecuted','_workbook','173ZDUMzP','closePrintDialog','PrintHeaderFooterSymbol','BeforeSheetPrintOpen','extend','SheetPrintCanceled','673272xDmHyu','updatePrintRenderConfig','PrintDirection','getRangeImage','367000ySlgHG','layoutConfig','registerEventHandler','syncExecuteCommand','PrintHeaderFooter','getScreenshot','18FePSRX','updateLayoutConfig','674GuyhdP','Event','BeforeSheetPrintConfirm','296345rlncOm','SheetPrintConfirmed','getActiveSheet','BeforeSheetPrintCanceled','executeCommand','823915OCNICq','updateRenderConfig','getActiveUniverSheet','renderConfig','PrintPaperMargin','_injector','PrintPaperSize'];_0x4f1c=function(){return _0x1dc3ae;};return _0x4f1c();}class B extends _0x778025{[_0x3e99b8(0xb6)](){const _0x2c3fda=_0x3e99b8;return _0x4698bb(this['_injector'])?this[_0x2c3fda(0x96)][_0x2c3fda(0xa0)](_0x15dba9)[_0x2c3fda(0xb0)](this[_0x2c3fda(0xa6)]['getUnitId'](),this['_worksheet']['getSheetId'](),this[_0x2c3fda(0x9e)]):!0x1;}}_0x778025[_0x3e99b8(0xab)](B);class H{get['BeforeSheetPrintOpen'](){const _0x1a3134=_0x3e99b8;return _0x1a3134(0xaa);}get[_0x3e99b8(0xbb)](){return'BeforeSheetPrintConfirm';}get['BeforeSheetPrintCanceled'](){const _0xa7c3a1=_0x3e99b8;return _0xa7c3a1(0xbf);}get[_0x3e99b8(0x9c)](){const _0x3636ad=_0x3e99b8;return _0x3636ad(0x9c);}get[_0x3e99b8(0xbd)](){const _0x15db0a=_0x3e99b8;return _0x15db0a(0xbd);}get[_0x3e99b8(0xac)](){const _0x5a54ca=_0x3e99b8;return _0x5a54ca(0xac);}}_0xd8fa66[_0x3e99b8(0xab)](H);class U{get[_0x3e99b8(0x9a)](){return _0x42128f;}get[_0x3e99b8(0x98)](){return _0x5a4a08;}get[_0x3e99b8(0x97)](){return _0x319ba3;}get[_0x3e99b8(0x95)](){return _0x4d53d8;}get['PrintScale'](){return _0x43752b;}get[_0x3e99b8(0xaf)](){return _0x533dd9;}get['PrintFreeze'](){return _0x11462b;}get[_0x3e99b8(0xb5)](){return _0x48776f;}get[_0x3e99b8(0xa9)](){return _0x2e42ca;}}_0x348d78[_0x3e99b8(0xab)](U);class M extends _0x5217cb{['_initialize'](_0x554ca6){const _0x125c28=_0x3e99b8,_0xd4ff3d=_0x554ca6[_0x125c28(0xa0)](_0x1d529b);this['registerEventHandler'](this[_0x125c28(0xba)][_0x125c28(0xaa)],()=>_0xd4ff3d[_0x125c28(0xa5)](_0x3c6b8f=>{const _0x1707c0=_0x125c28;if(_0x3c6b8f['id']===_0x9f4eb6['id']){const _0x19a2ba=this[_0x1707c0(0x93)]();if(!_0x19a2ba)return;const _0xacf747={'workbook':_0x19a2ba,'worksheet':_0x19a2ba[_0x1707c0(0xbe)]()};if(_0xacf747==null)return;if(this['fireEvent'](this[_0x1707c0(0xba)][_0x1707c0(0xaa)],_0xacf747),_0xacf747[_0x1707c0(0xa3)])throw new _0x248bef();}})),this['registerEventHandler'](this[_0x125c28(0xba)][_0x125c28(0xbb)],()=>_0xd4ff3d[_0x125c28(0xa5)](_0x17f012=>{const _0x5124a1=_0x125c28;if(_0x17f012['id']===_0xb76f27['id']){const _0x11c942=_0x554ca6[_0x5124a1(0xa0)](_0x549771);if(!this[_0x5124a1(0x93)]())return;const _0x4447e7={'layoutConfig':_0x11c942[_0x5124a1(0xb2)],'renderConfig':_0x11c942['renderConfig']};if(_0x4447e7==null)return;if(this[_0x5124a1(0xa1)](this['Event']['BeforeSheetPrintConfirm'],_0x4447e7),_0x4447e7[_0x5124a1(0xa3)])throw new _0x248bef();}})),this[_0x125c28(0xb3)](this[_0x125c28(0xba)][_0x125c28(0xbf)],()=>_0xd4ff3d[_0x125c28(0xa5)](_0x480106=>{const _0x65c790=_0x125c28;if(_0x480106['id']===_0x3d7aa8['id']){const _0x418d16=_0x554ca6[_0x65c790(0xa0)](_0x549771);if(!this[_0x65c790(0x93)]())return;const _0xb5083b={'layoutConfig':_0x418d16[_0x65c790(0xb2)],'renderConfig':_0x418d16[_0x65c790(0x94)]};if(_0xb5083b==null)return;if(this[_0x65c790(0xa1)](this[_0x65c790(0xba)][_0x65c790(0xbf)],_0xb5083b),_0xb5083b[_0x65c790(0xa3)])throw new _0x248bef();}})),this[_0x125c28(0xb3)](this[_0x125c28(0xba)][_0x125c28(0x9c)],()=>_0xd4ff3d['onCommandExecuted'](_0x14a55c=>{const _0x4f005a=_0x125c28;if(_0x14a55c['id']===_0x9f4eb6['id']){const _0x4159d8=this[_0x4f005a(0x93)]();if(!_0x4159d8)return;const _0x34350b={'workbook':_0x4159d8,'worksheet':_0x4159d8[_0x4f005a(0xbe)]()};if(_0x34350b==null)return;this[_0x4f005a(0xa1)](this[_0x4f005a(0xba)][_0x4f005a(0x9c)],_0x34350b);}})),this[_0x125c28(0xb3)](this['Event'][_0x125c28(0xbd)],()=>_0xd4ff3d[_0x125c28(0x99)](_0x35eb72=>{const _0x345ce8=_0x125c28;if(_0x35eb72['id']===_0xb76f27['id']){const _0x25916d=_0x554ca6[_0x345ce8(0xa0)](_0x549771);if(!this[_0x345ce8(0x93)]())return;const _0x298949={'layoutConfig':_0x25916d[_0x345ce8(0xb2)],'renderConfig':_0x25916d[_0x345ce8(0x94)]};if(_0x298949==null)return;this[_0x345ce8(0xa1)](this[_0x345ce8(0xba)]['SheetPrintConfirmed'],_0x298949);}})),this[_0x125c28(0xb3)](this['Event'][_0x125c28(0xac)],()=>_0xd4ff3d['onCommandExecuted'](_0x56cd73=>{const _0x5c9ddf=_0x125c28;if(_0x56cd73['id']===_0x3d7aa8['id']){const _0x527b5a=_0x554ca6[_0x5c9ddf(0xa0)](_0x549771);if(!this['getActiveUniverSheet']())return;const _0x30dacc={'layoutConfig':_0x527b5a['layoutConfig'],'renderConfig':_0x527b5a[_0x5c9ddf(0x94)]};if(_0x30dacc==null)return;this['fireEvent'](this[_0x5c9ddf(0xba)][_0x5c9ddf(0xac)],_0x30dacc);}}));}}_0x5217cb[_0x3e99b8(0xab)](M);
|