@univerjs/engine-formula 0.2.7 → 0.2.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.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +2690 -237
- package/lib/types/basics/calculate.d.ts +0 -1
- package/lib/types/basics/common.d.ts +0 -1
- package/lib/types/basics/date.d.ts +4 -1
- package/lib/types/basics/dirty.d.ts +0 -1
- package/lib/types/basics/engineering.d.ts +25 -0
- package/lib/types/basics/financial.d.ts +18 -0
- package/lib/types/basics/function.d.ts +0 -1
- package/lib/types/basics/match-token.d.ts +0 -1
- package/lib/types/basics/object-class-type.d.ts +0 -1
- package/lib/types/basics/runtime.d.ts +0 -1
- package/lib/types/commands/mutations/register-function.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-array-formula-data.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-defined-name.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-feature-calculation.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-formula-data.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-other-formula.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-super-table.mutation.d.ts +0 -1
- package/lib/types/controller/calculate.controller.d.ts +0 -1
- package/lib/types/controller/formula.controller.d.ts +0 -1
- package/lib/types/controller/set-defined-name.controller.d.ts +0 -1
- package/lib/types/controller/set-dependency.controller.d.ts +0 -1
- package/lib/types/controller/set-feature-calculation.controller.d.ts +0 -1
- package/lib/types/controller/set-other-formula.controller.d.ts +0 -1
- package/lib/types/controller/set-super-table.controller.d.ts +0 -1
- package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +0 -1
- package/lib/types/engine/analysis/lexer-node.d.ts +0 -1
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +0 -1
- package/lib/types/engine/analysis/lexer.d.ts +0 -1
- package/lib/types/engine/analysis/parser.d.ts +0 -1
- package/lib/types/engine/ast-node/ast-root-node.d.ts +0 -1
- package/lib/types/engine/ast-node/base-ast-node-factory.d.ts +0 -1
- package/lib/types/engine/ast-node/base-ast-node.d.ts +0 -1
- package/lib/types/engine/ast-node/function-node.d.ts +0 -1
- package/lib/types/engine/ast-node/lambda-node.d.ts +0 -1
- package/lib/types/engine/ast-node/lambda-parameter-node.d.ts +0 -1
- package/lib/types/engine/ast-node/null-node.d.ts +0 -1
- package/lib/types/engine/ast-node/operator-node.d.ts +0 -1
- package/lib/types/engine/ast-node/prefix-node.d.ts +0 -1
- package/lib/types/engine/ast-node/reference-node.d.ts +0 -1
- package/lib/types/engine/ast-node/suffix-node.d.ts +0 -1
- package/lib/types/engine/ast-node/union-node.d.ts +0 -1
- package/lib/types/engine/ast-node/value-node.d.ts +0 -1
- package/lib/types/engine/dependency/dependency-tree.d.ts +0 -1
- package/lib/types/engine/dependency/formula-dependency.d.ts +0 -1
- package/lib/types/engine/interpreter/interpreter.d.ts +0 -1
- package/lib/types/engine/reference-object/base-reference-object.d.ts +0 -1
- package/lib/types/engine/reference-object/cell-reference-object.d.ts +0 -1
- package/lib/types/engine/reference-object/column-reference-object.d.ts +0 -1
- package/lib/types/engine/reference-object/range-reference-object.d.ts +0 -1
- package/lib/types/engine/reference-object/row-reference-object.d.ts +0 -1
- package/lib/types/engine/reference-object/table-reference-object.d.ts +0 -1
- package/lib/types/engine/utils/array-object.d.ts +0 -1
- package/lib/types/engine/utils/ast-node-tool.d.ts +0 -1
- package/lib/types/engine/utils/cell.d.ts +0 -1
- package/lib/types/engine/utils/check-variant-error.d.ts +20 -0
- package/lib/types/engine/utils/compare.d.ts +0 -1
- package/lib/types/engine/utils/function-definition.d.ts +0 -1
- package/lib/types/engine/utils/get-runtime-feature-cell.d.ts +4 -0
- package/lib/types/engine/utils/node-type.d.ts +0 -1
- package/lib/types/engine/utils/numfmt-kit.d.ts +0 -1
- package/lib/types/engine/utils/object-compare.d.ts +0 -1
- package/lib/types/engine/utils/prefixHandler.d.ts +0 -1
- package/lib/types/engine/utils/r1c1-reference.d.ts +0 -1
- package/lib/types/engine/utils/reference.d.ts +0 -1
- package/lib/types/engine/utils/relative-formula.d.ts +0 -1
- package/lib/types/engine/utils/sequence.d.ts +0 -1
- package/lib/types/engine/utils/value-object.d.ts +0 -1
- package/lib/types/engine/value-object/array-value-object.d.ts +0 -1
- package/lib/types/engine/value-object/base-value-object.d.ts +0 -1
- package/lib/types/engine/value-object/cube-value-object.d.ts +0 -1
- package/lib/types/engine/value-object/lambda-value-object.d.ts +0 -1
- package/lib/types/engine/value-object/primitive-object.d.ts +0 -1
- package/lib/types/functions/__tests__/create-function-test-bed.d.ts +0 -1
- package/lib/types/functions/base-function.d.ts +0 -1
- package/lib/types/functions/compatibility/function-map.d.ts +0 -1
- package/lib/types/functions/custom-function.d.ts +0 -1
- package/lib/types/functions/date/date/index.d.ts +0 -1
- package/lib/types/functions/date/datedif/index.d.ts +0 -1
- package/lib/types/functions/date/datevalue/index.d.ts +0 -1
- package/lib/types/functions/date/day/index.d.ts +0 -1
- package/lib/types/functions/date/days/index.d.ts +0 -1
- package/lib/types/functions/date/days360/index.d.ts +0 -2
- package/lib/types/functions/date/edate/index.d.ts +0 -1
- package/lib/types/functions/date/eomonth/index.d.ts +0 -1
- package/lib/types/functions/date/function-map.d.ts +0 -1
- package/lib/types/functions/date/hour/index.d.ts +0 -1
- package/lib/types/functions/date/isoweeknum/index.d.ts +0 -1
- package/lib/types/functions/date/minute/index.d.ts +0 -1
- package/lib/types/functions/date/month/index.d.ts +0 -1
- package/lib/types/functions/date/networkdays/index.d.ts +0 -1
- package/lib/types/functions/date/networkdays-intl/index.d.ts +0 -1
- package/lib/types/functions/date/now/index.d.ts +0 -1
- package/lib/types/functions/date/second/index.d.ts +0 -1
- package/lib/types/functions/date/time/index.d.ts +0 -1
- package/lib/types/functions/date/timevalue/index.d.ts +0 -1
- package/lib/types/functions/date/today/index.d.ts +0 -1
- package/lib/types/functions/date/weekday/index.d.ts +0 -1
- package/lib/types/functions/date/weeknum/index.d.ts +0 -1
- package/lib/types/functions/date/workday/index.d.ts +0 -1
- package/lib/types/functions/date/workday-intl/index.d.ts +0 -1
- package/lib/types/functions/date/year/index.d.ts +0 -1
- package/lib/types/functions/date/yearfrac/index.d.ts +0 -5
- package/lib/types/functions/engineering/besseli/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/besseli/index.d.ts +8 -0
- package/lib/types/functions/engineering/besselj/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/besselj/index.d.ts +8 -0
- package/lib/types/functions/engineering/besselk/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/besselk/index.d.ts +8 -0
- package/lib/types/functions/engineering/bessely/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bessely/index.d.ts +8 -0
- package/lib/types/functions/engineering/bin2dec/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bin2dec/index.d.ts +8 -0
- package/lib/types/functions/engineering/bin2hex/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bin2hex/index.d.ts +8 -0
- package/lib/types/functions/engineering/bin2oct/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bin2oct/index.d.ts +8 -0
- package/lib/types/functions/engineering/bitand/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bitand/index.d.ts +7 -0
- package/lib/types/functions/engineering/bitlshift/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bitlshift/index.d.ts +7 -0
- package/lib/types/functions/engineering/bitor/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bitor/index.d.ts +7 -0
- package/lib/types/functions/engineering/bitrshift/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bitrshift/index.d.ts +7 -0
- package/lib/types/functions/engineering/bitxor/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/bitxor/index.d.ts +7 -0
- package/lib/types/functions/engineering/complex/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/complex/index.d.ts +8 -0
- package/lib/types/functions/engineering/convert/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/convert/index.d.ts +20 -0
- package/lib/types/functions/engineering/dec2bin/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/dec2bin/index.d.ts +8 -0
- package/lib/types/functions/engineering/dec2hex/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/dec2hex/index.d.ts +8 -0
- package/lib/types/functions/engineering/dec2oct/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/dec2oct/index.d.ts +8 -0
- package/lib/types/functions/engineering/delta/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/delta/index.d.ts +8 -0
- package/lib/types/functions/engineering/erf/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/erf/index.d.ts +8 -0
- package/lib/types/functions/engineering/erf-precise/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/erf-precise/index.d.ts +8 -0
- package/lib/types/functions/engineering/erfc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/erfc/index.d.ts +8 -0
- package/lib/types/functions/engineering/erfc-precise/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/erfc-precise/index.d.ts +8 -0
- package/lib/types/functions/engineering/function-map.d.ts +4 -16
- package/lib/types/functions/engineering/hex2bin/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/hex2bin/index.d.ts +8 -0
- package/lib/types/functions/engineering/hex2dec/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/hex2dec/index.d.ts +8 -0
- package/lib/types/functions/engineering/hex2oct/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/hex2oct/index.d.ts +8 -0
- package/lib/types/functions/engineering/oct2bin/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/oct2bin/index.d.ts +8 -0
- package/lib/types/functions/engineering/oct2dec/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/oct2dec/index.d.ts +8 -0
- package/lib/types/functions/engineering/oct2hex/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/oct2hex/index.d.ts +8 -0
- package/lib/types/functions/financial/accrint/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/accrint/index.d.ts +9 -0
- package/lib/types/functions/financial/accrintm/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/accrintm/index.d.ts +8 -0
- package/lib/types/functions/financial/amorlinc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/amorlinc/index.d.ts +9 -0
- package/lib/types/functions/financial/coupdaybs/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/coupdaybs/index.d.ts +8 -0
- package/lib/types/functions/financial/coupdays/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/coupdays/index.d.ts +8 -0
- package/lib/types/functions/financial/coupdaysnc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/coupdaysnc/index.d.ts +8 -0
- package/lib/types/functions/financial/coupncd/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/coupncd/index.d.ts +8 -0
- package/lib/types/functions/financial/coupnum/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/coupnum/index.d.ts +8 -0
- package/lib/types/functions/financial/couppcd/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/couppcd/index.d.ts +8 -0
- package/lib/types/functions/financial/cumipmt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/cumipmt/index.d.ts +9 -0
- package/lib/types/functions/financial/cumprinc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/cumprinc/index.d.ts +9 -0
- package/lib/types/functions/financial/db/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/db/index.d.ts +8 -0
- package/lib/types/functions/financial/ddb/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/ddb/index.d.ts +8 -0
- package/lib/types/functions/financial/disc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/disc/index.d.ts +8 -0
- package/lib/types/functions/financial/dollarde/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/dollarde/index.d.ts +8 -0
- package/lib/types/functions/financial/dollarfr/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/dollarfr/index.d.ts +8 -0
- package/lib/types/functions/financial/effect/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/effect/index.d.ts +8 -0
- package/lib/types/functions/financial/function-map.d.ts +5 -16
- package/lib/types/functions/financial/fv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/fv/index.d.ts +7 -0
- package/lib/types/functions/financial/fvschedule/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/fvschedule/index.d.ts +8 -0
- package/lib/types/functions/financial/intrate/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/intrate/index.d.ts +8 -0
- package/lib/types/functions/financial/ipmt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/ipmt/index.d.ts +7 -0
- package/lib/types/functions/financial/ispmt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/ispmt/index.d.ts +7 -0
- package/lib/types/functions/financial/nominal/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/nominal/index.d.ts +8 -0
- package/lib/types/functions/financial/nper/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/nper/index.d.ts +7 -0
- package/lib/types/functions/financial/pmt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/pmt/index.d.ts +7 -0
- package/lib/types/functions/financial/ppmt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/ppmt/index.d.ts +7 -0
- package/lib/types/functions/financial/pv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/pv/index.d.ts +7 -0
- package/lib/types/functions/financial/rate/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/rate/index.d.ts +8 -0
- package/lib/types/functions/information/cell/index.d.ts +0 -1
- package/lib/types/functions/information/error-type/index.d.ts +0 -1
- package/lib/types/functions/information/function-map.d.ts +0 -1
- package/lib/types/functions/information/isblank/index.d.ts +0 -1
- package/lib/types/functions/information/iserr/index.d.ts +0 -1
- package/lib/types/functions/information/iserror/index.d.ts +0 -1
- package/lib/types/functions/information/iseven/iseven.d.ts +0 -1
- package/lib/types/functions/information/islogical/index.d.ts +0 -1
- package/lib/types/functions/information/isna/index.d.ts +0 -1
- package/lib/types/functions/information/isnontext/index.d.ts +0 -1
- package/lib/types/functions/information/isnumber/index.d.ts +0 -1
- package/lib/types/functions/information/isodd/isodd.d.ts +0 -1
- package/lib/types/functions/information/isref/index.d.ts +0 -1
- package/lib/types/functions/information/istext/index.d.ts +0 -1
- package/lib/types/functions/information/type/index.d.ts +0 -1
- package/lib/types/functions/logical/and/index.d.ts +0 -1
- package/lib/types/functions/logical/false/index.d.ts +0 -1
- package/lib/types/functions/logical/function-map.d.ts +0 -1
- package/lib/types/functions/logical/if/index.d.ts +0 -1
- package/lib/types/functions/logical/iferror/index.d.ts +0 -1
- package/lib/types/functions/logical/ifna/index.d.ts +0 -1
- package/lib/types/functions/logical/ifs/index.d.ts +0 -1
- package/lib/types/functions/logical/lambda/index.d.ts +0 -1
- package/lib/types/functions/logical/let/index.d.ts +10 -0
- package/lib/types/functions/logical/makearray/index.d.ts +0 -1
- package/lib/types/functions/logical/not/index.d.ts +2 -2
- package/lib/types/functions/logical/or/index.d.ts +0 -1
- package/lib/types/functions/logical/switch/index.d.ts +0 -1
- package/lib/types/functions/logical/true/index.d.ts +0 -1
- package/lib/types/functions/logical/xor/index.d.ts +0 -1
- package/lib/types/functions/lookup/address/index.d.ts +0 -1
- package/lib/types/functions/lookup/areas/index.d.ts +0 -1
- package/lib/types/functions/lookup/choose/index.d.ts +0 -1
- package/lib/types/functions/lookup/choosecols/index.d.ts +0 -1
- package/lib/types/functions/lookup/chooserows/index.d.ts +0 -1
- package/lib/types/functions/lookup/column/index.d.ts +0 -1
- package/lib/types/functions/lookup/columns/index.d.ts +0 -1
- package/lib/types/functions/lookup/filter/index.d.ts +0 -1
- package/lib/types/functions/lookup/function-map.d.ts +0 -1
- package/lib/types/functions/lookup/hlookup/index.d.ts +0 -1
- package/lib/types/functions/lookup/hstack/index.d.ts +0 -1
- package/lib/types/functions/lookup/index/index.d.ts +0 -1
- package/lib/types/functions/lookup/indirect/index.d.ts +0 -1
- package/lib/types/functions/lookup/lookup/index.d.ts +0 -1
- package/lib/types/functions/lookup/match/index.d.ts +0 -1
- package/lib/types/functions/lookup/offset/index.d.ts +0 -1
- package/lib/types/functions/lookup/row/index.d.ts +0 -1
- package/lib/types/functions/lookup/rows/index.d.ts +0 -1
- package/lib/types/functions/lookup/sort/index.d.ts +0 -1
- package/lib/types/functions/lookup/sortby/index.d.ts +0 -1
- package/lib/types/functions/lookup/transpose/index.d.ts +0 -1
- package/lib/types/functions/lookup/unique/index.d.ts +0 -1
- package/lib/types/functions/lookup/vlookup/index.d.ts +0 -1
- package/lib/types/functions/lookup/vstack/index.d.ts +0 -1
- package/lib/types/functions/lookup/xlookup/index.d.ts +0 -1
- package/lib/types/functions/lookup/xmatch/index.d.ts +0 -1
- package/lib/types/functions/math/abs/index.d.ts +0 -1
- package/lib/types/functions/math/acos/index.d.ts +0 -1
- package/lib/types/functions/math/acosh/index.d.ts +0 -1
- package/lib/types/functions/math/acot/index.d.ts +0 -1
- package/lib/types/functions/math/acoth/index.d.ts +0 -1
- package/lib/types/functions/math/asin/index.d.ts +0 -1
- package/lib/types/functions/math/asinh/index.d.ts +0 -1
- package/lib/types/functions/math/atan/index.d.ts +0 -1
- package/lib/types/functions/math/atan2/index.d.ts +0 -1
- package/lib/types/functions/math/atanh/index.d.ts +0 -1
- package/lib/types/functions/math/base/index.d.ts +0 -1
- package/lib/types/functions/math/ceiling/index.d.ts +0 -1
- package/lib/types/functions/math/ceiling-math/index.d.ts +0 -1
- package/lib/types/functions/math/ceiling-precise/index.d.ts +0 -1
- package/lib/types/functions/math/cos/index.d.ts +0 -1
- package/lib/types/functions/math/cosh/index.d.ts +0 -1
- package/lib/types/functions/math/cot/index.d.ts +0 -1
- package/lib/types/functions/math/coth/index.d.ts +0 -1
- package/lib/types/functions/math/csc/index.d.ts +0 -1
- package/lib/types/functions/math/csch/index.d.ts +0 -1
- package/lib/types/functions/math/decimal/index.d.ts +0 -1
- package/lib/types/functions/math/degrees/index.d.ts +0 -1
- package/lib/types/functions/math/even/index.d.ts +0 -1
- package/lib/types/functions/math/exp/index.d.ts +0 -1
- package/lib/types/functions/math/floor/index.d.ts +0 -1
- package/lib/types/functions/math/floor-math/index.d.ts +0 -1
- package/lib/types/functions/math/floor-precise/index.d.ts +0 -1
- package/lib/types/functions/math/function-map.d.ts +0 -1
- package/lib/types/functions/math/ln/index.d.ts +0 -1
- package/lib/types/functions/math/log/index.d.ts +0 -1
- package/lib/types/functions/math/log10/index.d.ts +0 -1
- package/lib/types/functions/math/mod/index.d.ts +0 -1
- package/lib/types/functions/math/mround/index.d.ts +0 -1
- package/lib/types/functions/math/odd/index.d.ts +0 -1
- package/lib/types/functions/math/pi/index.d.ts +0 -1
- package/lib/types/functions/math/power/index.d.ts +0 -1
- package/lib/types/functions/math/product/index.d.ts +0 -1
- package/lib/types/functions/math/radians/index.d.ts +0 -1
- package/lib/types/functions/math/rand/index.d.ts +0 -1
- package/lib/types/functions/math/randarray/index.d.ts +0 -1
- package/lib/types/functions/math/randbetween/index.d.ts +0 -1
- package/lib/types/functions/math/round/index.d.ts +0 -1
- package/lib/types/functions/math/rounddown/index.d.ts +0 -1
- package/lib/types/functions/math/roundup/index.d.ts +0 -1
- package/lib/types/functions/math/sec/index.d.ts +0 -1
- package/lib/types/functions/math/sech/index.d.ts +0 -1
- package/lib/types/functions/math/sin/index.d.ts +0 -1
- package/lib/types/functions/math/sinh/index.d.ts +0 -1
- package/lib/types/functions/math/sqrt/index.d.ts +0 -1
- package/lib/types/functions/math/sqrtpi/index.d.ts +0 -1
- package/lib/types/functions/math/subtotal/index.d.ts +0 -1
- package/lib/types/functions/math/sum/index.d.ts +0 -1
- package/lib/types/functions/math/sumif/index.d.ts +0 -1
- package/lib/types/functions/math/sumifs/index.d.ts +0 -1
- package/lib/types/functions/math/sumproduct/index.d.ts +0 -1
- package/lib/types/functions/math/sumsq/index.d.ts +0 -1
- package/lib/types/functions/math/sumx2my2/index.d.ts +0 -1
- package/lib/types/functions/math/sumx2py2/index.d.ts +0 -1
- package/lib/types/functions/math/sumxmy2/index.d.ts +0 -1
- package/lib/types/functions/math/tan/index.d.ts +0 -1
- package/lib/types/functions/math/tanh/index.d.ts +0 -1
- package/lib/types/functions/math/trunc/index.d.ts +0 -1
- package/lib/types/functions/meta/compare/index.d.ts +0 -1
- package/lib/types/functions/meta/cube/index.d.ts +0 -1
- package/lib/types/functions/meta/divided/index.d.ts +0 -1
- package/lib/types/functions/meta/function-map.d.ts +0 -1
- package/lib/types/functions/meta/minus/index.d.ts +0 -1
- package/lib/types/functions/meta/multiply/index.d.ts +0 -1
- package/lib/types/functions/meta/plus/index.d.ts +0 -1
- package/lib/types/functions/statistical/avedev/index.d.ts +0 -1
- package/lib/types/functions/statistical/average/index.d.ts +0 -1
- package/lib/types/functions/statistical/averagea/index.d.ts +0 -1
- package/lib/types/functions/statistical/averageif/index.d.ts +0 -1
- package/lib/types/functions/statistical/averageifs/index.d.ts +0 -1
- package/lib/types/functions/statistical/count/index.d.ts +0 -1
- package/lib/types/functions/statistical/counta/index.d.ts +0 -1
- package/lib/types/functions/statistical/countblank/index.d.ts +0 -1
- package/lib/types/functions/statistical/countif/index.d.ts +0 -1
- package/lib/types/functions/statistical/countifs/index.d.ts +0 -1
- package/lib/types/functions/statistical/function-map.d.ts +0 -1
- package/lib/types/functions/statistical/max/index.d.ts +0 -1
- package/lib/types/functions/statistical/maxa/index.d.ts +0 -1
- package/lib/types/functions/statistical/maxifs/index.d.ts +0 -1
- package/lib/types/functions/statistical/min/index.d.ts +0 -1
- package/lib/types/functions/statistical/mina/index.d.ts +0 -1
- package/lib/types/functions/statistical/minifs/index.d.ts +0 -1
- package/lib/types/functions/statistical/stdev-p/index.d.ts +0 -1
- package/lib/types/functions/statistical/stdev-s/index.d.ts +0 -1
- package/lib/types/functions/statistical/stdeva/index.d.ts +0 -1
- package/lib/types/functions/statistical/stdevpa/index.d.ts +0 -1
- package/lib/types/functions/statistical/var-p/index.d.ts +0 -1
- package/lib/types/functions/statistical/var-s/index.d.ts +0 -1
- package/lib/types/functions/statistical/vara/index.d.ts +0 -1
- package/lib/types/functions/statistical/varpa/index.d.ts +0 -1
- package/lib/types/functions/text/concat/index.d.ts +0 -1
- package/lib/types/functions/text/concatenate/index.d.ts +0 -1
- package/lib/types/functions/text/function-map.d.ts +0 -1
- package/lib/types/functions/text/len/index.d.ts +0 -1
- package/lib/types/functions/text/lenb/index.d.ts +0 -1
- package/lib/types/functions/text/lower/index.d.ts +0 -1
- package/lib/types/functions/text/rept/index.d.ts +0 -1
- package/lib/types/functions/text/text/index.d.ts +0 -1
- package/lib/types/functions/text/textafter/index.d.ts +0 -1
- package/lib/types/functions/text/textbefore/index.d.ts +0 -1
- package/lib/types/functions/text/textsplit/index.d.ts +0 -1
- package/lib/types/models/__tests__/create-command-test-bed.d.ts +0 -1
- package/lib/types/models/formula-data.model.d.ts +0 -1
- package/lib/types/models/utils/formula-data-util.d.ts +0 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/services/active-dirty-manager.service.d.ts +0 -1
- package/lib/types/services/calculate-formula.service.d.ts +0 -1
- package/lib/types/services/current-data.service.d.ts +0 -1
- package/lib/types/services/defined-names.service.d.ts +0 -1
- package/lib/types/services/dependency-manager.service.d.ts +0 -1
- package/lib/types/services/feature-calculation-manager.service.d.ts +0 -1
- package/lib/types/services/function.service.d.ts +0 -1
- package/lib/types/services/other-formula-manager.service.d.ts +0 -1
- package/lib/types/services/runtime.service.d.ts +1 -1
- package/lib/types/services/super-table.service.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -9
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BooleanNumber, ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IUnitRange, Nullable, ObjectMatrix, Styles } from '@univerjs/core';
|
|
2
|
-
|
|
3
2
|
export declare const ERROR_VALUE_OBJECT_CLASS_TYPE = "errorValueObject";
|
|
4
3
|
export declare const ASYNC_OBJECT_CLASS_TYPE = "asyncObject";
|
|
5
4
|
export declare const REFERENCE_OBJECT_CLASS_TYPE = "referenceObject";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseValueObject, ErrorValueObject } from '../engine/value-object/base-value-object';
|
|
2
|
-
|
|
3
2
|
export declare const DEFAULT_DATE_FORMAT = "yyyy/mm/dd;@";
|
|
4
3
|
export declare const DEFAULT_NOW_FORMAT = "yyyy/mm/dd hh:mm";
|
|
5
4
|
export declare const DEFAULT_TIME_FORMAT = "h:mm A/P";
|
|
@@ -42,3 +41,7 @@ export declare function countWorkingDays(startDateSerialNumber: number, endDateS
|
|
|
42
41
|
export declare function getDateSerialNumberByWorkingDays(startDateSerialNumber: number, workingDays: number, weekend?: number | string, holidays?: number[]): (number | ErrorValueObject);
|
|
43
42
|
export declare function getDateSerialNumberByObject(serialNumberObject: BaseValueObject): (ErrorValueObject | number);
|
|
44
43
|
export declare function getWeekDayByDateSerialNumber(dateSerialNumber: number): number;
|
|
44
|
+
export declare function getTwoDateDaysByBasis(startDateSerialNumber: number, endDateSerialNumber: number, basis: number): {
|
|
45
|
+
days: number;
|
|
46
|
+
yearDays: number;
|
|
47
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace BESSEL {
|
|
17
|
+
const besselj: (x: number, n: number) => number;
|
|
18
|
+
const bessely: (x: number, n: number) => any;
|
|
19
|
+
const besseli: (x: number, n: number) => number;
|
|
20
|
+
const besselk: (x: number, n: number) => any;
|
|
21
|
+
}
|
|
22
|
+
export declare function isValidBinaryNumber(number: string): boolean;
|
|
23
|
+
export declare function isValidOctalNumber(number: string): boolean;
|
|
24
|
+
export declare function isValidHexadecimalNumber(number: string): boolean;
|
|
25
|
+
export declare function erf(x: number): number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare function calculatePMT(rate: number, nper: number, pv: number, fv: number, type: number): number;
|
|
17
|
+
export declare function calculateFV(rate: number, nper: number, pmt: number, pv: number, type: number): number;
|
|
18
|
+
export declare function calculateIPMT(rate: number, per: number, nper: number, pv: number, fv: number, type: number): number;
|
|
@@ -15,7 +15,6 @@ import { FUNCTION_NAMES_STATISTICAL } from '../functions/statistical/function-na
|
|
|
15
15
|
import { FUNCTION_NAMES_TEXT } from '../functions/text/function-names';
|
|
16
16
|
import { FUNCTION_NAMES_UNIVER } from '../functions/univer/function-names';
|
|
17
17
|
import { FUNCTION_NAMES_WEB } from '../functions/web/function-names';
|
|
18
|
-
|
|
19
18
|
/**
|
|
20
19
|
* Function type, refer to https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb
|
|
21
20
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { compareToken, matchToken, operatorToken, prefixToken, suffixToken } from './token';
|
|
2
|
-
|
|
3
2
|
export declare const FORMULA_LEXER_TOKENS: (operatorToken | suffixToken | compareToken | matchToken | prefixToken)[];
|
|
4
3
|
export declare function isFormulaLexerToken(str: string): boolean;
|
|
5
4
|
export declare function includeFormulaLexerToken(str: string): boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { IArrayFormulaUnitCellType, IRuntimeUnitDataPrimitiveType, IRuntimeUnitDataType } from './common';
|
|
2
|
-
|
|
3
2
|
export declare function convertUnitDataToRuntime(unitData: IArrayFormulaUnitCellType): IRuntimeUnitDataType;
|
|
4
3
|
export declare function convertRuntimeToUnitData(unitData: IRuntimeUnitDataType): IRuntimeUnitDataPrimitiveType;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IMutation } from '@univerjs/core';
|
|
2
2
|
import { IArrayFormulaRangeType, IArrayFormulaUnitCellType } from '../../basics/common';
|
|
3
|
-
|
|
4
3
|
export interface ISetArrayFormulaDataMutationParams {
|
|
5
4
|
arrayFormulaRange: IArrayFormulaRangeType;
|
|
6
5
|
arrayFormulaCellData: IArrayFormulaUnitCellType;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IMutation } from '@univerjs/core';
|
|
2
2
|
import { IFeatureCalculationManagerParam } from '../../services/feature-calculation-manager.service';
|
|
3
|
-
|
|
4
3
|
export interface ISetFeatureCalculationMutation {
|
|
5
4
|
featureId: string;
|
|
6
5
|
calculationParam: IFeatureCalculationManagerParam;
|
|
@@ -2,7 +2,6 @@ import { IExecutionOptions, IMutation, Nullable } from '@univerjs/core';
|
|
|
2
2
|
import { IRuntimeOtherUnitDataType, IRuntimeUnitDataPrimitiveType } from '../../basics/common';
|
|
3
3
|
import { FormulaExecutedStateType, IExecutionInProgressParams } from '../../services/runtime.service';
|
|
4
4
|
import { IFormulaDirtyData } from '../../services/current-data.service';
|
|
5
|
-
|
|
6
5
|
export interface ISetFormulaCalculationStartMutation extends IFormulaDirtyData {
|
|
7
6
|
options: Nullable<IExecutionOptions>;
|
|
8
7
|
forceCalculation: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IMutation } from '@univerjs/core';
|
|
2
2
|
import { ISuperTable } from '../../basics/common';
|
|
3
3
|
import { ISuperTableOptionParam } from '../../services/super-table.service';
|
|
4
|
-
|
|
5
4
|
export interface ISetSuperTableMutationSearchParam {
|
|
6
5
|
unitId: string;
|
|
7
6
|
tableName: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { FormulaDataModel } from '../models/formula-data.model';
|
|
3
3
|
import { CalculateFormulaService } from '../services/calculate-formula.service';
|
|
4
|
-
|
|
5
4
|
export declare class CalculateController extends Disposable {
|
|
6
5
|
private readonly _commandService;
|
|
7
6
|
private readonly _calculateFormulaService;
|
|
@@ -3,7 +3,6 @@ import { DataSyncPrimaryController } from '@univerjs/rpc';
|
|
|
3
3
|
import { IFunctionNames } from '../basics/function';
|
|
4
4
|
import { BaseFunction } from '../functions/base-function';
|
|
5
5
|
import { IFunctionService } from '../services/function.service';
|
|
6
|
-
|
|
7
6
|
export declare class FormulaController extends Disposable {
|
|
8
7
|
private _function;
|
|
9
8
|
private readonly _commandService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { IDefinedNamesService } from '../services/defined-names.service';
|
|
3
|
-
|
|
4
3
|
export declare class SetDefinedNameController extends Disposable {
|
|
5
4
|
private readonly _commandService;
|
|
6
5
|
private readonly _definedNamesService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { IFeatureCalculationManagerService } from '../services/feature-calculation-manager.service';
|
|
3
3
|
import { IDependencyManagerService } from '../services/dependency-manager.service';
|
|
4
|
-
|
|
5
4
|
export declare class SetDependencyController extends Disposable {
|
|
6
5
|
private readonly _commandService;
|
|
7
6
|
private readonly _dependencyManagerService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { IFeatureCalculationManagerService } from '../services/feature-calculation-manager.service';
|
|
3
|
-
|
|
4
3
|
export declare class SetFeatureCalculationController extends Disposable {
|
|
5
4
|
private readonly _commandService;
|
|
6
5
|
private readonly _featureCalculationManagerService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { IOtherFormulaManagerService } from '../services/other-formula-manager.service';
|
|
3
3
|
import { IDependencyManagerService } from '../services/dependency-manager.service';
|
|
4
|
-
|
|
5
4
|
export declare class SetOtherFormulaController extends Disposable {
|
|
6
5
|
private readonly _commandService;
|
|
7
6
|
private readonly _otherFormulaManagerService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { ISuperTableService } from '../services/super-table.service';
|
|
3
|
-
|
|
4
3
|
export declare class SetSuperTableController extends Disposable {
|
|
5
4
|
private readonly _commandService;
|
|
6
5
|
private readonly _superTableService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dependency, IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
2
2
|
import { ISheetData } from '../../../basics/common';
|
|
3
|
-
|
|
4
3
|
export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
5
4
|
univer: Univer;
|
|
6
5
|
get: {
|
|
@@ -3,7 +3,6 @@ import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
|
3
3
|
import { ErrorType } from '../../basics/error-type';
|
|
4
4
|
import { ISequenceArray, ISequenceNode } from '../utils/sequence';
|
|
5
5
|
import { LexerNode } from './lexer-node';
|
|
6
|
-
|
|
7
6
|
export declare const FormulaLexerNodeCache: FormulaAstLRU<LexerNode>;
|
|
8
7
|
export declare const FormulaSequenceNodeCache: FormulaAstLRU<(string | ISequenceNode)[]>;
|
|
9
8
|
export declare class LexerTreeBuilder extends Disposable {
|
|
@@ -3,7 +3,6 @@ import { IDefinedNamesService } from '../../services/defined-names.service';
|
|
|
3
3
|
import { IFormulaCurrentConfigService } from '../../services/current-data.service';
|
|
4
4
|
import { ErrorType } from '../../basics/error-type';
|
|
5
5
|
import { LexerTreeBuilder } from './lexer-tree-builder';
|
|
6
|
-
|
|
7
6
|
export declare class Lexer extends Disposable {
|
|
8
7
|
private readonly _definedNamesService;
|
|
9
8
|
private readonly _lexerTreeBuilder;
|
|
@@ -12,7 +12,6 @@ import { SuffixNodeFactory } from '../ast-node/suffix-node';
|
|
|
12
12
|
import { UnionNodeFactory } from '../ast-node/union-node';
|
|
13
13
|
import { ValueNodeFactory } from '../ast-node/value-node';
|
|
14
14
|
import { LexerNode } from './lexer-node';
|
|
15
|
-
|
|
16
15
|
export declare class AstTreeBuilder extends Disposable {
|
|
17
16
|
private readonly _runtimeService;
|
|
18
17
|
private readonly _astRootNodeFactory;
|
|
@@ -2,7 +2,6 @@ import { LexerNode } from '../analysis/lexer-node';
|
|
|
2
2
|
import { BaseAstNode } from './base-ast-node';
|
|
3
3
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
4
4
|
import { NodeType } from './node-type';
|
|
5
|
-
|
|
6
5
|
export declare class AstRootNode extends BaseAstNode {
|
|
7
6
|
get nodeType(): NodeType;
|
|
8
7
|
execute(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Nullable, Disposable } from '@univerjs/core';
|
|
2
2
|
import { LexerNode } from '../analysis/lexer-node';
|
|
3
3
|
import { BaseAstNode } from './base-ast-node';
|
|
4
|
-
|
|
5
4
|
export declare const DEFAULT_AST_NODE_FACTORY_Z_INDEX = 100;
|
|
6
5
|
export declare abstract class BaseAstNodeFactory extends Disposable {
|
|
7
6
|
get zIndex(): number;
|
|
@@ -4,7 +4,6 @@ import { ErrorType } from '../../basics/error-type';
|
|
|
4
4
|
import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
5
5
|
import { ErrorValueObject } from '../value-object/base-value-object';
|
|
6
6
|
import { NodeType } from './node-type';
|
|
7
|
-
|
|
8
7
|
interface IAstNodeNodeJson {
|
|
9
8
|
token: string;
|
|
10
9
|
children?: IAstNodeNodeJson[];
|
|
@@ -9,7 +9,6 @@ import { IDefinedNamesService } from '../../services/defined-names.service';
|
|
|
9
9
|
import { BaseAstNode } from './base-ast-node';
|
|
10
10
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
11
11
|
import { NodeType } from './node-type';
|
|
12
|
-
|
|
13
12
|
export declare class FunctionNode extends BaseAstNode {
|
|
14
13
|
private _functionExecutor;
|
|
15
14
|
private _currentConfigService;
|
|
@@ -4,7 +4,6 @@ import { Interpreter } from '../interpreter/interpreter';
|
|
|
4
4
|
import { BaseAstNode } from './base-ast-node';
|
|
5
5
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
6
6
|
import { NodeType } from './node-type';
|
|
7
|
-
|
|
8
7
|
export declare class LambdaNode extends BaseAstNode {
|
|
9
8
|
private _lambdaId;
|
|
10
9
|
private _interpreter;
|
|
@@ -2,7 +2,6 @@ import { LexerNode } from '../analysis/lexer-node';
|
|
|
2
2
|
import { LambdaPrivacyVarType, BaseAstNode } from './base-ast-node';
|
|
3
3
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
4
4
|
import { NodeType } from './node-type';
|
|
5
|
-
|
|
6
5
|
export declare class LambdaParameterNode extends BaseAstNode {
|
|
7
6
|
private _lambdaParameter;
|
|
8
7
|
private _currentLambdaPrivacyVar;
|
|
@@ -4,7 +4,6 @@ import { LexerNode } from '../analysis/lexer-node';
|
|
|
4
4
|
import { BaseAstNode } from './base-ast-node';
|
|
5
5
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
6
6
|
import { NodeType } from './node-type';
|
|
7
|
-
|
|
8
7
|
export declare class OperatorNode extends BaseAstNode {
|
|
9
8
|
private _operatorString;
|
|
10
9
|
private _functionExecutor;
|
|
@@ -5,7 +5,6 @@ import { LexerNode } from '../analysis/lexer-node';
|
|
|
5
5
|
import { BaseAstNode, ErrorNode } from './base-ast-node';
|
|
6
6
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
7
7
|
import { NodeType } from './node-type';
|
|
8
|
-
|
|
9
8
|
export declare class PrefixNode extends BaseAstNode {
|
|
10
9
|
private _accessor;
|
|
11
10
|
private _operatorString;
|
|
@@ -7,7 +7,6 @@ import { IFunctionService } from '../../services/function.service';
|
|
|
7
7
|
import { BaseAstNode } from './base-ast-node';
|
|
8
8
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
9
9
|
import { NodeType } from './node-type';
|
|
10
|
-
|
|
11
10
|
export declare class ReferenceNode extends BaseAstNode {
|
|
12
11
|
private _accessor;
|
|
13
12
|
private _operatorString;
|
|
@@ -5,7 +5,6 @@ import { LexerNode } from '../analysis/lexer-node';
|
|
|
5
5
|
import { BaseAstNode, ErrorNode } from './base-ast-node';
|
|
6
6
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
7
7
|
import { NodeType } from './node-type';
|
|
8
|
-
|
|
9
8
|
export declare class SuffixNode extends BaseAstNode {
|
|
10
9
|
private _accessor;
|
|
11
10
|
private _operatorString;
|
|
@@ -3,7 +3,6 @@ import { LexerNode } from '../analysis/lexer-node';
|
|
|
3
3
|
import { BaseAstNode } from './base-ast-node';
|
|
4
4
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
5
5
|
import { NodeType } from './node-type';
|
|
6
|
-
|
|
7
6
|
export declare class UnionNode extends BaseAstNode {
|
|
8
7
|
private _operatorString;
|
|
9
8
|
constructor(_operatorString: string);
|
|
@@ -2,7 +2,6 @@ import { LexerNode } from '../analysis/lexer-node';
|
|
|
2
2
|
import { BaseAstNode } from './base-ast-node';
|
|
3
3
|
import { BaseAstNodeFactory } from './base-ast-node-factory';
|
|
4
4
|
import { NodeType } from './node-type';
|
|
5
|
-
|
|
6
5
|
export declare class ValueNode extends BaseAstNode {
|
|
7
6
|
private _operatorString;
|
|
8
7
|
constructor(_operatorString: string);
|
|
@@ -3,7 +3,6 @@ import { IDirtyUnitSheetNameMap, IFeatureDirtyRangeType, IRuntimeUnitDataType, I
|
|
|
3
3
|
import { BaseAstNode } from '../ast-node/base-ast-node';
|
|
4
4
|
import { IFormulaDirtyData } from '../../services/current-data.service';
|
|
5
5
|
import { IAllRuntimeData } from '../../services/runtime.service';
|
|
6
|
-
|
|
7
6
|
export declare enum FDtreeStateType {
|
|
8
7
|
DEFAULT = 0,
|
|
9
8
|
ADDED = 1,
|
|
@@ -8,7 +8,6 @@ import { AstTreeBuilder } from '../analysis/parser';
|
|
|
8
8
|
import { Interpreter } from '../interpreter/interpreter';
|
|
9
9
|
import { IDependencyManagerService } from '../../services/dependency-manager.service';
|
|
10
10
|
import { FormulaDependencyTree } from './dependency-tree';
|
|
11
|
-
|
|
12
11
|
export declare class FormulaDependencyGenerator extends Disposable {
|
|
13
12
|
private readonly _currentConfigService;
|
|
14
13
|
private readonly _runtimeService;
|
|
@@ -3,7 +3,6 @@ import { IFormulaRuntimeService } from '../../services/runtime.service';
|
|
|
3
3
|
import { BaseAstNode } from '../ast-node/base-ast-node';
|
|
4
4
|
import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
5
5
|
import { PreCalculateNodeType } from '../utils/node-type';
|
|
6
|
-
|
|
7
6
|
export declare class Interpreter extends Disposable {
|
|
8
7
|
private readonly _runtimeService;
|
|
9
8
|
constructor(_runtimeService: IFormulaRuntimeService);
|
|
@@ -5,7 +5,6 @@ import { ObjectClassType } from '../../basics/object-class-type';
|
|
|
5
5
|
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
6
6
|
import { BaseValueObject, ErrorValueObject } from '../value-object/base-value-object';
|
|
7
7
|
import { NullValueObject, NumberValueObject, StringValueObject } from '../value-object/primitive-object';
|
|
8
|
-
|
|
9
8
|
export type NodeValueType = BaseValueObject | BaseReferenceObject | AsyncObject | AsyncArrayObject;
|
|
10
9
|
export type FunctionVariantType = BaseValueObject | BaseReferenceObject;
|
|
11
10
|
export declare const FORMULA_REF_TO_ARRAY_CACHE: FormulaAstLRU<ArrayValueObject>;
|
|
@@ -2,7 +2,6 @@ import { IRange } from '@univerjs/core';
|
|
|
2
2
|
import { ErrorValueObject } from '../value-object/base-value-object';
|
|
3
3
|
import { BaseReferenceObject } from './base-reference-object';
|
|
4
4
|
import { RangeReferenceObject } from './range-reference-object';
|
|
5
|
-
|
|
6
5
|
export declare class CellReferenceObject extends BaseReferenceObject {
|
|
7
6
|
constructor(token: string);
|
|
8
7
|
isCell(): boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IRange, Nullable } from '@univerjs/core';
|
|
2
2
|
import { BaseReferenceObject } from './base-reference-object';
|
|
3
|
-
|
|
4
3
|
export declare class RangeReferenceObject extends BaseReferenceObject {
|
|
5
4
|
constructor(range: IRange, forcedSheetId?: Nullable<string>, forcedUnitId?: string);
|
|
6
5
|
isRange(): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
2
2
|
import { BaseValueObject } from '../value-object/base-value-object';
|
|
3
|
-
|
|
4
3
|
export declare function expandArrayValueObject(rowCount: number, columnCount: number, valueObject: BaseValueObject, defaultValue?: BaseValueObject): ArrayValueObject;
|
|
5
4
|
export declare function createNewArray(result: BaseValueObject[][], rowCount: number, columnCount: number, unitId?: string, sheetId?: string): ArrayValueObject;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseValueObject } from '../value-object/base-value-object';
|
|
2
|
+
export declare function checkVariantErrorIsArray(variant: BaseValueObject): BaseValueObject;
|
|
3
|
+
export declare function checkVariantsErrorIsArrayOrBoolean(...variants: BaseValueObject[]): {
|
|
4
|
+
isError: boolean;
|
|
5
|
+
errorObject: BaseValueObject;
|
|
6
|
+
variants?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
isError: boolean;
|
|
9
|
+
variants: BaseValueObject[];
|
|
10
|
+
errorObject?: undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare function checkVariantsErrorIsStringToNumber(...variants: BaseValueObject[]): {
|
|
13
|
+
isError: boolean;
|
|
14
|
+
errorObject: BaseValueObject;
|
|
15
|
+
variants?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
isError: boolean;
|
|
18
|
+
variants: BaseValueObject[];
|
|
19
|
+
errorObject?: undefined;
|
|
20
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IRuntimeUnitDataType } from '../../basics/common';
|
|
2
|
+
export declare function getRuntimeFeatureCell(row: number, column: number, sheetId: string, unitId: string, runtimeFeatureCellData: {
|
|
3
|
+
[featureId: string]: IRuntimeUnitDataType;
|
|
4
|
+
}): import('@univerjs/core').ICellData | undefined;
|
|
@@ -2,5 +2,4 @@ import { PrefixNode } from '../ast-node/prefix-node';
|
|
|
2
2
|
import { ReferenceNode } from '../ast-node/reference-node';
|
|
3
3
|
import { SuffixNode } from '../ast-node/suffix-node';
|
|
4
4
|
import { UnionNode } from '../ast-node/union-node';
|
|
5
|
-
|
|
6
5
|
export type PreCalculateNodeType = ReferenceNode | UnionNode | PrefixNode | SuffixNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { compareToken } from '../../basics/token';
|
|
2
2
|
import { BaseValueObject } from '../value-object/base-value-object';
|
|
3
|
-
|
|
4
3
|
export declare function findCompareToken(str: string): [compareToken, BaseValueObject];
|
|
5
4
|
/**
|
|
6
5
|
* When it contains both comparison characters and wildcard characters
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Injector, Nullable } from '@univerjs/core';
|
|
2
2
|
import { IFunctionService } from '../../services/function.service';
|
|
3
3
|
import { PrefixNode } from '../ast-node/prefix-node';
|
|
4
|
-
|
|
5
4
|
export declare function prefixHandler(tokenTrim: string, functionService: IFunctionService, injector: Injector): {
|
|
6
5
|
tokenTrim: string;
|
|
7
6
|
minusPrefixNode: Nullable<PrefixNode>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { LexerTreeBuilder } from '../analysis/lexer-tree-builder';
|
|
2
|
-
|
|
3
2
|
export declare function isFormulaTransformable(lexerTreeBuilder: LexerTreeBuilder, formula: string): boolean;
|
|
4
3
|
export declare function transformFormula(lexerTreeBuilder: LexerTreeBuilder, formula: string, originRow: number, originCol: number, targetRow: number, targetCol: number): string;
|
|
@@ -3,7 +3,6 @@ import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
|
3
3
|
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
4
4
|
import { BaseValueObject } from '../value-object/base-value-object';
|
|
5
5
|
import { NumberValueObject } from '../value-object/primitive-object';
|
|
6
|
-
|
|
7
6
|
export declare function convertTonNumber(valueObject: BaseValueObject): NumberValueObject;
|
|
8
7
|
export declare function isSingleValueObject(valueObject: FunctionVariantType): boolean;
|
|
9
8
|
/**
|