@univerjs-pro/sheets-print 0.10.6 → 0.10.7
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 +41 -41
- package/lib/types/controllers/config.schema.d.ts +5 -0
- 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 +17 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x34ec(_0x110c17,_0x247b1d){const _0x32bd01=_0x32bd();return _0x34ec=function(_0x34ec11,_0x46dc03){_0x34ec11=_0x34ec11-0x12e;let _0x5090cc=_0x32bd01[_0x34ec11];return _0x5090cc;},_0x34ec(_0x110c17,_0x247b1d);}const _0x589e03=_0x34ec;(function(_0x5220e5,_0xff1fbf){const _0x693c31=_0x34ec,_0x2d7dd8=_0x5220e5();while(!![]){try{const _0x1b3d67=-parseInt(_0x693c31(0x139))/0x1*(-parseInt(_0x693c31(0x143))/0x2)+parseInt(_0x693c31(0x163))/0x3*(-parseInt(_0x693c31(0x14a))/0x4)+parseInt(_0x693c31(0x12f))/0x5+parseInt(_0x693c31(0x133))/0x6+parseInt(_0x693c31(0x154))/0x7+-parseInt(_0x693c31(0x140))/0x8*(parseInt(_0x693c31(0x14c))/0x9)+-parseInt(_0x693c31(0x15b))/0xa;if(_0x1b3d67===_0xff1fbf)break;else _0x2d7dd8['push'](_0x2d7dd8['shift']());}catch(_0x400115){_0x2d7dd8['push'](_0x2d7dd8['shift']());}}}(_0x32bd,0xe564e));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']{[_0x589e03(0x13b)](_0x1899ab){const _0x4c3fd2=_0x589e03;return this[_0x4c3fd2(0x15d)][_0x4c3fd2(0x142)](e[_0x4c3fd2(0x134)])[_0x4c3fd2(0x164)](_0x1899ab),this;}[_0x589e03(0x13e)](_0x3d8148){const _0x19190b=_0x589e03;return this['_injector'][_0x19190b(0x142)](e[_0x19190b(0x134)])['updateRenderConfig'](_0x3d8148),this;}[_0x589e03(0x156)](){const _0x3c39e5=_0x589e03;return this[_0x3c39e5(0x15d)][_0x3c39e5(0x142)](a[_0x3c39e5(0x150)])[_0x3c39e5(0x153)](e[_0x3c39e5(0x141)]['id']);}[_0x589e03(0x161)](){const _0x18ad2e=_0x589e03;return this['_injector'][_0x18ad2e(0x142)](a['ICommandService'])[_0x18ad2e(0x153)](e['SheetPrintOpenOperation']['id']);}[_0x589e03(0x145)](){const _0x427229=_0x589e03;return this['_injector'][_0x427229(0x142)](a[_0x427229(0x150)])['syncExecuteCommand'](e[_0x427229(0x148)]['id']);}async[_0x589e03(0x132)](){const _0x533428=_0x589e03;return e['hasPrintFacadePermission'](this[_0x533428(0x15d)])?this[_0x533428(0x15d)]['get'](a[_0x533428(0x150)])[_0x533428(0x13a)](e['SheetScreenShotOperation']['id']):!0x1;}}d['FWorkbook'][_0x589e03(0x157)](S);class f extends d[_0x589e03(0x159)]{[_0x589e03(0x160)](){const _0x5e0380=_0x589e03;return e[_0x5e0380(0x13c)](this['_injector'])?this[_0x5e0380(0x15d)]['get'](e[_0x5e0380(0x15a)])[_0x5e0380(0x151)](this['_workbook']['getUnitId'](),this[_0x5e0380(0x136)]['getSheetId'](),this[_0x5e0380(0x14b)]):!0x1;}}d['FRange'][_0x589e03(0x157)](f);class P{get[_0x589e03(0x16a)](){const _0x5a577a=_0x589e03;return _0x5a577a(0x16a);}get[_0x589e03(0x14f)](){const _0x5cb978=_0x589e03;return _0x5cb978(0x14f);}get[_0x589e03(0x155)](){return'BeforeSheetPrintCanceled';}get[_0x589e03(0x138)](){const _0xa1b02=_0x589e03;return _0xa1b02(0x138);}get['SheetPrintConfirmed'](){const _0x4e648f=_0x589e03;return _0x4e648f(0x15e);}get[_0x589e03(0x130)](){const _0x509ab8=_0x589e03;return _0x509ab8(0x130);}}g[_0x589e03(0x15c)][_0x589e03(0x157)](P);class u{get['PrintArea'](){const _0x22e034=_0x589e03;return e[_0x22e034(0x14e)];}get[_0x589e03(0x13f)](){const _0x562d2e=_0x589e03;return c[_0x562d2e(0x13f)];}get[_0x589e03(0x135)](){const _0x4dba16=_0x589e03;return a[_0x4dba16(0x12e)];}get[_0x589e03(0x16b)](){const _0x516892=_0x589e03;return c[_0x516892(0x16b)];}get[_0x589e03(0x131)](){const _0x331a92=_0x589e03;return c[_0x331a92(0x131)];}get[_0x589e03(0x14d)](){const _0x3b11d5=_0x589e03;return c[_0x3b11d5(0x14d)];}get[_0x589e03(0x147)](){const _0x5e0a4a=_0x589e03;return e[_0x5e0a4a(0x147)];}get[_0x589e03(0x167)](){const _0x5dd9eb=_0x589e03;return e[_0x5dd9eb(0x167)];}get['PrintHeaderFooterSymbol'](){return e['PrintHeaderFooterSymbol'];}}g[_0x589e03(0x168)][_0x589e03(0x157)](u);class l extends g[_0x589e03(0x169)]{[_0x589e03(0x16d)](_0x22a7e8){const _0x1f3de1=_0x589e03,_0x2a089a=_0x22a7e8['get'](a[_0x1f3de1(0x150)]);this[_0x1f3de1(0x152)](this['Event'][_0x1f3de1(0x16a)],()=>_0x2a089a[_0x1f3de1(0x165)](_0x5de320=>{const _0x4d8ae1=_0x1f3de1;if(_0x5de320['id']===e[_0x4d8ae1(0x149)]['id']){const _0xa616ac=this[_0x4d8ae1(0x146)]();if(!_0xa616ac)return;const _0x30c16c={'workbook':_0xa616ac,'worksheet':_0xa616ac[_0x4d8ae1(0x166)]()};if(_0x30c16c==null)return;if(this[_0x4d8ae1(0x162)](this[_0x4d8ae1(0x16c)][_0x4d8ae1(0x16a)],_0x30c16c),_0x30c16c[_0x4d8ae1(0x144)])throw new a['CanceledError']();}})),this[_0x1f3de1(0x152)](this[_0x1f3de1(0x16c)]['BeforeSheetPrintConfirm'],()=>_0x2a089a['beforeCommandExecuted'](_0x406f11=>{const _0x57dc22=_0x1f3de1;if(_0x406f11['id']===e['ConfirmSheetPrintOperation']['id']){const _0x44579b=_0x22a7e8[_0x57dc22(0x142)](e[_0x57dc22(0x134)]);if(!this[_0x57dc22(0x146)]())return;const _0x144f4d={'layoutConfig':_0x44579b[_0x57dc22(0x158)],'renderConfig':_0x44579b[_0x57dc22(0x15f)]};if(_0x144f4d==null)return;if(this['fireEvent'](this[_0x57dc22(0x16c)][_0x57dc22(0x14f)],_0x144f4d),_0x144f4d['cancel'])throw new a['CanceledError']();}})),this[_0x1f3de1(0x152)](this[_0x1f3de1(0x16c)][_0x1f3de1(0x155)],()=>_0x2a089a[_0x1f3de1(0x165)](_0x52f89e=>{const _0x42729c=_0x1f3de1;if(_0x52f89e['id']===e[_0x42729c(0x148)]['id']){const _0x570cb7=_0x22a7e8[_0x42729c(0x142)](e[_0x42729c(0x134)]);if(!this['getActiveUniverSheet']())return;const _0x16db47={'layoutConfig':_0x570cb7['layoutConfig'],'renderConfig':_0x570cb7[_0x42729c(0x15f)]};if(_0x16db47==null)return;if(this[_0x42729c(0x162)](this[_0x42729c(0x16c)]['BeforeSheetPrintCanceled'],_0x16db47),_0x16db47[_0x42729c(0x144)])throw new a[(_0x42729c(0x137))]();}})),this['registerEventHandler'](this[_0x1f3de1(0x16c)][_0x1f3de1(0x138)],()=>_0x2a089a[_0x1f3de1(0x13d)](_0x27aad1=>{const _0x683b02=_0x1f3de1;if(_0x27aad1['id']===e['SheetPrintOpenOperation']['id']){const _0x46d2b2=this[_0x683b02(0x146)]();if(!_0x46d2b2)return;const _0x41ca44={'workbook':_0x46d2b2,'worksheet':_0x46d2b2[_0x683b02(0x166)]()};if(_0x41ca44==null)return;this[_0x683b02(0x162)](this[_0x683b02(0x16c)][_0x683b02(0x138)],_0x41ca44);}})),this['registerEventHandler'](this['Event']['SheetPrintConfirmed'],()=>_0x2a089a['onCommandExecuted'](_0x37c09f=>{const _0x2c64b3=_0x1f3de1;if(_0x37c09f['id']===e['ConfirmSheetPrintOperation']['id']){const _0x1b6503=_0x22a7e8[_0x2c64b3(0x142)](e[_0x2c64b3(0x134)]);if(!this[_0x2c64b3(0x146)]())return;const _0x547018={'layoutConfig':_0x1b6503['layoutConfig'],'renderConfig':_0x1b6503['renderConfig']};if(_0x547018==null)return;this['fireEvent'](this[_0x2c64b3(0x16c)][_0x2c64b3(0x15e)],_0x547018);}})),this[_0x1f3de1(0x152)](this[_0x1f3de1(0x16c)][_0x1f3de1(0x130)],()=>_0x2a089a['onCommandExecuted'](_0x333949=>{const _0x31ae1b=_0x1f3de1;if(_0x333949['id']===e[_0x31ae1b(0x148)]['id']){const _0x199a75=_0x22a7e8[_0x31ae1b(0x142)](e[_0x31ae1b(0x134)]);if(!this[_0x31ae1b(0x146)]())return;const _0x26f53d={'layoutConfig':_0x199a75[_0x31ae1b(0x158)],'renderConfig':_0x199a75['renderConfig']};if(_0x26f53d==null)return;this[_0x31ae1b(0x162)](this[_0x31ae1b(0x16c)][_0x31ae1b(0x130)],_0x26f53d);}}));}}g[_0x589e03(0x169)]['extend'](l);function _0x32bd(){const _0x2752e6=['PaperType','6022025QcqIvf','SheetPrintCanceled','PrintScale','saveScreenshotToClipboard','5924262QJlKJB','ISheetPrintManagerService','PrintPaperSize','_worksheet','CanceledError','SheetPrintOpen','625161hLhXwR','executeCommand','updatePrintConfig','hasPrintFacadePermission','onCommandExecuted','updatePrintRenderConfig','PrintAlign','1048lKyqXa','ConfirmSheetPrintOperation','get','6rDkcMz','cancel','closePrintDialog','getActiveUniverSheet','PrintFreeze','CancelSheetPrintOperation','SheetPrintOpenOperation','72PQMBoC','_range','105471qrzarY','PrintDirection','PrintArea','BeforeSheetPrintConfirm','ICommandService','getRangeImage','registerEventHandler','syncExecuteCommand','1584996ehmgEM','BeforeSheetPrintCanceled','print','extend','layoutConfig','FRange','SheetPrintClientService','6498960UoXBsp','FEventName','_injector','SheetPrintConfirmed','renderConfig','getScreenshot','openPrintDialog','fireEvent','194835POxkAc','updateLayoutConfig','beforeCommandExecuted','getActiveSheet','PrintHeaderFooter','FEnum','FUniver','BeforeSheetPrintOpen','PrintPaperMargin','Event','_initialize'];_0x32bd=function(){return _0x2752e6;};return _0x32bd();}
|