@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,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 { IMutation, IRange } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation, IRange } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface IMoveRowsMutationParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
subUnitId: string;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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';
|
|
18
|
-
import type { FormatType } from '../../services/numfmt/type';
|
|
1
|
+
import { FormatType } from '../../services/numfmt/type';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { ICommand, IMutationInfo, IRange } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<ISetNumfmtMutationParams | IRemoveNumfmtMutationParams>[];
|
|
20
6
|
export interface ISetNumfmtMutationParams {
|
|
21
7
|
values: {
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, Worksheet } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
18
|
-
import type { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
1
|
+
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IMutation, Worksheet } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare const RemoveRowsUndoMutationFactory: (params: IRemoveRowsMutationParams, worksheet: Worksheet) => IInsertRowMutationParams;
|
|
20
6
|
export declare const RemoveRowMutation: IMutation<IRemoveRowsMutationParams>;
|
|
21
7
|
export declare const RemoveColMutationFactory: (accessor: IAccessor, params: IRemoveColMutationParams) => IInsertColMutationParams;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { IAccessor } from '@wendellhu/redi';
|
|
18
|
-
import type { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
1
|
+
import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IMutation } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
/**
|
|
20
6
|
* Generate undo mutation of a `RemoveSheetMutation`
|
|
21
7
|
*
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { IAccessor } from '@wendellhu/redi';
|
|
18
|
-
import type { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
1
|
+
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IMutation } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare const RemoveMergeUndoMutationFactory: (accessor: IAccessor, params: IRemoveWorksheetMergeMutationParams) => IAddWorksheetMergeMutationParams;
|
|
20
6
|
export declare const RemoveWorksheetMergeMutation: IMutation<IRemoveWorksheetMergeMutationParams>;
|
|
@@ -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 { IMutation, IRange } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation, IRange } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetColHiddenMutationParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
subUnitId: string;
|
|
@@ -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 { IMutation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetFrozenMutationParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
subUnitId: string;
|
|
@@ -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 { BooleanNumber, IMutation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { BooleanNumber, IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetHideGridlinesMutationParams {
|
|
19
5
|
hideGridlines: BooleanNumber;
|
|
20
6
|
unitId: string;
|
|
@@ -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 { IBorderData, ICellData, ICopyToOptionsData, IDocumentData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, IStyleData, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { CellValue, IBorderData, ICellData, ICopyToOptionsData, IDocumentData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, IStyleData, Nullable, CellValueType } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
/** Params of `SetRangeValuesMutation` */
|
|
19
5
|
export interface ISetRangeValuesMutationParams extends IMutationCommonParams {
|
|
20
6
|
subUnitId: string;
|
|
@@ -45,6 +31,21 @@ export declare const SetRangeValuesUndoMutationFactory: (accessor: IAccessor, pa
|
|
|
45
31
|
Intercept 15-digit number reference function truncateNumber
|
|
46
32
|
*/
|
|
47
33
|
export declare const SetRangeValuesMutation: IMutation<ISetRangeValuesMutationParams, boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Get the correct type after setting values to a cell.
|
|
36
|
+
*
|
|
37
|
+
* @param v the new value
|
|
38
|
+
* @param oldType the old type
|
|
39
|
+
* @returns the new type
|
|
40
|
+
*/
|
|
41
|
+
export declare function checkCellValueType(v: Nullable<CellValue>, oldType: Nullable<CellValueType>): Nullable<CellValueType>;
|
|
42
|
+
/**
|
|
43
|
+
* Check if the value can be casted to a boolean.
|
|
44
|
+
* @internal
|
|
45
|
+
* @param value
|
|
46
|
+
* @returns It would return null if the value cannot be casted to a boolean, and would return the boolean value if it can be casted.
|
|
47
|
+
*/
|
|
48
|
+
export declare function extractBooleanValue(value: Nullable<string | number | boolean>): Nullable<boolean>;
|
|
48
49
|
/**
|
|
49
50
|
* Convert old style data for storage
|
|
50
51
|
* @param style
|
|
@@ -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 { IMutation, IRange } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation, IRange } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetRowVisibleMutationParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
subUnitId: string;
|
|
@@ -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 { IMutation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetTabColorMutationParams {
|
|
19
5
|
color: string;
|
|
20
6
|
unitId: string;
|
|
@@ -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 { IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetWorksheetColWidthMutationParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
subUnitId: string;
|
|
@@ -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 { IMutation, IWorksheetData } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation, IWorksheetData } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
/** @deprecated */
|
|
19
5
|
export interface ISetWorksheetConfigMutationParams {
|
|
20
6
|
unitId: string;
|
|
@@ -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 { BooleanNumber, IMutation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { BooleanNumber, IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetWorksheetHideMutationParams {
|
|
19
5
|
hidden: BooleanNumber;
|
|
20
6
|
unitId: string;
|
|
@@ -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 { IMutation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetWorksheetNameMutationParams {
|
|
19
5
|
name: string;
|
|
20
6
|
unitId: string;
|
|
@@ -1,22 +1,9 @@
|
|
|
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 { IMutation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetWorksheetOrderMutationParams {
|
|
19
|
-
|
|
5
|
+
fromOrder: number;
|
|
6
|
+
toOrder: number;
|
|
20
7
|
unitId: string;
|
|
21
8
|
subUnitId: string;
|
|
22
9
|
}
|
|
@@ -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 { BooleanNumber, IMutation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { BooleanNumber, IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetWorksheetRightToLeftMutationParams {
|
|
19
5
|
rightToLeft: BooleanNumber;
|
|
20
6
|
unitId: string;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IRowAutoHeightInfo } from '@univerjs/engine-render';
|
|
18
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IRowAutoHeightInfo } from '@univerjs/engine-render';
|
|
3
|
+
import { BooleanNumber, IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export interface ISetWorksheetRowHeightMutationParams {
|
|
20
6
|
unitId: string;
|
|
21
7
|
subUnitId: string;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { ISelectionWithStyle } from '../../basics/selection';
|
|
18
|
-
import type { SelectionMoveType } from '../../services/selection-manager.service';
|
|
1
|
+
import { SelectionMoveType } from '../../services/selection-manager.service';
|
|
2
|
+
import { ISelectionWithStyle } from '../../basics/selection';
|
|
3
|
+
import { IOperation } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export interface ISetSelectionsOperationParams {
|
|
20
6
|
unitId: string;
|
|
21
7
|
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 { IOperation } from '@univerjs/core';
|
|
1
|
+
import { IOperation } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ISetWorksheetActiveOperationParams {
|
|
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 { IUniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
|
|
1
|
+
import { IUniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* Get target workbook and worksheet.
|
|
19
5
|
* @param univerInstanceService
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 { IAccessor } from '@wendellhu/redi';
|
|
17
|
-
import type { IRange } from '@univerjs/core';
|
|
18
|
-
import type { IAddMergeCommandParams } from '../commands/add-worksheet-merge.command';
|
|
19
|
-
import type { ISetSelectionsOperationParams } from '../..';
|
|
1
|
+
import { ISetSelectionsOperationParams } from '../..';
|
|
2
|
+
import { IAddMergeCommandParams } from '../commands/add-worksheet-merge.command';
|
|
3
|
+
import { IRange } from '@univerjs/core';
|
|
4
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
5
|
+
|
|
20
6
|
export declare const AddMergeRedoSelectionsOperationFactory: (accessor: IAccessor, params: IAddMergeCommandParams, ranges: IRange[]) => {
|
|
21
7
|
id: string;
|
|
22
8
|
params: ISetSelectionsOperationParams;
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
17
|
-
import { Dimension, ObjectMatrix } from '@univerjs/core';
|
|
18
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
19
|
-
import type { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
1
|
+
import { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { ICellData, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable, Dimension, ObjectMatrix } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
/**
|
|
21
6
|
* Generate undo mutation of a `InsertRangeMutation`
|
|
22
7
|
*
|