@univerjs/core 0.1.0-beta.5 → 0.1.1
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 -1
- package/lib/es/index.js +438 -431
- package/lib/types/docs/data-model/document-data-model.d.ts +3 -2
- package/lib/types/services/lifecycle/lifecycle.d.ts +1 -1
- package/lib/types/sheets/__tests__/ranges.spec.d.ts +16 -0
- package/lib/types/sheets/range.d.ts +3 -2
- package/lib/types/types/interfaces/i-selection-data.d.ts +1 -0
- package/lib/umd/index.js +2 -1
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '../../shared';
|
|
17
|
-
import type { IDocumentBody, IDocumentData, IDocumentRenderConfig } from '../../types/interfaces/i-document-data';
|
|
17
|
+
import type { IDocumentBody, IDocumentData, IDocumentRenderConfig, IDocumentStyle } from '../../types/interfaces/i-document-data';
|
|
18
18
|
import type { IPaddingData } from '../../types/interfaces/i-style-data';
|
|
19
19
|
import { type TextXAction } from './action-types';
|
|
20
20
|
export declare const DEFAULT_DOC: {
|
|
@@ -31,7 +31,7 @@ declare class DocumentDataModelSimple {
|
|
|
31
31
|
snapshot: IDocumentData;
|
|
32
32
|
constructor(snapshot: Partial<IDocumentData>);
|
|
33
33
|
get drawings(): import("../../types/interfaces/i-document-data").IDrawings | undefined;
|
|
34
|
-
get documentStyle():
|
|
34
|
+
get documentStyle(): IDocumentStyle;
|
|
35
35
|
get lists(): import("../../types/interfaces/i-document-data").ILists | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* @deprecated use getBody to instead.
|
|
@@ -45,6 +45,7 @@ declare class DocumentDataModelSimple {
|
|
|
45
45
|
getSnapshot(): IDocumentData;
|
|
46
46
|
updateDocumentId(unitId: string): void;
|
|
47
47
|
updateDocumentRenderConfig(config: IDocumentRenderConfig): void;
|
|
48
|
+
updateDocumentStyle(config: IDocumentStyle): void;
|
|
48
49
|
updateDocumentDataMargin(data: IPaddingData): void;
|
|
49
50
|
updateDocumentDataPageSize(width?: number, height?: number): void;
|
|
50
51
|
updateDrawing(id: string, config: IDrawingUpdateConfig): void;
|
|
@@ -17,7 +17,7 @@ import type { Ctor, DependencyIdentifier } from '@wendellhu/redi';
|
|
|
17
17
|
/**
|
|
18
18
|
* This enum defines multiple lifecycle stages in Univer SDK.
|
|
19
19
|
*/
|
|
20
|
-
export declare
|
|
20
|
+
export declare enum LifecycleStages {
|
|
21
21
|
/**
|
|
22
22
|
* Register plugins to Univer.
|
|
23
23
|
*/
|
|
@@ -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 {};
|
|
@@ -17,7 +17,7 @@ import type { IObjectMatrixPrimitiveType, Nullable } from '../shared';
|
|
|
17
17
|
import { ObjectMatrix } from '../shared';
|
|
18
18
|
import type { HorizontalAlign, VerticalAlign, WrapStrategy } from '../types/enum';
|
|
19
19
|
import { BooleanNumber, FontItalic, FontWeight } from '../types/enum';
|
|
20
|
-
import type { IBorderData, ICellData, IDocumentData, IRange, IStyleData, ITextDecoration, ITextRotation } from '../types/interfaces';
|
|
20
|
+
import type { IBorderData, ICellData, IDocumentBody, IDocumentData, IRange, IStyleBase, IStyleData, ITextDecoration, ITextRotation } from '../types/interfaces';
|
|
21
21
|
import type { Styles } from './styles';
|
|
22
22
|
import type { Worksheet } from './worksheet';
|
|
23
23
|
/**
|
|
@@ -32,6 +32,7 @@ interface IValueOptionsType {
|
|
|
32
32
|
export interface IRangeDependencies {
|
|
33
33
|
getStyles(): Readonly<Styles>;
|
|
34
34
|
}
|
|
35
|
+
export declare function isAllFormatInTextRuns(key: keyof IStyleBase, body: IDocumentBody): BooleanNumber;
|
|
35
36
|
/**
|
|
36
37
|
* Access and modify spreadsheet ranges.
|
|
37
38
|
*
|
|
@@ -189,7 +190,7 @@ export declare class Range {
|
|
|
189
190
|
/**
|
|
190
191
|
* Returns the font styles of the cells in the range.
|
|
191
192
|
*/
|
|
192
|
-
private
|
|
193
|
+
private _getFontStyles;
|
|
193
194
|
/**
|
|
194
195
|
* Returns the font weight (normal/bold) of the cell in the top-left corner of the range.
|
|
195
196
|
* If the cell has rich text, the return value according to the textRuns of the rich text,
|