@univerjs-pro/sheets-print 0.10.14 → 0.11.0
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 +40 -40
- 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 +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/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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d8a91=_0x2ca9;(function(_0xc5ffd1,_0x51a44f){const _0x409c9b=_0x2ca9,_0x3d0722=_0xc5ffd1();while(!![]){try{const _0x19925b=parseInt(_0x409c9b(0x1d3))/0x1*(-parseInt(_0x409c9b(0x1dd))/0x2)+-parseInt(_0x409c9b(0x1ef))/0x3*(-parseInt(_0x409c9b(0x1e3))/0x4)+parseInt(_0x409c9b(0x1e4))/0x5+parseInt(_0x409c9b(0x1f0))/0x6*(parseInt(_0x409c9b(0x1f7))/0x7)+-parseInt(_0x409c9b(0x208))/0x8*(parseInt(_0x409c9b(0x1df))/0x9)+parseInt(_0x409c9b(0x1ea))/0xa+-parseInt(_0x409c9b(0x206))/0xb;if(_0x19925b===_0x51a44f)break;else _0x3d0722['push'](_0x3d0722['shift']());}catch(_0x12af7b){_0x3d0722['push'](_0x3d0722['shift']());}}}(_0x2227,0xdd3d2));function _0x2ca9(_0x45de39,_0x340c33){const _0x2227e4=_0x2227();return _0x2ca9=function(_0x2ca94a,_0x5086c4){_0x2ca94a=_0x2ca94a-0x1cb;let _0x4ade83=_0x2227e4[_0x2ca94a];return _0x4ade83;},_0x2ca9(_0x45de39,_0x340c33);}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[_0x4d8a91(0x1f4)]{[_0x4d8a91(0x1f5)](_0x24f493){const _0x151b9b=_0x4d8a91;return this[_0x151b9b(0x1e0)][_0x151b9b(0x1ee)](e[_0x151b9b(0x1fa)])[_0x151b9b(0x1d4)](_0x24f493),this;}['updatePrintRenderConfig'](_0x22679d){const _0x4f7d0c=_0x4d8a91;return this[_0x4f7d0c(0x1e0)][_0x4f7d0c(0x1ee)](e['ISheetPrintManagerService'])[_0x4f7d0c(0x202)](_0x22679d),this;}[_0x4d8a91(0x1ff)](){const _0x51adc9=_0x4d8a91;return this[_0x51adc9(0x1e0)][_0x51adc9(0x1ee)](a[_0x51adc9(0x1de)])[_0x51adc9(0x200)](e[_0x51adc9(0x1d9)]['id']);}['openPrintDialog'](){const _0xa434ca=_0x4d8a91;return this[_0xa434ca(0x1e0)][_0xa434ca(0x1ee)](a[_0xa434ca(0x1de)])[_0xa434ca(0x200)](e[_0xa434ca(0x1cf)]['id']);}[_0x4d8a91(0x1fd)](){const _0x394a4a=_0x4d8a91;return this[_0x394a4a(0x1e0)][_0x394a4a(0x1ee)](a[_0x394a4a(0x1de)])[_0x394a4a(0x200)](e['CancelSheetPrintOperation']['id']);}async[_0x4d8a91(0x207)](){const _0x3a3fa8=_0x4d8a91;return e[_0x3a3fa8(0x20a)](this[_0x3a3fa8(0x1e0)])?this['_injector'][_0x3a3fa8(0x1ee)](a[_0x3a3fa8(0x1de)])[_0x3a3fa8(0x1cd)](e[_0x3a3fa8(0x1ed)]['id']):!0x1;}}d[_0x4d8a91(0x1f4)]['extend'](S);class f extends d[_0x4d8a91(0x1e7)]{['getScreenshot'](){const _0x10371e=_0x4d8a91;return e['hasPrintFacadePermission'](this[_0x10371e(0x1e0)])?this['_injector'][_0x10371e(0x1ee)](e[_0x10371e(0x1fb)])[_0x10371e(0x1cb)](this[_0x10371e(0x1d0)][_0x10371e(0x1f1)](),this[_0x10371e(0x1f2)]['getSheetId'](),this[_0x10371e(0x1d2)]):!0x1;}}d['FRange']['extend'](f);class P{get[_0x4d8a91(0x205)](){const _0x37f838=_0x4d8a91;return _0x37f838(0x205);}get[_0x4d8a91(0x1d8)](){const _0x14de64=_0x4d8a91;return _0x14de64(0x1d8);}get['BeforeSheetPrintCanceled'](){return'BeforeSheetPrintCanceled';}get['SheetPrintOpen'](){return'SheetPrintOpen';}get['SheetPrintConfirmed'](){const _0x501535=_0x4d8a91;return _0x501535(0x1da);}get[_0x4d8a91(0x209)](){const _0xa6bafc=_0x4d8a91;return _0xa6bafc(0x209);}}g['FEventName']['extend'](P);class u{get[_0x4d8a91(0x1dc)](){const _0x1699d3=_0x4d8a91;return e[_0x1699d3(0x1dc)];}get['PrintAlign'](){const _0x5aa722=_0x4d8a91;return c[_0x5aa722(0x1db)];}get['PrintPaperSize'](){return a['PaperType'];}get[_0x4d8a91(0x1f8)](){const _0x310187=_0x4d8a91;return c[_0x310187(0x1f8)];}get[_0x4d8a91(0x1e6)](){const _0x40b57c=_0x4d8a91;return c[_0x40b57c(0x1e6)];}get['PrintDirection'](){const _0x4fec24=_0x4d8a91;return c[_0x4fec24(0x1e2)];}get[_0x4d8a91(0x1d5)](){const _0x530fbb=_0x4d8a91;return e[_0x530fbb(0x1d5)];}get[_0x4d8a91(0x1fe)](){const _0x5930b8=_0x4d8a91;return e[_0x5930b8(0x1fe)];}get[_0x4d8a91(0x204)](){return e['PrintHeaderFooterSymbol'];}}g[_0x4d8a91(0x1e5)][_0x4d8a91(0x1fc)](u);class l extends g[_0x4d8a91(0x1e1)]{['_initialize'](_0x392ddd){const _0x3de1c4=_0x4d8a91,_0x427c81=_0x392ddd[_0x3de1c4(0x1ee)](a[_0x3de1c4(0x1de)]);this[_0x3de1c4(0x1e8)](this[_0x3de1c4(0x203)]['BeforeSheetPrintOpen'],()=>_0x427c81[_0x3de1c4(0x1ce)](_0x4b576d=>{const _0x51f8ae=_0x3de1c4;if(_0x4b576d['id']===e['SheetPrintOpenOperation']['id']){const _0x61eead=this[_0x51f8ae(0x1ec)]();if(!_0x61eead)return;const _0x1fa670={'workbook':_0x61eead,'worksheet':_0x61eead[_0x51f8ae(0x1f9)]()};if(_0x1fa670==null)return;if(this[_0x51f8ae(0x1e9)](this[_0x51f8ae(0x203)][_0x51f8ae(0x205)],_0x1fa670),_0x1fa670[_0x51f8ae(0x1d6)])throw new a[(_0x51f8ae(0x1cc))]();}})),this['registerEventHandler'](this['Event'][_0x3de1c4(0x1d8)],()=>_0x427c81[_0x3de1c4(0x1ce)](_0x3d7c14=>{const _0x63fa93=_0x3de1c4;if(_0x3d7c14['id']===e['ConfirmSheetPrintOperation']['id']){const _0xa457a7=_0x392ddd[_0x63fa93(0x1ee)](e[_0x63fa93(0x1fa)]);if(!this[_0x63fa93(0x1ec)]())return;const _0x2df089={'layoutConfig':_0xa457a7['layoutConfig'],'renderConfig':_0xa457a7[_0x63fa93(0x201)]};if(_0x2df089==null)return;if(this[_0x63fa93(0x1e9)](this[_0x63fa93(0x203)][_0x63fa93(0x1d8)],_0x2df089),_0x2df089[_0x63fa93(0x1d6)])throw new a[(_0x63fa93(0x1cc))]();}})),this['registerEventHandler'](this[_0x3de1c4(0x203)][_0x3de1c4(0x1eb)],()=>_0x427c81['beforeCommandExecuted'](_0x1a705e=>{const _0x3323cf=_0x3de1c4;if(_0x1a705e['id']===e[_0x3323cf(0x1f6)]['id']){const _0x4765eb=_0x392ddd[_0x3323cf(0x1ee)](e[_0x3323cf(0x1fa)]);if(!this[_0x3323cf(0x1ec)]())return;const _0x3c1242={'layoutConfig':_0x4765eb[_0x3323cf(0x1d1)],'renderConfig':_0x4765eb[_0x3323cf(0x201)]};if(_0x3c1242==null)return;if(this[_0x3323cf(0x1e9)](this[_0x3323cf(0x203)][_0x3323cf(0x1eb)],_0x3c1242),_0x3c1242[_0x3323cf(0x1d6)])throw new a[(_0x3323cf(0x1cc))]();}})),this[_0x3de1c4(0x1e8)](this[_0x3de1c4(0x203)]['SheetPrintOpen'],()=>_0x427c81[_0x3de1c4(0x1d7)](_0x4e40f9=>{const _0x52b737=_0x3de1c4;if(_0x4e40f9['id']===e[_0x52b737(0x1cf)]['id']){const _0x45a77b=this['getActiveUniverSheet']();if(!_0x45a77b)return;const _0x433b69={'workbook':_0x45a77b,'worksheet':_0x45a77b[_0x52b737(0x1f9)]()};if(_0x433b69==null)return;this[_0x52b737(0x1e9)](this['Event'][_0x52b737(0x1f3)],_0x433b69);}})),this[_0x3de1c4(0x1e8)](this[_0x3de1c4(0x203)]['SheetPrintConfirmed'],()=>_0x427c81[_0x3de1c4(0x1d7)](_0xf42991=>{const _0x42647e=_0x3de1c4;if(_0xf42991['id']===e[_0x42647e(0x1d9)]['id']){const _0x1c9523=_0x392ddd[_0x42647e(0x1ee)](e[_0x42647e(0x1fa)]);if(!this['getActiveUniverSheet']())return;const _0x199694={'layoutConfig':_0x1c9523['layoutConfig'],'renderConfig':_0x1c9523[_0x42647e(0x201)]};if(_0x199694==null)return;this['fireEvent'](this['Event'][_0x42647e(0x1da)],_0x199694);}})),this['registerEventHandler'](this[_0x3de1c4(0x203)]['SheetPrintCanceled'],()=>_0x427c81[_0x3de1c4(0x1d7)](_0x40a654=>{const _0x4a9a00=_0x3de1c4;if(_0x40a654['id']===e[_0x4a9a00(0x1f6)]['id']){const _0x599c8f=_0x392ddd[_0x4a9a00(0x1ee)](e[_0x4a9a00(0x1fa)]);if(!this['getActiveUniverSheet']())return;const _0x1ea46d={'layoutConfig':_0x599c8f[_0x4a9a00(0x1d1)],'renderConfig':_0x599c8f[_0x4a9a00(0x201)]};if(_0x1ea46d==null)return;this[_0x4a9a00(0x1e9)](this[_0x4a9a00(0x203)][_0x4a9a00(0x209)],_0x1ea46d);}}));}}g[_0x4d8a91(0x1e1)][_0x4d8a91(0x1fc)](l);function _0x2227(){const _0x19a0f8=['ConfirmSheetPrintOperation','SheetPrintConfirmed','PrintAlign','PrintArea','2nyQcLf','ICommandService','81CHCcQi','_injector','FUniver','PrintDirection','4ZsPmdC','8315385CCvNmv','FEnum','PrintScale','FRange','registerEventHandler','fireEvent','2434870cvjmIo','BeforeSheetPrintCanceled','getActiveUniverSheet','SheetScreenShotOperation','get','1802925ZoKEXg','30HGgyWI','getUnitId','_worksheet','SheetPrintOpen','FWorkbook','updatePrintConfig','CancelSheetPrintOperation','902993gRzEiL','PrintPaperMargin','getActiveSheet','ISheetPrintManagerService','SheetPrintClientService','extend','closePrintDialog','PrintHeaderFooter','print','syncExecuteCommand','renderConfig','updateRenderConfig','Event','PrintHeaderFooterSymbol','BeforeSheetPrintOpen','13175602fsGwnu','saveScreenshotToClipboard','9736sOJnaE','SheetPrintCanceled','hasPrintFacadePermission','getRangeImage','CanceledError','executeCommand','beforeCommandExecuted','SheetPrintOpenOperation','_workbook','layoutConfig','_range','1037605AGkeSo','updateLayoutConfig','PrintFreeze','cancel','onCommandExecuted','BeforeSheetPrintConfirm'];_0x2227=function(){return _0x19a0f8;};return _0x2227();}
|