@univerjs-pro/sheets-print 0.6.3 → 0.6.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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/types/common/const.d.ts +40 -40
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-event.d.ts +44 -18
- package/lib/types/facade/f-range.d.ts +8 -5
- package/lib/types/facade/f-workbook.d.ts +63 -29
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xea0530=_0x43dc;(function(_0x50d38d,_0x339aa8){const _0x4e9929=_0x43dc,_0x1bf84c=_0x50d38d();while(!![]){try{const _0x5d5feb=parseInt(_0x4e9929(0x10f))/0x1+-parseInt(_0x4e9929(0x11c))/0x2+-parseInt(_0x4e9929(0x127))/0x3*(-parseInt(_0x4e9929(0x131))/0x4)+parseInt(_0x4e9929(0x11d))/0x5+-parseInt(_0x4e9929(0x112))/0x6+parseInt(_0x4e9929(0xff))/0x7*(parseInt(_0x4e9929(0x12d))/0x8)+parseInt(_0x4e9929(0x110))/0x9*(-parseInt(_0x4e9929(0x10d))/0xa);if(_0x5d5feb===_0x339aa8)break;else _0x1bf84c['push'](_0x1bf84c['shift']());}catch(_0x5e9925){_0x1bf84c['push'](_0x1bf84c['shift']());}}}(_0x38ef,0x393f1));function _0x43dc(_0x45b0a6,_0x4a5635){const _0x38efea=_0x38ef();return _0x43dc=function(_0x43dca6,_0x20ae6b){_0x43dca6=_0x43dca6-0xf5;let _0x1deabe=_0x38efea[_0x43dca6];return _0x1deabe;},_0x43dc(_0x45b0a6,_0x4a5635);}const e=require('@univerjs-pro/sheets-print'),a=require(_0xea0530(0x123)),d=require('@univerjs/sheets/facade'),g=require(_0xea0530(0x138)),h=require(_0xea0530(0xf5));class S extends d[_0xea0530(0x132)]{[_0xea0530(0xf8)](_0x9e6d1f){const _0x3710a6=_0xea0530;return this[_0x3710a6(0x111)][_0x3710a6(0x12c)](e[_0x3710a6(0x114)])[_0x3710a6(0x133)](_0x9e6d1f),this;}[_0xea0530(0x12a)](_0x3cdcee){const _0x191c50=_0xea0530;return this['_injector'][_0x191c50(0x12c)](e[_0x191c50(0x114)])[_0x191c50(0xf9)](_0x3cdcee),this;}[_0xea0530(0x125)](){const _0x308ebc=_0xea0530;return this['_injector'][_0x308ebc(0x12c)](a['ICommandService'])[_0x308ebc(0xfe)](e[_0x308ebc(0x106)]['id']);}[_0xea0530(0x101)](){const _0x2b65b6=_0xea0530;return this[_0x2b65b6(0x111)][_0x2b65b6(0x12c)](a[_0x2b65b6(0x126)])[_0x2b65b6(0xfe)](e[_0x2b65b6(0x122)]['id']);}[_0xea0530(0x104)](){const _0x4ad737=_0xea0530;return this[_0x4ad737(0x111)][_0x4ad737(0x12c)](a['ICommandService'])[_0x4ad737(0xfe)](e[_0x4ad737(0x12b)]['id']);}async[_0xea0530(0x120)](){const _0x1efe5b=_0xea0530;return e['hasPrintFacadePermission'](this[_0x1efe5b(0x111)])?this[_0x1efe5b(0x111)][_0x1efe5b(0x12c)](a['ICommandService'])[_0x1efe5b(0x135)](e[_0x1efe5b(0x10e)]['id']):!0x1;}}d[_0xea0530(0x132)][_0xea0530(0xfd)](S);class f extends d[_0xea0530(0x105)]{['getScreenshot'](){const _0x31b4f9=_0xea0530;return e[_0x31b4f9(0x118)](this[_0x31b4f9(0x111)])?this[_0x31b4f9(0x111)][_0x31b4f9(0x12c)](e['SheetPrintClientService'])[_0x31b4f9(0x108)](this[_0x31b4f9(0x128)]['getUnitId'](),this[_0x31b4f9(0x12f)][_0x31b4f9(0x124)](),this[_0x31b4f9(0x136)]):!0x1;}}d[_0xea0530(0x105)][_0xea0530(0xfd)](f);function _0x38ef(){const _0x5cf539=['closePrintDialog','FRange','ConfirmSheetPrintOperation','layoutConfig','getRangeImage','PrintAlign','SheetPrintCanceled','getActiveSheet','BeforeSheetPrintConfirm','4710UsUckc','SheetScreenShotOperation','325122tpBUXV','2862UelcoZ','_injector','1001070DxYYmu','FUniver','ISheetPrintManagerService','registerEventHandler','PrintArea','PrintPaperSize','hasPrintFacadePermission','PrintFreeze','renderConfig','PrintDirection','910940rKUInO','858465ODbLAM','_initialize','BeforeSheetPrintCanceled','saveScreenshotToClipboard','PrintHeaderFooter','SheetPrintOpenOperation','@univerjs/core','getSheetId','print','ICommandService','3TxPLpC','_workbook','CanceledError','updatePrintRenderConfig','CancelSheetPrintOperation','get','8TJOAmJ','Event','_worksheet','cancel','1849648arDyRi','FWorkbook','updateLayoutConfig','SheetPrintConfirmed','executeCommand','_range','FEventName','@univerjs/core/facade','PrintScale','@univerjs-pro/print','getActiveUniverSheet','SheetPrintOpen','updatePrintConfig','updateRenderConfig','PrintPaperMargin','FEnum','onCommandExecuted','extend','syncExecuteCommand','331429OvHYxy','fireEvent','openPrintDialog','BeforeSheetPrintOpen','PrintHeaderFooterSymbol'];_0x38ef=function(){return _0x5cf539;};return _0x38ef();}class P{get[_0xea0530(0x102)](){const _0x7981f4=_0xea0530;return _0x7981f4(0x102);}get['BeforeSheetPrintConfirm'](){const _0x1026e3=_0xea0530;return _0x1026e3(0x10c);}get[_0xea0530(0x11f)](){return'BeforeSheetPrintCanceled';}get[_0xea0530(0xf7)](){return'SheetPrintOpen';}get[_0xea0530(0x134)](){const _0x44eedc=_0xea0530;return _0x44eedc(0x134);}get[_0xea0530(0x10a)](){const _0x54f3d3=_0xea0530;return _0x54f3d3(0x10a);}}g[_0xea0530(0x137)][_0xea0530(0xfd)](P);class u{get[_0xea0530(0x116)](){const _0xdc02da=_0xea0530;return e[_0xdc02da(0x116)];}get['PrintAlign'](){const _0x5ea49c=_0xea0530;return h[_0x5ea49c(0x109)];}get[_0xea0530(0x117)](){const _0xb365c3=_0xea0530;return h[_0xb365c3(0x117)];}get[_0xea0530(0xfa)](){return h['PrintPaperMargin'];}get['PrintScale'](){const _0x1e33ff=_0xea0530;return h[_0x1e33ff(0x139)];}get[_0xea0530(0x11b)](){const _0x3463e9=_0xea0530;return h[_0x3463e9(0x11b)];}get[_0xea0530(0x119)](){const _0x14cafa=_0xea0530;return e[_0x14cafa(0x119)];}get['PrintHeaderFooter'](){const _0x1af6db=_0xea0530;return e[_0x1af6db(0x121)];}get[_0xea0530(0x103)](){const _0x16dcdc=_0xea0530;return e[_0x16dcdc(0x103)];}}g[_0xea0530(0xfb)][_0xea0530(0xfd)](u);class l extends g[_0xea0530(0x113)]{[_0xea0530(0x11e)](_0x579062){const _0x5b4a60=_0xea0530,_0x1dd50a=_0x579062['get'](a[_0x5b4a60(0x126)]);this[_0x5b4a60(0x115)](this[_0x5b4a60(0x12e)][_0x5b4a60(0x102)],()=>_0x1dd50a['beforeCommandExecuted'](_0x242afe=>{const _0x5f03e4=_0x5b4a60;if(_0x242afe['id']===e[_0x5f03e4(0x122)]['id']){const _0x51ed19=this['getActiveUniverSheet']();if(!_0x51ed19)return;const _0xd9f824={'workbook':_0x51ed19,'worksheet':_0x51ed19['getActiveSheet']()};if(_0xd9f824==null)return;if(this[_0x5f03e4(0x100)](this[_0x5f03e4(0x12e)][_0x5f03e4(0x102)],_0xd9f824),_0xd9f824[_0x5f03e4(0x130)])throw new a[(_0x5f03e4(0x129))]();}})),this[_0x5b4a60(0x115)](this[_0x5b4a60(0x12e)]['BeforeSheetPrintConfirm'],()=>_0x1dd50a['beforeCommandExecuted'](_0x30b67d=>{const _0x129ce8=_0x5b4a60;if(_0x30b67d['id']===e[_0x129ce8(0x106)]['id']){const _0x2c2af9=_0x579062[_0x129ce8(0x12c)](e[_0x129ce8(0x114)]);if(!this[_0x129ce8(0xf6)]())return;const _0x103f87={'layoutConfig':_0x2c2af9['layoutConfig'],'renderConfig':_0x2c2af9[_0x129ce8(0x11a)]};if(_0x103f87==null)return;if(this[_0x129ce8(0x100)](this['Event'][_0x129ce8(0x10c)],_0x103f87),_0x103f87[_0x129ce8(0x130)])throw new a[(_0x129ce8(0x129))]();}})),this[_0x5b4a60(0x115)](this['Event']['BeforeSheetPrintCanceled'],()=>_0x1dd50a['beforeCommandExecuted'](_0x1bee45=>{const _0x63966f=_0x5b4a60;if(_0x1bee45['id']===e['CancelSheetPrintOperation']['id']){const _0x1bca55=_0x579062[_0x63966f(0x12c)](e[_0x63966f(0x114)]);if(!this[_0x63966f(0xf6)]())return;const _0x42f7bf={'layoutConfig':_0x1bca55[_0x63966f(0x107)],'renderConfig':_0x1bca55['renderConfig']};if(_0x42f7bf==null)return;if(this[_0x63966f(0x100)](this['Event'][_0x63966f(0x11f)],_0x42f7bf),_0x42f7bf['cancel'])throw new a[(_0x63966f(0x129))]();}})),this['registerEventHandler'](this[_0x5b4a60(0x12e)][_0x5b4a60(0xf7)],()=>_0x1dd50a['onCommandExecuted'](_0x2d0cd4=>{const _0x1e12a6=_0x5b4a60;if(_0x2d0cd4['id']===e['SheetPrintOpenOperation']['id']){const _0x206e9d=this[_0x1e12a6(0xf6)]();if(!_0x206e9d)return;const _0x29b19f={'workbook':_0x206e9d,'worksheet':_0x206e9d[_0x1e12a6(0x10b)]()};if(_0x29b19f==null)return;this[_0x1e12a6(0x100)](this[_0x1e12a6(0x12e)][_0x1e12a6(0xf7)],_0x29b19f);}})),this[_0x5b4a60(0x115)](this[_0x5b4a60(0x12e)][_0x5b4a60(0x134)],()=>_0x1dd50a[_0x5b4a60(0xfc)](_0x188bf0=>{const _0x15940f=_0x5b4a60;if(_0x188bf0['id']===e[_0x15940f(0x106)]['id']){const _0x55a8c6=_0x579062[_0x15940f(0x12c)](e['ISheetPrintManagerService']);if(!this[_0x15940f(0xf6)]())return;const _0x4d4ce9={'layoutConfig':_0x55a8c6['layoutConfig'],'renderConfig':_0x55a8c6[_0x15940f(0x11a)]};if(_0x4d4ce9==null)return;this[_0x15940f(0x100)](this[_0x15940f(0x12e)]['SheetPrintConfirmed'],_0x4d4ce9);}})),this[_0x5b4a60(0x115)](this['Event'][_0x5b4a60(0x10a)],()=>_0x1dd50a[_0x5b4a60(0xfc)](_0x134bff=>{const _0x17fc78=_0x5b4a60;if(_0x134bff['id']===e[_0x17fc78(0x12b)]['id']){const _0x5b1e2c=_0x579062[_0x17fc78(0x12c)](e[_0x17fc78(0x114)]);if(!this['getActiveUniverSheet']())return;const _0x4fe502={'layoutConfig':_0x5b1e2c[_0x17fc78(0x107)],'renderConfig':_0x5b1e2c[_0x17fc78(0x11a)]};if(_0x4fe502==null)return;this[_0x17fc78(0x100)](this[_0x17fc78(0x12e)][_0x17fc78(0x10a)],_0x4fe502);}}));}}g[_0xea0530(0x113)][_0xea0530(0xfd)](l);
|