@univerjs-pro/sheets-print 0.9.2 → 0.9.3-nightly.202507250750
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 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -0
- 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 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -0
- 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 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -0
- 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 +39 -39
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -0
- 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 +30 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3e64(_0x32c5bc,_0x3754ae){const _0x96dab2=_0x96da();return _0x3e64=function(_0x3e64f0,_0x395a33){_0x3e64f0=_0x3e64f0-0x1cf;let _0xe487d8=_0x96dab2[_0x3e64f0];return _0xe487d8;},_0x3e64(_0x32c5bc,_0x3754ae);}const _0x507f3d=_0x3e64;(function(_0x1cb95f,_0x1bb111){const _0x8433d0=_0x3e64,_0x101f41=_0x1cb95f();while(!![]){try{const _0xccbc5e=parseInt(_0x8433d0(0x1fd))/0x1+-parseInt(_0x8433d0(0x1f5))/0x2+parseInt(_0x8433d0(0x202))/0x3*(-parseInt(_0x8433d0(0x200))/0x4)+-parseInt(_0x8433d0(0x1e2))/0x5*(parseInt(_0x8433d0(0x204))/0x6)+-parseInt(_0x8433d0(0x1d0))/0x7*(-parseInt(_0x8433d0(0x207))/0x8)+-parseInt(_0x8433d0(0x1e1))/0x9+parseInt(_0x8433d0(0x1e8))/0xa*(parseInt(_0x8433d0(0x1f3))/0xb);if(_0xccbc5e===_0x1bb111)break;else _0x101f41['push'](_0x101f41['shift']());}catch(_0x4398af){_0x101f41['push'](_0x101f41['shift']());}}}(_0x96da,0x3dae3));function _0x96da(){const _0x13b1a1=['FEventName','BeforeSheetPrintCanceled','renderConfig','_range','extend','PrintDirection','FRange','_worksheet','beforeCommandExecuted','FWorkbook','executeCommand','getActiveUniverSheet','updatePrintConfig','1708002rmKtda','985hQeFxJ','SheetPrintCanceled','getActiveSheet','updatePrintRenderConfig','fireEvent','get','40lgADKY','cancel','PrintFreeze','PrintHeaderFooterSymbol','_initialize','BeforeSheetPrintConfirm','PaperType','getUnitId','SheetPrintClientService','getScreenshot','PrintAlign','1806574MYmCNR','PrintPaperMargin','862556qGdBJI','PrintScale','ISheetPrintManagerService','FUniver','ConfirmSheetPrintOperation','FEnum','PrintArea','SheetPrintOpen','422076CPKnFd','BeforeSheetPrintOpen','ICommandService','16emtAdP','_injector','91848XnOjAp','PrintPaperSize','14754AJvqaE','onCommandExecuted','layoutConfig','816etVzCL','PrintHeaderFooter','Event','registerEventHandler','getSheetId','CanceledError','CancelSheetPrintOperation','SheetPrintConfirmed','27559jkUdWk','SheetPrintOpenOperation','updateLayoutConfig','syncExecuteCommand'];_0x96da=function(){return _0x13b1a1;};return _0x96da();}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[_0x507f3d(0x1dd)]{[_0x507f3d(0x1e0)](_0x5becec){const _0x384016=_0x507f3d;return this[_0x384016(0x201)][_0x384016(0x1e7)](e[_0x384016(0x1f7)])[_0x384016(0x1d2)](_0x5becec),this;}[_0x507f3d(0x1e5)](_0x595c3b){const _0x5726f7=_0x507f3d;return this[_0x5726f7(0x201)][_0x5726f7(0x1e7)](e['ISheetPrintManagerService'])['updateRenderConfig'](_0x595c3b),this;}['print'](){const _0x22a426=_0x507f3d;return this[_0x22a426(0x201)][_0x22a426(0x1e7)](a[_0x22a426(0x1ff)])[_0x22a426(0x1d3)](e['ConfirmSheetPrintOperation']['id']);}['openPrintDialog'](){const _0x432df1=_0x507f3d;return this['_injector']['get'](a[_0x432df1(0x1ff)])['syncExecuteCommand'](e[_0x432df1(0x1d1)]['id']);}['closePrintDialog'](){return this['_injector']['get'](a['ICommandService'])['syncExecuteCommand'](e['CancelSheetPrintOperation']['id']);}async['saveScreenshotToClipboard'](){const _0x380ac8=_0x507f3d;return e['hasPrintFacadePermission'](this[_0x380ac8(0x201)])?this['_injector'][_0x380ac8(0x1e7)](a[_0x380ac8(0x1ff)])[_0x380ac8(0x1de)](e['SheetScreenShotOperation']['id']):!0x1;}}d[_0x507f3d(0x1dd)][_0x507f3d(0x1d8)](S);class f extends d[_0x507f3d(0x1da)]{[_0x507f3d(0x1f1)](){const _0x5d2e72=_0x507f3d;return e['hasPrintFacadePermission'](this['_injector'])?this[_0x5d2e72(0x201)][_0x5d2e72(0x1e7)](e[_0x5d2e72(0x1f0)])['getRangeImage'](this['_workbook'][_0x5d2e72(0x1ef)](),this[_0x5d2e72(0x1db)][_0x5d2e72(0x20b)](),this[_0x5d2e72(0x1d7)]):!0x1;}}d['FRange'][_0x507f3d(0x1d8)](f);class P{get[_0x507f3d(0x1fe)](){const _0x264888=_0x507f3d;return _0x264888(0x1fe);}get['BeforeSheetPrintConfirm'](){const _0x42ac7d=_0x507f3d;return _0x42ac7d(0x1ed);}get[_0x507f3d(0x1d5)](){const _0x2885ca=_0x507f3d;return _0x2885ca(0x1d5);}get[_0x507f3d(0x1fc)](){return'SheetPrintOpen';}get[_0x507f3d(0x1cf)](){const _0x187b7f=_0x507f3d;return _0x187b7f(0x1cf);}get['SheetPrintCanceled'](){const _0x26acc9=_0x507f3d;return _0x26acc9(0x1e3);}}g[_0x507f3d(0x1d4)]['extend'](P);class u{get[_0x507f3d(0x1fb)](){const _0x38019a=_0x507f3d;return e[_0x38019a(0x1fb)];}get['PrintAlign'](){const _0x3a9d48=_0x507f3d;return c[_0x3a9d48(0x1f2)];}get[_0x507f3d(0x203)](){const _0x2c1ae0=_0x507f3d;return a[_0x2c1ae0(0x1ee)];}get[_0x507f3d(0x1f4)](){const _0x4b41b6=_0x507f3d;return c[_0x4b41b6(0x1f4)];}get[_0x507f3d(0x1f6)](){const _0x1263f0=_0x507f3d;return c[_0x1263f0(0x1f6)];}get['PrintDirection'](){const _0x1c4de1=_0x507f3d;return c[_0x1c4de1(0x1d9)];}get[_0x507f3d(0x1ea)](){const _0x5d9a95=_0x507f3d;return e[_0x5d9a95(0x1ea)];}get[_0x507f3d(0x208)](){const _0x5928af=_0x507f3d;return e[_0x5928af(0x208)];}get['PrintHeaderFooterSymbol'](){const _0x7e1ffe=_0x507f3d;return e[_0x7e1ffe(0x1eb)];}}g[_0x507f3d(0x1fa)][_0x507f3d(0x1d8)](u);class l extends g[_0x507f3d(0x1f8)]{[_0x507f3d(0x1ec)](_0x2bca58){const _0x1157b6=_0x507f3d,_0x1ecc3c=_0x2bca58[_0x1157b6(0x1e7)](a[_0x1157b6(0x1ff)]);this[_0x1157b6(0x20a)](this[_0x1157b6(0x209)][_0x1157b6(0x1fe)],()=>_0x1ecc3c['beforeCommandExecuted'](_0x5e9d0b=>{const _0x3e9985=_0x1157b6;if(_0x5e9d0b['id']===e['SheetPrintOpenOperation']['id']){const _0x51a7ff=this[_0x3e9985(0x1df)]();if(!_0x51a7ff)return;const _0x473eba={'workbook':_0x51a7ff,'worksheet':_0x51a7ff[_0x3e9985(0x1e4)]()};if(_0x473eba==null)return;if(this['fireEvent'](this[_0x3e9985(0x209)][_0x3e9985(0x1fe)],_0x473eba),_0x473eba['cancel'])throw new a[(_0x3e9985(0x20c))]();}})),this[_0x1157b6(0x20a)](this[_0x1157b6(0x209)]['BeforeSheetPrintConfirm'],()=>_0x1ecc3c[_0x1157b6(0x1dc)](_0xe7a5ed=>{const _0x3ddf6f=_0x1157b6;if(_0xe7a5ed['id']===e[_0x3ddf6f(0x1f9)]['id']){const _0x1b854b=_0x2bca58['get'](e[_0x3ddf6f(0x1f7)]);if(!this[_0x3ddf6f(0x1df)]())return;const _0x58efff={'layoutConfig':_0x1b854b[_0x3ddf6f(0x206)],'renderConfig':_0x1b854b[_0x3ddf6f(0x1d6)]};if(_0x58efff==null)return;if(this['fireEvent'](this[_0x3ddf6f(0x209)][_0x3ddf6f(0x1ed)],_0x58efff),_0x58efff['cancel'])throw new a[(_0x3ddf6f(0x20c))]();}})),this[_0x1157b6(0x20a)](this[_0x1157b6(0x209)][_0x1157b6(0x1d5)],()=>_0x1ecc3c[_0x1157b6(0x1dc)](_0x1e0eea=>{const _0x1114a8=_0x1157b6;if(_0x1e0eea['id']===e[_0x1114a8(0x20d)]['id']){const _0x396d6a=_0x2bca58[_0x1114a8(0x1e7)](e[_0x1114a8(0x1f7)]);if(!this[_0x1114a8(0x1df)]())return;const _0x185c5c={'layoutConfig':_0x396d6a[_0x1114a8(0x206)],'renderConfig':_0x396d6a[_0x1114a8(0x1d6)]};if(_0x185c5c==null)return;if(this[_0x1114a8(0x1e6)](this['Event']['BeforeSheetPrintCanceled'],_0x185c5c),_0x185c5c[_0x1114a8(0x1e9)])throw new a[(_0x1114a8(0x20c))]();}})),this[_0x1157b6(0x20a)](this[_0x1157b6(0x209)][_0x1157b6(0x1fc)],()=>_0x1ecc3c[_0x1157b6(0x205)](_0x10fda2=>{const _0x2f6660=_0x1157b6;if(_0x10fda2['id']===e[_0x2f6660(0x1d1)]['id']){const _0x1f5564=this[_0x2f6660(0x1df)]();if(!_0x1f5564)return;const _0x3c8989={'workbook':_0x1f5564,'worksheet':_0x1f5564[_0x2f6660(0x1e4)]()};if(_0x3c8989==null)return;this[_0x2f6660(0x1e6)](this[_0x2f6660(0x209)][_0x2f6660(0x1fc)],_0x3c8989);}})),this[_0x1157b6(0x20a)](this['Event']['SheetPrintConfirmed'],()=>_0x1ecc3c[_0x1157b6(0x205)](_0x19a1f3=>{const _0x182bc2=_0x1157b6;if(_0x19a1f3['id']===e['ConfirmSheetPrintOperation']['id']){const _0xa43619=_0x2bca58[_0x182bc2(0x1e7)](e['ISheetPrintManagerService']);if(!this[_0x182bc2(0x1df)]())return;const _0x21adbb={'layoutConfig':_0xa43619[_0x182bc2(0x206)],'renderConfig':_0xa43619[_0x182bc2(0x1d6)]};if(_0x21adbb==null)return;this[_0x182bc2(0x1e6)](this[_0x182bc2(0x209)][_0x182bc2(0x1cf)],_0x21adbb);}})),this[_0x1157b6(0x20a)](this['Event'][_0x1157b6(0x1e3)],()=>_0x1ecc3c[_0x1157b6(0x205)](_0x598b00=>{const _0x13cc5e=_0x1157b6;if(_0x598b00['id']===e['CancelSheetPrintOperation']['id']){const _0x48811a=_0x2bca58[_0x13cc5e(0x1e7)](e[_0x13cc5e(0x1f7)]);if(!this['getActiveUniverSheet']())return;const _0x11d9ef={'layoutConfig':_0x48811a['layoutConfig'],'renderConfig':_0x48811a[_0x13cc5e(0x1d6)]};if(_0x11d9ef==null)return;this[_0x13cc5e(0x1e6)](this[_0x13cc5e(0x209)][_0x13cc5e(0x1e3)],_0x11d9ef);}}));}}g[_0x507f3d(0x1f8)][_0x507f3d(0x1d8)](l);
|