@univerjs-pro/engine-formula 1.0.0 → 1.0.1

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/facade.js CHANGED
@@ -1 +1 @@
1
- var _0xfecbb5=_0x2361;(function(_0x79049a,_0x5638ff){var _0x126c5d=_0x2361,_0x1a66e7=_0x79049a();while(!![]){try{var _0x40825f=-parseInt(_0x126c5d(0x127))/0x1*(parseInt(_0x126c5d(0x136))/0x2)+parseInt(_0x126c5d(0x125))/0x3*(-parseInt(_0x126c5d(0x12f))/0x4)+-parseInt(_0x126c5d(0x12d))/0x5*(-parseInt(_0x126c5d(0x138))/0x6)+-parseInt(_0x126c5d(0x130))/0x7*(parseInt(_0x126c5d(0x135))/0x8)+parseInt(_0x126c5d(0x12a))/0x9+-parseInt(_0x126c5d(0x137))/0xa+parseInt(_0x126c5d(0x133))/0xb*(parseInt(_0x126c5d(0x12e))/0xc);if(_0x40825f===_0x5638ff)break;else _0x1a66e7['push'](_0x1a66e7['shift']());}catch(_0x2eaf70){_0x1a66e7['push'](_0x1a66e7['shift']());}}}(_0x30dd,0x9aabf));function _0x2361(_0x312aa5,_0x178d03){_0x312aa5=_0x312aa5-0x122;var _0x30ddb6=_0x30dd();var _0x23613c=_0x30ddb6[_0x312aa5];return _0x23613c;}import{FFormula as _0x7f7f14,FFormula as _0x126dc8}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x24306a,RemoveHostExternalReferenceCommand as _0x38d716,UpsertHostExternalReferenceCommand as _0x5438c8,buildFormulaReference as _0x449af1}from'@univerjs-pro/engine-formula';import{FEnum as _0x1864fc}from'@univerjs/core/facade';import{UniverInstanceType as _0x22fd27}from'@univerjs/core';var c=class extends _0x1864fc{get[_0xfecbb5(0x122)](){return _0x24306a;}};_0x1864fc[_0xfecbb5(0x12b)](c);function _0x30dd(){var _0x235466=['UNIVER_SHEET','1764999ESYcXB','extend','Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22','165bREsHP','12AJazOm','1280756eYVByN','7HVvKbv','upsertExternalReference','_commandService','30905413xcQtmr','unitId','8341064IjJAiW','25766IlLLIR','8656060lWzAMv','114066RSjluf','FormulaReferenceType','kind','removeExternalReference','6MQQgYZ','syncExecuteCommand','35vCGXgZ','formulaQualifier'];_0x30dd=function(){return _0x235466;};return _0x30dd();}var l=class extends _0x126dc8{['buildReference'](_0x2ba89a){var _0x5a539f=_0xfecbb5;let {hostUnitId:_0x103dfd,unit:_0x50e0d6,target:_0x348d15}=_0x2ba89a;if(!_0x103dfd||!_0x50e0d6[_0x5a539f(0x134)])throw Error('Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.');if(_0x50e0d6[_0x5a539f(0x134)]!==_0x103dfd&&!this[_0x5a539f(0x132)][_0x5a539f(0x126)](_0x5438c8['id'],{'unitId':_0x103dfd,'qualifier':_0x50e0d6[_0x5a539f(0x128)],'sourceUnitId':_0x50e0d6[_0x5a539f(0x134)],'sourceUnitType':_0x348d15[_0x5a539f(0x123)]===_0x24306a['SHEET_RANGE']?_0x22fd27[_0x5a539f(0x129)]:_0x22fd27['UNIVER_BASE']}))throw Error(_0x5a539f(0x12c)+_0x50e0d6[_0x5a539f(0x128)]+'\x22.');return _0x449af1(_0x2ba89a);}[_0xfecbb5(0x131)](_0x541718){var _0x21fb05=_0xfecbb5;return this[_0x21fb05(0x132)][_0x21fb05(0x126)](_0x5438c8['id'],_0x541718);}[_0xfecbb5(0x124)](_0x5a9285){return this['_commandService']['syncExecuteCommand'](_0x38d716['id'],_0x5a9285);}};_0x126dc8[_0xfecbb5(0x12b)](l);export{_0x7f7f14 as FFormula};
1
+ var _0x228850=_0x39a1;(function(_0x3b61c0,_0x55097a){var _0x34498f=_0x39a1,_0x4ccc60=_0x3b61c0();while(!![]){try{var _0x4a37f2=parseInt(_0x34498f(0xff))/0x1+parseInt(_0x34498f(0x112))/0x2*(-parseInt(_0x34498f(0x100))/0x3)+parseInt(_0x34498f(0x109))/0x4*(-parseInt(_0x34498f(0x10f))/0x5)+parseInt(_0x34498f(0xfe))/0x6+-parseInt(_0x34498f(0x108))/0x7*(parseInt(_0x34498f(0x102))/0x8)+-parseInt(_0x34498f(0x10e))/0x9*(parseInt(_0x34498f(0x107))/0xa)+-parseInt(_0x34498f(0x113))/0xb*(-parseInt(_0x34498f(0x10a))/0xc);if(_0x4a37f2===_0x55097a)break;else _0x4ccc60['push'](_0x4ccc60['shift']());}catch(_0x1ae1c3){_0x4ccc60['push'](_0x4ccc60['shift']());}}}(_0x57b6,0xcdbe4));function _0x39a1(_0x306999,_0x41b59e){_0x306999=_0x306999-0xfd;var _0x57b68f=_0x57b6();var _0x39a1a4=_0x57b68f[_0x306999];return _0x39a1a4;}import{FFormula as _0x3dbc89,FFormula as _0x498af4}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x3220f3,RemoveHostExternalReferenceCommand as _0x122d19,UpsertHostExternalReferenceCommand as _0x464d16,buildFormulaReference as _0x240dd2}from'@univerjs-pro/engine-formula';import{FEnum as _0x200be9}from'@univerjs/core/facade';import{UniverInstanceType as _0x552df6}from'@univerjs/core';var c=class extends _0x200be9{get[_0x228850(0x10c)](){return _0x3220f3;}};_0x200be9[_0x228850(0xfd)](c);var l=class extends _0x498af4{['buildReference'](_0x2c611f){var _0x2a5758=_0x228850;let {hostUnitId:_0x311bc6,unit:_0x17349f,target:_0x2611e6}=_0x2c611f;if(!_0x311bc6||!_0x17349f[_0x2a5758(0x110)])throw Error('Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.');if(_0x17349f[_0x2a5758(0x110)]!==_0x311bc6&&!this[_0x2a5758(0x10d)][_0x2a5758(0x103)](_0x464d16['id'],{'unitId':_0x311bc6,'qualifier':_0x17349f[_0x2a5758(0x101)],'sourceUnitId':_0x17349f[_0x2a5758(0x110)],'sourceUnitType':_0x2611e6[_0x2a5758(0x105)]===_0x3220f3[_0x2a5758(0x104)]?_0x552df6[_0x2a5758(0x10b)]:_0x552df6[_0x2a5758(0x106)]}))throw Error('Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22'+_0x17349f[_0x2a5758(0x101)]+'\x22.');return _0x240dd2(_0x2c611f);}['upsertExternalReference'](_0x4f2a3f){var _0x303dd3=_0x228850;return this[_0x303dd3(0x10d)][_0x303dd3(0x103)](_0x464d16['id'],_0x4f2a3f);}[_0x228850(0x111)](_0x171f04){var _0x16cbc2=_0x228850;return this[_0x16cbc2(0x10d)]['syncExecuteCommand'](_0x122d19['id'],_0x171f04);}};_0x498af4[_0x228850(0xfd)](l);export{_0x3dbc89 as FFormula};function _0x57b6(){var _0x25a055=['1188735rbCEKR','48TDRZDQ','formulaQualifier','16eyfKbC','syncExecuteCommand','SHEET_RANGE','kind','UNIVER_BASE','100ROdmwh','345023PMFkwN','717868minLeT','603444GNgwnV','UNIVER_SHEET','FormulaReferenceType','_commandService','457155BJXmZh','10nJDXhX','unitId','removeExternalReference','31952rtJfdZ','143YXRkhz','extend','1328016WnpIwt'];_0x57b6=function(){return _0x25a055;};return _0x57b6();}