@univerjs/core 0.17.0 → 0.18.0
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/facade.js +1 -1
- package/lib/cjs/index.js +9 -8
- package/lib/es/facade.js +1 -1479
- package/lib/es/index.js +9 -20335
- package/lib/facade.js +1 -1479
- package/lib/index.js +9 -20335
- package/lib/types/common/async.d.ts +16 -1
- package/lib/types/common/di.d.ts +18 -2
- package/lib/types/common/interceptor.d.ts +16 -1
- package/lib/types/common/invert-color/invert-hsl.d.ts +16 -1
- package/lib/types/common/invert-color/invert-rgb.d.ts +16 -1
- package/lib/types/common/unit.d.ts +17 -2
- package/lib/types/docs/data-model/document-data-model.d.ts +24 -9
- package/lib/types/docs/data-model/empty-snapshot.d.ts +16 -1
- package/lib/types/docs/data-model/json-x/json-x.d.ts +19 -4
- package/lib/types/docs/data-model/preset-list-type.d.ts +16 -1
- package/lib/types/docs/data-model/replacement.d.ts +16 -1
- package/lib/types/docs/data-model/rich-text-builder.d.ts +21 -5
- package/lib/types/docs/data-model/text-x/action-iterator.d.ts +17 -1
- package/lib/types/docs/data-model/text-x/action-types.d.ts +17 -2
- package/lib/types/docs/data-model/text-x/apply-utils/common.d.ts +16 -1
- package/lib/types/docs/data-model/text-x/apply-utils/delete-apply.d.ts +16 -1
- package/lib/types/docs/data-model/text-x/apply-utils/insert-apply.d.ts +16 -1
- package/lib/types/docs/data-model/text-x/apply-utils/update-apply.d.ts +16 -1
- package/lib/types/docs/data-model/text-x/apply.d.ts +17 -2
- package/lib/types/docs/data-model/text-x/build-utils/custom-decoration.d.ts +17 -2
- package/lib/types/docs/data-model/text-x/build-utils/custom-range.d.ts +17 -2
- package/lib/types/docs/data-model/text-x/build-utils/drawings.d.ts +19 -4
- package/lib/types/docs/data-model/text-x/build-utils/index.d.ts +24 -9
- package/lib/types/docs/data-model/text-x/build-utils/paragraph.d.ts +18 -3
- package/lib/types/docs/data-model/text-x/build-utils/parse.d.ts +16 -1
- package/lib/types/docs/data-model/text-x/build-utils/selection.d.ts +17 -2
- package/lib/types/docs/data-model/text-x/build-utils/text-x-utils.d.ts +23 -7
- package/lib/types/docs/data-model/text-x/text-x.d.ts +18 -3
- package/lib/types/docs/data-model/text-x/transform-utils.d.ts +17 -2
- package/lib/types/docs/data-model/text-x/utils.d.ts +34 -19
- package/lib/types/docs/data-model/utils.d.ts +16 -1
- package/lib/types/facade/f-base.d.ts +17 -1
- package/lib/types/facade/f-blob.d.ts +17 -1
- package/lib/types/facade/f-doc.d.ts +17 -1
- package/lib/types/facade/f-enum.d.ts +15 -0
- package/lib/types/facade/f-event-registry.d.ts +19 -3
- package/lib/types/facade/f-event.d.ts +17 -2
- package/lib/types/facade/f-hooks.d.ts +17 -1
- package/lib/types/facade/f-univer.d.ts +20 -3
- package/lib/types/facade/f-usermanager.d.ts +17 -1
- package/lib/types/facade/f-util.d.ts +15 -0
- package/lib/types/observer/observable.d.ts +17 -1
- package/lib/types/services/authz-io/authz-io-local.service.d.ts +17 -2
- package/lib/types/services/authz-io/type.d.ts +18 -3
- package/lib/types/services/command/command.service.d.ts +20 -4
- package/lib/types/services/config/config.service.d.ts +18 -3
- package/lib/types/services/confirm/confirm.service.d.ts +17 -2
- package/lib/types/services/context/context.service.d.ts +16 -1
- package/lib/types/services/error/error.service.d.ts +16 -1
- package/lib/types/services/image-io/image-io.service.d.ts +18 -3
- package/lib/types/services/image-io/url-image.service.d.ts +17 -2
- package/lib/types/services/instance/instance.service.d.ts +22 -5
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +16 -1
- package/lib/types/services/local-storage/local-storage.service.d.ts +1 -1
- package/lib/types/services/locale/locale.service.d.ts +17 -2
- package/lib/types/services/log/log.service.d.ts +16 -1
- package/lib/types/services/mention-io/mention-io-local.service.d.ts +16 -1
- package/lib/types/services/mention-io/type.d.ts +18 -3
- package/lib/types/services/permission/permission.service.d.ts +18 -2
- package/lib/types/services/permission/type.d.ts +20 -5
- package/lib/types/services/plugin/plugin-override.d.ts +16 -1
- package/lib/types/services/plugin/plugin.service.d.ts +18 -2
- package/lib/types/services/resource-loader/resource-loader.service.d.ts +17 -2
- package/lib/types/services/resource-loader/type.d.ts +17 -2
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +19 -4
- package/lib/types/services/resource-manager/type.d.ts +19 -4
- package/lib/types/services/theme/theme.service.d.ts +16 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts +22 -5
- package/lib/types/services/user-manager/const.d.ts +17 -1
- package/lib/types/services/user-manager/user-manager.service.d.ts +17 -2
- package/lib/types/shared/after-init-apply.d.ts +16 -1
- package/lib/types/shared/cache/image-cache.d.ts +16 -1
- package/lib/types/shared/check-if-move.d.ts +17 -2
- package/lib/types/shared/common.d.ts +22 -7
- package/lib/types/shared/compare.d.ts +16 -1
- package/lib/types/shared/dayjs.d.ts +16 -1
- package/lib/types/shared/doc-tool.d.ts +16 -1
- package/lib/types/shared/generate.d.ts +17 -2
- package/lib/types/shared/lifecycle.d.ts +18 -2
- package/lib/types/shared/lru/lru-map.d.ts +16 -1
- package/lib/types/shared/object-matrix-query.d.ts +16 -1
- package/lib/types/shared/object-matrix.d.ts +17 -2
- package/lib/types/shared/r-tree.d.ts +18 -2
- package/lib/types/shared/range.d.ts +17 -2
- package/lib/types/shared/rectangle.d.ts +17 -2
- package/lib/types/shared/rxjs.d.ts +18 -2
- package/lib/types/shared/tools.d.ts +17 -23
- package/lib/types/sheets/clone.d.ts +17 -2
- package/lib/types/sheets/column-manager.d.ts +19 -4
- package/lib/types/sheets/empty-snapshot.d.ts +16 -1
- package/lib/types/sheets/range.d.ts +23 -6
- package/lib/types/sheets/row-manager.d.ts +20 -5
- package/lib/types/sheets/sheet-skeleton.d.ts +21 -5
- package/lib/types/sheets/sheet-snapshot-utils.d.ts +16 -1
- package/lib/types/sheets/span-model.d.ts +16 -1
- package/lib/types/sheets/styles.d.ts +18 -3
- package/lib/types/sheets/typedef.d.ts +23 -7
- package/lib/types/sheets/util.d.ts +20 -4
- package/lib/types/sheets/workbook.d.ts +19 -4
- package/lib/types/sheets/worksheet.d.ts +25 -7
- package/lib/types/skeleton.d.ts +16 -1
- package/lib/types/slides/slide-model.d.ts +22 -6
- package/lib/types/types/const/const.d.ts +18 -2
- package/lib/types/types/const/page-size.d.ts +16 -1
- package/lib/types/types/interfaces/i-cell-custom-render.d.ts +20 -5
- package/lib/types/types/interfaces/i-cell-validation-data.d.ts +17 -2
- package/lib/types/types/interfaces/i-data-validation.d.ts +21 -6
- package/lib/types/types/interfaces/i-document-data-interceptor.d.ts +16 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +20 -5
- package/lib/types/types/interfaces/i-drawing.d.ts +56 -3
- package/lib/types/types/interfaces/i-mention.d.ts +16 -1
- package/lib/types/types/interfaces/i-need-check-disposable.d.ts +16 -1
- package/lib/types/types/interfaces/i-placeholder.d.ts +16 -1
- package/lib/types/types/interfaces/i-shape-properties.d.ts +17 -2
- package/lib/types/types/interfaces/i-slide-data.d.ts +26 -11
- package/lib/types/types/interfaces/i-style-data.d.ts +19 -4
- package/lib/types/univer.d.ts +26 -10
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +9 -8
- package/package.json +9 -9
- package/lib/types/docs/data-model/text-x/build-utils/__test__/custom-range.spec.d.ts +0 -16
- package/lib/types/docs/data-model/text-x/build-utils/__test__/selection.spec.d.ts +0 -16
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import type { ITextRange } from '../../../../sheets/typedef';
|
|
17
|
+
import type { ICustomTable, IParagraph, IParagraphStyle, ITextStyle } from '../../../../types/interfaces';
|
|
18
|
+
import type { DocumentDataModel } from '../../document-data-model';
|
|
4
19
|
import { TextX } from '../text-x';
|
|
5
20
|
export interface ISwitchParagraphBulletParams {
|
|
6
21
|
paragraphs: IParagraph[];
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IDocumentBody } from '../../../../types/interfaces';
|
|
2
17
|
export declare const getPlainText: (dataStream: string) => string;
|
|
3
18
|
export declare const isEmptyDocument: (dataStream?: string) => boolean;
|
|
4
19
|
export declare const fromPlainText: (text: string) => IDocumentBody;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { ITextRange } from '../../../../sheets/typedef';
|
|
17
|
+
import type { IParagraph, IParagraphRange } from '../../../../types/interfaces';
|
|
3
18
|
export declare function makeSelection(startOffset: number, endOffset?: number): ITextRange;
|
|
4
19
|
export declare function normalizeSelection(selection: ITextRange): ITextRange;
|
|
5
20
|
export declare function isSegmentIntersects(start: number, end: number, start2: number, end2: number): boolean;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
import type { ThemeService } from '../../../../services/theme/theme.service';
|
|
17
|
+
import type { Nullable } from '../../../../shared';
|
|
18
|
+
import type { ITextRange, ITextRangeParam } from '../../../../sheets/typedef';
|
|
19
|
+
import type { CustomRangeType, IDocumentBody } from '../../../../types/interfaces';
|
|
20
|
+
import type { DocumentDataModel } from '../../document-data-model';
|
|
21
|
+
import type { TextXAction } from '../action-types';
|
|
22
|
+
import type { TextXSelection } from '../text-x';
|
|
23
|
+
import { TextX } from '../text-x';
|
|
8
24
|
export interface IDeleteCustomRangeParam {
|
|
9
25
|
rangeId: string;
|
|
10
26
|
segmentId?: string;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import type { ITextRange } from '../../../sheets/typedef';
|
|
17
|
+
import type { IDocumentBody } from '../../../types/interfaces/i-document-data';
|
|
18
|
+
import type { TextXAction } from './action-types';
|
|
4
19
|
import { UpdateDocsAttributeType } from '../../../shared/command-enum';
|
|
5
20
|
export type TPriority = 'left' | 'right';
|
|
6
21
|
export declare class TextX {
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IDocumentBody } from '../../../types/interfaces';
|
|
17
|
+
import type { IRetainAction } from './action-types';
|
|
3
18
|
import { UpdateDocsAttributeType } from '../../../shared';
|
|
4
19
|
interface ITransformBodyResult {
|
|
5
20
|
body: IDocumentBody;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { ICustomDecoration, IDocumentBody, ITextRun } from '../../../types/interfaces/i-document-data';
|
|
17
|
+
import type { IRetainAction } from './action-types';
|
|
3
18
|
import { UpdateDocsAttributeType } from '../../../shared/command-enum';
|
|
4
19
|
export declare enum SliceBodyType {
|
|
5
20
|
copy = 0,
|
|
@@ -13,43 +28,43 @@ export declare function getTableSlice(body: IDocumentBody, startOffset: number,
|
|
|
13
28
|
}[];
|
|
14
29
|
export declare function getParagraphsSlice(body: IDocumentBody, startOffset: number, endOffset: number): {
|
|
15
30
|
startIndex: number;
|
|
16
|
-
paragraphStyle?: import(
|
|
17
|
-
bullet?: import(
|
|
31
|
+
paragraphStyle?: import("../../..").IParagraphStyle;
|
|
32
|
+
bullet?: import("../../..").IBullet;
|
|
18
33
|
}[] | undefined;
|
|
19
34
|
export declare function getSectionBreakSlice(body: IDocumentBody, startOffset: number, endOffset: number): {
|
|
20
35
|
startIndex: number;
|
|
21
36
|
pageNumberStart?: number;
|
|
22
|
-
pageSize?: import(
|
|
23
|
-
pageOrient?: import(
|
|
24
|
-
documentFlavor?: import(
|
|
37
|
+
pageSize?: import("../../..").ISize;
|
|
38
|
+
pageOrient?: import("../../..").PageOrientType;
|
|
39
|
+
documentFlavor?: import("../../..").DocumentFlavor;
|
|
25
40
|
marginHeader?: number;
|
|
26
41
|
marginFooter?: number;
|
|
27
|
-
renderConfig?: import(
|
|
42
|
+
renderConfig?: import("../../..").IDocumentRenderConfig;
|
|
28
43
|
marginTop?: number;
|
|
29
44
|
marginBottom?: number;
|
|
30
45
|
marginRight?: number;
|
|
31
46
|
marginLeft?: number;
|
|
32
47
|
charSpace?: number;
|
|
33
48
|
linePitch?: number;
|
|
34
|
-
gridType?: import(
|
|
35
|
-
columnProperties?: import(
|
|
36
|
-
columnSeparatorType?: import(
|
|
37
|
-
contentDirection?: import(
|
|
38
|
-
sectionType?: import(
|
|
39
|
-
sectionTypeNext?: import(
|
|
40
|
-
textDirection?: import(
|
|
49
|
+
gridType?: import("../../..").GridType;
|
|
50
|
+
columnProperties?: import("../../..").ISectionColumnProperties[];
|
|
51
|
+
columnSeparatorType?: import("../../..").ColumnSeparatorType;
|
|
52
|
+
contentDirection?: import("../../..").TextDirection;
|
|
53
|
+
sectionType?: import("../../..").SectionType;
|
|
54
|
+
sectionTypeNext?: import("../../..").SectionType;
|
|
55
|
+
textDirection?: import("../../..").TextDirectionType;
|
|
41
56
|
defaultHeaderId?: string;
|
|
42
57
|
defaultFooterId?: string;
|
|
43
58
|
evenPageHeaderId?: string;
|
|
44
59
|
evenPageFooterId?: string;
|
|
45
60
|
firstPageHeaderId?: string;
|
|
46
61
|
firstPageFooterId?: string;
|
|
47
|
-
useFirstPageHeaderFooter?: import(
|
|
48
|
-
evenAndOddHeaders?: import(
|
|
62
|
+
useFirstPageHeaderFooter?: import("../../..").BooleanNumber;
|
|
63
|
+
evenAndOddHeaders?: import("../../..").BooleanNumber;
|
|
49
64
|
}[] | undefined;
|
|
50
65
|
export declare function getCustomBlockSlice(body: IDocumentBody, startOffset: number, endOffset: number): {
|
|
51
66
|
startIndex: number;
|
|
52
|
-
blockType?: import(
|
|
67
|
+
blockType?: import("../../..").BlockType;
|
|
53
68
|
blockId: string;
|
|
54
69
|
}[] | undefined;
|
|
55
70
|
export declare function getBodySlice(body: IDocumentBody, startOffset: number, endOffset: number, returnEmptyArray?: boolean, type?: SliceBodyType): IDocumentBody;
|
|
@@ -63,7 +78,7 @@ export declare function getCustomRangeSlice(body: IDocumentBody, startOffset: nu
|
|
|
63
78
|
startIndex: number;
|
|
64
79
|
endIndex: number;
|
|
65
80
|
rangeId: string;
|
|
66
|
-
rangeType: import(
|
|
81
|
+
rangeType: import("../../..").CustomRangeType | number;
|
|
67
82
|
wholeEntity?: boolean;
|
|
68
83
|
properties?: Record<string, any> | undefined;
|
|
69
84
|
}[];
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IStyleBase, ITextRotation } from '../../types/interfaces';
|
|
2
17
|
export declare const DEFAULT_FONTFACE_PLANE = "\"Helvetica Neue\", Helvetica, Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Heiti SC\", \"Microsoft YaHei\", \"WenQuanYi Micro Hei\", sans-serif";
|
|
3
18
|
export interface IDocumentSkeletonFontStyle {
|
|
4
19
|
fontString: string;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { Injector } from '@univerjs/core';
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
2
18
|
/**
|
|
3
19
|
* `FBase` is a base class for all facade classes.
|
|
4
20
|
* It provides a way to extend classes with static and instance methods.
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { Nullable } from '@univerjs/core';
|
|
17
|
+
import { Injector } from '@univerjs/core';
|
|
2
18
|
import { FBase } from './f-base';
|
|
3
19
|
export interface IFBlobSource {
|
|
4
20
|
/**
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { DocumentDataModel } from '@univerjs/core';
|
|
17
|
+
import { Injector } from '@univerjs/core';
|
|
2
18
|
import { FBaseInitialable } from './f-base';
|
|
3
19
|
/**
|
|
4
20
|
* @ignore
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { AbsoluteRefType, AutoFillSeries, BaselineOffset, BooleanNumber, BorderStyleTypes, BorderType, ColorType, CommandType, CommonHideTypes, CopyPasteType, DataValidationErrorStyle, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DeleteDirection, DeveloperMetadataVisibility, Dimension, Direction, HorizontalAlign, InterpolationPointType, LifecycleStages, LocaleType, MentionType, ProtectionType, RelativeDate, SheetTypes, TextDecoration, TextDirection, ThemeColorType, UniverInstanceType, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
2
17
|
/**
|
|
3
18
|
* @hideconstructor
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import type { IDisposable } from '@univerjs/core';
|
|
17
|
+
import type { Subscription } from 'rxjs';
|
|
18
|
+
import type { IEventParamConfig } from './f-event';
|
|
19
|
+
import { Registry } from '@univerjs/core';
|
|
4
20
|
export declare class FEventRegistry {
|
|
5
21
|
protected _eventRegistry: Map<string, Registry<(param: any) => void>>;
|
|
6
22
|
protected _eventHandlerMap: Map<string, Set<() => IDisposable | Subscription>>;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { CommandType, IDocumentData, IExecutionOptions, LifecycleStages, UniverInstanceType } from '@univerjs/core';
|
|
17
|
+
import type { FDoc } from './f-doc';
|
|
3
18
|
/**
|
|
4
19
|
* Base interface for all event parameters
|
|
5
20
|
* @interface IEventBase
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IDisposable, IUndoRedoItem } from '@univerjs/core';
|
|
17
|
+
import { Injector, LifecycleService } from '@univerjs/core';
|
|
2
18
|
import { FBase } from './f-base';
|
|
3
19
|
/**
|
|
4
20
|
* @hideconstructor
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import type { CommandListener, IDisposable, IDocumentData, IExecutionOptions, ILanguagePack, IParagraphStyle, ITextDecoration, ITextStyle, LifecycleStages } from '@univerjs/core';
|
|
17
|
+
import type { Subscription } from 'rxjs';
|
|
18
|
+
import type { IEventParamConfig } from './f-event';
|
|
19
|
+
import { Disposable, ICommandService, Injector, IUniverInstanceService, LifecycleService, ParagraphStyleBuilder, ParagraphStyleValue, RichTextBuilder, RichTextValue, TextDecorationBuilder, TextStyleBuilder, TextStyleValue, Univer } from '@univerjs/core';
|
|
4
20
|
import { FBlob } from './f-blob';
|
|
5
21
|
import { FEnum } from './f-enum';
|
|
22
|
+
import { FEventName } from './f-event';
|
|
6
23
|
import { FEventRegistry } from './f-event-registry';
|
|
7
24
|
import { FHooks } from './f-hooks';
|
|
8
25
|
import { FUserManager } from './f-usermanager';
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IUser } from '@univerjs/core';
|
|
17
|
+
import { Injector, UserManagerService } from '@univerjs/core';
|
|
2
18
|
import { FBase } from './f-base';
|
|
3
19
|
/**
|
|
4
20
|
* @hideconstructor
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { numfmt, Rectangle, Tools } from '@univerjs/core';
|
|
2
17
|
/**
|
|
3
18
|
* @ignore
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { Observer as RxObserver, Subscription } from 'rxjs';
|
|
17
|
+
import { Observable, Subject } from 'rxjs';
|
|
2
18
|
/**
|
|
3
19
|
* A class serves as a medium between the observable and its observers
|
|
4
20
|
*/
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IActionInfo, IAllowedRequest, IBatchAllowedResponse, ICollaborator, ICreateRequest, IListPermPointRequest, IPermissionPoint, IPutCollaboratorsRequest, IUnitRoleKV, IUpdatePermPointRequest, UnitAction } from '@univerjs/protocol';
|
|
17
|
+
import type { IAuthzIoService } from './type';
|
|
3
18
|
import { IResourceManagerService } from '../resource-manager/type';
|
|
4
19
|
import { UserManagerService } from '../user-manager/user-manager.service';
|
|
5
20
|
/**
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import type { IAllowedRequest, IAllowedResponse, IBatchAllowedResponse, ICreateCollaboratorRequest, ICreateRequest, ICreateResponse, IDeleteCollaboratorRequest, IListCollaboratorRequest, IListCollaboratorResponse, IListPermPointRequest, IListPermPointResponse, IListRolesRequest, IListRolesResponse, IPutCollaboratorsRequest, IUpdateCollaboratorRequest, IUpdatePermPointRequest } from '@univerjs/protocol';
|
|
17
|
+
import type { ILogContext } from '../log/context';
|
|
3
18
|
export interface IAuthzIoService {
|
|
4
19
|
create(config: ICreateRequest, context?: ILogContext): Promise<ICreateResponse['objectID']>;
|
|
5
20
|
allowed(config: IAllowedRequest, context?: ILogContext): Promise<IAllowedResponse['actions']>;
|
|
@@ -16,4 +31,4 @@ export interface IAuthzIoService {
|
|
|
16
31
|
createCollaborator(config: ICreateCollaboratorRequest, context?: ILogContext): Promise<void>;
|
|
17
32
|
putCollaborators(config: IPutCollaboratorsRequest, context?: ILogContext): Promise<void>;
|
|
18
33
|
}
|
|
19
|
-
export declare const IAuthzIoService: import(
|
|
34
|
+
export declare const IAuthzIoService: import("@wendellhu/redi").IdentifierDecorator<IAuthzIoService>;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
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
|
+
import type { IAccessor, IDisposable } from '../../common/di';
|
|
17
|
+
import { Injector } from '../../common/di';
|
|
2
18
|
import { Disposable } from '../../shared/lifecycle';
|
|
3
19
|
import { IConfigService } from '../config/config.service';
|
|
4
20
|
import { IContextService } from '../context/context.service';
|
|
@@ -169,7 +185,7 @@ export type CommandListener = (commandInfo: Readonly<ICommandInfo>, options?: IE
|
|
|
169
185
|
/**
|
|
170
186
|
* The identifier of the command service.
|
|
171
187
|
*/
|
|
172
|
-
export declare const ICommandService: import(
|
|
188
|
+
export declare const ICommandService: import("@wendellhu/redi").IdentifierDecorator<ICommandService>;
|
|
173
189
|
/**
|
|
174
190
|
* The service to register and execute commands.
|
|
175
191
|
*/
|
|
@@ -269,6 +285,6 @@ export declare class CommandService extends Disposable implements ICommandServic
|
|
|
269
285
|
private _execute;
|
|
270
286
|
private _syncExecute;
|
|
271
287
|
}
|
|
272
|
-
export declare function sequenceExecute(tasks: ICommandInfo[], commandService: ICommandService, options?: IExecutionOptions): import(
|
|
273
|
-
export declare function sequenceExecuteAsync(tasks: ICommandInfo[], commandService: ICommandService, options?: IExecutionOptions): Promise<import(
|
|
288
|
+
export declare function sequenceExecute(tasks: ICommandInfo[], commandService: ICommandService, options?: IExecutionOptions): import("../..").ISequenceExecuteResult;
|
|
289
|
+
export declare function sequenceExecuteAsync(tasks: ICommandInfo[], commandService: ICommandService, options?: IExecutionOptions): Promise<import("../..").ISequenceExecuteResult>;
|
|
274
290
|
export {};
|