@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/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# @univerjs-pro/sheets-print
|
|
2
2
|
|
|
3
3
|
[](https://npmjs.com/package/@univerjs-pro/sheets-print)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/sheets-print)
|
|
4
5
|
[](https://npmjs.com/package/@univerjs-pro/sheets-print)
|
|
5
6
|
|
|
6
|
-
`@univerjs-pro/sheets-print`
|
|
7
|
+
`@univerjs-pro/sheets-print` is part of Univer Pro. Print integration for Univer Sheets.
|
|
7
8
|
|
|
8
9
|
## Package Overview
|
|
9
10
|
|
|
@@ -35,10 +36,12 @@ univer.registerPlugin(UniverSheetsPrintPlugin);
|
|
|
35
36
|
|
|
36
37
|
## Integration Notes
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
- Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
|
|
40
|
+
- Import the package stylesheet once in the application entry before rendering Univer UI.
|
|
41
|
+
- Import locale files only for the languages your application enables.
|
|
42
|
+
- Use the facade entry when integrating through Univer Facade APIs.
|
|
39
43
|
|
|
40
44
|
## Resources
|
|
41
45
|
|
|
42
46
|
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
43
47
|
- [NPM package](https://npmjs.com/package/@univerjs-pro/sheets-print)
|
|
44
|
-
|
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a2c53=_0x3771;function _0x13dc(){const _0x84090f=['syncExecuteCommand','PrintPaperSize','SheetPrintCanceled','getScreenshot','includeHeaders','openPrintDialog','PrintFreeze','5622696KGHGjl','810888ODoQiL','8695932vyufjN','PrintHeaderFooter','PrintPaperMargin','PrintHeaderFooterSymbol','FEventName','updatePrintConfig','SheetPrintConfirmed','FUniver','_workbook','5722540GVFzVJ','saveScreenshotToClipboard','PrintDirection','PrintScale','_injector','layoutConfig','BeforeSheetPrintConfirm','onCommandExecuted','getUnitId','Event','disposeWithMe','ConfirmSheetPrintOperation','PrintArea','getActiveWorkbook','PrintAlign','registerEventHandler','BeforeSheetPrintCanceled','getSheetId','closePrintDialog','FRange','PaperType','SheetPrintOpen','CancelSheetPrintOperation','CanceledError','fireEvent','get','5256820CcMtFR','cancel','FEnum','extend','ISheetPrintManagerService','beforeCommandExecuted','FWorkbook','SheetScreenShotOperation','SheetPrintOpenOperation','BeforeSheetPrintOpen','getActiveSheet','1266269UxHIJs','renderConfig','ICommandService','3899841fMhEUm','2uphHgR','_worksheet','updatePrintRenderConfig','6bLjpfD'];_0x13dc=function(){return _0x84090f;};return _0x13dc();}(function(_0x446800,_0x497e77){const _0x132cfe=_0x3771,_0x49dc7d=_0x446800();while(!![]){try{const _0x33ed51=parseInt(_0x132cfe(0x20e))/0x1*(-parseInt(_0x132cfe(0x212))/0x2)+parseInt(_0x132cfe(0x211))/0x3+parseInt(_0x132cfe(0x203))/0x4+parseInt(_0x132cfe(0x228))/0x5*(parseInt(_0x132cfe(0x215))/0x6)+-parseInt(_0x132cfe(0x21f))/0x7+parseInt(_0x132cfe(0x21e))/0x8+-parseInt(_0x132cfe(0x21d))/0x9;if(_0x33ed51===_0x497e77)break;else _0x49dc7d['push'](_0x49dc7d['shift']());}catch(_0x3a0b13){_0x49dc7d['push'](_0x49dc7d['shift']());}}}(_0x13dc,0xb16cc));let e=require('@univerjs-pro/sheets-print'),t=require('@univerjs/core'),n=require('@univerjs/sheets/facade'),r=require('@univerjs/core/facade'),i=require('@univerjs-pro/print');var a=class extends n[_0x4a2c53(0x209)]{[_0x4a2c53(0x224)](_0x314fde){const _0x271e9=_0x4a2c53;return this[_0x271e9(0x22c)][_0x271e9(0x202)](e[_0x271e9(0x207)])['updateLayoutConfig'](_0x314fde),this;}[_0x4a2c53(0x214)](_0x31f359){const _0x2cecdb=_0x4a2c53;return this[_0x2cecdb(0x22c)][_0x2cecdb(0x202)](e['ISheetPrintManagerService'])['updateRenderConfig'](_0x31f359),this;}['print'](){const _0x67529f=_0x4a2c53;return this[_0x67529f(0x22c)][_0x67529f(0x202)](t[_0x67529f(0x210)])[_0x67529f(0x216)](e[_0x67529f(0x1f4)]['id']);}[_0x4a2c53(0x21b)](){const _0x2db01c=_0x4a2c53;return this['_injector']['get'](t[_0x2db01c(0x210)])[_0x2db01c(0x216)](e[_0x2db01c(0x20b)]['id']);}[_0x4a2c53(0x1fb)](){const _0x2b73c9=_0x4a2c53;return this[_0x2b73c9(0x22c)]['get'](t['ICommandService'])[_0x2b73c9(0x216)](e[_0x2b73c9(0x1ff)]['id']);}async[_0x4a2c53(0x229)](){const _0x2c3bef=_0x4a2c53;return(0x0,e['hasPrintFacadePermission'])(this['_injector'])?this[_0x2c3bef(0x22c)][_0x2c3bef(0x202)](t['ICommandService'])['executeCommand'](e[_0x2c3bef(0x20a)]['id']):!0x1;}};n[_0x4a2c53(0x209)][_0x4a2c53(0x206)](a);var o=class extends n[_0x4a2c53(0x1fc)]{[_0x4a2c53(0x219)](_0x45b7cb){const _0x340111=_0x4a2c53;return(0x0,e['hasPrintFacadePermission'])(this['_injector'])?this[_0x340111(0x22c)][_0x340111(0x202)](e['SheetPrintClientService'])['getRangeImage'](this[_0x340111(0x227)][_0x340111(0x1f1)](),this[_0x340111(0x213)][_0x340111(0x1fa)](),this['_range'],_0x45b7cb==null?void 0x0:_0x45b7cb[_0x340111(0x21a)]):!0x1;}};n[_0x4a2c53(0x1fc)][_0x4a2c53(0x206)](o);function _0x3771(_0x3a86f4,_0x1866e5){_0x3a86f4=_0x3a86f4-0x1f0;const _0x13dc15=_0x13dc();let _0x3771e8=_0x13dc15[_0x3a86f4];return _0x3771e8;}var s=class extends r[_0x4a2c53(0x223)]{get['BeforeSheetPrintOpen'](){const _0x38dece=_0x4a2c53;return _0x38dece(0x20c);}get[_0x4a2c53(0x22e)](){const _0x5844e4=_0x4a2c53;return _0x5844e4(0x22e);}get[_0x4a2c53(0x1f9)](){return'BeforeSheetPrintCanceled';}get[_0x4a2c53(0x1fe)](){const _0x4a1a21=_0x4a2c53;return _0x4a1a21(0x1fe);}get[_0x4a2c53(0x225)](){return'SheetPrintConfirmed';}get[_0x4a2c53(0x218)](){const _0x298e7e=_0x4a2c53;return _0x298e7e(0x218);}};r[_0x4a2c53(0x223)]['extend'](s);var c=class extends r[_0x4a2c53(0x205)]{get[_0x4a2c53(0x1f5)](){const _0x5988bd=_0x4a2c53;return e[_0x5988bd(0x1f5)];}get[_0x4a2c53(0x1f7)](){const _0x1a920c=_0x4a2c53;return i[_0x1a920c(0x1f7)];}get[_0x4a2c53(0x217)](){const _0xa08d80=_0x4a2c53;return t[_0xa08d80(0x1fd)];}get['PrintPaperMargin'](){const _0x381784=_0x4a2c53;return i[_0x381784(0x221)];}get[_0x4a2c53(0x22b)](){const _0x16389a=_0x4a2c53;return i[_0x16389a(0x22b)];}get[_0x4a2c53(0x22a)](){const _0x3f371a=_0x4a2c53;return i[_0x3f371a(0x22a)];}get[_0x4a2c53(0x21c)](){const _0x1a4d37=_0x4a2c53;return e[_0x1a4d37(0x21c)];}get['PrintHeaderFooter'](){const _0x47c397=_0x4a2c53;return e[_0x47c397(0x220)];}get[_0x4a2c53(0x222)](){const _0x37e069=_0x4a2c53;return e[_0x37e069(0x222)];}};r[_0x4a2c53(0x205)][_0x4a2c53(0x206)](c);var l=class extends r[_0x4a2c53(0x226)]{['_initialize'](_0x301c49){const _0x51e48d=_0x4a2c53;let _0x3901e1=_0x301c49[_0x51e48d(0x202)](t['ICommandService']);this['disposeWithMe'](this[_0x51e48d(0x1f8)](this[_0x51e48d(0x1f2)]['BeforeSheetPrintOpen'],()=>_0x3901e1[_0x51e48d(0x208)](_0x217587=>{const _0x378312=_0x51e48d;if(_0x217587['id']===e[_0x378312(0x20b)]['id']){let _0x92d69c=this[_0x378312(0x1f6)]();if(!_0x92d69c)return;let _0x44a9a0={'workbook':_0x92d69c,'worksheet':_0x92d69c[_0x378312(0x20d)]()};if(_0x44a9a0==null)return;if(this['fireEvent'](this[_0x378312(0x1f2)][_0x378312(0x20c)],_0x44a9a0),_0x44a9a0[_0x378312(0x204)])throw new t[(_0x378312(0x200))]();}}))),this['disposeWithMe'](this[_0x51e48d(0x1f8)](this[_0x51e48d(0x1f2)][_0x51e48d(0x22e)],()=>_0x3901e1[_0x51e48d(0x208)](_0x4044b4=>{const _0x280b70=_0x51e48d;if(_0x4044b4['id']===e[_0x280b70(0x1f4)]['id']){let _0x1416a5=_0x301c49[_0x280b70(0x202)](e[_0x280b70(0x207)]);if(!this['getActiveWorkbook']())return;let _0x3102e9={'layoutConfig':_0x1416a5[_0x280b70(0x22d)],'renderConfig':_0x1416a5[_0x280b70(0x20f)]};if(_0x3102e9==null)return;if(this[_0x280b70(0x201)](this[_0x280b70(0x1f2)][_0x280b70(0x22e)],_0x3102e9),_0x3102e9[_0x280b70(0x204)])throw new t['CanceledError']();}}))),this[_0x51e48d(0x1f3)](this['registerEventHandler'](this[_0x51e48d(0x1f2)][_0x51e48d(0x1f9)],()=>_0x3901e1[_0x51e48d(0x208)](_0x1270a8=>{const _0x59c7ff=_0x51e48d;if(_0x1270a8['id']===e[_0x59c7ff(0x1ff)]['id']){let _0x38a07c=_0x301c49[_0x59c7ff(0x202)](e[_0x59c7ff(0x207)]);if(!this['getActiveWorkbook']())return;let _0x3f4cdc={'layoutConfig':_0x38a07c[_0x59c7ff(0x22d)],'renderConfig':_0x38a07c[_0x59c7ff(0x20f)]};if(_0x3f4cdc==null)return;if(this[_0x59c7ff(0x201)](this['Event'][_0x59c7ff(0x1f9)],_0x3f4cdc),_0x3f4cdc[_0x59c7ff(0x204)])throw new t[(_0x59c7ff(0x200))]();}}))),this[_0x51e48d(0x1f3)](this['registerEventHandler'](this[_0x51e48d(0x1f2)][_0x51e48d(0x1fe)],()=>_0x3901e1[_0x51e48d(0x1f0)](_0x1c06b1=>{const _0x11c3c5=_0x51e48d;if(_0x1c06b1['id']===e[_0x11c3c5(0x20b)]['id']){let _0x2ec066=this[_0x11c3c5(0x1f6)]();if(!_0x2ec066)return;let _0x3c4c21={'workbook':_0x2ec066,'worksheet':_0x2ec066[_0x11c3c5(0x20d)]()};if(_0x3c4c21==null)return;this[_0x11c3c5(0x201)](this[_0x11c3c5(0x1f2)][_0x11c3c5(0x1fe)],_0x3c4c21);}}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x51e48d(0x1f2)][_0x51e48d(0x225)],()=>_0x3901e1['onCommandExecuted'](_0x2cc07e=>{const _0x18f179=_0x51e48d;if(_0x2cc07e['id']===e[_0x18f179(0x1f4)]['id']){let _0x30fba7=_0x301c49[_0x18f179(0x202)](e[_0x18f179(0x207)]);if(!this[_0x18f179(0x1f6)]())return;let _0x47d152={'layoutConfig':_0x30fba7[_0x18f179(0x22d)],'renderConfig':_0x30fba7['renderConfig']};if(_0x47d152==null)return;this[_0x18f179(0x201)](this['Event'][_0x18f179(0x225)],_0x47d152);}}))),this[_0x51e48d(0x1f3)](this[_0x51e48d(0x1f8)](this[_0x51e48d(0x1f2)][_0x51e48d(0x218)],()=>_0x3901e1['onCommandExecuted'](_0x26f9f1=>{const _0x1e4ba9=_0x51e48d;if(_0x26f9f1['id']===e[_0x1e4ba9(0x1ff)]['id']){let _0x46bdf7=_0x301c49[_0x1e4ba9(0x202)](e['ISheetPrintManagerService']);if(!this['getActiveWorkbook']())return;let _0x4423c0={'layoutConfig':_0x46bdf7[_0x1e4ba9(0x22d)],'renderConfig':_0x46bdf7[_0x1e4ba9(0x20f)]};if(_0x4423c0==null)return;this[_0x1e4ba9(0x201)](this[_0x1e4ba9(0x1f2)][_0x1e4ba9(0x218)],_0x4423c0);}})));}};r[_0x4a2c53(0x226)][_0x4a2c53(0x206)](l);
|