@univerjs/sheets-formula 0.1.0-alpha.1 → 0.1.0-alpha.2
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.txt +178 -0
- package/lib/cjs/index.js +11 -4215
- package/lib/es/index.js +4346 -0
- package/lib/index.css +1 -214
- package/lib/types/commands/commands/formula-clipboard.command.d.ts +18 -0
- package/lib/types/commands/commands/insert-function.command.d.ts +15 -1
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +15 -1
- package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts +15 -1
- package/lib/types/commands/operations/editor-formula.operation.d.ts +15 -1
- package/lib/types/commands/operations/help-function.operation.d.ts +15 -1
- package/lib/types/commands/operations/insert-function.operation.d.ts +15 -1
- package/lib/types/commands/operations/more-functions.operation.d.ts +15 -1
- package/lib/types/commands/operations/reference-absolute.operation.d.ts +15 -1
- package/lib/types/commands/operations/search-function.operation.d.ts +15 -1
- package/lib/types/common/plugin-name.d.ts +15 -1
- package/lib/types/common/prompt.d.ts +15 -1
- package/lib/types/common/selection.d.ts +15 -1
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +15 -1
- package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts +15 -1
- package/lib/types/controllers/__tests__/formula-clipboard.controller.spec.d.ts +16 -0
- package/lib/types/controllers/__tests__/update-formula.controller.spec.d.ts +16 -0
- package/lib/types/controllers/__tests__/utils.spec.d.ts +16 -0
- package/lib/types/controllers/active-dirty.controller.d.ts +40 -0
- package/lib/types/controllers/array-formula-display.controller.d.ts +27 -0
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +18 -4
- package/lib/types/controllers/formula-clipboard.controller.d.ts +41 -0
- package/lib/types/controllers/formula-editor-show.controller.d.ts +35 -0
- package/lib/types/controllers/formula-input.controller.d.ts +18 -4
- package/lib/types/controllers/formula-ui.controller.d.ts +15 -1
- package/lib/types/controllers/menu.d.ts +16 -1
- package/lib/types/controllers/prompt.controller.d.ts +18 -4
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +15 -1
- package/lib/types/controllers/trigger-calculation.controller.d.ts +32 -0
- package/lib/types/controllers/update-formula.controller.d.ts +75 -0
- package/lib/types/controllers/utils.d.ts +26 -0
- package/lib/types/formula-ui-plugin.d.ts +16 -2
- package/lib/types/index.d.ts +17 -2
- package/lib/types/locale/en-US.d.ts +18 -1
- package/lib/types/locale/function-list/array/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/array/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/compatibility/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/cube/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/cube/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/database/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/database/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/date/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/date/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/engineering/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/financial/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/financial/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/information/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/information/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/logical/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/lookup/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/math/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/math/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/statistical/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/text/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/text/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/univer/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/univer/zh-CN.d.ts +15 -1
- package/lib/types/locale/function-list/web/en-US.d.ts +15 -1
- package/lib/types/locale/function-list/web/zh-CN.d.ts +15 -1
- package/lib/types/locale/index.d.ts +15 -1
- package/lib/types/locale/zh-CN.d.ts +18 -1
- package/lib/types/services/active-dirty-manager.service.d.ts +48 -0
- package/lib/types/services/description.service.d.ts +21 -7
- package/lib/types/services/formula-input.service.d.ts +15 -4
- package/lib/types/services/function-list/array.d.ts +15 -1
- package/lib/types/services/function-list/compatibility.d.ts +15 -1
- package/lib/types/services/function-list/cube.d.ts +15 -1
- package/lib/types/services/function-list/database.d.ts +15 -1
- package/lib/types/services/function-list/date.d.ts +15 -1
- package/lib/types/services/function-list/engineering.d.ts +15 -1
- package/lib/types/services/function-list/financial.d.ts +15 -1
- package/lib/types/services/function-list/function-list.d.ts +15 -1
- package/lib/types/services/function-list/information.d.ts +15 -1
- package/lib/types/services/function-list/logical.d.ts +15 -1
- package/lib/types/services/function-list/lookup.d.ts +15 -1
- package/lib/types/services/function-list/math.d.ts +15 -1
- package/lib/types/services/function-list/statistical.d.ts +15 -1
- package/lib/types/services/function-list/text.d.ts +15 -1
- package/lib/types/services/function-list/univer.d.ts +15 -1
- package/lib/types/services/function-list/web.d.ts +15 -1
- package/lib/types/services/prompt.service.d.ts +15 -1
- package/lib/types/services/utils.d.ts +15 -1
- package/lib/types/views/FormulaPromptContainer.d.ts +15 -1
- package/lib/types/views/more-functions/MoreFunctions.d.ts +15 -1
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +15 -1
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +15 -1
- package/lib/types/views/more-functions/input-params/InputParams.d.ts +15 -1
- package/lib/types/views/more-functions/interface.d.ts +15 -1
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +15 -1
- package/lib/types/views/prompt/error-function/error-function.d.ts +15 -1
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts +15 -1
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts +15 -1
- package/lib/umd/index.js +11 -0
- package/package.json +42 -31
- package/LICENSE +0 -21
- package/lib/cjs/locale/en-US.js +0 -223
- package/lib/cjs/locale/zh-CN.js +0 -223
- package/lib/esm/index.js +0 -4205
- package/lib/esm/locale/en-US.js +0 -200
- package/lib/esm/locale/zh-CN.js +0 -200
- package/lib/types/commands/commands/insert-function.command.d.ts.map +0 -1
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts.map +0 -1
- package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts.map +0 -1
- package/lib/types/commands/operations/editor-formula.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/help-function.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/insert-function.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/more-functions.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/reference-absolute.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/search-function.operation.d.ts.map +0 -1
- package/lib/types/common/plugin-name.d.ts.map +0 -1
- package/lib/types/common/prompt.d.ts.map +0 -1
- package/lib/types/common/selection.d.ts.map +0 -1
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts.map +0 -1
- package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts.map +0 -1
- package/lib/types/controllers/formula-auto-fill.controller.d.ts.map +0 -1
- package/lib/types/controllers/formula-input.controller.d.ts.map +0 -1
- package/lib/types/controllers/formula-ui.controller.d.ts.map +0 -1
- package/lib/types/controllers/menu.d.ts.map +0 -1
- package/lib/types/controllers/prompt.controller.d.ts.map +0 -1
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts.map +0 -1
- package/lib/types/formula-ui-plugin.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/locale/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/array/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/array/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/compatibility/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/cube/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/cube/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/database/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/database/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/date/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/date/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/engineering/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/financial/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/financial/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/information/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/information/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/logical/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/logical/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/lookup/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/math/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/math/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/statistical/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/text/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/text/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/univer/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/univer/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/function-list/web/en-US.d.ts.map +0 -1
- package/lib/types/locale/function-list/web/zh-CN.d.ts.map +0 -1
- package/lib/types/locale/index.d.ts.map +0 -1
- package/lib/types/locale/zh-CN.d.ts.map +0 -1
- package/lib/types/services/description.service.d.ts.map +0 -1
- package/lib/types/services/formula-input.service.d.ts.map +0 -1
- package/lib/types/services/function-list/array.d.ts.map +0 -1
- package/lib/types/services/function-list/compatibility.d.ts.map +0 -1
- package/lib/types/services/function-list/cube.d.ts.map +0 -1
- package/lib/types/services/function-list/database.d.ts.map +0 -1
- package/lib/types/services/function-list/date.d.ts.map +0 -1
- package/lib/types/services/function-list/engineering.d.ts.map +0 -1
- package/lib/types/services/function-list/financial.d.ts.map +0 -1
- package/lib/types/services/function-list/function-list.d.ts.map +0 -1
- package/lib/types/services/function-list/information.d.ts.map +0 -1
- package/lib/types/services/function-list/logical.d.ts.map +0 -1
- package/lib/types/services/function-list/lookup.d.ts.map +0 -1
- package/lib/types/services/function-list/math.d.ts.map +0 -1
- package/lib/types/services/function-list/statistical.d.ts.map +0 -1
- package/lib/types/services/function-list/text.d.ts.map +0 -1
- package/lib/types/services/function-list/univer.d.ts.map +0 -1
- package/lib/types/services/function-list/web.d.ts.map +0 -1
- package/lib/types/services/prompt.service.d.ts.map +0 -1
- package/lib/types/services/utils.d.ts.map +0 -1
- package/lib/types/views/FormulaPromptContainer.d.ts.map +0 -1
- package/lib/types/views/more-functions/MoreFunctions.d.ts.map +0 -1
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts.map +0 -1
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts.map +0 -1
- package/lib/types/views/more-functions/input-params/InputParams.d.ts.map +0 -1
- package/lib/types/views/more-functions/interface.d.ts.map +0 -1
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts.map +0 -1
- package/lib/types/views/prompt/error-function/error-function.d.ts.map +0 -1
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts.map +0 -1
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts.map +0 -1
package/lib/index.css
CHANGED
|
@@ -1,214 +1 @@
|
|
|
1
|
-
|
|
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
|
-
}
|
|
1
|
+
.univer-formula-error-function{position:absolute}.univer-formula-help-function{-webkit-user-select:none;user-select:none;box-sizing:border-box;width:250px;margin:0;line-height:20px;list-style:none;background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-formula-help-function-title{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding:var(--padding-base) var(--padding-lg);font-size:var(--font-size-xs);font-weight:500;color:rgb(var(--text-color));border-bottom:1px solid rgb(var(--border-color))}.univer-formula-help-function-title-icons{display:flex}.univer-formula-help-function-title-icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:var(--margin-xs);padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-formula-help-function-title-icon:hover{background-color:rgb(var(--bg-color-hover))}.univer-formula-help-function-content{overflow-y:auto;box-sizing:border-box;max-height:350px;padding:0 var(--padding-lg) var(--padding-base) var(--padding-lg)}.univer-formula-help-function-content-inner{margin-top:var(--margin-sm)}.univer-formula-help-function-content-params{margin:var(--margin-xs) 0}.univer-formula-help-function-content-params-title{margin-bottom:var(--margin-xs);font-size:var(--font-size-xs);font-weight:500;color:rgb(var(--text-color))}.univer-formula-help-function-content-params-detail{font-size:var(--font-size-xxs);font-weight:400;color:rgb(var(--text-color-secondary))}.univer-formula-help-function-active{color:rgb(var(--primary-color))}.univer-formula-help-decorator{cursor:pointer;position:fixed;z-index:10;display:flex;align-items:center;justify-content:center;padding:var(--padding-xs)}.univer-formula-search-function{overflow-y:auto;box-sizing:border-box;width:250px;max-height:400px;margin:0;padding:var(--padding-sm);line-height:20px;list-style:none;background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-formula-search-function-item{cursor:pointer;box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-formula-search-function-item-name{font-size:var(--font-size-xs)}.univer-formula-search-function-item-name-light{color:rgb(var(--error-color))}.univer-formula-search-function-item-desc{display:block;font-size:var(--font-size-xxs)}.univer-formula-search-function-item-active{background-color:rgb(var(--bg-color-hover))}.univer-formula-more-functions{display:flex;flex-direction:column;justify-content:space-between;height:100%;line-height:20px}.univer-formula-more-functions-operation{display:flex;justify-content:flex-end}.univer-formula-more-functions-operation>button{margin:0 0 var(--margin-lg) var(--margin-base)}.univer-formula-function-params{margin:var(--margin-xs) 0;font-size:var(--font-size-xxs)}.univer-formula-function-params-title{font-weight:500;color:rgb(var(--text-color-secondary))}.univer-formula-function-params-detail{font-weight:400;color:rgb(var(--text-color))}.univer-formula-input-params-list{overflow-y:auto;height:364px}.univer-formula-input-params-list-item-name{font-size:var(--font-size-sm)}.univer-formula-input-params-list-item-selector{margin:var(--margin-xxs) 0 var(--margin-xs) 0}.univer-formula-select-function-select{display:flex;gap:10%;align-items:center;justify-content:space-between}.univer-formula-select-function-result{-webkit-user-select:none;user-select:none;overflow-y:auto;box-sizing:border-box;width:100%;height:364px;margin:0;margin-top:var(--margin-xs);padding:var(--padding-base);list-style:none;border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base);outline:none}.univer-formula-select-function-result-item{cursor:pointer;position:relative;box-sizing:border-box;padding:var(--padding-xs) 28px;font-size:var(--font-size-xs);color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-formula-select-function-result-item-name-light{color:rgb(var(--error-color))}.univer-formula-select-function-result-item-selected{position:absolute;top:50%;left:6px;transform:translateY(-50%);display:inline-flex;font-size:var(--font-size-lg);color:rgb(var(--success-color))}.univer-formula-select-function-result-item-active{background-color:rgb(var(--bg-color-hover))}.univer-formula-select-function-content{overflow-y:auto}
|
|
@@ -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
|
+
import type { ICommand } from '@univerjs/core';
|
|
17
|
+
export declare const SPECIAL_PASTE_FORMULA = "special-paste-formula";
|
|
18
|
+
export declare const SheetOnlyPasteFormulaCommand: ICommand;
|
|
@@ -1,3 +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
|
+
*/
|
|
1
16
|
import type { ICommand, IRange } from '@univerjs/core';
|
|
2
17
|
export interface IInsertFunction {
|
|
3
18
|
/**
|
|
@@ -20,4 +35,3 @@ export interface IInsertFunctionCommandParams {
|
|
|
20
35
|
list: IInsertFunction[];
|
|
21
36
|
}
|
|
22
37
|
export declare const InsertFunctionCommand: ICommand;
|
|
23
|
-
//# sourceMappingURL=insert-function.command.d.ts.map
|
|
@@ -1,3 +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
|
+
*/
|
|
1
16
|
import type { IWorkbookData } from '@univerjs/core';
|
|
2
17
|
import { Univer } from '@univerjs/core';
|
|
3
18
|
import type { Dependency } from '@wendellhu/redi';
|
|
@@ -13,4 +28,3 @@ export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dep
|
|
|
13
28
|
};
|
|
14
29
|
sheet: import("@univerjs/core").Workbook;
|
|
15
30
|
};
|
|
16
|
-
//# sourceMappingURL=create-command-test-bed.d.ts.map
|
|
@@ -1,2 +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
|
+
*/
|
|
1
16
|
export {};
|
|
2
|
-
//# sourceMappingURL=insert-function.operation.spec.d.ts.map
|
|
@@ -1,3 +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
|
+
*/
|
|
1
16
|
import type { IOperation } from '@univerjs/core';
|
|
2
17
|
import type { DeviceInputEventType } from '@univerjs/engine-render';
|
|
3
18
|
import type { KeyCode, MetaKeys } from '@univerjs/ui';
|
|
@@ -8,4 +23,3 @@ export interface ISelectEditorFormulaOperationParam {
|
|
|
8
23
|
metaKey?: MetaKeys | typeof META_KEY_CTRL_AND_SHIFT;
|
|
9
24
|
}
|
|
10
25
|
export declare const SelectEditorFormulaOperation: IOperation<ISelectEditorFormulaOperationParam>;
|
|
11
|
-
//# sourceMappingURL=editor-formula.operation.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
export declare const HelpFunctionOperation: ICommand;
|
|
3
|
-
//# sourceMappingURL=help-function.operation.d.ts.map
|
|
@@ -1,3 +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
|
+
*/
|
|
1
16
|
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
export interface IInsertFunctionOperationParams {
|
|
3
18
|
/**
|
|
@@ -6,4 +21,3 @@ export interface IInsertFunctionOperationParams {
|
|
|
6
21
|
value: string;
|
|
7
22
|
}
|
|
8
23
|
export declare const InsertFunctionOperation: ICommand;
|
|
9
|
-
//# sourceMappingURL=insert-function.operation.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
export declare const MoreFunctionsOperation: ICommand;
|
|
3
|
-
//# sourceMappingURL=more-functions.operation.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
export declare const ReferenceAbsoluteOperation: ICommand;
|
|
3
|
-
//# sourceMappingURL=reference-absolute.operation.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
export declare const SearchFunctionOperation: ICommand;
|
|
3
|
-
//# sourceMappingURL=search-function.operation.d.ts.map
|
|
@@ -1,2 +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
|
+
*/
|
|
1
16
|
export declare const FORMULA_UI_PLUGIN_NAME = "formula-ui";
|
|
2
|
-
//# sourceMappingURL=plugin-name.d.ts.map
|
|
@@ -1,2 +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
|
+
*/
|
|
1
16
|
export declare const META_KEY_CTRL_AND_SHIFT = "meta_key_ctrl_And_Shift";
|
|
2
|
-
//# sourceMappingURL=prompt.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ThemeService } from '@univerjs/core';
|
|
2
17
|
import type { ISelectionStyle } from '@univerjs/sheets';
|
|
3
18
|
export declare const FORMULA_REF_SELECTION_PLUGIN_NAME = "formula_reference_selection_plugin_name";
|
|
4
19
|
export declare function getFormulaRefSelectionStyle(themeService: ThemeService, refColor: string, id: string): ISelectionStyle;
|
|
5
|
-
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -1,3 +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
|
+
*/
|
|
1
16
|
import type { IWorkbookData, Workbook } from '@univerjs/core';
|
|
2
17
|
import { Univer } from '@univerjs/core';
|
|
3
18
|
import type { Dependency } from '@wendellhu/redi';
|
|
@@ -8,4 +23,3 @@ export interface ITestBed {
|
|
|
8
23
|
sheet: Workbook;
|
|
9
24
|
}
|
|
10
25
|
export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
|
|
11
|
-
//# sourceMappingURL=create-command-test-bed.d.ts.map
|
|
@@ -1,2 +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
|
+
*/
|
|
1
16
|
export {};
|
|
2
|
-
//# sourceMappingURL=formula-auto-fill.controller.spec.d.ts.map
|
|
@@ -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,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,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,40 @@
|
|
|
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 { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
+
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
18
|
+
import { IActiveDirtyManagerService } from '../services/active-dirty-manager.service';
|
|
19
|
+
export declare class ActiveDirtyController extends Disposable {
|
|
20
|
+
private readonly _activeDirtyManagerService;
|
|
21
|
+
private readonly _currentUniverService;
|
|
22
|
+
private readonly _formulaDataModel;
|
|
23
|
+
constructor(_activeDirtyManagerService: IActiveDirtyManagerService, _currentUniverService: IUniverInstanceService, _formulaDataModel: FormulaDataModel);
|
|
24
|
+
private _initialize;
|
|
25
|
+
private _initialConversion;
|
|
26
|
+
private _getSetRangeValuesMutationDirtyRange;
|
|
27
|
+
private _getMoveRangeMutationDirtyRange;
|
|
28
|
+
private _getMoveRowsMutationDirtyRange;
|
|
29
|
+
private _getDeleteRangeMutationDirtyRange;
|
|
30
|
+
private _getRemoveRowOrColumnMutation;
|
|
31
|
+
private _getRemoveSheetMutation;
|
|
32
|
+
private _getInsertSheetMutation;
|
|
33
|
+
private _rangeToMatrix;
|
|
34
|
+
private _getDirtyRangesByCellValue;
|
|
35
|
+
/**
|
|
36
|
+
* The array formula is a range where only the top-left corner contains the formula value.
|
|
37
|
+
* All other positions, apart from the top-left corner, need to be marked as dirty.
|
|
38
|
+
*/
|
|
39
|
+
private _getDirtyRangesForArrayFormula;
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { Disposable, ICommandService } from '@univerjs/core';
|
|
17
|
+
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
18
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
19
|
+
export declare class ArrayFormulaDisplayController extends Disposable {
|
|
20
|
+
private readonly _commandService;
|
|
21
|
+
private _sheetInterceptorService;
|
|
22
|
+
private readonly _formulaDataModel;
|
|
23
|
+
constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _formulaDataModel: FormulaDataModel);
|
|
24
|
+
private _initialize;
|
|
25
|
+
private _commandExecutedListener;
|
|
26
|
+
private _initInterceptorCellContent;
|
|
27
|
+
}
|