@univerjs-pro/sheets-print 1.0.0-alpha.1 → 1.0.0-alpha.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/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 -6
- 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 _0x24131b=_0x11eb;(function(_0x26d61c,_0x3c3046){const _0x1c7fa8=_0x11eb,_0x184c80=_0x26d61c();while(!![]){try{const _0x181da8=parseInt(_0x1c7fa8(0x1c6))/0x1*(-parseInt(_0x1c7fa8(0x1d1))/0x2)+-parseInt(_0x1c7fa8(0x1c9))/0x3+-parseInt(_0x1c7fa8(0x1cf))/0x4+-parseInt(_0x1c7fa8(0x1ce))/0x5+-parseInt(_0x1c7fa8(0x1e2))/0x6+-parseInt(_0x1c7fa8(0x1e5))/0x7*(-parseInt(_0x1c7fa8(0x1d3))/0x8)+parseInt(_0x1c7fa8(0x1d5))/0x9;if(_0x181da8===_0x3c3046)break;else _0x184c80['push'](_0x184c80['shift']());}catch(_0x5158a2){_0x184c80['push'](_0x184c80['shift']());}}}(_0x3ed7,0xbde4a));import{CancelSheetPrintOperation as _0x4f3a4b,ConfirmSheetPrintOperation as _0x205996,ISheetPrintManagerService as _0x3ca633,PrintArea as _0x406e70,PrintFreeze as _0x155c91,PrintHeaderFooter as _0x96d33,PrintHeaderFooterSymbol as _0x18020a,SheetPrintClientService as _0x5031fd,SheetPrintOpenOperation as _0x2036db,SheetScreenShotOperation as _0x503ecc,hasPrintFacadePermission as _0x2a689e}from'@univerjs-pro/sheets-print';import{CanceledError as _0x19eec7,ICommandService as _0x2222cc,PaperType as _0x206240}from'@univerjs/core';function _0x11eb(_0x24cffd,_0x298f5a){_0x24cffd=_0x24cffd-0x1b5;const _0x3ed760=_0x3ed7();let _0x11eba5=_0x3ed760[_0x24cffd];return _0x11eba5;}import{FRange as _0xf04416,FWorkbook as _0x528869}from'@univerjs/sheets/facade';import{FEnum as _0x5cd2a2,FEventName as _0x1946f5,FUniver as _0x303f3c}from'@univerjs/core/facade';import{PrintAlign as _0x45f992,PrintDirection as _0x22333e,PrintPaperMargin as _0x54ce43,PrintScale as _0x365ae5}from'@univerjs-pro/print';var C=class extends _0x528869{[_0x24131b(0x1e0)](_0x56fa17){const _0x1c332b=_0x24131b;return this[_0x1c332b(0x1e3)][_0x1c332b(0x1d6)](_0x3ca633)[_0x1c332b(0x1c5)](_0x56fa17),this;}[_0x24131b(0x1be)](_0x12f3a4){const _0x1900dd=_0x24131b;return this[_0x1900dd(0x1e3)][_0x1900dd(0x1d6)](_0x3ca633)[_0x1900dd(0x1b9)](_0x12f3a4),this;}[_0x24131b(0x1d9)](){return this['_injector']['get'](_0x2222cc)['syncExecuteCommand'](_0x205996['id']);}[_0x24131b(0x1b7)](){const _0x2011f8=_0x24131b;return this[_0x2011f8(0x1e3)][_0x2011f8(0x1d6)](_0x2222cc)['syncExecuteCommand'](_0x2036db['id']);}['closePrintDialog'](){const _0x1ced59=_0x24131b;return this[_0x1ced59(0x1e3)][_0x1ced59(0x1d6)](_0x2222cc)['syncExecuteCommand'](_0x4f3a4b['id']);}async[_0x24131b(0x1d2)](){const _0x38f20a=_0x24131b;return _0x2a689e(this[_0x38f20a(0x1e3)])?this[_0x38f20a(0x1e3)][_0x38f20a(0x1d6)](_0x2222cc)[_0x38f20a(0x1de)](_0x503ecc['id']):!0x1;}};_0x528869[_0x24131b(0x1dc)](C);var w=class extends _0xf04416{[_0x24131b(0x1d8)](_0x4a893e){const _0x54162e=_0x24131b;return _0x2a689e(this[_0x54162e(0x1e3)])?this['_injector'][_0x54162e(0x1d6)](_0x5031fd)[_0x54162e(0x1db)](this['_workbook'][_0x54162e(0x1dd)](),this[_0x54162e(0x1bb)]['getSheetId'](),this[_0x54162e(0x1e4)],_0x4a893e==null?void 0x0:_0x4a893e[_0x54162e(0x1c4)]):!0x1;}};_0xf04416[_0x24131b(0x1dc)](w);var T=class extends _0x1946f5{get['BeforeSheetPrintOpen'](){const _0x4bc09a=_0x24131b;return _0x4bc09a(0x1c2);}get[_0x24131b(0x1e1)](){const _0x27fbf7=_0x24131b;return _0x27fbf7(0x1e1);}get['BeforeSheetPrintCanceled'](){const _0x53efc0=_0x24131b;return _0x53efc0(0x1b8);}get['SheetPrintOpen'](){return'SheetPrintOpen';}get[_0x24131b(0x1da)](){const _0x18fafa=_0x24131b;return _0x18fafa(0x1da);}get[_0x24131b(0x1c0)](){const _0x4e431f=_0x24131b;return _0x4e431f(0x1c0);}};function _0x3ed7(){const _0x4d160f=['getRangeImage','extend','getUnitId','executeCommand','getActiveWorkbook','updatePrintConfig','BeforeSheetPrintConfirm','8860470qySjXR','_injector','_range','7VQAMhd','SheetPrintOpen','_initialize','layoutConfig','openPrintDialog','BeforeSheetPrintCanceled','updateRenderConfig','PrintHeaderFooter','_worksheet','onCommandExecuted','Event','updatePrintRenderConfig','renderConfig','SheetPrintCanceled','PrintArea','BeforeSheetPrintOpen','PrintScale','includeHeaders','updateLayoutConfig','5612CKZnep','getActiveSheet','registerEventHandler','377277YvbyrH','disposeWithMe','fireEvent','cancel','beforeCommandExecuted','173355VpcwKG','1531096PaMewU','PrintAlign','32kpxhUj','saveScreenshotToClipboard','319856AEiXGR','PrintHeaderFooterSymbol','25628049VxGepE','get','PrintFreeze','getScreenshot','print','SheetPrintConfirmed'];_0x3ed7=function(){return _0x4d160f;};return _0x3ed7();}_0x1946f5['extend'](T);var E=class extends _0x5cd2a2{get[_0x24131b(0x1c1)](){return _0x406e70;}get[_0x24131b(0x1d0)](){return _0x45f992;}get['PrintPaperSize'](){return _0x206240;}get['PrintPaperMargin'](){return _0x54ce43;}get[_0x24131b(0x1c3)](){return _0x365ae5;}get['PrintDirection'](){return _0x22333e;}get[_0x24131b(0x1d7)](){return _0x155c91;}get[_0x24131b(0x1ba)](){return _0x96d33;}get[_0x24131b(0x1d4)](){return _0x18020a;}};_0x5cd2a2[_0x24131b(0x1dc)](E);var D=class extends _0x303f3c{[_0x24131b(0x1b5)](_0xfb5ae2){const _0xc533a4=_0x24131b;let _0x566dba=_0xfb5ae2['get'](_0x2222cc);this[_0xc533a4(0x1ca)](this['registerEventHandler'](this[_0xc533a4(0x1bd)][_0xc533a4(0x1c2)],()=>_0x566dba[_0xc533a4(0x1cd)](_0x3aaffe=>{const _0x2bca5e=_0xc533a4;if(_0x3aaffe['id']===_0x2036db['id']){let _0x3422a9=this[_0x2bca5e(0x1df)]();if(!_0x3422a9)return;let _0x3e2758={'workbook':_0x3422a9,'worksheet':_0x3422a9['getActiveSheet']()};if(_0x3e2758==null)return;if(this[_0x2bca5e(0x1cb)](this[_0x2bca5e(0x1bd)][_0x2bca5e(0x1c2)],_0x3e2758),_0x3e2758[_0x2bca5e(0x1cc)])throw new _0x19eec7();}}))),this['disposeWithMe'](this[_0xc533a4(0x1c8)](this[_0xc533a4(0x1bd)][_0xc533a4(0x1e1)],()=>_0x566dba['beforeCommandExecuted'](_0x287474=>{const _0x5f1171=_0xc533a4;if(_0x287474['id']===_0x205996['id']){let _0x2e8100=_0xfb5ae2[_0x5f1171(0x1d6)](_0x3ca633);if(!this[_0x5f1171(0x1df)]())return;let _0x193488={'layoutConfig':_0x2e8100[_0x5f1171(0x1b6)],'renderConfig':_0x2e8100[_0x5f1171(0x1bf)]};if(_0x193488==null)return;if(this[_0x5f1171(0x1cb)](this['Event']['BeforeSheetPrintConfirm'],_0x193488),_0x193488['cancel'])throw new _0x19eec7();}}))),this['disposeWithMe'](this[_0xc533a4(0x1c8)](this[_0xc533a4(0x1bd)][_0xc533a4(0x1b8)],()=>_0x566dba[_0xc533a4(0x1cd)](_0x4d443a=>{const _0x45a26a=_0xc533a4;if(_0x4d443a['id']===_0x4f3a4b['id']){let _0x5247a5=_0xfb5ae2[_0x45a26a(0x1d6)](_0x3ca633);if(!this[_0x45a26a(0x1df)]())return;let _0x16ae7f={'layoutConfig':_0x5247a5[_0x45a26a(0x1b6)],'renderConfig':_0x5247a5[_0x45a26a(0x1bf)]};if(_0x16ae7f==null)return;if(this[_0x45a26a(0x1cb)](this[_0x45a26a(0x1bd)]['BeforeSheetPrintCanceled'],_0x16ae7f),_0x16ae7f[_0x45a26a(0x1cc)])throw new _0x19eec7();}}))),this[_0xc533a4(0x1ca)](this['registerEventHandler'](this[_0xc533a4(0x1bd)][_0xc533a4(0x1e6)],()=>_0x566dba[_0xc533a4(0x1bc)](_0x2bb1ca=>{const _0x3a5128=_0xc533a4;if(_0x2bb1ca['id']===_0x2036db['id']){let _0x55ea54=this[_0x3a5128(0x1df)]();if(!_0x55ea54)return;let _0xa8f368={'workbook':_0x55ea54,'worksheet':_0x55ea54[_0x3a5128(0x1c7)]()};if(_0xa8f368==null)return;this[_0x3a5128(0x1cb)](this[_0x3a5128(0x1bd)][_0x3a5128(0x1e6)],_0xa8f368);}}))),this[_0xc533a4(0x1ca)](this['registerEventHandler'](this[_0xc533a4(0x1bd)]['SheetPrintConfirmed'],()=>_0x566dba[_0xc533a4(0x1bc)](_0x18d58e=>{const _0x4d8cd6=_0xc533a4;if(_0x18d58e['id']===_0x205996['id']){let _0x3ef8c0=_0xfb5ae2[_0x4d8cd6(0x1d6)](_0x3ca633);if(!this[_0x4d8cd6(0x1df)]())return;let _0x1e0657={'layoutConfig':_0x3ef8c0[_0x4d8cd6(0x1b6)],'renderConfig':_0x3ef8c0[_0x4d8cd6(0x1bf)]};if(_0x1e0657==null)return;this[_0x4d8cd6(0x1cb)](this['Event']['SheetPrintConfirmed'],_0x1e0657);}}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0xc533a4(0x1c0)],()=>_0x566dba[_0xc533a4(0x1bc)](_0x428a67=>{const _0x18f885=_0xc533a4;if(_0x428a67['id']===_0x4f3a4b['id']){let _0x29899c=_0xfb5ae2[_0x18f885(0x1d6)](_0x3ca633);if(!this[_0x18f885(0x1df)]())return;let _0x4d1d0b={'layoutConfig':_0x29899c[_0x18f885(0x1b6)],'renderConfig':_0x29899c['renderConfig']};if(_0x4d1d0b==null)return;this[_0x18f885(0x1cb)](this[_0x18f885(0x1bd)][_0x18f885(0x1c0)],_0x4d1d0b);}})));}};_0x303f3c[_0x24131b(0x1dc)](D);export{};
|