@univerjs/sheets-table 0.17.0 → 0.18.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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -165
- package/lib/es/index.js +1 -2922
- package/lib/facade.js +1 -165
- package/lib/index.js +1 -2922
- package/lib/types/commands/commands/add-sheet-table.command.d.ts +17 -2
- package/lib/types/commands/commands/add-table-theme.command.d.ts +17 -2
- package/lib/types/commands/commands/delete-sheet-table.command.d.ts +17 -2
- package/lib/types/commands/commands/remove-table-theme.command.d.ts +16 -1
- package/lib/types/commands/commands/set-sheet-table.command.d.ts +17 -2
- package/lib/types/commands/commands/set-table-filter.command.d.ts +17 -2
- package/lib/types/commands/commands/sheet-table-row-col.command.d.ts +16 -1
- package/lib/types/commands/mutations/add-sheet-table.mutation.d.ts +17 -2
- package/lib/types/commands/mutations/delete-sheet-table.mutation.d.ts +16 -1
- package/lib/types/commands/mutations/set-sheet-table.mutation.d.ts +17 -2
- package/lib/types/commands/mutations/set-table-filter.mutation.d.ts +17 -2
- package/lib/types/config/config.d.ts +16 -1
- package/lib/types/controllers/sheet-table-formula.controller.d.ts +15 -0
- package/lib/types/controllers/sheet-table-range.controller.d.ts +15 -0
- package/lib/types/controllers/sheet-table-ref-range.controller.d.ts +15 -0
- package/lib/types/controllers/sheet-table-theme.controller.d.ts +15 -0
- package/lib/types/controllers/sheets-table.controller.d.ts +18 -2
- package/lib/types/controllers/table-filter.controller.d.ts +16 -1
- package/lib/types/controllers/table-theme.factory.d.ts +45 -30
- package/lib/types/facade/f-enum.d.ts +15 -0
- package/lib/types/facade/f-workbook.d.ts +16 -1
- package/lib/types/facade/f-worksheet.d.ts +17 -2
- package/lib/types/model/filter-util/condition.d.ts +19 -3
- package/lib/types/model/filter-util/date-filter-util.d.ts +16 -1
- package/lib/types/model/filter-util/manual.d.ts +16 -1
- package/lib/types/model/filter-util/number-filter-util.d.ts +16 -1
- package/lib/types/model/filter-util/text-filter-util.d.ts +16 -1
- package/lib/types/model/table-column.d.ts +17 -2
- package/lib/types/model/table-filter.d.ts +19 -3
- package/lib/types/model/table-manager.d.ts +25 -9
- package/lib/types/model/table.d.ts +17 -2
- package/lib/types/plugin.d.ts +16 -1
- package/lib/types/services/table-service.d.ts +18 -2
- package/lib/types/types/type.d.ts +17 -2
- package/lib/types/util.d.ts +19 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -8
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { ICommand, IRange } from '@univerjs/core';
|
|
17
|
+
import type { ITableOptions } from '../../types/type';
|
|
3
18
|
export interface IAddSheetTableCommandParams {
|
|
4
19
|
unitId: string;
|
|
5
20
|
subUnitId: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { ICommand } from '@univerjs/core';
|
|
17
|
+
import type { RangeThemeStyle } from '@univerjs/sheets';
|
|
3
18
|
export interface IAddTableThemeCommandParams {
|
|
4
19
|
unitId: string;
|
|
5
20
|
tableId: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { ICommand } from '@univerjs/core';
|
|
17
|
+
import type { IDeleteSheetTableParams } from '../mutations/delete-sheet-table.mutation';
|
|
3
18
|
export declare const DeleteSheetTableCommand: ICommand<IDeleteSheetTableParams>;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
export interface IRemoveTableThemeCommandParams {
|
|
3
18
|
unitId: string;
|
|
4
19
|
tableId: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { ICommand } from '@univerjs/core';
|
|
17
|
+
import type { ITableSetConfig } from '../../types/type';
|
|
3
18
|
export interface ISetSheetTableCommandParams extends ITableSetConfig {
|
|
4
19
|
unitId: string;
|
|
5
20
|
tableId: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { ICommand } from '@univerjs/core';
|
|
17
|
+
import type { ISetSheetTableParams } from '../mutations/set-table-filter.mutation';
|
|
3
18
|
export declare const SetSheetTableFilterCommand: ICommand<ISetSheetTableParams>;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
interface ISheetTableRowColOperationCommandParams {
|
|
3
18
|
tableId: string;
|
|
4
19
|
unitId: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IMutation } from '@univerjs/core';
|
|
17
|
+
import type { ITableOptions, ITableRange } from '../../types/type';
|
|
3
18
|
export interface IAddSheetTableParams {
|
|
4
19
|
unitId: string;
|
|
5
20
|
subUnitId: string;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
17
|
export interface IDeleteSheetTableParams {
|
|
3
18
|
unitId: string;
|
|
4
19
|
subUnitId: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IMutation } from '@univerjs/core';
|
|
17
|
+
import type { ITableSetConfig } from '../../types/type';
|
|
3
18
|
export interface ISetSheetTableMutationParams {
|
|
4
19
|
unitId: string;
|
|
5
20
|
subUnitId: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IMutation } from '@univerjs/core';
|
|
17
|
+
import type { ITableFilterItem } from '../../types/type';
|
|
3
18
|
export interface ISetSheetTableParams {
|
|
4
19
|
unitId: string;
|
|
5
20
|
tableId: string;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IRangeThemeStyleJSON } from '@univerjs/sheets';
|
|
2
17
|
import { BorderStyleTypes } from '@univerjs/core';
|
|
3
18
|
export interface ITableDefaultThemeStyle {
|
|
4
19
|
name: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
17
|
import { TableManager } from '../model/table-manager';
|
|
3
18
|
export declare class SheetTableFormulaController extends Disposable {
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable } from '@univerjs/core';
|
|
2
17
|
import { IExclusiveRangeService } from '@univerjs/sheets';
|
|
3
18
|
import { TableManager } from '../model/table-manager';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
17
|
import { RefRangeService, SheetInterceptorService } from '@univerjs/sheets';
|
|
3
18
|
import { TableManager } from '../model/table-manager';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, IConfigService } from '@univerjs/core';
|
|
2
17
|
import { SheetRangeThemeModel, SheetRangeThemeService } from '@univerjs/sheets';
|
|
3
18
|
import { TableManager } from '../model/table-manager';
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IRange } from '@univerjs/core';
|
|
17
|
+
import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
2
18
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
19
|
import { TableManager } from '../model/table-manager';
|
|
4
20
|
export declare class SheetsTableController extends Disposable {
|
|
@@ -8,7 +24,7 @@ export declare class SheetsTableController extends Disposable {
|
|
|
8
24
|
private _resourceManagerService;
|
|
9
25
|
private _tableRangeRTree;
|
|
10
26
|
constructor(_univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _tableManager: TableManager, _resourceManagerService: IResourceManagerService);
|
|
11
|
-
getContainerTableWithRange(unitId: string, subUnitId: string, range: IRange): import(
|
|
27
|
+
getContainerTableWithRange(unitId: string, subUnitId: string, range: IRange): import("../model/table").Table | undefined;
|
|
12
28
|
private _ensureTableRangeRTree;
|
|
13
29
|
registerTableChangeEvent(): void;
|
|
14
30
|
registerTableHeaderInterceptor(): void;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
17
|
import { SheetInterceptorService, ZebraCrossingCacheController } from '@univerjs/sheets';
|
|
3
18
|
import { TableManager } from '../model/table-manager';
|
|
@@ -7,7 +22,7 @@ export declare class TableFilterController extends Disposable {
|
|
|
7
22
|
private readonly _univerInstanceService;
|
|
8
23
|
private readonly _zebraCrossingCacheController;
|
|
9
24
|
private readonly _tableFilteredOutRows$;
|
|
10
|
-
readonly tableFilteredOutRows$: import(
|
|
25
|
+
readonly tableFilteredOutRows$: import("rxjs").Observable<Readonly<Set<number>>>;
|
|
11
26
|
private _subscription;
|
|
12
27
|
constructor(_tableManager: TableManager, _sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _zebraCrossingCacheController: ZebraCrossingCacheController);
|
|
13
28
|
get tableFilteredOutRows(): Set<number>;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IRangeThemeStyleItem, IRangeThemeStyleJSON } from '@univerjs/sheets';
|
|
17
|
+
import type { ITableDefaultThemeStyle } from '../config/config';
|
|
3
18
|
export declare const customEmptyThemeWithBorderStyle: Omit<IRangeThemeStyleJSON, 'name'>;
|
|
4
19
|
export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeStyleJSON, "name">, style: IRangeThemeStyleItem) => IRangeThemeStyleItem | {
|
|
5
20
|
bd: {
|
|
6
21
|
t: {
|
|
7
|
-
s: import(
|
|
22
|
+
s: import("@univerjs/core").BorderStyleTypes;
|
|
8
23
|
cl: {
|
|
9
24
|
rgb: string;
|
|
10
25
|
};
|
|
@@ -13,16 +28,16 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
|
|
|
13
28
|
r?: undefined;
|
|
14
29
|
l?: undefined;
|
|
15
30
|
};
|
|
16
|
-
bg?: import(
|
|
17
|
-
cl?: import(
|
|
18
|
-
ht?: import(
|
|
19
|
-
vt?: import(
|
|
20
|
-
bl?: import(
|
|
21
|
-
ol?: import(
|
|
31
|
+
bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
32
|
+
cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
33
|
+
ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
|
|
34
|
+
vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
|
|
35
|
+
bl?: import("@univerjs/core").BooleanNumber | undefined;
|
|
36
|
+
ol?: import("@univerjs/core").ITextDecoration | undefined;
|
|
22
37
|
} | {
|
|
23
38
|
bd: {
|
|
24
39
|
b: {
|
|
25
|
-
s: import(
|
|
40
|
+
s: import("@univerjs/core").BorderStyleTypes;
|
|
26
41
|
cl: {
|
|
27
42
|
rgb: string;
|
|
28
43
|
};
|
|
@@ -31,16 +46,16 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
|
|
|
31
46
|
r?: undefined;
|
|
32
47
|
l?: undefined;
|
|
33
48
|
};
|
|
34
|
-
bg?: import(
|
|
35
|
-
cl?: import(
|
|
36
|
-
ht?: import(
|
|
37
|
-
vt?: import(
|
|
38
|
-
bl?: import(
|
|
39
|
-
ol?: import(
|
|
49
|
+
bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
50
|
+
cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
51
|
+
ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
|
|
52
|
+
vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
|
|
53
|
+
bl?: import("@univerjs/core").BooleanNumber | undefined;
|
|
54
|
+
ol?: import("@univerjs/core").ITextDecoration | undefined;
|
|
40
55
|
} | {
|
|
41
56
|
bd: {
|
|
42
57
|
r: {
|
|
43
|
-
s: import(
|
|
58
|
+
s: import("@univerjs/core").BorderStyleTypes;
|
|
44
59
|
cl: {
|
|
45
60
|
rgb: string;
|
|
46
61
|
};
|
|
@@ -49,16 +64,16 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
|
|
|
49
64
|
b?: undefined;
|
|
50
65
|
l?: undefined;
|
|
51
66
|
};
|
|
52
|
-
bg?: import(
|
|
53
|
-
cl?: import(
|
|
54
|
-
ht?: import(
|
|
55
|
-
vt?: import(
|
|
56
|
-
bl?: import(
|
|
57
|
-
ol?: import(
|
|
67
|
+
bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
68
|
+
cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
69
|
+
ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
|
|
70
|
+
vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
|
|
71
|
+
bl?: import("@univerjs/core").BooleanNumber | undefined;
|
|
72
|
+
ol?: import("@univerjs/core").ITextDecoration | undefined;
|
|
58
73
|
} | {
|
|
59
74
|
bd: {
|
|
60
75
|
l: {
|
|
61
|
-
s: import(
|
|
76
|
+
s: import("@univerjs/core").BorderStyleTypes;
|
|
62
77
|
cl: {
|
|
63
78
|
rgb: string;
|
|
64
79
|
};
|
|
@@ -67,11 +82,11 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
|
|
|
67
82
|
b?: undefined;
|
|
68
83
|
r?: undefined;
|
|
69
84
|
};
|
|
70
|
-
bg?: import(
|
|
71
|
-
cl?: import(
|
|
72
|
-
ht?: import(
|
|
73
|
-
vt?: import(
|
|
74
|
-
bl?: import(
|
|
75
|
-
ol?: import(
|
|
85
|
+
bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
86
|
+
cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
87
|
+
ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
|
|
88
|
+
vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
|
|
89
|
+
bl?: import("@univerjs/core").BooleanNumber | undefined;
|
|
90
|
+
ol?: import("@univerjs/core").ITextDecoration | undefined;
|
|
76
91
|
};
|
|
77
92
|
export declare const tableThemeConfig: ITableDefaultThemeStyle[];
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { FEnum } from '@univerjs/core/facade';
|
|
2
17
|
import { TableColumnFilterTypeEnum, TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum, TableStringCompareTypeEnum } from '@univerjs/sheets-table';
|
|
3
18
|
/**
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
import type { ITableFilterItem, ITableInfo, ITableInfoWithUnitId, ITableOptions, ITableRange } from '@univerjs/sheets-table';
|
|
2
17
|
import { FWorkbook } from '@univerjs/sheets/facade';
|
|
3
18
|
/**
|
|
4
19
|
* @ignore
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IRangeThemeStyleJSON } from '@univerjs/sheets';
|
|
17
|
+
import type { ITableFilterItem, ITableInfoWithUnitId, ITableOptions, ITableRange } from '@univerjs/sheets-table';
|
|
3
18
|
import { FWorksheet } from '@univerjs/sheets/facade';
|
|
4
19
|
/**
|
|
5
20
|
* @ignore
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import type { IDocumentData, Worksheet } from '@univerjs/core';
|
|
17
|
+
import type { TableStringCompareTypeEnum } from '../../types/enum';
|
|
18
|
+
import type { ICalculatedOptions, ITableConditionFilterItem } from '../../types/type';
|
|
19
|
+
import { TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum } from '../../types/enum';
|
|
4
20
|
type TableConditionCompareType = TableNumberCompareTypeEnum | TableDateCompareTypeEnum | TableStringCompareTypeEnum;
|
|
5
21
|
export declare function isNumberDynamicFilter(compareType: TableConditionCompareType): compareType is TableNumberCompareTypeEnum;
|
|
6
22
|
export declare function isDateDynamicFilter(compareType: TableConditionCompareType): compareType is TableDateCompareTypeEnum;
|