@univerjs-pro/sheets-print 1.3.1 → 1.5.0
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 +16 -7
- 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.css +5 -4
- 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/controllers/components.controller.d.ts +1 -1
- package/lib/types/controllers/menu.d.ts +1 -1
- package/lib/types/facade/f-range.d.ts +1 -1
- package/lib/types/facade/f-workbook.d.ts +1 -1
- package/lib/types/services/print-grid.service.d.ts +1 -1
- package/lib/types/services/sheet-print-dialog.service.d.ts +4 -1
- package/lib/types/services/sheet-print-manager.service.d.ts +1 -1
- package/lib/types/services/sheet-print.service.d.ts +2 -2
- package/lib/types/services/util.d.ts +5 -5
- package/lib/types/utils/util.d.ts +5 -3
- package/lib/types/views/extensions/print-grid.extension.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 +19 -19
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xb8f72c=_0x1234;function _0x3ba1(){const _0xa68644=['Event','closePrintDialog','SheetPrintConfirmed','4417280icGuHO','saveScreenshotToClipboard','_workbook','BeforeSheetPrintConfirm','extend','syncExecuteCommand','openPrintDialog','4LIERKC','beforeCommandExecuted','722lcFpny','updateLayoutConfig','PrintScale','BeforeSheetPrintOpen','PrintAlign','66wDuOGt','_injector','PrintFreeze','executeCommand','getRangeImage','getSheetId','2027649odreGD','fireEvent','PrintPaperSize','93890qMehnN','getScreenshot','SheetPrintOpen','registerEventHandler','get','SheetPrintCanceled','renderConfig','16522cuBbPZ','45BzqQfw','layoutConfig','getUnitId','cancel','210815eVabAO','getActiveWorkbook','BeforeSheetPrintCanceled','updateRenderConfig','_initialize','_range','print','PrintArea','onCommandExecuted','246088AwMOGR','PrintPaperMargin','636MXlmlA','2365KmftgS','includeHeaders','PrintDirection','_worksheet','disposeWithMe'];_0x3ba1=function(){return _0xa68644;};return _0x3ba1();}(function(_0x59147b,_0x3b8551){const _0x5034ad=_0x1234,_0x1e0e65=_0x59147b();while(!![]){try{const _0x3433e9=parseInt(_0x5034ad(0x95))/0x1*(parseInt(_0x5034ad(0x6f))/0x2)+parseInt(_0x5034ad(0x7a))/0x3*(-parseInt(_0x5034ad(0x6d))/0x4)+-parseInt(_0x5034ad(0x89))/0x5*(parseInt(_0x5034ad(0x74))/0x6)+parseInt(_0x5034ad(0x9d))/0x7+parseInt(_0x5034ad(0x92))/0x8+parseInt(_0x5034ad(0x85))/0x9*(parseInt(_0x5034ad(0x7d))/0xa)+parseInt(_0x5034ad(0x84))/0xb*(parseInt(_0x5034ad(0x94))/0xc);if(_0x3433e9===_0x3b8551)break;else _0x1e0e65['push'](_0x1e0e65['shift']());}catch(_0x51878a){_0x1e0e65['push'](_0x1e0e65['shift']());}}}(_0x3ba1,0x7aaa9));import{CancelSheetPrintOperation as _0x30ef68,ConfirmSheetPrintOperation as _0xc22c6f,ISheetPrintManagerService as _0x16a92a,PrintArea as _0x377f6c,PrintFreeze as _0x2d332b,PrintHeaderFooter as _0xcbca57,PrintHeaderFooterSymbol as _0x5e341f,SheetPrintClientService as _0x2d8089,SheetPrintOpenOperation as _0x297a47,SheetScreenShotOperation as _0x5683e7,hasPrintFacadePermission as _0x29654e}from'@univerjs-pro/sheets-print';import{CanceledError as _0x249c00,ICommandService as _0x157a9b,PaperType as _0x5d20c6}from'@univerjs/core';import{FRange as _0x2624bd,FWorkbook as _0x5cbd17}from'@univerjs/sheets/facade';import{FEnum as _0x53f108,FEventName as _0x4ba2e3,FUniver as _0x888b6a}from'@univerjs/core/facade';import{PrintAlign as _0xeb66a3,PrintDirection as _0x179085,PrintPaperMargin as _0x59fae0,PrintScale as _0x20e0ef}from'@univerjs-pro/print';var C=class extends _0x5cbd17{['updatePrintConfig'](_0x3a63b7){const _0x1658a6=_0x1234;return this['_injector'][_0x1658a6(0x81)](_0x16a92a)[_0x1658a6(0x70)](_0x3a63b7),this;}['updatePrintRenderConfig'](_0x50c5c0){const _0x3ad50a=_0x1234;return this[_0x3ad50a(0x75)]['get'](_0x16a92a)[_0x3ad50a(0x8c)](_0x50c5c0),this;}[_0xb8f72c(0x8f)](){const _0x5713b8=_0xb8f72c;return this[_0x5713b8(0x75)][_0x5713b8(0x81)](_0x157a9b)['syncExecuteCommand'](_0xc22c6f['id']);}[_0xb8f72c(0x6c)](){const _0x319535=_0xb8f72c;return this[_0x319535(0x75)][_0x319535(0x81)](_0x157a9b)[_0x319535(0x6b)](_0x297a47['id']);}[_0xb8f72c(0x9b)](){const _0x2a7fdd=_0xb8f72c;return this['_injector'][_0x2a7fdd(0x81)](_0x157a9b)[_0x2a7fdd(0x6b)](_0x30ef68['id']);}async[_0xb8f72c(0x9e)](){const _0x30d19a=_0xb8f72c;return _0x29654e(this['_injector'])?this['_injector']['get'](_0x157a9b)[_0x30d19a(0x77)](_0x5683e7['id']):!0x1;}};_0x5cbd17[_0xb8f72c(0x6a)](C);var w=class extends _0x2624bd{[_0xb8f72c(0x7e)](_0x451330){const _0x63b554=_0xb8f72c;return _0x29654e(this[_0x63b554(0x75)])?this[_0x63b554(0x75)][_0x63b554(0x81)](_0x2d8089)[_0x63b554(0x78)](this[_0x63b554(0x9f)][_0x63b554(0x87)](),this[_0x63b554(0x98)][_0x63b554(0x79)](),this[_0x63b554(0x8e)],_0x451330==null?void 0x0:_0x451330[_0x63b554(0x96)]):!0x1;}};function _0x1234(_0x1aae67,_0x3c8aad){_0x1aae67=_0x1aae67-0x6a;const _0x3ba15f=_0x3ba1();let _0x123487=_0x3ba15f[_0x1aae67];return _0x123487;}_0x2624bd['extend'](w);var T=class extends _0x4ba2e3{get[_0xb8f72c(0x72)](){const _0x2fb19c=_0xb8f72c;return _0x2fb19c(0x72);}get[_0xb8f72c(0xa0)](){const _0x44c5c8=_0xb8f72c;return _0x44c5c8(0xa0);}get[_0xb8f72c(0x8b)](){const _0x5ec4dc=_0xb8f72c;return _0x5ec4dc(0x8b);}get[_0xb8f72c(0x7f)](){const _0x213e79=_0xb8f72c;return _0x213e79(0x7f);}get[_0xb8f72c(0x9c)](){const _0x28480c=_0xb8f72c;return _0x28480c(0x9c);}get[_0xb8f72c(0x82)](){const _0x2d3938=_0xb8f72c;return _0x2d3938(0x82);}};_0x4ba2e3[_0xb8f72c(0x6a)](T);var E=class extends _0x53f108{get[_0xb8f72c(0x90)](){return _0x377f6c;}get[_0xb8f72c(0x73)](){return _0xeb66a3;}get[_0xb8f72c(0x7c)](){return _0x5d20c6;}get[_0xb8f72c(0x93)](){return _0x59fae0;}get[_0xb8f72c(0x71)](){return _0x20e0ef;}get[_0xb8f72c(0x97)](){return _0x179085;}get[_0xb8f72c(0x76)](){return _0x2d332b;}get['PrintHeaderFooter'](){return _0xcbca57;}get['PrintHeaderFooterSymbol'](){return _0x5e341f;}};_0x53f108[_0xb8f72c(0x6a)](E);var D=class extends _0x888b6a{[_0xb8f72c(0x8d)](_0x2b6244){const _0x2286bd=_0xb8f72c;let _0x3b6485=_0x2b6244[_0x2286bd(0x81)](_0x157a9b);this[_0x2286bd(0x99)](this[_0x2286bd(0x80)](this[_0x2286bd(0x9a)][_0x2286bd(0x72)],()=>_0x3b6485['beforeCommandExecuted'](_0x5af0b2=>{const _0x49fbde=_0x2286bd;if(_0x5af0b2['id']===_0x297a47['id']){let _0x51f27f=this[_0x49fbde(0x8a)]();if(!_0x51f27f)return;let _0x376215={'workbook':_0x51f27f,'worksheet':_0x51f27f['getActiveSheet']()};if(_0x376215==null)return;if(this[_0x49fbde(0x7b)](this['Event'][_0x49fbde(0x72)],_0x376215),_0x376215[_0x49fbde(0x88)])throw new _0x249c00();}}))),this[_0x2286bd(0x99)](this[_0x2286bd(0x80)](this[_0x2286bd(0x9a)]['BeforeSheetPrintConfirm'],()=>_0x3b6485['beforeCommandExecuted'](_0x569c07=>{const _0x256121=_0x2286bd;if(_0x569c07['id']===_0xc22c6f['id']){let _0x104d97=_0x2b6244[_0x256121(0x81)](_0x16a92a);if(!this[_0x256121(0x8a)]())return;let _0x3319ad={'layoutConfig':_0x104d97[_0x256121(0x86)],'renderConfig':_0x104d97['renderConfig']};if(_0x3319ad==null)return;if(this[_0x256121(0x7b)](this['Event']['BeforeSheetPrintConfirm'],_0x3319ad),_0x3319ad[_0x256121(0x88)])throw new _0x249c00();}}))),this[_0x2286bd(0x99)](this[_0x2286bd(0x80)](this[_0x2286bd(0x9a)][_0x2286bd(0x8b)],()=>_0x3b6485[_0x2286bd(0x6e)](_0x40364d=>{const _0x278827=_0x2286bd;if(_0x40364d['id']===_0x30ef68['id']){let _0xa4d6fe=_0x2b6244[_0x278827(0x81)](_0x16a92a);if(!this['getActiveWorkbook']())return;let _0x510482={'layoutConfig':_0xa4d6fe[_0x278827(0x86)],'renderConfig':_0xa4d6fe['renderConfig']};if(_0x510482==null)return;if(this[_0x278827(0x7b)](this[_0x278827(0x9a)]['BeforeSheetPrintCanceled'],_0x510482),_0x510482[_0x278827(0x88)])throw new _0x249c00();}}))),this['disposeWithMe'](this[_0x2286bd(0x80)](this[_0x2286bd(0x9a)]['SheetPrintOpen'],()=>_0x3b6485[_0x2286bd(0x91)](_0x12e203=>{const _0x2d0612=_0x2286bd;if(_0x12e203['id']===_0x297a47['id']){let _0x519ffb=this['getActiveWorkbook']();if(!_0x519ffb)return;let _0xe6a143={'workbook':_0x519ffb,'worksheet':_0x519ffb['getActiveSheet']()};if(_0xe6a143==null)return;this[_0x2d0612(0x7b)](this[_0x2d0612(0x9a)][_0x2d0612(0x7f)],_0xe6a143);}}))),this[_0x2286bd(0x99)](this[_0x2286bd(0x80)](this[_0x2286bd(0x9a)][_0x2286bd(0x9c)],()=>_0x3b6485[_0x2286bd(0x91)](_0x3eabcd=>{const _0x85f078=_0x2286bd;if(_0x3eabcd['id']===_0xc22c6f['id']){let _0x30f46b=_0x2b6244[_0x85f078(0x81)](_0x16a92a);if(!this[_0x85f078(0x8a)]())return;let _0x13db45={'layoutConfig':_0x30f46b[_0x85f078(0x86)],'renderConfig':_0x30f46b[_0x85f078(0x83)]};if(_0x13db45==null)return;this[_0x85f078(0x7b)](this[_0x85f078(0x9a)][_0x85f078(0x9c)],_0x13db45);}}))),this[_0x2286bd(0x99)](this[_0x2286bd(0x80)](this['Event'][_0x2286bd(0x82)],()=>_0x3b6485[_0x2286bd(0x91)](_0x103f02=>{const _0x2fecd3=_0x2286bd;if(_0x103f02['id']===_0x30ef68['id']){let _0x32951c=_0x2b6244['get'](_0x16a92a);if(!this[_0x2fecd3(0x8a)]())return;let _0x52c4ea={'layoutConfig':_0x32951c[_0x2fecd3(0x86)],'renderConfig':_0x32951c[_0x2fecd3(0x83)]};if(_0x52c4ea==null)return;this[_0x2fecd3(0x7b)](this[_0x2fecd3(0x9a)]['SheetPrintCanceled'],_0x52c4ea);}})));}};_0x888b6a[_0xb8f72c(0x6a)](D);export{};
|
package/lib/index.css
CHANGED
|
@@ -384,15 +384,16 @@
|
|
|
384
384
|
padding-bottom: .5rem;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
+
.univer-py-4 {
|
|
388
|
+
padding-top: 1rem;
|
|
389
|
+
padding-bottom: 1rem;
|
|
390
|
+
}
|
|
391
|
+
|
|
387
392
|
.univer-py-7 {
|
|
388
393
|
padding-top: 1.75rem;
|
|
389
394
|
padding-bottom: 1.75rem;
|
|
390
395
|
}
|
|
391
396
|
|
|
392
|
-
.univer-pb-4 {
|
|
393
|
-
padding-bottom: 1rem;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
397
|
.univer-text-center {
|
|
397
398
|
text-align: center;
|
|
398
399
|
}
|