@univerjs/sheets-formula 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +4215 -0
- package/lib/cjs/locale/en-US.js +223 -0
- package/lib/cjs/locale/zh-CN.js +223 -0
- package/lib/esm/index.js +4205 -0
- package/lib/esm/locale/en-US.js +200 -0
- package/lib/esm/locale/zh-CN.js +200 -0
- package/lib/index.css +214 -0
- package/lib/types/commands/commands/insert-function.command.d.ts +23 -0
- package/lib/types/commands/commands/insert-function.command.d.ts.map +1 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +16 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts.map +1 -0
- package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts +2 -0
- package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts.map +1 -0
- package/lib/types/commands/operations/editor-formula.operation.d.ts +11 -0
- package/lib/types/commands/operations/editor-formula.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/help-function.operation.d.ts +3 -0
- package/lib/types/commands/operations/help-function.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/insert-function.operation.d.ts +9 -0
- package/lib/types/commands/operations/insert-function.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/more-functions.operation.d.ts +3 -0
- package/lib/types/commands/operations/more-functions.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/reference-absolute.operation.d.ts +3 -0
- package/lib/types/commands/operations/reference-absolute.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/search-function.operation.d.ts +3 -0
- package/lib/types/commands/operations/search-function.operation.d.ts.map +1 -0
- package/lib/types/common/plugin-name.d.ts +2 -0
- package/lib/types/common/plugin-name.d.ts.map +1 -0
- package/lib/types/common/prompt.d.ts +2 -0
- package/lib/types/common/prompt.d.ts.map +1 -0
- package/lib/types/common/selection.d.ts +5 -0
- package/lib/types/common/selection.d.ts.map +1 -0
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +11 -0
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts.map +1 -0
- package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts +2 -0
- package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts.map +1 -0
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +12 -0
- package/lib/types/controllers/formula-auto-fill.controller.d.ts.map +1 -0
- package/lib/types/controllers/formula-input.controller.d.ts +25 -0
- package/lib/types/controllers/formula-input.controller.d.ts.map +1 -0
- package/lib/types/controllers/formula-ui.controller.d.ts +19 -0
- package/lib/types/controllers/formula-ui.controller.d.ts.map +1 -0
- package/lib/types/controllers/menu.d.ts +5 -0
- package/lib/types/controllers/menu.d.ts.map +1 -0
- package/lib/types/controllers/prompt.controller.d.ts +146 -0
- package/lib/types/controllers/prompt.controller.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +10 -0
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts.map +1 -0
- package/lib/types/formula-ui-plugin.d.ts +18 -0
- package/lib/types/formula-ui-plugin.d.ts.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +136 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/array/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/array/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/array/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/array/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/compatibility/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/compatibility/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/cube/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/cube/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/cube/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/cube/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/database/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/database/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/database/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/database/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/date/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/date/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/date/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/date/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/engineering/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/engineering/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/financial/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/financial/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/financial/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/financial/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/information/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/information/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/information/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/information/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/logical/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/logical/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/logical/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/lookup/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/lookup/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/math/en-US.d.ts +36 -0
- package/lib/types/locale/function-list/math/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/math/zh-CN.d.ts +36 -0
- package/lib/types/locale/function-list/math/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/statistical/en-US.d.ts +60 -0
- package/lib/types/locale/function-list/statistical/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts +60 -0
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/text/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/text/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/text/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/text/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/univer/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/univer/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/univer/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/univer/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/function-list/web/en-US.d.ts +3 -0
- package/lib/types/locale/function-list/web/en-US.d.ts.map +1 -0
- package/lib/types/locale/function-list/web/zh-CN.d.ts +3 -0
- package/lib/types/locale/function-list/web/zh-CN.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +3 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +136 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/services/description.service.d.ts +48 -0
- package/lib/types/services/description.service.d.ts.map +1 -0
- package/lib/types/services/formula-input.service.d.ts +95 -0
- package/lib/types/services/formula-input.service.d.ts.map +1 -0
- package/lib/types/services/function-list/array.d.ts +3 -0
- package/lib/types/services/function-list/array.d.ts.map +1 -0
- package/lib/types/services/function-list/compatibility.d.ts +3 -0
- package/lib/types/services/function-list/compatibility.d.ts.map +1 -0
- package/lib/types/services/function-list/cube.d.ts +3 -0
- package/lib/types/services/function-list/cube.d.ts.map +1 -0
- package/lib/types/services/function-list/database.d.ts +3 -0
- package/lib/types/services/function-list/database.d.ts.map +1 -0
- package/lib/types/services/function-list/date.d.ts +3 -0
- package/lib/types/services/function-list/date.d.ts.map +1 -0
- package/lib/types/services/function-list/engineering.d.ts +3 -0
- package/lib/types/services/function-list/engineering.d.ts.map +1 -0
- package/lib/types/services/function-list/financial.d.ts +3 -0
- package/lib/types/services/function-list/financial.d.ts.map +1 -0
- package/lib/types/services/function-list/function-list.d.ts +3 -0
- package/lib/types/services/function-list/function-list.d.ts.map +1 -0
- package/lib/types/services/function-list/information.d.ts +3 -0
- package/lib/types/services/function-list/information.d.ts.map +1 -0
- package/lib/types/services/function-list/logical.d.ts +3 -0
- package/lib/types/services/function-list/logical.d.ts.map +1 -0
- package/lib/types/services/function-list/lookup.d.ts +3 -0
- package/lib/types/services/function-list/lookup.d.ts.map +1 -0
- package/lib/types/services/function-list/math.d.ts +3 -0
- package/lib/types/services/function-list/math.d.ts.map +1 -0
- package/lib/types/services/function-list/statistical.d.ts +3 -0
- package/lib/types/services/function-list/statistical.d.ts.map +1 -0
- package/lib/types/services/function-list/text.d.ts +3 -0
- package/lib/types/services/function-list/text.d.ts.map +1 -0
- package/lib/types/services/function-list/univer.d.ts +3 -0
- package/lib/types/services/function-list/univer.d.ts.map +1 -0
- package/lib/types/services/function-list/web.d.ts +3 -0
- package/lib/types/services/function-list/web.d.ts.map +1 -0
- package/lib/types/services/prompt.service.d.ts +106 -0
- package/lib/types/services/prompt.service.d.ts.map +1 -0
- package/lib/types/services/utils.d.ts +8 -0
- package/lib/types/services/utils.d.ts.map +1 -0
- package/lib/types/views/FormulaPromptContainer.d.ts +3 -0
- package/lib/types/views/FormulaPromptContainer.d.ts.map +1 -0
- package/lib/types/views/more-functions/MoreFunctions.d.ts +3 -0
- package/lib/types/views/more-functions/MoreFunctions.d.ts.map +1 -0
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +9 -0
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts.map +1 -0
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +9 -0
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts.map +1 -0
- package/lib/types/views/more-functions/input-params/InputParams.d.ts +8 -0
- package/lib/types/views/more-functions/input-params/InputParams.d.ts.map +1 -0
- package/lib/types/views/more-functions/interface.d.ts +2 -0
- package/lib/types/views/more-functions/interface.d.ts.map +1 -0
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +7 -0
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts.map +1 -0
- package/lib/types/views/prompt/error-function/error-function.d.ts +3 -0
- package/lib/types/views/prompt/error-function/error-function.d.ts.map +1 -0
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts +3 -0
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts.map +1 -0
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts +3 -0
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
// src/locale/function-list/array/en-US.ts
|
|
2
|
+
var en_US_default = {};
|
|
3
|
+
|
|
4
|
+
// src/locale/function-list/compatibility/en-US.ts
|
|
5
|
+
var en_US_default2 = {};
|
|
6
|
+
|
|
7
|
+
// src/locale/function-list/cube/en-US.ts
|
|
8
|
+
var en_US_default3 = {};
|
|
9
|
+
|
|
10
|
+
// src/locale/function-list/database/en-US.ts
|
|
11
|
+
var en_US_default4 = {};
|
|
12
|
+
|
|
13
|
+
// src/locale/function-list/date/en-US.ts
|
|
14
|
+
var en_US_default5 = {};
|
|
15
|
+
|
|
16
|
+
// src/locale/function-list/engineering/en-US.ts
|
|
17
|
+
var en_US_default6 = {};
|
|
18
|
+
|
|
19
|
+
// src/locale/function-list/financial/en-US.ts
|
|
20
|
+
var en_US_default7 = {};
|
|
21
|
+
|
|
22
|
+
// src/locale/function-list/information/en-US.ts
|
|
23
|
+
var en_US_default8 = {};
|
|
24
|
+
|
|
25
|
+
// src/locale/function-list/logical/en-US.ts
|
|
26
|
+
var en_US_default9 = {};
|
|
27
|
+
|
|
28
|
+
// src/locale/function-list/lookup/en-US.ts
|
|
29
|
+
var en_US_default10 = {};
|
|
30
|
+
|
|
31
|
+
// src/locale/function-list/math/en-US.ts
|
|
32
|
+
var en_US_default11 = {
|
|
33
|
+
SUM: {
|
|
34
|
+
description: "You can add individual values, cell references or ranges or a mix of all three.",
|
|
35
|
+
abstract: "Adds its arguments",
|
|
36
|
+
functionParameter: {
|
|
37
|
+
number1: {
|
|
38
|
+
name: "number1",
|
|
39
|
+
detail: "The first number you want to add. The number can be like 4, a cell reference like B6, or a cell range like B2:B8."
|
|
40
|
+
},
|
|
41
|
+
number2: {
|
|
42
|
+
name: "number2",
|
|
43
|
+
detail: "This is the second number you want to add. You can specify up to 255 numbers in this way."
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
SUMIF: {
|
|
48
|
+
description: "Sum the values in a range that meet criteria that you specify.",
|
|
49
|
+
abstract: "Adds the cells specified by a given criteria",
|
|
50
|
+
functionParameter: {
|
|
51
|
+
range: {
|
|
52
|
+
name: "range",
|
|
53
|
+
detail: "The range of cells that you want evaluated by criteria."
|
|
54
|
+
},
|
|
55
|
+
criteria: {
|
|
56
|
+
name: "criteria",
|
|
57
|
+
detail: "The criteria in the form of a number, expression, a cell reference, text, or a function that defines which cells will be added. Wildcard characters can be included - a question mark (?) to match any single character, an asterisk (*) to match any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character."
|
|
58
|
+
},
|
|
59
|
+
sum_range: {
|
|
60
|
+
name: "sum_range",
|
|
61
|
+
detail: "The actual cells to add, if you want to add cells other than those specified in the range argument. If the sum_range argument is omitted, Excel adds the cells that are specified in the range argument (the same cells to which the criteria is applied)."
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// src/locale/function-list/statistical/en-US.ts
|
|
68
|
+
var en_US_default12 = {
|
|
69
|
+
AVERAGE: {
|
|
70
|
+
description: "Returns the average (arithmetic mean) of the arguments.",
|
|
71
|
+
abstract: "Returns the average of its arguments",
|
|
72
|
+
functionParameter: {
|
|
73
|
+
number1: {
|
|
74
|
+
name: "number1",
|
|
75
|
+
detail: "The first number, cell reference, or range for which you want the average."
|
|
76
|
+
},
|
|
77
|
+
number2: {
|
|
78
|
+
name: "number2",
|
|
79
|
+
detail: "Additional numbers, cell references or ranges for which you want the average, up to a maximum of 255."
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
COUNT: {
|
|
84
|
+
description: "Counts the number of cells that contain numbers, and counts numbers within the list of arguments.",
|
|
85
|
+
abstract: "Counts how many numbers are in the list of arguments",
|
|
86
|
+
functionParameter: {
|
|
87
|
+
value1: {
|
|
88
|
+
name: "value1",
|
|
89
|
+
detail: "The first item, cell reference, or range within which you want to count numbers."
|
|
90
|
+
},
|
|
91
|
+
value2: {
|
|
92
|
+
name: "value2",
|
|
93
|
+
detail: "Up to 255 additional items, cell references, or ranges within which you want to count numbers."
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
MAX: {
|
|
98
|
+
description: "Returns the largest value in a set of values.",
|
|
99
|
+
abstract: "Returns the maximum value in a list of arguments",
|
|
100
|
+
functionParameter: {
|
|
101
|
+
number1: {
|
|
102
|
+
name: "number1",
|
|
103
|
+
detail: "The first number, cell reference, or range to calculate the maximum value from."
|
|
104
|
+
},
|
|
105
|
+
number2: {
|
|
106
|
+
name: "number2",
|
|
107
|
+
detail: "Additional numbers, cell references or ranges to calculate the maximum value from, up to a maximum of 255."
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
MIN: {
|
|
112
|
+
description: "Returns the smallest number in a set of values.",
|
|
113
|
+
abstract: "Returns the minimum value in a list of arguments",
|
|
114
|
+
functionParameter: {
|
|
115
|
+
number1: {
|
|
116
|
+
name: "number1",
|
|
117
|
+
detail: "The first number, cell reference, or range to calculate the minimum value from."
|
|
118
|
+
},
|
|
119
|
+
number2: {
|
|
120
|
+
name: "number2",
|
|
121
|
+
detail: "Additional numbers, cell references or ranges to calculate the minimum value from, up to a maximum of 255."
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// src/locale/function-list/text/en-US.ts
|
|
128
|
+
var en_US_default13 = {};
|
|
129
|
+
|
|
130
|
+
// src/locale/function-list/univer/en-US.ts
|
|
131
|
+
var en_US_default14 = {};
|
|
132
|
+
|
|
133
|
+
// src/locale/function-list/web/en-US.ts
|
|
134
|
+
var en_US_default15 = {};
|
|
135
|
+
|
|
136
|
+
// src/locale/en-US.ts
|
|
137
|
+
var en_US_default16 = {
|
|
138
|
+
formula: {
|
|
139
|
+
insert: {
|
|
140
|
+
tooltip: "Functions",
|
|
141
|
+
sum: "SUM",
|
|
142
|
+
average: "AVERAGE",
|
|
143
|
+
count: "COUNT",
|
|
144
|
+
max: "MAX",
|
|
145
|
+
min: "MIN",
|
|
146
|
+
more: "More Functions..."
|
|
147
|
+
},
|
|
148
|
+
functionList: {
|
|
149
|
+
...en_US_default7,
|
|
150
|
+
...en_US_default5,
|
|
151
|
+
...en_US_default11,
|
|
152
|
+
...en_US_default12,
|
|
153
|
+
...en_US_default10,
|
|
154
|
+
...en_US_default4,
|
|
155
|
+
...en_US_default13,
|
|
156
|
+
...en_US_default9,
|
|
157
|
+
...en_US_default8,
|
|
158
|
+
...en_US_default6,
|
|
159
|
+
...en_US_default3,
|
|
160
|
+
...en_US_default2,
|
|
161
|
+
...en_US_default15,
|
|
162
|
+
...en_US_default,
|
|
163
|
+
...en_US_default14
|
|
164
|
+
},
|
|
165
|
+
prompt: {
|
|
166
|
+
helpExample: "EXAMPLE",
|
|
167
|
+
helpAbstract: "ABOUT",
|
|
168
|
+
required: "Required.",
|
|
169
|
+
optional: "Optional."
|
|
170
|
+
},
|
|
171
|
+
functionType: {
|
|
172
|
+
financial: "Financial",
|
|
173
|
+
date: "Date & Time",
|
|
174
|
+
math: "Math & Trig",
|
|
175
|
+
statistical: "Statistical",
|
|
176
|
+
lookup: "Lookup & Reference",
|
|
177
|
+
database: "Database",
|
|
178
|
+
text: "Text",
|
|
179
|
+
logical: "Logical",
|
|
180
|
+
information: "Information",
|
|
181
|
+
engineering: "Engineering",
|
|
182
|
+
cube: "Cube",
|
|
183
|
+
compatibility: "Compatibility",
|
|
184
|
+
web: "Web",
|
|
185
|
+
array: "Array",
|
|
186
|
+
univer: "Univer"
|
|
187
|
+
},
|
|
188
|
+
moreFunctions: {
|
|
189
|
+
confirm: "Confirm",
|
|
190
|
+
prev: "Previous",
|
|
191
|
+
next: "Next",
|
|
192
|
+
searchFunctionPlaceholder: "Search function",
|
|
193
|
+
allFunctions: "All Functions",
|
|
194
|
+
syntax: "SYNTAX"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
export {
|
|
199
|
+
en_US_default16 as default
|
|
200
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
// src/locale/function-list/array/zh-CN.ts
|
|
2
|
+
var zh_CN_default = {};
|
|
3
|
+
|
|
4
|
+
// src/locale/function-list/compatibility/zh-CN.ts
|
|
5
|
+
var zh_CN_default2 = {};
|
|
6
|
+
|
|
7
|
+
// src/locale/function-list/cube/zh-CN.ts
|
|
8
|
+
var zh_CN_default3 = {};
|
|
9
|
+
|
|
10
|
+
// src/locale/function-list/database/zh-CN.ts
|
|
11
|
+
var zh_CN_default4 = {};
|
|
12
|
+
|
|
13
|
+
// src/locale/function-list/date/zh-CN.ts
|
|
14
|
+
var zh_CN_default5 = {};
|
|
15
|
+
|
|
16
|
+
// src/locale/function-list/engineering/zh-CN.ts
|
|
17
|
+
var zh_CN_default6 = {};
|
|
18
|
+
|
|
19
|
+
// src/locale/function-list/financial/zh-CN.ts
|
|
20
|
+
var zh_CN_default7 = {};
|
|
21
|
+
|
|
22
|
+
// src/locale/function-list/information/zh-CN.ts
|
|
23
|
+
var zh_CN_default8 = {};
|
|
24
|
+
|
|
25
|
+
// src/locale/function-list/logical/zh-CN.ts
|
|
26
|
+
var zh_CN_default9 = {};
|
|
27
|
+
|
|
28
|
+
// src/locale/function-list/lookup/zh-CN.ts
|
|
29
|
+
var zh_CN_default10 = {};
|
|
30
|
+
|
|
31
|
+
// src/locale/function-list/math/zh-CN.ts
|
|
32
|
+
var zh_CN_default11 = {
|
|
33
|
+
SUM: {
|
|
34
|
+
description: "\u5C06\u5355\u4E2A\u503C\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u662F\u533A\u57DF\u76F8\u52A0\uFF0C\u6216\u8005\u5C06\u4E09\u8005\u7684\u7EC4\u5408\u76F8\u52A0\u3002",
|
|
35
|
+
abstract: "\u6C42\u53C2\u6570\u7684\u548C",
|
|
36
|
+
functionParameter: {
|
|
37
|
+
number1: {
|
|
38
|
+
name: "\u6570\u503C1",
|
|
39
|
+
detail: "\u8981\u76F8\u52A0\u7684\u7B2C\u4E00\u4E2A\u6570\u5B57\u3002 \u8BE5\u6570\u5B57\u53EF\u4EE5\u662F 4 \u4E4B\u7C7B\u7684\u6570\u5B57\uFF0CB6 \u4E4B\u7C7B\u7684\u5355\u5143\u683C\u5F15\u7528\u6216 B2:B8 \u4E4B\u7C7B\u7684\u5355\u5143\u683C\u8303\u56F4\u3002"
|
|
40
|
+
},
|
|
41
|
+
number2: {
|
|
42
|
+
name: "\u6570\u503C2",
|
|
43
|
+
detail: "\u8FD9\u662F\u8981\u76F8\u52A0\u7684\u7B2C\u4E8C\u4E2A\u6570\u5B57\u3002 \u53EF\u4EE5\u6309\u7167\u8FD9\u79CD\u65B9\u5F0F\u6700\u591A\u6307\u5B9A 255 \u4E2A\u6570\u5B57\u3002"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
SUMIF: {
|
|
48
|
+
description: "\u5BF9\u8303\u56F4\u4E2D\u7B26\u5408\u6307\u5B9A\u6761\u4EF6\u7684\u503C\u6C42\u548C\u3002",
|
|
49
|
+
abstract: "\u6309\u7ED9\u5B9A\u6761\u4EF6\u5BF9\u6307\u5B9A\u5355\u5143\u683C\u6C42\u548C",
|
|
50
|
+
functionParameter: {
|
|
51
|
+
range: {
|
|
52
|
+
name: "\u8303\u56F4",
|
|
53
|
+
detail: "\u8981\u6839\u636E\u6761\u4EF6\u8FDB\u884C\u68C0\u6D4B\u7684\u8303\u56F4\u3002"
|
|
54
|
+
},
|
|
55
|
+
criteria: {
|
|
56
|
+
name: "\u6761\u4EF6",
|
|
57
|
+
detail: "\u4EE5\u6570\u5B57\u3001\u8868\u8FBE\u5F0F\u3001\u5355\u5143\u683C\u5F15\u7528\u3001\u6587\u672C\u6216\u51FD\u6570\u7684\u5F62\u5F0F\u6765\u5B9A\u4E49\u5C06\u6DFB\u52A0\u54EA\u4E9B\u5355\u5143\u683C\u3002\u53EF\u5305\u62EC\u7684\u901A\u914D\u7B26\u5B57\u7B26 - \u95EE\u53F7\uFF08\uFF1F\uFF09\u4EE5\u5339\u914D\u4EFB\u610F\u5355\u4E2A\u5B57\u7B26\uFF0C\u661F\u53F7\uFF08*\uFF09\u4EE5\u5339\u914D\u4EFB\u610F\u5B57\u7B26\u5E8F\u5217\u3002 \u5982\u679C\u8981\u67E5\u627E\u5B9E\u9645\u7684\u95EE\u53F7\u6216\u661F\u53F7\uFF0C\u8BF7\u5728\u8BE5\u5B57\u7B26\u524D\u952E\u5165\u6CE2\u5F62\u7B26\uFF08~\uFF09\u3002"
|
|
58
|
+
},
|
|
59
|
+
sum_range: {
|
|
60
|
+
name: "\u6C42\u548C\u8303\u56F4",
|
|
61
|
+
detail: "\u8981\u6DFB\u52A0\u7684\u5B9E\u9645\u5355\u5143\u683C\uFF0C\u5982\u679C\u8981\u6DFB\u52A0\u5728\u8303\u56F4\u53C2\u6570\u6307\u5B9A\u4EE5\u5916\u7684\u5176\u4ED6\u5355\u5143\u683C\u3002 \u5982\u679C\u7701\u7565sum_range\u53C2\u6570\uFF0CExcel\u5C31\u4F1A\u6DFB\u52A0\u8303\u56F4\u53C2\u6570\u4E2D\u6307\u5B9A\u7684\u5355\u5143\u683C\uFF08\u4E0E\u5E94\u7528\u6807\u51C6\u7684\u5355\u5143\u683C\u76F8\u540C\uFF09\u3002"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// src/locale/function-list/statistical/zh-CN.ts
|
|
68
|
+
var zh_CN_default12 = {
|
|
69
|
+
AVERAGE: {
|
|
70
|
+
description: "\u8FD4\u56DE\u53C2\u6570\u7684\u5E73\u5747\u503C\uFF08\u7B97\u672F\u5E73\u5747\u503C\uFF09\u3002",
|
|
71
|
+
abstract: "\u8FD4\u56DE\u53C2\u6570\u5E73\u5747\u503C",
|
|
72
|
+
functionParameter: {
|
|
73
|
+
number1: {
|
|
74
|
+
name: "\u6570\u503C1",
|
|
75
|
+
detail: "\u8981\u8BA1\u7B97\u5E73\u5747\u503C\u7684\u7B2C\u4E00\u4E2A\u6570\u5B57\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u5355\u5143\u683C\u533A\u57DF\u3002"
|
|
76
|
+
},
|
|
77
|
+
number2: {
|
|
78
|
+
name: "\u6570\u503C2",
|
|
79
|
+
detail: "\u8981\u8BA1\u7B97\u5E73\u5747\u503C\u7684\u5176\u4ED6\u6570\u5B57\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u5355\u5143\u683C\u533A\u57DF\uFF0C\u6700\u591A\u53EF\u5305\u542B 255 \u4E2A\u3002"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
COUNT: {
|
|
84
|
+
description: "\u8BA1\u7B97\u5305\u542B\u6570\u5B57\u7684\u5355\u5143\u683C\u4E2A\u6570\u4EE5\u53CA\u53C2\u6570\u5217\u8868\u4E2D\u6570\u5B57\u7684\u4E2A\u6570\u3002",
|
|
85
|
+
abstract: "\u8BA1\u7B97\u53C2\u6570\u5217\u8868\u4E2D\u6570\u5B57\u7684\u4E2A\u6570",
|
|
86
|
+
functionParameter: {
|
|
87
|
+
value1: {
|
|
88
|
+
name: "\u503C1",
|
|
89
|
+
detail: "\u8981\u8BA1\u7B97\u5176\u4E2D\u6570\u5B57\u7684\u4E2A\u6570\u7684\u7B2C\u4E00\u9879\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u533A\u57DF\u3002"
|
|
90
|
+
},
|
|
91
|
+
value2: {
|
|
92
|
+
name: "\u503C2",
|
|
93
|
+
detail: "\u8981\u8BA1\u7B97\u5176\u4E2D\u6570\u5B57\u7684\u4E2A\u6570\u7684\u5176\u4ED6\u9879\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u533A\u57DF\uFF0C\u6700\u591A\u53EF\u5305\u542B 255 \u4E2A\u3002"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
MAX: {
|
|
98
|
+
description: "\u8FD4\u56DE\u4E00\u7EC4\u503C\u4E2D\u7684\u6700\u5927\u503C\u3002",
|
|
99
|
+
abstract: "\u8FD4\u56DE\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5927\u503C",
|
|
100
|
+
functionParameter: {
|
|
101
|
+
number1: {
|
|
102
|
+
name: "\u6570\u503C1",
|
|
103
|
+
detail: "\u8981\u8BA1\u7B97\u6700\u5927\u503C\u7684\u7B2C\u4E00\u4E2A\u6570\u5B57\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u5355\u5143\u683C\u533A\u57DF\u3002"
|
|
104
|
+
},
|
|
105
|
+
number2: {
|
|
106
|
+
name: "\u6570\u503C2",
|
|
107
|
+
detail: "\u8981\u8BA1\u7B97\u6700\u5927\u503C\u7684\u5176\u4ED6\u6570\u5B57\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u5355\u5143\u683C\u533A\u57DF\uFF0C\u6700\u591A\u53EF\u5305\u542B 255 \u4E2A\u3002"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
MIN: {
|
|
112
|
+
description: "\u8FD4\u56DE\u4E00\u7EC4\u503C\u4E2D\u7684\u6700\u5C0F\u503C\u3002",
|
|
113
|
+
abstract: "\u8FD4\u56DE\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5C0F\u503C",
|
|
114
|
+
functionParameter: {
|
|
115
|
+
number1: {
|
|
116
|
+
name: "\u6570\u503C1",
|
|
117
|
+
detail: "\u8981\u8BA1\u7B97\u6700\u5C0F\u503C\u7684\u7B2C\u4E00\u4E2A\u6570\u5B57\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u5355\u5143\u683C\u533A\u57DF\u3002"
|
|
118
|
+
},
|
|
119
|
+
number2: {
|
|
120
|
+
name: "\u6570\u503C2",
|
|
121
|
+
detail: "\u8981\u8BA1\u7B97\u6700\u5C0F\u503C\u7684\u5176\u4ED6\u6570\u5B57\u3001\u5355\u5143\u683C\u5F15\u7528\u6216\u5355\u5143\u683C\u533A\u57DF\uFF0C\u6700\u591A\u53EF\u5305\u542B 255 \u4E2A\u3002"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// src/locale/function-list/text/zh-CN.ts
|
|
128
|
+
var zh_CN_default13 = {};
|
|
129
|
+
|
|
130
|
+
// src/locale/function-list/univer/zh-CN.ts
|
|
131
|
+
var zh_CN_default14 = {};
|
|
132
|
+
|
|
133
|
+
// src/locale/function-list/web/zh-CN.ts
|
|
134
|
+
var zh_CN_default15 = {};
|
|
135
|
+
|
|
136
|
+
// src/locale/zh-CN.ts
|
|
137
|
+
var zh_CN_default16 = {
|
|
138
|
+
formula: {
|
|
139
|
+
insert: {
|
|
140
|
+
tooltip: "\u51FD\u6570",
|
|
141
|
+
sum: "\u6C42\u548C",
|
|
142
|
+
average: "\u5E73\u5747\u503C",
|
|
143
|
+
count: "\u8BA1\u6570",
|
|
144
|
+
max: "\u6700\u5927\u503C",
|
|
145
|
+
min: "\u6700\u5C0F\u503C",
|
|
146
|
+
more: "\u66F4\u591A\u51FD\u6570..."
|
|
147
|
+
},
|
|
148
|
+
functionList: {
|
|
149
|
+
...zh_CN_default7,
|
|
150
|
+
...zh_CN_default5,
|
|
151
|
+
...zh_CN_default11,
|
|
152
|
+
...zh_CN_default12,
|
|
153
|
+
...zh_CN_default10,
|
|
154
|
+
...zh_CN_default4,
|
|
155
|
+
...zh_CN_default13,
|
|
156
|
+
...zh_CN_default9,
|
|
157
|
+
...zh_CN_default8,
|
|
158
|
+
...zh_CN_default6,
|
|
159
|
+
...zh_CN_default3,
|
|
160
|
+
...zh_CN_default2,
|
|
161
|
+
...zh_CN_default15,
|
|
162
|
+
...zh_CN_default,
|
|
163
|
+
...zh_CN_default14
|
|
164
|
+
},
|
|
165
|
+
prompt: {
|
|
166
|
+
helpExample: "\u793A\u4F8B",
|
|
167
|
+
helpAbstract: "\u7B80\u4ECB",
|
|
168
|
+
required: "\u5FC5\u9700\u3002",
|
|
169
|
+
optional: "\u53EF\u9009\u3002"
|
|
170
|
+
},
|
|
171
|
+
functionType: {
|
|
172
|
+
financial: "\u8D22\u52A1",
|
|
173
|
+
date: "\u65E5\u671F\u4E0E\u65F6\u95F4",
|
|
174
|
+
math: "\u6570\u5B66\u4E0E\u4E09\u89D2\u51FD\u6570",
|
|
175
|
+
statistical: "\u7EDF\u8BA1",
|
|
176
|
+
lookup: "\u67E5\u627E\u4E0E\u5F15\u7528",
|
|
177
|
+
database: "\u6570\u636E\u5E93",
|
|
178
|
+
text: "\u6587\u672C",
|
|
179
|
+
logical: "\u903B\u8F91",
|
|
180
|
+
information: "\u4FE1\u606F",
|
|
181
|
+
engineering: "\u5DE5\u7A0B",
|
|
182
|
+
cube: "\u591A\u7EF4\u6570\u636E\u96C6",
|
|
183
|
+
compatibility: "\u517C\u5BB9\u6027",
|
|
184
|
+
web: "Web",
|
|
185
|
+
array: "\u6570\u7EC4",
|
|
186
|
+
univer: "Univer"
|
|
187
|
+
},
|
|
188
|
+
moreFunctions: {
|
|
189
|
+
confirm: "\u5E94\u7528",
|
|
190
|
+
prev: "\u4E0A\u4E00\u6B65",
|
|
191
|
+
next: "\u4E0B\u4E00\u6B65",
|
|
192
|
+
searchFunctionPlaceholder: "\u641C\u7D22\u51FD\u6570",
|
|
193
|
+
allFunctions: "\u5168\u90E8\u51FD\u6570",
|
|
194
|
+
syntax: "\u8BED\u6CD5"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
export {
|
|
199
|
+
zh_CN_default16 as default
|
|
200
|
+
};
|
package/lib/index.css
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/* temp_stylePlugin:src/views/prompt/error-function/index.module.less */
|
|
2
|
+
.univer-formula-error-function {
|
|
3
|
+
position: absolute;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* temp_stylePlugin:src/views/prompt/help-function/index.module.less */
|
|
7
|
+
.univer-formula-help-function {
|
|
8
|
+
user-select: none;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
width: 340px;
|
|
11
|
+
margin: 0;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
list-style: none;
|
|
14
|
+
background-color: rgb(var(--bg-color-secondary));
|
|
15
|
+
border: 1px solid rgb(var(--border-color));
|
|
16
|
+
border-radius: var(--border-radius-lg);
|
|
17
|
+
outline: none;
|
|
18
|
+
box-shadow: var(--box-shadow-base);
|
|
19
|
+
}
|
|
20
|
+
.univer-formula-help-function-title {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
padding: var(--padding-base) var(--padding-xl);
|
|
26
|
+
font-size: var(--font-size-xs);
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
color: rgb(var(--text-color));
|
|
29
|
+
border-bottom: 1px solid rgb(var(--border-color));
|
|
30
|
+
}
|
|
31
|
+
.univer-formula-help-function-title-icons {
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
.univer-formula-help-function-title-icon {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
width: fit-content;
|
|
41
|
+
height: fit-content;
|
|
42
|
+
margin-left: var(--margin-sm);
|
|
43
|
+
padding: var(--padding-base) var(--padding-xs);
|
|
44
|
+
color: rgb(var(--text-color-secondary));
|
|
45
|
+
border-radius: var(--border-radius-base);
|
|
46
|
+
outline: none;
|
|
47
|
+
transition: background-color 0.2s;
|
|
48
|
+
}
|
|
49
|
+
.univer-formula-help-function-title-icon:hover {
|
|
50
|
+
background-color: rgb(var(--bg-color-hover));
|
|
51
|
+
}
|
|
52
|
+
.univer-formula-help-function-content {
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
max-height: 300px;
|
|
56
|
+
padding: 0 var(--padding-xl) var(--padding-xl);
|
|
57
|
+
}
|
|
58
|
+
.univer-formula-help-function-content-inner {
|
|
59
|
+
margin-top: var(--padding-xl);
|
|
60
|
+
}
|
|
61
|
+
.univer-formula-help-function-content-params {
|
|
62
|
+
margin: var(--margin-xs) 0;
|
|
63
|
+
}
|
|
64
|
+
.univer-formula-help-function-content-params-title {
|
|
65
|
+
margin-bottom: var(--margin-xs);
|
|
66
|
+
font-size: var(--font-size-xs);
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
color: rgb(var(--text-color));
|
|
69
|
+
}
|
|
70
|
+
.univer-formula-help-function-content-params-detail {
|
|
71
|
+
font-size: var(--font-size-xxs);
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
color: rgb(var(--text-color-secondary));
|
|
74
|
+
}
|
|
75
|
+
.univer-formula-help-function-active {
|
|
76
|
+
color: rgb(var(--primary-color));
|
|
77
|
+
}
|
|
78
|
+
.univer-formula-help-decorator {
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
position: fixed;
|
|
81
|
+
z-index: 10;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
padding: var(--padding-xs);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* temp_stylePlugin:src/views/prompt/search-function/index.module.less */
|
|
89
|
+
.univer-formula-search-function {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
width: 340px;
|
|
92
|
+
margin: 0;
|
|
93
|
+
padding: var(--padding-base);
|
|
94
|
+
line-height: 20px;
|
|
95
|
+
list-style: none;
|
|
96
|
+
background-color: rgb(var(--bg-color-secondary));
|
|
97
|
+
border: 1px solid rgb(var(--border-color));
|
|
98
|
+
border-radius: var(--border-radius-lg);
|
|
99
|
+
outline: none;
|
|
100
|
+
box-shadow: var(--box-shadow-base);
|
|
101
|
+
}
|
|
102
|
+
.univer-formula-search-function-item {
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
padding: var(--padding-xs) var(--padding-sm);
|
|
106
|
+
color: rgb(var(--text-color));
|
|
107
|
+
border-radius: var(--border-radius-base);
|
|
108
|
+
transition: background 0.2s;
|
|
109
|
+
}
|
|
110
|
+
.univer-formula-search-function-item-name {
|
|
111
|
+
font-size: var(--font-size-xs);
|
|
112
|
+
}
|
|
113
|
+
.univer-formula-search-function-item-name-light {
|
|
114
|
+
color: rgb(var(--error-color));
|
|
115
|
+
}
|
|
116
|
+
.univer-formula-search-function-item-desc {
|
|
117
|
+
display: block;
|
|
118
|
+
font-size: var(--font-size-xxs);
|
|
119
|
+
}
|
|
120
|
+
.univer-formula-search-function-item-active {
|
|
121
|
+
background-color: rgb(var(--bg-color-hover));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* temp_stylePlugin:src/views/more-functions/index.module.less */
|
|
125
|
+
.univer-formula-more-functions {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
height: 100%;
|
|
130
|
+
line-height: 20px;
|
|
131
|
+
}
|
|
132
|
+
.univer-formula-more-functions-operation {
|
|
133
|
+
display: flex;
|
|
134
|
+
justify-content: flex-end;
|
|
135
|
+
}
|
|
136
|
+
.univer-formula-more-functions-operation > button {
|
|
137
|
+
margin: 0 0 var(--margin-lg) var(--margin-base);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* temp_stylePlugin:src/views/more-functions/function-params/index.module.less */
|
|
141
|
+
.univer-formula-function-params {
|
|
142
|
+
margin: var(--margin-xs) 0;
|
|
143
|
+
font-size: var(--font-size-xxs);
|
|
144
|
+
}
|
|
145
|
+
.univer-formula-function-params-title {
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
color: rgb(var(--text-color-secondary));
|
|
148
|
+
}
|
|
149
|
+
.univer-formula-function-params-detail {
|
|
150
|
+
font-weight: 400;
|
|
151
|
+
color: rgb(var(--text-color));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* temp_stylePlugin:src/views/more-functions/input-params/index.module.less */
|
|
155
|
+
.univer-formula-input-params-list {
|
|
156
|
+
overflow-y: auto;
|
|
157
|
+
height: 364px;
|
|
158
|
+
}
|
|
159
|
+
.univer-formula-input-params-list-item-name {
|
|
160
|
+
font-size: var(--font-size-sm);
|
|
161
|
+
}
|
|
162
|
+
.univer-formula-input-params-list-item-selector {
|
|
163
|
+
margin: var(--margin-xxs) 0 var(--margin-xs) 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* temp_stylePlugin:src/views/more-functions/select-function/index.module.less */
|
|
167
|
+
.univer-formula-select-function-select {
|
|
168
|
+
display: flex;
|
|
169
|
+
gap: 10%;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: space-between;
|
|
172
|
+
}
|
|
173
|
+
.univer-formula-select-function-result {
|
|
174
|
+
user-select: none;
|
|
175
|
+
overflow-y: auto;
|
|
176
|
+
box-sizing: border-box;
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: 364px;
|
|
179
|
+
margin: 0;
|
|
180
|
+
margin-top: var(--margin-xs);
|
|
181
|
+
padding: var(--padding-base);
|
|
182
|
+
list-style: none;
|
|
183
|
+
border: 1px solid rgb(var(--border-color));
|
|
184
|
+
border-radius: var(--border-radius-base);
|
|
185
|
+
outline: none;
|
|
186
|
+
}
|
|
187
|
+
.univer-formula-select-function-result-item {
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
position: relative;
|
|
190
|
+
box-sizing: border-box;
|
|
191
|
+
padding: var(--padding-xs) 28px;
|
|
192
|
+
font-size: var(--font-size-xs);
|
|
193
|
+
color: rgb(var(--text-color));
|
|
194
|
+
border-radius: var(--border-radius-base);
|
|
195
|
+
transition: background 0.2s;
|
|
196
|
+
}
|
|
197
|
+
.univer-formula-select-function-result-item-name-light {
|
|
198
|
+
color: rgb(var(--error-color));
|
|
199
|
+
}
|
|
200
|
+
.univer-formula-select-function-result-item-selected {
|
|
201
|
+
position: absolute;
|
|
202
|
+
top: 50%;
|
|
203
|
+
left: 6px;
|
|
204
|
+
transform: translateY(-50%);
|
|
205
|
+
display: inline-flex;
|
|
206
|
+
font-size: var(--font-size-lg);
|
|
207
|
+
color: rgb(var(--success-color));
|
|
208
|
+
}
|
|
209
|
+
.univer-formula-select-function-result-item-active {
|
|
210
|
+
background-color: rgb(var(--bg-color-hover));
|
|
211
|
+
}
|
|
212
|
+
.univer-formula-select-function-content {
|
|
213
|
+
overflow-y: auto;
|
|
214
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
export interface IInsertFunction {
|
|
3
|
+
/**
|
|
4
|
+
* The range into which the function is to be inserted
|
|
5
|
+
*/
|
|
6
|
+
range: IRange;
|
|
7
|
+
/**
|
|
8
|
+
* Where there is a function id, other locations reference this function id
|
|
9
|
+
*/
|
|
10
|
+
primary: {
|
|
11
|
+
row: number;
|
|
12
|
+
column: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Function name
|
|
16
|
+
*/
|
|
17
|
+
formula: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IInsertFunctionCommandParams {
|
|
20
|
+
list: IInsertFunction[];
|
|
21
|
+
}
|
|
22
|
+
export declare const InsertFunctionCommand: ICommand;
|
|
23
|
+
//# sourceMappingURL=insert-function.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-function.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/insert-function.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAMlE,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,4BAA4B;IACzC,IAAI,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,qBAAqB,EAAE,QAmCnC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IWorkbookData } from '@univerjs/core';
|
|
2
|
+
import { Univer } from '@univerjs/core';
|
|
3
|
+
import type { Dependency } from '@wendellhu/redi';
|
|
4
|
+
export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
|
|
5
|
+
univer: Univer;
|
|
6
|
+
get: {
|
|
7
|
+
<T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
|
|
8
|
+
<T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
|
|
9
|
+
<T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
|
|
10
|
+
<T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
|
|
11
|
+
<T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
|
|
12
|
+
<T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
|
|
13
|
+
};
|
|
14
|
+
sheet: import("@univerjs/core").Workbook;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=create-command-test-bed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-command-test-bed.d.ts","sourceRoot":"","sources":["../../../../../src/commands/operations/__tests__/create-command-test-bed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAuE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA0BlD,wBAAgB,oBAAoB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,EAAE;;;;;;;;;;;EAoD/F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-function.operation.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/operations/__tests__/insert-function.operation.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IOperation } from '@univerjs/core';
|
|
2
|
+
import type { DeviceInputEventType } from '@univerjs/engine-render';
|
|
3
|
+
import type { KeyCode, MetaKeys } from '@univerjs/ui';
|
|
4
|
+
import type { META_KEY_CTRL_AND_SHIFT } from '../../common/prompt';
|
|
5
|
+
export interface ISelectEditorFormulaOperationParam {
|
|
6
|
+
eventType: DeviceInputEventType;
|
|
7
|
+
keycode?: KeyCode;
|
|
8
|
+
metaKey?: MetaKeys | typeof META_KEY_CTRL_AND_SHIFT;
|
|
9
|
+
}
|
|
10
|
+
export declare const SelectEditorFormulaOperation: IOperation<ISelectEditorFormulaOperationParam>;
|
|
11
|
+
//# sourceMappingURL=editor-formula.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-formula.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/editor-formula.operation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,WAAW,kCAAkC;IAC/C,SAAS,EAAE,oBAAoB,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,uBAAuB,CAAC;CACvD;AAED,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,kCAAkC,CAkCvF,CAAC"}
|