@univerjs/core 1.0.4 → 1.2.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 +10 -11
- package/lib/cjs/index.js +251 -125
- package/lib/es/facade.js +8 -9
- package/lib/es/index.js +185 -81
- package/lib/facade.js +8 -9
- package/lib/index.js +185 -81
- package/lib/types/common/const.d.ts +1 -0
- package/lib/types/docs/data-model/text-x/utils.d.ts +1 -0
- package/lib/types/index.d.ts +5 -0
- package/lib/types/services/instance/instance.service.d.ts +1 -1
- package/lib/types/shared/record-value.d.ts +36 -0
- package/lib/types/shared/units.d.ts +19 -0
- package/lib/types/sheets/calculation-settings.d.ts +37 -0
- package/lib/types/sheets/sheet-skeleton.d.ts +8 -2
- package/lib/types/sheets/typedef.d.ts +6 -3
- package/lib/types/sheets/workbook.d.ts +3 -0
- package/lib/types/types/interfaces/i-document-data.d.ts +2 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +26 -26
- package/package.json +6 -6
package/lib/cjs/facade.js
CHANGED
|
@@ -39,10 +39,9 @@ var FBaseInitialable = class extends _univerjs_core.Disposable {
|
|
|
39
39
|
this._injector = _injector;
|
|
40
40
|
const Ctor = this.constructor;
|
|
41
41
|
if (Boolean(Ctor[ManualInitSymbol])) return;
|
|
42
|
-
const self = this;
|
|
43
42
|
const initializers = Object.getPrototypeOf(this)[InitializerSymbol$1];
|
|
44
|
-
if (initializers) initializers.forEach(
|
|
45
|
-
fn.apply(
|
|
43
|
+
if (initializers) initializers.forEach((fn) => {
|
|
44
|
+
fn.apply(this, [_injector]);
|
|
46
45
|
});
|
|
47
46
|
}
|
|
48
47
|
/**
|
|
@@ -81,7 +80,7 @@ var FBaseInitialable = class extends _univerjs_core.Disposable {
|
|
|
81
80
|
};
|
|
82
81
|
|
|
83
82
|
//#endregion
|
|
84
|
-
//#region \0@oxc-project+runtime@0.
|
|
83
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
85
84
|
function __decorateParam(paramIndex, decorator) {
|
|
86
85
|
return function(target, key) {
|
|
87
86
|
decorator(target, key, paramIndex);
|
|
@@ -89,7 +88,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
//#endregion
|
|
92
|
-
//#region \0@oxc-project+runtime@0.
|
|
91
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
93
92
|
function __decorate(decorators, target, key, desc) {
|
|
94
93
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
95
94
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -213,7 +212,7 @@ let FBlob = _FBlob = class FBlob extends FBase {
|
|
|
213
212
|
FBlob = _FBlob = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector))], FBlob);
|
|
214
213
|
|
|
215
214
|
//#endregion
|
|
216
|
-
//#region \0@oxc-project+runtime@0.
|
|
215
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
217
216
|
function _typeof(o) {
|
|
218
217
|
"@babel/helpers - typeof";
|
|
219
218
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -224,7 +223,7 @@ function _typeof(o) {
|
|
|
224
223
|
}
|
|
225
224
|
|
|
226
225
|
//#endregion
|
|
227
|
-
//#region \0@oxc-project+runtime@0.
|
|
226
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
228
227
|
function toPrimitive(t, r) {
|
|
229
228
|
if ("object" != _typeof(t) || !t) return t;
|
|
230
229
|
var e = t[Symbol.toPrimitive];
|
|
@@ -237,14 +236,14 @@ function toPrimitive(t, r) {
|
|
|
237
236
|
}
|
|
238
237
|
|
|
239
238
|
//#endregion
|
|
240
|
-
//#region \0@oxc-project+runtime@0.
|
|
239
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
241
240
|
function toPropertyKey(t) {
|
|
242
241
|
var i = toPrimitive(t, "string");
|
|
243
242
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
244
243
|
}
|
|
245
244
|
|
|
246
245
|
//#endregion
|
|
247
|
-
//#region \0@oxc-project+runtime@0.
|
|
246
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
248
247
|
function _defineProperty(e, r, t) {
|
|
249
248
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
250
249
|
value: t,
|
|
@@ -1716,7 +1715,7 @@ FUniver = _FUniver = __decorate([
|
|
|
1716
1715
|
//#endregion
|
|
1717
1716
|
exports.FBase = FBase;
|
|
1718
1717
|
exports.FBaseInitialable = FBaseInitialable;
|
|
1719
|
-
Object.defineProperty(exports,
|
|
1718
|
+
Object.defineProperty(exports, "FBlob", {
|
|
1720
1719
|
enumerable: true,
|
|
1721
1720
|
get: function () {
|
|
1722
1721
|
return FBlob;
|
|
@@ -1724,7 +1723,7 @@ Object.defineProperty(exports, 'FBlob', {
|
|
|
1724
1723
|
});
|
|
1725
1724
|
exports.FEnum = FEnum;
|
|
1726
1725
|
exports.FEventName = FEventName;
|
|
1727
|
-
Object.defineProperty(exports,
|
|
1726
|
+
Object.defineProperty(exports, "FUniver", {
|
|
1728
1727
|
enumerable: true,
|
|
1729
1728
|
get: function () {
|
|
1730
1729
|
return FUniver;
|