@univerjs/core 1.3.0 → 1.4.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 +15 -30
- package/lib/cjs/index.js +398 -577
- package/lib/es/facade.js +15 -30
- package/lib/es/index.js +398 -578
- package/lib/facade.js +15 -30
- package/lib/index.js +398 -578
- package/lib/types/bases/typedef.d.ts +25 -25
- package/lib/types/common/regexp/index.d.ts +4 -4
- package/lib/types/docs/data-model/paragraph-style.d.ts +5 -2
- package/lib/types/docs/data-model/preset-list-type.d.ts +8 -8
- package/lib/types/docs/data-model/rich-text-builder.d.ts +1 -1
- package/lib/types/docs/data-model/text-x/build-utils/custom-range.d.ts +1 -1
- package/lib/types/docs/data-model/text-x/build-utils/index.d.ts +15 -13
- package/lib/types/docs/data-model/text-x/utils.d.ts +20 -20
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/lifecycle/lifecycle.d.ts +4 -4
- package/lib/types/services/resource-loader/type.d.ts +2 -2
- package/lib/types/services/user-manager/user-manager.service.d.ts +2 -2
- package/lib/types/shared/common.d.ts +1 -0
- package/lib/types/shared/r-tree.d.ts +3 -1
- package/lib/types/shared/sort-rules.d.ts +2 -2
- package/lib/types/sheets/sheet-skeleton.d.ts +12 -4
- package/lib/types/types/interfaces/i-document-data.d.ts +1 -5
- package/lib/types/types/interfaces/i-drawing.d.ts +3 -1
- package/lib/types/types/interfaces/index.d.ts +0 -3
- package/lib/types/univer.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +26 -26
- package/package.json +8 -8
- package/lib/types/slides/slide-data-model.d.ts +0 -27
- package/lib/types/types/enum/place-holder-type.d.ts +0 -34
- package/lib/types/types/interfaces/i-image-properties.d.ts +0 -34
- package/lib/types/types/interfaces/i-placeholder.d.ts +0 -21
- package/lib/types/types/interfaces/i-shape-properties.d.ts +0 -30
package/lib/facade.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbsoluteRefType, AutoFillSeries, BaselineOffset, BooleanNumber, BorderStyleTypes, BorderType, CanceledError, ColorType, CommandType, CommonHideTypes, CopyPasteType, DataValidationErrorStyle, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DeleteDirection, DeveloperMetadataVisibility, Dimension, Direction, Disposable, FormulaType, HorizontalAlign, ICommandService, IUniverInstanceService, ImageSourceType, Inject, Injector, InterpolationPointType, LifecycleService, LifecycleStages, LocaleService, LocaleType, MentionType, NamedStyleType, NumberUnitType, ParagraphStyleBuilder, ParagraphStyleValue, PresetListType, ProtectionType, Rectangle, RedoCommand, RegionService, Registry, RelativeDate, RichTextBuilder, RichTextValue, SheetTypes, SpacingRule, TextDecoration, TextDecorationBuilder, TextDirection, TextStyleBuilder, TextStyleValue, ThemeColorType, ThemeService, Tools, UndoCommand, Univer, UniverInstanceType, UserManagerService, VerticalAlign, WorksheetHiddenState, WrapStrategy, numfmt, toDisposable } from "@univerjs/core";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/facade/f-base.ts
|
|
4
4
|
/**
|
|
5
5
|
* `FBase` is a base class for all facade classes.
|
|
6
6
|
* It provides a way to extend classes with static and instance methods.
|
|
@@ -78,16 +78,14 @@ var FBaseInitialable = class extends Disposable {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
81
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
|
|
83
82
|
function __decorateParam(paramIndex, decorator) {
|
|
84
83
|
return function(target, key) {
|
|
85
84
|
decorator(target, key, paramIndex);
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
|
|
90
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
88
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
91
89
|
function __decorate(decorators, target, key, desc) {
|
|
92
90
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93
91
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -95,8 +93,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
95
93
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
94
|
}
|
|
97
95
|
|
|
98
|
-
|
|
99
|
-
//#region src/facade/f-blob.ts
|
|
96
|
+
// src/facade/f-blob.ts
|
|
100
97
|
var _FBlob;
|
|
101
98
|
let FBlob = _FBlob = class FBlob extends FBase {
|
|
102
99
|
constructor(_blob, _injector) {
|
|
@@ -210,8 +207,7 @@ let FBlob = _FBlob = class FBlob extends FBase {
|
|
|
210
207
|
};
|
|
211
208
|
FBlob = _FBlob = __decorate([__decorateParam(1, Inject(Injector))], FBlob);
|
|
212
209
|
|
|
213
|
-
|
|
214
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
210
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
215
211
|
function _typeof(o) {
|
|
216
212
|
"@babel/helpers - typeof";
|
|
217
213
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -221,8 +217,7 @@ function _typeof(o) {
|
|
|
221
217
|
}, _typeof(o);
|
|
222
218
|
}
|
|
223
219
|
|
|
224
|
-
|
|
225
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
220
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
226
221
|
function toPrimitive(t, r) {
|
|
227
222
|
if ("object" != _typeof(t) || !t) return t;
|
|
228
223
|
var e = t[Symbol.toPrimitive];
|
|
@@ -234,15 +229,13 @@ function toPrimitive(t, r) {
|
|
|
234
229
|
return ("string" === r ? String : Number)(t);
|
|
235
230
|
}
|
|
236
231
|
|
|
237
|
-
|
|
238
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
232
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
239
233
|
function toPropertyKey(t) {
|
|
240
234
|
var i = toPrimitive(t, "string");
|
|
241
235
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
242
236
|
}
|
|
243
237
|
|
|
244
|
-
|
|
245
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
238
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
246
239
|
function _defineProperty(e, r, t) {
|
|
247
240
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
248
241
|
value: t,
|
|
@@ -252,8 +245,7 @@ function _defineProperty(e, r, t) {
|
|
|
252
245
|
}) : e[r] = t, e;
|
|
253
246
|
}
|
|
254
247
|
|
|
255
|
-
|
|
256
|
-
//#region src/facade/f-enum.ts
|
|
248
|
+
// src/facade/f-enum.ts
|
|
257
249
|
/**
|
|
258
250
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
259
251
|
*
|
|
@@ -729,8 +721,7 @@ var FEnum = class FEnum {
|
|
|
729
721
|
};
|
|
730
722
|
_defineProperty(FEnum, "_instance", void 0);
|
|
731
723
|
|
|
732
|
-
|
|
733
|
-
//#region src/facade/f-event.ts
|
|
724
|
+
// src/facade/f-event.ts
|
|
734
725
|
/**
|
|
735
726
|
* @hideconstructor
|
|
736
727
|
*/
|
|
@@ -915,8 +906,7 @@ var FEventName = class FEventName {
|
|
|
915
906
|
};
|
|
916
907
|
_defineProperty(FEventName, "_instance", void 0);
|
|
917
908
|
|
|
918
|
-
|
|
919
|
-
//#region src/facade/f-doc.ts
|
|
909
|
+
// src/facade/f-doc.ts
|
|
920
910
|
let FDoc = class FDoc extends FBaseInitialable {
|
|
921
911
|
constructor(doc, _injector) {
|
|
922
912
|
super(_injector);
|
|
@@ -925,8 +915,7 @@ let FDoc = class FDoc extends FBaseInitialable {
|
|
|
925
915
|
};
|
|
926
916
|
FDoc = __decorate([__decorateParam(1, Inject(Injector))], FDoc);
|
|
927
917
|
|
|
928
|
-
|
|
929
|
-
//#region src/facade/f-event-registry.ts
|
|
918
|
+
// src/facade/f-event-registry.ts
|
|
930
919
|
var FEventRegistry = class {
|
|
931
920
|
constructor() {
|
|
932
921
|
_defineProperty(this, "_eventRegistry", /* @__PURE__ */ new Map());
|
|
@@ -1019,8 +1008,7 @@ var FEventRegistry = class {
|
|
|
1019
1008
|
}
|
|
1020
1009
|
};
|
|
1021
1010
|
|
|
1022
|
-
|
|
1023
|
-
//#region src/facade/f-usermanager.ts
|
|
1011
|
+
// src/facade/f-usermanager.ts
|
|
1024
1012
|
let FUserManager = class FUserManager extends FBase {
|
|
1025
1013
|
constructor(_injector, _userManagerService) {
|
|
1026
1014
|
super();
|
|
@@ -1041,8 +1029,7 @@ let FUserManager = class FUserManager extends FBase {
|
|
|
1041
1029
|
};
|
|
1042
1030
|
FUserManager = __decorate([__decorateParam(0, Inject(Injector)), __decorateParam(1, Inject(UserManagerService))], FUserManager);
|
|
1043
1031
|
|
|
1044
|
-
|
|
1045
|
-
//#region src/facade/f-util.ts
|
|
1032
|
+
// src/facade/f-util.ts
|
|
1046
1033
|
/**
|
|
1047
1034
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1048
1035
|
*
|
|
@@ -1122,8 +1109,7 @@ var FUtil = class FUtil {
|
|
|
1122
1109
|
};
|
|
1123
1110
|
_defineProperty(FUtil, "_instance", void 0);
|
|
1124
1111
|
|
|
1125
|
-
|
|
1126
|
-
//#region src/facade/f-univer.ts
|
|
1112
|
+
// src/facade/f-univer.ts
|
|
1127
1113
|
var _FUniver;
|
|
1128
1114
|
/**
|
|
1129
1115
|
* @ignore
|
|
@@ -1711,5 +1697,4 @@ FUniver = _FUniver = __decorate([
|
|
|
1711
1697
|
__decorateParam(3, Inject(LifecycleService))
|
|
1712
1698
|
], FUniver);
|
|
1713
1699
|
|
|
1714
|
-
//#endregion
|
|
1715
1700
|
export { FBase, FBaseInitialable, FBlob, FEnum, FEventName, FUniver, FUtil };
|