@univerjs/core 0.1.0-beta.3 → 0.1.0-beta.5
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 +4 -4
- package/lib/es/index.js +1876 -1715
- package/lib/types/basics/registry.d.ts +5 -5
- package/lib/types/docs/data-model/__tests__/common.spec.d.ts +16 -0
- package/lib/types/docs/data-model/{mutation-types.d.ts → action-types.d.ts} +8 -3
- package/lib/types/docs/data-model/document-data-model.d.ts +2 -2
- package/lib/types/docs/data-model/text-x/__tests__/action-iterator.spec.d.ts +16 -0
- package/lib/types/docs/data-model/text-x/__tests__/compose.spec.d.ts +16 -0
- package/lib/types/docs/data-model/text-x/__tests__/utils.spec.d.ts +16 -0
- package/lib/types/docs/data-model/text-x/action-iterator.d.ts +29 -0
- package/lib/types/docs/data-model/text-x/text-x.d.ts +2 -1
- package/lib/types/docs/data-model/text-x/utils.d.ts +21 -0
- package/lib/types/index.d.ts +5 -2
- package/lib/types/services/locale/__tests__/locale.service.spec.d.ts +16 -0
- package/lib/types/services/locale/locale.service.d.ts +26 -5
- package/lib/types/services/undoredo/undoredo.service.d.ts +16 -14
- package/lib/types/sheets/range.d.ts +1 -1
- package/lib/types/sheets/sheet-snapshot-utils.d.ts +36 -0
- package/lib/types/sheets/workbook.d.ts +16 -12
- package/lib/types/sheets/worksheet.d.ts +12 -26
- package/lib/types/types/const/const.d.ts +3 -13
- package/lib/types/types/interfaces/i-document-data.d.ts +5 -0
- package/lib/types/types/interfaces/i-style-data.d.ts +1 -1
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +11 -21
- package/lib/umd/index.js +4 -4
- package/package.json +24 -16
|
@@ -14,27 +14,25 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType } from '../../shared/object-matrix';
|
|
17
|
-
import type {
|
|
18
|
-
import type { BooleanNumber, SheetTypes } from '../enum';
|
|
17
|
+
import type { BooleanNumber } from '../enum';
|
|
19
18
|
import type { ICellData } from './i-cell-data';
|
|
20
19
|
import type { IColumnData } from './i-column-data';
|
|
21
20
|
import type { IFreeze } from './i-freeze';
|
|
22
21
|
import type { IRange, IRangeType } from './i-range';
|
|
23
22
|
import type { IRowData } from './i-row-data';
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* TODO: 考虑将非通用配置,抽离到插件
|
|
28
|
-
*
|
|
29
|
-
* 比如 showGridlines 是sheet特有的,而如果实现如普通表格,就不需要 showGridlines
|
|
24
|
+
* Snapshot of a worksheet.
|
|
30
25
|
*/
|
|
31
26
|
export interface IWorksheetData {
|
|
32
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Id of the worksheet. This should be unique and immutable across the lifecycle of the worksheet.
|
|
29
|
+
*/
|
|
33
30
|
id: string;
|
|
31
|
+
/** Name of the sheet. */
|
|
34
32
|
name: string;
|
|
35
33
|
tabColor: string;
|
|
36
34
|
/**
|
|
37
|
-
* Determine whether the sheet is hidden
|
|
35
|
+
* Determine whether the sheet is hidden.
|
|
38
36
|
*
|
|
39
37
|
* @remarks
|
|
40
38
|
* See {@link BooleanNumber| the BooleanNumber enum} for more details.
|
|
@@ -43,9 +41,6 @@ export interface IWorksheetData {
|
|
|
43
41
|
*/
|
|
44
42
|
hidden: BooleanNumber;
|
|
45
43
|
freeze: IFreeze;
|
|
46
|
-
/**
|
|
47
|
-
* row and column count in worksheet, not like excel, it is unlimited
|
|
48
|
-
*/
|
|
49
44
|
rowCount: number;
|
|
50
45
|
columnCount: number;
|
|
51
46
|
zoomRatio: number;
|
|
@@ -53,18 +48,12 @@ export interface IWorksheetData {
|
|
|
53
48
|
scrollLeft: number;
|
|
54
49
|
defaultColumnWidth: number;
|
|
55
50
|
defaultRowHeight: number;
|
|
51
|
+
/** All merged cells in this worksheet. */
|
|
56
52
|
mergeData: IRange[];
|
|
57
|
-
|
|
58
|
-
hideColumn: [];
|
|
59
|
-
/**
|
|
60
|
-
* If the worksheet is the active one.
|
|
61
|
-
* @deprecated this should be removed
|
|
62
|
-
*/
|
|
63
|
-
status: BooleanNumber;
|
|
53
|
+
/** A matrix storing cell contents by row and column index. */
|
|
64
54
|
cellData: IObjectMatrixPrimitiveType<ICellData>;
|
|
65
55
|
rowData: IObjectArrayPrimitiveType<Partial<IRowData>>;
|
|
66
56
|
columnData: IObjectArrayPrimitiveType<Partial<IColumnData>>;
|
|
67
|
-
showGridlines: BooleanNumber;
|
|
68
57
|
rowHeader: {
|
|
69
58
|
width: number;
|
|
70
59
|
hidden?: BooleanNumber;
|
|
@@ -73,7 +62,8 @@ export interface IWorksheetData {
|
|
|
73
62
|
height: number;
|
|
74
63
|
hidden?: BooleanNumber;
|
|
75
64
|
};
|
|
65
|
+
showGridlines: BooleanNumber;
|
|
66
|
+
/** @deprecated */
|
|
76
67
|
selections: IRangeType[];
|
|
77
68
|
rightToLeft: BooleanNumber;
|
|
78
|
-
pluginMeta: IKeyValue;
|
|
79
69
|
}
|