@univerjs-pro/sheets-print 0.10.8 → 0.10.9
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/ca-ES.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/ko-KR.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/ca-ES.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/ko-KR.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/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.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/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +38 -38
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.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/ko-KR.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 +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5b7214=_0x5167;(function(_0x35f8c3,_0x1c3b11){const _0x574a27=_0x5167,_0x154c75=_0x35f8c3();while(!![]){try{const _0x5f5483=-parseInt(_0x574a27(0x192))/0x1*(-parseInt(_0x574a27(0x19e))/0x2)+-parseInt(_0x574a27(0x1bd))/0x3+parseInt(_0x574a27(0x1a5))/0x4+-parseInt(_0x574a27(0x1a2))/0x5*(parseInt(_0x574a27(0x186))/0x6)+-parseInt(_0x574a27(0x185))/0x7*(-parseInt(_0x574a27(0x1b6))/0x8)+-parseInt(_0x574a27(0x182))/0x9*(-parseInt(_0x574a27(0x193))/0xa)+-parseInt(_0x574a27(0x1ba))/0xb;if(_0x5f5483===_0x1c3b11)break;else _0x154c75['push'](_0x154c75['shift']());}catch(_0x4085ed){_0x154c75['push'](_0x154c75['shift']());}}}(_0x5380,0x77891));const e=require('@univerjs-pro/sheets-print'),a=require('@univerjs/core'),d=require('@univerjs/sheets/facade'),g=require('@univerjs/core/facade'),c=require('@univerjs-pro/print');class S extends d['FWorkbook']{['updatePrintConfig'](_0x494113){const _0x5474e5=_0x5167;return this[_0x5474e5(0x184)][_0x5474e5(0x19f)](e[_0x5474e5(0x1b2)])[_0x5474e5(0x1a0)](_0x494113),this;}[_0x5b7214(0x1a1)](_0x390b27){const _0x2ef2ce=_0x5b7214;return this[_0x2ef2ce(0x184)]['get'](e['ISheetPrintManagerService'])[_0x2ef2ce(0x198)](_0x390b27),this;}[_0x5b7214(0x1bf)](){const _0x3ed5a4=_0x5b7214;return this['_injector'][_0x3ed5a4(0x19f)](a[_0x3ed5a4(0x1b8)])['syncExecuteCommand'](e[_0x3ed5a4(0x1a7)]['id']);}[_0x5b7214(0x18d)](){const _0x51dd07=_0x5b7214;return this[_0x51dd07(0x184)][_0x51dd07(0x19f)](a[_0x51dd07(0x1b8)])[_0x51dd07(0x1b1)](e[_0x51dd07(0x19b)]['id']);}[_0x5b7214(0x18f)](){const _0x4b357d=_0x5b7214;return this[_0x4b357d(0x184)]['get'](a[_0x4b357d(0x1b8)])['syncExecuteCommand'](e[_0x4b357d(0x1c0)]['id']);}async[_0x5b7214(0x1b9)](){const _0x19816f=_0x5b7214;return e[_0x19816f(0x18c)](this[_0x19816f(0x184)])?this[_0x19816f(0x184)][_0x19816f(0x19f)](a[_0x19816f(0x1b8)])[_0x19816f(0x191)](e[_0x19816f(0x19c)]['id']):!0x1;}}d[_0x5b7214(0x1bc)][_0x5b7214(0x1a3)](S);class f extends d[_0x5b7214(0x181)]{[_0x5b7214(0x1ae)](){const _0x5786e6=_0x5b7214;return e[_0x5786e6(0x18c)](this[_0x5786e6(0x184)])?this['_injector']['get'](e[_0x5786e6(0x1a9)])['getRangeImage'](this[_0x5786e6(0x1b4)][_0x5786e6(0x1aa)](),this[_0x5786e6(0x19a)][_0x5786e6(0x1b0)](),this[_0x5786e6(0x18e)]):!0x1;}}d[_0x5b7214(0x181)]['extend'](f);class P{get['BeforeSheetPrintOpen'](){const _0x594c28=_0x5b7214;return _0x594c28(0x1bb);}get['BeforeSheetPrintConfirm'](){const _0x273639=_0x5b7214;return _0x273639(0x18a);}get[_0x5b7214(0x194)](){const _0xf93963=_0x5b7214;return _0xf93963(0x194);}get[_0x5b7214(0x1ac)](){const _0x504b40=_0x5b7214;return _0x504b40(0x1ac);}get[_0x5b7214(0x1b5)](){const _0x1d1837=_0x5b7214;return _0x1d1837(0x1b5);}get[_0x5b7214(0x189)](){return'SheetPrintCanceled';}}g[_0x5b7214(0x1c1)][_0x5b7214(0x1a3)](P);class u{get[_0x5b7214(0x190)](){const _0x25d7a0=_0x5b7214;return e[_0x25d7a0(0x190)];}get[_0x5b7214(0x19d)](){const _0x430d4b=_0x5b7214;return c[_0x430d4b(0x19d)];}get[_0x5b7214(0x1a8)](){return a['PaperType'];}get['PrintPaperMargin'](){const _0x1704a3=_0x5b7214;return c[_0x1704a3(0x197)];}get['PrintScale'](){return c['PrintScale'];}get['PrintDirection'](){return c['PrintDirection'];}get[_0x5b7214(0x187)](){const _0x33ce49=_0x5b7214;return e[_0x33ce49(0x187)];}get['PrintHeaderFooter'](){const _0x569c58=_0x5b7214;return e[_0x569c58(0x1b3)];}get[_0x5b7214(0x1a6)](){return e['PrintHeaderFooterSymbol'];}}g['FEnum'][_0x5b7214(0x1a3)](u);function _0x5167(_0x25eea4,_0x5ae742){const _0x5380a7=_0x5380();return _0x5167=function(_0x516753,_0x16b8cb){_0x516753=_0x516753-0x181;let _0x54ef7a=_0x5380a7[_0x516753];return _0x54ef7a;},_0x5167(_0x25eea4,_0x5ae742);}class l extends g[_0x5b7214(0x199)]{['_initialize'](_0x108708){const _0x206451=_0x5b7214,_0x231d88=_0x108708[_0x206451(0x19f)](a['ICommandService']);this[_0x206451(0x18b)](this[_0x206451(0x1ad)][_0x206451(0x1bb)],()=>_0x231d88[_0x206451(0x1ab)](_0x5d64f9=>{const _0x54771f=_0x206451;if(_0x5d64f9['id']===e['SheetPrintOpenOperation']['id']){const _0x1c815e=this[_0x54771f(0x183)]();if(!_0x1c815e)return;const _0x1c76bd={'workbook':_0x1c815e,'worksheet':_0x1c815e['getActiveSheet']()};if(_0x1c76bd==null)return;if(this[_0x54771f(0x188)](this[_0x54771f(0x1ad)][_0x54771f(0x1bb)],_0x1c76bd),_0x1c76bd[_0x54771f(0x1af)])throw new a[(_0x54771f(0x1a4))]();}})),this['registerEventHandler'](this[_0x206451(0x1ad)][_0x206451(0x18a)],()=>_0x231d88[_0x206451(0x1ab)](_0x107500=>{const _0x997f8=_0x206451;if(_0x107500['id']===e[_0x997f8(0x1a7)]['id']){const _0x14cef9=_0x108708[_0x997f8(0x19f)](e[_0x997f8(0x1b2)]);if(!this[_0x997f8(0x183)]())return;const _0x4d7ec5={'layoutConfig':_0x14cef9[_0x997f8(0x1be)],'renderConfig':_0x14cef9[_0x997f8(0x196)]};if(_0x4d7ec5==null)return;if(this[_0x997f8(0x188)](this['Event'][_0x997f8(0x18a)],_0x4d7ec5),_0x4d7ec5['cancel'])throw new a[(_0x997f8(0x1a4))]();}})),this['registerEventHandler'](this['Event'][_0x206451(0x194)],()=>_0x231d88[_0x206451(0x1ab)](_0xa91d91=>{const _0x56ddd9=_0x206451;if(_0xa91d91['id']===e[_0x56ddd9(0x1c0)]['id']){const _0x3a04d7=_0x108708[_0x56ddd9(0x19f)](e[_0x56ddd9(0x1b2)]);if(!this['getActiveUniverSheet']())return;const _0x4969ab={'layoutConfig':_0x3a04d7['layoutConfig'],'renderConfig':_0x3a04d7[_0x56ddd9(0x196)]};if(_0x4969ab==null)return;if(this[_0x56ddd9(0x188)](this[_0x56ddd9(0x1ad)][_0x56ddd9(0x194)],_0x4969ab),_0x4969ab[_0x56ddd9(0x1af)])throw new a[(_0x56ddd9(0x1a4))]();}})),this[_0x206451(0x18b)](this[_0x206451(0x1ad)][_0x206451(0x1ac)],()=>_0x231d88[_0x206451(0x1b7)](_0x29128f=>{const _0x35743a=_0x206451;if(_0x29128f['id']===e[_0x35743a(0x19b)]['id']){const _0x23fc9a=this[_0x35743a(0x183)]();if(!_0x23fc9a)return;const _0x34c1ef={'workbook':_0x23fc9a,'worksheet':_0x23fc9a[_0x35743a(0x195)]()};if(_0x34c1ef==null)return;this[_0x35743a(0x188)](this['Event'][_0x35743a(0x1ac)],_0x34c1ef);}})),this['registerEventHandler'](this[_0x206451(0x1ad)]['SheetPrintConfirmed'],()=>_0x231d88[_0x206451(0x1b7)](_0x104f4a=>{const _0x344b2d=_0x206451;if(_0x104f4a['id']===e['ConfirmSheetPrintOperation']['id']){const _0x600923=_0x108708['get'](e['ISheetPrintManagerService']);if(!this[_0x344b2d(0x183)]())return;const _0x39a677={'layoutConfig':_0x600923[_0x344b2d(0x1be)],'renderConfig':_0x600923[_0x344b2d(0x196)]};if(_0x39a677==null)return;this[_0x344b2d(0x188)](this[_0x344b2d(0x1ad)][_0x344b2d(0x1b5)],_0x39a677);}})),this[_0x206451(0x18b)](this[_0x206451(0x1ad)][_0x206451(0x189)],()=>_0x231d88['onCommandExecuted'](_0x28fd91=>{const _0x3653cd=_0x206451;if(_0x28fd91['id']===e[_0x3653cd(0x1c0)]['id']){const _0x259b4e=_0x108708[_0x3653cd(0x19f)](e[_0x3653cd(0x1b2)]);if(!this[_0x3653cd(0x183)]())return;const _0xb02892={'layoutConfig':_0x259b4e[_0x3653cd(0x1be)],'renderConfig':_0x259b4e[_0x3653cd(0x196)]};if(_0xb02892==null)return;this[_0x3653cd(0x188)](this[_0x3653cd(0x1ad)][_0x3653cd(0x189)],_0xb02892);}}));}}function _0x5380(){const _0x148011=['SheetPrintOpenOperation','SheetScreenShotOperation','PrintAlign','381354rgWTbm','get','updateLayoutConfig','updatePrintRenderConfig','7390dIifTG','extend','CanceledError','830216XVMUTI','PrintHeaderFooterSymbol','ConfirmSheetPrintOperation','PrintPaperSize','SheetPrintClientService','getUnitId','beforeCommandExecuted','SheetPrintOpen','Event','getScreenshot','cancel','getSheetId','syncExecuteCommand','ISheetPrintManagerService','PrintHeaderFooter','_workbook','SheetPrintConfirmed','120YGJBub','onCommandExecuted','ICommandService','saveScreenshotToClipboard','9682992wBhArY','BeforeSheetPrintOpen','FWorkbook','2837070naXchh','layoutConfig','print','CancelSheetPrintOperation','FEventName','FRange','5481neJrwv','getActiveUniverSheet','_injector','270697GQtdBN','162YSYuFk','PrintFreeze','fireEvent','SheetPrintCanceled','BeforeSheetPrintConfirm','registerEventHandler','hasPrintFacadePermission','openPrintDialog','_range','closePrintDialog','PrintArea','executeCommand','5CZQFiv','10090rLNCQP','BeforeSheetPrintCanceled','getActiveSheet','renderConfig','PrintPaperMargin','updateRenderConfig','FUniver','_worksheet'];_0x5380=function(){return _0x148011;};return _0x5380();}g['FUniver'][_0x5b7214(0x1a3)](l);
|