@univerjs-pro/engine-formula 1.0.0-alpha.7 → 1.0.0-alpha.8

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.
Files changed (38) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/es/facade.js +1 -1
  4. package/lib/es/index.js +1 -1
  5. package/lib/facade.js +1 -1
  6. package/lib/index.js +1 -1
  7. package/lib/types/commands/commands/host-external-reference.command.d.ts +43 -0
  8. package/lib/types/commands/commands/persist-formula-last-values.command.d.ts +6 -0
  9. package/lib/types/commands/mutations/set-host-external-reference.mutation.d.ts +7 -0
  10. package/lib/types/controllers/formula-last-value-persistence.controller.d.ts +9 -0
  11. package/lib/types/controllers/host-external-reference-active-dirty.controller.d.ts +5 -0
  12. package/lib/types/controllers/host-external-reference-calculation.controller.d.ts +9 -0
  13. package/lib/types/controllers/host-external-reference.controller.d.ts +5 -0
  14. package/lib/types/engine/dependency-engine/dependency-engine.d.ts +6 -5
  15. package/lib/types/engine/dependency-engine/formula-cell-index.d.ts +3 -2
  16. package/lib/types/engine/dependency-engine/helpers.d.ts +7 -6
  17. package/lib/types/engine/dependency-engine/point-subscription-index.d.ts +3 -2
  18. package/lib/types/engine/dependency-engine/range-index.d.ts +5 -4
  19. package/lib/types/engine/dependency-engine/types.d.ts +3 -20
  20. package/lib/types/engine/formula-dependency.d.ts +2 -2
  21. package/lib/types/facade/f-enum.d.ts +12 -2
  22. package/lib/types/facade/f-formula.d.ts +110 -60
  23. package/lib/types/index.d.ts +16 -1
  24. package/lib/types/models/formula-last-value.d.ts +14 -0
  25. package/lib/types/models/host-external-reference.model.d.ts +61 -0
  26. package/lib/types/services/calculate-formula.service.d.ts +8 -14
  27. package/lib/types/services/dependency-manager.service.d.ts +4 -4
  28. package/lib/types/services/formula-cache-eligibility.service.d.ts +18 -0
  29. package/lib/types/services/formula-last-value-persistence.service.d.ts +18 -0
  30. package/lib/types/services/formula-reference-data.service.d.ts +11 -1
  31. package/lib/types/services/formula-reference-unit.service.d.ts +70 -10
  32. package/lib/types/services/formula-result-presentation.d.ts +22 -0
  33. package/lib/types/services/host-external-reference-data-loader.service.d.ts +31 -0
  34. package/lib/types/services/host-formula-binding.service.d.ts +15 -0
  35. package/lib/types/services/main-formula-reference-data.service.d.ts +1 -0
  36. package/lib/umd/facade.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/package.json +6 -6
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x1e1f08=_0x1748;(function(_0x252432,_0x5bead9){var _0x3b6712=_0x1748,_0x31d8ed=_0x252432();while(!![]){try{var _0x5689a4=parseInt(_0x3b6712(0x15f))/0x1*(-parseInt(_0x3b6712(0x167))/0x2)+-parseInt(_0x3b6712(0x160))/0x3+-parseInt(_0x3b6712(0x168))/0x4*(parseInt(_0x3b6712(0x164))/0x5)+parseInt(_0x3b6712(0x15e))/0x6*(parseInt(_0x3b6712(0x161))/0x7)+-parseInt(_0x3b6712(0x166))/0x8+parseInt(_0x3b6712(0x162))/0x9*(parseInt(_0x3b6712(0x16a))/0xa)+parseInt(_0x3b6712(0x169))/0xb;if(_0x5689a4===_0x5bead9)break;else _0x31d8ed['push'](_0x31d8ed['shift']());}catch(_0xb42c4b){_0x31d8ed['push'](_0x31d8ed['shift']());}}}(_0x21bd,0x6f005));function _0x1748(_0x5e2fa3,_0x4156db){_0x5e2fa3=_0x5e2fa3-0x15e;var _0x21bd68=_0x21bd();var _0x1748b9=_0x21bd68[_0x5e2fa3];return _0x1748b9;}import{FFormula as _0x36b0a7,FFormula as _0x5e4f84}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x56a9f3,buildFormulaReference as _0x4e8541}from'@univerjs-pro/engine-formula';import{FEnum as _0xe85c9b}from'@univerjs/core/facade';function _0x21bd(){var _0x2a6452=['3372JztfVP','2WVJlbM','450039WTqJDk','1603ZvyyAc','3181257fMuDoM','FormulaReferenceType','15LCNuGl','extend','3119576ZCApAC','603670FbAIbP','263076ZQyWls','10559494vkvgDF','20XKKHgv'];_0x21bd=function(){return _0x2a6452;};return _0x21bd();}var a=class extends _0xe85c9b{get[_0x1e1f08(0x163)](){return _0x56a9f3;}};_0xe85c9b['extend'](a);var o=class extends _0x5e4f84{['buildReference'](_0x3562e6){return _0x4e8541(_0x3562e6);}};_0x5e4f84[_0x1e1f08(0x165)](o);export{_0x36b0a7 as FFormula};
1
+ var _0x452424=_0x3039;(function(_0x41e134,_0x38e1af){var _0x3947e0=_0x3039,_0x2235be=_0x41e134();while(!![]){try{var _0x2b50d6=parseInt(_0x3947e0(0x1dd))/0x1*(-parseInt(_0x3947e0(0x1cb))/0x2)+-parseInt(_0x3947e0(0x1dc))/0x3*(-parseInt(_0x3947e0(0x1d4))/0x4)+-parseInt(_0x3947e0(0x1d5))/0x5+-parseInt(_0x3947e0(0x1da))/0x6+-parseInt(_0x3947e0(0x1cd))/0x7+-parseInt(_0x3947e0(0x1db))/0x8*(parseInt(_0x3947e0(0x1cc))/0x9)+parseInt(_0x3947e0(0x1d3))/0xa;if(_0x2b50d6===_0x38e1af)break;else _0x2235be['push'](_0x2235be['shift']());}catch(_0x207e23){_0x2235be['push'](_0x2235be['shift']());}}}(_0x3856,0x67cf9));function _0x3039(_0x27ddc4,_0x478c66){_0x27ddc4=_0x27ddc4-0x1c8;var _0x3856c2=_0x3856();var _0x30397e=_0x3856c2[_0x27ddc4];return _0x30397e;}import{FFormula as _0x403486,FFormula as _0x5cd5ac}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x23c4b0,RemoveHostExternalReferenceCommand as _0xf13a42,UpsertHostExternalReferenceCommand as _0x2025fd,buildFormulaReference as _0x298302}from'@univerjs-pro/engine-formula';import{FEnum as _0x3e5cf6}from'@univerjs/core/facade';import{UniverInstanceType as _0x4c57b8}from'@univerjs/core';var c=class extends _0x3e5cf6{get['FormulaReferenceType'](){return _0x23c4b0;}};_0x3e5cf6[_0x452424(0x1c8)](c);var l=class extends _0x5cd5ac{[_0x452424(0x1ca)](_0xc99095){var _0x2b4a2f=_0x452424;let {hostUnitId:_0xa397a9,unit:_0x5cf15e,target:_0x1adeb1}=_0xc99095;if(!_0xa397a9||!_0x5cf15e['unitId'])throw Error(_0x2b4a2f(0x1d8));if(_0x5cf15e[_0x2b4a2f(0x1cf)]!==_0xa397a9&&!this['_commandService']['syncExecuteCommand'](_0x2025fd['id'],{'unitId':_0xa397a9,'qualifier':_0x5cf15e['formulaQualifier'],'sourceUnitId':_0x5cf15e[_0x2b4a2f(0x1cf)],'sourceUnitType':_0x1adeb1[_0x2b4a2f(0x1d2)]===_0x23c4b0[_0x2b4a2f(0x1d7)]?_0x4c57b8[_0x2b4a2f(0x1d1)]:_0x4c57b8['UNIVER_BASE']}))throw Error(_0x2b4a2f(0x1c9)+_0x5cf15e[_0x2b4a2f(0x1d6)]+'\x22.');return _0x298302(_0xc99095);}['upsertExternalReference'](_0x5af99f){var _0x3fa331=_0x452424;return this['_commandService'][_0x3fa331(0x1d9)](_0x2025fd['id'],_0x5af99f);}[_0x452424(0x1ce)](_0x253748){var _0xd2ac92=_0x452424;return this[_0xd2ac92(0x1d0)][_0xd2ac92(0x1d9)](_0xf13a42['id'],_0x253748);}};_0x5cd5ac[_0x452424(0x1c8)](l);function _0x3856(){var _0x5e0f91=['SHEET_RANGE','Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.','syncExecuteCommand','2233224RkzDOe','8QFMyVE','12ywhKAa','784518IuAWJz','extend','Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22','buildReference','2kOcnzJ','6783066jLTnbn','5351780DuhnNW','removeExternalReference','unitId','_commandService','UNIVER_SHEET','kind','32425660cGXEth','349984bykQul','2462025PDsOyP','formulaQualifier'];_0x3856=function(){return _0x5e0f91;};return _0x3856();}export{_0x403486 as FFormula};