@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/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.2.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);
|
|
@@ -5804,7 +5804,7 @@ function datePartsToExcel1900Serial(year, month, day) {
|
|
|
5804
5804
|
return unixDays + (unixDays <= -25509 ? 25568 : 25569);
|
|
5805
5805
|
}
|
|
5806
5806
|
function excelSerialToDateTimeParts(serial, options) {
|
|
5807
|
-
if (!Number.isFinite(serial) || serial < 0) return null;
|
|
5807
|
+
if (!Number.isFinite(serial) || serial < 0 || serial >= getDateSystemMaxSerial(options.dateSystem) + 1) return null;
|
|
5808
5808
|
const wholeDays = Math.floor(serial);
|
|
5809
5809
|
const excel1900Serial = options.dateSystem === "date1904" ? wholeDays + EXCEL_1904_OFFSET : wholeDays;
|
|
5810
5810
|
const [year, month, day] = toYMD(excel1900Serial, 0, true);
|
|
@@ -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
|
}
|
|
@@ -14978,6 +14963,13 @@ function updateParagraphs(body, updateBody, textLength, currentIndex, coverType)
|
|
|
14978
14963
|
const { startIndex: removeStartIndex, paragraphId: removeParagraphId, paragraphStyle: removeParagraphStyle, bullet: removeBullet } = removeParagraph;
|
|
14979
14964
|
let newParagraphStyle;
|
|
14980
14965
|
let newBullet;
|
|
14966
|
+
const paragraphAttributes = coverType === 0 ? {
|
|
14967
|
+
...removeParagraph,
|
|
14968
|
+
...updateParagraph
|
|
14969
|
+
} : {
|
|
14970
|
+
...updateParagraph,
|
|
14971
|
+
...removeParagraph
|
|
14972
|
+
};
|
|
14981
14973
|
if (coverType === 0) {
|
|
14982
14974
|
newParagraphStyle = {
|
|
14983
14975
|
...removeParagraphStyle,
|
|
@@ -15007,10 +14999,11 @@ function updateParagraphs(body, updateBody, textLength, currentIndex, coverType)
|
|
|
15007
14999
|
}
|
|
15008
15000
|
if (updateStartIndex === removeStartIndex) {
|
|
15009
15001
|
splitUpdateParagraphs.push({
|
|
15002
|
+
...paragraphAttributes,
|
|
15010
15003
|
startIndex: updateStartIndex,
|
|
15011
15004
|
paragraphId: updateParagraphId ?? removeParagraphId,
|
|
15012
15005
|
paragraphStyle: newParagraphStyle,
|
|
15013
|
-
bullet: newBullet
|
|
15006
|
+
bullet: removeBullet == null && updateBullet == null ? void 0 : newBullet
|
|
15014
15007
|
});
|
|
15015
15008
|
break;
|
|
15016
15009
|
}
|
|
@@ -16082,7 +16075,7 @@ var ActionIterator = class {
|
|
|
16082
16075
|
return this.peekLength() < Number.POSITIVE_INFINITY;
|
|
16083
16076
|
}
|
|
16084
16077
|
next(length) {
|
|
16085
|
-
if (
|
|
16078
|
+
if (length === void 0) length = Number.POSITIVE_INFINITY;
|
|
16086
16079
|
const nextAction = this._actions[this._index];
|
|
16087
16080
|
if (nextAction) {
|
|
16088
16081
|
const offset = this._offset;
|
|
@@ -16622,6 +16615,21 @@ function transformParagraph(originParagraph, targetParagraph, originCoverType, t
|
|
|
16622
16615
|
else if (originParagraph.bullet === void 0) paragraph.bullet = Tools.deepClone(targetParagraph.bullet);
|
|
16623
16616
|
else if (originCoverType === 1 || targetCoverType === 1) paragraph.bullet = transformType === 0 && targetParagraph.bullet ? Tools.deepClone(targetParagraph.bullet) : Tools.deepClone(originParagraph.bullet);
|
|
16624
16617
|
else if (transformType === 0 && targetParagraph.bullet !== void 0) paragraph.bullet = Tools.deepClone(targetParagraph.bullet);
|
|
16618
|
+
for (const key of [
|
|
16619
|
+
"headingCollapsed",
|
|
16620
|
+
"styleId",
|
|
16621
|
+
"sourceBullet",
|
|
16622
|
+
"directBullet"
|
|
16623
|
+
]) {
|
|
16624
|
+
const origin = originParagraph[key];
|
|
16625
|
+
const target = targetParagraph[key];
|
|
16626
|
+
let value;
|
|
16627
|
+
if (originCoverType === 1 && targetCoverType === 1) value = transformType === 1 ? origin : target;
|
|
16628
|
+
else if (origin === void 0) value = target;
|
|
16629
|
+
else if (originCoverType === 1 || targetCoverType === 1) value = transformType === 0 && target !== void 0 ? target : origin;
|
|
16630
|
+
else if (transformType === 0) value = target;
|
|
16631
|
+
if (value !== void 0) Object.assign(paragraph, { [key]: Tools.deepClone(value) });
|
|
16632
|
+
}
|
|
16625
16633
|
if (paragraph.bullet === void 0) delete paragraph.bullet;
|
|
16626
16634
|
return paragraph;
|
|
16627
16635
|
}
|
|
@@ -16959,11 +16967,7 @@ var TextX = class TextX {
|
|
|
16959
16967
|
}
|
|
16960
16968
|
if (action.t === "r" && action.body != null) {
|
|
16961
16969
|
const body = getBodySlice(doc, index, index + action.len, true);
|
|
16962
|
-
for (const field of [
|
|
16963
|
-
"tables",
|
|
16964
|
-
"columnGroups",
|
|
16965
|
-
"blockRanges"
|
|
16966
|
-
]) if (action.body[field] == null) delete body[field];
|
|
16970
|
+
for (const field of Object.keys(body)) if (field !== "dataStream" && field !== "paragraphs" && action.body[field] == null) Reflect.deleteProperty(body, field);
|
|
16967
16971
|
if (action.body.paragraphs == null) delete body.paragraphs;
|
|
16968
16972
|
else {
|
|
16969
16973
|
var _body$paragraphs;
|
|
@@ -17599,8 +17603,10 @@ function replaceInDocumentBody(body, query, target, caseSensitive) {
|
|
|
17599
17603
|
documentStyle: {}
|
|
17600
17604
|
});
|
|
17601
17605
|
const queryLen = query.length;
|
|
17602
|
-
|
|
17603
|
-
|
|
17606
|
+
const expression = createLiteralRegExp(query, caseSensitive ? "g" : "gi");
|
|
17607
|
+
let match;
|
|
17608
|
+
while ((match = expression.exec(documentDataModel.getBody().dataStream)) !== null) {
|
|
17609
|
+
const index = match.index;
|
|
17604
17610
|
const textX = new TextX();
|
|
17605
17611
|
const jsonX = JSONX.getInstance();
|
|
17606
17612
|
if (index > 0) textX.retain(index);
|
|
@@ -17622,6 +17628,7 @@ function replaceInDocumentBody(body, query, target, caseSensitive) {
|
|
|
17622
17628
|
}
|
|
17623
17629
|
textX.delete(queryLen);
|
|
17624
17630
|
documentDataModel.apply(jsonX.editOp(textX.serialize()));
|
|
17631
|
+
expression.lastIndex = index + target.length;
|
|
17625
17632
|
}
|
|
17626
17633
|
const newBody = documentDataModel.getBody();
|
|
17627
17634
|
documentDataModel.dispose();
|
|
@@ -22182,6 +22189,23 @@ const IImageIoService = (0, _wendellhu_redi.createIdentifier)("core.image-io.ser
|
|
|
22182
22189
|
//#region src/services/image-io/url-image.service.ts
|
|
22183
22190
|
const IURLImageService = (0, _wendellhu_redi.createIdentifier)("core.url-image.service");
|
|
22184
22191
|
|
|
22192
|
+
//#endregion
|
|
22193
|
+
//#region src/sheets/calculation-settings.ts
|
|
22194
|
+
const MAX_ITERATION_COUNT = 32767;
|
|
22195
|
+
const DEFAULT_WORKBOOK_CALCULATION_SETTINGS = Object.freeze({
|
|
22196
|
+
iterativeCalculation: false,
|
|
22197
|
+
maxIterations: 100,
|
|
22198
|
+
maxChange: .001
|
|
22199
|
+
});
|
|
22200
|
+
function normalizeWorkbookCalculationSettings(value) {
|
|
22201
|
+
const defaults = DEFAULT_WORKBOOK_CALCULATION_SETTINGS;
|
|
22202
|
+
return {
|
|
22203
|
+
iterativeCalculation: typeof (value === null || value === void 0 ? void 0 : value.iterativeCalculation) === "boolean" ? value.iterativeCalculation : defaults.iterativeCalculation,
|
|
22204
|
+
maxIterations: Number.isInteger(value === null || value === void 0 ? void 0 : value.maxIterations) && value.maxIterations >= 1 && value.maxIterations <= 32767 ? value.maxIterations : defaults.maxIterations,
|
|
22205
|
+
maxChange: typeof (value === null || value === void 0 ? void 0 : value.maxChange) === "number" && Number.isFinite(value.maxChange) && value.maxChange > 0 ? value.maxChange : defaults.maxChange
|
|
22206
|
+
};
|
|
22207
|
+
}
|
|
22208
|
+
|
|
22185
22209
|
//#endregion
|
|
22186
22210
|
//#region src/sheets/empty-snapshot.ts
|
|
22187
22211
|
function getEmptySnapshot$2(unitID = "", locale = "zhCN", name = "") {
|
|
@@ -24791,6 +24815,7 @@ let Workbook = class Workbook extends UnitModel {
|
|
|
24791
24815
|
this._snapshot.dateSystem = "date1900";
|
|
24792
24816
|
}
|
|
24793
24817
|
}
|
|
24818
|
+
this._snapshot.calculationSettings = normalizeWorkbookCalculationSettings(workbookData.calculationSettings);
|
|
24794
24819
|
const { styles } = this._snapshot;
|
|
24795
24820
|
if (this._snapshot.id == null || this._snapshot.id.length === 0) this._snapshot.id = generateRandomId(6);
|
|
24796
24821
|
this._unitId = this._snapshot.id;
|
|
@@ -24828,6 +24853,12 @@ let Workbook = class Workbook extends UnitModel {
|
|
|
24828
24853
|
getSnapshot() {
|
|
24829
24854
|
return this._snapshot;
|
|
24830
24855
|
}
|
|
24856
|
+
getCalculationSettings() {
|
|
24857
|
+
return normalizeWorkbookCalculationSettings(this._snapshot.calculationSettings);
|
|
24858
|
+
}
|
|
24859
|
+
setCalculationSettings(settings) {
|
|
24860
|
+
this._snapshot.calculationSettings = { ...settings };
|
|
24861
|
+
}
|
|
24831
24862
|
setName(name) {
|
|
24832
24863
|
this._name$.next(name);
|
|
24833
24864
|
this._snapshot.name = name;
|
|
@@ -25255,8 +25286,7 @@ let UniverInstanceService = class UniverInstanceService extends Disposable {
|
|
|
25255
25286
|
}
|
|
25256
25287
|
}
|
|
25257
25288
|
_tryResetFocusOnRemoval(unitId) {
|
|
25258
|
-
|
|
25259
|
-
if (((_this$focused3 = this.focused) === null || _this$focused3 === void 0 ? void 0 : _this$focused3.getUnitId()) === unitId) this._focused$.next(null);
|
|
25289
|
+
if (this._focused$.getValue() === unitId) this.focusUnit(null);
|
|
25260
25290
|
}
|
|
25261
25291
|
_getUnitById(unitId) {
|
|
25262
25292
|
for (const [type, units] of this._unitsByType) {
|
|
@@ -27189,6 +27219,69 @@ var RTree = class {
|
|
|
27189
27219
|
}
|
|
27190
27220
|
};
|
|
27191
27221
|
|
|
27222
|
+
//#endregion
|
|
27223
|
+
//#region src/types/enum/record-filter.ts
|
|
27224
|
+
/**
|
|
27225
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27226
|
+
*
|
|
27227
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27228
|
+
* you may not use this file except in compliance with the License.
|
|
27229
|
+
* You may obtain a copy of the License at
|
|
27230
|
+
*
|
|
27231
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27232
|
+
*
|
|
27233
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27234
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27235
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27236
|
+
* See the License for the specific language governing permissions and
|
|
27237
|
+
* limitations under the License.
|
|
27238
|
+
*/
|
|
27239
|
+
/** Typed record identities shared by compact Table and external report filters. */
|
|
27240
|
+
let RecordValueType = /* @__PURE__ */ function(RecordValueType) {
|
|
27241
|
+
RecordValueType["Blank"] = "blank";
|
|
27242
|
+
RecordValueType["String"] = "string";
|
|
27243
|
+
RecordValueType["Number"] = "number";
|
|
27244
|
+
RecordValueType["Date"] = "date";
|
|
27245
|
+
RecordValueType["Boolean"] = "boolean";
|
|
27246
|
+
RecordValueType["Error"] = "error";
|
|
27247
|
+
return RecordValueType;
|
|
27248
|
+
}({});
|
|
27249
|
+
/** Values are wire identifiers; an absent native Table filter represents All. */
|
|
27250
|
+
let FilterSelectionMode = /* @__PURE__ */ function(FilterSelectionMode) {
|
|
27251
|
+
FilterSelectionMode["All"] = "all";
|
|
27252
|
+
FilterSelectionMode["Include"] = "include";
|
|
27253
|
+
FilterSelectionMode["Exclude"] = "exclude";
|
|
27254
|
+
return FilterSelectionMode;
|
|
27255
|
+
}({});
|
|
27256
|
+
|
|
27257
|
+
//#endregion
|
|
27258
|
+
//#region src/shared/record-value.ts
|
|
27259
|
+
function getRecordValueKey(_value) {
|
|
27260
|
+
const value = _value;
|
|
27261
|
+
if (!isRecord(value) || typeof value.type !== "string") throw new TypeError("Invalid record value.");
|
|
27262
|
+
switch (value.type) {
|
|
27263
|
+
case "blank":
|
|
27264
|
+
if ("value" in value) throw new TypeError("Blank record values cannot have a value.");
|
|
27265
|
+
return "[\"blank\"]";
|
|
27266
|
+
case "string":
|
|
27267
|
+
case "error":
|
|
27268
|
+
if (typeof value.value !== "string") throw new TypeError("Invalid record value.");
|
|
27269
|
+
return JSON.stringify([value.type, value.value]);
|
|
27270
|
+
case "boolean":
|
|
27271
|
+
if (typeof value.value !== "boolean") throw new TypeError("Invalid record value.");
|
|
27272
|
+
return JSON.stringify([value.type, value.value]);
|
|
27273
|
+
case "number":
|
|
27274
|
+
case "date":
|
|
27275
|
+
if (typeof value.value !== "number") throw new TypeError("Invalid record value.");
|
|
27276
|
+
if (!Number.isFinite(value.value)) throw new RangeError("Record numeric values must be finite.");
|
|
27277
|
+
return JSON.stringify([value.type, value.value === 0 ? 0 : value.value]);
|
|
27278
|
+
default: throw new TypeError("Unknown record value type.");
|
|
27279
|
+
}
|
|
27280
|
+
}
|
|
27281
|
+
function isRecord(value) {
|
|
27282
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
27283
|
+
}
|
|
27284
|
+
|
|
27192
27285
|
//#endregion
|
|
27193
27286
|
//#region src/shared/timer.ts
|
|
27194
27287
|
/**
|
|
@@ -27235,6 +27328,32 @@ function delayAnimationFrame(frames = 1) {
|
|
|
27235
27328
|
});
|
|
27236
27329
|
}
|
|
27237
27330
|
|
|
27331
|
+
//#endregion
|
|
27332
|
+
//#region src/shared/units.ts
|
|
27333
|
+
/**
|
|
27334
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27335
|
+
*
|
|
27336
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27337
|
+
* you may not use this file except in compliance with the License.
|
|
27338
|
+
* You may obtain a copy of the License at
|
|
27339
|
+
*
|
|
27340
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27341
|
+
*
|
|
27342
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27343
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27344
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27345
|
+
* See the License for the specific language governing permissions and
|
|
27346
|
+
* limitations under the License.
|
|
27347
|
+
*/
|
|
27348
|
+
/** English Metric Units per CSS pixel at 96 DPI. */
|
|
27349
|
+
const EMU_PER_CSS_PX = 9525;
|
|
27350
|
+
function cssPxToEmu(value) {
|
|
27351
|
+
return Math.round(value * EMU_PER_CSS_PX);
|
|
27352
|
+
}
|
|
27353
|
+
function emuToCssPx(value) {
|
|
27354
|
+
return value / EMU_PER_CSS_PX;
|
|
27355
|
+
}
|
|
27356
|
+
|
|
27238
27357
|
//#endregion
|
|
27239
27358
|
//#region src/sheets/clone.ts
|
|
27240
27359
|
/**
|
|
@@ -27461,6 +27580,21 @@ Skeleton = __decorate([__decorateParam(0, (0, _wendellhu_redi.Inject)(LocaleServ
|
|
|
27461
27580
|
//#endregion
|
|
27462
27581
|
//#region src/sheets/sheet-skeleton.ts
|
|
27463
27582
|
/**
|
|
27583
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27584
|
+
*
|
|
27585
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27586
|
+
* you may not use this file except in compliance with the License.
|
|
27587
|
+
* You may obtain a copy of the License at
|
|
27588
|
+
*
|
|
27589
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27590
|
+
*
|
|
27591
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27592
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27593
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27594
|
+
* See the License for the specific language governing permissions and
|
|
27595
|
+
* limitations under the License.
|
|
27596
|
+
*/
|
|
27597
|
+
/**
|
|
27464
27598
|
* Reusable gap fixture for visual and integration testing.
|
|
27465
27599
|
*/
|
|
27466
27600
|
function createSheetGapTestConfig(overrides = {}) {
|
|
@@ -27531,6 +27665,8 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
27531
27665
|
_defineProperty(this, "_scaleY", 1);
|
|
27532
27666
|
_defineProperty(this, "_scrollX", 0);
|
|
27533
27667
|
_defineProperty(this, "_scrollY", 0);
|
|
27668
|
+
_defineProperty(this, "_gapConfigChanged$", new rxjs.Subject());
|
|
27669
|
+
_defineProperty(this, "gapConfigChanged$", this._gapConfigChanged$.asObservable());
|
|
27534
27670
|
this._worksheetData = this.worksheet.getConfig();
|
|
27535
27671
|
this._cellData = this.worksheet.getCellMatrix();
|
|
27536
27672
|
this._imageCacheMap = new ImageCacheMap(this._injector);
|
|
@@ -27622,6 +27758,7 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
27622
27758
|
this._gapConfig = this._fillDefaultGapThemeColors(config);
|
|
27623
27759
|
this.makeDirty(true);
|
|
27624
27760
|
this._updateLayout();
|
|
27761
|
+
this._gapConfigChanged$.next();
|
|
27625
27762
|
}
|
|
27626
27763
|
_fillDefaultGapThemeColors(config) {
|
|
27627
27764
|
if (config.defaultBackgroundColor && config.defaultStripeColor) return config;
|
|
@@ -28055,13 +28192,14 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
28055
28192
|
};
|
|
28056
28193
|
}
|
|
28057
28194
|
/**
|
|
28058
|
-
*
|
|
28195
|
+
* Coordinates include the row and column headers. Defaults to the current viewport transform;
|
|
28196
|
+
* pass unit scales and zero scroll for Sheet model coordinates.
|
|
28059
28197
|
*/
|
|
28060
|
-
getCellIndexAndOffsetByPosition(offsetX, offsetY
|
|
28061
|
-
|
|
28062
|
-
|
|
28063
|
-
|
|
28064
|
-
});
|
|
28198
|
+
getCellIndexAndOffsetByPosition(offsetX, offsetY, scaleX = this._scaleX, scaleY = this._scaleY, scrollXY = {
|
|
28199
|
+
x: this._scrollX,
|
|
28200
|
+
y: this._scrollY
|
|
28201
|
+
}) {
|
|
28202
|
+
const { actualRow, actualColumn, startX, startY } = this.getCellWithCoordByOffset(offsetX, offsetY, scaleX, scaleY, scrollXY);
|
|
28065
28203
|
return {
|
|
28066
28204
|
row: actualRow,
|
|
28067
28205
|
rowOffset: offsetY - startY,
|
|
@@ -28097,6 +28235,7 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
28097
28235
|
}
|
|
28098
28236
|
dispose() {
|
|
28099
28237
|
super.dispose();
|
|
28238
|
+
this._gapConfigChanged$.complete();
|
|
28100
28239
|
this._rowHeightAccumulation = [];
|
|
28101
28240
|
this._columnWidthAccumulation = [];
|
|
28102
28241
|
this._rowTotalHeight = 0;
|
|
@@ -28446,41 +28585,6 @@ let DataValidationType = /* @__PURE__ */ function(DataValidationType) {
|
|
|
28446
28585
|
return DataValidationType;
|
|
28447
28586
|
}({});
|
|
28448
28587
|
|
|
28449
|
-
//#endregion
|
|
28450
|
-
//#region src/types/enum/record-filter.ts
|
|
28451
|
-
/**
|
|
28452
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28453
|
-
*
|
|
28454
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
28455
|
-
* you may not use this file except in compliance with the License.
|
|
28456
|
-
* You may obtain a copy of the License at
|
|
28457
|
-
*
|
|
28458
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
28459
|
-
*
|
|
28460
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
28461
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28462
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
28463
|
-
* See the License for the specific language governing permissions and
|
|
28464
|
-
* limitations under the License.
|
|
28465
|
-
*/
|
|
28466
|
-
/** Typed record identities shared by compact Table and external report filters. */
|
|
28467
|
-
let RecordValueType = /* @__PURE__ */ function(RecordValueType) {
|
|
28468
|
-
RecordValueType["Blank"] = "blank";
|
|
28469
|
-
RecordValueType["String"] = "string";
|
|
28470
|
-
RecordValueType["Number"] = "number";
|
|
28471
|
-
RecordValueType["Date"] = "date";
|
|
28472
|
-
RecordValueType["Boolean"] = "boolean";
|
|
28473
|
-
RecordValueType["Error"] = "error";
|
|
28474
|
-
return RecordValueType;
|
|
28475
|
-
}({});
|
|
28476
|
-
/** Values are wire identifiers; an absent native Table filter represents All. */
|
|
28477
|
-
let FilterSelectionMode = /* @__PURE__ */ function(FilterSelectionMode) {
|
|
28478
|
-
FilterSelectionMode["All"] = "all";
|
|
28479
|
-
FilterSelectionMode["Include"] = "include";
|
|
28480
|
-
FilterSelectionMode["Exclude"] = "exclude";
|
|
28481
|
-
return FilterSelectionMode;
|
|
28482
|
-
}({});
|
|
28483
|
-
|
|
28484
28588
|
//#endregion
|
|
28485
28589
|
//#region src/services/resource-loader/resource-loader.service.ts
|
|
28486
28590
|
let ResourceLoaderService = class ResourceLoaderService extends Disposable {
|
|
@@ -28782,8 +28886,13 @@ exports.AlignTypeH = AlignTypeH;
|
|
|
28782
28886
|
exports.AlignTypeV = AlignTypeV;
|
|
28783
28887
|
exports.ArrangeTypeEnum = ArrangeTypeEnum;
|
|
28784
28888
|
exports.AsyncInterceptorManager = AsyncInterceptorManager;
|
|
28785
|
-
exports
|
|
28786
|
-
|
|
28889
|
+
Object.defineProperty(exports, "AsyncLock", {
|
|
28890
|
+
enumerable: true,
|
|
28891
|
+
get: function () {
|
|
28892
|
+
return async_lock.default;
|
|
28893
|
+
}
|
|
28894
|
+
});
|
|
28895
|
+
Object.defineProperty(exports, "AuthzIoLocalService", {
|
|
28787
28896
|
enumerable: true,
|
|
28788
28897
|
get: function () {
|
|
28789
28898
|
return AuthzIoLocalService;
|
|
@@ -28823,7 +28932,7 @@ exports.ColorType = ColorType;
|
|
|
28823
28932
|
exports.ColumnLayoutType = ColumnLayoutType;
|
|
28824
28933
|
exports.ColumnResponsiveType = ColumnResponsiveType;
|
|
28825
28934
|
exports.ColumnSeparatorType = ColumnSeparatorType;
|
|
28826
|
-
Object.defineProperty(exports,
|
|
28935
|
+
Object.defineProperty(exports, "CommandService", {
|
|
28827
28936
|
enumerable: true,
|
|
28828
28937
|
get: function () {
|
|
28829
28938
|
return CommandService;
|
|
@@ -28894,6 +29003,7 @@ exports.DocumentFlavor = DocumentFlavor;
|
|
|
28894
29003
|
exports.DocxBreakType = DocxBreakType;
|
|
28895
29004
|
exports.DrawingTypeEnum = DrawingTypeEnum;
|
|
28896
29005
|
exports.EDITOR_ACTIVATED = EDITOR_ACTIVATED;
|
|
29006
|
+
exports.EMU_PER_CSS_PX = EMU_PER_CSS_PX;
|
|
28897
29007
|
exports.EXCEL_1904_OFFSET = EXCEL_1904_OFFSET;
|
|
28898
29008
|
exports.EXTENSION_NAMES = EXTENSION_NAMES;
|
|
28899
29009
|
exports.ErrorService = ErrorService;
|
|
@@ -28941,19 +29051,19 @@ exports.IUniverInstanceService = IUniverInstanceService;
|
|
|
28941
29051
|
exports.ImageCacheMap = ImageCacheMap;
|
|
28942
29052
|
exports.ImageSourceType = ImageSourceType;
|
|
28943
29053
|
exports.ImageUploadStatusType = ImageUploadStatusType;
|
|
28944
|
-
Object.defineProperty(exports,
|
|
29054
|
+
Object.defineProperty(exports, "Inject", {
|
|
28945
29055
|
enumerable: true,
|
|
28946
29056
|
get: function () {
|
|
28947
29057
|
return _wendellhu_redi.Inject;
|
|
28948
29058
|
}
|
|
28949
29059
|
});
|
|
28950
|
-
Object.defineProperty(exports,
|
|
29060
|
+
Object.defineProperty(exports, "InjectSelf", {
|
|
28951
29061
|
enumerable: true,
|
|
28952
29062
|
get: function () {
|
|
28953
29063
|
return _wendellhu_redi.InjectSelf;
|
|
28954
29064
|
}
|
|
28955
29065
|
});
|
|
28956
|
-
Object.defineProperty(exports,
|
|
29066
|
+
Object.defineProperty(exports, "Injector", {
|
|
28957
29067
|
enumerable: true,
|
|
28958
29068
|
get: function () {
|
|
28959
29069
|
return _wendellhu_redi.Injector;
|
|
@@ -28962,7 +29072,7 @@ Object.defineProperty(exports, 'Injector', {
|
|
|
28962
29072
|
exports.InterceptorEffectEnum = InterceptorEffectEnum;
|
|
28963
29073
|
exports.InterceptorManager = InterceptorManager;
|
|
28964
29074
|
exports.InterpolationPointType = InterpolationPointType;
|
|
28965
|
-
Object.defineProperty(exports,
|
|
29075
|
+
Object.defineProperty(exports, "JSON1", {
|
|
28966
29076
|
enumerable: true,
|
|
28967
29077
|
get: function () {
|
|
28968
29078
|
return ot_json1;
|
|
@@ -28972,7 +29082,7 @@ exports.JSONX = JSONX;
|
|
|
28972
29082
|
exports.LOCALE_META = LOCALE_META;
|
|
28973
29083
|
exports.LRUHelper = LRUHelper;
|
|
28974
29084
|
exports.LRUMap = LRUMap;
|
|
28975
|
-
Object.defineProperty(exports,
|
|
29085
|
+
Object.defineProperty(exports, "LifecycleService", {
|
|
28976
29086
|
enumerable: true,
|
|
28977
29087
|
get: function () {
|
|
28978
29088
|
return LifecycleService;
|
|
@@ -28981,7 +29091,7 @@ Object.defineProperty(exports, 'LifecycleService', {
|
|
|
28981
29091
|
exports.LifecycleStages = LifecycleStages;
|
|
28982
29092
|
exports.LifecycleUnreachableError = LifecycleUnreachableError;
|
|
28983
29093
|
exports.ListGlyphType = ListGlyphType;
|
|
28984
|
-
Object.defineProperty(exports,
|
|
29094
|
+
Object.defineProperty(exports, "LocalUndoRedoService", {
|
|
28985
29095
|
enumerable: true,
|
|
28986
29096
|
get: function () {
|
|
28987
29097
|
return LocalUndoRedoService;
|
|
@@ -28990,25 +29100,26 @@ Object.defineProperty(exports, 'LocalUndoRedoService', {
|
|
|
28990
29100
|
exports.LocaleService = LocaleService;
|
|
28991
29101
|
exports.LocaleType = LocaleType;
|
|
28992
29102
|
exports.LogLevel = LogLevel;
|
|
28993
|
-
Object.defineProperty(exports,
|
|
29103
|
+
Object.defineProperty(exports, "LookUp", {
|
|
28994
29104
|
enumerable: true,
|
|
28995
29105
|
get: function () {
|
|
28996
29106
|
return _wendellhu_redi.LookUp;
|
|
28997
29107
|
}
|
|
28998
29108
|
});
|
|
28999
29109
|
exports.MAX_COLUMN_COUNT = MAX_COLUMN_COUNT;
|
|
29110
|
+
exports.MAX_ITERATION_COUNT = MAX_ITERATION_COUNT;
|
|
29000
29111
|
exports.MAX_ROW_COUNT = MAX_ROW_COUNT;
|
|
29001
29112
|
exports.MODERN_DOCUMENT_DEFAULT_MARGIN = MODERN_DOCUMENT_DEFAULT_MARGIN;
|
|
29002
29113
|
exports.MODERN_DOCUMENT_WIDTH = MODERN_DOCUMENT_WIDTH;
|
|
29003
29114
|
exports.MOVE_BUFFER_VALUE = MOVE_BUFFER_VALUE;
|
|
29004
|
-
Object.defineProperty(exports,
|
|
29115
|
+
Object.defineProperty(exports, "Many", {
|
|
29005
29116
|
enumerable: true,
|
|
29006
29117
|
get: function () {
|
|
29007
29118
|
return _wendellhu_redi.Many;
|
|
29008
29119
|
}
|
|
29009
29120
|
});
|
|
29010
29121
|
exports.MemoryCursor = MemoryCursor;
|
|
29011
|
-
Object.defineProperty(exports,
|
|
29122
|
+
Object.defineProperty(exports, "MentionIOLocalService", {
|
|
29012
29123
|
enumerable: true,
|
|
29013
29124
|
get: function () {
|
|
29014
29125
|
return MentionIOLocalService;
|
|
@@ -29024,7 +29135,7 @@ exports.NumberUnitType = NumberUnitType;
|
|
|
29024
29135
|
exports.OBJECT_PERMISSION_CONFIG_KEY = OBJECT_PERMISSION_CONFIG_KEY;
|
|
29025
29136
|
exports.ObjectMatrix = ObjectMatrix;
|
|
29026
29137
|
exports.ObjectPermissionRuleModel = ObjectPermissionRuleModel;
|
|
29027
|
-
Object.defineProperty(exports,
|
|
29138
|
+
Object.defineProperty(exports, "ObjectPermissionService", {
|
|
29028
29139
|
enumerable: true,
|
|
29029
29140
|
get: function () {
|
|
29030
29141
|
return ObjectPermissionService;
|
|
@@ -29032,7 +29143,7 @@ Object.defineProperty(exports, 'ObjectPermissionService', {
|
|
|
29032
29143
|
});
|
|
29033
29144
|
exports.ObjectRelativeFromH = ObjectRelativeFromH;
|
|
29034
29145
|
exports.ObjectRelativeFromV = ObjectRelativeFromV;
|
|
29035
|
-
Object.defineProperty(exports,
|
|
29146
|
+
Object.defineProperty(exports, "Optional", {
|
|
29036
29147
|
enumerable: true,
|
|
29037
29148
|
get: function () {
|
|
29038
29149
|
return _wendellhu_redi.Optional;
|
|
@@ -29052,7 +29163,7 @@ exports.ParagraphStyleValue = ParagraphStyleValue;
|
|
|
29052
29163
|
exports.PermissionService = PermissionService;
|
|
29053
29164
|
exports.PermissionStatus = PermissionStatus;
|
|
29054
29165
|
exports.Plugin = Plugin;
|
|
29055
|
-
Object.defineProperty(exports,
|
|
29166
|
+
Object.defineProperty(exports, "PluginService", {
|
|
29056
29167
|
enumerable: true,
|
|
29057
29168
|
get: function () {
|
|
29058
29169
|
return PluginService;
|
|
@@ -29061,7 +29172,7 @@ Object.defineProperty(exports, 'PluginService', {
|
|
|
29061
29172
|
exports.PositionedObjectLayoutType = PositionedObjectLayoutType;
|
|
29062
29173
|
exports.PresetListType = PresetListType;
|
|
29063
29174
|
exports.ProtectionType = ProtectionType;
|
|
29064
|
-
Object.defineProperty(exports,
|
|
29175
|
+
Object.defineProperty(exports, "Quantity", {
|
|
29065
29176
|
enumerable: true,
|
|
29066
29177
|
get: function () {
|
|
29067
29178
|
return _wendellhu_redi.Quantity;
|
|
@@ -29071,7 +29182,12 @@ exports.QuickListType = QuickListType;
|
|
|
29071
29182
|
exports.QuickListTypeMap = QuickListTypeMap;
|
|
29072
29183
|
exports.RANGE_DIRECTION = RANGE_DIRECTION;
|
|
29073
29184
|
exports.RANGE_TYPE = RANGE_TYPE;
|
|
29074
|
-
exports
|
|
29185
|
+
Object.defineProperty(exports, "RBush", {
|
|
29186
|
+
enumerable: true,
|
|
29187
|
+
get: function () {
|
|
29188
|
+
return rbush.default;
|
|
29189
|
+
}
|
|
29190
|
+
});
|
|
29075
29191
|
exports.RCDisposable = RCDisposable;
|
|
29076
29192
|
exports.RESTORE_INSERTED_PARAGRAPH_IDS = RESTORE_INSERTED_PARAGRAPH_IDS;
|
|
29077
29193
|
exports.RGBA_PAREN = RGBA_PAREN;
|
|
@@ -29081,7 +29197,7 @@ exports.RTree = RTree;
|
|
|
29081
29197
|
exports.Range = Range;
|
|
29082
29198
|
exports.RecordValueType = RecordValueType;
|
|
29083
29199
|
exports.Rectangle = Rectangle;
|
|
29084
|
-
Object.defineProperty(exports,
|
|
29200
|
+
Object.defineProperty(exports, "RediError", {
|
|
29085
29201
|
enumerable: true,
|
|
29086
29202
|
get: function () {
|
|
29087
29203
|
return _wendellhu_redi.RediError;
|
|
@@ -29090,7 +29206,7 @@ Object.defineProperty(exports, 'RediError', {
|
|
|
29090
29206
|
exports.RedoCommand = RedoCommand;
|
|
29091
29207
|
exports.RedoCommandId = RedoCommandId;
|
|
29092
29208
|
exports.RefAlias = RefAlias;
|
|
29093
|
-
Object.defineProperty(exports,
|
|
29209
|
+
Object.defineProperty(exports, "RegionService", {
|
|
29094
29210
|
enumerable: true,
|
|
29095
29211
|
get: function () {
|
|
29096
29212
|
return RegionService;
|
|
@@ -29099,7 +29215,7 @@ Object.defineProperty(exports, 'RegionService', {
|
|
|
29099
29215
|
exports.Registry = Registry;
|
|
29100
29216
|
exports.RegistryAsMap = RegistryAsMap;
|
|
29101
29217
|
exports.RelativeDate = RelativeDate;
|
|
29102
|
-
Object.defineProperty(exports,
|
|
29218
|
+
Object.defineProperty(exports, "ResourceManagerService", {
|
|
29103
29219
|
enumerable: true,
|
|
29104
29220
|
get: function () {
|
|
29105
29221
|
return ResourceManagerService;
|
|
@@ -29112,15 +29228,16 @@ exports.RichTextValue = RichTextValue;
|
|
|
29112
29228
|
exports.RxDisposable = RxDisposable;
|
|
29113
29229
|
exports.SECTION_ID_PREFIX = SECTION_ID_PREFIX;
|
|
29114
29230
|
exports.SHEET_EDITOR_UNITS = SHEET_EDITOR_UNITS;
|
|
29231
|
+
exports.SHEET_TEXT_LINE_GAP = SHEET_TEXT_LINE_GAP;
|
|
29115
29232
|
exports.STYLE_KEYS = STYLE_KEYS;
|
|
29116
29233
|
exports.SectionType = SectionType;
|
|
29117
|
-
Object.defineProperty(exports,
|
|
29234
|
+
Object.defineProperty(exports, "Self", {
|
|
29118
29235
|
enumerable: true,
|
|
29119
29236
|
get: function () {
|
|
29120
29237
|
return _wendellhu_redi.Self;
|
|
29121
29238
|
}
|
|
29122
29239
|
});
|
|
29123
|
-
Object.defineProperty(exports,
|
|
29240
|
+
Object.defineProperty(exports, "SheetSkeleton", {
|
|
29124
29241
|
enumerable: true,
|
|
29125
29242
|
get: function () {
|
|
29126
29243
|
return SheetSkeleton;
|
|
@@ -29128,13 +29245,13 @@ Object.defineProperty(exports, 'SheetSkeleton', {
|
|
|
29128
29245
|
});
|
|
29129
29246
|
exports.SheetTypes = SheetTypes;
|
|
29130
29247
|
exports.SheetViewModel = SheetViewModel;
|
|
29131
|
-
Object.defineProperty(exports,
|
|
29248
|
+
Object.defineProperty(exports, "Skeleton", {
|
|
29132
29249
|
enumerable: true,
|
|
29133
29250
|
get: function () {
|
|
29134
29251
|
return Skeleton;
|
|
29135
29252
|
}
|
|
29136
29253
|
});
|
|
29137
|
-
Object.defineProperty(exports,
|
|
29254
|
+
Object.defineProperty(exports, "SkipSelf", {
|
|
29138
29255
|
enumerable: true,
|
|
29139
29256
|
get: function () {
|
|
29140
29257
|
return _wendellhu_redi.SkipSelf;
|
|
@@ -29171,24 +29288,29 @@ exports.UndoCommand = UndoCommand;
|
|
|
29171
29288
|
exports.UndoCommandId = UndoCommandId;
|
|
29172
29289
|
exports.UnitModel = UnitModel;
|
|
29173
29290
|
exports.Univer = Univer;
|
|
29174
|
-
Object.defineProperty(exports,
|
|
29291
|
+
Object.defineProperty(exports, "UniverInstanceService", {
|
|
29175
29292
|
enumerable: true,
|
|
29176
29293
|
get: function () {
|
|
29177
29294
|
return UniverInstanceService;
|
|
29178
29295
|
}
|
|
29179
29296
|
});
|
|
29180
|
-
exports
|
|
29297
|
+
Object.defineProperty(exports, "UniverInstanceType", {
|
|
29298
|
+
enumerable: true,
|
|
29299
|
+
get: function () {
|
|
29300
|
+
return _univerjs_protocol.UniverType;
|
|
29301
|
+
}
|
|
29302
|
+
});
|
|
29181
29303
|
exports.UpdateDocsAttributeType = UpdateDocsAttributeType;
|
|
29182
29304
|
exports.UserManagerService = UserManagerService;
|
|
29183
29305
|
exports.VerticalAlign = VerticalAlign;
|
|
29184
29306
|
exports.VerticalAlignmentType = VerticalAlignmentType;
|
|
29185
|
-
Object.defineProperty(exports,
|
|
29307
|
+
Object.defineProperty(exports, "WithNew", {
|
|
29186
29308
|
enumerable: true,
|
|
29187
29309
|
get: function () {
|
|
29188
29310
|
return _wendellhu_redi.WithNew;
|
|
29189
29311
|
}
|
|
29190
29312
|
});
|
|
29191
|
-
Object.defineProperty(exports,
|
|
29313
|
+
Object.defineProperty(exports, "Workbook", {
|
|
29192
29314
|
enumerable: true,
|
|
29193
29315
|
get: function () {
|
|
29194
29316
|
return Workbook;
|
|
@@ -29241,7 +29363,7 @@ exports.createBaseRecordIdField = createBaseRecordIdField;
|
|
|
29241
29363
|
exports.createDefaultBaseTableSnapshot = createDefaultBaseTableSnapshot;
|
|
29242
29364
|
exports.createDefaultUser = createDefaultUser;
|
|
29243
29365
|
exports.createDocumentModelWithStyle = createDocumentModelWithStyle;
|
|
29244
|
-
Object.defineProperty(exports,
|
|
29366
|
+
Object.defineProperty(exports, "createIdentifier", {
|
|
29245
29367
|
enumerable: true,
|
|
29246
29368
|
get: function () {
|
|
29247
29369
|
return _wendellhu_redi.createIdentifier;
|
|
@@ -29254,10 +29376,11 @@ exports.createRandomId = createRandomId;
|
|
|
29254
29376
|
exports.createRowColIter = createRowColIter;
|
|
29255
29377
|
exports.createSectionId = createSectionId;
|
|
29256
29378
|
exports.createSheetGapTestConfig = createSheetGapTestConfig;
|
|
29379
|
+
exports.cssPxToEmu = cssPxToEmu;
|
|
29257
29380
|
exports.currencySymbols = currencySymbols;
|
|
29258
29381
|
exports.customNameCharacterCheck = customNameCharacterCheck;
|
|
29259
29382
|
exports.dateKit = dateKit;
|
|
29260
|
-
Object.defineProperty(exports,
|
|
29383
|
+
Object.defineProperty(exports, "debounce", {
|
|
29261
29384
|
enumerable: true,
|
|
29262
29385
|
get: function () {
|
|
29263
29386
|
return lodash_es.debounce;
|
|
@@ -29268,6 +29391,7 @@ exports.dedupeBy = dedupeBy;
|
|
|
29268
29391
|
exports.deepCompare = deepCompare;
|
|
29269
29392
|
exports.delayAnimationFrame = delayAnimationFrame;
|
|
29270
29393
|
exports.deleteContent = deleteContent;
|
|
29394
|
+
exports.emuToCssPx = emuToCssPx;
|
|
29271
29395
|
exports.excelDateSerial = excelDateSerial;
|
|
29272
29396
|
exports.excelDateTimePartsToSerial = excelDateTimePartsToSerial;
|
|
29273
29397
|
exports.excelDateTimeSerial = excelDateTimeSerial;
|
|
@@ -29275,7 +29399,7 @@ exports.excelSerialToDate = excelSerialToDate;
|
|
|
29275
29399
|
exports.excelSerialToDateTime = excelSerialToDateTime;
|
|
29276
29400
|
exports.excelSerialToDateTimeParts = excelSerialToDateTimeParts;
|
|
29277
29401
|
exports.extractPureTextFromCell = extractPureTextFromCell;
|
|
29278
|
-
Object.defineProperty(exports,
|
|
29402
|
+
Object.defineProperty(exports, "forwardRef", {
|
|
29279
29403
|
enumerable: true,
|
|
29280
29404
|
get: function () {
|
|
29281
29405
|
return _wendellhu_redi.forwardRef;
|
|
@@ -29285,7 +29409,7 @@ exports.fromCallback = fromCallback;
|
|
|
29285
29409
|
exports.fromEventSubject = fromEventSubject;
|
|
29286
29410
|
exports.generateIntervalsByPoints = generateIntervalsByPoints;
|
|
29287
29411
|
exports.generateRandomId = generateRandomId;
|
|
29288
|
-
Object.defineProperty(exports,
|
|
29412
|
+
Object.defineProperty(exports, "get", {
|
|
29289
29413
|
enumerable: true,
|
|
29290
29414
|
get: function () {
|
|
29291
29415
|
return lodash_es.get;
|
|
@@ -29327,6 +29451,7 @@ exports.getParagraphContentStartOffsets = getParagraphContentStartOffsets;
|
|
|
29327
29451
|
exports.getParagraphFollowingBlockOffset = getParagraphFollowingBlockOffset;
|
|
29328
29452
|
exports.getParagraphsSlice = getParagraphsSlice;
|
|
29329
29453
|
exports.getPlainText = getPlainText;
|
|
29454
|
+
exports.getRecordValueKey = getRecordValueKey;
|
|
29330
29455
|
exports.getReverseDirection = getReverseDirection;
|
|
29331
29456
|
exports.getRichTextEditPath = getRichTextEditPath;
|
|
29332
29457
|
exports.getSdtBindingKey = getSdtBindingKey;
|
|
@@ -29352,13 +29477,13 @@ exports.insertTextToContent = insertTextToContent;
|
|
|
29352
29477
|
exports.intersectsOperationalIntervals = intersectsOperationalIntervals;
|
|
29353
29478
|
exports.invertColorByHSL = invertColorByHSL;
|
|
29354
29479
|
exports.invertColorByMatrix = invertColorByMatrix;
|
|
29355
|
-
Object.defineProperty(exports,
|
|
29480
|
+
Object.defineProperty(exports, "isAsyncDependencyItem", {
|
|
29356
29481
|
enumerable: true,
|
|
29357
29482
|
get: function () {
|
|
29358
29483
|
return _wendellhu_redi.isAsyncDependencyItem;
|
|
29359
29484
|
}
|
|
29360
29485
|
});
|
|
29361
|
-
Object.defineProperty(exports,
|
|
29486
|
+
Object.defineProperty(exports, "isAsyncHook", {
|
|
29362
29487
|
enumerable: true,
|
|
29363
29488
|
get: function () {
|
|
29364
29489
|
return _wendellhu_redi.isAsyncHook;
|
|
@@ -29369,28 +29494,28 @@ exports.isBlackColor = isBlackColor;
|
|
|
29369
29494
|
exports.isBooleanString = isBooleanString;
|
|
29370
29495
|
exports.isCellCoverable = isCellCoverable;
|
|
29371
29496
|
exports.isCellV = isCellV;
|
|
29372
|
-
Object.defineProperty(exports,
|
|
29497
|
+
Object.defineProperty(exports, "isClassDependencyItem", {
|
|
29373
29498
|
enumerable: true,
|
|
29374
29499
|
get: function () {
|
|
29375
29500
|
return _wendellhu_redi.isClassDependencyItem;
|
|
29376
29501
|
}
|
|
29377
29502
|
});
|
|
29378
29503
|
exports.isCommentEditorID = isCommentEditorID;
|
|
29379
|
-
Object.defineProperty(exports,
|
|
29504
|
+
Object.defineProperty(exports, "isCtor", {
|
|
29380
29505
|
enumerable: true,
|
|
29381
29506
|
get: function () {
|
|
29382
29507
|
return _wendellhu_redi.isCtor;
|
|
29383
29508
|
}
|
|
29384
29509
|
});
|
|
29385
29510
|
exports.isDefaultFormat = isDefaultFormat;
|
|
29386
|
-
Object.defineProperty(exports,
|
|
29511
|
+
Object.defineProperty(exports, "isDisposable", {
|
|
29387
29512
|
enumerable: true,
|
|
29388
29513
|
get: function () {
|
|
29389
29514
|
return _wendellhu_redi.isDisposable;
|
|
29390
29515
|
}
|
|
29391
29516
|
});
|
|
29392
29517
|
exports.isEmptyCell = isEmptyCell;
|
|
29393
|
-
Object.defineProperty(exports,
|
|
29518
|
+
Object.defineProperty(exports, "isFactoryDependencyItem", {
|
|
29394
29519
|
enumerable: true,
|
|
29395
29520
|
get: function () {
|
|
29396
29521
|
return _wendellhu_redi.isFactoryDependencyItem;
|
|
@@ -29414,7 +29539,7 @@ exports.isTextFormat = isTextFormat;
|
|
|
29414
29539
|
exports.isUnitRangesEqual = isUnitRangesEqual;
|
|
29415
29540
|
exports.isValidBaseRecordId = isValidBaseRecordId;
|
|
29416
29541
|
exports.isValidRange = isValidRange;
|
|
29417
|
-
Object.defineProperty(exports,
|
|
29542
|
+
Object.defineProperty(exports, "isValueDependencyItem", {
|
|
29418
29543
|
enumerable: true,
|
|
29419
29544
|
get: function () {
|
|
29420
29545
|
return _wendellhu_redi.isValueDependencyItem;
|
|
@@ -29424,7 +29549,7 @@ exports.isWhiteColor = isWhiteColor;
|
|
|
29424
29549
|
exports.makeArray = makeArray;
|
|
29425
29550
|
exports.makeCellRangeToRangeData = makeCellRangeToRangeData;
|
|
29426
29551
|
exports.mapObjectMatrix = mapObjectMatrix;
|
|
29427
|
-
Object.defineProperty(exports,
|
|
29552
|
+
Object.defineProperty(exports, "merge", {
|
|
29428
29553
|
enumerable: true,
|
|
29429
29554
|
get: function () {
|
|
29430
29555
|
return lodash_es.merge;
|
|
@@ -29434,7 +29559,7 @@ exports.mergeIntervals = mergeIntervals;
|
|
|
29434
29559
|
exports.mergeLocales = mergeLocales;
|
|
29435
29560
|
exports.mergeOverrideWithDependencies = mergeOverrideWithDependencies;
|
|
29436
29561
|
exports.mergeSets = mergeSets;
|
|
29437
|
-
Object.defineProperty(exports,
|
|
29562
|
+
Object.defineProperty(exports, "mergeWith", {
|
|
29438
29563
|
enumerable: true,
|
|
29439
29564
|
get: function () {
|
|
29440
29565
|
return lodash_es.mergeWith;
|
|
@@ -29454,9 +29579,10 @@ exports.normalizeDrawingOrderIndex = normalizeDrawingOrderIndex;
|
|
|
29454
29579
|
exports.normalizeInsertedSectionIdsForDocument = normalizeInsertedSectionIdsForDocument;
|
|
29455
29580
|
exports.normalizeTextRuns = normalizeTextRuns;
|
|
29456
29581
|
exports.normalizeUrl = normalizeUrl;
|
|
29582
|
+
exports.normalizeWorkbookCalculationSettings = normalizeWorkbookCalculationSettings;
|
|
29457
29583
|
exports.numberToABC = numberToABC;
|
|
29458
29584
|
exports.numberToListABC = numberToListABC;
|
|
29459
|
-
Object.defineProperty(exports,
|
|
29585
|
+
Object.defineProperty(exports, "numfmt", {
|
|
29460
29586
|
enumerable: true,
|
|
29461
29587
|
get: function () {
|
|
29462
29588
|
return api_exports;
|
|
@@ -29480,19 +29606,19 @@ exports.sequence = sequence;
|
|
|
29480
29606
|
exports.sequenceAsync = sequenceAsync;
|
|
29481
29607
|
exports.sequenceExecute = sequenceExecute;
|
|
29482
29608
|
exports.sequenceExecuteAsync = sequenceExecuteAsync;
|
|
29483
|
-
Object.defineProperty(exports,
|
|
29609
|
+
Object.defineProperty(exports, "set", {
|
|
29484
29610
|
enumerable: true,
|
|
29485
29611
|
get: function () {
|
|
29486
29612
|
return lodash_es.set;
|
|
29487
29613
|
}
|
|
29488
29614
|
});
|
|
29489
|
-
Object.defineProperty(exports,
|
|
29615
|
+
Object.defineProperty(exports, "setDependencies", {
|
|
29490
29616
|
enumerable: true,
|
|
29491
29617
|
get: function () {
|
|
29492
29618
|
return _wendellhu_redi.setDependencies;
|
|
29493
29619
|
}
|
|
29494
29620
|
});
|
|
29495
|
-
Object.defineProperty(exports,
|
|
29621
|
+
Object.defineProperty(exports, "setWith", {
|
|
29496
29622
|
enumerable: true,
|
|
29497
29623
|
get: function () {
|
|
29498
29624
|
return lodash_es.setWith;
|