@univerjs/sheets-formula-ui 0.3.0-nightly.202410101606

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 (156) hide show
  1. package/README.md +39 -0
  2. package/lib/cjs/index.js +1 -0
  3. package/lib/es/index.js +1 -0
  4. package/lib/index.css +1 -0
  5. package/lib/locale/en-US.json +10987 -0
  6. package/lib/locale/ru-RU.json +10938 -0
  7. package/lib/locale/vi-VN.json +9511 -0
  8. package/lib/locale/zh-CN.json +10987 -0
  9. package/lib/locale/zh-TW.json +10987 -0
  10. package/lib/types/commands/commands/formula-clipboard.command.d.ts +2 -0
  11. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +13 -0
  12. package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts +16 -0
  13. package/lib/types/commands/operations/editor-formula.operation.d.ts +11 -0
  14. package/lib/types/commands/operations/help-function.operation.d.ts +2 -0
  15. package/lib/types/commands/operations/insert-function.operation.d.ts +19 -0
  16. package/lib/types/commands/operations/more-functions.operation.d.ts +2 -0
  17. package/lib/types/commands/operations/reference-absolute.operation.d.ts +2 -0
  18. package/lib/types/commands/operations/search-function.operation.d.ts +2 -0
  19. package/lib/types/common/plugin-name.d.ts +16 -0
  20. package/lib/types/common/prompt.d.ts +16 -0
  21. package/lib/types/common/selection.d.ts +4 -0
  22. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +7 -0
  23. package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts +16 -0
  24. package/lib/types/controllers/__tests__/formula-clipboard.controller.spec.d.ts +16 -0
  25. package/lib/types/controllers/__tests__/update-formula.controller.spec.d.ts +16 -0
  26. package/lib/types/controllers/config.schema.d.ts +15 -0
  27. package/lib/types/controllers/formula-alert-render.controller.d.ts +15 -0
  28. package/lib/types/controllers/formula-auto-fill.controller.d.ts +10 -0
  29. package/lib/types/controllers/formula-clipboard.controller.d.ts +25 -0
  30. package/lib/types/controllers/formula-editor-show.controller.d.ts +28 -0
  31. package/lib/types/controllers/formula-process.controller.d.ts +15 -0
  32. package/lib/types/controllers/formula-render.controller.d.ts +6 -0
  33. package/lib/types/controllers/formula-ui.controller.d.ts +19 -0
  34. package/lib/types/controllers/menu.d.ts +5 -0
  35. package/lib/types/controllers/menu.schema.d.ts +2 -0
  36. package/lib/types/controllers/prompt.controller.d.ts +170 -0
  37. package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +9 -0
  38. package/lib/types/controllers/utils/__tests__/offset-formula-data.spec.d.ts +16 -0
  39. package/lib/types/controllers/utils/__tests__/ref-range-formula.spec.d.ts +16 -0
  40. package/lib/types/controllers/utils/__tests__/utils.spec.d.ts +16 -0
  41. package/lib/types/controllers/utils/offset-formula-data.d.ts +15 -0
  42. package/lib/types/controllers/utils/ref-range-formula.d.ts +71 -0
  43. package/lib/types/controllers/utils/utils.d.ts +15 -0
  44. package/lib/types/index.d.ts +25 -0
  45. package/lib/types/locale/en-US.d.ts +9983 -0
  46. package/lib/types/locale/function-list/array/en-US.d.ts +17 -0
  47. package/lib/types/locale/function-list/array/ja-JP.d.ts +17 -0
  48. package/lib/types/locale/function-list/array/ru-RU.d.ts +2 -0
  49. package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
  50. package/lib/types/locale/function-list/array/zh-CN.d.ts +17 -0
  51. package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
  52. package/lib/types/locale/function-list/compatibility/en-US.d.ts +762 -0
  53. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +762 -0
  54. package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +2 -0
  55. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +762 -0
  56. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +762 -0
  57. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +762 -0
  58. package/lib/types/locale/function-list/cube/en-US.d.ts +144 -0
  59. package/lib/types/locale/function-list/cube/ja-JP.d.ts +144 -0
  60. package/lib/types/locale/function-list/cube/ru-RU.d.ts +144 -0
  61. package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
  62. package/lib/types/locale/function-list/cube/zh-CN.d.ts +144 -0
  63. package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
  64. package/lib/types/locale/function-list/database/en-US.d.ts +234 -0
  65. package/lib/types/locale/function-list/database/ja-JP.d.ts +234 -0
  66. package/lib/types/locale/function-list/database/ru-RU.d.ts +234 -0
  67. package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
  68. package/lib/types/locale/function-list/database/zh-CN.d.ts +234 -0
  69. package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
  70. package/lib/types/locale/function-list/date/en-US.d.ts +458 -0
  71. package/lib/types/locale/function-list/date/ja-JP.d.ts +458 -0
  72. package/lib/types/locale/function-list/date/ru-RU.d.ts +2 -0
  73. package/lib/types/locale/function-list/date/vi-VN.d.ts +458 -0
  74. package/lib/types/locale/function-list/date/zh-CN.d.ts +458 -0
  75. package/lib/types/locale/function-list/date/zh-TW.d.ts +458 -0
  76. package/lib/types/locale/function-list/engineering/en-US.d.ts +894 -0
  77. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +894 -0
  78. package/lib/types/locale/function-list/engineering/ru-RU.d.ts +2 -0
  79. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +894 -0
  80. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +894 -0
  81. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +894 -0
  82. package/lib/types/locale/function-list/financial/en-US.d.ts +1608 -0
  83. package/lib/types/locale/function-list/financial/ja-JP.d.ts +1608 -0
  84. package/lib/types/locale/function-list/financial/ru-RU.d.ts +2 -0
  85. package/lib/types/locale/function-list/financial/vi-VN.d.ts +1608 -0
  86. package/lib/types/locale/function-list/financial/zh-CN.d.ts +1608 -0
  87. package/lib/types/locale/function-list/financial/zh-TW.d.ts +1608 -0
  88. package/lib/types/locale/function-list/information/en-US.d.ts +327 -0
  89. package/lib/types/locale/function-list/information/ja-JP.d.ts +327 -0
  90. package/lib/types/locale/function-list/information/ru-RU.d.ts +2 -0
  91. package/lib/types/locale/function-list/information/vi-VN.d.ts +255 -0
  92. package/lib/types/locale/function-list/information/zh-CN.d.ts +327 -0
  93. package/lib/types/locale/function-list/information/zh-TW.d.ts +327 -0
  94. package/lib/types/locale/function-list/logical/en-US.d.ts +390 -0
  95. package/lib/types/locale/function-list/logical/ja-JP.d.ts +390 -0
  96. package/lib/types/locale/function-list/logical/ru-RU.d.ts +2 -0
  97. package/lib/types/locale/function-list/logical/vi-VN.d.ts +390 -0
  98. package/lib/types/locale/function-list/logical/zh-CN.d.ts +390 -0
  99. package/lib/types/locale/function-list/logical/zh-TW.d.ts +390 -0
  100. package/lib/types/locale/function-list/lookup/en-US.d.ts +812 -0
  101. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +812 -0
  102. package/lib/types/locale/function-list/lookup/ru-RU.d.ts +2 -0
  103. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +722 -0
  104. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +812 -0
  105. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +812 -0
  106. package/lib/types/locale/function-list/math/en-US.d.ts +1388 -0
  107. package/lib/types/locale/function-list/math/ja-JP.d.ts +1388 -0
  108. package/lib/types/locale/function-list/math/ru-RU.d.ts +2 -0
  109. package/lib/types/locale/function-list/math/vi-VN.d.ts +1298 -0
  110. package/lib/types/locale/function-list/math/zh-CN.d.ts +1388 -0
  111. package/lib/types/locale/function-list/math/zh-TW.d.ts +1388 -0
  112. package/lib/types/locale/function-list/statistical/en-US.d.ts +2160 -0
  113. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +2160 -0
  114. package/lib/types/locale/function-list/statistical/ru-RU.d.ts +2 -0
  115. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +1188 -0
  116. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +2160 -0
  117. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2160 -0
  118. package/lib/types/locale/function-list/text/en-US.d.ts +904 -0
  119. package/lib/types/locale/function-list/text/ja-JP.d.ts +905 -0
  120. package/lib/types/locale/function-list/text/ru-RU.d.ts +856 -0
  121. package/lib/types/locale/function-list/text/vi-VN.d.ts +784 -0
  122. package/lib/types/locale/function-list/text/zh-CN.d.ts +904 -0
  123. package/lib/types/locale/function-list/text/zh-TW.d.ts +904 -0
  124. package/lib/types/locale/function-list/univer/en-US.d.ts +17 -0
  125. package/lib/types/locale/function-list/univer/ja-JP.d.ts +17 -0
  126. package/lib/types/locale/function-list/univer/ru-RU.d.ts +17 -0
  127. package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
  128. package/lib/types/locale/function-list/univer/zh-CN.d.ts +17 -0
  129. package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
  130. package/lib/types/locale/function-list/web/en-US.d.ts +72 -0
  131. package/lib/types/locale/function-list/web/ja-JP.d.ts +72 -0
  132. package/lib/types/locale/function-list/web/ru-RU.d.ts +72 -0
  133. package/lib/types/locale/function-list/web/vi-VN.d.ts +2 -0
  134. package/lib/types/locale/function-list/web/zh-CN.d.ts +72 -0
  135. package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
  136. package/lib/types/locale/ru-RU.d.ts +9934 -0
  137. package/lib/types/locale/vi-VN.d.ts +8657 -0
  138. package/lib/types/locale/zh-CN.d.ts +9983 -0
  139. package/lib/types/locale/zh-TW.d.ts +9983 -0
  140. package/lib/types/services/formula-common.d.ts +18 -0
  141. package/lib/types/services/prompt.service.d.ts +160 -0
  142. package/lib/types/services/render-services/ref-selections.render-service.d.ts +42 -0
  143. package/lib/types/services/utils.d.ts +8 -0
  144. package/lib/types/sheets-formula-ui.plugin.d.ts +19 -0
  145. package/lib/types/views/FormulaPromptContainer.d.ts +2 -0
  146. package/lib/types/views/more-functions/MoreFunctions.d.ts +2 -0
  147. package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +22 -0
  148. package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +8 -0
  149. package/lib/types/views/more-functions/input-params/InputParams.d.ts +7 -0
  150. package/lib/types/views/more-functions/interface.d.ts +16 -0
  151. package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +6 -0
  152. package/lib/types/views/prompt/help-function/HelpFunction.d.ts +2 -0
  153. package/lib/types/views/prompt/resize-scroll-observer.d.ts +18 -0
  154. package/lib/types/views/prompt/search-function/SearchFunction.d.ts +2 -0
  155. package/lib/umd/index.js +1 -0
  156. package/package.json +113 -0
@@ -0,0 +1,18 @@
1
+ import { ICellData, Nullable } from '@univerjs/core';
2
+ export declare enum FormulaResultStatus {
3
+ NOT_REGISTER = 1,
4
+ SUCCESS = 2,
5
+ WAIT = 3,
6
+ ERROR = 4
7
+ }
8
+ export interface IOtherFormulaResult {
9
+ result?: Nullable<ICellData>[][];
10
+ status: FormulaResultStatus;
11
+ formulaId: string;
12
+ callbacks: Set<(value: Nullable<ICellData>[][]) => void>;
13
+ extra?: Record<string, any>;
14
+ }
15
+ export interface IFormulaInfo {
16
+ id: string;
17
+ text: string;
18
+ }
@@ -0,0 +1,160 @@
1
+ import { Direction, IDisposable, IContextService } from '@univerjs/core';
2
+ import { ISearchItem } from '@univerjs/sheets-formula';
3
+ import { Observable } from 'rxjs';
4
+ import { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
5
+ /** If the formula prompt is visible. */
6
+ export declare const FORMULA_PROMPT_ACTIVATED = "FORMULA_PROMPT_ACTIVATED";
7
+ export interface ISearchFunctionOperationParams {
8
+ /**
9
+ * show SearchFunction Component or not
10
+ */
11
+ visible: boolean;
12
+ /**
13
+ * function search text
14
+ */
15
+ searchText: string;
16
+ /**
17
+ * function list
18
+ */
19
+ searchList: ISearchItem[];
20
+ }
21
+ export interface IHelpFunctionOperationParams {
22
+ /**
23
+ * show HelpFunction Component or not
24
+ */
25
+ visible: boolean;
26
+ /**
27
+ * function param index
28
+ */
29
+ paramIndex: number;
30
+ /**
31
+ * function info
32
+ */
33
+ functionInfo: IFunctionInfo;
34
+ }
35
+ export interface INavigateParam {
36
+ direction: Direction.UP | Direction.DOWN;
37
+ }
38
+ export interface IFormulaPromptService {
39
+ /**
40
+ * listen search function open
41
+ */
42
+ search$: Observable<ISearchFunctionOperationParams>;
43
+ /**
44
+ * open search function
45
+ */
46
+ search(param: ISearchFunctionOperationParams): void;
47
+ /**
48
+ * listen help function open
49
+ */
50
+ help$: Observable<IHelpFunctionOperationParams>;
51
+ /**
52
+ * open help function
53
+ */
54
+ help(param: IHelpFunctionOperationParams): void;
55
+ /**
56
+ * listen navigate shortcut, UP and DOWN
57
+ */
58
+ navigate$: Observable<INavigateParam>;
59
+ /**
60
+ * set navigate shortcut
61
+ */
62
+ navigate(param: INavigateParam): void;
63
+ /**
64
+ * listen accept shortcut, TAB/ENTER
65
+ */
66
+ accept$: Observable<boolean>;
67
+ /**
68
+ * set accept shortcut
69
+ */
70
+ accept(param: boolean): void;
71
+ /**
72
+ * accept formula name
73
+ */
74
+ acceptFormulaName$: Observable<string>;
75
+ /**
76
+ * set accept formula name
77
+ */
78
+ acceptFormulaName(param: string): void;
79
+ isSearching(): boolean;
80
+ isHelping(): boolean;
81
+ dispose(): void;
82
+ getSequenceNodes(): Array<string | ISequenceNode>;
83
+ setSequenceNodes(nodes: Array<string | ISequenceNode>): void;
84
+ clearSequenceNodes(): void;
85
+ getCurrentSequenceNodeIndex(strIndex: number): number;
86
+ getCurrentSequenceNodeByIndex(nodeIndex: number): string | ISequenceNode;
87
+ getCurrentSequenceNode(strIndex: number): string | ISequenceNode;
88
+ updateSequenceRef(nodeIndex: number, refString: string): void;
89
+ insertSequenceRef(index: number, refString: string): void;
90
+ insertSequenceString(index: number, content: string): void;
91
+ enableLockedSelectionChange(): void;
92
+ disableLockedSelectionChange(): void;
93
+ isLockedSelectionChange(): boolean;
94
+ enableLockedSelectionInsert(): void;
95
+ disableLockedSelectionInsert(): void;
96
+ isLockedSelectionInsert(): boolean;
97
+ }
98
+ export declare const IFormulaPromptService: import('@wendellhu/redi').IdentifierDecorator<FormulaPromptService>;
99
+ export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
100
+ private readonly _contextService;
101
+ private readonly _search$;
102
+ private readonly _help$;
103
+ private readonly _navigate$;
104
+ private readonly _accept$;
105
+ private readonly _acceptFormulaName$;
106
+ readonly search$: Observable<ISearchFunctionOperationParams>;
107
+ readonly help$: Observable<IHelpFunctionOperationParams>;
108
+ readonly navigate$: Observable<INavigateParam>;
109
+ readonly accept$: Observable<boolean>;
110
+ readonly acceptFormulaName$: Observable<string>;
111
+ private _searching;
112
+ private _helping;
113
+ private _sequenceNodes;
114
+ private _isLockedOnSelectionChangeRefString;
115
+ private _isLockedOnSelectionInsertRefString;
116
+ constructor(_contextService: IContextService);
117
+ dispose(): void;
118
+ search(param: ISearchFunctionOperationParams): void;
119
+ isSearching(): boolean;
120
+ help(param: IHelpFunctionOperationParams): void;
121
+ isHelping(): boolean;
122
+ navigate(param: INavigateParam): void;
123
+ accept(param: boolean): void;
124
+ acceptFormulaName(param: string): void;
125
+ getSequenceNodes(): (string | ISequenceNode)[];
126
+ setSequenceNodes(nodes: Array<string | ISequenceNode>): void;
127
+ clearSequenceNodes(): void;
128
+ getCurrentSequenceNode(strIndex: number): string | ISequenceNode;
129
+ getCurrentSequenceNodeByIndex(nodeIndex: number): string | ISequenceNode;
130
+ /**
131
+ * Query the text coordinates in the sequenceNodes and determine the actual insertion index.
132
+ * @param strIndex
133
+ */
134
+ getCurrentSequenceNodeIndex(strIndex: number): number;
135
+ /**
136
+ * Synchronize the reference text based on the changes of the selection.
137
+ * @param nodeIndex
138
+ * @param refString
139
+ */
140
+ updateSequenceRef(nodeIndex: number, refString: string): void;
141
+ /**
142
+ * When the cursor is on the right side of a formula token,
143
+ * you can add reference text to the formula by drawing a selection.
144
+ * @param index
145
+ * @param refString
146
+ */
147
+ insertSequenceRef(index: number, refString: string): void;
148
+ /**
149
+ * Insert a string at the cursor position in the text corresponding to the sequenceNodes.
150
+ * @param index
151
+ * @param content
152
+ */
153
+ insertSequenceString(index: number, content: string): void;
154
+ enableLockedSelectionChange(): void;
155
+ disableLockedSelectionChange(): void;
156
+ isLockedSelectionChange(): boolean;
157
+ enableLockedSelectionInsert(): void;
158
+ disableLockedSelectionInsert(): void;
159
+ isLockedSelectionInsert(): boolean;
160
+ }
@@ -0,0 +1,42 @@
1
+ import { IDisposable, Workbook, Injector, ThemeService } from '@univerjs/core';
2
+ import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { ISelectionWithStyle, SheetsSelectionsService } from '@univerjs/sheets';
4
+ import { BaseSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
5
+ import { IShortcutService } from '@univerjs/ui';
6
+ /**
7
+ * This service extends the existing `SelectionRenderService` to provide the rendering of prompt selections
8
+ * when user is editing ref ranges in formulas.
9
+ *
10
+ * Not that this service works with Uni-mode, which means it should be able to deal with multi render unit
11
+ * and handle selections on them, though each at a time.
12
+ *
13
+ *
14
+ *
15
+ */
16
+ export declare class RefSelectionsRenderService extends BaseSelectionRenderService implements IRenderModule {
17
+ private readonly _context;
18
+ private readonly _refSelectionsService;
19
+ private readonly _workbookSelections;
20
+ private _eventDisposables;
21
+ constructor(_context: IRenderContext<Workbook>, injector: Injector, themeService: ThemeService, shortcutService: IShortcutService, sheetSkeletonManagerService: SheetSkeletonManagerService, _refSelectionsService: SheetsSelectionsService);
22
+ getLocation(): [string, string];
23
+ setRemainLastEnabled(enabled: boolean): void;
24
+ setSkipLastEnabled(enabled: boolean): void;
25
+ clearLastSelection(): void;
26
+ /**
27
+ * Call this method and user will be able to select on the canvas to update selections.
28
+ */
29
+ enableSelectionChanging(): IDisposable;
30
+ private _disableSelectionChanging;
31
+ private _initCanvasEventListeners;
32
+ /**
33
+ * Update selectionModel in this._workbookSelections by user action in spreadsheet area.
34
+ */
35
+ private _initUserActionSyncListener;
36
+ private _updateSelections;
37
+ private _initSelectionChangeListener;
38
+ private _initSkeletonChangeListener;
39
+ protected _refreshSelectionControl(selectionsData: readonly ISelectionWithStyle[]): void;
40
+ private _getActiveViewport;
41
+ private _getSheetObject;
42
+ }
@@ -0,0 +1,8 @@
1
+ import { LocaleService } from '@univerjs/core';
2
+ import { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';
3
+ export declare function getFunctionTypeValues(enumObj: any, localeService: LocaleService): Array<{
4
+ label: string;
5
+ value: string;
6
+ }>;
7
+ export declare function getFunctionName(item: IFunctionInfo, localeService: LocaleService): string;
8
+ export declare function generateParam(param: IFunctionParam): string | undefined;
@@ -0,0 +1,19 @@
1
+ import { IUniverSheetsFormulaBaseConfig } from './controllers/config.schema';
2
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ import { IRenderManagerService } from '@univerjs/engine-render';
4
+ /**
5
+ * The configuration of the formula UI plugin.
6
+ */
7
+ export declare class UniverSheetsFormulaUIPlugin extends Plugin {
8
+ private readonly _config;
9
+ readonly _injector: Injector;
10
+ private readonly _renderManagerService;
11
+ private readonly _configService;
12
+ static pluginName: string;
13
+ static type: UniverInstanceType;
14
+ constructor(_config: Partial<IUniverSheetsFormulaBaseConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService);
15
+ onStarting(): void;
16
+ onReady(): void;
17
+ onRendered(): void;
18
+ onSteady(): void;
19
+ }
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function RenderFormulaPromptContent(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function MoreFunctions(): React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { IFunctionParam } from '@univerjs/engine-formula';
2
+ import { default as React } from 'react';
3
+ interface IFunctionHelpProps {
4
+ prefix?: string;
5
+ value?: IFunctionParam[];
6
+ }
7
+ /**
8
+ * Determine the parameter format
9
+ * ┌─────────┬────────┬─────────────┐
10
+ * │ Require │ Repeat │ Parameter │
11
+ * ├─────────┼────────┼─────────────┤
12
+ * │ 0 │ 0 │ [Number] │
13
+ * │ 1 │ 0 │ Number │
14
+ * │ 0 │ 1 │ [Number,...] │
15
+ * │ 1 │ 1 │ Number,... │
16
+ * └─────────┴────────┴─────────────┘
17
+ *
18
+ * @param props
19
+ * @returns
20
+ */
21
+ export declare function FunctionHelp(props: IFunctionHelpProps): React.JSX.Element;
22
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface IParamsProps {
3
+ className?: string;
4
+ title?: string | React.ReactElement;
5
+ value?: string | React.ReactElement;
6
+ }
7
+ export declare function FunctionParams(props: IParamsProps): React.JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IFunctionInfo } from '@univerjs/engine-formula';
2
+ import { default as React } from 'react';
3
+ export interface IInputParamsProps {
4
+ functionInfo: IFunctionInfo | null;
5
+ onChange: (params: string[]) => void;
6
+ }
7
+ export declare function InputParams(props: IInputParamsProps): React.JSX.Element | null;
@@ -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 declare const MORE_FUNCTIONS_COMPONENT = "SHEET_FORMULA_UI_PLUGIN_MORE_FUNCTIONS_COMPONENT";
@@ -0,0 +1,6 @@
1
+ import { IFunctionInfo } from '@univerjs/engine-formula';
2
+ import { default as React } from 'react';
3
+ export interface ISelectFunctionProps {
4
+ onChange: (functionInfo: IFunctionInfo) => void;
5
+ }
6
+ export declare function SelectFunction(props: ISelectFunctionProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function HelpFunction(): React.JSX.Element;
@@ -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
+ type Callback = () => void;
17
+ export declare const useResizeScrollObserver: (callback: Callback, delay?: number) => void;
18
+ export default useResizeScrollObserver;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function SearchFunction(): false | React.JSX.Element;