@univerjs-pro/engine-formula 1.0.0-rc.0 → 1.0.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/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x1825(){var _0x28a7c8=['308sclDAe','Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.','964HqxqOb','7505hXNjpJ','1370104dVsSXu','20656108hnejdV','syncExecuteCommand','2299344zLEuPC','kind','2108eLtwUZ','extend','formulaQualifier','UNIVER_BASE','7xeNqQm','1146093HFUttU','buildReference','522CbfeVH','90290uRFSBk','removeExternalReference','unitId','FormulaReferenceType','SHEET_RANGE'];_0x1825=function(){return _0x28a7c8;};return _0x1825();}var _0x1cffdc=_0x2908;(function(_0x305892,_0x2fcd14){var _0x16eaaa=_0x2908,_0x5d2041=_0x305892();while(!![]){try{var _0x1fe195=-parseInt(_0x16eaaa(0x110))/0x1*(parseInt(_0x16eaaa(0x101))/0x2)+-parseInt(_0x16eaaa(0x106))/0x3+parseInt(_0x16eaaa(0x10e))/0x4*(parseInt(_0x16eaaa(0x111))/0x5)+parseInt(_0x16eaaa(0x115))/0x6+-parseInt(_0x16eaaa(0x105))/0x7*(-parseInt(_0x16eaaa(0x112))/0x8)+parseInt(_0x16eaaa(0x108))/0x9*(-parseInt(_0x16eaaa(0x109))/0xa)+parseInt(_0x16eaaa(0x113))/0xb;if(_0x1fe195===_0x2fcd14)break;else _0x5d2041['push'](_0x5d2041['shift']());}catch(_0x515728){_0x5d2041['push'](_0x5d2041['shift']());}}}(_0x1825,0x98dcb));function _0x2908(_0x44576c,_0x51a421){_0x44576c=_0x44576c-0x101;var _0x182551=_0x1825();var _0x290804=_0x182551[_0x44576c];return _0x290804;}import{FFormula as _0x2378c3,FFormula as _0x3608a1}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x411dc9,RemoveHostExternalReferenceCommand as _0x26a626,UpsertHostExternalReferenceCommand as _0x171a29,buildFormulaReference as _0x23e317}from'@univerjs-pro/engine-formula';import{FEnum as _0x33923d}from'@univerjs/core/facade';import{UniverInstanceType as _0x371fad}from'@univerjs/core';var c=class extends _0x33923d{get[_0x1cffdc(0x10c)](){return _0x411dc9;}};_0x33923d[_0x1cffdc(0x102)](c);var l=class extends _0x3608a1{[_0x1cffdc(0x107)](_0x403cd2){var _0xe5fb47=_0x1cffdc;let {hostUnitId:_0x2e78a7,unit:_0x46a938,target:_0x1b8d44}=_0x403cd2;if(!_0x2e78a7||!_0x46a938['unitId'])throw Error(_0xe5fb47(0x10f));if(_0x46a938['unitId']!==_0x2e78a7&&!this['_commandService']['syncExecuteCommand'](_0x171a29['id'],{'unitId':_0x2e78a7,'qualifier':_0x46a938[_0xe5fb47(0x103)],'sourceUnitId':_0x46a938[_0xe5fb47(0x10b)],'sourceUnitType':_0x1b8d44[_0xe5fb47(0x116)]===_0x411dc9[_0xe5fb47(0x10d)]?_0x371fad['UNIVER_SHEET']:_0x371fad[_0xe5fb47(0x104)]}))throw Error('Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22'+_0x46a938['formulaQualifier']+'\x22.');return _0x23e317(_0x403cd2);}['upsertExternalReference'](_0xf417fa){return this['_commandService']['syncExecuteCommand'](_0x171a29['id'],_0xf417fa);}[_0x1cffdc(0x10a)](_0x4d6bea){var _0x19f099=_0x1cffdc;return this['_commandService'][_0x19f099(0x114)](_0x26a626['id'],_0x4d6bea);}};_0x3608a1['extend'](l);export{_0x2378c3 as FFormula};
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};