@univerjs-pro/engine-formula 1.0.0-beta.0 → 1.0.0-beta.2

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 _0x1c99(){var _0x27d559=['kind','5834052RKJzPd','1640760qHPfJY','upsertExternalReference','formulaQualifier','syncExecuteCommand','1Hcafwq','FormulaReferenceType','8NgSDPJ','_commandService','unitId','6193385SfeEfg','UNIVER_BASE','extend','478983lKdsxc','16765670UGHBSq','SHEET_RANGE','removeExternalReference','437770bqeypO','Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.','UNIVER_SHEET','77bqRxzN','487896ALYsQE'];_0x1c99=function(){return _0x27d559;};return _0x1c99();}var _0x2006b8=_0x36c1;function _0x36c1(_0x428742,_0x5ed51f){_0x428742=_0x428742-0x14f;var _0x1c991f=_0x1c99();var _0x36c18f=_0x1c991f[_0x428742];return _0x36c18f;}(function(_0x34dca4,_0x276b0c){var _0x52d0ae=_0x36c1,_0xe6c10a=_0x34dca4();while(!![]){try{var _0x573e0a=parseInt(_0x52d0ae(0x15b))/0x1*(parseInt(_0x52d0ae(0x150))/0x2)+-parseInt(_0x52d0ae(0x163))/0x3*(parseInt(_0x52d0ae(0x15d))/0x4)+-parseInt(_0x52d0ae(0x160))/0x5+parseInt(_0x52d0ae(0x157))/0x6+parseInt(_0x52d0ae(0x153))/0x7*(parseInt(_0x52d0ae(0x154))/0x8)+-parseInt(_0x52d0ae(0x156))/0x9+parseInt(_0x52d0ae(0x164))/0xa;if(_0x573e0a===_0x276b0c)break;else _0xe6c10a['push'](_0xe6c10a['shift']());}catch(_0x33be31){_0xe6c10a['push'](_0xe6c10a['shift']());}}}(_0x1c99,0x9aac6));import{FFormula as _0x24032e,FFormula as _0x236c90}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x2c9503,RemoveHostExternalReferenceCommand as _0x4304e5,UpsertHostExternalReferenceCommand as _0x2ec0c3,buildFormulaReference as _0x1b42c0}from'@univerjs-pro/engine-formula';import{FEnum as _0x205403}from'@univerjs/core/facade';import{UniverInstanceType as _0x2f797d}from'@univerjs/core';var c=class extends _0x205403{get[_0x2006b8(0x15c)](){return _0x2c9503;}};_0x205403[_0x2006b8(0x162)](c);var l=class extends _0x236c90{['buildReference'](_0x225e1c){var _0x58655d=_0x2006b8;let {hostUnitId:_0x1292c2,unit:_0x4d4d5a,target:_0x2f8d6f}=_0x225e1c;if(!_0x1292c2||!_0x4d4d5a[_0x58655d(0x15f)])throw Error(_0x58655d(0x151));if(_0x4d4d5a[_0x58655d(0x15f)]!==_0x1292c2&&!this['_commandService'][_0x58655d(0x15a)](_0x2ec0c3['id'],{'unitId':_0x1292c2,'qualifier':_0x4d4d5a['formulaQualifier'],'sourceUnitId':_0x4d4d5a[_0x58655d(0x15f)],'sourceUnitType':_0x2f8d6f[_0x58655d(0x155)]===_0x2c9503[_0x58655d(0x165)]?_0x2f797d[_0x58655d(0x152)]:_0x2f797d[_0x58655d(0x161)]}))throw Error('Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22'+_0x4d4d5a[_0x58655d(0x159)]+'\x22.');return _0x1b42c0(_0x225e1c);}[_0x2006b8(0x158)](_0x2af095){var _0x1198a4=_0x2006b8;return this[_0x1198a4(0x15e)][_0x1198a4(0x15a)](_0x2ec0c3['id'],_0x2af095);}[_0x2006b8(0x14f)](_0x2ca35e){var _0x673775=_0x2006b8;return this[_0x673775(0x15e)][_0x673775(0x15a)](_0x4304e5['id'],_0x2ca35e);}};_0x236c90[_0x2006b8(0x162)](l);export{_0x24032e as FFormula};
1
+ function _0x4dcc(_0x5db009,_0x2c0978){_0x5db009=_0x5db009-0x14e;var _0x49751b=_0x4975();var _0x4dccc1=_0x49751b[_0x5db009];return _0x4dccc1;}var _0x3a4729=_0x4dcc;(function(_0x27df75,_0xc701da){var _0x34c21d=_0x4dcc,_0x6ce6ad=_0x27df75();while(!![]){try{var _0x1a381a=parseInt(_0x34c21d(0x154))/0x1*(parseInt(_0x34c21d(0x150))/0x2)+-parseInt(_0x34c21d(0x15a))/0x3*(-parseInt(_0x34c21d(0x158))/0x4)+parseInt(_0x34c21d(0x15d))/0x5+parseInt(_0x34c21d(0x151))/0x6*(-parseInt(_0x34c21d(0x15b))/0x7)+-parseInt(_0x34c21d(0x152))/0x8+parseInt(_0x34c21d(0x15e))/0x9+parseInt(_0x34c21d(0x162))/0xa;if(_0x1a381a===_0xc701da)break;else _0x6ce6ad['push'](_0x6ce6ad['shift']());}catch(_0x37aab4){_0x6ce6ad['push'](_0x6ce6ad['shift']());}}}(_0x4975,0x9678a));import{FFormula as _0x43e062,FFormula as _0x2ca8c5}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x5b466f,RemoveHostExternalReferenceCommand as _0x2ed6bd,UpsertHostExternalReferenceCommand as _0x54cc87,buildFormulaReference as _0x2eb7e1}from'@univerjs-pro/engine-formula';import{FEnum as _0x1f8d78}from'@univerjs/core/facade';function _0x4975(){var _0x54e138=['SHEET_RANGE','UNIVER_SHEET','_commandService','UNIVER_BASE','2RXoETw','5716926MVlZIj','8595776tsJRSE','unitId','1216621VhZEZX','Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22','buildReference','removeExternalReference','1748428redwgv','formulaQualifier','3RCkvEx','7zlEtFU','syncExecuteCommand','1586830ukUkrz','6014070RibGXF','FormulaReferenceType','Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.','extend','42990pFTLQw'];_0x4975=function(){return _0x54e138;};return _0x4975();}import{UniverInstanceType as _0x37936e}from'@univerjs/core';var c=class extends _0x1f8d78{get[_0x3a4729(0x15f)](){return _0x5b466f;}};_0x1f8d78[_0x3a4729(0x161)](c);var l=class extends _0x2ca8c5{[_0x3a4729(0x156)](_0xe78854){var _0x2073aa=_0x3a4729;let {hostUnitId:_0x34602a,unit:_0x59e39d,target:_0x2ccd61}=_0xe78854;if(!_0x34602a||!_0x59e39d[_0x2073aa(0x153)])throw Error(_0x2073aa(0x160));if(_0x59e39d['unitId']!==_0x34602a&&!this[_0x2073aa(0x14e)][_0x2073aa(0x15c)](_0x54cc87['id'],{'unitId':_0x34602a,'qualifier':_0x59e39d[_0x2073aa(0x159)],'sourceUnitId':_0x59e39d[_0x2073aa(0x153)],'sourceUnitType':_0x2ccd61['kind']===_0x5b466f[_0x2073aa(0x163)]?_0x37936e[_0x2073aa(0x164)]:_0x37936e[_0x2073aa(0x14f)]}))throw Error(_0x2073aa(0x155)+_0x59e39d[_0x2073aa(0x159)]+'\x22.');return _0x2eb7e1(_0xe78854);}['upsertExternalReference'](_0x2b4805){var _0x3563a3=_0x3a4729;return this[_0x3563a3(0x14e)][_0x3563a3(0x15c)](_0x54cc87['id'],_0x2b4805);}[_0x3a4729(0x157)](_0x328746){var _0x233d4b=_0x3a4729;return this[_0x233d4b(0x14e)][_0x233d4b(0x15c)](_0x2ed6bd['id'],_0x328746);}};_0x2ca8c5['extend'](l);export{_0x43e062 as FFormula};