@univerjs-pro/sheets-print 0.5.3 → 0.5.4-nightly.202501131606
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/en-US.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/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/en-US.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/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/types/common/const.d.ts +41 -41
- package/lib/types/common/types.d.ts +87 -1
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-enum.d.ts +56 -0
- package/lib/types/facade/f-event.d.ts +169 -0
- package/lib/types/facade/f-range.d.ts +10 -0
- package/lib/types/facade/f-univer.d.ts +4 -0
- package/lib/types/facade/f-workbook.d.ts +45 -4
- package/lib/types/facade/index.d.ts +6 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/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 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x504dec=_0x36da;(function(_0xadee09,_0x1a52f3){const _0x1b8c33=_0x36da,_0x41f99b=_0xadee09();while(!![]){try{const _0x1ddbe6=-parseInt(_0x1b8c33(0x1f8))/0x1+-parseInt(_0x1b8c33(0x235))/0x2*(-parseInt(_0x1b8c33(0x233))/0x3)+-parseInt(_0x1b8c33(0x230))/0x4+parseInt(_0x1b8c33(0x22c))/0x5*(parseInt(_0x1b8c33(0x216))/0x6)+parseInt(_0x1b8c33(0x20f))/0x7*(-parseInt(_0x1b8c33(0x219))/0x8)+-parseInt(_0x1b8c33(0x212))/0x9+parseInt(_0x1b8c33(0x20e))/0xa*(parseInt(_0x1b8c33(0x237))/0xb);if(_0x1ddbe6===_0x1a52f3)break;else _0x41f99b['push'](_0x41f99b['shift']());}catch(_0x33e2e4){_0x41f99b['push'](_0x41f99b['shift']());}}}(_0x1709,0xde61b));function _0x36da(_0x830072,_0x22e8f7){const _0x1709be=_0x1709();return _0x36da=function(_0x36dadc,_0x5383bc){_0x36dadc=_0x36dadc-0x1f1;let _0x1917eb=_0x1709be[_0x36dadc];return _0x1917eb;},_0x36da(_0x830072,_0x22e8f7);}function _0x1709(){const _0x141f39=['10tHsxOI','renderConfig','36704305jmLzHL','_worksheet','FWorkbook','getUnitId','Event','get','ICommandService','getSheetId','openPrintDialog','1278746EjGcBi','PrintArea','SheetPrintOpenOperation','PrintScale','ConfirmSheetPrintOperation','PrintFreeze','SheetScreenShotOperation','PrintPaperMargin','BeforeSheetPrintCanceled','updateRenderConfig','SheetPrintOpen','updateLayoutConfig','_injector','getScreenshot','FEnum','PrintAlign','onCommandExecuted','PrintDirection','CancelSheetPrintOperation','FEventName','beforeCommandExecuted','getActiveSheet','10VImroG','38801gRsMxx','FUniver','executeCommand','10069965sIsRiP','_range','BeforeSheetPrintConfirm','SheetPrintConfrimed','98106nkjlQy','syncExecuteCommand','@univerjs/core','128CFxneI','BeforeSheetPrintOpen','@univerjs-pro/print','PrintPaperSize','cancel','@univerjs/sheets/facade','hasPrintFacadePermission','ISheetPrintManagerService','SheetPrintClientService','layoutConfig','hasEventCallback','getRangeImage','disposeWithMe','updatePrintRenderConfig','closePrintDialog','saveScreenshotToClipboard','FRange','fireEvent','getActiveUniverSheet','415EQhFpz','SheetPrintCanceled','CanceledError','extend','6436716ZRckbb','PrintHeaderFooterSymbol','_initialize','187491UwPuli','updatePrintConfig'];_0x1709=function(){return _0x141f39;};return _0x1709();}const e=require('@univerjs-pro/sheets-print'),n=require(_0x504dec(0x218)),h=require(_0x504dec(0x21e)),a=require(_0x504dec(0x21b));class S extends h[_0x504dec(0x1f1)]{[_0x504dec(0x234)](_0x5326e1){const _0x4fa49a=_0x504dec;return this['_injector']['get'](e['ISheetPrintManagerService'])[_0x4fa49a(0x203)](_0x5326e1),this;}[_0x504dec(0x226)](_0x40dc82){const _0x36acc7=_0x504dec;return this[_0x36acc7(0x204)][_0x36acc7(0x1f4)](e[_0x36acc7(0x220)])[_0x36acc7(0x201)](_0x40dc82),this;}['print'](){const _0x8f61e5=_0x504dec;return this[_0x8f61e5(0x204)][_0x8f61e5(0x1f4)](n[_0x8f61e5(0x1f5)])[_0x8f61e5(0x217)](e[_0x8f61e5(0x1fc)]['id']);}[_0x504dec(0x1f7)](){const _0x3e9216=_0x504dec;return this['_injector'][_0x3e9216(0x1f4)](n['ICommandService'])[_0x3e9216(0x217)](e[_0x3e9216(0x1fa)]['id']);}[_0x504dec(0x227)](){const _0x470fcf=_0x504dec;return this[_0x470fcf(0x204)][_0x470fcf(0x1f4)](n['ICommandService'])[_0x470fcf(0x217)](e[_0x470fcf(0x20a)]['id']);}async[_0x504dec(0x228)](){const _0x14136f=_0x504dec;return e[_0x14136f(0x21f)](this[_0x14136f(0x204)])?this[_0x14136f(0x204)][_0x14136f(0x1f4)](n['ICommandService'])[_0x14136f(0x211)](e[_0x14136f(0x1fe)]['id']):!0x1;}}h[_0x504dec(0x1f1)][_0x504dec(0x22f)](S);class P extends h['FRange']{[_0x504dec(0x205)](){const _0x6f0f89=_0x504dec;return e[_0x6f0f89(0x21f)](this['_injector'])?this[_0x6f0f89(0x204)][_0x6f0f89(0x1f4)](e[_0x6f0f89(0x221)])[_0x6f0f89(0x224)](this['_workbook'][_0x6f0f89(0x1f2)](),this[_0x6f0f89(0x238)][_0x6f0f89(0x1f6)](),this[_0x6f0f89(0x213)]):!0x1;}}h[_0x504dec(0x229)][_0x504dec(0x22f)](P);class f{get['BeforeSheetPrintOpen'](){return'BeforeSheetPrintOpen';}get['BeforeSheetPrintConfirm'](){const _0x317fff=_0x504dec;return _0x317fff(0x214);}get[_0x504dec(0x200)](){const _0x577429=_0x504dec;return _0x577429(0x200);}get[_0x504dec(0x202)](){const _0x2de3f7=_0x504dec;return _0x2de3f7(0x202);}get[_0x504dec(0x215)](){const _0x4010da=_0x504dec;return _0x4010da(0x215);}get[_0x504dec(0x22d)](){const _0x4efcc2=_0x504dec;return _0x4efcc2(0x22d);}}n[_0x504dec(0x20b)]['extend'](f);class d{get[_0x504dec(0x1f9)](){return e['PrintArea'];}get['PrintAlign'](){const _0xb0a232=_0x504dec;return a[_0xb0a232(0x207)];}get[_0x504dec(0x21c)](){const _0x4176d8=_0x504dec;return a[_0x4176d8(0x21c)];}get[_0x504dec(0x1ff)](){const _0x409525=_0x504dec;return a[_0x409525(0x1ff)];}get[_0x504dec(0x1fb)](){return a['PrintScale'];}get[_0x504dec(0x209)](){const _0x190fd6=_0x504dec;return a[_0x190fd6(0x209)];}get[_0x504dec(0x1fd)](){const _0x174b23=_0x504dec;return e[_0x174b23(0x1fd)];}get['PrintHeaderFooter'](){return e['PrintHeaderFooter'];}get[_0x504dec(0x231)](){return e['PrintHeaderFooterSymbol'];}}n[_0x504dec(0x206)][_0x504dec(0x22f)](d);class u extends n[_0x504dec(0x210)]{[_0x504dec(0x232)](_0x521dcf){const _0x51589a=_0x504dec,_0x3da742=_0x521dcf['get'](n[_0x51589a(0x1f5)]);this[_0x51589a(0x225)](_0x3da742[_0x51589a(0x20c)](_0x22ac0d=>{const _0x2c8cfc=_0x51589a;switch(_0x22ac0d['id']){case e[_0x2c8cfc(0x1fa)]['id']:{if(!this[_0x2c8cfc(0x223)](this[_0x2c8cfc(0x1f3)][_0x2c8cfc(0x21a)]))return;const _0x315476=this[_0x2c8cfc(0x22b)]();if(!_0x315476)return;const _0x14c2a3={'workbook':_0x315476,'worksheet':_0x315476['getActiveSheet']()};if(_0x14c2a3==null)return;if(this['fireEvent'](this[_0x2c8cfc(0x1f3)]['BeforeSheetPrintOpen'],_0x14c2a3),_0x14c2a3[_0x2c8cfc(0x21d)])throw new n[(_0x2c8cfc(0x22e))]();break;}case e[_0x2c8cfc(0x1fc)]['id']:{if(!this['hasEventCallback'](this[_0x2c8cfc(0x1f3)]['BeforeSheetPrintConfirm']))return;const _0x55e1cd=_0x521dcf[_0x2c8cfc(0x1f4)](e[_0x2c8cfc(0x220)]);if(!this['getActiveUniverSheet']())return;const _0x4ef8de={'layoutConfig':_0x55e1cd[_0x2c8cfc(0x222)],'renderConfig':_0x55e1cd[_0x2c8cfc(0x236)]};if(_0x4ef8de==null)return;if(this['fireEvent'](this[_0x2c8cfc(0x1f3)][_0x2c8cfc(0x214)],_0x4ef8de),_0x4ef8de[_0x2c8cfc(0x21d)])throw new n[(_0x2c8cfc(0x22e))]();break;}case e[_0x2c8cfc(0x20a)]['id']:{if(!this[_0x2c8cfc(0x223)](this['Event'][_0x2c8cfc(0x200)]))return;const _0x2b23c7=_0x521dcf[_0x2c8cfc(0x1f4)](e[_0x2c8cfc(0x220)]);if(!this[_0x2c8cfc(0x22b)]())return;const _0x2d9604={'layoutConfig':_0x2b23c7[_0x2c8cfc(0x222)],'renderConfig':_0x2b23c7[_0x2c8cfc(0x236)]};if(_0x2d9604==null)return;if(this[_0x2c8cfc(0x22a)](this[_0x2c8cfc(0x1f3)][_0x2c8cfc(0x200)],_0x2d9604),_0x2d9604[_0x2c8cfc(0x21d)])throw new n[(_0x2c8cfc(0x22e))]();break;}}})),this['disposeWithMe'](_0x3da742[_0x51589a(0x208)](_0x3e4235=>{const _0x2ba9ec=_0x51589a;switch(_0x3e4235['id']){case e[_0x2ba9ec(0x1fa)]['id']:{if(!this['hasEventCallback'](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x202)]))return;const _0x143289=this[_0x2ba9ec(0x22b)]();if(!_0x143289)return;const _0x5ae75c={'workbook':_0x143289,'worksheet':_0x143289[_0x2ba9ec(0x20d)]()};if(_0x5ae75c==null)return;this[_0x2ba9ec(0x22a)](this['Event'][_0x2ba9ec(0x202)],_0x5ae75c);break;}case e[_0x2ba9ec(0x1fc)]['id']:{if(!this[_0x2ba9ec(0x223)](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x215)]))return;const _0x1ae100=_0x521dcf[_0x2ba9ec(0x1f4)](e[_0x2ba9ec(0x220)]);if(!this['getActiveUniverSheet']())return;const _0xd97222={'layoutConfig':_0x1ae100[_0x2ba9ec(0x222)],'renderConfig':_0x1ae100[_0x2ba9ec(0x236)]};if(_0xd97222==null)return;this[_0x2ba9ec(0x22a)](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x215)],_0xd97222);break;}case e[_0x2ba9ec(0x20a)]['id']:{if(!this['hasEventCallback'](this['Event'][_0x2ba9ec(0x22d)]))return;const _0x18b07c=_0x521dcf[_0x2ba9ec(0x1f4)](e['ISheetPrintManagerService']);if(!this[_0x2ba9ec(0x22b)]())return;const _0x389630={'layoutConfig':_0x18b07c[_0x2ba9ec(0x222)],'renderConfig':_0x18b07c['renderConfig']};if(_0x389630==null)return;this[_0x2ba9ec(0x22a)](this[_0x2ba9ec(0x1f3)][_0x2ba9ec(0x22d)],_0x389630);break;}}}));}}n['FUniver'][_0x504dec(0x22f)](u);
|