@univerjs/sheets-formula 0.1.4 → 0.1.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 (67) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/index.js +8 -8
  3. package/lib/es/index.js +1940 -1758
  4. package/lib/index.css +1 -1
  5. package/lib/types/commands/commands/formula-clipboard.command.d.ts +2 -16
  6. package/lib/types/commands/commands/insert-function.command.d.ts +2 -16
  7. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +10 -25
  8. package/lib/types/commands/operations/editor-formula.operation.d.ts +5 -19
  9. package/lib/types/commands/operations/help-function.operation.d.ts +2 -16
  10. package/lib/types/commands/operations/insert-function.operation.d.ts +2 -16
  11. package/lib/types/commands/operations/more-functions.operation.d.ts +2 -16
  12. package/lib/types/commands/operations/reference-absolute.operation.d.ts +2 -16
  13. package/lib/types/commands/operations/search-function.operation.d.ts +2 -16
  14. package/lib/types/common/selection.d.ts +3 -17
  15. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +3 -19
  16. package/lib/types/controllers/active-dirty.controller.d.ts +5 -18
  17. package/lib/types/controllers/array-formula-display.controller.d.ts +3 -17
  18. package/lib/types/controllers/defined-name.controller.d.ts +27 -0
  19. package/lib/types/controllers/formula-auto-fill.controller.d.ts +3 -17
  20. package/lib/types/controllers/formula-clipboard.controller.d.ts +5 -21
  21. package/lib/types/controllers/formula-editor-show.controller.d.ts +5 -19
  22. package/lib/types/controllers/formula-ui.controller.d.ts +3 -18
  23. package/lib/types/controllers/menu.d.ts +3 -17
  24. package/lib/types/controllers/numfmt-formula-display.controller.d.ts +3 -17
  25. package/lib/types/controllers/prompt.controller.d.ts +20 -25
  26. package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +2 -17
  27. package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -19
  28. package/lib/types/controllers/update-formula.controller.d.ts +4 -18
  29. package/lib/types/controllers/utils/offset-formula-data.d.ts +4 -19
  30. package/lib/types/controllers/utils/redo-undo-formula-data.d.ts +4 -18
  31. package/lib/types/controllers/utils/ref-range-formula.d.ts +3 -17
  32. package/lib/types/controllers/utils/utils.d.ts +2 -16
  33. package/lib/types/formula-ui-plugin.d.ts +3 -18
  34. package/lib/types/index.d.ts +2 -0
  35. package/lib/types/services/description.service.d.ts +22 -19
  36. package/lib/types/services/formula-custom-function.service.d.ts +3 -17
  37. package/lib/types/services/formula-ref-range.service.d.ts +17 -0
  38. package/lib/types/services/function-list/array.d.ts +2 -16
  39. package/lib/types/services/function-list/compatibility.d.ts +2 -16
  40. package/lib/types/services/function-list/cube.d.ts +2 -16
  41. package/lib/types/services/function-list/database.d.ts +2 -16
  42. package/lib/types/services/function-list/date.d.ts +2 -16
  43. package/lib/types/services/function-list/engineering.d.ts +2 -16
  44. package/lib/types/services/function-list/financial.d.ts +2 -16
  45. package/lib/types/services/function-list/function-list.d.ts +2 -16
  46. package/lib/types/services/function-list/information.d.ts +2 -16
  47. package/lib/types/services/function-list/logical.d.ts +2 -16
  48. package/lib/types/services/function-list/lookup.d.ts +2 -16
  49. package/lib/types/services/function-list/math.d.ts +2 -16
  50. package/lib/types/services/function-list/statistical.d.ts +2 -16
  51. package/lib/types/services/function-list/text.d.ts +2 -16
  52. package/lib/types/services/function-list/univer.d.ts +2 -16
  53. package/lib/types/services/function-list/web.d.ts +2 -16
  54. package/lib/types/services/prompt.service.d.ts +7 -21
  55. package/lib/types/services/register-function.service.d.ts +5 -22
  56. package/lib/types/services/utils.d.ts +3 -17
  57. package/lib/types/views/FormulaPromptContainer.d.ts +2 -16
  58. package/lib/types/views/more-functions/MoreFunctions.d.ts +2 -16
  59. package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +3 -17
  60. package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +2 -16
  61. package/lib/types/views/more-functions/input-params/InputParams.d.ts +3 -17
  62. package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +3 -17
  63. package/lib/types/views/prompt/help-function/HelpFunction.d.ts +2 -16
  64. package/lib/types/views/prompt/search-function/SearchFunction.d.ts +3 -17
  65. package/lib/umd/index.js +6 -6
  66. package/package.json +24 -24
  67. package/lib/types/services/active-dirty-manager.service.d.ts +0 -48
@@ -1,17 +1,3 @@
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
- import { type IFunctionInfo } from '@univerjs/engine-formula';
1
+ import { IFunctionInfo } from '@univerjs/engine-formula';
2
+
17
3
  export declare const FUNCTION_LIST_WEB: IFunctionInfo[];
@@ -1,23 +1,9 @@
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
- import type { Direction } from '@univerjs/core';
17
- import { type IFunctionInfo, type ISequenceNode } from '@univerjs/engine-formula';
18
- import type { IDisposable } from '@wendellhu/redi';
19
- import type { Observable } from 'rxjs';
20
- import type { ISearchItem } from './description.service';
1
+ import { ISearchItem } from './description.service';
2
+ import { Observable } from 'rxjs';
3
+ import { IDisposable } from '@wendellhu/redi';
4
+ import { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
5
+ import { Direction } from '@univerjs/core';
6
+
21
7
  export interface ISearchFunctionOperationParams {
22
8
  /**
23
9
  * show SearchFunction Component or not
@@ -112,7 +98,7 @@ export interface IFormulaPromptService {
112
98
  disableLockedSelectionInsert(): void;
113
99
  isLockedSelectionInsert(): boolean;
114
100
  }
115
- export declare const IFormulaPromptService: import("@wendellhu/redi").IdentifierDecorator<FormulaPromptService>;
101
+ export declare const IFormulaPromptService: import('@wendellhu/redi').IdentifierDecorator<FormulaPromptService>;
116
102
  export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
117
103
  private readonly _search$;
118
104
  private readonly _help$;
@@ -1,25 +1,8 @@
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
- import type { ILocales } from '@univerjs/core';
17
- import { Disposable, LocaleService } from '@univerjs/core';
18
- import type { IFunctionInfo } from '@univerjs/engine-formula';
19
- import { IFunctionService } from '@univerjs/engine-formula';
1
+ import { IRegisterFunctionList, IFormulaCustomFunctionService } from './formula-custom-function.service';
20
2
  import { IDescriptionService } from './description.service';
21
- import type { IRegisterFunctionList } from './formula-custom-function.service';
22
- import { IFormulaCustomFunctionService } from './formula-custom-function.service';
3
+ import { IFunctionInfo, IFunctionService } from '@univerjs/engine-formula';
4
+ import { ILocales, Disposable, LocaleService } from '@univerjs/core';
5
+
23
6
  /**
24
7
  * Register function operation params
25
8
  */
@@ -58,7 +41,7 @@ export interface IRegisterFunctionService {
58
41
  registerFunctions(params: IRegisterFunctionParams): void;
59
42
  unregisterFunctions(params: IUnregisterFunctionParams): void;
60
43
  }
61
- export declare const IRegisterFunctionService: import("@wendellhu/redi").IdentifierDecorator<IRegisterFunctionService>;
44
+ export declare const IRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRegisterFunctionService>;
62
45
  export declare class RegisterFunctionService extends Disposable implements IRegisterFunctionService {
63
46
  private readonly _localeService;
64
47
  private readonly _descriptionService;
@@ -1,20 +1,6 @@
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
- import type { LocaleService } from '@univerjs/core';
17
- import type { IFunctionInfo } from '@univerjs/engine-formula';
1
+ import { IFunctionInfo } from '@univerjs/engine-formula';
2
+ import { LocaleService } from '@univerjs/core';
3
+
18
4
  export declare function getFunctionTypeValues(enumObj: any, localeService: LocaleService): Array<{
19
5
  label: string;
20
6
  value: string;
@@ -1,17 +1,3 @@
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
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export declare function RenderFormulaPromptContent(): React.JSX.Element;
@@ -1,17 +1,3 @@
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
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export declare function MoreFunctions(): React.JSX.Element;
@@ -1,20 +1,6 @@
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
- import type { IFunctionParam } from '@univerjs/engine-formula';
17
- import React from 'react';
1
+ import { default as React } from 'react';
2
+ import { IFunctionParam } from '@univerjs/engine-formula';
3
+
18
4
  interface IFunctionHelpProps {
19
5
  prefix?: string;
20
6
  value?: IFunctionParam[];
@@ -1,19 +1,5 @@
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
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  interface IParamsProps {
18
4
  className?: string;
19
5
  title?: string | React.ReactElement;
@@ -1,20 +1,6 @@
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
- import type { IFunctionInfo } from '@univerjs/engine-formula';
17
- import React from 'react';
1
+ import { default as React } from 'react';
2
+ import { IFunctionInfo } from '@univerjs/engine-formula';
3
+
18
4
  export interface IInputParamsProps {
19
5
  functionInfo: IFunctionInfo | null;
20
6
  onChange: (params: string[]) => void;
@@ -1,20 +1,6 @@
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
- import type { IFunctionInfo } from '@univerjs/engine-formula';
17
- import React from 'react';
1
+ import { default as React } from 'react';
2
+ import { IFunctionInfo } from '@univerjs/engine-formula';
3
+
18
4
  export interface ISelectFunctionProps {
19
5
  onChange: (functionInfo: IFunctionInfo) => void;
20
6
  }
@@ -1,17 +1,3 @@
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
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export declare function HelpFunction(): React.JSX.Element;
@@ -1,17 +1,3 @@
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
- import React from 'react';
17
- export declare function SearchFunction(): React.JSX.Element;
1
+ import { default as React } from 'react';
2
+
3
+ export declare function SearchFunction(): false | React.JSX.Element;