@univerjs/engine-formula 0.5.4 → 0.5.5-experimental.20250123-34738ff
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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/es/facade.js +57 -50
- package/lib/es/index.js +25077 -23679
- package/lib/types/facade/f-formula.d.ts +4 -0
- package/lib/types/facade/f-univer.d.ts +3 -0
- package/lib/types/functions/text/t/index.d.ts +4 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +5 -5
- package/LICENSE +0 -176
- package/lib/types/basics/__tests__/date.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/engineering.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/math.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/regex.spec.d.ts +0 -16
- package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +0 -17
- package/lib/types/engine/analysis/__tests__/dependency.spec.d.ts +0 -16
- package/lib/types/engine/analysis/__tests__/lexer-tree-builder.spec.d.ts +0 -16
- package/lib/types/engine/analysis/__tests__/lexer.spec.d.ts +0 -16
- package/lib/types/engine/analysis/__tests__/parser.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/cell.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/compare.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/math-kit.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/numfmt-kit.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/object-compare.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/r1c1-reference.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/reference.spec.d.ts +0 -16
- package/lib/types/engine/utils/__tests__/value-object.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-inverted-index-cache.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-inverted-index-cache2.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-abs.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-acos.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-acosh.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-asin.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-asinh.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-atan.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-atan2.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-atanh.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-cbrt.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-ceil.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-cos.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-divided.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-exp.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-floor.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-log.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-log10.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-minus.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-multiply.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-object.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-plus.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-pow.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-round.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-sin.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-tan.spec.d.ts +0 -16
- package/lib/types/engine/value-object/__tests__/array-value-tanh.spec.d.ts +0 -16
- package/lib/types/functions/__tests__/create-function-test-bed.d.ts +0 -20
- package/lib/types/functions/__tests__/nested-functions.spec.d.ts +0 -16
- package/lib/types/functions/array/array-constrain/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/array/flatten/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/compatibility/betadist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/compatibility/hypgeomdist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/compatibility/lognormdist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/compatibility/negbinomdist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/compatibility/normsdist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/compatibility/rank/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/compatibility/tdist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/daverage/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dcount/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dcounta/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dget/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dmax/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dmin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dproduct/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dstdev/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dstdevp/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dsum/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dvar/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/database/dvarp/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/date/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/datedif/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/datevalue/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/day/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/days/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/days360/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/edate/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/eomonth/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/epochtodate/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/hour/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/isoweeknum/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/minute/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/month/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/networkdays/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/networkdays-intl/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/now/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/second/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/time/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/timevalue/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/to-date/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/today/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/weekday/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/weeknum/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/workday/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/workday-intl/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/year/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/date/yearfrac/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/besseli/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/besselj/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/besselk/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bessely/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bin2dec/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bin2hex/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bin2oct/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bitand/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bitlshift/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bitor/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bitrshift/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/bitxor/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/complex/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/convert/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/dec2bin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/dec2hex/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/dec2oct/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/delta/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/erf/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/erf-precise/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/erfc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/erfc-precise/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/gestep/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/hex2bin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/hex2dec/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/hex2oct/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imabs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imaginary/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imargument/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imconjugate/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imcos/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imcosh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imcot/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imcoth/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imcsc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imcsch/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imdiv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imexp/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imln/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imlog/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imlog10/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imlog2/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/impower/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/improduct/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imreal/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imsec/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imsech/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imsin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imsinh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imsqrt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imsub/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imsum/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imtan/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/imtanh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/oct2bin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/oct2dec/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/engineering/oct2hex/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/accrint/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/accrintm/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/amorlinc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/coupdaybs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/coupdays/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/coupdaysnc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/coupncd/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/coupnum/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/couppcd/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/cumipmt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/cumprinc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/db/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/ddb/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/disc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/dollarde/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/dollarfr/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/duration/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/effect/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/fv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/fvschedule/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/intrate/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/ipmt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/irr/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/ispmt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/mduration/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/mirr/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/nominal/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/nper/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/npv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/oddfprice/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/oddfyield/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/oddlprice/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/oddlyield/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/pduration/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/pmt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/ppmt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/price/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/pricedisc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/pricemat/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/pv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/rate/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/received/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/rri/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/sln/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/syd/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/tbilleq/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/tbillprice/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/tbillyield/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/vdb/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/xirr/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/xnpv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/yield/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/yielddisc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/financial/yieldmat/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/cell/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/error-type/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isbetween/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isblank/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isdate/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isemail/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/iserr/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/iserror/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/iseven/__tests__/iseven.spec.d.ts +0 -16
- package/lib/types/functions/information/isformula/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/islogical/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isna/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isnontext/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isnumber/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isodd/__tests__/isodd.spec.d.ts +0 -16
- package/lib/types/functions/information/isref/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/istext/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/isurl/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/n/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/na/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/sheet/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/sheets/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/information/type/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/and/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/false/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/if/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/iferror/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/ifna/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/ifs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/not/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/or/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/switch/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/true/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/logical/xor/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/address/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/areas/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/choose/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/choosecols/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/chooserows/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/column/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/columns/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/drop/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/expand/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/filter/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/formulatext/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/hlookup/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/hstack/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/lookup/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/match/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/offset/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/row/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/rows/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/sort/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/sortby/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/take/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/tocol/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/torow/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/transpose/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/unique/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/vlookup/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/vstack/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/wrapcols/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/wraprows/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/xlookup/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/lookup/xmatch/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/abs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/acos/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/acosh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/acot/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/acoth/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/arabic/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/asin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/asinh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/atan/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/atan2/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/atanh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/base/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/ceiling/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/ceiling-math/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/ceiling-precise/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/combin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/combina/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/cos/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/cosh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/cot/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/coth/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/csc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/csch/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/decimal/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/degrees/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/even/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/exp/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/fact/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/factdouble/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/floor/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/floor-math/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/floor-precise/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/gcd/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/int/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/lcm/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/ln/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/log/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/log10/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/mdeterm/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/minverse/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/mmult/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/mod/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/mround/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/multinomial/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/munit/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/odd/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/pi/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/power/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/product/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/quotient/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/radians/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/rand/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/randarray/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/randbetween/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/roman/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/round/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/roundbank/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/rounddown/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/roundup/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sec/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sech/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sequence/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/seriessum/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sign/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sin/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sinh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sqrt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sqrtpi/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/subtotal/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sum/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sumif/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sumifs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sumproduct/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sumsq/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sumx2my2/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sumx2py2/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/sumxmy2/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/tan/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/tanh/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/math/trunc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/meta/compare/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/avedev/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/average/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/average-weighted/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/averagea/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/averageif/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/averageifs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/beta-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/beta-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/binom-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/binom-dist-range/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/binom-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/chisq-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/chisq-dist-rt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/chisq-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/chisq-inv-rt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/chisq-test/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/confidence-norm/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/confidence-t/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/correl/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/count/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/counta/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/countblank/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/countif/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/countifs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/covariance-p/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/covariance-s/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/devsq/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/expon-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/f-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/f-dist-rt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/f-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/f-inv-rt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/f-test/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/fisher/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/fisherinv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/forecast/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/frequency/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/gamma/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/gamma-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/gamma-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/gammaln/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/gauss/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/geomean/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/growth/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/harmean/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/hypgeom-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/intercept/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/kurt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/large/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/linest/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/logest/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/lognorm-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/lognorm-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/marginoferror/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/max/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/maxa/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/maxifs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/median/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/min/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/mina/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/minifs/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/mode-mult/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/mode-sngl/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/negbinom-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/norm-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/norm-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/norm-s-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/norm-s-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/pearson/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/percentile-exc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/percentile-inc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/percentrank-exc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/percentrank-inc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/permut/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/permutationa/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/phi/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/poisson-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/prob/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/quartile-exc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/quartile-inc/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/rank-avg/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/rank-eq/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/rsq/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/skew/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/skew-p/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/slope/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/small/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/standardize/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/stdev-p/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/stdev-s/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/stdeva/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/stdevpa/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/steyx/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/t-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/t-dist-2t/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/t-dist-rt/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/t-inv/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/t-inv-2t/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/t-test/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/trend/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/trimmean/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/var-p/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/var-s/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/vara/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/varpa/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/weibull-dist/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/statistical/z-test/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/text/concat/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/text/concatenate/__tests__/index.spec.d.ts +0 -16
- package/lib/types/functions/web/encodeurl/__tests__/index.spec.d.ts +0 -16
- package/lib/types/models/__tests__/create-command-test-bed.d.ts +0 -13
- package/lib/types/models/__tests__/formula-data.model.spec.d.ts +0 -16
package/lib/es/facade.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
|
|
3
|
+
import { Inject, ICommandService, Injector, FBase, IConfigService, FUniver } from "@univerjs/core";
|
|
4
|
+
import { LexerTreeBuilder, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, SetFormulaCalculationNotificationMutation, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT } from "@univerjs/engine-formula";
|
|
5
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __decorateClass = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
6
|
+
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7
|
+
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
8
|
+
return kind && result && __defProp2(target, key, result), result;
|
|
9
|
+
}, "__decorateClass"), __decorateParam = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam"), _a;
|
|
10
|
+
let FFormula = (_a = class extends FBase {
|
|
11
|
+
constructor(_commandService, _injector, _lexerTreeBuilder, _configService) {
|
|
12
|
+
super(), this._commandService = _commandService, this._injector = _injector, this._lexerTreeBuilder = _lexerTreeBuilder, this._configService = _configService, this._initialize();
|
|
11
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
12
17
|
_initialize() {
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
@@ -28,8 +33,8 @@ let s = class extends C {
|
|
|
28
33
|
* const result = moveFormulaRefOffset('sum(a1,b2)',1,1)
|
|
29
34
|
* // result is 'sum(b2,c3)'
|
|
30
35
|
*/
|
|
31
|
-
moveFormulaRefOffset(
|
|
32
|
-
return this._lexerTreeBuilder.moveFormulaRefOffset(
|
|
36
|
+
moveFormulaRefOffset(formulaString, refOffsetX, refOffsetY, ignoreAbsolute) {
|
|
37
|
+
return this._lexerTreeBuilder.moveFormulaRefOffset(formulaString, refOffsetX, refOffsetY, ignoreAbsolute);
|
|
33
38
|
}
|
|
34
39
|
/**
|
|
35
40
|
* Resolves the formula string to a 'node' node
|
|
@@ -37,30 +42,30 @@ let s = class extends C {
|
|
|
37
42
|
* @returns {*} {((string | ISequenceNode)[])}
|
|
38
43
|
* @memberof FFormula
|
|
39
44
|
*/
|
|
40
|
-
sequenceNodesBuilder(
|
|
41
|
-
return this._lexerTreeBuilder.sequenceNodesBuilder(
|
|
45
|
+
sequenceNodesBuilder(formulaString) {
|
|
46
|
+
return this._lexerTreeBuilder.sequenceNodesBuilder(formulaString) || [];
|
|
42
47
|
}
|
|
43
48
|
/**
|
|
44
49
|
* Start the calculation of the formula.
|
|
45
50
|
*/
|
|
46
51
|
executeCalculation() {
|
|
47
|
-
this._commandService.executeCommand(
|
|
52
|
+
this._commandService.executeCommand(SetFormulaCalculationStartMutation.id, { commands: [], forceCalculation: !0 }, { onlyLocal: !0 });
|
|
48
53
|
}
|
|
49
54
|
/**
|
|
50
55
|
* Stop the calculation of the formula.
|
|
51
56
|
*/
|
|
52
57
|
stopCalculation() {
|
|
53
|
-
this._commandService.executeCommand(
|
|
58
|
+
this._commandService.executeCommand(SetFormulaCalculationStopMutation.id, {});
|
|
54
59
|
}
|
|
55
60
|
/**
|
|
56
61
|
* Listening calculation starts.
|
|
57
62
|
* @param callback
|
|
58
63
|
*/
|
|
59
|
-
calculationStart(
|
|
60
|
-
return this._commandService.onCommandExecuted((
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
+
calculationStart(callback) {
|
|
65
|
+
return this._commandService.onCommandExecuted((command) => {
|
|
66
|
+
if (command.id === SetFormulaCalculationStartMutation.id) {
|
|
67
|
+
const params = command.params;
|
|
68
|
+
callback(params.forceCalculation);
|
|
64
69
|
}
|
|
65
70
|
});
|
|
66
71
|
}
|
|
@@ -68,20 +73,20 @@ let s = class extends C {
|
|
|
68
73
|
* Listening calculation ends.
|
|
69
74
|
* @param callback
|
|
70
75
|
*/
|
|
71
|
-
calculationEnd(
|
|
72
|
-
return this._commandService.onCommandExecuted((
|
|
73
|
-
if (
|
|
76
|
+
calculationEnd(callback) {
|
|
77
|
+
return this._commandService.onCommandExecuted((command) => {
|
|
78
|
+
if (command.id !== SetFormulaCalculationNotificationMutation.id)
|
|
74
79
|
return;
|
|
75
|
-
const
|
|
76
|
-
|
|
80
|
+
const params = command.params;
|
|
81
|
+
params.functionsExecutedState !== void 0 && callback(params.functionsExecutedState);
|
|
77
82
|
});
|
|
78
83
|
}
|
|
79
84
|
onCalculationEnd() {
|
|
80
|
-
return new Promise((
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
}, 3e4),
|
|
84
|
-
clearTimeout(
|
|
85
|
+
return new Promise((resolve, reject) => {
|
|
86
|
+
const timer = setTimeout(() => {
|
|
87
|
+
reject(new Error("Calculation end timeout"));
|
|
88
|
+
}, 3e4), disposable = this.calculationEnd(() => {
|
|
89
|
+
clearTimeout(timer), disposable.dispose(), resolve();
|
|
85
90
|
});
|
|
86
91
|
});
|
|
87
92
|
}
|
|
@@ -89,12 +94,12 @@ let s = class extends C {
|
|
|
89
94
|
* Listening calculation processing.
|
|
90
95
|
* @param callback
|
|
91
96
|
*/
|
|
92
|
-
calculationProcessing(
|
|
93
|
-
return this._commandService.onCommandExecuted((
|
|
94
|
-
if (
|
|
97
|
+
calculationProcessing(callback) {
|
|
98
|
+
return this._commandService.onCommandExecuted((command) => {
|
|
99
|
+
if (command.id !== SetFormulaCalculationNotificationMutation.id)
|
|
95
100
|
return;
|
|
96
|
-
const
|
|
97
|
-
|
|
101
|
+
const params = command.params;
|
|
102
|
+
params.stageInfo !== void 0 && callback(params.stageInfo);
|
|
98
103
|
});
|
|
99
104
|
}
|
|
100
105
|
/**
|
|
@@ -108,22 +113,24 @@ let s = class extends C {
|
|
|
108
113
|
* formulaEngine.setMaxIteration(5);
|
|
109
114
|
* ```
|
|
110
115
|
*/
|
|
111
|
-
setMaxIteration(
|
|
112
|
-
this._configService.setConfig(
|
|
116
|
+
setMaxIteration(maxIteration) {
|
|
117
|
+
this._configService.setConfig(ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, maxIteration);
|
|
113
118
|
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
],
|
|
121
|
-
class
|
|
119
|
+
}, __name(_a, "FFormula"), _a);
|
|
120
|
+
FFormula = __decorateClass([
|
|
121
|
+
__decorateParam(0, Inject(ICommandService)),
|
|
122
|
+
__decorateParam(1, Inject(Injector)),
|
|
123
|
+
__decorateParam(2, Inject(LexerTreeBuilder)),
|
|
124
|
+
__decorateParam(3, IConfigService)
|
|
125
|
+
], FFormula);
|
|
126
|
+
const _FUniverEngineFormulaMixin = class _FUniverEngineFormulaMixin extends FUniver {
|
|
122
127
|
getFormula() {
|
|
123
|
-
return this._injector.createInstance(
|
|
128
|
+
return this._injector.createInstance(FFormula);
|
|
124
129
|
}
|
|
125
|
-
}
|
|
126
|
-
|
|
130
|
+
};
|
|
131
|
+
__name(_FUniverEngineFormulaMixin, "FUniverEngineFormulaMixin");
|
|
132
|
+
let FUniverEngineFormulaMixin = _FUniverEngineFormulaMixin;
|
|
133
|
+
FUniver.extend(FUniverEngineFormulaMixin);
|
|
127
134
|
export {
|
|
128
|
-
|
|
135
|
+
FFormula
|
|
129
136
|
};
|