@univerjs-pro/sheets-print 0.10.14 → 0.11.0-nightly.202511151013
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/ja-JP.js +1 -0
- 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/ja-JP.js +1 -0
- 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/ja-JP.js +1 -0
- 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/locale/ja-JP.d.ts +3 -0
- package/lib/types/services/print-grid.service.d.ts +17 -0
- package/lib/types/views/components/PrintGridSidebar.d.ts +1 -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/ja-JP.js +1 -0
- 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 _0x42d661=_0x2a44;(function(_0x42b4cb,_0x55bdf5){const _0x3d4fd3=_0x2a44,_0xd213dc=_0x42b4cb();while(!![]){try{const _0x551d1f=parseInt(_0x3d4fd3(0x10c))/0x1*(parseInt(_0x3d4fd3(0x10b))/0x2)+parseInt(_0x3d4fd3(0x108))/0x3*(-parseInt(_0x3d4fd3(0xf1))/0x4)+-parseInt(_0x3d4fd3(0x10a))/0x5*(parseInt(_0x3d4fd3(0x111))/0x6)+-parseInt(_0x3d4fd3(0xed))/0x7*(-parseInt(_0x3d4fd3(0x12a))/0x8)+-parseInt(_0x3d4fd3(0x105))/0x9+-parseInt(_0x3d4fd3(0xfa))/0xa+parseInt(_0x3d4fd3(0x119))/0xb;if(_0x551d1f===_0x55bdf5)break;else _0xd213dc['push'](_0xd213dc['shift']());}catch(_0x15fe0b){_0xd213dc['push'](_0xd213dc['shift']());}}}(_0x5a42,0xc8278));function _0x2a44(_0x1e22dd,_0x433eac){const _0x5a427a=_0x5a42();return _0x2a44=function(_0x2a4405,_0x4aa517){_0x2a4405=_0x2a4405-0xed;let _0x38f0c1=_0x5a427a[_0x2a4405];return _0x38f0c1;},_0x2a44(_0x1e22dd,_0x433eac);}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[_0x42d661(0x112)]{[_0x42d661(0xfb)](_0x44c386){const _0x10a765=_0x42d661;return this[_0x10a765(0xf5)][_0x10a765(0x118)](e[_0x10a765(0x10d)])[_0x10a765(0xef)](_0x44c386),this;}[_0x42d661(0x10e)](_0x43b622){const _0x178d24=_0x42d661;return this[_0x178d24(0xf5)][_0x178d24(0x118)](e[_0x178d24(0x10d)])[_0x178d24(0x117)](_0x43b622),this;}['print'](){const _0x535805=_0x42d661;return this[_0x535805(0xf5)][_0x535805(0x118)](a[_0x535805(0x128)])['syncExecuteCommand'](e[_0x535805(0x11a)]['id']);}['openPrintDialog'](){const _0x440bed=_0x42d661;return this[_0x440bed(0xf5)]['get'](a[_0x440bed(0x128)])['syncExecuteCommand'](e['SheetPrintOpenOperation']['id']);}[_0x42d661(0x129)](){const _0x608e6c=_0x42d661;return this[_0x608e6c(0xf5)]['get'](a[_0x608e6c(0x128)])[_0x608e6c(0xf4)](e[_0x608e6c(0x11f)]['id']);}async['saveScreenshotToClipboard'](){const _0x1dc87c=_0x42d661;return e[_0x1dc87c(0xf7)](this[_0x1dc87c(0xf5)])?this[_0x1dc87c(0xf5)][_0x1dc87c(0x118)](a['ICommandService'])[_0x1dc87c(0xf2)](e[_0x1dc87c(0x122)]['id']):!0x1;}}d[_0x42d661(0x112)][_0x42d661(0x121)](S);class f extends d[_0x42d661(0x113)]{['getScreenshot'](){const _0x2c17e1=_0x42d661;return e['hasPrintFacadePermission'](this[_0x2c17e1(0xf5)])?this[_0x2c17e1(0xf5)][_0x2c17e1(0x118)](e[_0x2c17e1(0x123)])[_0x2c17e1(0xf0)](this['_workbook']['getUnitId'](),this[_0x2c17e1(0x120)][_0x2c17e1(0xfd)](),this[_0x2c17e1(0x101)]):!0x1;}}d[_0x42d661(0x113)][_0x42d661(0x121)](f);class P{get[_0x42d661(0xf8)](){const _0x11b770=_0x42d661;return _0x11b770(0xf8);}get[_0x42d661(0x11c)](){return'BeforeSheetPrintConfirm';}get[_0x42d661(0x106)](){return'BeforeSheetPrintCanceled';}get[_0x42d661(0x124)](){const _0x152be2=_0x42d661;return _0x152be2(0x124);}get[_0x42d661(0xff)](){const _0x50184f=_0x42d661;return _0x50184f(0xff);}get[_0x42d661(0xee)](){const _0x15282f=_0x42d661;return _0x15282f(0xee);}}g[_0x42d661(0x104)][_0x42d661(0x121)](P);class u{get[_0x42d661(0x126)](){return e['PrintArea'];}get[_0x42d661(0xfe)](){return c['PrintAlign'];}get[_0x42d661(0x12d)](){const _0x5c78a8=_0x42d661;return a[_0x5c78a8(0x102)];}get[_0x42d661(0x125)](){return c['PrintPaperMargin'];}get[_0x42d661(0x109)](){return c['PrintScale'];}get[_0x42d661(0x100)](){const _0x25525f=_0x42d661;return c[_0x25525f(0x100)];}get[_0x42d661(0xf3)](){return e['PrintFreeze'];}get[_0x42d661(0x11d)](){const _0xf651c5=_0x42d661;return e[_0xf651c5(0x11d)];}get[_0x42d661(0x12b)](){const _0x58c304=_0x42d661;return e[_0x58c304(0x12b)];}}g[_0x42d661(0xf6)]['extend'](u);function _0x5a42(){const _0x29d259=['updateRenderConfig','get','30975087RnoqoD','ConfirmSheetPrintOperation','getActiveUniverSheet','BeforeSheetPrintConfirm','PrintHeaderFooter','renderConfig','CancelSheetPrintOperation','_worksheet','extend','SheetScreenShotOperation','SheetPrintClientService','SheetPrintOpen','PrintPaperMargin','PrintArea','CanceledError','ICommandService','closePrintDialog','3688qCGNzI','PrintHeaderFooterSymbol','onCommandExecuted','PrintPaperSize','22267OtkfxP','SheetPrintCanceled','updateLayoutConfig','getRangeImage','735412jvSxVT','executeCommand','PrintFreeze','syncExecuteCommand','_injector','FEnum','hasPrintFacadePermission','BeforeSheetPrintOpen','SheetPrintOpenOperation','11928740jYpQXu','updatePrintConfig','beforeCommandExecuted','getSheetId','PrintAlign','SheetPrintConfirmed','PrintDirection','_range','PaperType','cancel','FEventName','12625326aKIBjV','BeforeSheetPrintCanceled','fireEvent','9ksCkun','PrintScale','3940975adOcIu','1528hlutZd','619SmWbfm','ISheetPrintManagerService','updatePrintRenderConfig','registerEventHandler','getActiveSheet','6WMPVDV','FWorkbook','FRange','FUniver','Event','layoutConfig'];_0x5a42=function(){return _0x29d259;};return _0x5a42();}class l extends g[_0x42d661(0x114)]{['_initialize'](_0x244b30){const _0x1fb43a=_0x42d661,_0x13b6c2=_0x244b30[_0x1fb43a(0x118)](a[_0x1fb43a(0x128)]);this[_0x1fb43a(0x10f)](this[_0x1fb43a(0x115)][_0x1fb43a(0xf8)],()=>_0x13b6c2[_0x1fb43a(0xfc)](_0x13c080=>{const _0x79bc0=_0x1fb43a;if(_0x13c080['id']===e[_0x79bc0(0xf9)]['id']){const _0x1cb132=this['getActiveUniverSheet']();if(!_0x1cb132)return;const _0x924af5={'workbook':_0x1cb132,'worksheet':_0x1cb132[_0x79bc0(0x110)]()};if(_0x924af5==null)return;if(this[_0x79bc0(0x107)](this[_0x79bc0(0x115)][_0x79bc0(0xf8)],_0x924af5),_0x924af5[_0x79bc0(0x103)])throw new a['CanceledError']();}})),this[_0x1fb43a(0x10f)](this[_0x1fb43a(0x115)][_0x1fb43a(0x11c)],()=>_0x13b6c2[_0x1fb43a(0xfc)](_0x3465aa=>{const _0x337c9d=_0x1fb43a;if(_0x3465aa['id']===e[_0x337c9d(0x11a)]['id']){const _0x7a15d1=_0x244b30[_0x337c9d(0x118)](e['ISheetPrintManagerService']);if(!this[_0x337c9d(0x11b)]())return;const _0x5dcf35={'layoutConfig':_0x7a15d1[_0x337c9d(0x116)],'renderConfig':_0x7a15d1[_0x337c9d(0x11e)]};if(_0x5dcf35==null)return;if(this[_0x337c9d(0x107)](this['Event'][_0x337c9d(0x11c)],_0x5dcf35),_0x5dcf35[_0x337c9d(0x103)])throw new a[(_0x337c9d(0x127))]();}})),this['registerEventHandler'](this['Event'][_0x1fb43a(0x106)],()=>_0x13b6c2['beforeCommandExecuted'](_0x540bfa=>{const _0x2e972c=_0x1fb43a;if(_0x540bfa['id']===e[_0x2e972c(0x11f)]['id']){const _0x22358a=_0x244b30[_0x2e972c(0x118)](e[_0x2e972c(0x10d)]);if(!this[_0x2e972c(0x11b)]())return;const _0x1167e3={'layoutConfig':_0x22358a[_0x2e972c(0x116)],'renderConfig':_0x22358a[_0x2e972c(0x11e)]};if(_0x1167e3==null)return;if(this[_0x2e972c(0x107)](this['Event'][_0x2e972c(0x106)],_0x1167e3),_0x1167e3['cancel'])throw new a[(_0x2e972c(0x127))]();}})),this[_0x1fb43a(0x10f)](this[_0x1fb43a(0x115)][_0x1fb43a(0x124)],()=>_0x13b6c2[_0x1fb43a(0x12c)](_0x4e5db4=>{const _0x245b06=_0x1fb43a;if(_0x4e5db4['id']===e['SheetPrintOpenOperation']['id']){const _0x581566=this[_0x245b06(0x11b)]();if(!_0x581566)return;const _0xd3a0de={'workbook':_0x581566,'worksheet':_0x581566['getActiveSheet']()};if(_0xd3a0de==null)return;this['fireEvent'](this[_0x245b06(0x115)][_0x245b06(0x124)],_0xd3a0de);}})),this[_0x1fb43a(0x10f)](this[_0x1fb43a(0x115)][_0x1fb43a(0xff)],()=>_0x13b6c2[_0x1fb43a(0x12c)](_0x1da17a=>{const _0x1d5d01=_0x1fb43a;if(_0x1da17a['id']===e[_0x1d5d01(0x11a)]['id']){const _0x4fac9e=_0x244b30[_0x1d5d01(0x118)](e['ISheetPrintManagerService']);if(!this['getActiveUniverSheet']())return;const _0x59f0ca={'layoutConfig':_0x4fac9e[_0x1d5d01(0x116)],'renderConfig':_0x4fac9e['renderConfig']};if(_0x59f0ca==null)return;this['fireEvent'](this['Event'][_0x1d5d01(0xff)],_0x59f0ca);}})),this['registerEventHandler'](this[_0x1fb43a(0x115)][_0x1fb43a(0xee)],()=>_0x13b6c2['onCommandExecuted'](_0x341c5c=>{const _0x5defb8=_0x1fb43a;if(_0x341c5c['id']===e['CancelSheetPrintOperation']['id']){const _0x82d67d=_0x244b30[_0x5defb8(0x118)](e[_0x5defb8(0x10d)]);if(!this[_0x5defb8(0x11b)]())return;const _0x3bd702={'layoutConfig':_0x82d67d[_0x5defb8(0x116)],'renderConfig':_0x82d67d[_0x5defb8(0x11e)]};if(_0x3bd702==null)return;this[_0x5defb8(0x107)](this[_0x5defb8(0x115)][_0x5defb8(0xee)],_0x3bd702);}}));}}g[_0x42d661(0x114)][_0x42d661(0x121)](l);
|