@univerjs-pro/sheets-print 0.10.5 → 0.10.6-experimental.20250904-44da50e
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 +42 -42
- 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';function _0x51d5(_0x2a61d5,_0x32ddbe){const _0x3762c8=_0x3762();return _0x51d5=function(_0x51d531,_0x24a44d){_0x51d531=_0x51d531-0xc2;let _0xb6856=_0x3762c8[_0x51d531];return _0xb6856;},_0x51d5(_0x2a61d5,_0x32ddbe);}const _0xa5b6a5=_0x51d5;(function(_0x5bf397,_0x53330f){const _0x46a86c=_0x51d5,_0x2224c7=_0x5bf397();while(!![]){try{const _0x40175f=-parseInt(_0x46a86c(0xee))/0x1+-parseInt(_0x46a86c(0xe4))/0x2+-parseInt(_0x46a86c(0xdf))/0x3*(parseInt(_0x46a86c(0xc4))/0x4)+parseInt(_0x46a86c(0xd2))/0x5+-parseInt(_0x46a86c(0xe1))/0x6+parseInt(_0x46a86c(0xfc))/0x7*(parseInt(_0x46a86c(0xca))/0x8)+parseInt(_0x46a86c(0xce))/0x9*(parseInt(_0x46a86c(0xc5))/0xa);if(_0x40175f===_0x53330f)break;else _0x2224c7['push'](_0x2224c7['shift']());}catch(_0x4a4209){_0x2224c7['push'](_0x2224c7['shift']());}}}(_0x3762,0xc05f9));function _0x3762(){const _0x308382=['SheetPrintOpenOperation','2263210bvScgH','ICommandService','print','FUniver','PrintHeaderFooter','get','FWorkbook','SheetPrintCanceled','openPrintDialog','FEnum','_injector','renderConfig','beforeCommandExecuted','12348aGRikA','updateRenderConfig','5440770wfXnKd','fireEvent','hasPrintFacadePermission','1602754GLfWxc','ConfirmSheetPrintOperation','SheetScreenShotOperation','PrintHeaderFooterSymbol','PrintDirection','SheetPrintConfirmed','PrintArea','CancelSheetPrintOperation','CanceledError','PaperType','1390210XIGBSl','Event','syncExecuteCommand','PrintFreeze','updatePrintConfig','layoutConfig','ISheetPrintManagerService','BeforeSheetPrintConfirm','PrintPaperMargin','onCommandExecuted','updateLayoutConfig','getUnitId','updatePrintRenderConfig','extend','1911vmdoqI','BeforeSheetPrintOpen','getActiveUniverSheet','_worksheet','SheetPrintClientService','FRange','closePrintDialog','116mBGtMJ','230aWgqIw','SheetPrintOpen','PrintAlign','BeforeSheetPrintCanceled','registerEventHandler','3184RuaxwQ','FEventName','cancel','getActiveSheet','1347813FYLShW','getSheetId','PrintScale'];_0x3762=function(){return _0x308382;};return _0x3762();}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']{[_0xa5b6a5(0xf2)](_0x22a003){const _0xf8e599=_0xa5b6a5;return this[_0xf8e599(0xdc)][_0xf8e599(0xd7)](e[_0xf8e599(0xf4)])[_0xf8e599(0xf8)](_0x22a003),this;}[_0xa5b6a5(0xfa)](_0x42bae8){const _0x185bd0=_0xa5b6a5;return this['_injector'][_0x185bd0(0xd7)](e[_0x185bd0(0xf4)])[_0x185bd0(0xe0)](_0x42bae8),this;}[_0xa5b6a5(0xd4)](){const _0x224b60=_0xa5b6a5;return this[_0x224b60(0xdc)][_0x224b60(0xd7)](a[_0x224b60(0xd3)])[_0x224b60(0xf0)](e[_0x224b60(0xe5)]['id']);}[_0xa5b6a5(0xda)](){const _0x2c0a44=_0xa5b6a5;return this[_0x2c0a44(0xdc)][_0x2c0a44(0xd7)](a[_0x2c0a44(0xd3)])['syncExecuteCommand'](e[_0x2c0a44(0xd1)]['id']);}[_0xa5b6a5(0xc3)](){const _0x2d5b51=_0xa5b6a5;return this['_injector']['get'](a[_0x2d5b51(0xd3)])['syncExecuteCommand'](e[_0x2d5b51(0xeb)]['id']);}async['saveScreenshotToClipboard'](){const _0x37e0aa=_0xa5b6a5;return e[_0x37e0aa(0xe3)](this['_injector'])?this['_injector'][_0x37e0aa(0xd7)](a[_0x37e0aa(0xd3)])['executeCommand'](e[_0x37e0aa(0xe6)]['id']):!0x1;}}d[_0xa5b6a5(0xd8)][_0xa5b6a5(0xfb)](S);class f extends d[_0xa5b6a5(0xc2)]{['getScreenshot'](){const _0x30c893=_0xa5b6a5;return e['hasPrintFacadePermission'](this[_0x30c893(0xdc)])?this[_0x30c893(0xdc)]['get'](e[_0x30c893(0x100)])['getRangeImage'](this['_workbook'][_0x30c893(0xf9)](),this[_0x30c893(0xff)][_0x30c893(0xcf)](),this['_range']):!0x1;}}d[_0xa5b6a5(0xc2)][_0xa5b6a5(0xfb)](f);class P{get['BeforeSheetPrintOpen'](){const _0x1309be=_0xa5b6a5;return _0x1309be(0xfd);}get['BeforeSheetPrintConfirm'](){const _0xf9bc35=_0xa5b6a5;return _0xf9bc35(0xf5);}get['BeforeSheetPrintCanceled'](){const _0x3491e1=_0xa5b6a5;return _0x3491e1(0xc8);}get[_0xa5b6a5(0xc6)](){const _0x21140f=_0xa5b6a5;return _0x21140f(0xc6);}get[_0xa5b6a5(0xe9)](){return'SheetPrintConfirmed';}get[_0xa5b6a5(0xd9)](){const _0xe5235a=_0xa5b6a5;return _0xe5235a(0xd9);}}g[_0xa5b6a5(0xcb)]['extend'](P);class u{get[_0xa5b6a5(0xea)](){const _0x342a37=_0xa5b6a5;return e[_0x342a37(0xea)];}get['PrintAlign'](){const _0x1d14fd=_0xa5b6a5;return c[_0x1d14fd(0xc7)];}get['PrintPaperSize'](){const _0xf9f36f=_0xa5b6a5;return a[_0xf9f36f(0xed)];}get[_0xa5b6a5(0xf6)](){return c['PrintPaperMargin'];}get['PrintScale'](){const _0x46e6d4=_0xa5b6a5;return c[_0x46e6d4(0xd0)];}get[_0xa5b6a5(0xe8)](){const _0x4dfa39=_0xa5b6a5;return c[_0x4dfa39(0xe8)];}get[_0xa5b6a5(0xf1)](){const _0x2d95bb=_0xa5b6a5;return e[_0x2d95bb(0xf1)];}get['PrintHeaderFooter'](){const _0x194c2d=_0xa5b6a5;return e[_0x194c2d(0xd6)];}get[_0xa5b6a5(0xe7)](){const _0x456b41=_0xa5b6a5;return e[_0x456b41(0xe7)];}}g[_0xa5b6a5(0xdb)][_0xa5b6a5(0xfb)](u);class l extends g[_0xa5b6a5(0xd5)]{['_initialize'](_0x3182f6){const _0x373b2f=_0xa5b6a5,_0x7f9de1=_0x3182f6[_0x373b2f(0xd7)](a[_0x373b2f(0xd3)]);this[_0x373b2f(0xc9)](this[_0x373b2f(0xef)][_0x373b2f(0xfd)],()=>_0x7f9de1[_0x373b2f(0xde)](_0x19caa2=>{const _0x2fd847=_0x373b2f;if(_0x19caa2['id']===e[_0x2fd847(0xd1)]['id']){const _0x16c1f9=this[_0x2fd847(0xfe)]();if(!_0x16c1f9)return;const _0x477957={'workbook':_0x16c1f9,'worksheet':_0x16c1f9[_0x2fd847(0xcd)]()};if(_0x477957==null)return;if(this[_0x2fd847(0xe2)](this[_0x2fd847(0xef)][_0x2fd847(0xfd)],_0x477957),_0x477957['cancel'])throw new a['CanceledError']();}})),this[_0x373b2f(0xc9)](this['Event']['BeforeSheetPrintConfirm'],()=>_0x7f9de1[_0x373b2f(0xde)](_0x3a492c=>{const _0x5be204=_0x373b2f;if(_0x3a492c['id']===e[_0x5be204(0xe5)]['id']){const _0x3de85a=_0x3182f6['get'](e['ISheetPrintManagerService']);if(!this[_0x5be204(0xfe)]())return;const _0x48adc1={'layoutConfig':_0x3de85a[_0x5be204(0xf3)],'renderConfig':_0x3de85a[_0x5be204(0xdd)]};if(_0x48adc1==null)return;if(this[_0x5be204(0xe2)](this['Event']['BeforeSheetPrintConfirm'],_0x48adc1),_0x48adc1[_0x5be204(0xcc)])throw new a[(_0x5be204(0xec))]();}})),this[_0x373b2f(0xc9)](this[_0x373b2f(0xef)]['BeforeSheetPrintCanceled'],()=>_0x7f9de1[_0x373b2f(0xde)](_0x2ebace=>{const _0x475c10=_0x373b2f;if(_0x2ebace['id']===e[_0x475c10(0xeb)]['id']){const _0x93c08c=_0x3182f6[_0x475c10(0xd7)](e[_0x475c10(0xf4)]);if(!this[_0x475c10(0xfe)]())return;const _0x5f52b3={'layoutConfig':_0x93c08c[_0x475c10(0xf3)],'renderConfig':_0x93c08c['renderConfig']};if(_0x5f52b3==null)return;if(this[_0x475c10(0xe2)](this[_0x475c10(0xef)][_0x475c10(0xc8)],_0x5f52b3),_0x5f52b3[_0x475c10(0xcc)])throw new a[(_0x475c10(0xec))]();}})),this[_0x373b2f(0xc9)](this[_0x373b2f(0xef)][_0x373b2f(0xc6)],()=>_0x7f9de1[_0x373b2f(0xf7)](_0x47f56a=>{const _0x45ae95=_0x373b2f;if(_0x47f56a['id']===e['SheetPrintOpenOperation']['id']){const _0x36e08f=this[_0x45ae95(0xfe)]();if(!_0x36e08f)return;const _0x49c55b={'workbook':_0x36e08f,'worksheet':_0x36e08f['getActiveSheet']()};if(_0x49c55b==null)return;this[_0x45ae95(0xe2)](this[_0x45ae95(0xef)][_0x45ae95(0xc6)],_0x49c55b);}})),this[_0x373b2f(0xc9)](this['Event'][_0x373b2f(0xe9)],()=>_0x7f9de1[_0x373b2f(0xf7)](_0x3b70ce=>{const _0xbd4a90=_0x373b2f;if(_0x3b70ce['id']===e[_0xbd4a90(0xe5)]['id']){const _0xbb54f9=_0x3182f6['get'](e[_0xbd4a90(0xf4)]);if(!this[_0xbd4a90(0xfe)]())return;const _0x2cea34={'layoutConfig':_0xbb54f9['layoutConfig'],'renderConfig':_0xbb54f9['renderConfig']};if(_0x2cea34==null)return;this[_0xbd4a90(0xe2)](this['Event']['SheetPrintConfirmed'],_0x2cea34);}})),this['registerEventHandler'](this[_0x373b2f(0xef)][_0x373b2f(0xd9)],()=>_0x7f9de1[_0x373b2f(0xf7)](_0x3c1494=>{const _0x1a47b0=_0x373b2f;if(_0x3c1494['id']===e['CancelSheetPrintOperation']['id']){const _0x438c8a=_0x3182f6['get'](e['ISheetPrintManagerService']);if(!this[_0x1a47b0(0xfe)]())return;const _0x7b3b55={'layoutConfig':_0x438c8a[_0x1a47b0(0xf3)],'renderConfig':_0x438c8a['renderConfig']};if(_0x7b3b55==null)return;this[_0x1a47b0(0xe2)](this['Event'][_0x1a47b0(0xd9)],_0x7b3b55);}}));}}g['FUniver'][_0xa5b6a5(0xfb)](l);
|