@univerjs-pro/sheets-print 0.10.1 → 0.10.2-nightly.202508071209
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/types/index.d.ts +7 -7
- 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 _0x6e6dea=_0x3fd5;function _0x27ae(){const _0x79dbd5=['renderConfig','getActiveUniverSheet','SheetPrintConfirmed','7135038fUdxVt','_workbook','BeforeSheetPrintConfirm','PrintPaperSize','print','PrintDirection','10Yebxds','syncExecuteCommand','updatePrintConfig','SheetPrintCanceled','SheetPrintOpen','8Fktkxt','cancel','3795392NMMDuj','429081eBXTja','24SgjkOo','_injector','BeforeSheetPrintCanceled','_initialize','PrintArea','extend','getSheetId','getRangeImage','registerEventHandler','executeCommand','fireEvent','2BOslLU','1570138xMrLin','BeforeSheetPrintOpen','1998460DvvgLm','PrintAlign','PrintPaperMargin','get','3960481sczAjS','layoutConfig','closePrintDialog','PrintFreeze','saveScreenshotToClipboard','_range','Event','getActiveSheet','getUnitId','_worksheet','14598023FZrsOc','onCommandExecuted','beforeCommandExecuted'];_0x27ae=function(){return _0x79dbd5;};return _0x27ae();}(function(_0x30a52f,_0x4d1f16){const _0x44dc9a=_0x3fd5,_0x381880=_0x30a52f();while(!![]){try{const _0x409de7=parseInt(_0x44dc9a(0x1b2))/0x1*(parseInt(_0x44dc9a(0x1b1))/0x2)+parseInt(_0x44dc9a(0x1d6))/0x3*(-parseInt(_0x44dc9a(0x1d3))/0x4)+parseInt(_0x44dc9a(0x1b4))/0x5*(parseInt(_0x44dc9a(0x1d7))/0x6)+parseInt(_0x44dc9a(0x1b8))/0x7+-parseInt(_0x44dc9a(0x1d5))/0x8+parseInt(_0x44dc9a(0x1c8))/0x9*(-parseInt(_0x44dc9a(0x1ce))/0xa)+-parseInt(_0x44dc9a(0x1c2))/0xb;if(_0x409de7===_0x4d1f16)break;else _0x381880['push'](_0x381880['shift']());}catch(_0xf8db45){_0x381880['push'](_0x381880['shift']());}}}(_0x27ae,0xd0940));import{ISheetPrintManagerService as _0x382fa0,ConfirmSheetPrintOperation as _0x440546,SheetPrintOpenOperation as _0x455774,CancelSheetPrintOperation as _0x3070c5,hasPrintFacadePermission as _0x3a611a,SheetScreenShotOperation as _0x5c366a,SheetPrintClientService as _0x51fca6,PrintArea as _0x4397a4,PrintFreeze as _0x4006e9,PrintHeaderFooter as _0x480444,PrintHeaderFooterSymbol as _0x3dce68}from'@univerjs-pro/sheets-print';import{ICommandService as _0x2312ae,PaperType as _0x5b8470,CanceledError as _0x2a77ca}from'@univerjs/core';import{FWorkbook as _0x361d9d,FRange as _0x1e8f85}from'@univerjs/sheets/facade';import{FEventName as _0x1c6dbf,FEnum as _0x4e4f51,FUniver as _0xac73fa}from'@univerjs/core/facade';import{PrintAlign as _0x415757,PrintPaperMargin as _0x2593e0,PrintScale as _0xc0354d,PrintDirection as _0x95bec2}from'@univerjs-pro/print';class A extends _0x361d9d{[_0x6e6dea(0x1d0)](_0x3f485c){const _0x55d279=_0x6e6dea;return this[_0x55d279(0x1d8)]['get'](_0x382fa0)['updateLayoutConfig'](_0x3f485c),this;}['updatePrintRenderConfig'](_0x8c4b69){const _0x2d9420=_0x6e6dea;return this[_0x2d9420(0x1d8)]['get'](_0x382fa0)['updateRenderConfig'](_0x8c4b69),this;}[_0x6e6dea(0x1cc)](){const _0x56b128=_0x6e6dea;return this[_0x56b128(0x1d8)][_0x56b128(0x1b7)](_0x2312ae)[_0x56b128(0x1cf)](_0x440546['id']);}['openPrintDialog'](){const _0x3ede94=_0x6e6dea;return this['_injector'][_0x3ede94(0x1b7)](_0x2312ae)['syncExecuteCommand'](_0x455774['id']);}[_0x6e6dea(0x1ba)](){const _0xda3115=_0x6e6dea;return this[_0xda3115(0x1d8)]['get'](_0x2312ae)[_0xda3115(0x1cf)](_0x3070c5['id']);}async[_0x6e6dea(0x1bc)](){const _0x233556=_0x6e6dea;return _0x3a611a(this[_0x233556(0x1d8)])?this[_0x233556(0x1d8)][_0x233556(0x1b7)](_0x2312ae)[_0x233556(0x1af)](_0x5c366a['id']):!0x1;}}_0x361d9d[_0x6e6dea(0x1dc)](A);class B extends _0x1e8f85{['getScreenshot'](){const _0x2765db=_0x6e6dea;return _0x3a611a(this[_0x2765db(0x1d8)])?this['_injector'][_0x2765db(0x1b7)](_0x51fca6)[_0x2765db(0x1ad)](this[_0x2765db(0x1c9)][_0x2765db(0x1c0)](),this[_0x2765db(0x1c1)][_0x2765db(0x1dd)](),this[_0x2765db(0x1bd)]):!0x1;}}_0x1e8f85[_0x6e6dea(0x1dc)](B);class H{get[_0x6e6dea(0x1b3)](){return'BeforeSheetPrintOpen';}get[_0x6e6dea(0x1ca)](){const _0x4b41cb=_0x6e6dea;return _0x4b41cb(0x1ca);}get[_0x6e6dea(0x1d9)](){return'BeforeSheetPrintCanceled';}get['SheetPrintOpen'](){const _0x15eb4c=_0x6e6dea;return _0x15eb4c(0x1d2);}get[_0x6e6dea(0x1c7)](){const _0x2e861a=_0x6e6dea;return _0x2e861a(0x1c7);}get[_0x6e6dea(0x1d1)](){const _0x14011b=_0x6e6dea;return _0x14011b(0x1d1);}}_0x1c6dbf[_0x6e6dea(0x1dc)](H);class U{get[_0x6e6dea(0x1db)](){return _0x4397a4;}get[_0x6e6dea(0x1b5)](){return _0x415757;}get[_0x6e6dea(0x1cb)](){return _0x5b8470;}get[_0x6e6dea(0x1b6)](){return _0x2593e0;}get['PrintScale'](){return _0xc0354d;}get[_0x6e6dea(0x1cd)](){return _0x95bec2;}get[_0x6e6dea(0x1bb)](){return _0x4006e9;}get['PrintHeaderFooter'](){return _0x480444;}get['PrintHeaderFooterSymbol'](){return _0x3dce68;}}_0x4e4f51[_0x6e6dea(0x1dc)](U);function _0x3fd5(_0x3313af,_0x211f06){const _0x27ae22=_0x27ae();return _0x3fd5=function(_0x3fd531,_0x2b8b39){_0x3fd531=_0x3fd531-0x1ad;let _0x2c113f=_0x27ae22[_0x3fd531];return _0x2c113f;},_0x3fd5(_0x3313af,_0x211f06);}class M extends _0xac73fa{[_0x6e6dea(0x1da)](_0x545274){const _0x1a919a=_0x6e6dea,_0x3e92b3=_0x545274[_0x1a919a(0x1b7)](_0x2312ae);this[_0x1a919a(0x1ae)](this[_0x1a919a(0x1be)][_0x1a919a(0x1b3)],()=>_0x3e92b3[_0x1a919a(0x1c4)](_0x2254aa=>{const _0x1d2dbd=_0x1a919a;if(_0x2254aa['id']===_0x455774['id']){const _0x3536d4=this[_0x1d2dbd(0x1c6)]();if(!_0x3536d4)return;const _0x7a310f={'workbook':_0x3536d4,'worksheet':_0x3536d4[_0x1d2dbd(0x1bf)]()};if(_0x7a310f==null)return;if(this[_0x1d2dbd(0x1b0)](this[_0x1d2dbd(0x1be)][_0x1d2dbd(0x1b3)],_0x7a310f),_0x7a310f[_0x1d2dbd(0x1d4)])throw new _0x2a77ca();}})),this['registerEventHandler'](this[_0x1a919a(0x1be)]['BeforeSheetPrintConfirm'],()=>_0x3e92b3[_0x1a919a(0x1c4)](_0x1c8b56=>{const _0xb41366=_0x1a919a;if(_0x1c8b56['id']===_0x440546['id']){const _0x38b8fe=_0x545274[_0xb41366(0x1b7)](_0x382fa0);if(!this[_0xb41366(0x1c6)]())return;const _0x1d63e8={'layoutConfig':_0x38b8fe[_0xb41366(0x1b9)],'renderConfig':_0x38b8fe[_0xb41366(0x1c5)]};if(_0x1d63e8==null)return;if(this[_0xb41366(0x1b0)](this[_0xb41366(0x1be)][_0xb41366(0x1ca)],_0x1d63e8),_0x1d63e8['cancel'])throw new _0x2a77ca();}})),this[_0x1a919a(0x1ae)](this[_0x1a919a(0x1be)][_0x1a919a(0x1d9)],()=>_0x3e92b3[_0x1a919a(0x1c4)](_0x3446a1=>{const _0x17b831=_0x1a919a;if(_0x3446a1['id']===_0x3070c5['id']){const _0x51c300=_0x545274['get'](_0x382fa0);if(!this['getActiveUniverSheet']())return;const _0x926d8a={'layoutConfig':_0x51c300[_0x17b831(0x1b9)],'renderConfig':_0x51c300[_0x17b831(0x1c5)]};if(_0x926d8a==null)return;if(this[_0x17b831(0x1b0)](this['Event'][_0x17b831(0x1d9)],_0x926d8a),_0x926d8a[_0x17b831(0x1d4)])throw new _0x2a77ca();}})),this[_0x1a919a(0x1ae)](this[_0x1a919a(0x1be)][_0x1a919a(0x1d2)],()=>_0x3e92b3[_0x1a919a(0x1c3)](_0x97ac7f=>{const _0x41edf8=_0x1a919a;if(_0x97ac7f['id']===_0x455774['id']){const _0x2c9c87=this[_0x41edf8(0x1c6)]();if(!_0x2c9c87)return;const _0xf274a={'workbook':_0x2c9c87,'worksheet':_0x2c9c87[_0x41edf8(0x1bf)]()};if(_0xf274a==null)return;this[_0x41edf8(0x1b0)](this[_0x41edf8(0x1be)][_0x41edf8(0x1d2)],_0xf274a);}})),this['registerEventHandler'](this[_0x1a919a(0x1be)][_0x1a919a(0x1c7)],()=>_0x3e92b3[_0x1a919a(0x1c3)](_0x5895f4=>{const _0x39256b=_0x1a919a;if(_0x5895f4['id']===_0x440546['id']){const _0x25e0b1=_0x545274[_0x39256b(0x1b7)](_0x382fa0);if(!this[_0x39256b(0x1c6)]())return;const _0x37d36b={'layoutConfig':_0x25e0b1[_0x39256b(0x1b9)],'renderConfig':_0x25e0b1[_0x39256b(0x1c5)]};if(_0x37d36b==null)return;this['fireEvent'](this[_0x39256b(0x1be)][_0x39256b(0x1c7)],_0x37d36b);}})),this[_0x1a919a(0x1ae)](this['Event']['SheetPrintCanceled'],()=>_0x3e92b3[_0x1a919a(0x1c3)](_0x3f4d7c=>{const _0x9dc3=_0x1a919a;if(_0x3f4d7c['id']===_0x3070c5['id']){const _0x129aa5=_0x545274[_0x9dc3(0x1b7)](_0x382fa0);if(!this[_0x9dc3(0x1c6)]())return;const _0x554c84={'layoutConfig':_0x129aa5[_0x9dc3(0x1b9)],'renderConfig':_0x129aa5['renderConfig']};if(_0x554c84==null)return;this[_0x9dc3(0x1b0)](this[_0x9dc3(0x1be)]['SheetPrintCanceled'],_0x554c84);}}));}}_0xac73fa[_0x6e6dea(0x1dc)](M);
|