@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/cjs/facade.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
let _univerjs_core = require("@univerjs/core");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/facade/f-base.ts
|
|
5
5
|
/**
|
|
6
6
|
* `FBase` is a base class for all facade classes.
|
|
7
7
|
* It provides a way to extend classes with static and instance methods.
|
|
@@ -79,16 +79,14 @@ var FBaseInitialable = class extends _univerjs_core.Disposable {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
82
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
|
|
84
83
|
function __decorateParam(paramIndex, decorator) {
|
|
85
84
|
return function(target, key) {
|
|
86
85
|
decorator(target, key, paramIndex);
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
89
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
92
90
|
function __decorate(decorators, target, key, desc) {
|
|
93
91
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
94
92
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -96,8 +94,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
96
94
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
97
95
|
}
|
|
98
96
|
|
|
99
|
-
|
|
100
|
-
//#region src/facade/f-blob.ts
|
|
97
|
+
// src/facade/f-blob.ts
|
|
101
98
|
var _FBlob;
|
|
102
99
|
let FBlob = _FBlob = class FBlob extends FBase {
|
|
103
100
|
constructor(_blob, _injector) {
|
|
@@ -211,8 +208,7 @@ let FBlob = _FBlob = class FBlob extends FBase {
|
|
|
211
208
|
};
|
|
212
209
|
FBlob = _FBlob = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector))], FBlob);
|
|
213
210
|
|
|
214
|
-
|
|
215
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
211
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
216
212
|
function _typeof(o) {
|
|
217
213
|
"@babel/helpers - typeof";
|
|
218
214
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -222,8 +218,7 @@ function _typeof(o) {
|
|
|
222
218
|
}, _typeof(o);
|
|
223
219
|
}
|
|
224
220
|
|
|
225
|
-
|
|
226
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
221
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
227
222
|
function toPrimitive(t, r) {
|
|
228
223
|
if ("object" != _typeof(t) || !t) return t;
|
|
229
224
|
var e = t[Symbol.toPrimitive];
|
|
@@ -235,15 +230,13 @@ function toPrimitive(t, r) {
|
|
|
235
230
|
return ("string" === r ? String : Number)(t);
|
|
236
231
|
}
|
|
237
232
|
|
|
238
|
-
|
|
239
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
233
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
240
234
|
function toPropertyKey(t) {
|
|
241
235
|
var i = toPrimitive(t, "string");
|
|
242
236
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
243
237
|
}
|
|
244
238
|
|
|
245
|
-
|
|
246
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
239
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
247
240
|
function _defineProperty(e, r, t) {
|
|
248
241
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
249
242
|
value: t,
|
|
@@ -253,8 +246,7 @@ function _defineProperty(e, r, t) {
|
|
|
253
246
|
}) : e[r] = t, e;
|
|
254
247
|
}
|
|
255
248
|
|
|
256
|
-
|
|
257
|
-
//#region src/facade/f-enum.ts
|
|
249
|
+
// src/facade/f-enum.ts
|
|
258
250
|
/**
|
|
259
251
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
260
252
|
*
|
|
@@ -730,8 +722,7 @@ var FEnum = class FEnum {
|
|
|
730
722
|
};
|
|
731
723
|
_defineProperty(FEnum, "_instance", void 0);
|
|
732
724
|
|
|
733
|
-
|
|
734
|
-
//#region src/facade/f-event.ts
|
|
725
|
+
// src/facade/f-event.ts
|
|
735
726
|
/**
|
|
736
727
|
* @hideconstructor
|
|
737
728
|
*/
|
|
@@ -916,8 +907,7 @@ var FEventName = class FEventName {
|
|
|
916
907
|
};
|
|
917
908
|
_defineProperty(FEventName, "_instance", void 0);
|
|
918
909
|
|
|
919
|
-
|
|
920
|
-
//#region src/facade/f-doc.ts
|
|
910
|
+
// src/facade/f-doc.ts
|
|
921
911
|
let FDoc = class FDoc extends FBaseInitialable {
|
|
922
912
|
constructor(doc, _injector) {
|
|
923
913
|
super(_injector);
|
|
@@ -926,8 +916,7 @@ let FDoc = class FDoc extends FBaseInitialable {
|
|
|
926
916
|
};
|
|
927
917
|
FDoc = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector))], FDoc);
|
|
928
918
|
|
|
929
|
-
|
|
930
|
-
//#region src/facade/f-event-registry.ts
|
|
919
|
+
// src/facade/f-event-registry.ts
|
|
931
920
|
var FEventRegistry = class {
|
|
932
921
|
constructor() {
|
|
933
922
|
_defineProperty(this, "_eventRegistry", /* @__PURE__ */ new Map());
|
|
@@ -1020,8 +1009,7 @@ var FEventRegistry = class {
|
|
|
1020
1009
|
}
|
|
1021
1010
|
};
|
|
1022
1011
|
|
|
1023
|
-
|
|
1024
|
-
//#region src/facade/f-usermanager.ts
|
|
1012
|
+
// src/facade/f-usermanager.ts
|
|
1025
1013
|
let FUserManager = class FUserManager extends FBase {
|
|
1026
1014
|
constructor(_injector, _userManagerService) {
|
|
1027
1015
|
super();
|
|
@@ -1042,8 +1030,7 @@ let FUserManager = class FUserManager extends FBase {
|
|
|
1042
1030
|
};
|
|
1043
1031
|
FUserManager = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.UserManagerService))], FUserManager);
|
|
1044
1032
|
|
|
1045
|
-
|
|
1046
|
-
//#region src/facade/f-util.ts
|
|
1033
|
+
// src/facade/f-util.ts
|
|
1047
1034
|
/**
|
|
1048
1035
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1049
1036
|
*
|
|
@@ -1123,8 +1110,7 @@ var FUtil = class FUtil {
|
|
|
1123
1110
|
};
|
|
1124
1111
|
_defineProperty(FUtil, "_instance", void 0);
|
|
1125
1112
|
|
|
1126
|
-
|
|
1127
|
-
//#region src/facade/f-univer.ts
|
|
1113
|
+
// src/facade/f-univer.ts
|
|
1128
1114
|
var _FUniver;
|
|
1129
1115
|
/**
|
|
1130
1116
|
* @ignore
|
|
@@ -1712,7 +1698,6 @@ FUniver = _FUniver = __decorate([
|
|
|
1712
1698
|
__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_core.LifecycleService))
|
|
1713
1699
|
], FUniver);
|
|
1714
1700
|
|
|
1715
|
-
//#endregion
|
|
1716
1701
|
exports.FBase = FBase;
|
|
1717
1702
|
exports.FBaseInitialable = FBaseInitialable;
|
|
1718
1703
|
Object.defineProperty(exports, "FBlob", {
|