@univerjs/core 0.1.10 → 0.1.12
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 -7
- package/lib/es/index.js +670 -650
- package/lib/types/common/unit.d.ts +1 -1
- package/lib/types/docs/data-model/action-types.d.ts +1 -1
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +1 -1
- package/lib/types/docs/data-model/document-data-model.d.ts +4 -5
- package/lib/types/docs/data-model/empty-snapshot.d.ts +1 -1
- package/lib/types/docs/data-model/text-x/text-x.d.ts +2 -2
- package/lib/types/docs/data-model/text-x/utils.d.ts +2 -2
- package/lib/types/observer/observable-hooks.d.ts +1 -1
- package/lib/types/services/command/command.service.d.ts +5 -3
- package/lib/types/services/context/context.service.d.ts +1 -1
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts +3 -3
- package/lib/types/services/instance/instance.service.d.ts +7 -7
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +4 -4
- package/lib/types/services/locale/locale.service.d.ts +6 -4
- package/lib/types/services/permission/permission.service.d.ts +4 -4
- package/lib/types/services/permission/univer.permission.service.d.ts +2 -2
- package/lib/types/services/plugin/plugin-holder.d.ts +5 -5
- package/lib/types/services/plugin/plugin.d.ts +3 -3
- package/lib/types/services/plugin/plugin.service.d.ts +3 -3
- package/lib/types/services/resource-loader/resource-loader.service.d.ts +5 -5
- package/lib/types/services/resource-loader/type.d.ts +1 -1
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +2 -2
- package/lib/types/services/resource-manager/type.d.ts +3 -3
- package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +3 -3
- package/lib/types/services/snapshot/snapshot-server.service.d.ts +1 -1
- package/lib/types/services/snapshot/snapshot-transform.d.ts +4 -4
- package/lib/types/services/snapshot/snapshot-utils.d.ts +5 -5
- package/lib/types/services/theme/theme.service.d.ts +1 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts +6 -6
- package/lib/types/services/user-manager/user-manager.service.d.ts +5 -0
- package/lib/types/shared/color/color.d.ts +1 -1
- package/lib/types/shared/common.d.ts +5 -5
- package/lib/types/shared/lifecycle.d.ts +3 -3
- 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/rectangle.d.ts +1 -1
- package/lib/types/shared/rxjs.d.ts +1 -1
- 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 +4 -4
- package/lib/types/sheets/row-manager.d.ts +3 -3
- package/lib/types/sheets/styles.d.ts +1 -1
- package/lib/types/sheets/view-model.d.ts +3 -3
- package/lib/types/sheets/workbook.d.ts +6 -6
- package/lib/types/sheets/worksheet.d.ts +7 -7
- package/lib/types/slides/slide-model.d.ts +1 -2
- package/lib/types/types/enum/locale-type.d.ts +2 -1
- package/lib/types/types/interfaces/i-cell-custom-render.d.ts +3 -3
- package/lib/types/types/interfaces/i-cell-data.d.ts +5 -5
- package/lib/types/types/interfaces/i-cell-validation-data.d.ts +1 -1
- package/lib/types/types/interfaces/i-data-validation.d.ts +5 -5
- package/lib/types/types/interfaces/i-document-data.d.ts +10 -4
- package/lib/types/types/interfaces/i-extra-model-data.d.ts +0 -6
- package/lib/types/types/interfaces/i-selection-data.d.ts +1 -1
- package/lib/types/types/interfaces/i-shape-properties.d.ts +1 -1
- package/lib/types/types/interfaces/i-slide-data.d.ts +10 -10
- package/lib/types/types/interfaces/i-style-data.d.ts +3 -3
- package/lib/types/types/interfaces/i-univer-data.d.ts +4 -4
- package/lib/types/types/interfaces/i-workbook-data.d.ts +4 -4
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +6 -6
- package/lib/types/univer.d.ts +7 -7
- package/lib/umd/index.js +9 -9
- package/package.json +8 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ICellValidationData } from './i-cell-validation-data';
|
|
2
|
-
import { IStyleData } from './i-style-data';
|
|
3
|
-
import { IDocumentData } from './i-document-data';
|
|
4
|
-
import { ICellCustomRender } from './i-cell-custom-render';
|
|
5
|
-
import { CellValueType } from '../enum/text-style';
|
|
6
1
|
import { Nullable } from '../../shared/types';
|
|
2
|
+
import { CellValueType } from '../enum/text-style';
|
|
3
|
+
import { ICellCustomRender } from './i-cell-custom-render';
|
|
4
|
+
import { IDocumentData } from './i-document-data';
|
|
5
|
+
import { IStyleData } from './i-style-data';
|
|
6
|
+
import { ICellValidationData } from './i-cell-validation-data';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cell value type
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IRange } from './i-range';
|
|
2
|
-
import { DataValidationRenderMode } from '../enum/data-validation-render-mode';
|
|
3
|
-
import { DataValidationErrorStyle } from '../enum/data-validation-error-style';
|
|
4
|
-
import { DataValidationImeMode } from '../enum/data-validation-ime-mode';
|
|
5
|
-
import { DataValidationType } from '../enum/data-validation-type';
|
|
6
1
|
import { DataValidationOperator } from '../enum/data-validation-operator';
|
|
2
|
+
import { DataValidationType } from '../enum/data-validation-type';
|
|
3
|
+
import { DataValidationImeMode } from '../enum/data-validation-ime-mode';
|
|
4
|
+
import { DataValidationErrorStyle } from '../enum/data-validation-error-style';
|
|
5
|
+
import { DataValidationRenderMode } from '../enum/data-validation-render-mode';
|
|
6
|
+
import { IRange } from './i-range';
|
|
7
7
|
|
|
8
8
|
export interface IDataValidationRuleBase {
|
|
9
9
|
type: DataValidationType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IColorStyle, IStyleBase } from './i-style-data';
|
|
2
|
-
import { IExtraModelData } from './i-extra-model-data';
|
|
3
|
-
import { BooleanNumber, CellValueType, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
|
|
4
1
|
import { ISize } from '../../services/floating-object/floating-object-interfaces';
|
|
2
|
+
import { BooleanNumber, CellValueType, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
|
|
3
|
+
import { IExtraModelData } from './i-extra-model-data';
|
|
4
|
+
import { IColorStyle, IStyleBase } from './i-style-data';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties of document
|
|
@@ -206,7 +206,8 @@ export declare enum CustomRangeType {
|
|
|
206
206
|
SDT = 2,// 17.5.2 Structured Document Tags
|
|
207
207
|
BOOKMARK = 3,
|
|
208
208
|
COMMENT = 4,
|
|
209
|
-
CUSTOM = 5
|
|
209
|
+
CUSTOM = 5,
|
|
210
|
+
MENTION = 6
|
|
210
211
|
}
|
|
211
212
|
/**
|
|
212
213
|
* Custom Block
|
|
@@ -252,6 +253,10 @@ export interface IDocumentLayout {
|
|
|
252
253
|
characterSpacingControl?: characterSpacingControlType;
|
|
253
254
|
paragraphLineGapDefault?: number;
|
|
254
255
|
spaceWidthEastAsian?: BooleanNumber;
|
|
256
|
+
autoHyphenation?: BooleanNumber;
|
|
257
|
+
consecutiveHyphenLimit?: number;
|
|
258
|
+
doNotHyphenateCaps?: BooleanNumber;
|
|
259
|
+
hyphenationZone?: number;
|
|
255
260
|
}
|
|
256
261
|
export declare enum GridType {
|
|
257
262
|
DEFAULT = 0,
|
|
@@ -456,6 +461,7 @@ export interface IParagraphStyle extends IIndentStart {
|
|
|
456
461
|
wordWrap?: BooleanNumber;
|
|
457
462
|
widowControl?: BooleanNumber;
|
|
458
463
|
shading?: IShading;
|
|
464
|
+
suppressHyphenation?: BooleanNumber;
|
|
459
465
|
}
|
|
460
466
|
/**
|
|
461
467
|
* Types of name style
|
|
@@ -24,10 +24,4 @@ export interface IExtraModelData {
|
|
|
24
24
|
* default is null
|
|
25
25
|
*/
|
|
26
26
|
container?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Specify the unitID of the parent render. In this case, the scene will enter
|
|
29
|
-
* the sceneViewer and become a child application of the parent scene.
|
|
30
|
-
* default is null
|
|
31
|
-
*/
|
|
32
|
-
parentRenderUnitId?: string;
|
|
33
27
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IWorksheetData } from './i-worksheet-data';
|
|
2
|
-
import { IColorStyle, IStyleBase, IStyleData } from './i-style-data';
|
|
3
|
-
import { IShapeProperties } from './i-shape-properties';
|
|
4
|
-
import { IPlaceholder } from './i-placeholder';
|
|
5
|
-
import { IImageProperties } from './i-image-properties';
|
|
6
|
-
import { IExtraModelData } from './i-extra-model-data';
|
|
7
|
-
import { ICustomBlock, IDocumentData, ILists } from './i-document-data';
|
|
8
|
-
import { ShapeType } from '../enum/shape-type';
|
|
9
|
-
import { LocaleType, ThemeColorType } from '../enum';
|
|
10
|
-
import { IKeyType, Nullable } from '../../shared/types';
|
|
11
1
|
import { ISize, ITransformState } from '../../services/floating-object/floating-object-interfaces';
|
|
2
|
+
import { IKeyType, Nullable } from '../../shared/types';
|
|
3
|
+
import { LocaleType, ThemeColorType } from '../enum';
|
|
4
|
+
import { ShapeType } from '../enum/shape-type';
|
|
5
|
+
import { ICustomBlock, IDocumentData, ILists } from './i-document-data';
|
|
6
|
+
import { IExtraModelData } from './i-extra-model-data';
|
|
7
|
+
import { IImageProperties } from './i-image-properties';
|
|
8
|
+
import { IPlaceholder } from './i-placeholder';
|
|
9
|
+
import { IShapeProperties } from './i-shape-properties';
|
|
10
|
+
import { IColorStyle, IStyleBase, IStyleData } from './i-style-data';
|
|
11
|
+
import { IWorksheetData } from './i-worksheet-data';
|
|
12
12
|
|
|
13
13
|
export interface ISlideData extends IReferenceSource, IExtraModelData {
|
|
14
14
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ThemeColorType } from '../enum/theme-color-type';
|
|
2
|
-
import { BaselineOffset, BooleanNumber, HorizontalAlign, TextDecoration, TextDirection, VerticalAlign, WrapStrategy } from '../enum/text-style';
|
|
3
|
-
import { BorderStyleTypes } from '../enum/border-style-types';
|
|
4
1
|
import { Nullable } from '../../shared/types';
|
|
2
|
+
import { BorderStyleTypes } from '../enum/border-style-types';
|
|
3
|
+
import { BaselineOffset, BooleanNumber, HorizontalAlign, TextDecoration, TextDirection, VerticalAlign, WrapStrategy } from '../enum/text-style';
|
|
4
|
+
import { ThemeColorType } from '../enum/theme-color-type';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties of text decoration
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LocaleType } from '../enum';
|
|
2
|
-
import { ILocales } from '../../shared/locale';
|
|
3
|
-
import { IStyleSheet } from '../../services/theme/theme.service';
|
|
4
|
-
import { DependencyOverride } from '../../services/plugin/plugin-override';
|
|
5
1
|
import { LogLevel } from '../../services/log/log.service';
|
|
2
|
+
import { DependencyOverride } from '../../services/plugin/plugin-override';
|
|
3
|
+
import { IStyleSheet } from '../../services/theme/theme.service';
|
|
4
|
+
import { ILocales } from '../../shared/locale';
|
|
5
|
+
import { LocaleType } from '../enum';
|
|
6
6
|
|
|
7
7
|
export interface IUniverData {
|
|
8
8
|
theme: IStyleSheet;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IWorksheetData } from './i-worksheet-data';
|
|
2
|
-
import { IStyleData } from './i-style-data';
|
|
3
|
-
import { IExtraModelData } from './i-extra-model-data';
|
|
4
|
-
import { LocaleType } from '../enum';
|
|
5
1
|
import { IKeyType, Nullable } from '../../shared/types';
|
|
2
|
+
import { LocaleType } from '../enum';
|
|
3
|
+
import { IExtraModelData } from './i-extra-model-data';
|
|
4
|
+
import { IStyleData } from './i-style-data';
|
|
5
|
+
import { IWorksheetData } from './i-worksheet-data';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Properties of a workbook's configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IRowData } from './i-row-data';
|
|
2
|
-
import { IRange, IRangeType } from './i-range';
|
|
3
|
-
import { IFreeze } from './i-freeze';
|
|
4
|
-
import { IColumnData } from './i-column-data';
|
|
5
|
-
import { ICellData } from './i-cell-data';
|
|
6
|
-
import { BooleanNumber } from '../enum';
|
|
7
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
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Snapshot of a worksheet.
|
package/lib/types/univer.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Plugin, PluginCtor } from './services/plugin/plugin';
|
|
2
|
-
import { UnitModel, UnitType } from './common/unit';
|
|
3
|
-
import { IDocumentData, ISlideData, IUniverData, IWorkbookData } from './types/interfaces';
|
|
4
|
-
import { LocaleType } from './types/enum/locale-type';
|
|
5
|
-
import { SlideDataModel } from './slides/slide-model';
|
|
6
|
-
import { Workbook } from './sheets/workbook';
|
|
7
|
-
import { DocumentDataModel } from './docs/data-model/document-data-model';
|
|
8
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { DocumentDataModel } from './docs/data-model/document-data-model';
|
|
3
|
+
import { Workbook } from './sheets/workbook';
|
|
4
|
+
import { SlideDataModel } from './slides/slide-model';
|
|
5
|
+
import { LocaleType } from './types/enum/locale-type';
|
|
6
|
+
import { IDocumentData, ISlideData, IUniverData, IWorkbookData } from './types/interfaces';
|
|
7
|
+
import { UnitModel, UnitType } from './common/unit';
|
|
8
|
+
import { Plugin, PluginCtor } from './services/plugin/plugin';
|
|
9
9
|
|
|
10
10
|
export declare class Univer {
|
|
11
11
|
private _startedTypes;
|