@univerjs/core 1.0.3 → 1.1.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 +8 -8
- package/lib/cjs/index.js +117 -78
- package/lib/es/facade.js +6 -6
- package/lib/es/index.js +55 -34
- package/lib/facade.js +6 -6
- package/lib/index.js +55 -34
- package/lib/types/common/const.d.ts +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/services/undoredo/undoredo.service.d.ts +2 -2
- package/lib/types/sheets/calculation-settings.d.ts +37 -0
- package/lib/types/sheets/sheet-skeleton.d.ts +2 -0
- package/lib/types/sheets/typedef.d.ts +6 -3
- package/lib/types/sheets/workbook.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +26 -26
- package/package.json +5 -5
package/lib/cjs/facade.js
CHANGED
|
@@ -81,7 +81,7 @@ var FBaseInitialable = class extends _univerjs_core.Disposable {
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
//#endregion
|
|
84
|
-
//#region \0@oxc-project+runtime@0.
|
|
84
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
85
85
|
function __decorateParam(paramIndex, decorator) {
|
|
86
86
|
return function(target, key) {
|
|
87
87
|
decorator(target, key, paramIndex);
|
|
@@ -89,7 +89,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
//#endregion
|
|
92
|
-
//#region \0@oxc-project+runtime@0.
|
|
92
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
93
93
|
function __decorate(decorators, target, key, desc) {
|
|
94
94
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
95
95
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -213,7 +213,7 @@ let FBlob = _FBlob = class FBlob extends FBase {
|
|
|
213
213
|
FBlob = _FBlob = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector))], FBlob);
|
|
214
214
|
|
|
215
215
|
//#endregion
|
|
216
|
-
//#region \0@oxc-project+runtime@0.
|
|
216
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
217
217
|
function _typeof(o) {
|
|
218
218
|
"@babel/helpers - typeof";
|
|
219
219
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -224,7 +224,7 @@ function _typeof(o) {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
|
-
//#region \0@oxc-project+runtime@0.
|
|
227
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
228
228
|
function toPrimitive(t, r) {
|
|
229
229
|
if ("object" != _typeof(t) || !t) return t;
|
|
230
230
|
var e = t[Symbol.toPrimitive];
|
|
@@ -237,14 +237,14 @@ function toPrimitive(t, r) {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
//#endregion
|
|
240
|
-
//#region \0@oxc-project+runtime@0.
|
|
240
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
241
241
|
function toPropertyKey(t) {
|
|
242
242
|
var i = toPrimitive(t, "string");
|
|
243
243
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
//#endregion
|
|
247
|
-
//#region \0@oxc-project+runtime@0.
|
|
247
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
248
248
|
function _defineProperty(e, r, t) {
|
|
249
249
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
250
250
|
value: t,
|
|
@@ -1716,7 +1716,7 @@ FUniver = _FUniver = __decorate([
|
|
|
1716
1716
|
//#endregion
|
|
1717
1717
|
exports.FBase = FBase;
|
|
1718
1718
|
exports.FBaseInitialable = FBaseInitialable;
|
|
1719
|
-
Object.defineProperty(exports,
|
|
1719
|
+
Object.defineProperty(exports, "FBlob", {
|
|
1720
1720
|
enumerable: true,
|
|
1721
1721
|
get: function () {
|
|
1722
1722
|
return FBlob;
|
|
@@ -1724,7 +1724,7 @@ Object.defineProperty(exports, 'FBlob', {
|
|
|
1724
1724
|
});
|
|
1725
1725
|
exports.FEnum = FEnum;
|
|
1726
1726
|
exports.FEventName = FEventName;
|
|
1727
|
-
Object.defineProperty(exports,
|
|
1727
|
+
Object.defineProperty(exports, "FUniver", {
|
|
1728
1728
|
enumerable: true,
|
|
1729
1729
|
get: function () {
|
|
1730
1730
|
return FUniver;
|
package/lib/cjs/index.js
CHANGED
|
@@ -152,7 +152,7 @@ function installShims() {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
//#endregion
|
|
155
|
-
//#region \0@oxc-project+runtime@0.
|
|
155
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
156
156
|
function _typeof(o) {
|
|
157
157
|
"@babel/helpers - typeof";
|
|
158
158
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -163,7 +163,7 @@ function _typeof(o) {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
//#endregion
|
|
166
|
-
//#region \0@oxc-project+runtime@0.
|
|
166
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
167
167
|
function toPrimitive(t, r) {
|
|
168
168
|
if ("object" != _typeof(t) || !t) return t;
|
|
169
169
|
var e = t[Symbol.toPrimitive];
|
|
@@ -176,14 +176,14 @@ function toPrimitive(t, r) {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
//#endregion
|
|
179
|
-
//#region \0@oxc-project+runtime@0.
|
|
179
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
180
180
|
function toPropertyKey(t) {
|
|
181
181
|
var i = toPrimitive(t, "string");
|
|
182
182
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
//#endregion
|
|
186
|
-
//#region \0@oxc-project+runtime@0.
|
|
186
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
187
187
|
function _defineProperty(e, r, t) {
|
|
188
188
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
189
189
|
value: t,
|
|
@@ -1699,7 +1699,7 @@ let ThemeColors = /* @__PURE__ */ function(ThemeColors) {
|
|
|
1699
1699
|
//#endregion
|
|
1700
1700
|
//#region package.json
|
|
1701
1701
|
var name = "@univerjs/core";
|
|
1702
|
-
var version = "1.0
|
|
1702
|
+
var version = "1.1.0";
|
|
1703
1703
|
|
|
1704
1704
|
//#endregion
|
|
1705
1705
|
//#region src/common/array.ts
|
|
@@ -2045,7 +2045,7 @@ function hashLogContent(...args) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
2047
|
//#endregion
|
|
2048
|
-
//#region \0@oxc-project+runtime@0.
|
|
2048
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
2049
2049
|
function __decorateParam(paramIndex, decorator) {
|
|
2050
2050
|
return function(target, key) {
|
|
2051
2051
|
decorator(target, key, paramIndex);
|
|
@@ -2053,7 +2053,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
|
|
2055
2055
|
//#endregion
|
|
2056
|
-
//#region \0@oxc-project+runtime@0.
|
|
2056
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
2057
2057
|
function __decorate(decorators, target, key, desc) {
|
|
2058
2058
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2059
2059
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9299,8 +9299,10 @@ function startOf(date, unit, isUTC) {
|
|
|
9299
9299
|
}
|
|
9300
9300
|
}
|
|
9301
9301
|
function getWeekOfYear(date, isUTC) {
|
|
9302
|
-
const
|
|
9303
|
-
const
|
|
9302
|
+
const current = getDateParts(startOf(date, "week", isUTC), isUTC);
|
|
9303
|
+
const first = getDateParts(startOf(startOf(date, "year", isUTC), "week", isUTC), isUTC);
|
|
9304
|
+
const currentWeekStart = createDateWithParts(current.year, current.month, current.day, 0, 0, 0, 0, true);
|
|
9305
|
+
const firstWeekStart = createDateWithParts(first.year, first.month, first.day, 0, 0, 0, 0, true);
|
|
9304
9306
|
return Math.floor((currentWeekStart.getTime() - firstWeekStart.getTime()) / DAY / 7) + 1;
|
|
9305
9307
|
}
|
|
9306
9308
|
function getTimezoneString(date, isUTC, compact = false) {
|
|
@@ -11590,24 +11592,6 @@ function scanFormulaStringState(formula, start, end, initialState) {
|
|
|
11590
11592
|
return inString;
|
|
11591
11593
|
}
|
|
11592
11594
|
|
|
11593
|
-
//#endregion
|
|
11594
|
-
//#region src/common/async.ts
|
|
11595
|
-
/**
|
|
11596
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
11597
|
-
*
|
|
11598
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11599
|
-
* you may not use this file except in compliance with the License.
|
|
11600
|
-
* You may obtain a copy of the License at
|
|
11601
|
-
*
|
|
11602
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11603
|
-
*
|
|
11604
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11605
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11606
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11607
|
-
* See the License for the specific language governing permissions and
|
|
11608
|
-
* limitations under the License.
|
|
11609
|
-
*/
|
|
11610
|
-
|
|
11611
11595
|
//#endregion
|
|
11612
11596
|
//#region src/common/boolean.ts
|
|
11613
11597
|
/**
|
|
@@ -11654,6 +11638,7 @@ const DOCS_COMMENT_EDITOR_UNIT_ID_KEY = `${PREFIX}COMMENT_EDITOR`;
|
|
|
11654
11638
|
const DEFAULT_EMPTY_DOCUMENT_VALUE = "\r\n";
|
|
11655
11639
|
const IS_ROW_STYLE_PRECEDE_COLUMN_STYLE = "isRowStylePrecedeColumnStyle";
|
|
11656
11640
|
const AUTO_HEIGHT_FOR_MERGED_CELLS = Symbol("AUTO_HEIGHT_FOR_MERGED_CELLS");
|
|
11641
|
+
const SHEET_TEXT_LINE_GAP = Symbol("SHEET_TEXT_LINE_GAP");
|
|
11657
11642
|
function createInternalEditorID(id) {
|
|
11658
11643
|
return `${PREFIX}${id}`;
|
|
11659
11644
|
}
|
|
@@ -17599,8 +17584,10 @@ function replaceInDocumentBody(body, query, target, caseSensitive) {
|
|
|
17599
17584
|
documentStyle: {}
|
|
17600
17585
|
});
|
|
17601
17586
|
const queryLen = query.length;
|
|
17602
|
-
|
|
17603
|
-
|
|
17587
|
+
const expression = createLiteralRegExp(query, caseSensitive ? "g" : "gi");
|
|
17588
|
+
let match;
|
|
17589
|
+
while ((match = expression.exec(documentDataModel.getBody().dataStream)) !== null) {
|
|
17590
|
+
const index = match.index;
|
|
17604
17591
|
const textX = new TextX();
|
|
17605
17592
|
const jsonX = JSONX.getInstance();
|
|
17606
17593
|
if (index > 0) textX.retain(index);
|
|
@@ -17622,6 +17609,7 @@ function replaceInDocumentBody(body, query, target, caseSensitive) {
|
|
|
17622
17609
|
}
|
|
17623
17610
|
textX.delete(queryLen);
|
|
17624
17611
|
documentDataModel.apply(jsonX.editOp(textX.serialize()));
|
|
17612
|
+
expression.lastIndex = index + target.length;
|
|
17625
17613
|
}
|
|
17626
17614
|
const newBody = documentDataModel.getBody();
|
|
17627
17615
|
documentDataModel.dispose();
|
|
@@ -22182,6 +22170,23 @@ const IImageIoService = (0, _wendellhu_redi.createIdentifier)("core.image-io.ser
|
|
|
22182
22170
|
//#region src/services/image-io/url-image.service.ts
|
|
22183
22171
|
const IURLImageService = (0, _wendellhu_redi.createIdentifier)("core.url-image.service");
|
|
22184
22172
|
|
|
22173
|
+
//#endregion
|
|
22174
|
+
//#region src/sheets/calculation-settings.ts
|
|
22175
|
+
const MAX_ITERATION_COUNT = 32767;
|
|
22176
|
+
const DEFAULT_WORKBOOK_CALCULATION_SETTINGS = Object.freeze({
|
|
22177
|
+
iterativeCalculation: false,
|
|
22178
|
+
maxIterations: 100,
|
|
22179
|
+
maxChange: .001
|
|
22180
|
+
});
|
|
22181
|
+
function normalizeWorkbookCalculationSettings(value) {
|
|
22182
|
+
const defaults = DEFAULT_WORKBOOK_CALCULATION_SETTINGS;
|
|
22183
|
+
return {
|
|
22184
|
+
iterativeCalculation: typeof (value === null || value === void 0 ? void 0 : value.iterativeCalculation) === "boolean" ? value.iterativeCalculation : defaults.iterativeCalculation,
|
|
22185
|
+
maxIterations: Number.isInteger(value === null || value === void 0 ? void 0 : value.maxIterations) && value.maxIterations >= 1 && value.maxIterations <= 32767 ? value.maxIterations : defaults.maxIterations,
|
|
22186
|
+
maxChange: typeof (value === null || value === void 0 ? void 0 : value.maxChange) === "number" && Number.isFinite(value.maxChange) && value.maxChange > 0 ? value.maxChange : defaults.maxChange
|
|
22187
|
+
};
|
|
22188
|
+
}
|
|
22189
|
+
|
|
22185
22190
|
//#endregion
|
|
22186
22191
|
//#region src/sheets/empty-snapshot.ts
|
|
22187
22192
|
function getEmptySnapshot$2(unitID = "", locale = "zhCN", name = "") {
|
|
@@ -24791,6 +24796,7 @@ let Workbook = class Workbook extends UnitModel {
|
|
|
24791
24796
|
this._snapshot.dateSystem = "date1900";
|
|
24792
24797
|
}
|
|
24793
24798
|
}
|
|
24799
|
+
this._snapshot.calculationSettings = normalizeWorkbookCalculationSettings(workbookData.calculationSettings);
|
|
24794
24800
|
const { styles } = this._snapshot;
|
|
24795
24801
|
if (this._snapshot.id == null || this._snapshot.id.length === 0) this._snapshot.id = generateRandomId(6);
|
|
24796
24802
|
this._unitId = this._snapshot.id;
|
|
@@ -24828,6 +24834,12 @@ let Workbook = class Workbook extends UnitModel {
|
|
|
24828
24834
|
getSnapshot() {
|
|
24829
24835
|
return this._snapshot;
|
|
24830
24836
|
}
|
|
24837
|
+
getCalculationSettings() {
|
|
24838
|
+
return normalizeWorkbookCalculationSettings(this._snapshot.calculationSettings);
|
|
24839
|
+
}
|
|
24840
|
+
setCalculationSettings(settings) {
|
|
24841
|
+
this._snapshot.calculationSettings = { ...settings };
|
|
24842
|
+
}
|
|
24831
24843
|
setName(name) {
|
|
24832
24844
|
this._name$.next(name);
|
|
24833
24845
|
this._snapshot.name = name;
|
|
@@ -25836,17 +25848,22 @@ let LocalUndoRedoService = class LocalUndoRedoService extends Disposable {
|
|
|
25836
25848
|
let unitID = "";
|
|
25837
25849
|
const isFocusSheet = this._contextService.getContextValue(FOCUSING_SHEET);
|
|
25838
25850
|
const isFocusFormulaEditor = this._contextService.getContextValue(FOCUSING_FX_BAR_EDITOR);
|
|
25851
|
+
const isFocusShapeEditor = this._contextService.getContextValue(FOCUSING_SHAPE_TEXT_EDITOR);
|
|
25839
25852
|
const isFocusEditor = this._contextService.getContextValue(EDITOR_ACTIVATED);
|
|
25853
|
+
if (isFocusEditor && isFocusShapeEditor) {
|
|
25854
|
+
var _this$_univerInstance;
|
|
25855
|
+
return ((_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(_univerjs_protocol.UniverType.UNIVER_DOC)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId()) ?? "";
|
|
25856
|
+
}
|
|
25840
25857
|
if (isFocusSheet) {
|
|
25841
25858
|
if (isFocusFormulaEditor && isFocusEditor) unitID = DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY;
|
|
25842
25859
|
else if (isFocusEditor) unitID = DOCS_NORMAL_EDITOR_UNIT_ID_KEY;
|
|
25843
25860
|
else {
|
|
25844
|
-
var _this$
|
|
25845
|
-
unitID = ((_this$
|
|
25861
|
+
var _this$_univerInstance2;
|
|
25862
|
+
unitID = ((_this$_univerInstance2 = this._univerInstanceService.getFocusedUnit()) === null || _this$_univerInstance2 === void 0 ? void 0 : _this$_univerInstance2.getUnitId()) ?? "";
|
|
25846
25863
|
}
|
|
25847
25864
|
} else {
|
|
25848
|
-
var _this$
|
|
25849
|
-
unitID = ((_this$
|
|
25865
|
+
var _this$_univerInstance3;
|
|
25866
|
+
unitID = ((_this$_univerInstance3 = this._univerInstanceService.getFocusedUnit()) === null || _this$_univerInstance3 === void 0 ? void 0 : _this$_univerInstance3.getUnitId()) ?? "";
|
|
25850
25867
|
}
|
|
25851
25868
|
return unitID;
|
|
25852
25869
|
}
|
|
@@ -27526,6 +27543,8 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
27526
27543
|
_defineProperty(this, "_scaleY", 1);
|
|
27527
27544
|
_defineProperty(this, "_scrollX", 0);
|
|
27528
27545
|
_defineProperty(this, "_scrollY", 0);
|
|
27546
|
+
_defineProperty(this, "_gapConfigChanged$", new rxjs.Subject());
|
|
27547
|
+
_defineProperty(this, "gapConfigChanged$", this._gapConfigChanged$.asObservable());
|
|
27529
27548
|
this._worksheetData = this.worksheet.getConfig();
|
|
27530
27549
|
this._cellData = this.worksheet.getCellMatrix();
|
|
27531
27550
|
this._imageCacheMap = new ImageCacheMap(this._injector);
|
|
@@ -27617,6 +27636,7 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
27617
27636
|
this._gapConfig = this._fillDefaultGapThemeColors(config);
|
|
27618
27637
|
this.makeDirty(true);
|
|
27619
27638
|
this._updateLayout();
|
|
27639
|
+
this._gapConfigChanged$.next();
|
|
27620
27640
|
}
|
|
27621
27641
|
_fillDefaultGapThemeColors(config) {
|
|
27622
27642
|
if (config.defaultBackgroundColor && config.defaultStripeColor) return config;
|
|
@@ -28092,6 +28112,7 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
28092
28112
|
}
|
|
28093
28113
|
dispose() {
|
|
28094
28114
|
super.dispose();
|
|
28115
|
+
this._gapConfigChanged$.complete();
|
|
28095
28116
|
this._rowHeightAccumulation = [];
|
|
28096
28117
|
this._columnWidthAccumulation = [];
|
|
28097
28118
|
this._rowTotalHeight = 0;
|
|
@@ -28777,8 +28798,13 @@ exports.AlignTypeH = AlignTypeH;
|
|
|
28777
28798
|
exports.AlignTypeV = AlignTypeV;
|
|
28778
28799
|
exports.ArrangeTypeEnum = ArrangeTypeEnum;
|
|
28779
28800
|
exports.AsyncInterceptorManager = AsyncInterceptorManager;
|
|
28780
|
-
exports
|
|
28781
|
-
|
|
28801
|
+
Object.defineProperty(exports, "AsyncLock", {
|
|
28802
|
+
enumerable: true,
|
|
28803
|
+
get: function () {
|
|
28804
|
+
return async_lock.default;
|
|
28805
|
+
}
|
|
28806
|
+
});
|
|
28807
|
+
Object.defineProperty(exports, "AuthzIoLocalService", {
|
|
28782
28808
|
enumerable: true,
|
|
28783
28809
|
get: function () {
|
|
28784
28810
|
return AuthzIoLocalService;
|
|
@@ -28818,7 +28844,7 @@ exports.ColorType = ColorType;
|
|
|
28818
28844
|
exports.ColumnLayoutType = ColumnLayoutType;
|
|
28819
28845
|
exports.ColumnResponsiveType = ColumnResponsiveType;
|
|
28820
28846
|
exports.ColumnSeparatorType = ColumnSeparatorType;
|
|
28821
|
-
Object.defineProperty(exports,
|
|
28847
|
+
Object.defineProperty(exports, "CommandService", {
|
|
28822
28848
|
enumerable: true,
|
|
28823
28849
|
get: function () {
|
|
28824
28850
|
return CommandService;
|
|
@@ -28936,19 +28962,19 @@ exports.IUniverInstanceService = IUniverInstanceService;
|
|
|
28936
28962
|
exports.ImageCacheMap = ImageCacheMap;
|
|
28937
28963
|
exports.ImageSourceType = ImageSourceType;
|
|
28938
28964
|
exports.ImageUploadStatusType = ImageUploadStatusType;
|
|
28939
|
-
Object.defineProperty(exports,
|
|
28965
|
+
Object.defineProperty(exports, "Inject", {
|
|
28940
28966
|
enumerable: true,
|
|
28941
28967
|
get: function () {
|
|
28942
28968
|
return _wendellhu_redi.Inject;
|
|
28943
28969
|
}
|
|
28944
28970
|
});
|
|
28945
|
-
Object.defineProperty(exports,
|
|
28971
|
+
Object.defineProperty(exports, "InjectSelf", {
|
|
28946
28972
|
enumerable: true,
|
|
28947
28973
|
get: function () {
|
|
28948
28974
|
return _wendellhu_redi.InjectSelf;
|
|
28949
28975
|
}
|
|
28950
28976
|
});
|
|
28951
|
-
Object.defineProperty(exports,
|
|
28977
|
+
Object.defineProperty(exports, "Injector", {
|
|
28952
28978
|
enumerable: true,
|
|
28953
28979
|
get: function () {
|
|
28954
28980
|
return _wendellhu_redi.Injector;
|
|
@@ -28957,7 +28983,7 @@ Object.defineProperty(exports, 'Injector', {
|
|
|
28957
28983
|
exports.InterceptorEffectEnum = InterceptorEffectEnum;
|
|
28958
28984
|
exports.InterceptorManager = InterceptorManager;
|
|
28959
28985
|
exports.InterpolationPointType = InterpolationPointType;
|
|
28960
|
-
Object.defineProperty(exports,
|
|
28986
|
+
Object.defineProperty(exports, "JSON1", {
|
|
28961
28987
|
enumerable: true,
|
|
28962
28988
|
get: function () {
|
|
28963
28989
|
return ot_json1;
|
|
@@ -28967,7 +28993,7 @@ exports.JSONX = JSONX;
|
|
|
28967
28993
|
exports.LOCALE_META = LOCALE_META;
|
|
28968
28994
|
exports.LRUHelper = LRUHelper;
|
|
28969
28995
|
exports.LRUMap = LRUMap;
|
|
28970
|
-
Object.defineProperty(exports,
|
|
28996
|
+
Object.defineProperty(exports, "LifecycleService", {
|
|
28971
28997
|
enumerable: true,
|
|
28972
28998
|
get: function () {
|
|
28973
28999
|
return LifecycleService;
|
|
@@ -28976,7 +29002,7 @@ Object.defineProperty(exports, 'LifecycleService', {
|
|
|
28976
29002
|
exports.LifecycleStages = LifecycleStages;
|
|
28977
29003
|
exports.LifecycleUnreachableError = LifecycleUnreachableError;
|
|
28978
29004
|
exports.ListGlyphType = ListGlyphType;
|
|
28979
|
-
Object.defineProperty(exports,
|
|
29005
|
+
Object.defineProperty(exports, "LocalUndoRedoService", {
|
|
28980
29006
|
enumerable: true,
|
|
28981
29007
|
get: function () {
|
|
28982
29008
|
return LocalUndoRedoService;
|
|
@@ -28985,25 +29011,26 @@ Object.defineProperty(exports, 'LocalUndoRedoService', {
|
|
|
28985
29011
|
exports.LocaleService = LocaleService;
|
|
28986
29012
|
exports.LocaleType = LocaleType;
|
|
28987
29013
|
exports.LogLevel = LogLevel;
|
|
28988
|
-
Object.defineProperty(exports,
|
|
29014
|
+
Object.defineProperty(exports, "LookUp", {
|
|
28989
29015
|
enumerable: true,
|
|
28990
29016
|
get: function () {
|
|
28991
29017
|
return _wendellhu_redi.LookUp;
|
|
28992
29018
|
}
|
|
28993
29019
|
});
|
|
28994
29020
|
exports.MAX_COLUMN_COUNT = MAX_COLUMN_COUNT;
|
|
29021
|
+
exports.MAX_ITERATION_COUNT = MAX_ITERATION_COUNT;
|
|
28995
29022
|
exports.MAX_ROW_COUNT = MAX_ROW_COUNT;
|
|
28996
29023
|
exports.MODERN_DOCUMENT_DEFAULT_MARGIN = MODERN_DOCUMENT_DEFAULT_MARGIN;
|
|
28997
29024
|
exports.MODERN_DOCUMENT_WIDTH = MODERN_DOCUMENT_WIDTH;
|
|
28998
29025
|
exports.MOVE_BUFFER_VALUE = MOVE_BUFFER_VALUE;
|
|
28999
|
-
Object.defineProperty(exports,
|
|
29026
|
+
Object.defineProperty(exports, "Many", {
|
|
29000
29027
|
enumerable: true,
|
|
29001
29028
|
get: function () {
|
|
29002
29029
|
return _wendellhu_redi.Many;
|
|
29003
29030
|
}
|
|
29004
29031
|
});
|
|
29005
29032
|
exports.MemoryCursor = MemoryCursor;
|
|
29006
|
-
Object.defineProperty(exports,
|
|
29033
|
+
Object.defineProperty(exports, "MentionIOLocalService", {
|
|
29007
29034
|
enumerable: true,
|
|
29008
29035
|
get: function () {
|
|
29009
29036
|
return MentionIOLocalService;
|
|
@@ -29019,7 +29046,7 @@ exports.NumberUnitType = NumberUnitType;
|
|
|
29019
29046
|
exports.OBJECT_PERMISSION_CONFIG_KEY = OBJECT_PERMISSION_CONFIG_KEY;
|
|
29020
29047
|
exports.ObjectMatrix = ObjectMatrix;
|
|
29021
29048
|
exports.ObjectPermissionRuleModel = ObjectPermissionRuleModel;
|
|
29022
|
-
Object.defineProperty(exports,
|
|
29049
|
+
Object.defineProperty(exports, "ObjectPermissionService", {
|
|
29023
29050
|
enumerable: true,
|
|
29024
29051
|
get: function () {
|
|
29025
29052
|
return ObjectPermissionService;
|
|
@@ -29027,7 +29054,7 @@ Object.defineProperty(exports, 'ObjectPermissionService', {
|
|
|
29027
29054
|
});
|
|
29028
29055
|
exports.ObjectRelativeFromH = ObjectRelativeFromH;
|
|
29029
29056
|
exports.ObjectRelativeFromV = ObjectRelativeFromV;
|
|
29030
|
-
Object.defineProperty(exports,
|
|
29057
|
+
Object.defineProperty(exports, "Optional", {
|
|
29031
29058
|
enumerable: true,
|
|
29032
29059
|
get: function () {
|
|
29033
29060
|
return _wendellhu_redi.Optional;
|
|
@@ -29047,7 +29074,7 @@ exports.ParagraphStyleValue = ParagraphStyleValue;
|
|
|
29047
29074
|
exports.PermissionService = PermissionService;
|
|
29048
29075
|
exports.PermissionStatus = PermissionStatus;
|
|
29049
29076
|
exports.Plugin = Plugin;
|
|
29050
|
-
Object.defineProperty(exports,
|
|
29077
|
+
Object.defineProperty(exports, "PluginService", {
|
|
29051
29078
|
enumerable: true,
|
|
29052
29079
|
get: function () {
|
|
29053
29080
|
return PluginService;
|
|
@@ -29056,7 +29083,7 @@ Object.defineProperty(exports, 'PluginService', {
|
|
|
29056
29083
|
exports.PositionedObjectLayoutType = PositionedObjectLayoutType;
|
|
29057
29084
|
exports.PresetListType = PresetListType;
|
|
29058
29085
|
exports.ProtectionType = ProtectionType;
|
|
29059
|
-
Object.defineProperty(exports,
|
|
29086
|
+
Object.defineProperty(exports, "Quantity", {
|
|
29060
29087
|
enumerable: true,
|
|
29061
29088
|
get: function () {
|
|
29062
29089
|
return _wendellhu_redi.Quantity;
|
|
@@ -29066,7 +29093,12 @@ exports.QuickListType = QuickListType;
|
|
|
29066
29093
|
exports.QuickListTypeMap = QuickListTypeMap;
|
|
29067
29094
|
exports.RANGE_DIRECTION = RANGE_DIRECTION;
|
|
29068
29095
|
exports.RANGE_TYPE = RANGE_TYPE;
|
|
29069
|
-
exports
|
|
29096
|
+
Object.defineProperty(exports, "RBush", {
|
|
29097
|
+
enumerable: true,
|
|
29098
|
+
get: function () {
|
|
29099
|
+
return rbush.default;
|
|
29100
|
+
}
|
|
29101
|
+
});
|
|
29070
29102
|
exports.RCDisposable = RCDisposable;
|
|
29071
29103
|
exports.RESTORE_INSERTED_PARAGRAPH_IDS = RESTORE_INSERTED_PARAGRAPH_IDS;
|
|
29072
29104
|
exports.RGBA_PAREN = RGBA_PAREN;
|
|
@@ -29076,7 +29108,7 @@ exports.RTree = RTree;
|
|
|
29076
29108
|
exports.Range = Range;
|
|
29077
29109
|
exports.RecordValueType = RecordValueType;
|
|
29078
29110
|
exports.Rectangle = Rectangle;
|
|
29079
|
-
Object.defineProperty(exports,
|
|
29111
|
+
Object.defineProperty(exports, "RediError", {
|
|
29080
29112
|
enumerable: true,
|
|
29081
29113
|
get: function () {
|
|
29082
29114
|
return _wendellhu_redi.RediError;
|
|
@@ -29085,7 +29117,7 @@ Object.defineProperty(exports, 'RediError', {
|
|
|
29085
29117
|
exports.RedoCommand = RedoCommand;
|
|
29086
29118
|
exports.RedoCommandId = RedoCommandId;
|
|
29087
29119
|
exports.RefAlias = RefAlias;
|
|
29088
|
-
Object.defineProperty(exports,
|
|
29120
|
+
Object.defineProperty(exports, "RegionService", {
|
|
29089
29121
|
enumerable: true,
|
|
29090
29122
|
get: function () {
|
|
29091
29123
|
return RegionService;
|
|
@@ -29094,7 +29126,7 @@ Object.defineProperty(exports, 'RegionService', {
|
|
|
29094
29126
|
exports.Registry = Registry;
|
|
29095
29127
|
exports.RegistryAsMap = RegistryAsMap;
|
|
29096
29128
|
exports.RelativeDate = RelativeDate;
|
|
29097
|
-
Object.defineProperty(exports,
|
|
29129
|
+
Object.defineProperty(exports, "ResourceManagerService", {
|
|
29098
29130
|
enumerable: true,
|
|
29099
29131
|
get: function () {
|
|
29100
29132
|
return ResourceManagerService;
|
|
@@ -29107,15 +29139,16 @@ exports.RichTextValue = RichTextValue;
|
|
|
29107
29139
|
exports.RxDisposable = RxDisposable;
|
|
29108
29140
|
exports.SECTION_ID_PREFIX = SECTION_ID_PREFIX;
|
|
29109
29141
|
exports.SHEET_EDITOR_UNITS = SHEET_EDITOR_UNITS;
|
|
29142
|
+
exports.SHEET_TEXT_LINE_GAP = SHEET_TEXT_LINE_GAP;
|
|
29110
29143
|
exports.STYLE_KEYS = STYLE_KEYS;
|
|
29111
29144
|
exports.SectionType = SectionType;
|
|
29112
|
-
Object.defineProperty(exports,
|
|
29145
|
+
Object.defineProperty(exports, "Self", {
|
|
29113
29146
|
enumerable: true,
|
|
29114
29147
|
get: function () {
|
|
29115
29148
|
return _wendellhu_redi.Self;
|
|
29116
29149
|
}
|
|
29117
29150
|
});
|
|
29118
|
-
Object.defineProperty(exports,
|
|
29151
|
+
Object.defineProperty(exports, "SheetSkeleton", {
|
|
29119
29152
|
enumerable: true,
|
|
29120
29153
|
get: function () {
|
|
29121
29154
|
return SheetSkeleton;
|
|
@@ -29123,13 +29156,13 @@ Object.defineProperty(exports, 'SheetSkeleton', {
|
|
|
29123
29156
|
});
|
|
29124
29157
|
exports.SheetTypes = SheetTypes;
|
|
29125
29158
|
exports.SheetViewModel = SheetViewModel;
|
|
29126
|
-
Object.defineProperty(exports,
|
|
29159
|
+
Object.defineProperty(exports, "Skeleton", {
|
|
29127
29160
|
enumerable: true,
|
|
29128
29161
|
get: function () {
|
|
29129
29162
|
return Skeleton;
|
|
29130
29163
|
}
|
|
29131
29164
|
});
|
|
29132
|
-
Object.defineProperty(exports,
|
|
29165
|
+
Object.defineProperty(exports, "SkipSelf", {
|
|
29133
29166
|
enumerable: true,
|
|
29134
29167
|
get: function () {
|
|
29135
29168
|
return _wendellhu_redi.SkipSelf;
|
|
@@ -29166,24 +29199,29 @@ exports.UndoCommand = UndoCommand;
|
|
|
29166
29199
|
exports.UndoCommandId = UndoCommandId;
|
|
29167
29200
|
exports.UnitModel = UnitModel;
|
|
29168
29201
|
exports.Univer = Univer;
|
|
29169
|
-
Object.defineProperty(exports,
|
|
29202
|
+
Object.defineProperty(exports, "UniverInstanceService", {
|
|
29170
29203
|
enumerable: true,
|
|
29171
29204
|
get: function () {
|
|
29172
29205
|
return UniverInstanceService;
|
|
29173
29206
|
}
|
|
29174
29207
|
});
|
|
29175
|
-
exports
|
|
29208
|
+
Object.defineProperty(exports, "UniverInstanceType", {
|
|
29209
|
+
enumerable: true,
|
|
29210
|
+
get: function () {
|
|
29211
|
+
return _univerjs_protocol.UniverType;
|
|
29212
|
+
}
|
|
29213
|
+
});
|
|
29176
29214
|
exports.UpdateDocsAttributeType = UpdateDocsAttributeType;
|
|
29177
29215
|
exports.UserManagerService = UserManagerService;
|
|
29178
29216
|
exports.VerticalAlign = VerticalAlign;
|
|
29179
29217
|
exports.VerticalAlignmentType = VerticalAlignmentType;
|
|
29180
|
-
Object.defineProperty(exports,
|
|
29218
|
+
Object.defineProperty(exports, "WithNew", {
|
|
29181
29219
|
enumerable: true,
|
|
29182
29220
|
get: function () {
|
|
29183
29221
|
return _wendellhu_redi.WithNew;
|
|
29184
29222
|
}
|
|
29185
29223
|
});
|
|
29186
|
-
Object.defineProperty(exports,
|
|
29224
|
+
Object.defineProperty(exports, "Workbook", {
|
|
29187
29225
|
enumerable: true,
|
|
29188
29226
|
get: function () {
|
|
29189
29227
|
return Workbook;
|
|
@@ -29236,7 +29274,7 @@ exports.createBaseRecordIdField = createBaseRecordIdField;
|
|
|
29236
29274
|
exports.createDefaultBaseTableSnapshot = createDefaultBaseTableSnapshot;
|
|
29237
29275
|
exports.createDefaultUser = createDefaultUser;
|
|
29238
29276
|
exports.createDocumentModelWithStyle = createDocumentModelWithStyle;
|
|
29239
|
-
Object.defineProperty(exports,
|
|
29277
|
+
Object.defineProperty(exports, "createIdentifier", {
|
|
29240
29278
|
enumerable: true,
|
|
29241
29279
|
get: function () {
|
|
29242
29280
|
return _wendellhu_redi.createIdentifier;
|
|
@@ -29252,7 +29290,7 @@ exports.createSheetGapTestConfig = createSheetGapTestConfig;
|
|
|
29252
29290
|
exports.currencySymbols = currencySymbols;
|
|
29253
29291
|
exports.customNameCharacterCheck = customNameCharacterCheck;
|
|
29254
29292
|
exports.dateKit = dateKit;
|
|
29255
|
-
Object.defineProperty(exports,
|
|
29293
|
+
Object.defineProperty(exports, "debounce", {
|
|
29256
29294
|
enumerable: true,
|
|
29257
29295
|
get: function () {
|
|
29258
29296
|
return lodash_es.debounce;
|
|
@@ -29270,7 +29308,7 @@ exports.excelSerialToDate = excelSerialToDate;
|
|
|
29270
29308
|
exports.excelSerialToDateTime = excelSerialToDateTime;
|
|
29271
29309
|
exports.excelSerialToDateTimeParts = excelSerialToDateTimeParts;
|
|
29272
29310
|
exports.extractPureTextFromCell = extractPureTextFromCell;
|
|
29273
|
-
Object.defineProperty(exports,
|
|
29311
|
+
Object.defineProperty(exports, "forwardRef", {
|
|
29274
29312
|
enumerable: true,
|
|
29275
29313
|
get: function () {
|
|
29276
29314
|
return _wendellhu_redi.forwardRef;
|
|
@@ -29280,7 +29318,7 @@ exports.fromCallback = fromCallback;
|
|
|
29280
29318
|
exports.fromEventSubject = fromEventSubject;
|
|
29281
29319
|
exports.generateIntervalsByPoints = generateIntervalsByPoints;
|
|
29282
29320
|
exports.generateRandomId = generateRandomId;
|
|
29283
|
-
Object.defineProperty(exports,
|
|
29321
|
+
Object.defineProperty(exports, "get", {
|
|
29284
29322
|
enumerable: true,
|
|
29285
29323
|
get: function () {
|
|
29286
29324
|
return lodash_es.get;
|
|
@@ -29347,13 +29385,13 @@ exports.insertTextToContent = insertTextToContent;
|
|
|
29347
29385
|
exports.intersectsOperationalIntervals = intersectsOperationalIntervals;
|
|
29348
29386
|
exports.invertColorByHSL = invertColorByHSL;
|
|
29349
29387
|
exports.invertColorByMatrix = invertColorByMatrix;
|
|
29350
|
-
Object.defineProperty(exports,
|
|
29388
|
+
Object.defineProperty(exports, "isAsyncDependencyItem", {
|
|
29351
29389
|
enumerable: true,
|
|
29352
29390
|
get: function () {
|
|
29353
29391
|
return _wendellhu_redi.isAsyncDependencyItem;
|
|
29354
29392
|
}
|
|
29355
29393
|
});
|
|
29356
|
-
Object.defineProperty(exports,
|
|
29394
|
+
Object.defineProperty(exports, "isAsyncHook", {
|
|
29357
29395
|
enumerable: true,
|
|
29358
29396
|
get: function () {
|
|
29359
29397
|
return _wendellhu_redi.isAsyncHook;
|
|
@@ -29364,28 +29402,28 @@ exports.isBlackColor = isBlackColor;
|
|
|
29364
29402
|
exports.isBooleanString = isBooleanString;
|
|
29365
29403
|
exports.isCellCoverable = isCellCoverable;
|
|
29366
29404
|
exports.isCellV = isCellV;
|
|
29367
|
-
Object.defineProperty(exports,
|
|
29405
|
+
Object.defineProperty(exports, "isClassDependencyItem", {
|
|
29368
29406
|
enumerable: true,
|
|
29369
29407
|
get: function () {
|
|
29370
29408
|
return _wendellhu_redi.isClassDependencyItem;
|
|
29371
29409
|
}
|
|
29372
29410
|
});
|
|
29373
29411
|
exports.isCommentEditorID = isCommentEditorID;
|
|
29374
|
-
Object.defineProperty(exports,
|
|
29412
|
+
Object.defineProperty(exports, "isCtor", {
|
|
29375
29413
|
enumerable: true,
|
|
29376
29414
|
get: function () {
|
|
29377
29415
|
return _wendellhu_redi.isCtor;
|
|
29378
29416
|
}
|
|
29379
29417
|
});
|
|
29380
29418
|
exports.isDefaultFormat = isDefaultFormat;
|
|
29381
|
-
Object.defineProperty(exports,
|
|
29419
|
+
Object.defineProperty(exports, "isDisposable", {
|
|
29382
29420
|
enumerable: true,
|
|
29383
29421
|
get: function () {
|
|
29384
29422
|
return _wendellhu_redi.isDisposable;
|
|
29385
29423
|
}
|
|
29386
29424
|
});
|
|
29387
29425
|
exports.isEmptyCell = isEmptyCell;
|
|
29388
|
-
Object.defineProperty(exports,
|
|
29426
|
+
Object.defineProperty(exports, "isFactoryDependencyItem", {
|
|
29389
29427
|
enumerable: true,
|
|
29390
29428
|
get: function () {
|
|
29391
29429
|
return _wendellhu_redi.isFactoryDependencyItem;
|
|
@@ -29409,7 +29447,7 @@ exports.isTextFormat = isTextFormat;
|
|
|
29409
29447
|
exports.isUnitRangesEqual = isUnitRangesEqual;
|
|
29410
29448
|
exports.isValidBaseRecordId = isValidBaseRecordId;
|
|
29411
29449
|
exports.isValidRange = isValidRange;
|
|
29412
|
-
Object.defineProperty(exports,
|
|
29450
|
+
Object.defineProperty(exports, "isValueDependencyItem", {
|
|
29413
29451
|
enumerable: true,
|
|
29414
29452
|
get: function () {
|
|
29415
29453
|
return _wendellhu_redi.isValueDependencyItem;
|
|
@@ -29419,7 +29457,7 @@ exports.isWhiteColor = isWhiteColor;
|
|
|
29419
29457
|
exports.makeArray = makeArray;
|
|
29420
29458
|
exports.makeCellRangeToRangeData = makeCellRangeToRangeData;
|
|
29421
29459
|
exports.mapObjectMatrix = mapObjectMatrix;
|
|
29422
|
-
Object.defineProperty(exports,
|
|
29460
|
+
Object.defineProperty(exports, "merge", {
|
|
29423
29461
|
enumerable: true,
|
|
29424
29462
|
get: function () {
|
|
29425
29463
|
return lodash_es.merge;
|
|
@@ -29429,7 +29467,7 @@ exports.mergeIntervals = mergeIntervals;
|
|
|
29429
29467
|
exports.mergeLocales = mergeLocales;
|
|
29430
29468
|
exports.mergeOverrideWithDependencies = mergeOverrideWithDependencies;
|
|
29431
29469
|
exports.mergeSets = mergeSets;
|
|
29432
|
-
Object.defineProperty(exports,
|
|
29470
|
+
Object.defineProperty(exports, "mergeWith", {
|
|
29433
29471
|
enumerable: true,
|
|
29434
29472
|
get: function () {
|
|
29435
29473
|
return lodash_es.mergeWith;
|
|
@@ -29449,9 +29487,10 @@ exports.normalizeDrawingOrderIndex = normalizeDrawingOrderIndex;
|
|
|
29449
29487
|
exports.normalizeInsertedSectionIdsForDocument = normalizeInsertedSectionIdsForDocument;
|
|
29450
29488
|
exports.normalizeTextRuns = normalizeTextRuns;
|
|
29451
29489
|
exports.normalizeUrl = normalizeUrl;
|
|
29490
|
+
exports.normalizeWorkbookCalculationSettings = normalizeWorkbookCalculationSettings;
|
|
29452
29491
|
exports.numberToABC = numberToABC;
|
|
29453
29492
|
exports.numberToListABC = numberToListABC;
|
|
29454
|
-
Object.defineProperty(exports,
|
|
29493
|
+
Object.defineProperty(exports, "numfmt", {
|
|
29455
29494
|
enumerable: true,
|
|
29456
29495
|
get: function () {
|
|
29457
29496
|
return api_exports;
|
|
@@ -29475,19 +29514,19 @@ exports.sequence = sequence;
|
|
|
29475
29514
|
exports.sequenceAsync = sequenceAsync;
|
|
29476
29515
|
exports.sequenceExecute = sequenceExecute;
|
|
29477
29516
|
exports.sequenceExecuteAsync = sequenceExecuteAsync;
|
|
29478
|
-
Object.defineProperty(exports,
|
|
29517
|
+
Object.defineProperty(exports, "set", {
|
|
29479
29518
|
enumerable: true,
|
|
29480
29519
|
get: function () {
|
|
29481
29520
|
return lodash_es.set;
|
|
29482
29521
|
}
|
|
29483
29522
|
});
|
|
29484
|
-
Object.defineProperty(exports,
|
|
29523
|
+
Object.defineProperty(exports, "setDependencies", {
|
|
29485
29524
|
enumerable: true,
|
|
29486
29525
|
get: function () {
|
|
29487
29526
|
return _wendellhu_redi.setDependencies;
|
|
29488
29527
|
}
|
|
29489
29528
|
});
|
|
29490
|
-
Object.defineProperty(exports,
|
|
29529
|
+
Object.defineProperty(exports, "setWith", {
|
|
29491
29530
|
enumerable: true,
|
|
29492
29531
|
get: function () {
|
|
29493
29532
|
return lodash_es.setWith;
|