@univerjs/core 0.2.8 → 0.2.10
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 +7 -9
- package/lib/es/index.js +220 -688
- package/lib/types/common/equal.d.ts +15 -3
- package/lib/types/common/interceptor.d.ts +1 -1
- package/lib/types/{types/interfaces/i-extra-model-data.d.ts → common/mixin.d.ts} +9 -11
- package/lib/types/common/unit.d.ts +2 -1
- package/lib/types/docs/data-model/document-data-model.d.ts +2 -3
- package/lib/types/index.d.ts +5 -9
- package/lib/types/services/authz-io/type.d.ts +2 -2
- package/lib/types/services/command/command.service.d.ts +111 -28
- package/lib/types/services/lifecycle/lifecycle.d.ts +5 -0
- package/lib/types/services/permission/type.d.ts +2 -2
- package/lib/types/services/resource-loader/resource-loader.service.d.ts +3 -5
- package/lib/types/services/resource-loader/type.d.ts +4 -6
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +4 -4
- package/lib/types/services/resource-manager/type.d.ts +9 -5
- package/lib/types/services/undoredo/undoredo.service.d.ts +1 -1
- package/lib/types/shared/check-if-move.d.ts +1 -1
- package/lib/types/shared/color/color.d.ts +1 -1
- package/lib/types/shared/common.d.ts +2 -4
- package/lib/types/shared/numfmt.d.ts +2 -1
- package/lib/types/shared/object-matrix-query.d.ts +1 -1
- package/lib/types/shared/object-matrix.d.ts +1 -1
- package/lib/types/shared/range.d.ts +1 -1
- package/lib/types/shared/rectangle.d.ts +1 -1
- package/lib/types/shared/tools.d.ts +1 -2
- package/lib/types/shared/types/numfmt.type.d.ts +227 -0
- package/lib/types/shared/types.d.ts +7 -13
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +1 -1
- package/lib/types/sheets/column-manager.d.ts +2 -2
- package/lib/types/sheets/empty-snapshot.d.ts +1 -1
- package/lib/types/sheets/range.d.ts +2 -1
- package/lib/types/sheets/row-manager.d.ts +1 -1
- package/lib/types/sheets/sheet-snapshot-utils.d.ts +1 -1
- package/lib/types/sheets/styles.d.ts +2 -1
- package/lib/types/sheets/typedef.d.ts +451 -0
- package/lib/types/sheets/util.d.ts +3 -0
- package/lib/types/sheets/view-model.d.ts +2 -2
- package/lib/types/sheets/workbook.d.ts +13 -4
- package/lib/types/sheets/worksheet.d.ts +11 -1
- package/lib/types/slides/slide-model.d.ts +0 -1
- package/lib/types/types/const/const.d.ts +4 -0
- package/lib/types/types/enum/locale-type.d.ts +3 -1
- package/lib/types/types/enum/text-style.d.ts +1 -1
- package/lib/types/types/interfaces/i-cell-custom-render.d.ts +2 -2
- package/lib/types/types/interfaces/i-data-validation.d.ts +1 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +2 -4
- package/lib/types/types/interfaces/i-slide-data.d.ts +5 -3
- package/lib/types/types/interfaces/index.d.ts +0 -11
- package/lib/types/univer.d.ts +14 -2
- package/lib/umd/index.js +7 -9
- package/package.json +5 -5
- package/lib/types/common/type-util.d.ts +0 -16
- package/lib/types/common/type-utils.d.ts +0 -16
- package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +0 -22
- package/lib/types/services/snapshot/snapshot-server.service.d.ts +0 -42
- package/lib/types/services/snapshot/snapshot-transform.d.ts +0 -31
- package/lib/types/services/snapshot/snapshot-utils.d.ts +0 -19
- package/lib/types/types/interfaces/i-cell-data.d.ts +0 -66
- package/lib/types/types/interfaces/i-column-data.d.ts +0 -14
- package/lib/types/types/interfaces/i-freeze.d.ts +0 -21
- package/lib/types/types/interfaces/i-range.d.ts +0 -208
- package/lib/types/types/interfaces/i-row-data.d.ts +0 -26
- package/lib/types/types/interfaces/i-selection-data.d.ts +0 -58
- package/lib/types/types/interfaces/i-service-data.d.ts +0 -17
- package/lib/types/types/interfaces/i-univer-data.d.ts +0 -13
- package/lib/types/types/interfaces/i-workbook-data.d.ts +0 -39
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +0 -54
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +0 -17
- /package/lib/types/services/{snapshot/__tests__/snapshot-transform.spec.d.ts → __tests__/resources.spec.d.ts} +0 -0
- /package/lib/types/{types/interfaces/__tests__/i-cell-data.spec.d.ts → sheets/__tests__/cell-data.spec.d.ts} +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType } from '../../shared/object-matrix';
|
|
2
|
-
import { BooleanNumber } from '../enum';
|
|
3
|
-
import { ICellData } from './i-cell-data';
|
|
4
|
-
import { IColumnData } from './i-column-data';
|
|
5
|
-
import { IFreeze } from './i-freeze';
|
|
6
|
-
import { IRange, IRangeType } from './i-range';
|
|
7
|
-
import { IRowData } from './i-row-data';
|
|
8
|
-
/**
|
|
9
|
-
* Snapshot of a worksheet.
|
|
10
|
-
*/
|
|
11
|
-
export interface IWorksheetData {
|
|
12
|
-
/**
|
|
13
|
-
* Id of the worksheet. This should be unique and immutable across the lifecycle of the worksheet.
|
|
14
|
-
*/
|
|
15
|
-
id: string;
|
|
16
|
-
/** Name of the sheet. */
|
|
17
|
-
name: string;
|
|
18
|
-
tabColor: string;
|
|
19
|
-
/**
|
|
20
|
-
* Determine whether the sheet is hidden.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* See {@link BooleanNumber| the BooleanNumber enum} for more details.
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue `BooleanNumber.FALSE`
|
|
26
|
-
*/
|
|
27
|
-
hidden: BooleanNumber;
|
|
28
|
-
freeze: IFreeze;
|
|
29
|
-
rowCount: number;
|
|
30
|
-
columnCount: number;
|
|
31
|
-
zoomRatio: number;
|
|
32
|
-
scrollTop: number;
|
|
33
|
-
scrollLeft: number;
|
|
34
|
-
defaultColumnWidth: number;
|
|
35
|
-
defaultRowHeight: number;
|
|
36
|
-
/** All merged cells in this worksheet. */
|
|
37
|
-
mergeData: IRange[];
|
|
38
|
-
/** A matrix storing cell contents by row and column index. */
|
|
39
|
-
cellData: IObjectMatrixPrimitiveType<ICellData>;
|
|
40
|
-
rowData: IObjectArrayPrimitiveType<Partial<IRowData>>;
|
|
41
|
-
columnData: IObjectArrayPrimitiveType<Partial<IColumnData>>;
|
|
42
|
-
rowHeader: {
|
|
43
|
-
width: number;
|
|
44
|
-
hidden?: BooleanNumber;
|
|
45
|
-
};
|
|
46
|
-
columnHeader: {
|
|
47
|
-
height: number;
|
|
48
|
-
hidden?: BooleanNumber;
|
|
49
|
-
};
|
|
50
|
-
showGridlines: BooleanNumber;
|
|
51
|
-
/** @deprecated */
|
|
52
|
-
selections: IRangeType[];
|
|
53
|
-
rightToLeft: BooleanNumber;
|
|
54
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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 interface IWorksheetOrderData {
|
|
17
|
-
}
|
|
File without changes
|
|
File without changes
|