@univerjs-pro/engine-formula 1.0.0-beta.0 → 1.0.0-beta.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
- 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
+ var _0x3c3cf5=_0x540c;(function(_0x147100,_0x1fb22b){var _0x4e206c=_0x540c,_0x451761=_0x147100();while(!![]){try{var _0x367957=parseInt(_0x4e206c(0x1ca))/0x1*(parseInt(_0x4e206c(0x1b8))/0x2)+parseInt(_0x4e206c(0x1cb))/0x3*(-parseInt(_0x4e206c(0x1c6))/0x4)+parseInt(_0x4e206c(0x1bf))/0x5+-parseInt(_0x4e206c(0x1c5))/0x6*(parseInt(_0x4e206c(0x1c3))/0x7)+-parseInt(_0x4e206c(0x1c0))/0x8+parseInt(_0x4e206c(0x1c9))/0x9+parseInt(_0x4e206c(0x1b9))/0xa;if(_0x367957===_0x1fb22b)break;else _0x451761['push'](_0x451761['shift']());}catch(_0x476561){_0x451761['push'](_0x451761['shift']());}}}(_0x55a8,0xdbb27));import{FFormula as _0x4dd8ba,FFormula as _0x5d114c}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x264696,RemoveHostExternalReferenceCommand as _0x3a6d21,UpsertHostExternalReferenceCommand as _0x3dc209,buildFormulaReference as _0x370faa}from'@univerjs-pro/engine-formula';import{FEnum as _0x277364}from'@univerjs/core/facade';import{UniverInstanceType as _0x3debef}from'@univerjs/core';function _0x540c(_0x4d0660,_0x28bba4){_0x4d0660=_0x4d0660-0x1b7;var _0x55a8c8=_0x55a8();var _0x540ccd=_0x55a8c8[_0x4d0660];return _0x540ccd;}var c=class extends _0x277364{get['FormulaReferenceType'](){return _0x264696;}};function _0x55a8(){var _0x2d1f5b=['871888yvLvvB','78PrjwDq','extend','2KnxfCE','31136120NRtpeq','unitId','SHEET_RANGE','UNIVER_BASE','syncExecuteCommand','removeExternalReference','2283400XBuatc','14247152gfFFWX','kind','_commandService','1772295rFiqvC','upsertExternalReference','30UbrowJ','270796NEXMKl','Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22','buildReference','11382228tFpnnq'];_0x55a8=function(){return _0x2d1f5b;};return _0x55a8();}_0x277364[_0x3c3cf5(0x1b7)](c);var l=class extends _0x5d114c{[_0x3c3cf5(0x1c8)](_0x4e6c1b){var _0x293049=_0x3c3cf5;let {hostUnitId:_0x46292d,unit:_0x329892,target:_0x622622}=_0x4e6c1b;if(!_0x46292d||!_0x329892[_0x293049(0x1ba)])throw Error('Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.');if(_0x329892['unitId']!==_0x46292d&&!this['_commandService'][_0x293049(0x1bd)](_0x3dc209['id'],{'unitId':_0x46292d,'qualifier':_0x329892['formulaQualifier'],'sourceUnitId':_0x329892[_0x293049(0x1ba)],'sourceUnitType':_0x622622[_0x293049(0x1c1)]===_0x264696[_0x293049(0x1bb)]?_0x3debef['UNIVER_SHEET']:_0x3debef[_0x293049(0x1bc)]}))throw Error(_0x293049(0x1c7)+_0x329892['formulaQualifier']+'\x22.');return _0x370faa(_0x4e6c1b);}[_0x3c3cf5(0x1c4)](_0x37ac41){var _0x3becdc=_0x3c3cf5;return this[_0x3becdc(0x1c2)]['syncExecuteCommand'](_0x3dc209['id'],_0x37ac41);}[_0x3c3cf5(0x1be)](_0xdafc5d){var _0x3f4acd=_0x3c3cf5;return this['_commandService'][_0x3f4acd(0x1bd)](_0x3a6d21['id'],_0xdafc5d);}};_0x5d114c[_0x3c3cf5(0x1b7)](l);export{_0x4dd8ba as FFormula};