@univerjs-pro/sheets-print 0.10.13 → 0.10.14-nightly.202511070628
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.css +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/commands/operations/print-grid-sidebar.operation.d.ts +4 -0
- package/lib/types/common/const.d.ts +41 -41
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/controllers/menu.d.ts +5 -2
- package/lib/types/controllers/sheet-print.controller.d.ts +8 -2
- package/lib/types/locale/en-US.d.ts +6 -0
- package/lib/types/services/print-grid.service.d.ts +17 -0
- package/lib/types/views/components/PrintGridSidebar.d.ts +16 -0
- package/lib/types/views/extensions/print-grid.extension.d.ts +12 -0
- 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 _0x1fffb4=_0x11aa;(function(_0x2c062f,_0x4edf5d){const _0x4c7af7=_0x11aa,_0x5e305b=_0x2c062f();while(!![]){try{const _0x3cbf17=parseInt(_0x4c7af7(0x139))/0x1*(parseInt(_0x4c7af7(0x13b))/0x2)+-parseInt(_0x4c7af7(0x130))/0x3*(parseInt(_0x4c7af7(0x125))/0x4)+-parseInt(_0x4c7af7(0x109))/0x5+-parseInt(_0x4c7af7(0x11a))/0x6+-parseInt(_0x4c7af7(0x113))/0x7*(-parseInt(_0x4c7af7(0x10b))/0x8)+parseInt(_0x4c7af7(0x12e))/0x9*(-parseInt(_0x4c7af7(0x112))/0xa)+-parseInt(_0x4c7af7(0x136))/0xb*(-parseInt(_0x4c7af7(0x107))/0xc);if(_0x3cbf17===_0x4edf5d)break;else _0x5e305b['push'](_0x5e305b['shift']());}catch(_0x1cbfa2){_0x5e305b['push'](_0x5e305b['shift']());}}}(_0x17fb,0x7a0e6));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']{[_0x1fffb4(0x11c)](_0xd6cdbc){const _0x31cba8=_0x1fffb4;return this['_injector'][_0x31cba8(0x134)](e[_0x31cba8(0x12a)])[_0x31cba8(0x123)](_0xd6cdbc),this;}[_0x1fffb4(0x11d)](_0x428421){const _0x341e35=_0x1fffb4;return this[_0x341e35(0x140)]['get'](e[_0x341e35(0x12a)])['updateRenderConfig'](_0x428421),this;}[_0x1fffb4(0x105)](){const _0x272f71=_0x1fffb4;return this['_injector'][_0x272f71(0x134)](a[_0x272f71(0x106)])[_0x272f71(0x119)](e[_0x272f71(0x117)]['id']);}['openPrintDialog'](){const _0x29e5c2=_0x1fffb4;return this['_injector'][_0x29e5c2(0x134)](a[_0x29e5c2(0x106)])[_0x29e5c2(0x119)](e[_0x29e5c2(0x137)]['id']);}['closePrintDialog'](){const _0x238acb=_0x1fffb4;return this[_0x238acb(0x140)][_0x238acb(0x134)](a[_0x238acb(0x106)])[_0x238acb(0x119)](e[_0x238acb(0x128)]['id']);}async['saveScreenshotToClipboard'](){const _0x6663c4=_0x1fffb4;return e[_0x6663c4(0x132)](this[_0x6663c4(0x140)])?this['_injector'][_0x6663c4(0x134)](a[_0x6663c4(0x106)])[_0x6663c4(0x10d)](e[_0x6663c4(0x11e)]['id']):!0x1;}}d[_0x1fffb4(0x12f)][_0x1fffb4(0x11f)](S);class f extends d[_0x1fffb4(0x110)]{['getScreenshot'](){const _0x85d721=_0x1fffb4;return e[_0x85d721(0x132)](this[_0x85d721(0x140)])?this[_0x85d721(0x140)][_0x85d721(0x134)](e[_0x85d721(0x133)])['getRangeImage'](this['_workbook']['getUnitId'](),this[_0x85d721(0x10c)][_0x85d721(0x114)](),this[_0x85d721(0x124)]):!0x1;}}d[_0x1fffb4(0x110)]['extend'](f);class P{get[_0x1fffb4(0x12b)](){return'BeforeSheetPrintOpen';}get[_0x1fffb4(0x127)](){const _0x43fef6=_0x1fffb4;return _0x43fef6(0x127);}get['BeforeSheetPrintCanceled'](){const _0x22ce56=_0x1fffb4;return _0x22ce56(0x131);}get[_0x1fffb4(0x104)](){const _0x4d6279=_0x1fffb4;return _0x4d6279(0x104);}get[_0x1fffb4(0x121)](){const _0x1f1e7d=_0x1fffb4;return _0x1f1e7d(0x121);}get['SheetPrintCanceled'](){const _0x461329=_0x1fffb4;return _0x461329(0x118);}}g[_0x1fffb4(0x138)][_0x1fffb4(0x11f)](P);class u{get[_0x1fffb4(0x115)](){return e['PrintArea'];}get[_0x1fffb4(0x120)](){const _0x464ad6=_0x1fffb4;return c[_0x464ad6(0x120)];}get[_0x1fffb4(0x111)](){const _0x4fa2de=_0x1fffb4;return a[_0x4fa2de(0x12c)];}get[_0x1fffb4(0x13f)](){return c['PrintPaperMargin'];}get[_0x1fffb4(0x135)](){return c['PrintScale'];}get[_0x1fffb4(0x126)](){const _0x1697e4=_0x1fffb4;return c[_0x1697e4(0x126)];}get[_0x1fffb4(0x13c)](){const _0x15e056=_0x1fffb4;return e[_0x15e056(0x13c)];}get['PrintHeaderFooter'](){return e['PrintHeaderFooter'];}get['PrintHeaderFooterSymbol'](){const _0x5ebf76=_0x1fffb4;return e[_0x5ebf76(0x12d)];}}g['FEnum'][_0x1fffb4(0x11f)](u);function _0x17fb(){const _0x1d790c=['_range','1568Otytkq','PrintDirection','BeforeSheetPrintConfirm','CancelSheetPrintOperation','registerEventHandler','ISheetPrintManagerService','BeforeSheetPrintOpen','PaperType','PrintHeaderFooterSymbol','120654Qxomgc','FWorkbook','645zSqcHA','BeforeSheetPrintCanceled','hasPrintFacadePermission','SheetPrintClientService','get','PrintScale','33EkIXSe','SheetPrintOpenOperation','FEventName','13hAOikR','onCommandExecuted','105004guMSCt','PrintFreeze','beforeCommandExecuted','CanceledError','PrintPaperMargin','_injector','getActiveUniverSheet','layoutConfig','SheetPrintOpen','print','ICommandService','2160060IsqNed','Event','1006340yXXEeN','fireEvent','8jvkqjG','_worksheet','executeCommand','_initialize','renderConfig','FRange','PrintPaperSize','150ghgNgA','1756013CGGsXI','getSheetId','PrintArea','FUniver','ConfirmSheetPrintOperation','SheetPrintCanceled','syncExecuteCommand','2920920iPuwrN','getActiveSheet','updatePrintConfig','updatePrintRenderConfig','SheetScreenShotOperation','extend','PrintAlign','SheetPrintConfirmed','cancel','updateLayoutConfig'];_0x17fb=function(){return _0x1d790c;};return _0x17fb();}class l extends g[_0x1fffb4(0x116)]{[_0x1fffb4(0x10e)](_0x48783){const _0x420c3d=_0x1fffb4,_0x298768=_0x48783[_0x420c3d(0x134)](a[_0x420c3d(0x106)]);this[_0x420c3d(0x129)](this[_0x420c3d(0x108)][_0x420c3d(0x12b)],()=>_0x298768['beforeCommandExecuted'](_0x5110db=>{const _0x5919f3=_0x420c3d;if(_0x5110db['id']===e[_0x5919f3(0x137)]['id']){const _0x4dafe5=this[_0x5919f3(0x141)]();if(!_0x4dafe5)return;const _0x24ead8={'workbook':_0x4dafe5,'worksheet':_0x4dafe5[_0x5919f3(0x11b)]()};if(_0x24ead8==null)return;if(this['fireEvent'](this['Event'][_0x5919f3(0x12b)],_0x24ead8),_0x24ead8[_0x5919f3(0x122)])throw new a[(_0x5919f3(0x13e))]();}})),this[_0x420c3d(0x129)](this[_0x420c3d(0x108)][_0x420c3d(0x127)],()=>_0x298768[_0x420c3d(0x13d)](_0x2966cd=>{const _0x1ef8d7=_0x420c3d;if(_0x2966cd['id']===e[_0x1ef8d7(0x117)]['id']){const _0x5c780b=_0x48783[_0x1ef8d7(0x134)](e[_0x1ef8d7(0x12a)]);if(!this[_0x1ef8d7(0x141)]())return;const _0x22aea5={'layoutConfig':_0x5c780b['layoutConfig'],'renderConfig':_0x5c780b[_0x1ef8d7(0x10f)]};if(_0x22aea5==null)return;if(this[_0x1ef8d7(0x10a)](this[_0x1ef8d7(0x108)]['BeforeSheetPrintConfirm'],_0x22aea5),_0x22aea5[_0x1ef8d7(0x122)])throw new a[(_0x1ef8d7(0x13e))]();}})),this[_0x420c3d(0x129)](this[_0x420c3d(0x108)][_0x420c3d(0x131)],()=>_0x298768[_0x420c3d(0x13d)](_0x28754b=>{const _0x2144f9=_0x420c3d;if(_0x28754b['id']===e[_0x2144f9(0x128)]['id']){const _0x565b74=_0x48783[_0x2144f9(0x134)](e[_0x2144f9(0x12a)]);if(!this[_0x2144f9(0x141)]())return;const _0x460fc0={'layoutConfig':_0x565b74[_0x2144f9(0x103)],'renderConfig':_0x565b74[_0x2144f9(0x10f)]};if(_0x460fc0==null)return;if(this[_0x2144f9(0x10a)](this[_0x2144f9(0x108)]['BeforeSheetPrintCanceled'],_0x460fc0),_0x460fc0['cancel'])throw new a[(_0x2144f9(0x13e))]();}})),this[_0x420c3d(0x129)](this[_0x420c3d(0x108)][_0x420c3d(0x104)],()=>_0x298768[_0x420c3d(0x13a)](_0x4255e2=>{const _0x17d03b=_0x420c3d;if(_0x4255e2['id']===e[_0x17d03b(0x137)]['id']){const _0x697eb7=this[_0x17d03b(0x141)]();if(!_0x697eb7)return;const _0x4f6148={'workbook':_0x697eb7,'worksheet':_0x697eb7[_0x17d03b(0x11b)]()};if(_0x4f6148==null)return;this[_0x17d03b(0x10a)](this[_0x17d03b(0x108)][_0x17d03b(0x104)],_0x4f6148);}})),this[_0x420c3d(0x129)](this[_0x420c3d(0x108)][_0x420c3d(0x121)],()=>_0x298768[_0x420c3d(0x13a)](_0x1cbb18=>{const _0x31d882=_0x420c3d;if(_0x1cbb18['id']===e[_0x31d882(0x117)]['id']){const _0x944981=_0x48783[_0x31d882(0x134)](e[_0x31d882(0x12a)]);if(!this[_0x31d882(0x141)]())return;const _0x1a6f02={'layoutConfig':_0x944981[_0x31d882(0x103)],'renderConfig':_0x944981[_0x31d882(0x10f)]};if(_0x1a6f02==null)return;this[_0x31d882(0x10a)](this[_0x31d882(0x108)]['SheetPrintConfirmed'],_0x1a6f02);}})),this['registerEventHandler'](this[_0x420c3d(0x108)][_0x420c3d(0x118)],()=>_0x298768['onCommandExecuted'](_0xefea48=>{const _0x4389c5=_0x420c3d;if(_0xefea48['id']===e[_0x4389c5(0x128)]['id']){const _0x40d9c7=_0x48783['get'](e[_0x4389c5(0x12a)]);if(!this[_0x4389c5(0x141)]())return;const _0x7d88f0={'layoutConfig':_0x40d9c7[_0x4389c5(0x103)],'renderConfig':_0x40d9c7[_0x4389c5(0x10f)]};if(_0x7d88f0==null)return;this[_0x4389c5(0x10a)](this[_0x4389c5(0x108)][_0x4389c5(0x118)],_0x7d88f0);}}));}}function _0x11aa(_0x2b8ce6,_0x4b7c86){const _0x17fb5f=_0x17fb();return _0x11aa=function(_0x11aaa7,_0x416d4c){_0x11aaa7=_0x11aaa7-0x103;let _0x43aa89=_0x17fb5f[_0x11aaa7];return _0x43aa89;},_0x11aa(_0x2b8ce6,_0x4b7c86);}g[_0x1fffb4(0x116)][_0x1fffb4(0x11f)](l);
|