@univerjs/core 0.15.4 → 0.15.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 +8 -8
- package/lib/es/index.js +1907 -1851
- package/lib/index.js +1907 -1851
- package/lib/types/shared/index.d.ts +1 -0
- package/lib/types/shared/max-row-column.d.ts +28 -0
- package/lib/types/sheets/column-manager.d.ts +7 -0
- package/lib/types/sheets/row-manager.d.ts +7 -0
- package/lib/umd/index.js +8 -8
- package/package.json +3 -3
|
@@ -31,6 +31,7 @@ export * from './intervals';
|
|
|
31
31
|
export * from './lifecycle';
|
|
32
32
|
export * from './locale';
|
|
33
33
|
export { LRUHelper, LRUMap } from './lru/lru-map';
|
|
34
|
+
export * from './max-row-column';
|
|
34
35
|
export type { INumfmtLocaleTag } from './numfmt';
|
|
35
36
|
export { DEFAULT_NUMBER_FORMAT, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, getNumfmtParseValueFilter, isDefaultFormat, isPatternEqualWithoutDecimal, isTextFormat, numfmt, } from './numfmt';
|
|
36
37
|
export * from './object-matrix';
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Convert Excel column label to number
|
|
18
|
+
* @param label Column label (e.g., "A", "Z", "AA", "XFD")
|
|
19
|
+
* @returns Column number (e.g., 1, 26, 27, 16384)
|
|
20
|
+
*/
|
|
21
|
+
export declare function columnLabelToNumber(label: string): number;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number of rows and columns in Excel
|
|
24
|
+
* Rows: 1,048,576
|
|
25
|
+
* Columns: 16,384 (equivalent to column XFD)
|
|
26
|
+
*/
|
|
27
|
+
export declare const MAX_ROW_COUNT = 1048576;
|
|
28
|
+
export declare const MAX_COLUMN_COUNT = 16384;
|
|
@@ -64,6 +64,13 @@ export declare class ColumnManager {
|
|
|
64
64
|
* @param columnPos column index
|
|
65
65
|
*/
|
|
66
66
|
getColumn(columnPos: number): Nullable<Partial<IColumnData>>;
|
|
67
|
+
/**
|
|
68
|
+
* Insert columns data at given position
|
|
69
|
+
* @param {number} startColumn - start column index
|
|
70
|
+
* @param {number} endColumn - end column index
|
|
71
|
+
* @param {IObjectArrayPrimitiveType<IColumnData>} [columnDataInfo] - column data info
|
|
72
|
+
*/
|
|
73
|
+
insertColumnsWithData(startColumn: number, endColumn: number, columnDataInfo?: IObjectArrayPrimitiveType<IColumnData>): void;
|
|
67
74
|
/**
|
|
68
75
|
* Remove column data of given column
|
|
69
76
|
* @param columnPos
|
|
@@ -43,6 +43,13 @@ export declare class RowManager {
|
|
|
43
43
|
* @returns {Nullable<Partial<IRowData>>} rowData
|
|
44
44
|
*/
|
|
45
45
|
getRow(rowPos: number): Nullable<Partial<IRowData>>;
|
|
46
|
+
/**
|
|
47
|
+
* Insert rows data at given position
|
|
48
|
+
* @param {number} startRow - start row index
|
|
49
|
+
* @param {number} endRow - end row index
|
|
50
|
+
* @param {IObjectArrayPrimitiveType<IRowData>} [rowDataInfo] - row data info
|
|
51
|
+
*/
|
|
52
|
+
insertRowsWithData(startRow: number, endRow: number, rowDataInfo?: IObjectArrayPrimitiveType<IRowData>): void;
|
|
46
53
|
/**
|
|
47
54
|
* Remove row data of given row
|
|
48
55
|
* @param rowPos
|