@univerjs/core 1.1.0 → 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 +2 -3
- package/lib/cjs/index.js +144 -52
- package/lib/es/facade.js +2 -3
- package/lib/es/index.js +141 -53
- package/lib/facade.js +2 -3
- package/lib/index.js +141 -53
- package/lib/types/docs/data-model/text-x/utils.d.ts +1 -0
- package/lib/types/index.d.ts +3 -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/sheet-skeleton.d.ts +6 -2
- package/lib/types/types/interfaces/i-document-data.d.ts +2 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +6 -6
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1670,7 +1670,7 @@ let ThemeColors = /* @__PURE__ */ function(ThemeColors) {
|
|
|
1670
1670
|
//#endregion
|
|
1671
1671
|
//#region package.json
|
|
1672
1672
|
var name = "@univerjs/core";
|
|
1673
|
-
var version = "1.
|
|
1673
|
+
var version = "1.2.0";
|
|
1674
1674
|
|
|
1675
1675
|
//#endregion
|
|
1676
1676
|
//#region src/common/array.ts
|
|
@@ -5775,7 +5775,7 @@ function datePartsToExcel1900Serial(year, month, day) {
|
|
|
5775
5775
|
return unixDays + (unixDays <= -25509 ? 25568 : 25569);
|
|
5776
5776
|
}
|
|
5777
5777
|
function excelSerialToDateTimeParts(serial, options) {
|
|
5778
|
-
if (!Number.isFinite(serial) || serial < 0) return null;
|
|
5778
|
+
if (!Number.isFinite(serial) || serial < 0 || serial >= getDateSystemMaxSerial(options.dateSystem) + 1) return null;
|
|
5779
5779
|
const wholeDays = Math.floor(serial);
|
|
5780
5780
|
const excel1900Serial = options.dateSystem === "date1904" ? wholeDays + EXCEL_1904_OFFSET : wholeDays;
|
|
5781
5781
|
const [year, month, day] = toYMD(excel1900Serial, 0, true);
|
|
@@ -14934,6 +14934,13 @@ function updateParagraphs(body, updateBody, textLength, currentIndex, coverType)
|
|
|
14934
14934
|
const { startIndex: removeStartIndex, paragraphId: removeParagraphId, paragraphStyle: removeParagraphStyle, bullet: removeBullet } = removeParagraph;
|
|
14935
14935
|
let newParagraphStyle;
|
|
14936
14936
|
let newBullet;
|
|
14937
|
+
const paragraphAttributes = coverType === 0 ? {
|
|
14938
|
+
...removeParagraph,
|
|
14939
|
+
...updateParagraph
|
|
14940
|
+
} : {
|
|
14941
|
+
...updateParagraph,
|
|
14942
|
+
...removeParagraph
|
|
14943
|
+
};
|
|
14937
14944
|
if (coverType === 0) {
|
|
14938
14945
|
newParagraphStyle = {
|
|
14939
14946
|
...removeParagraphStyle,
|
|
@@ -14963,10 +14970,11 @@ function updateParagraphs(body, updateBody, textLength, currentIndex, coverType)
|
|
|
14963
14970
|
}
|
|
14964
14971
|
if (updateStartIndex === removeStartIndex) {
|
|
14965
14972
|
splitUpdateParagraphs.push({
|
|
14973
|
+
...paragraphAttributes,
|
|
14966
14974
|
startIndex: updateStartIndex,
|
|
14967
14975
|
paragraphId: updateParagraphId ?? removeParagraphId,
|
|
14968
14976
|
paragraphStyle: newParagraphStyle,
|
|
14969
|
-
bullet: newBullet
|
|
14977
|
+
bullet: removeBullet == null && updateBullet == null ? void 0 : newBullet
|
|
14970
14978
|
});
|
|
14971
14979
|
break;
|
|
14972
14980
|
}
|
|
@@ -16038,7 +16046,7 @@ var ActionIterator = class {
|
|
|
16038
16046
|
return this.peekLength() < Number.POSITIVE_INFINITY;
|
|
16039
16047
|
}
|
|
16040
16048
|
next(length) {
|
|
16041
|
-
if (
|
|
16049
|
+
if (length === void 0) length = Number.POSITIVE_INFINITY;
|
|
16042
16050
|
const nextAction = this._actions[this._index];
|
|
16043
16051
|
if (nextAction) {
|
|
16044
16052
|
const offset = this._offset;
|
|
@@ -16578,6 +16586,21 @@ function transformParagraph(originParagraph, targetParagraph, originCoverType, t
|
|
|
16578
16586
|
else if (originParagraph.bullet === void 0) paragraph.bullet = Tools.deepClone(targetParagraph.bullet);
|
|
16579
16587
|
else if (originCoverType === 1 || targetCoverType === 1) paragraph.bullet = transformType === 0 && targetParagraph.bullet ? Tools.deepClone(targetParagraph.bullet) : Tools.deepClone(originParagraph.bullet);
|
|
16580
16588
|
else if (transformType === 0 && targetParagraph.bullet !== void 0) paragraph.bullet = Tools.deepClone(targetParagraph.bullet);
|
|
16589
|
+
for (const key of [
|
|
16590
|
+
"headingCollapsed",
|
|
16591
|
+
"styleId",
|
|
16592
|
+
"sourceBullet",
|
|
16593
|
+
"directBullet"
|
|
16594
|
+
]) {
|
|
16595
|
+
const origin = originParagraph[key];
|
|
16596
|
+
const target = targetParagraph[key];
|
|
16597
|
+
let value;
|
|
16598
|
+
if (originCoverType === 1 && targetCoverType === 1) value = transformType === 1 ? origin : target;
|
|
16599
|
+
else if (origin === void 0) value = target;
|
|
16600
|
+
else if (originCoverType === 1 || targetCoverType === 1) value = transformType === 0 && target !== void 0 ? target : origin;
|
|
16601
|
+
else if (transformType === 0) value = target;
|
|
16602
|
+
if (value !== void 0) Object.assign(paragraph, { [key]: Tools.deepClone(value) });
|
|
16603
|
+
}
|
|
16581
16604
|
if (paragraph.bullet === void 0) delete paragraph.bullet;
|
|
16582
16605
|
return paragraph;
|
|
16583
16606
|
}
|
|
@@ -16915,11 +16938,7 @@ var TextX = class TextX {
|
|
|
16915
16938
|
}
|
|
16916
16939
|
if (action.t === "r" && action.body != null) {
|
|
16917
16940
|
const body = getBodySlice(doc, index, index + action.len, true);
|
|
16918
|
-
for (const field of [
|
|
16919
|
-
"tables",
|
|
16920
|
-
"columnGroups",
|
|
16921
|
-
"blockRanges"
|
|
16922
|
-
]) if (action.body[field] == null) delete body[field];
|
|
16941
|
+
for (const field of Object.keys(body)) if (field !== "dataStream" && field !== "paragraphs" && action.body[field] == null) Reflect.deleteProperty(body, field);
|
|
16923
16942
|
if (action.body.paragraphs == null) delete body.paragraphs;
|
|
16924
16943
|
else {
|
|
16925
16944
|
var _body$paragraphs;
|
|
@@ -25238,8 +25257,7 @@ let UniverInstanceService = class UniverInstanceService extends Disposable {
|
|
|
25238
25257
|
}
|
|
25239
25258
|
}
|
|
25240
25259
|
_tryResetFocusOnRemoval(unitId) {
|
|
25241
|
-
|
|
25242
|
-
if (((_this$focused3 = this.focused) === null || _this$focused3 === void 0 ? void 0 : _this$focused3.getUnitId()) === unitId) this._focused$.next(null);
|
|
25260
|
+
if (this._focused$.getValue() === unitId) this.focusUnit(null);
|
|
25243
25261
|
}
|
|
25244
25262
|
_getUnitById(unitId) {
|
|
25245
25263
|
for (const [type, units] of this._unitsByType) {
|
|
@@ -27172,6 +27190,69 @@ var RTree = class {
|
|
|
27172
27190
|
}
|
|
27173
27191
|
};
|
|
27174
27192
|
|
|
27193
|
+
//#endregion
|
|
27194
|
+
//#region src/types/enum/record-filter.ts
|
|
27195
|
+
/**
|
|
27196
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27197
|
+
*
|
|
27198
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27199
|
+
* you may not use this file except in compliance with the License.
|
|
27200
|
+
* You may obtain a copy of the License at
|
|
27201
|
+
*
|
|
27202
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27203
|
+
*
|
|
27204
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27205
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27206
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27207
|
+
* See the License for the specific language governing permissions and
|
|
27208
|
+
* limitations under the License.
|
|
27209
|
+
*/
|
|
27210
|
+
/** Typed record identities shared by compact Table and external report filters. */
|
|
27211
|
+
let RecordValueType = /* @__PURE__ */ function(RecordValueType) {
|
|
27212
|
+
RecordValueType["Blank"] = "blank";
|
|
27213
|
+
RecordValueType["String"] = "string";
|
|
27214
|
+
RecordValueType["Number"] = "number";
|
|
27215
|
+
RecordValueType["Date"] = "date";
|
|
27216
|
+
RecordValueType["Boolean"] = "boolean";
|
|
27217
|
+
RecordValueType["Error"] = "error";
|
|
27218
|
+
return RecordValueType;
|
|
27219
|
+
}({});
|
|
27220
|
+
/** Values are wire identifiers; an absent native Table filter represents All. */
|
|
27221
|
+
let FilterSelectionMode = /* @__PURE__ */ function(FilterSelectionMode) {
|
|
27222
|
+
FilterSelectionMode["All"] = "all";
|
|
27223
|
+
FilterSelectionMode["Include"] = "include";
|
|
27224
|
+
FilterSelectionMode["Exclude"] = "exclude";
|
|
27225
|
+
return FilterSelectionMode;
|
|
27226
|
+
}({});
|
|
27227
|
+
|
|
27228
|
+
//#endregion
|
|
27229
|
+
//#region src/shared/record-value.ts
|
|
27230
|
+
function getRecordValueKey(_value) {
|
|
27231
|
+
const value = _value;
|
|
27232
|
+
if (!isRecord(value) || typeof value.type !== "string") throw new TypeError("Invalid record value.");
|
|
27233
|
+
switch (value.type) {
|
|
27234
|
+
case "blank":
|
|
27235
|
+
if ("value" in value) throw new TypeError("Blank record values cannot have a value.");
|
|
27236
|
+
return "[\"blank\"]";
|
|
27237
|
+
case "string":
|
|
27238
|
+
case "error":
|
|
27239
|
+
if (typeof value.value !== "string") throw new TypeError("Invalid record value.");
|
|
27240
|
+
return JSON.stringify([value.type, value.value]);
|
|
27241
|
+
case "boolean":
|
|
27242
|
+
if (typeof value.value !== "boolean") throw new TypeError("Invalid record value.");
|
|
27243
|
+
return JSON.stringify([value.type, value.value]);
|
|
27244
|
+
case "number":
|
|
27245
|
+
case "date":
|
|
27246
|
+
if (typeof value.value !== "number") throw new TypeError("Invalid record value.");
|
|
27247
|
+
if (!Number.isFinite(value.value)) throw new RangeError("Record numeric values must be finite.");
|
|
27248
|
+
return JSON.stringify([value.type, value.value === 0 ? 0 : value.value]);
|
|
27249
|
+
default: throw new TypeError("Unknown record value type.");
|
|
27250
|
+
}
|
|
27251
|
+
}
|
|
27252
|
+
function isRecord(value) {
|
|
27253
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
27254
|
+
}
|
|
27255
|
+
|
|
27175
27256
|
//#endregion
|
|
27176
27257
|
//#region src/shared/timer.ts
|
|
27177
27258
|
/**
|
|
@@ -27218,6 +27299,32 @@ function delayAnimationFrame(frames = 1) {
|
|
|
27218
27299
|
});
|
|
27219
27300
|
}
|
|
27220
27301
|
|
|
27302
|
+
//#endregion
|
|
27303
|
+
//#region src/shared/units.ts
|
|
27304
|
+
/**
|
|
27305
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27306
|
+
*
|
|
27307
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27308
|
+
* you may not use this file except in compliance with the License.
|
|
27309
|
+
* You may obtain a copy of the License at
|
|
27310
|
+
*
|
|
27311
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27312
|
+
*
|
|
27313
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27314
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27315
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27316
|
+
* See the License for the specific language governing permissions and
|
|
27317
|
+
* limitations under the License.
|
|
27318
|
+
*/
|
|
27319
|
+
/** English Metric Units per CSS pixel at 96 DPI. */
|
|
27320
|
+
const EMU_PER_CSS_PX = 9525;
|
|
27321
|
+
function cssPxToEmu(value) {
|
|
27322
|
+
return Math.round(value * EMU_PER_CSS_PX);
|
|
27323
|
+
}
|
|
27324
|
+
function emuToCssPx(value) {
|
|
27325
|
+
return value / EMU_PER_CSS_PX;
|
|
27326
|
+
}
|
|
27327
|
+
|
|
27221
27328
|
//#endregion
|
|
27222
27329
|
//#region src/sheets/clone.ts
|
|
27223
27330
|
/**
|
|
@@ -27444,6 +27551,21 @@ Skeleton = __decorate([__decorateParam(0, Inject(LocaleService))], Skeleton);
|
|
|
27444
27551
|
//#endregion
|
|
27445
27552
|
//#region src/sheets/sheet-skeleton.ts
|
|
27446
27553
|
/**
|
|
27554
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
27555
|
+
*
|
|
27556
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27557
|
+
* you may not use this file except in compliance with the License.
|
|
27558
|
+
* You may obtain a copy of the License at
|
|
27559
|
+
*
|
|
27560
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27561
|
+
*
|
|
27562
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27563
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
27564
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27565
|
+
* See the License for the specific language governing permissions and
|
|
27566
|
+
* limitations under the License.
|
|
27567
|
+
*/
|
|
27568
|
+
/**
|
|
27447
27569
|
* Reusable gap fixture for visual and integration testing.
|
|
27448
27570
|
*/
|
|
27449
27571
|
function createSheetGapTestConfig(overrides = {}) {
|
|
@@ -28041,13 +28163,14 @@ let SheetSkeleton = class SheetSkeleton extends Skeleton {
|
|
|
28041
28163
|
};
|
|
28042
28164
|
}
|
|
28043
28165
|
/**
|
|
28044
|
-
*
|
|
28166
|
+
* Coordinates include the row and column headers. Defaults to the current viewport transform;
|
|
28167
|
+
* pass unit scales and zero scroll for Sheet model coordinates.
|
|
28045
28168
|
*/
|
|
28046
|
-
getCellIndexAndOffsetByPosition(offsetX, offsetY
|
|
28047
|
-
|
|
28048
|
-
|
|
28049
|
-
|
|
28050
|
-
});
|
|
28169
|
+
getCellIndexAndOffsetByPosition(offsetX, offsetY, scaleX = this._scaleX, scaleY = this._scaleY, scrollXY = {
|
|
28170
|
+
x: this._scrollX,
|
|
28171
|
+
y: this._scrollY
|
|
28172
|
+
}) {
|
|
28173
|
+
const { actualRow, actualColumn, startX, startY } = this.getCellWithCoordByOffset(offsetX, offsetY, scaleX, scaleY, scrollXY);
|
|
28051
28174
|
return {
|
|
28052
28175
|
row: actualRow,
|
|
28053
28176
|
rowOffset: offsetY - startY,
|
|
@@ -28433,41 +28556,6 @@ let DataValidationType = /* @__PURE__ */ function(DataValidationType) {
|
|
|
28433
28556
|
return DataValidationType;
|
|
28434
28557
|
}({});
|
|
28435
28558
|
|
|
28436
|
-
//#endregion
|
|
28437
|
-
//#region src/types/enum/record-filter.ts
|
|
28438
|
-
/**
|
|
28439
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
28440
|
-
*
|
|
28441
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
28442
|
-
* you may not use this file except in compliance with the License.
|
|
28443
|
-
* You may obtain a copy of the License at
|
|
28444
|
-
*
|
|
28445
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
28446
|
-
*
|
|
28447
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
28448
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28449
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
28450
|
-
* See the License for the specific language governing permissions and
|
|
28451
|
-
* limitations under the License.
|
|
28452
|
-
*/
|
|
28453
|
-
/** Typed record identities shared by compact Table and external report filters. */
|
|
28454
|
-
let RecordValueType = /* @__PURE__ */ function(RecordValueType) {
|
|
28455
|
-
RecordValueType["Blank"] = "blank";
|
|
28456
|
-
RecordValueType["String"] = "string";
|
|
28457
|
-
RecordValueType["Number"] = "number";
|
|
28458
|
-
RecordValueType["Date"] = "date";
|
|
28459
|
-
RecordValueType["Boolean"] = "boolean";
|
|
28460
|
-
RecordValueType["Error"] = "error";
|
|
28461
|
-
return RecordValueType;
|
|
28462
|
-
}({});
|
|
28463
|
-
/** Values are wire identifiers; an absent native Table filter represents All. */
|
|
28464
|
-
let FilterSelectionMode = /* @__PURE__ */ function(FilterSelectionMode) {
|
|
28465
|
-
FilterSelectionMode["All"] = "all";
|
|
28466
|
-
FilterSelectionMode["Include"] = "include";
|
|
28467
|
-
FilterSelectionMode["Exclude"] = "exclude";
|
|
28468
|
-
return FilterSelectionMode;
|
|
28469
|
-
}({});
|
|
28470
|
-
|
|
28471
28559
|
//#endregion
|
|
28472
28560
|
//#region src/services/resource-loader/resource-loader.service.ts
|
|
28473
28561
|
let ResourceLoaderService = class ResourceLoaderService extends Disposable {
|
|
@@ -28761,4 +28849,4 @@ function createUniverInjector(parentInjector, override) {
|
|
|
28761
28849
|
installShims();
|
|
28762
28850
|
|
|
28763
28851
|
//#endregion
|
|
28764
|
-
export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_COUNT_KEY, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_COUNT_KEY, DEFAULT_WORKSHEET_ROW_HEIGHT, DEFAULT_WORKSHEET_ROW_HEIGHT_KEY, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DateSystem, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EXCEL_1904_OFFSET, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FilterSelectionMode, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, FormulaType, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ITERATION_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, OBJECT_PERMISSION_CONFIG_KEY, ObjectMatrix, ObjectPermissionRuleModel, ObjectPermissionService, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, RecordValueType, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, SHEET_TEXT_LINE_GAP, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WorksheetHiddenState, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, excelDateSerial, excelDateTimePartsToSerial, excelDateTimeSerial, excelSerialToDate, excelSerialToDateTime, excelSerialToDateTimeParts, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDateSystemMaxSerial, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getReverseDirection, getRichTextEditPath, getSdtBindingKey, getSdtBindingValue, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, normalizeWorkbookCalculationSettings, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
|
|
28852
|
+
export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_COUNT_KEY, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_COUNT_KEY, DEFAULT_WORKSHEET_ROW_HEIGHT, DEFAULT_WORKSHEET_ROW_HEIGHT_KEY, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DateSystem, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EMU_PER_CSS_PX, EXCEL_1904_OFFSET, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FilterSelectionMode, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, FormulaType, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ITERATION_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, OBJECT_PERMISSION_CONFIG_KEY, ObjectMatrix, ObjectPermissionRuleModel, ObjectPermissionService, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, RecordValueType, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, SHEET_TEXT_LINE_GAP, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WorksheetHiddenState, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, cssPxToEmu, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, emuToCssPx, excelDateSerial, excelDateTimePartsToSerial, excelDateTimeSerial, excelSerialToDate, excelSerialToDateTime, excelSerialToDateTimeParts, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDateSystemMaxSerial, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtLocaleTag, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getRecordValueKey, getReverseDirection, getRichTextEditPath, getSdtBindingKey, getSdtBindingValue, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, normalizeWorkbookCalculationSettings, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
|
package/lib/facade.js
CHANGED
|
@@ -38,10 +38,9 @@ var FBaseInitialable = class extends Disposable {
|
|
|
38
38
|
this._injector = _injector;
|
|
39
39
|
const Ctor = this.constructor;
|
|
40
40
|
if (Boolean(Ctor[ManualInitSymbol])) return;
|
|
41
|
-
const self = this;
|
|
42
41
|
const initializers = Object.getPrototypeOf(this)[InitializerSymbol$1];
|
|
43
|
-
if (initializers) initializers.forEach(
|
|
44
|
-
fn.apply(
|
|
42
|
+
if (initializers) initializers.forEach((fn) => {
|
|
43
|
+
fn.apply(this, [_injector]);
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
46
|
/**
|