@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/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 _0x97a73a=_0x3de9;(function(_0x48b85c,_0x2ad155){const _0x19befd=_0x3de9,_0x20d507=_0x48b85c();while(!![]){try{const _0x880527=parseInt(_0x19befd(0x117))/0x1+-parseInt(_0x19befd(0x13b))/0x2*(-parseInt(_0x19befd(0x125))/0x3)+parseInt(_0x19befd(0x11b))/0x4+parseInt(_0x19befd(0x101))/0x5+-parseInt(_0x19befd(0x106))/0x6+-parseInt(_0x19befd(0x11f))/0x7+-parseInt(_0x19befd(0x12c))/0x8;if(_0x880527===_0x2ad155)break;else _0x20d507['push'](_0x20d507['shift']());}catch(_0x5e96ef){_0x20d507['push'](_0x20d507['shift']());}}}(_0x2517,0x6ee99));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['FWorkbook']{[_0x97a73a(0x129)](_0x4e9907){const _0x2c934a=_0x97a73a;return this[_0x2c934a(0xff)][_0x2c934a(0x133)](e[_0x2c934a(0x13a)])[_0x2c934a(0x103)](_0x4e9907),this;}[_0x97a73a(0x11c)](_0xef0186){const _0xccabcb=_0x97a73a;return this[_0xccabcb(0xff)][_0xccabcb(0x133)](e[_0xccabcb(0x13a)])[_0xccabcb(0x110)](_0xef0186),this;}[_0x97a73a(0x11d)](){const _0x41a849=_0x97a73a;return this[_0x41a849(0xff)][_0x41a849(0x133)](t[_0x41a849(0x114)])[_0x41a849(0x12e)](e['ConfirmSheetPrintOperation']['id']);}[_0x97a73a(0x107)](){const _0x489e96=_0x97a73a;return this[_0x489e96(0xff)][_0x489e96(0x133)](t['ICommandService'])['syncExecuteCommand'](e[_0x489e96(0x119)]['id']);}['closePrintDialog'](){const _0x3d16c8=_0x97a73a;return this['_injector'][_0x3d16c8(0x133)](t['ICommandService'])[_0x3d16c8(0x12e)](e[_0x3d16c8(0x120)]['id']);}async['saveScreenshotToClipboard'](){const _0xb9afa7=_0x97a73a;return(0x0,e[_0xb9afa7(0x100)])(this[_0xb9afa7(0xff)])?this['_injector'][_0xb9afa7(0x133)](t['ICommandService'])[_0xb9afa7(0x11a)](e['SheetScreenShotOperation']['id']):!0x1;}};n[_0x97a73a(0x12b)][_0x97a73a(0x12f)](a);var o=class extends n[_0x97a73a(0x122)]{[_0x97a73a(0x115)](_0x401819){const _0xed8f78=_0x97a73a;return(0x0,e[_0xed8f78(0x100)])(this[_0xed8f78(0xff)])?this['_injector'][_0xed8f78(0x133)](e['SheetPrintClientService'])[_0xed8f78(0x12a)](this['_workbook'][_0xed8f78(0x126)](),this['_worksheet'][_0xed8f78(0x10f)](),this[_0xed8f78(0x10c)],_0x401819==null?void 0x0:_0x401819['includeHeaders']):!0x1;}};n[_0x97a73a(0x122)][_0x97a73a(0x12f)](o);function _0x3de9(_0xbb8c31,_0x4dc873){_0xbb8c31=_0xbb8c31-0xfe;const _0x251731=_0x2517();let _0x3de98f=_0x251731[_0xbb8c31];return _0x3de98f;}function _0x2517(){const _0x5c9fd7=['PrintFreeze','updateLayoutConfig','getActiveWorkbook','beforeCommandExecuted','1459836MKgbqO','openPrintDialog','layoutConfig','Event','FEventName','renderConfig','_range','BeforeSheetPrintConfirm','BeforeSheetPrintCanceled','getSheetId','updateRenderConfig','PrintDirection','PrintHeaderFooterSymbol','PrintHeaderFooter','ICommandService','getScreenshot','fireEvent','499770JESfhu','PrintPaperMargin','SheetPrintOpenOperation','executeCommand','2419004tyYRBO','updatePrintRenderConfig','print','SheetPrintOpen','1764329LNkpXw','CancelSheetPrintOperation','PrintPaperSize','FRange','ConfirmSheetPrintOperation','PrintAlign','613077fIIqzv','getUnitId','PrintScale','PrintArea','updatePrintConfig','getRangeImage','FWorkbook','7128584gbNdSs','BeforeSheetPrintOpen','syncExecuteCommand','extend','getActiveSheet','FUniver','SheetPrintCanceled','get','cancel','registerEventHandler','SheetPrintConfirmed','onCommandExecuted','PaperType','disposeWithMe','ISheetPrintManagerService','2DCFYnT','CanceledError','_injector','hasPrintFacadePermission','2659215bIUppY'];_0x2517=function(){return _0x5c9fd7;};return _0x2517();}var s=class extends r['FEventName']{get[_0x97a73a(0x12d)](){const _0x5158f1=_0x97a73a;return _0x5158f1(0x12d);}get['BeforeSheetPrintConfirm'](){const _0xada189=_0x97a73a;return _0xada189(0x10d);}get['BeforeSheetPrintCanceled'](){return'BeforeSheetPrintCanceled';}get[_0x97a73a(0x11e)](){const _0x39649b=_0x97a73a;return _0x39649b(0x11e);}get[_0x97a73a(0x136)](){const _0x3afe3e=_0x97a73a;return _0x3afe3e(0x136);}get['SheetPrintCanceled'](){return'SheetPrintCanceled';}};r[_0x97a73a(0x10a)][_0x97a73a(0x12f)](s);var c=class extends r['FEnum']{get[_0x97a73a(0x128)](){const _0xfe6b30=_0x97a73a;return e[_0xfe6b30(0x128)];}get['PrintAlign'](){const _0x17a8e=_0x97a73a;return i[_0x17a8e(0x124)];}get[_0x97a73a(0x121)](){const _0x233cec=_0x97a73a;return t[_0x233cec(0x138)];}get[_0x97a73a(0x118)](){const _0x397438=_0x97a73a;return i[_0x397438(0x118)];}get[_0x97a73a(0x127)](){const _0x5ba342=_0x97a73a;return i[_0x5ba342(0x127)];}get['PrintDirection'](){const _0x2f26df=_0x97a73a;return i[_0x2f26df(0x111)];}get['PrintFreeze'](){const _0x31749d=_0x97a73a;return e[_0x31749d(0x102)];}get[_0x97a73a(0x113)](){return e['PrintHeaderFooter'];}get[_0x97a73a(0x112)](){const _0x4fcd14=_0x97a73a;return e[_0x4fcd14(0x112)];}};r['FEnum'][_0x97a73a(0x12f)](c);var l=class extends r['FUniver']{['_initialize'](_0x392e44){const _0x3e007c=_0x97a73a;let _0x52cbea=_0x392e44['get'](t[_0x3e007c(0x114)]);this[_0x3e007c(0x139)](this[_0x3e007c(0x135)](this[_0x3e007c(0x109)][_0x3e007c(0x12d)],()=>_0x52cbea['beforeCommandExecuted'](_0xf342a6=>{const _0x1b8ec3=_0x3e007c;if(_0xf342a6['id']===e['SheetPrintOpenOperation']['id']){let _0x47d1ff=this['getActiveWorkbook']();if(!_0x47d1ff)return;let _0x55269b={'workbook':_0x47d1ff,'worksheet':_0x47d1ff[_0x1b8ec3(0x130)]()};if(_0x55269b==null)return;if(this[_0x1b8ec3(0x116)](this[_0x1b8ec3(0x109)][_0x1b8ec3(0x12d)],_0x55269b),_0x55269b[_0x1b8ec3(0x134)])throw new t[(_0x1b8ec3(0xfe))]();}}))),this[_0x3e007c(0x139)](this['registerEventHandler'](this[_0x3e007c(0x109)][_0x3e007c(0x10d)],()=>_0x52cbea['beforeCommandExecuted'](_0x2ec10b=>{const _0x357b15=_0x3e007c;if(_0x2ec10b['id']===e[_0x357b15(0x123)]['id']){let _0x4a3d51=_0x392e44[_0x357b15(0x133)](e[_0x357b15(0x13a)]);if(!this[_0x357b15(0x104)]())return;let _0x28ae3c={'layoutConfig':_0x4a3d51['layoutConfig'],'renderConfig':_0x4a3d51[_0x357b15(0x10b)]};if(_0x28ae3c==null)return;if(this['fireEvent'](this[_0x357b15(0x109)]['BeforeSheetPrintConfirm'],_0x28ae3c),_0x28ae3c[_0x357b15(0x134)])throw new t[(_0x357b15(0xfe))]();}}))),this[_0x3e007c(0x139)](this[_0x3e007c(0x135)](this[_0x3e007c(0x109)]['BeforeSheetPrintCanceled'],()=>_0x52cbea[_0x3e007c(0x105)](_0xdd3873=>{const _0x46c558=_0x3e007c;if(_0xdd3873['id']===e[_0x46c558(0x120)]['id']){let _0x4133d7=_0x392e44[_0x46c558(0x133)](e[_0x46c558(0x13a)]);if(!this['getActiveWorkbook']())return;let _0x24d00d={'layoutConfig':_0x4133d7['layoutConfig'],'renderConfig':_0x4133d7['renderConfig']};if(_0x24d00d==null)return;if(this[_0x46c558(0x116)](this[_0x46c558(0x109)][_0x46c558(0x10e)],_0x24d00d),_0x24d00d[_0x46c558(0x134)])throw new t[(_0x46c558(0xfe))]();}}))),this[_0x3e007c(0x139)](this[_0x3e007c(0x135)](this[_0x3e007c(0x109)][_0x3e007c(0x11e)],()=>_0x52cbea[_0x3e007c(0x137)](_0x3db047=>{const _0x46eb03=_0x3e007c;if(_0x3db047['id']===e['SheetPrintOpenOperation']['id']){let _0x3277fd=this[_0x46eb03(0x104)]();if(!_0x3277fd)return;let _0x25a664={'workbook':_0x3277fd,'worksheet':_0x3277fd[_0x46eb03(0x130)]()};if(_0x25a664==null)return;this['fireEvent'](this['Event'][_0x46eb03(0x11e)],_0x25a664);}}))),this[_0x3e007c(0x139)](this[_0x3e007c(0x135)](this[_0x3e007c(0x109)][_0x3e007c(0x136)],()=>_0x52cbea['onCommandExecuted'](_0x39c50f=>{const _0x435a8c=_0x3e007c;if(_0x39c50f['id']===e['ConfirmSheetPrintOperation']['id']){let _0x586bc6=_0x392e44['get'](e[_0x435a8c(0x13a)]);if(!this[_0x435a8c(0x104)]())return;let _0x44d485={'layoutConfig':_0x586bc6['layoutConfig'],'renderConfig':_0x586bc6['renderConfig']};if(_0x44d485==null)return;this[_0x435a8c(0x116)](this[_0x435a8c(0x109)][_0x435a8c(0x136)],_0x44d485);}}))),this[_0x3e007c(0x139)](this[_0x3e007c(0x135)](this['Event'][_0x3e007c(0x132)],()=>_0x52cbea[_0x3e007c(0x137)](_0x3b525b=>{const _0x4796ee=_0x3e007c;if(_0x3b525b['id']===e[_0x4796ee(0x120)]['id']){let _0x55e58e=_0x392e44[_0x4796ee(0x133)](e['ISheetPrintManagerService']);if(!this[_0x4796ee(0x104)]())return;let _0x4e9704={'layoutConfig':_0x55e58e[_0x4796ee(0x108)],'renderConfig':_0x55e58e['renderConfig']};if(_0x4e9704==null)return;this[_0x4796ee(0x116)](this[_0x4796ee(0x109)][_0x4796ee(0x132)],_0x4e9704);}})));}};r[_0x97a73a(0x131)][_0x97a73a(0x12f)](l);
|