@univerjs-pro/sheets-print 0.11.0 → 0.12.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/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.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/common/const.d.ts +40 -40
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/locale/ja-JP.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 -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 _0x5f1b5d=_0x25c5;(function(_0x4b6d12,_0x1892f7){const _0x348251=_0x25c5,_0x287888=_0x4b6d12();while(!![]){try{const _0xd209b0=-parseInt(_0x348251(0x9d))/0x1+-parseInt(_0x348251(0x9e))/0x2+parseInt(_0x348251(0x7c))/0x3*(parseInt(_0x348251(0x92))/0x4)+parseInt(_0x348251(0x95))/0x5*(-parseInt(_0x348251(0x99))/0x6)+-parseInt(_0x348251(0x7f))/0x7+parseInt(_0x348251(0x8e))/0x8+parseInt(_0x348251(0x7b))/0x9;if(_0xd209b0===_0x1892f7)break;else _0x287888['push'](_0x287888['shift']());}catch(_0xc8c6da){_0x287888['push'](_0x287888['shift']());}}}(_0x5108,0x3a41e));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');function _0x25c5(_0x4c110c,_0x2d726f){const _0x5108c2=_0x5108();return _0x25c5=function(_0x25c563,_0x43e413){_0x25c563=_0x25c563-0x71;let _0x17bf4c=_0x5108c2[_0x25c563];return _0x17bf4c;},_0x25c5(_0x4c110c,_0x2d726f);}class S extends d[_0x5f1b5d(0x86)]{['updatePrintConfig'](_0x27ef7d){const _0x356573=_0x5f1b5d;return this['_injector']['get'](e[_0x356573(0x8a)])[_0x356573(0x8b)](_0x27ef7d),this;}[_0x5f1b5d(0x7d)](_0x4cad40){const _0x251d12=_0x5f1b5d;return this[_0x251d12(0xa3)]['get'](e[_0x251d12(0x8a)])[_0x251d12(0x79)](_0x4cad40),this;}['print'](){const _0x3abdf7=_0x5f1b5d;return this[_0x3abdf7(0xa3)][_0x3abdf7(0x75)](a['ICommandService'])[_0x3abdf7(0xa0)](e[_0x3abdf7(0x97)]['id']);}[_0x5f1b5d(0x9a)](){const _0x4ae569=_0x5f1b5d;return this[_0x4ae569(0xa3)][_0x4ae569(0x75)](a[_0x4ae569(0x84)])[_0x4ae569(0xa0)](e[_0x4ae569(0x88)]['id']);}[_0x5f1b5d(0x7e)](){const _0x119bb8=_0x5f1b5d;return this[_0x119bb8(0xa3)][_0x119bb8(0x75)](a[_0x119bb8(0x84)])[_0x119bb8(0xa0)](e[_0x119bb8(0xa9)]['id']);}async['saveScreenshotToClipboard'](){const _0x5a742d=_0x5f1b5d;return e[_0x5a742d(0x74)](this[_0x5a742d(0xa3)])?this[_0x5a742d(0xa3)][_0x5a742d(0x75)](a['ICommandService'])[_0x5a742d(0x93)](e[_0x5a742d(0x94)]['id']):!0x1;}}d[_0x5f1b5d(0x86)]['extend'](S);class f extends d[_0x5f1b5d(0x87)]{[_0x5f1b5d(0x85)](){const _0x565ccd=_0x5f1b5d;return e['hasPrintFacadePermission'](this[_0x565ccd(0xa3)])?this[_0x565ccd(0xa3)][_0x565ccd(0x75)](e[_0x565ccd(0x78)])[_0x565ccd(0x82)](this['_workbook'][_0x565ccd(0x73)](),this['_worksheet']['getSheetId'](),this[_0x565ccd(0x9b)]):!0x1;}}d[_0x5f1b5d(0x87)]['extend'](f);class P{get[_0x5f1b5d(0xaa)](){return'BeforeSheetPrintOpen';}get['BeforeSheetPrintConfirm'](){const _0x4ce29a=_0x5f1b5d;return _0x4ce29a(0x8f);}get[_0x5f1b5d(0x8d)](){return'BeforeSheetPrintCanceled';}get[_0x5f1b5d(0xa7)](){const _0x1b8e86=_0x5f1b5d;return _0x1b8e86(0xa7);}get[_0x5f1b5d(0x7a)](){const _0x32c0eb=_0x5f1b5d;return _0x32c0eb(0x7a);}get['SheetPrintCanceled'](){const _0xc57fd1=_0x5f1b5d;return _0xc57fd1(0x9c);}}g[_0x5f1b5d(0x80)][_0x5f1b5d(0x72)](P);class u{get['PrintArea'](){return e['PrintArea'];}get[_0x5f1b5d(0xab)](){return c['PrintAlign'];}get[_0x5f1b5d(0x91)](){return a['PaperType'];}get[_0x5f1b5d(0xa4)](){const _0x240b3f=_0x5f1b5d;return c[_0x240b3f(0xa4)];}get[_0x5f1b5d(0xa6)](){const _0x1703b5=_0x5f1b5d;return c[_0x1703b5(0xa6)];}get['PrintDirection'](){const _0x1ea181=_0x5f1b5d;return c[_0x1ea181(0x76)];}get[_0x5f1b5d(0x81)](){const _0x18a040=_0x5f1b5d;return e[_0x18a040(0x81)];}get[_0x5f1b5d(0x83)](){return e['PrintHeaderFooter'];}get[_0x5f1b5d(0x98)](){return e['PrintHeaderFooterSymbol'];}}g[_0x5f1b5d(0xa5)][_0x5f1b5d(0x72)](u);class l extends g[_0x5f1b5d(0xa8)]{[_0x5f1b5d(0x71)](_0x29a5d8){const _0x577e98=_0x5f1b5d,_0x3b135d=_0x29a5d8['get'](a[_0x577e98(0x84)]);this['registerEventHandler'](this['Event'][_0x577e98(0xaa)],()=>_0x3b135d[_0x577e98(0x8c)](_0x1569c7=>{const _0x430551=_0x577e98;if(_0x1569c7['id']===e[_0x430551(0x88)]['id']){const _0x501f66=this[_0x430551(0x96)]();if(!_0x501f66)return;const _0x118392={'workbook':_0x501f66,'worksheet':_0x501f66['getActiveSheet']()};if(_0x118392==null)return;if(this[_0x430551(0xac)](this[_0x430551(0xa1)][_0x430551(0xaa)],_0x118392),_0x118392[_0x430551(0x77)])throw new a[(_0x430551(0x90))]();}})),this[_0x577e98(0x9f)](this[_0x577e98(0xa1)][_0x577e98(0x8f)],()=>_0x3b135d[_0x577e98(0x8c)](_0x116c55=>{const _0x24d5b0=_0x577e98;if(_0x116c55['id']===e[_0x24d5b0(0x97)]['id']){const _0x39fe08=_0x29a5d8['get'](e[_0x24d5b0(0x8a)]);if(!this['getActiveUniverSheet']())return;const _0x34d222={'layoutConfig':_0x39fe08['layoutConfig'],'renderConfig':_0x39fe08[_0x24d5b0(0xa2)]};if(_0x34d222==null)return;if(this['fireEvent'](this[_0x24d5b0(0xa1)][_0x24d5b0(0x8f)],_0x34d222),_0x34d222['cancel'])throw new a[(_0x24d5b0(0x90))]();}})),this['registerEventHandler'](this['Event'][_0x577e98(0x8d)],()=>_0x3b135d['beforeCommandExecuted'](_0x507a65=>{const _0x246b51=_0x577e98;if(_0x507a65['id']===e[_0x246b51(0xa9)]['id']){const _0x4f3307=_0x29a5d8[_0x246b51(0x75)](e[_0x246b51(0x8a)]);if(!this['getActiveUniverSheet']())return;const _0x215d74={'layoutConfig':_0x4f3307['layoutConfig'],'renderConfig':_0x4f3307[_0x246b51(0xa2)]};if(_0x215d74==null)return;if(this['fireEvent'](this[_0x246b51(0xa1)]['BeforeSheetPrintCanceled'],_0x215d74),_0x215d74[_0x246b51(0x77)])throw new a[(_0x246b51(0x90))]();}})),this[_0x577e98(0x9f)](this['Event'][_0x577e98(0xa7)],()=>_0x3b135d[_0x577e98(0x89)](_0x538a75=>{const _0x22510a=_0x577e98;if(_0x538a75['id']===e[_0x22510a(0x88)]['id']){const _0x24195a=this['getActiveUniverSheet']();if(!_0x24195a)return;const _0x94e0df={'workbook':_0x24195a,'worksheet':_0x24195a[_0x22510a(0xae)]()};if(_0x94e0df==null)return;this[_0x22510a(0xac)](this[_0x22510a(0xa1)]['SheetPrintOpen'],_0x94e0df);}})),this['registerEventHandler'](this[_0x577e98(0xa1)][_0x577e98(0x7a)],()=>_0x3b135d[_0x577e98(0x89)](_0x384b05=>{const _0x1d8594=_0x577e98;if(_0x384b05['id']===e[_0x1d8594(0x97)]['id']){const _0x46729c=_0x29a5d8[_0x1d8594(0x75)](e['ISheetPrintManagerService']);if(!this[_0x1d8594(0x96)]())return;const _0x51bf9d={'layoutConfig':_0x46729c[_0x1d8594(0xad)],'renderConfig':_0x46729c[_0x1d8594(0xa2)]};if(_0x51bf9d==null)return;this[_0x1d8594(0xac)](this[_0x1d8594(0xa1)]['SheetPrintConfirmed'],_0x51bf9d);}})),this[_0x577e98(0x9f)](this[_0x577e98(0xa1)][_0x577e98(0x9c)],()=>_0x3b135d[_0x577e98(0x89)](_0x1ad824=>{const _0x328f50=_0x577e98;if(_0x1ad824['id']===e['CancelSheetPrintOperation']['id']){const _0x2df03a=_0x29a5d8[_0x328f50(0x75)](e[_0x328f50(0x8a)]);if(!this[_0x328f50(0x96)]())return;const _0x133a34={'layoutConfig':_0x2df03a['layoutConfig'],'renderConfig':_0x2df03a['renderConfig']};if(_0x133a34==null)return;this[_0x328f50(0xac)](this[_0x328f50(0xa1)]['SheetPrintCanceled'],_0x133a34);}}));}}g['FUniver'][_0x5f1b5d(0x72)](l);function _0x5108(){const _0x5a8c4a=['FUniver','CancelSheetPrintOperation','BeforeSheetPrintOpen','PrintAlign','fireEvent','layoutConfig','getActiveSheet','_initialize','extend','getUnitId','hasPrintFacadePermission','get','PrintDirection','cancel','SheetPrintClientService','updateRenderConfig','SheetPrintConfirmed','5153715VkFUrJ','3BzeobR','updatePrintRenderConfig','closePrintDialog','1085147gomobB','FEventName','PrintFreeze','getRangeImage','PrintHeaderFooter','ICommandService','getScreenshot','FWorkbook','FRange','SheetPrintOpenOperation','onCommandExecuted','ISheetPrintManagerService','updateLayoutConfig','beforeCommandExecuted','BeforeSheetPrintCanceled','2926304MmyzHC','BeforeSheetPrintConfirm','CanceledError','PrintPaperSize','173012LnCriR','executeCommand','SheetScreenShotOperation','360845NmmNPI','getActiveUniverSheet','ConfirmSheetPrintOperation','PrintHeaderFooterSymbol','24jKXjsh','openPrintDialog','_range','SheetPrintCanceled','221217PdNiwz','156280qFZzji','registerEventHandler','syncExecuteCommand','Event','renderConfig','_injector','PrintPaperMargin','FEnum','PrintScale','SheetPrintOpen'];_0x5108=function(){return _0x5a8c4a;};return _0x5108();}
|