@univerjs-pro/sheets-print 1.0.0-beta.1 → 1.0.0-beta.2
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/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 +10 -0
- 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/services/sheet-print-dialog.service.d.ts +6 -0
- package/lib/types/services/sheet-print.service.d.ts +5 -2
- 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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x141f5b=_0x46ef;function _0x46ef(_0x4ee24c,_0x4cf4c6){_0x4ee24c=_0x4ee24c-0x185;const _0x372583=_0x3725();let _0x46efa6=_0x372583[_0x4ee24c];return _0x46efa6;}(function(_0x4378df,_0x1e4b17){const _0xa71c87=_0x46ef,_0x499556=_0x4378df();while(!![]){try{const _0x10b664=-parseInt(_0xa71c87(0x190))/0x1+-parseInt(_0xa71c87(0x18e))/0x2*(parseInt(_0xa71c87(0x1b7))/0x3)+parseInt(_0xa71c87(0x1a1))/0x4+parseInt(_0xa71c87(0x1af))/0x5*(parseInt(_0xa71c87(0x1a2))/0x6)+parseInt(_0xa71c87(0x1c0))/0x7*(-parseInt(_0xa71c87(0x189))/0x8)+parseInt(_0xa71c87(0x18b))/0x9+parseInt(_0xa71c87(0x185))/0xa*(parseInt(_0xa71c87(0x192))/0xb);if(_0x10b664===_0x1e4b17)break;else _0x499556['push'](_0x499556['shift']());}catch(_0x1832a5){_0x499556['push'](_0x499556['shift']());}}}(_0x3725,0xaba25));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[_0x141f5b(0x188)]{[_0x141f5b(0x1c6)](_0x53999c){const _0xe7acd9=_0x141f5b;return this[_0xe7acd9(0x19e)]['get'](e[_0xe7acd9(0x18c)])['updateLayoutConfig'](_0x53999c),this;}[_0x141f5b(0x1a4)](_0x547b02){const _0x28935f=_0x141f5b;return this[_0x28935f(0x19e)][_0x28935f(0x194)](e[_0x28935f(0x18c)])[_0x28935f(0x1bd)](_0x547b02),this;}[_0x141f5b(0x1ae)](){const _0x5420f6=_0x141f5b;return this[_0x5420f6(0x19e)][_0x5420f6(0x194)](t[_0x5420f6(0x1b9)])[_0x5420f6(0x1a5)](e['ConfirmSheetPrintOperation']['id']);}[_0x141f5b(0x1b0)](){const _0x1d57fb=_0x141f5b;return this[_0x1d57fb(0x19e)]['get'](t[_0x1d57fb(0x1b9)])[_0x1d57fb(0x1a5)](e['SheetPrintOpenOperation']['id']);}[_0x141f5b(0x1aa)](){const _0x2561fe=_0x141f5b;return this[_0x2561fe(0x19e)][_0x2561fe(0x194)](t['ICommandService'])[_0x2561fe(0x1a5)](e[_0x2561fe(0x18f)]['id']);}async['saveScreenshotToClipboard'](){const _0x1cc721=_0x141f5b;return(0x0,e[_0x1cc721(0x1a3)])(this[_0x1cc721(0x19e)])?this[_0x1cc721(0x19e)]['get'](t[_0x1cc721(0x1b9)])[_0x1cc721(0x1a8)](e[_0x1cc721(0x197)]['id']):!0x1;}};n[_0x141f5b(0x188)][_0x141f5b(0x1b2)](a);var o=class extends n[_0x141f5b(0x1ba)]{[_0x141f5b(0x1a9)](_0x5ccd93){const _0x10627e=_0x141f5b;return(0x0,e['hasPrintFacadePermission'])(this[_0x10627e(0x19e)])?this[_0x10627e(0x19e)][_0x10627e(0x194)](e[_0x10627e(0x1c3)])[_0x10627e(0x18d)](this['_workbook'][_0x10627e(0x1a6)](),this[_0x10627e(0x1b1)][_0x10627e(0x1a7)](),this[_0x10627e(0x19c)],_0x5ccd93==null?void 0x0:_0x5ccd93['includeHeaders']):!0x1;}};n[_0x141f5b(0x1ba)][_0x141f5b(0x1b2)](o);var s=class extends r['FEventName']{get['BeforeSheetPrintOpen'](){const _0x21ddf9=_0x141f5b;return _0x21ddf9(0x191);}get[_0x141f5b(0x198)](){const _0x3e8e6d=_0x141f5b;return _0x3e8e6d(0x198);}get[_0x141f5b(0x1bf)](){return'BeforeSheetPrintCanceled';}get[_0x141f5b(0x1b6)](){const _0x26235e=_0x141f5b;return _0x26235e(0x1b6);}get[_0x141f5b(0x19d)](){const _0xa2df3c=_0x141f5b;return _0xa2df3c(0x19d);}get['SheetPrintCanceled'](){const _0x1382af=_0x141f5b;return _0x1382af(0x196);}};r[_0x141f5b(0x1b4)]['extend'](s);function _0x3725(){const _0x345bd3=['PrintFreeze','SheetPrintOpen','3kVygLe','PrintHeaderFooter','ICommandService','FRange','PrintAlign','SheetPrintOpenOperation','updateRenderConfig','PrintHeaderFooterSymbol','BeforeSheetPrintCanceled','70406FFMrYl','PrintScale','PrintDirection','SheetPrintClientService','FEnum','onCommandExecuted','updatePrintConfig','renderConfig','141490xudzHe','getActiveSheet','fireEvent','FWorkbook','928RHgfZg','registerEventHandler','9905058USGOQQ','ISheetPrintManagerService','getRangeImage','1037838AxwTfq','CancelSheetPrintOperation','532023jxYPJJ','BeforeSheetPrintOpen','165PIjGpG','Event','get','beforeCommandExecuted','SheetPrintCanceled','SheetScreenShotOperation','BeforeSheetPrintConfirm','disposeWithMe','layoutConfig','FUniver','_range','SheetPrintConfirmed','_injector','PrintArea','cancel','5413728olQLFi','1526724Bzakoy','hasPrintFacadePermission','updatePrintRenderConfig','syncExecuteCommand','getUnitId','getSheetId','executeCommand','getScreenshot','closePrintDialog','PaperType','getActiveWorkbook','CanceledError','print','5fBFmBB','openPrintDialog','_worksheet','extend','ConfirmSheetPrintOperation','FEventName'];_0x3725=function(){return _0x345bd3;};return _0x3725();}var c=class extends r['FEnum']{get[_0x141f5b(0x19f)](){const _0x2b1d0c=_0x141f5b;return e[_0x2b1d0c(0x19f)];}get[_0x141f5b(0x1bb)](){return i['PrintAlign'];}get['PrintPaperSize'](){const _0x1b2279=_0x141f5b;return t[_0x1b2279(0x1ab)];}get['PrintPaperMargin'](){return i['PrintPaperMargin'];}get[_0x141f5b(0x1c1)](){const _0x575244=_0x141f5b;return i[_0x575244(0x1c1)];}get['PrintDirection'](){const _0x4e9353=_0x141f5b;return i[_0x4e9353(0x1c2)];}get[_0x141f5b(0x1b5)](){const _0x339f7c=_0x141f5b;return e[_0x339f7c(0x1b5)];}get[_0x141f5b(0x1b8)](){const _0x329e13=_0x141f5b;return e[_0x329e13(0x1b8)];}get['PrintHeaderFooterSymbol'](){const _0x25d5ae=_0x141f5b;return e[_0x25d5ae(0x1be)];}};r[_0x141f5b(0x1c4)][_0x141f5b(0x1b2)](c);var l=class extends r[_0x141f5b(0x19b)]{['_initialize'](_0x521f4e){const _0x4dafe2=_0x141f5b;let _0x232740=_0x521f4e['get'](t[_0x4dafe2(0x1b9)]);this[_0x4dafe2(0x199)](this['registerEventHandler'](this[_0x4dafe2(0x193)][_0x4dafe2(0x191)],()=>_0x232740[_0x4dafe2(0x195)](_0x1f867a=>{const _0x40c10d=_0x4dafe2;if(_0x1f867a['id']===e[_0x40c10d(0x1bc)]['id']){let _0x55c755=this[_0x40c10d(0x1ac)]();if(!_0x55c755)return;let _0x4be4e2={'workbook':_0x55c755,'worksheet':_0x55c755['getActiveSheet']()};if(_0x4be4e2==null)return;if(this['fireEvent'](this[_0x40c10d(0x193)][_0x40c10d(0x191)],_0x4be4e2),_0x4be4e2[_0x40c10d(0x1a0)])throw new t[(_0x40c10d(0x1ad))]();}}))),this[_0x4dafe2(0x199)](this['registerEventHandler'](this[_0x4dafe2(0x193)][_0x4dafe2(0x198)],()=>_0x232740['beforeCommandExecuted'](_0x37882d=>{const _0x4858d7=_0x4dafe2;if(_0x37882d['id']===e['ConfirmSheetPrintOperation']['id']){let _0x2f4364=_0x521f4e[_0x4858d7(0x194)](e[_0x4858d7(0x18c)]);if(!this[_0x4858d7(0x1ac)]())return;let _0x33dc7a={'layoutConfig':_0x2f4364['layoutConfig'],'renderConfig':_0x2f4364[_0x4858d7(0x1c7)]};if(_0x33dc7a==null)return;if(this[_0x4858d7(0x187)](this[_0x4858d7(0x193)][_0x4858d7(0x198)],_0x33dc7a),_0x33dc7a['cancel'])throw new t[(_0x4858d7(0x1ad))]();}}))),this['disposeWithMe'](this['registerEventHandler'](this['Event']['BeforeSheetPrintCanceled'],()=>_0x232740[_0x4dafe2(0x195)](_0x9e0fe4=>{const _0x1d0d38=_0x4dafe2;if(_0x9e0fe4['id']===e[_0x1d0d38(0x18f)]['id']){let _0x43ce5b=_0x521f4e[_0x1d0d38(0x194)](e['ISheetPrintManagerService']);if(!this[_0x1d0d38(0x1ac)]())return;let _0x5625b3={'layoutConfig':_0x43ce5b['layoutConfig'],'renderConfig':_0x43ce5b[_0x1d0d38(0x1c7)]};if(_0x5625b3==null)return;if(this[_0x1d0d38(0x187)](this[_0x1d0d38(0x193)][_0x1d0d38(0x1bf)],_0x5625b3),_0x5625b3[_0x1d0d38(0x1a0)])throw new t[(_0x1d0d38(0x1ad))]();}}))),this[_0x4dafe2(0x199)](this[_0x4dafe2(0x18a)](this[_0x4dafe2(0x193)][_0x4dafe2(0x1b6)],()=>_0x232740['onCommandExecuted'](_0x371e20=>{const _0x384f54=_0x4dafe2;if(_0x371e20['id']===e[_0x384f54(0x1bc)]['id']){let _0x130a64=this[_0x384f54(0x1ac)]();if(!_0x130a64)return;let _0x5aaa73={'workbook':_0x130a64,'worksheet':_0x130a64[_0x384f54(0x186)]()};if(_0x5aaa73==null)return;this[_0x384f54(0x187)](this[_0x384f54(0x193)][_0x384f54(0x1b6)],_0x5aaa73);}}))),this[_0x4dafe2(0x199)](this[_0x4dafe2(0x18a)](this[_0x4dafe2(0x193)][_0x4dafe2(0x19d)],()=>_0x232740[_0x4dafe2(0x1c5)](_0x59e6cf=>{const _0x2de368=_0x4dafe2;if(_0x59e6cf['id']===e[_0x2de368(0x1b3)]['id']){let _0x33717a=_0x521f4e[_0x2de368(0x194)](e[_0x2de368(0x18c)]);if(!this[_0x2de368(0x1ac)]())return;let _0x441b1a={'layoutConfig':_0x33717a[_0x2de368(0x19a)],'renderConfig':_0x33717a['renderConfig']};if(_0x441b1a==null)return;this[_0x2de368(0x187)](this[_0x2de368(0x193)][_0x2de368(0x19d)],_0x441b1a);}}))),this[_0x4dafe2(0x199)](this[_0x4dafe2(0x18a)](this['Event'][_0x4dafe2(0x196)],()=>_0x232740[_0x4dafe2(0x1c5)](_0x442b67=>{const _0x34aae3=_0x4dafe2;if(_0x442b67['id']===e[_0x34aae3(0x18f)]['id']){let _0x379ad7=_0x521f4e[_0x34aae3(0x194)](e[_0x34aae3(0x18c)]);if(!this['getActiveWorkbook']())return;let _0x42029a={'layoutConfig':_0x379ad7['layoutConfig'],'renderConfig':_0x379ad7[_0x34aae3(0x1c7)]};if(_0x42029a==null)return;this[_0x34aae3(0x187)](this[_0x34aae3(0x193)]['SheetPrintCanceled'],_0x42029a);}})));}};r[_0x141f5b(0x19b)][_0x141f5b(0x1b2)](l);
|