@univerjs-pro/sheets-print 1.0.0-alpha.2 → 1.0.0-alpha.4
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/README.md +6 -3
- 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/types/index.d.ts +4 -5
- package/lib/types/views/components/SheetPrintPagePreview.spec.d.ts +1 -0
- package/lib/types/views/components/copy-sheet-extensions-for-printing.d.ts +3 -0
- package/lib/types/views/components/sheet-print-canvas-view.d.ts +2 -0
- 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 +17 -17
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x52db66=_0x5123;(function(_0x331402,_0x25d09c){const _0x434cd8=_0x5123,_0x6c33e5=_0x331402();while(!![]){try{const _0x24a4fc=parseInt(_0x434cd8(0x122))/0x1+parseInt(_0x434cd8(0x131))/0x2+-parseInt(_0x434cd8(0x113))/0x3*(parseInt(_0x434cd8(0x12d))/0x4)+parseInt(_0x434cd8(0x138))/0x5*(-parseInt(_0x434cd8(0x127))/0x6)+-parseInt(_0x434cd8(0x137))/0x7+parseInt(_0x434cd8(0x10c))/0x8+-parseInt(_0x434cd8(0x125))/0x9;if(_0x24a4fc===_0x25d09c)break;else _0x6c33e5['push'](_0x6c33e5['shift']());}catch(_0xb2262b){_0x6c33e5['push'](_0x6c33e5['shift']());}}}(_0x54a1,0xcd1f8));function _0x54a1(){const _0x22dee0=['BeforeSheetPrintOpen','beforeCommandExecuted','registerEventHandler','PrintPaperMargin','PrintScale','_injector','get','171786FsFMKS','_workbook','SheetPrintOpen','3092571MtMaTl','PrintAlign','54QWfatD','fireEvent','extend','getActiveWorkbook','_initialize','renderConfig','551428pqPWCb','onCommandExecuted','getScreenshot','saveScreenshotToClipboard','2157660TxEgNr','syncExecuteCommand','BeforeSheetPrintConfirm','PrintHeaderFooter','updatePrintConfig','PrintDirection','7639149BNVHCy','225645mZFjtF','includeHeaders','updatePrintRenderConfig','print','BeforeSheetPrintCanceled','12548096myiPgl','getActiveSheet','PrintFreeze','layoutConfig','disposeWithMe','PrintHeaderFooterSymbol','getUnitId','3DpgUUy','_range','updateLayoutConfig','cancel','SheetPrintCanceled','getSheetId','Event','SheetPrintConfirmed'];_0x54a1=function(){return _0x22dee0;};return _0x54a1();}import{CancelSheetPrintOperation as _0x41c1ab,ConfirmSheetPrintOperation as _0x55c319,ISheetPrintManagerService as _0x4ac5bc,PrintArea as _0x122aaf,PrintFreeze as _0x3293d7,PrintHeaderFooter as _0x5f15a1,PrintHeaderFooterSymbol as _0x1bce7b,SheetPrintClientService as _0x29ee55,SheetPrintOpenOperation as _0x9895bb,SheetScreenShotOperation as _0x608683,hasPrintFacadePermission as _0x385fad}from'@univerjs-pro/sheets-print';import{CanceledError as _0x422d7e,ICommandService as _0x4d1440,PaperType as _0x181086}from'@univerjs/core';import{FRange as _0x306ee1,FWorkbook as _0x28b94a}from'@univerjs/sheets/facade';import{FEnum as _0x526e69,FEventName as _0x56650a,FUniver as _0x1f86ec}from'@univerjs/core/facade';import{PrintAlign as _0x337494,PrintDirection as _0x3286f1,PrintPaperMargin as _0x2d796c,PrintScale as _0x3c977a}from'@univerjs-pro/print';var C=class extends _0x28b94a{[_0x52db66(0x135)](_0x3b213a){const _0x4abeb4=_0x52db66;return this[_0x4abeb4(0x120)][_0x4abeb4(0x121)](_0x4ac5bc)[_0x4abeb4(0x115)](_0x3b213a),this;}[_0x52db66(0x109)](_0x35bdc3){const _0x44d17b=_0x52db66;return this[_0x44d17b(0x120)][_0x44d17b(0x121)](_0x4ac5bc)['updateRenderConfig'](_0x35bdc3),this;}[_0x52db66(0x10a)](){const _0x529a7a=_0x52db66;return this[_0x529a7a(0x120)][_0x529a7a(0x121)](_0x4d1440)[_0x529a7a(0x132)](_0x55c319['id']);}['openPrintDialog'](){const _0x562205=_0x52db66;return this[_0x562205(0x120)][_0x562205(0x121)](_0x4d1440)[_0x562205(0x132)](_0x9895bb['id']);}['closePrintDialog'](){const _0x39c0d8=_0x52db66;return this[_0x39c0d8(0x120)][_0x39c0d8(0x121)](_0x4d1440)[_0x39c0d8(0x132)](_0x41c1ab['id']);}async[_0x52db66(0x130)](){const _0x2ab0b9=_0x52db66;return _0x385fad(this[_0x2ab0b9(0x120)])?this['_injector'][_0x2ab0b9(0x121)](_0x4d1440)['executeCommand'](_0x608683['id']):!0x1;}};_0x28b94a['extend'](C);var w=class extends _0x306ee1{[_0x52db66(0x12f)](_0x64aff1){const _0x2428db=_0x52db66;return _0x385fad(this[_0x2428db(0x120)])?this['_injector'][_0x2428db(0x121)](_0x29ee55)['getRangeImage'](this[_0x2428db(0x123)][_0x2428db(0x112)](),this['_worksheet'][_0x2428db(0x118)](),this[_0x2428db(0x114)],_0x64aff1==null?void 0x0:_0x64aff1[_0x2428db(0x108)]):!0x1;}};_0x306ee1[_0x52db66(0x129)](w);var T=class extends _0x56650a{get[_0x52db66(0x11b)](){const _0x5b015e=_0x52db66;return _0x5b015e(0x11b);}get[_0x52db66(0x133)](){const _0x51cb7e=_0x52db66;return _0x51cb7e(0x133);}get['BeforeSheetPrintCanceled'](){return'BeforeSheetPrintCanceled';}get[_0x52db66(0x124)](){const _0x5dabc3=_0x52db66;return _0x5dabc3(0x124);}get[_0x52db66(0x11a)](){const _0x4945e9=_0x52db66;return _0x4945e9(0x11a);}get['SheetPrintCanceled'](){const _0x5066a4=_0x52db66;return _0x5066a4(0x117);}};_0x56650a[_0x52db66(0x129)](T);var E=class extends _0x526e69{get['PrintArea'](){return _0x122aaf;}get[_0x52db66(0x126)](){return _0x337494;}get['PrintPaperSize'](){return _0x181086;}get[_0x52db66(0x11e)](){return _0x2d796c;}get[_0x52db66(0x11f)](){return _0x3c977a;}get[_0x52db66(0x136)](){return _0x3286f1;}get[_0x52db66(0x10e)](){return _0x3293d7;}get[_0x52db66(0x134)](){return _0x5f15a1;}get[_0x52db66(0x111)](){return _0x1bce7b;}};_0x526e69[_0x52db66(0x129)](E);var D=class extends _0x1f86ec{[_0x52db66(0x12b)](_0x258e1d){const _0x2296f7=_0x52db66;let _0x5a6b64=_0x258e1d[_0x2296f7(0x121)](_0x4d1440);this[_0x2296f7(0x110)](this['registerEventHandler'](this[_0x2296f7(0x119)]['BeforeSheetPrintOpen'],()=>_0x5a6b64[_0x2296f7(0x11c)](_0x52bfb3=>{const _0x3af9cb=_0x2296f7;if(_0x52bfb3['id']===_0x9895bb['id']){let _0x272123=this[_0x3af9cb(0x12a)]();if(!_0x272123)return;let _0x23d46b={'workbook':_0x272123,'worksheet':_0x272123[_0x3af9cb(0x10d)]()};if(_0x23d46b==null)return;if(this[_0x3af9cb(0x128)](this[_0x3af9cb(0x119)][_0x3af9cb(0x11b)],_0x23d46b),_0x23d46b[_0x3af9cb(0x116)])throw new _0x422d7e();}}))),this['disposeWithMe'](this[_0x2296f7(0x11d)](this['Event'][_0x2296f7(0x133)],()=>_0x5a6b64[_0x2296f7(0x11c)](_0x300ff7=>{const _0x3c0ebb=_0x2296f7;if(_0x300ff7['id']===_0x55c319['id']){let _0x4e9816=_0x258e1d[_0x3c0ebb(0x121)](_0x4ac5bc);if(!this[_0x3c0ebb(0x12a)]())return;let _0x1c0811={'layoutConfig':_0x4e9816['layoutConfig'],'renderConfig':_0x4e9816[_0x3c0ebb(0x12c)]};if(_0x1c0811==null)return;if(this[_0x3c0ebb(0x128)](this[_0x3c0ebb(0x119)][_0x3c0ebb(0x133)],_0x1c0811),_0x1c0811['cancel'])throw new _0x422d7e();}}))),this[_0x2296f7(0x110)](this[_0x2296f7(0x11d)](this[_0x2296f7(0x119)][_0x2296f7(0x10b)],()=>_0x5a6b64[_0x2296f7(0x11c)](_0xb4832=>{const _0x39552f=_0x2296f7;if(_0xb4832['id']===_0x41c1ab['id']){let _0x6e5452=_0x258e1d[_0x39552f(0x121)](_0x4ac5bc);if(!this[_0x39552f(0x12a)]())return;let _0x503269={'layoutConfig':_0x6e5452[_0x39552f(0x10f)],'renderConfig':_0x6e5452['renderConfig']};if(_0x503269==null)return;if(this[_0x39552f(0x128)](this['Event'][_0x39552f(0x10b)],_0x503269),_0x503269['cancel'])throw new _0x422d7e();}}))),this[_0x2296f7(0x110)](this[_0x2296f7(0x11d)](this[_0x2296f7(0x119)][_0x2296f7(0x124)],()=>_0x5a6b64[_0x2296f7(0x12e)](_0x87e62d=>{const _0x42483b=_0x2296f7;if(_0x87e62d['id']===_0x9895bb['id']){let _0x2422d6=this[_0x42483b(0x12a)]();if(!_0x2422d6)return;let _0x48bb2a={'workbook':_0x2422d6,'worksheet':_0x2422d6[_0x42483b(0x10d)]()};if(_0x48bb2a==null)return;this[_0x42483b(0x128)](this[_0x42483b(0x119)][_0x42483b(0x124)],_0x48bb2a);}}))),this[_0x2296f7(0x110)](this[_0x2296f7(0x11d)](this['Event']['SheetPrintConfirmed'],()=>_0x5a6b64[_0x2296f7(0x12e)](_0x2f6154=>{const _0x58f9dc=_0x2296f7;if(_0x2f6154['id']===_0x55c319['id']){let _0x6dc7e4=_0x258e1d[_0x58f9dc(0x121)](_0x4ac5bc);if(!this[_0x58f9dc(0x12a)]())return;let _0x40e8ee={'layoutConfig':_0x6dc7e4[_0x58f9dc(0x10f)],'renderConfig':_0x6dc7e4['renderConfig']};if(_0x40e8ee==null)return;this[_0x58f9dc(0x128)](this[_0x58f9dc(0x119)][_0x58f9dc(0x11a)],_0x40e8ee);}}))),this[_0x2296f7(0x110)](this[_0x2296f7(0x11d)](this['Event']['SheetPrintCanceled'],()=>_0x5a6b64[_0x2296f7(0x12e)](_0x21d0bf=>{const _0x2a4a7b=_0x2296f7;if(_0x21d0bf['id']===_0x41c1ab['id']){let _0x6c2cce=_0x258e1d[_0x2a4a7b(0x121)](_0x4ac5bc);if(!this[_0x2a4a7b(0x12a)]())return;let _0xc6d9f1={'layoutConfig':_0x6c2cce[_0x2a4a7b(0x10f)],'renderConfig':_0x6c2cce['renderConfig']};if(_0xc6d9f1==null)return;this[_0x2a4a7b(0x128)](this[_0x2a4a7b(0x119)][_0x2a4a7b(0x117)],_0xc6d9f1);}})));}};function _0x5123(_0x48f5f5,_0x352976){_0x48f5f5=_0x48f5f5-0x108;const _0x54a1a9=_0x54a1();let _0x51232f=_0x54a1a9[_0x48f5f5];return _0x51232f;}_0x1f86ec[_0x52db66(0x129)](D);export{};
|