@univerjs/engine-formula 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +11426 -9711
  3. package/lib/types/functions/date/datedif/index.d.ts +1 -0
  4. package/lib/types/functions/date/days360/index.d.ts +1 -0
  5. package/lib/types/functions/date/networkdays/index.d.ts +1 -0
  6. package/lib/types/functions/date/networkdays-intl/index.d.ts +1 -0
  7. package/lib/types/functions/date/weekday/index.d.ts +1 -0
  8. package/lib/types/functions/date/weeknum/index.d.ts +2 -1
  9. package/lib/types/functions/date/workday/index.d.ts +1 -0
  10. package/lib/types/functions/date/workday-intl/index.d.ts +2 -0
  11. package/lib/types/functions/date/yearfrac/index.d.ts +4 -0
  12. package/lib/types/functions/information/cell/index.d.ts +2 -2
  13. package/lib/types/functions/information/error-type/index.d.ts +1 -1
  14. package/lib/types/functions/lookup/areas/__tests__/index.spec.d.ts +16 -0
  15. package/lib/types/functions/lookup/areas/index.d.ts +11 -0
  16. package/lib/types/functions/lookup/choosecols/__tests__/index.spec.d.ts +16 -0
  17. package/lib/types/functions/lookup/choosecols/index.d.ts +9 -0
  18. package/lib/types/functions/lookup/chooserows/__tests__/index.spec.d.ts +16 -0
  19. package/lib/types/functions/lookup/chooserows/index.d.ts +9 -0
  20. package/lib/types/functions/lookup/filter/__tests__/index.spec.d.ts +16 -0
  21. package/lib/types/functions/lookup/filter/index.d.ts +11 -0
  22. package/lib/types/functions/lookup/function-map.d.ts +3 -6
  23. package/lib/types/functions/lookup/hstack/__tests__/index.spec.d.ts +16 -0
  24. package/lib/types/functions/lookup/hstack/index.d.ts +9 -0
  25. package/lib/types/functions/lookup/sort/__tests__/index.spec.d.ts +16 -0
  26. package/lib/types/functions/lookup/sort/index.d.ts +14 -0
  27. package/lib/types/functions/lookup/sortby/__tests__/index.spec.d.ts +16 -0
  28. package/lib/types/functions/lookup/sortby/index.d.ts +17 -0
  29. package/lib/types/functions/lookup/transpose/__tests__/index.spec.d.ts +16 -0
  30. package/lib/types/functions/lookup/transpose/index.d.ts +9 -0
  31. package/lib/types/functions/lookup/unique/__tests__/index.spec.d.ts +16 -0
  32. package/lib/types/functions/lookup/unique/index.d.ts +12 -0
  33. package/lib/types/functions/lookup/vstack/__tests__/index.spec.d.ts +16 -0
  34. package/lib/types/functions/lookup/vstack/index.d.ts +9 -0
  35. package/lib/types/functions/lookup/xlookup/index.d.ts +1 -0
  36. package/lib/types/functions/math/base/index.d.ts +1 -0
  37. package/lib/types/functions/math/ceiling-math/index.d.ts +1 -0
  38. package/lib/types/functions/math/cot/index.d.ts +1 -0
  39. package/lib/types/functions/math/coth/index.d.ts +1 -0
  40. package/lib/types/functions/math/csc/index.d.ts +1 -0
  41. package/lib/types/functions/math/csch/index.d.ts +1 -0
  42. package/lib/types/functions/math/decimal/index.d.ts +1 -1
  43. package/lib/types/functions/math/randarray/index.d.ts +2 -0
  44. package/lib/types/functions/math/sumproduct/index.d.ts +2 -0
  45. package/lib/types/functions/math/sumx2my2/index.d.ts +1 -0
  46. package/lib/types/functions/math/sumx2py2/index.d.ts +1 -0
  47. package/lib/types/functions/math/sumxmy2/index.d.ts +1 -0
  48. package/lib/types/functions/math/trunc/__tests__/index.spec.d.ts +16 -0
  49. package/lib/types/functions/math/trunc/index.d.ts +8 -0
  50. package/lib/types/functions/text/function-map.d.ts +6 -3
  51. package/lib/types/functions/text/rept/__test__/index.spec.d.ts +16 -0
  52. package/lib/types/functions/text/rept/index.d.ts +8 -0
  53. package/lib/types/functions/text/textafter/__test__/index.spec.d.ts +16 -0
  54. package/lib/types/functions/text/textafter/index.d.ts +15 -0
  55. package/lib/types/functions/text/textbefore/__test__/index.spec.d.ts +16 -0
  56. package/lib/types/functions/text/textbefore/index.d.ts +15 -0
  57. package/lib/types/functions/text/textsplit/__test__/index.spec.d.ts +16 -0
  58. package/lib/types/functions/text/textsplit/index.d.ts +15 -0
  59. package/lib/umd/index.js +1 -1
  60. package/package.json +9 -9
@@ -0,0 +1,16 @@
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 {};
@@ -0,0 +1,15 @@
1
+ import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ import { StringValueObject } from '../../../engine/value-object/primitive-object';
4
+ import { BaseFunction } from '../../base-function';
5
+
6
+ export declare class Textbefore extends BaseFunction {
7
+ minParams: number;
8
+ maxParams: number;
9
+ calculate(text: BaseValueObject, delimiter: BaseValueObject, instanceNum?: BaseValueObject, matchMode?: BaseValueObject, matchEnd?: BaseValueObject, ifNotFound?: BaseValueObject): StringValueObject | ArrayValueObject;
10
+ private _getResultArray;
11
+ private _checkVariantsError;
12
+ private _getStringValue;
13
+ private _getVariantsNumberFloorValue;
14
+ private _getResult;
15
+ }
@@ -0,0 +1,16 @@
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 {};
@@ -0,0 +1,15 @@
1
+ import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ import { BaseFunction } from '../../base-function';
4
+
5
+ export declare class Textsplit extends BaseFunction {
6
+ minParams: number;
7
+ maxParams: number;
8
+ calculate(text: BaseValueObject, colDelimiter: BaseValueObject, rowDelimiter?: BaseValueObject, ignoreEmpty?: BaseValueObject, matchMode?: BaseValueObject, padWith?: BaseValueObject): BaseValueObject | ArrayValueObject;
9
+ private _getStringValues;
10
+ private _getResultArray;
11
+ private _getResult;
12
+ private _checkVariantsError;
13
+ private _getRegExpStringValue;
14
+ private _escapeRegExp;
15
+ }