@univerjs/sheets-formula 0.16.1 → 0.17.0
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1091 -997
- package/lib/index.js +1091 -997
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +10 -0
- package/lib/types/index.d.ts +3 -2
- package/lib/types/plugin.d.ts +5 -1
- package/lib/types/services/__test__/description.service.spec.d.ts +16 -0
- package/lib/types/services/__test__/register-function.service.spec.d.ts +16 -0
- package/lib/types/services/__test__/utils.spec.d.ts +16 -0
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AutoFillService } from '@univerjs/sheets';
|
|
2
|
+
import { Disposable } from '@univerjs/core';
|
|
3
|
+
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
4
|
+
export declare class FormulaAutoFillController extends Disposable {
|
|
5
|
+
private readonly _autoFillService;
|
|
6
|
+
private readonly _lexerTreeBuilder;
|
|
7
|
+
constructor(_autoFillService: AutoFillService, _lexerTreeBuilder: LexerTreeBuilder);
|
|
8
|
+
private _registerAutoFill;
|
|
9
|
+
private _fillCopyFormula;
|
|
10
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export { type IInsertFunction, type IInsertFunctionCommandParams, InsertFunctionCommand } from './commands/commands/insert-function.command';
|
|
17
17
|
export { QuickSumCommand } from './commands/commands/quick-sum.command';
|
|
18
|
-
export { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './
|
|
19
|
-
export type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './
|
|
18
|
+
export { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './config/config';
|
|
19
|
+
export type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './config/config';
|
|
20
|
+
export { FormulaAutoFillController } from './controllers/formula-auto-fill.controller';
|
|
20
21
|
export { ImageFormulaCellInterceptorController } from './controllers/image-formula-cell-interceptor.controller';
|
|
21
22
|
export { TriggerCalculationController } from './controllers/trigger-calculation.controller';
|
|
22
23
|
export { UpdateDefinedNameController } from './controllers/update-defined-name.controller';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './
|
|
1
|
+
import { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './config/config';
|
|
2
2
|
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverRemoteSheetsFormulaPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
readonly _injector: Injector;
|
|
6
6
|
private readonly _configService;
|
|
7
7
|
static pluginName: string;
|
|
8
|
+
static packageName: string;
|
|
9
|
+
static version: string;
|
|
8
10
|
static type: UniverInstanceType;
|
|
9
11
|
constructor(_config: Partial<IUniverSheetsFormulaRemoteConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
10
12
|
onStarting(): void;
|
|
@@ -14,6 +16,8 @@ export declare class UniverSheetsFormulaPlugin extends Plugin {
|
|
|
14
16
|
readonly _injector: Injector;
|
|
15
17
|
private readonly _configService;
|
|
16
18
|
static pluginName: string;
|
|
19
|
+
static packageName: string;
|
|
20
|
+
static version: string;
|
|
17
21
|
static type: UniverInstanceType;
|
|
18
22
|
constructor(_config: Partial<IUniverSheetsFormulaBaseConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
19
23
|
onStarting(): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 Co., Ltd.
|
|
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 Co., Ltd.
|
|
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 {};
|