@univerjs/sheets 0.1.4 → 0.1.6
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 +2 -2
- package/lib/es/index.js +2660 -2347
- package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +2 -16
- package/lib/types/basics/interfaces/i-ruler-manager.d.ts +2 -16
- package/lib/types/basics/interfaces/mutation-interface.d.ts +2 -16
- package/lib/types/basics/interfaces/selection-config.d.ts +2 -16
- package/lib/types/basics/interfaces/spreadsheet-config.d.ts +2 -16
- package/lib/types/basics/rangeMerge.d.ts +2 -17
- package/lib/types/basics/selection.d.ts +2 -16
- package/lib/types/basics/sheet-header.d.ts +2 -16
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +3 -19
- package/lib/types/commands/commands/__tests__/remove-rows-cols.command.spec.d.ts +16 -0
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +2 -17
- package/lib/types/commands/commands/clear-selection-all.command.d.ts +2 -16
- package/lib/types/commands/commands/clear-selection-content.command.d.ts +2 -16
- package/lib/types/commands/commands/clear-selection-format.command.d.ts +2 -16
- package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +2 -16
- package/lib/types/commands/commands/copy-worksheet.command.d.ts +2 -16
- package/lib/types/commands/commands/delete-range-move-left.command.d.ts +2 -16
- package/lib/types/commands/commands/delete-range-move-up.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-defined-name.command.d.ts +6 -0
- package/lib/types/commands/commands/insert-range-move-down.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-range-move-right.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-row-col.command.d.ts +2 -17
- package/lib/types/commands/commands/insert-sheet.command.d.ts +2 -16
- package/lib/types/commands/commands/move-range.command.d.ts +3 -17
- package/lib/types/commands/commands/move-rows-cols.command.d.ts +2 -16
- package/lib/types/commands/commands/remove-defined-name.command.d.ts +6 -0
- package/lib/types/commands/commands/remove-row-col.command.d.ts +2 -16
- package/lib/types/commands/commands/remove-sheet.command.d.ts +2 -16
- package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +2 -16
- package/lib/types/commands/commands/set-border-command.d.ts +3 -18
- package/lib/types/commands/commands/set-col-visible.command.d.ts +2 -16
- package/lib/types/commands/commands/set-defined-name.command.d.ts +12 -0
- package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +2 -16
- package/lib/types/commands/commands/set-frozen.command.d.ts +2 -16
- package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +2 -17
- package/lib/types/commands/commands/set-range-values.command.d.ts +3 -17
- package/lib/types/commands/commands/set-row-visible.command.d.ts +2 -16
- package/lib/types/commands/commands/set-style.command.d.ts +4 -18
- package/lib/types/commands/commands/set-tab-color.command.d.ts +2 -16
- package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +2 -16
- package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +2 -16
- package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +2 -16
- package/lib/types/commands/commands/set-worksheet-name.command.d.ts +2 -16
- package/lib/types/commands/commands/set-worksheet-order.command.d.ts +2 -16
- package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +2 -17
- package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +2 -16
- package/lib/types/commands/commands/set-worksheet-show.command.d.ts +2 -16
- package/lib/types/commands/commands/utils/merged-cell-util.d.ts +2 -16
- package/lib/types/commands/commands/utils/selection-utils.d.ts +4 -17
- package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +3 -19
- package/lib/types/commands/mutations/__tests__/set-range-values.mutation.spec.d.ts +16 -0
- package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/empty.mutation.d.ts +2 -16
- package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/move-range.mutation.d.ts +2 -16
- package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/numfmt-mutation.d.ts +4 -18
- package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-frozen.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +3 -17
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts +18 -17
- package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +5 -18
- package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +4 -18
- package/lib/types/commands/operations/scroll-to-cell.operation.d.ts +3 -0
- package/lib/types/commands/operations/selection.operation.d.ts +4 -18
- package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +2 -16
- package/lib/types/commands/utils/get-target.d.ts +2 -16
- package/lib/types/commands/utils/handle-merge-operation.d.ts +5 -19
- package/lib/types/commands/utils/handle-range-mutation.d.ts +4 -19
- package/lib/types/controllers/__tests__/util.d.ts +10 -25
- package/lib/types/controllers/basic-worksheet.controller.d.ts +3 -18
- package/lib/types/controllers/calculate-result-apply.controller.d.ts +1 -15
- package/lib/types/controllers/defined-name-data.controller.d.ts +12 -0
- package/lib/types/controllers/feature-calculation.controller.d.ts +2 -16
- package/lib/types/controllers/merge-cell.controller.d.ts +20 -20
- package/lib/types/index.d.ts +6 -2
- package/lib/types/locale/en-US.d.ts +2 -16
- package/lib/types/services/__tests__/util.d.ts +10 -25
- package/lib/types/services/border-style-manager.service.d.ts +3 -17
- package/lib/types/services/numfmt/numfmt.service.d.ts +5 -19
- package/lib/types/services/numfmt/type.d.ts +5 -18
- package/lib/types/services/permission/permission-point.d.ts +1 -15
- package/lib/types/services/permission/sheet-permission.service.d.ts +3 -18
- package/lib/types/services/permission/tool.d.ts +2 -16
- package/lib/types/services/ref-range/__tests__/util.d.ts +10 -25
- package/lib/types/services/ref-range/ref-range.service.d.ts +9 -22
- package/lib/types/services/ref-range/type.d.ts +10 -32
- package/lib/types/services/ref-range/util.d.ts +10 -22
- package/lib/types/services/selection-manager.service.d.ts +7 -21
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +10 -25
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +5 -19
- package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +6 -21
- package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +2 -16
- package/lib/types/sheets-plugin.d.ts +2 -16
- package/lib/umd/index.js +2 -2
- package/package.json +10 -11
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';
|
|
1
|
+
import { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';
|
|
2
|
+
|
|
17
3
|
export declare const DEFAULT_SPREADSHEET_PLUGIN_DATA: IUniverSheetsConfig;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { BooleanNumber } from '@univerjs/core';
|
|
1
|
+
import { BooleanNumber } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* Column ruler data type
|
|
19
5
|
*/
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Dimension, ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IWorksheetData, Nullable } from '@univerjs/core';
|
|
1
|
+
import { Dimension, ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IWorksheetData, Nullable } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/** Params of `RemoveSheetMutation` */
|
|
18
4
|
export interface IRemoveSheetMutationParams {
|
|
19
5
|
subUnitId: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, IRangeCellData } from '@univerjs/core';
|
|
1
|
+
import { IRange, IRangeCellData } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ISelectionConfig {
|
|
18
4
|
selection: IRange;
|
|
19
5
|
cell?: IRangeCellData;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ISelectionsConfig } from './selection-config';
|
|
1
|
+
import { ISelectionsConfig } from './selection-config';
|
|
2
|
+
|
|
17
3
|
export interface IUniverSheetsConfig {
|
|
18
4
|
selections: ISelectionsConfig;
|
|
19
5
|
}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ObjectMatrix } from '@univerjs/core';
|
|
1
|
+
import { IRange, ObjectMatrix } from '@univerjs/core';
|
|
2
|
+
|
|
18
3
|
export declare const createTopMatrixFromRanges: (ranges: IRange[]) => ObjectMatrix<number>;
|
|
19
4
|
export declare const createTopMatrixFromMatrix: (matrix: ObjectMatrix<1>) => ObjectMatrix<number>;
|
|
20
5
|
export declare const findAllRectangle: (topMatrix: ObjectMatrix<number>) => IRange[];
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, ISelection, ISelectionCellWithCoord, ISelectionWithCoord, Nullable, ThemeService } from '@univerjs/core';
|
|
1
|
+
import { IRange, ISelection, ISelectionCellWithCoord, ISelectionWithCoord, Nullable, ThemeService } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const SELECTION_CONTROL_BORDER_BUFFER_WIDTH = 1.5;
|
|
18
4
|
export declare const SELECTION_CONTROL_BORDER_BUFFER_COLOR = "rgba(255,255,255, 0.01)";
|
|
19
5
|
/**
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Worksheet } from '@univerjs/core';
|
|
1
|
+
import { Worksheet } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare function rowHeightByHeader(worksheet: Worksheet): number;
|
|
18
4
|
export declare function columnWidthByHeader(worksheet: Worksheet): number;
|
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IWorkbookData, Workbook } from '@univerjs/core';
|
|
17
|
-
import { Univer } from '@univerjs/core';
|
|
18
|
-
import type { Dependency } from '@wendellhu/redi';
|
|
19
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, Injector } from '@wendellhu/redi';
|
|
2
|
+
import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
3
|
+
|
|
20
4
|
export interface ITestBed {
|
|
21
5
|
univer: Univer;
|
|
22
6
|
get: Injector['get'];
|
|
@@ -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 {};
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Dimension } from '@univerjs/core';
|
|
1
|
+
import { ICommand, IRange, Dimension } from '@univerjs/core';
|
|
2
|
+
|
|
18
3
|
export interface IAddMergeCommandParams {
|
|
19
4
|
value?: Dimension.ROWS | Dimension.COLUMNS;
|
|
20
5
|
selections: IRange[];
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* The command to clear all in current selected ranges.
|
|
19
5
|
*/
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* The command to clear content in current selected ranges.
|
|
19
5
|
*/
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
|
|
1
|
+
import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* The command to clear content in current selected ranges.
|
|
19
5
|
*/
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ICopySheetToCommandParams {
|
|
18
4
|
unitId?: string;
|
|
19
5
|
subUnitId?: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ICopySheetCommandParams {
|
|
18
4
|
unitId?: string;
|
|
19
5
|
subUnitId?: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IDeleteRangeMoveLeftCommandParams {
|
|
18
4
|
range: IRange;
|
|
19
5
|
}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IDeleteRangeMoveUpCommandParams {
|
|
18
4
|
range: IRange;
|
|
19
5
|
}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface InsertRangeMoveDownCommandParams {
|
|
18
4
|
range: IRange;
|
|
19
5
|
}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface InsertRangeMoveRightCommandParams {
|
|
18
4
|
range: IRange;
|
|
19
5
|
}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
|
|
17
|
-
import { Direction } from '@univerjs/core';
|
|
1
|
+
import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange, Direction } from '@univerjs/core';
|
|
2
|
+
|
|
18
3
|
export interface IInsertRowCommandParams {
|
|
19
4
|
unitId: string;
|
|
20
5
|
subUnitId: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, IWorksheetData } from '@univerjs/core';
|
|
1
|
+
import { ICommand, IWorksheetData } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IInsertSheetCommandParams {
|
|
18
4
|
unitId?: string;
|
|
19
5
|
index?: number;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, IMutationInfo, IRange } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { ICommand, IMutationInfo, IRange } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface IMoveRangeCommandParams {
|
|
19
5
|
toRange: IRange;
|
|
20
6
|
fromRange: IRange;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IMoveRowsCommandParams {
|
|
18
4
|
fromRange: IRange;
|
|
19
5
|
toRange: IRange;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IRemoveRowColCommandParams {
|
|
18
4
|
range: IRange;
|
|
19
5
|
}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IRemoveSheetCommandParams {
|
|
18
4
|
unitId?: string;
|
|
19
5
|
subUnitId?: string;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const RemoveWorksheetMergeCommand: ICommand;
|