@univerjs/sheets 0.24.0 → 0.25.0-insiders.20260608-e4336f7
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 +641 -466
- package/lib/cjs/index.js +146 -128
- package/lib/cjs/locale/ar-SA.js +52 -0
- package/lib/cjs/locale/ca-ES.js +36 -1
- package/lib/cjs/locale/de-DE.js +52 -0
- package/lib/cjs/locale/en-US.js +36 -1
- package/lib/cjs/locale/es-ES.js +36 -1
- package/lib/cjs/locale/fa-IR.js +36 -1
- package/lib/cjs/locale/fr-FR.js +36 -1
- package/lib/cjs/locale/id-ID.js +52 -0
- package/lib/cjs/locale/it-IT.js +52 -0
- package/lib/cjs/locale/ja-JP.js +36 -1
- package/lib/cjs/locale/ko-KR.js +36 -1
- package/lib/cjs/locale/pl-PL.js +52 -0
- package/lib/cjs/locale/pt-BR.js +52 -0
- package/lib/cjs/locale/ru-RU.js +36 -1
- package/lib/cjs/locale/sk-SK.js +36 -1
- package/lib/cjs/locale/vi-VN.js +36 -1
- package/lib/cjs/locale/zh-CN.js +36 -1
- package/lib/cjs/locale/zh-HK.js +52 -0
- package/lib/cjs/locale/zh-TW.js +36 -1
- package/lib/es/facade.js +642 -461
- package/lib/es/index.js +139 -129
- package/lib/es/locale/ar-SA.js +51 -0
- package/lib/es/locale/ca-ES.js +36 -1
- package/lib/es/locale/de-DE.js +51 -0
- package/lib/es/locale/en-US.js +36 -1
- package/lib/es/locale/es-ES.js +36 -1
- package/lib/es/locale/fa-IR.js +36 -1
- package/lib/es/locale/fr-FR.js +36 -1
- package/lib/es/locale/id-ID.js +51 -0
- package/lib/es/locale/it-IT.js +51 -0
- package/lib/es/locale/ja-JP.js +36 -1
- package/lib/es/locale/ko-KR.js +36 -1
- package/lib/es/locale/pl-PL.js +51 -0
- package/lib/es/locale/pt-BR.js +51 -0
- package/lib/es/locale/ru-RU.js +36 -1
- package/lib/es/locale/sk-SK.js +36 -1
- package/lib/es/locale/vi-VN.js +36 -1
- package/lib/es/locale/zh-CN.js +36 -1
- package/lib/es/locale/zh-HK.js +51 -0
- package/lib/es/locale/zh-TW.js +36 -1
- package/lib/facade.js +642 -461
- package/lib/index.js +139 -129
- package/lib/locale/ar-SA.js +51 -0
- package/lib/locale/ca-ES.js +36 -1
- package/lib/locale/de-DE.js +51 -0
- package/lib/locale/en-US.js +36 -1
- package/lib/locale/es-ES.js +36 -1
- package/lib/locale/fa-IR.js +36 -1
- package/lib/locale/fr-FR.js +36 -1
- package/lib/locale/id-ID.js +51 -0
- package/lib/locale/it-IT.js +51 -0
- package/lib/locale/ja-JP.js +36 -1
- package/lib/locale/ko-KR.js +36 -1
- package/lib/locale/pl-PL.js +51 -0
- package/lib/locale/pt-BR.js +51 -0
- package/lib/locale/ru-RU.js +36 -1
- package/lib/locale/sk-SK.js +36 -1
- package/lib/locale/vi-VN.js +36 -1
- package/lib/locale/zh-CN.js +36 -1
- package/lib/locale/zh-HK.js +51 -0
- package/lib/locale/zh-TW.js +36 -1
- package/lib/types/basics/utils.d.ts +2 -0
- package/lib/types/commands/commands/add-range-protection.command.d.ts +1 -1
- package/lib/types/commands/commands/delete-range-protection.command.d.ts +1 -1
- package/lib/types/commands/commands/register-range-theme.command.d.ts +1 -1
- package/lib/types/commands/commands/set-protection.command.d.ts +1 -1
- package/lib/types/commands/mutations/add-range-protection.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/add-range-theme.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/register-range-theme.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-range-protection.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-range-theme.mutation.d.ts +1 -1
- package/lib/types/controllers/permission/sheet-permission-check.controller.d.ts +1 -1
- package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +1 -1
- package/lib/types/controllers/permission/sheet-permission-view-model.controller.d.ts +1 -1
- package/lib/types/controllers/zebar-crossing.controller.d.ts +1 -1
- package/lib/types/facade/{f-sheet-hooks.d.ts → const.d.ts} +1 -9
- package/lib/types/facade/f-range.d.ts +187 -94
- package/lib/types/facade/f-selection.d.ts +15 -8
- package/lib/types/facade/f-univer.d.ts +33 -64
- package/lib/types/facade/f-workbook.d.ts +15 -50
- package/lib/types/facade/f-worksheet.d.ts +202 -101
- package/lib/types/facade/index.d.ts +0 -1
- package/lib/types/facade/permission/f-range-permission.d.ts +8 -4
- package/lib/types/facade/permission/f-range-protection-rule.d.ts +18 -9
- package/lib/types/facade/permission/f-worksheet-permission.d.ts +36 -18
- package/lib/types/index.d.ts +9 -8
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +39 -0
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +3 -3
- package/lib/types/services/permission/range-permission/range-protection.service.d.ts +2 -2
- package/lib/types/services/permission/type.d.ts +1 -1
- package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +1 -1
- package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +1 -1
- package/lib/types/services/range-theme.service.d.ts +3 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
- package/LICENSE +0 -176
- /package/lib/types/{model → models}/range-protection-render.model.d.ts +0 -0
- /package/lib/types/{model → models}/range-protection-rule.model.d.ts +0 -0
- /package/lib/types/{model → models}/range-protection.cache.d.ts +0 -0
- /package/lib/types/{model → models}/range-theme-model.d.ts +0 -0
- /package/lib/types/{model → models}/range-theme-util.d.ts +0 -0
- /package/lib/types/{model → models}/range-themes/build-in-theme.factory.d.ts +0 -0
- /package/lib/types/{model → models}/range-themes/default.d.ts +0 -0
- /package/lib/types/{model → models}/zebra-crossing-cache.d.ts +0 -0
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AUTO_HEIGHT_FOR_MERGED_CELLS, BORDER_KEYS, BORDER_STYLE_KEYS, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, COLOR_STYLE_KEYS, CellModeEnum, CellValueType, CommandType, CustomCommandExecutionError, DependentOn, Dimension, Direction, Disposable, DisposableCollection, DocumentDataModel, ErrorService, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, PADDING_KEYS, PermissionStatus, Plugin, RANGE_TYPE, RTree, Range, Rectangle, RxDisposable, STYLE_KEYS, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, TextX, Tools, UniverInstanceType, UserManagerService, cellToRange, cloneWorksheetData, composeInterceptors, concatMatrixArray, createIdentifier, createInterceptorKey, createRowColIter, generateRandomId, getArrayLength, isBooleanString, isDefaultFormat, isFormulaId, isFormulaString, isICellData, isRealNum, isSafeNumeric, isTextFormat, mapObjectMatrix, merge, mergeIntervals, mergeOverrideWithDependencies, mergeWorksheetSnapshotWithDefault, moveMatrixArray, normalizeTextRuns, numfmt, queryObjectMatrix, registerDependencies, remove, selectionToArray, sequenceExecute, sliceMatrixArray, spliceArray, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
|
|
1
|
+
import { AUTO_HEIGHT_FOR_MERGED_CELLS, BORDER_KEYS, BORDER_STYLE_KEYS, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, COLOR_STYLE_KEYS, CellModeEnum, CellValueType, CommandType, CustomCommandExecutionError, DependentOn, Dimension, Direction, Disposable, DisposableCollection, DocumentDataModel, ErrorService, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, PADDING_KEYS, PermissionStatus, Plugin, RANGE_TYPE, RTree, Range, Rectangle, RxDisposable, STYLE_KEYS, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, TextX, Tools, UniverInstanceType, UserManagerService, cellToRange, cloneWorksheetData, composeInterceptors, concatMatrixArray, createIdentifier, createInterceptorKey, createRowColIter, escapeRegExp, generateRandomId, getArrayLength, isBooleanString, isDefaultFormat, isFormulaId, isFormulaString, isICellData, isRealNum, isSafeNumeric, isTextFormat, mapObjectMatrix, merge, mergeIntervals, mergeOverrideWithDependencies, mergeWorksheetSnapshotWithDefault, moveMatrixArray, normalizeTextRuns, numfmt, queryObjectMatrix, registerDependencies, remove, selectionToArray, sequenceExecute, sliceMatrixArray, spliceArray, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
|
|
2
2
|
import { BehaviorSubject, Subject, distinctUntilChanged, filter, first, map, merge as merge$1, of, share, shareReplay, skip, switchMap, takeUntil } from "rxjs";
|
|
3
3
|
import { IDefinedNamesService, LexerTreeBuilder, RemoveDefinedNameMutation, SetDefinedNameMutation, SetDefinedNameMutationFactory, SetFormulaCalculationResultMutation, UniverFormulaEnginePlugin, deserializeRangeWithSheet, deserializeRangeWithSheetWithCache, handleNumfmtInCell, isReferenceStringWithEffectiveColumn, operatorToken, sequenceNodeType, stripErrorMargin } from "@univerjs/engine-formula";
|
|
4
4
|
import { SpreadsheetSkeleton, hasCJKText, precisionTo } from "@univerjs/engine-render";
|
|
@@ -158,7 +158,7 @@ const RangeThemeInterceptorId = "sheet.interceptor.range-theme-id";
|
|
|
158
158
|
const IgnoreRangeThemeInterceptorKey = "sheet.interceptor.ignore-range-theme";
|
|
159
159
|
|
|
160
160
|
//#endregion
|
|
161
|
-
//#region \0@oxc-project+runtime@0.
|
|
161
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
162
162
|
function _typeof(o) {
|
|
163
163
|
"@babel/helpers - typeof";
|
|
164
164
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -169,7 +169,7 @@ function _typeof(o) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
//#endregion
|
|
172
|
-
//#region \0@oxc-project+runtime@0.
|
|
172
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
173
173
|
function toPrimitive(t, r) {
|
|
174
174
|
if ("object" != _typeof(t) || !t) return t;
|
|
175
175
|
var e = t[Symbol.toPrimitive];
|
|
@@ -182,14 +182,14 @@ function toPrimitive(t, r) {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
//#endregion
|
|
185
|
-
//#region \0@oxc-project+runtime@0.
|
|
185
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
186
186
|
function toPropertyKey(t) {
|
|
187
187
|
var i = toPrimitive(t, "string");
|
|
188
188
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
//#endregion
|
|
192
|
-
//#region \0@oxc-project+runtime@0.
|
|
192
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
193
193
|
function _defineProperty(e, r, t) {
|
|
194
194
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
195
195
|
value: t,
|
|
@@ -200,7 +200,7 @@ function _defineProperty(e, r, t) {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
//#endregion
|
|
203
|
-
//#region \0@oxc-project+runtime@0.
|
|
203
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorateParam.js
|
|
204
204
|
function __decorateParam(paramIndex, decorator) {
|
|
205
205
|
return function(target, key) {
|
|
206
206
|
decorator(target, key, paramIndex);
|
|
@@ -208,7 +208,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
//#endregion
|
|
211
|
-
//#region \0@oxc-project+runtime@0.
|
|
211
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
|
|
212
212
|
function __decorate(decorators, target, key, desc) {
|
|
213
213
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
214
214
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -563,7 +563,7 @@ function getWorksheetDisposableID(unitId, worksheet) {
|
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
//#endregion
|
|
566
|
-
//#region src/
|
|
566
|
+
//#region src/models/range-theme-util.ts
|
|
567
567
|
const serializeRangeStyle = (style) => {
|
|
568
568
|
const result = {};
|
|
569
569
|
if (style.bg) result.bg = { ...style.bg };
|
|
@@ -833,7 +833,7 @@ var RangeThemeStyle = class {
|
|
|
833
833
|
};
|
|
834
834
|
|
|
835
835
|
//#endregion
|
|
836
|
-
//#region src/
|
|
836
|
+
//#region src/models/range-themes/build-in-theme.factory.ts
|
|
837
837
|
/**
|
|
838
838
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
839
839
|
*
|
|
@@ -1061,7 +1061,7 @@ const buildInThemes = [
|
|
|
1061
1061
|
];
|
|
1062
1062
|
|
|
1063
1063
|
//#endregion
|
|
1064
|
-
//#region src/
|
|
1064
|
+
//#region src/models/range-themes/default.ts
|
|
1065
1065
|
const defaultRangeThemeStyleJSON = {
|
|
1066
1066
|
headerRowStyle: {
|
|
1067
1067
|
bg: { rgb: "rgb(68,114,196)" },
|
|
@@ -1085,7 +1085,7 @@ const defaultRangeThemeStyleJSONWithLastRowStyle = new RangeThemeStyle("default-
|
|
|
1085
1085
|
});
|
|
1086
1086
|
|
|
1087
1087
|
//#endregion
|
|
1088
|
-
//#region src/
|
|
1088
|
+
//#region src/models/zebra-crossing-cache.ts
|
|
1089
1089
|
/**
|
|
1090
1090
|
* This class is used for caching zebra crossing toggle ranges.
|
|
1091
1091
|
* `toggleRanges` represents the ranges within the visible area where the original odd/even row state is reversed due to hidden rows.
|
|
@@ -1173,7 +1173,7 @@ var ZebraCrossingCache = class {
|
|
|
1173
1173
|
};
|
|
1174
1174
|
|
|
1175
1175
|
//#endregion
|
|
1176
|
-
//#region src/
|
|
1176
|
+
//#region src/models/range-theme-model.ts
|
|
1177
1177
|
const SHEET_RANGE_THEME_MODEL_PLUGIN = "SHEET_RANGE_THEME_MODEL_PLUGIN";
|
|
1178
1178
|
let SheetRangeThemeModel = class SheetRangeThemeModel extends Disposable {
|
|
1179
1179
|
constructor(_sheetInterceptorService, _resourceManagerService, _univerInstanceService) {
|
|
@@ -3077,21 +3077,21 @@ function getSkeletonChangedEffectedRange(commandInfo, columnCount) {
|
|
|
3077
3077
|
//#endregion
|
|
3078
3078
|
//#region src/basics/defined-name-utils.ts
|
|
3079
3079
|
function validateDefinedName(name, options) {
|
|
3080
|
-
if (name.length === 0) return "definedName.nameEmpty";
|
|
3080
|
+
if (name.length === 0) return "sheets.definedName.nameEmpty";
|
|
3081
3081
|
const { unitId, formulaOrRefString, univerInstanceService, definedNamesService, superTableService, functionService, id } = options;
|
|
3082
3082
|
/**
|
|
3083
3083
|
* The defined name can't be duplicate with existing defined names.
|
|
3084
3084
|
* If id is provided, it means we are updating an existing defined name. We should allow the name to be the same as itself.
|
|
3085
3085
|
*/
|
|
3086
3086
|
const existingDefinedName = definedNamesService.getValueByName(unitId, name);
|
|
3087
|
-
if (existingDefinedName && (id === null || id === void 0 || id.length === 0 || existingDefinedName.id !== id)) return "definedName.nameDuplicate";
|
|
3088
|
-
if (superTableService.hasTable(unitId, name)) return "definedName.nameDuplicate";
|
|
3089
|
-
if (!Tools.isValidParameter(name) || isReferenceStringWithEffectiveColumn(name) || !Tools.isStartValidPosition(name) && !hasCJKText(name.substring(0, 1))) return "definedName.nameInvalid";
|
|
3087
|
+
if (existingDefinedName && (id === null || id === void 0 || id.length === 0 || existingDefinedName.id !== id)) return "sheets.definedName.nameDuplicate";
|
|
3088
|
+
if (superTableService.hasTable(unitId, name)) return "sheets.definedName.nameDuplicate";
|
|
3089
|
+
if (!Tools.isValidParameter(name) || isReferenceStringWithEffectiveColumn(name) || !Tools.isStartValidPosition(name) && !hasCJKText(name.substring(0, 1))) return "sheets.definedName.nameInvalid";
|
|
3090
3090
|
const workbook = univerInstanceService.getUnit(unitId, UniverInstanceType.UNIVER_SHEET);
|
|
3091
3091
|
if (!workbook) throw new Error(`Workbook not found for unitId: ${unitId}`);
|
|
3092
|
-
if (workbook.getSheets().some((sheet) => sheet.getName() === name)) return "definedName.nameSheetConflict";
|
|
3093
|
-
if (formulaOrRefString.length === 0) return "definedName.formulaOrRefStringEmpty";
|
|
3094
|
-
if (functionService.hasExecutor(name.toUpperCase())) return "definedName.nameConflict";
|
|
3092
|
+
if (workbook.getSheets().some((sheet) => sheet.getName() === name)) return "sheets.definedName.nameSheetConflict";
|
|
3093
|
+
if (formulaOrRefString.length === 0) return "sheets.definedName.formulaOrRefStringEmpty";
|
|
3094
|
+
if (functionService.hasExecutor(name.toUpperCase())) return "sheets.definedName.nameConflict";
|
|
3095
3095
|
return true;
|
|
3096
3096
|
}
|
|
3097
3097
|
|
|
@@ -3693,9 +3693,6 @@ function getDelimiterRegexItem(delimiter, treatMultipleDelimitersAsOne, customDe
|
|
|
3693
3693
|
if (treatMultipleDelimitersAsOne) allStr += "+";
|
|
3694
3694
|
return new RegExp(allStr);
|
|
3695
3695
|
}
|
|
3696
|
-
function escapeRegExp(str) {
|
|
3697
|
-
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3698
|
-
}
|
|
3699
3696
|
const getStringFromDataStream = (data) => {
|
|
3700
3697
|
var _data$body;
|
|
3701
3698
|
return ((_data$body = data.body) === null || _data$body === void 0 ? void 0 : _data$body.dataStream.replace(/\r\n$/, "")) || "";
|
|
@@ -3888,9 +3885,19 @@ function getVisibleRanges(ranges, accessor, unitId, subUnitId) {
|
|
|
3888
3885
|
}
|
|
3889
3886
|
return visibleRanges;
|
|
3890
3887
|
}
|
|
3888
|
+
function serializeListOptions(options) {
|
|
3889
|
+
return JSON.stringify(options.filter(Boolean));
|
|
3890
|
+
}
|
|
3891
|
+
function deserializeListOptions(optionsStr) {
|
|
3892
|
+
try {
|
|
3893
|
+
const options = JSON.parse(optionsStr);
|
|
3894
|
+
if (Array.isArray(options) && options.every((option) => typeof option === "string")) return options.filter(Boolean);
|
|
3895
|
+
} catch {}
|
|
3896
|
+
return optionsStr.split(",").filter(Boolean);
|
|
3897
|
+
}
|
|
3891
3898
|
|
|
3892
3899
|
//#endregion
|
|
3893
|
-
//#region src/
|
|
3900
|
+
//#region src/models/range-protection-rule.model.ts
|
|
3894
3901
|
let ViewStateEnum = /* @__PURE__ */ function(ViewStateEnum) {
|
|
3895
3902
|
ViewStateEnum["OthersCanView"] = "othersCanView";
|
|
3896
3903
|
ViewStateEnum["NoOneElseCanView"] = "noOneElseCanView";
|
|
@@ -4324,7 +4331,10 @@ let SheetsSelectionsService = class SheetsSelectionsService extends RxDisposable
|
|
|
4324
4331
|
this._init();
|
|
4325
4332
|
}
|
|
4326
4333
|
_init() {
|
|
4327
|
-
const c$ = this._instanceSrv.getCurrentTypeOfUnit$(UniverInstanceType.UNIVER_SHEET).pipe(shareReplay(
|
|
4334
|
+
const c$ = this._instanceSrv.getCurrentTypeOfUnit$(UniverInstanceType.UNIVER_SHEET).pipe(shareReplay({
|
|
4335
|
+
bufferSize: 1,
|
|
4336
|
+
refCount: true
|
|
4337
|
+
}), takeUntil(this.dispose$));
|
|
4328
4338
|
this.selectionMoveStart$ = c$.pipe(switchMap((workbook) => !workbook ? of() : this._ensureWorkbookSelection(workbook.getUnitId()).selectionMoveStart$), takeUntil(this.dispose$));
|
|
4329
4339
|
this.selectionMoving$ = c$.pipe(switchMap((workbook) => !workbook ? of() : this._ensureWorkbookSelection(workbook.getUnitId()).selectionMoving$), takeUntil(this.dispose$));
|
|
4330
4340
|
this.selectionMoveEnd$ = c$.pipe(switchMap((workbook) => !workbook ? of([]) : this._ensureWorkbookSelection(workbook.getUnitId()).selectionMoveEnd$), takeUntil(this.dispose$));
|
|
@@ -9805,10 +9815,10 @@ const AddWorksheetMergeCommand = {
|
|
|
9805
9815
|
const localeService = accessor.get(LocaleService);
|
|
9806
9816
|
if (!await confirmService.confirm({
|
|
9807
9817
|
id: "merge.confirm.add-worksheet-merge",
|
|
9808
|
-
title: { title: "merge.confirm.warning" },
|
|
9809
|
-
children: { title: "merge.confirm.title" },
|
|
9810
|
-
cancelText: localeService.t("merge.confirm.cancel"),
|
|
9811
|
-
confirmText: localeService.t("merge.confirm.confirm")
|
|
9818
|
+
title: { title: "sheets.merge.confirm.warning" },
|
|
9819
|
+
children: { title: "sheets.merge.confirm.title" },
|
|
9820
|
+
cancelText: localeService.t("sheets.merge.confirm.cancel"),
|
|
9821
|
+
confirmText: localeService.t("sheets.merge.confirm.confirm")
|
|
9812
9822
|
})) return false;
|
|
9813
9823
|
}
|
|
9814
9824
|
const redoMutations = [];
|
|
@@ -11745,22 +11755,22 @@ let AutoFillService = class AutoFillService extends Disposable {
|
|
|
11745
11755
|
_defineProperty(this, "applyType$", this._applyType$.asObservable());
|
|
11746
11756
|
_defineProperty(this, "_menu$", new BehaviorSubject([
|
|
11747
11757
|
{
|
|
11748
|
-
label: "autoFill.copy",
|
|
11758
|
+
label: "sheets.autoFill.copy",
|
|
11749
11759
|
value: "COPY",
|
|
11750
11760
|
disable: false
|
|
11751
11761
|
},
|
|
11752
11762
|
{
|
|
11753
|
-
label: "autoFill.series",
|
|
11763
|
+
label: "sheets.autoFill.series",
|
|
11754
11764
|
value: "SERIES",
|
|
11755
11765
|
disable: false
|
|
11756
11766
|
},
|
|
11757
11767
|
{
|
|
11758
|
-
label: "autoFill.formatOnly",
|
|
11768
|
+
label: "sheets.autoFill.formatOnly",
|
|
11759
11769
|
value: "ONLY_FORMAT",
|
|
11760
11770
|
disable: false
|
|
11761
11771
|
},
|
|
11762
11772
|
{
|
|
11763
|
-
label: "autoFill.noFormat",
|
|
11773
|
+
label: "sheets.autoFill.noFormat",
|
|
11764
11774
|
value: "NO_FORMAT",
|
|
11765
11775
|
disable: false
|
|
11766
11776
|
}
|
|
@@ -17607,6 +17617,70 @@ AutoFillController = __decorate([
|
|
|
17607
17617
|
__decorateParam(2, Inject(Injector))
|
|
17608
17618
|
], AutoFillController);
|
|
17609
17619
|
|
|
17620
|
+
//#endregion
|
|
17621
|
+
//#region src/controllers/calculate-result-apply.controller.ts
|
|
17622
|
+
let CalculateResultApplyController = class CalculateResultApplyController extends Disposable {
|
|
17623
|
+
constructor(_univerInstanceService, _commandService) {
|
|
17624
|
+
super();
|
|
17625
|
+
this._univerInstanceService = _univerInstanceService;
|
|
17626
|
+
this._commandService = _commandService;
|
|
17627
|
+
this._initialize();
|
|
17628
|
+
}
|
|
17629
|
+
_initialize() {
|
|
17630
|
+
this.disposeWithMe(this._commandService.onCommandExecuted((command) => {
|
|
17631
|
+
if (command.id !== SetFormulaCalculationResultMutation.id) return;
|
|
17632
|
+
const { unitData } = command.params;
|
|
17633
|
+
const unitIds = Object.keys(unitData);
|
|
17634
|
+
const redoMutationsInfo = [];
|
|
17635
|
+
for (let i = 0; i < unitIds.length; i++) {
|
|
17636
|
+
const unitId = unitIds[i];
|
|
17637
|
+
const sheetData = unitData[unitId];
|
|
17638
|
+
if (sheetData == null) continue;
|
|
17639
|
+
const sheetIds = Object.keys(sheetData);
|
|
17640
|
+
for (let j = 0; j < sheetIds.length; j++) {
|
|
17641
|
+
const sheetId = sheetIds[j];
|
|
17642
|
+
const cellData = sheetData[sheetId];
|
|
17643
|
+
if (cellData == null) continue;
|
|
17644
|
+
const setRangeValuesMutation = {
|
|
17645
|
+
subUnitId: sheetId,
|
|
17646
|
+
unitId,
|
|
17647
|
+
cellValue: this._getMergedCellData(unitId, sheetId, cellData)
|
|
17648
|
+
};
|
|
17649
|
+
redoMutationsInfo.push({
|
|
17650
|
+
id: SetRangeValuesMutation.id,
|
|
17651
|
+
params: setRangeValuesMutation
|
|
17652
|
+
});
|
|
17653
|
+
}
|
|
17654
|
+
}
|
|
17655
|
+
return sequenceExecute(redoMutationsInfo, this._commandService, {
|
|
17656
|
+
onlyLocal: true,
|
|
17657
|
+
fromFormula: true,
|
|
17658
|
+
applyFormulaCalculationResult: true
|
|
17659
|
+
});
|
|
17660
|
+
}));
|
|
17661
|
+
}
|
|
17662
|
+
/**
|
|
17663
|
+
* Priority that mainly deals with number format in unitData
|
|
17664
|
+
* @param unitId
|
|
17665
|
+
* @param sheetId
|
|
17666
|
+
* @param cellData
|
|
17667
|
+
* @returns
|
|
17668
|
+
*/
|
|
17669
|
+
_getMergedCellData(unitId, sheetId, cellData) {
|
|
17670
|
+
const workbook = this._univerInstanceService.getUniverSheetInstance(unitId);
|
|
17671
|
+
const styles = workbook === null || workbook === void 0 ? void 0 : workbook.getStyles();
|
|
17672
|
+
const worksheet = workbook === null || workbook === void 0 ? void 0 : workbook.getSheetBySheetId(sheetId);
|
|
17673
|
+
const oldCellDataMatrix = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getCellMatrix();
|
|
17674
|
+
const cellDataMatrix = new ObjectMatrix(cellData);
|
|
17675
|
+
cellDataMatrix.forValue((row, col, cell) => {
|
|
17676
|
+
const newCell = handleNumfmtInCell(oldCellDataMatrix === null || oldCellDataMatrix === void 0 ? void 0 : oldCellDataMatrix.getValue(row, col), cell, styles);
|
|
17677
|
+
cellDataMatrix.setValue(row, col, newCell);
|
|
17678
|
+
});
|
|
17679
|
+
return cellDataMatrix.getMatrix();
|
|
17680
|
+
}
|
|
17681
|
+
};
|
|
17682
|
+
CalculateResultApplyController = __decorate([__decorateParam(0, Inject(IUniverInstanceService)), __decorateParam(1, ICommandService)], CalculateResultApplyController);
|
|
17683
|
+
|
|
17610
17684
|
//#endregion
|
|
17611
17685
|
//#region src/controllers/config/config.ts
|
|
17612
17686
|
/**
|
|
@@ -17885,14 +17959,14 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17885
17959
|
params = commandInfo.params;
|
|
17886
17960
|
if (isICellData(params.value) && params.value.f) {
|
|
17887
17961
|
permission = this._permissionCheckWithFormula(params);
|
|
17888
|
-
errorMsg = this._localeService.t("permission.dialog.formulaErr");
|
|
17962
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.formulaErr");
|
|
17889
17963
|
} else {
|
|
17890
17964
|
permission = this._permissionCheckBySetRangeValue({
|
|
17891
17965
|
workbookTypes: [WorkbookEditablePermission],
|
|
17892
17966
|
worksheetTypes: [WorksheetSetCellValuePermission, WorksheetEditPermission],
|
|
17893
17967
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17894
17968
|
}, params);
|
|
17895
|
-
errorMsg = this._localeService.t("permission.dialog.editErr");
|
|
17969
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.editErr");
|
|
17896
17970
|
}
|
|
17897
17971
|
break;
|
|
17898
17972
|
case SetStyleCommand.id:
|
|
@@ -17902,7 +17976,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17902
17976
|
worksheetTypes: [WorksheetSetCellStylePermission, WorksheetEditPermission],
|
|
17903
17977
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17904
17978
|
}, params.range ? [params.range] : void 0, params.unitId, params.subUnitId);
|
|
17905
|
-
errorMsg = this._localeService.t("permission.dialog.setStyleErr");
|
|
17979
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setStyleErr");
|
|
17906
17980
|
break;
|
|
17907
17981
|
case SetBorderCommand.id:
|
|
17908
17982
|
params = commandInfo.params;
|
|
@@ -17911,7 +17985,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17911
17985
|
worksheetTypes: [WorksheetSetCellStylePermission, WorksheetEditPermission],
|
|
17912
17986
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17913
17987
|
}, params === null || params === void 0 ? void 0 : params.ranges, params === null || params === void 0 ? void 0 : params.unitId, params === null || params === void 0 ? void 0 : params.subUnitId);
|
|
17914
|
-
errorMsg = this._localeService.t("permission.dialog.setStyleErr");
|
|
17988
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setStyleErr");
|
|
17915
17989
|
break;
|
|
17916
17990
|
case ClearSelectionAllCommand.id:
|
|
17917
17991
|
params = commandInfo.params;
|
|
@@ -17924,7 +17998,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17924
17998
|
],
|
|
17925
17999
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17926
18000
|
}, params === null || params === void 0 ? void 0 : params.ranges, params === null || params === void 0 ? void 0 : params.unitId, params === null || params === void 0 ? void 0 : params.subUnitId);
|
|
17927
|
-
errorMsg = this._localeService.t("permission.dialog.editErr");
|
|
18001
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.editErr");
|
|
17928
18002
|
break;
|
|
17929
18003
|
case ClearSelectionContentCommand.id:
|
|
17930
18004
|
params = commandInfo.params;
|
|
@@ -17933,7 +18007,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17933
18007
|
worksheetTypes: [WorksheetSetCellValuePermission, WorksheetEditPermission],
|
|
17934
18008
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17935
18009
|
}, params === null || params === void 0 ? void 0 : params.ranges, params === null || params === void 0 ? void 0 : params.unitId, params === null || params === void 0 ? void 0 : params.subUnitId);
|
|
17936
|
-
errorMsg = this._localeService.t("permission.dialog.editErr");
|
|
18010
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.editErr");
|
|
17937
18011
|
break;
|
|
17938
18012
|
case ClearSelectionFormatCommand.id:
|
|
17939
18013
|
params = commandInfo.params;
|
|
@@ -17942,43 +18016,43 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17942
18016
|
worksheetTypes: [WorksheetSetCellStylePermission, WorksheetEditPermission],
|
|
17943
18017
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17944
18018
|
}, params === null || params === void 0 ? void 0 : params.ranges, params === null || params === void 0 ? void 0 : params.unitId, params === null || params === void 0 ? void 0 : params.subUnitId);
|
|
17945
|
-
errorMsg = this._localeService.t("permission.dialog.setStyleErr");
|
|
18019
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setStyleErr");
|
|
17946
18020
|
break;
|
|
17947
18021
|
case DeltaColumnWidthCommand.id:
|
|
17948
18022
|
permission = this.permissionCheckWithoutRange({ worksheetTypes: [WorksheetSetColumnStylePermission] });
|
|
17949
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18023
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
17950
18024
|
break;
|
|
17951
18025
|
case SetColWidthCommand.id:
|
|
17952
18026
|
params = commandInfo.params;
|
|
17953
18027
|
permission = this.permissionCheckWithoutRange({ worksheetTypes: [WorksheetSetColumnStylePermission] }, params.unitId, params.subUnitId);
|
|
17954
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18028
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
17955
18029
|
break;
|
|
17956
18030
|
case DeltaRowHeightCommand.id:
|
|
17957
18031
|
permission = this.permissionCheckWithoutRange({ worksheetTypes: [WorksheetSetRowStylePermission] });
|
|
17958
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18032
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
17959
18033
|
break;
|
|
17960
18034
|
case SetRowHeightCommand.id:
|
|
17961
18035
|
case SetWorksheetRowIsAutoHeightCommand.id:
|
|
17962
18036
|
params = commandInfo.params;
|
|
17963
18037
|
permission = this.permissionCheckWithoutRange({ worksheetTypes: [WorksheetSetRowStylePermission] }, params.unitId, params.subUnitId);
|
|
17964
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18038
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
17965
18039
|
break;
|
|
17966
18040
|
case MoveRowsCommand.id:
|
|
17967
18041
|
case MoveColsCommand.id:
|
|
17968
18042
|
params = commandInfo.params;
|
|
17969
18043
|
permission = this._permissionCheckByMoveRowsColsCommand(params);
|
|
17970
|
-
errorMsg = this._localeService.t("permission.dialog.moveRowColErr");
|
|
18044
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.moveRowColErr");
|
|
17971
18045
|
break;
|
|
17972
18046
|
case MoveRangeCommand.id:
|
|
17973
18047
|
params = commandInfo.params;
|
|
17974
18048
|
permission = this._permissionCheckByMoveRangeCommand(params);
|
|
17975
|
-
errorMsg = this._localeService.t("permission.dialog.moveRangeErr");
|
|
18049
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.moveRangeErr");
|
|
17976
18050
|
break;
|
|
17977
18051
|
case InsertRowByRangeCommand.id:
|
|
17978
18052
|
case InsertColByRangeCommand.id:
|
|
17979
18053
|
params = commandInfo.params;
|
|
17980
18054
|
permission = this._permissionCheckByInsertRowColCommand(params);
|
|
17981
|
-
errorMsg = this._localeService.t("permission.dialog.insertRowColErr");
|
|
18055
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.insertRowColErr");
|
|
17982
18056
|
break;
|
|
17983
18057
|
case RemoveRowByRangeCommand.id:
|
|
17984
18058
|
params = commandInfo.params;
|
|
@@ -17987,7 +18061,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17987
18061
|
worksheetTypes: [WorksheetEditPermission, WorksheetDeleteRowPermission],
|
|
17988
18062
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17989
18063
|
}, [params.range], params.unitId, params.subUnitId);
|
|
17990
|
-
errorMsg = this._localeService.t("permission.dialog.removeRowColErr");
|
|
18064
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.removeRowColErr");
|
|
17991
18065
|
break;
|
|
17992
18066
|
case RemoveColByRangeCommand.id:
|
|
17993
18067
|
params = commandInfo.params;
|
|
@@ -17996,22 +18070,22 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
17996
18070
|
worksheetTypes: [WorksheetEditPermission, WorksheetDeleteColumnPermission],
|
|
17997
18071
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
17998
18072
|
}, [params.range], params.unitId, params.subUnitId);
|
|
17999
|
-
errorMsg = this._localeService.t("permission.dialog.removeRowColErr");
|
|
18073
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.removeRowColErr");
|
|
18000
18074
|
break;
|
|
18001
18075
|
case SetWorksheetOrderCommand.id:
|
|
18002
18076
|
params = commandInfo.params;
|
|
18003
18077
|
permission = this._permissionCheckByWorksheetCommand([WorkbookEditablePermission, WorkbookMoveSheetPermission], params);
|
|
18004
|
-
errorMsg = this._localeService.t("permission.dialog.operatorSheetErr");
|
|
18078
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.operatorSheetErr");
|
|
18005
18079
|
break;
|
|
18006
18080
|
case SetWorksheetNameCommand.id:
|
|
18007
18081
|
params = commandInfo.params;
|
|
18008
18082
|
permission = this._permissionCheckByWorksheetCommand([WorkbookEditablePermission, WorkbookRenameSheetPermission], params);
|
|
18009
|
-
errorMsg = this._localeService.t("permission.dialog.operatorSheetErr");
|
|
18083
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.operatorSheetErr");
|
|
18010
18084
|
break;
|
|
18011
18085
|
case SetWorksheetShowCommand.id:
|
|
18012
18086
|
params = commandInfo.params;
|
|
18013
18087
|
permission = this._permissionCheckByWorksheetCommand([WorkbookEditablePermission, WorkbookHideSheetPermission], params);
|
|
18014
|
-
errorMsg = this._localeService.t("permission.dialog.operatorSheetErr");
|
|
18088
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.operatorSheetErr");
|
|
18015
18089
|
break;
|
|
18016
18090
|
case SetSpecificColsVisibleCommand.id:
|
|
18017
18091
|
params = commandInfo.params;
|
|
@@ -18020,7 +18094,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
18020
18094
|
worksheetTypes: [WorksheetEditPermission, WorksheetSetColumnStylePermission],
|
|
18021
18095
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
18022
18096
|
}, params.ranges, params.unitId, params.subUnitId);
|
|
18023
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18097
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
18024
18098
|
break;
|
|
18025
18099
|
case SetSpecificRowsVisibleCommand.id:
|
|
18026
18100
|
params = commandInfo.params;
|
|
@@ -18029,7 +18103,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
18029
18103
|
worksheetTypes: [WorksheetEditPermission, WorksheetSetRowStylePermission],
|
|
18030
18104
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
18031
18105
|
}, params.ranges, params.unitId, params.subUnitId);
|
|
18032
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18106
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
18033
18107
|
break;
|
|
18034
18108
|
case SetSelectedColsVisibleCommand.id:
|
|
18035
18109
|
permission = this.permissionCheckWithRanges({
|
|
@@ -18037,7 +18111,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
18037
18111
|
worksheetTypes: [WorksheetEditPermission, WorksheetSetColumnStylePermission],
|
|
18038
18112
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
18039
18113
|
});
|
|
18040
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18114
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
18041
18115
|
break;
|
|
18042
18116
|
case SetSelectedRowsVisibleCommand.id:
|
|
18043
18117
|
permission = this.permissionCheckWithRanges({
|
|
@@ -18045,27 +18119,27 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
18045
18119
|
worksheetTypes: [WorksheetEditPermission, WorksheetSetRowStylePermission],
|
|
18046
18120
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
18047
18121
|
});
|
|
18048
|
-
errorMsg = this._localeService.t("permission.dialog.setRowColStyleErr");
|
|
18122
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.setRowColStyleErr");
|
|
18049
18123
|
break;
|
|
18050
18124
|
case InsertRangeMoveRightCommand.id:
|
|
18051
18125
|
params = commandInfo.params;
|
|
18052
18126
|
permission = this._permissionCheckWithInsertOrDeleteMoveRange("right", params);
|
|
18053
|
-
errorMsg = this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18127
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18054
18128
|
break;
|
|
18055
18129
|
case InsertRangeMoveDownCommand.id:
|
|
18056
18130
|
params = commandInfo.params;
|
|
18057
18131
|
permission = this._permissionCheckWithInsertOrDeleteMoveRange("down", params);
|
|
18058
|
-
errorMsg = this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18132
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18059
18133
|
break;
|
|
18060
18134
|
case DeleteRangeMoveLeftCommand.id:
|
|
18061
18135
|
params = commandInfo.params;
|
|
18062
18136
|
permission = this._permissionCheckWithInsertOrDeleteMoveRange("left", params);
|
|
18063
|
-
errorMsg = this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18137
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18064
18138
|
break;
|
|
18065
18139
|
case DeleteRangeMoveUpCommand.id:
|
|
18066
18140
|
params = commandInfo.params;
|
|
18067
18141
|
permission = this._permissionCheckWithInsertOrDeleteMoveRange("up", params);
|
|
18068
|
-
errorMsg = this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18142
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.insertOrDeleteMoveRangeErr");
|
|
18069
18143
|
break;
|
|
18070
18144
|
case AutoFillCommand.id:
|
|
18071
18145
|
params = commandInfo.params;
|
|
@@ -18074,7 +18148,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
18074
18148
|
worksheetTypes: [WorksheetSetCellValuePermission, WorksheetEditPermission],
|
|
18075
18149
|
rangeTypes: [RangeProtectionPermissionEditPoint]
|
|
18076
18150
|
}, [params.targetRange], params.unitId, params.subUnitId);
|
|
18077
|
-
errorMsg = this._localeService.t("permission.dialog.autoFillErr");
|
|
18151
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.autoFillErr");
|
|
18078
18152
|
break;
|
|
18079
18153
|
case InsertDefinedNameCommand.id:
|
|
18080
18154
|
case SetDefinedNameCommand.id:
|
|
@@ -18085,7 +18159,7 @@ let SheetPermissionCheckController = class SheetPermissionCheckController extend
|
|
|
18085
18159
|
workbookTypes: [WorkbookEditablePermission],
|
|
18086
18160
|
worksheetTypes: [WorksheetEditPermission]
|
|
18087
18161
|
}, params.unitId, params.localSheetId);
|
|
18088
|
-
errorMsg = this._localeService.t("permission.dialog.editErr");
|
|
18162
|
+
errorMsg = this._localeService.t("sheets.permission.dialog.editErr");
|
|
18089
18163
|
break;
|
|
18090
18164
|
default: break;
|
|
18091
18165
|
}
|
|
@@ -18866,7 +18940,7 @@ ZebraCrossingCacheController = __decorate([
|
|
|
18866
18940
|
], ZebraCrossingCacheController);
|
|
18867
18941
|
|
|
18868
18942
|
//#endregion
|
|
18869
|
-
//#region src/
|
|
18943
|
+
//#region src/models/range-protection-render.model.ts
|
|
18870
18944
|
let RangeProtectionRenderModel = class RangeProtectionRenderModel {
|
|
18871
18945
|
constructor(_selectionProtectionRuleModel, _permissionService) {
|
|
18872
18946
|
this._selectionProtectionRuleModel = _selectionProtectionRuleModel;
|
|
@@ -18937,7 +19011,7 @@ let RangeProtectionRenderModel = class RangeProtectionRenderModel {
|
|
|
18937
19011
|
RangeProtectionRenderModel = __decorate([__decorateParam(0, Inject(RangeProtectionRuleModel)), __decorateParam(1, Inject(IPermissionService))], RangeProtectionRenderModel);
|
|
18938
19012
|
|
|
18939
19013
|
//#endregion
|
|
18940
|
-
//#region src/
|
|
19014
|
+
//#region src/models/range-protection.cache.ts
|
|
18941
19015
|
let RangeProtectionCache = class RangeProtectionCache extends Disposable {
|
|
18942
19016
|
constructor(_ruleModel, _permissionService, _univerInstanceService) {
|
|
18943
19017
|
super();
|
|
@@ -19222,7 +19296,7 @@ RangeProtectionCache = __decorate([
|
|
|
19222
19296
|
//#endregion
|
|
19223
19297
|
//#region package.json
|
|
19224
19298
|
var name = "@univerjs/sheets";
|
|
19225
|
-
var version = "0.
|
|
19299
|
+
var version = "0.25.0-insiders.20260608-e4336f7";
|
|
19226
19300
|
|
|
19227
19301
|
//#endregion
|
|
19228
19302
|
//#region src/controllers/active-worksheet.controller.ts
|
|
@@ -19516,70 +19590,6 @@ BasicWorksheetController = __decorate([
|
|
|
19516
19590
|
__decorateParam(2, Optional(DataSyncPrimaryController))
|
|
19517
19591
|
], BasicWorksheetController);
|
|
19518
19592
|
|
|
19519
|
-
//#endregion
|
|
19520
|
-
//#region src/controllers/calculate-result-apply.controller.ts
|
|
19521
|
-
let CalculateResultApplyController = class CalculateResultApplyController extends Disposable {
|
|
19522
|
-
constructor(_univerInstanceService, _commandService) {
|
|
19523
|
-
super();
|
|
19524
|
-
this._univerInstanceService = _univerInstanceService;
|
|
19525
|
-
this._commandService = _commandService;
|
|
19526
|
-
this._initialize();
|
|
19527
|
-
}
|
|
19528
|
-
_initialize() {
|
|
19529
|
-
this.disposeWithMe(this._commandService.onCommandExecuted((command) => {
|
|
19530
|
-
if (command.id !== SetFormulaCalculationResultMutation.id) return;
|
|
19531
|
-
const { unitData } = command.params;
|
|
19532
|
-
const unitIds = Object.keys(unitData);
|
|
19533
|
-
const redoMutationsInfo = [];
|
|
19534
|
-
for (let i = 0; i < unitIds.length; i++) {
|
|
19535
|
-
const unitId = unitIds[i];
|
|
19536
|
-
const sheetData = unitData[unitId];
|
|
19537
|
-
if (sheetData == null) continue;
|
|
19538
|
-
const sheetIds = Object.keys(sheetData);
|
|
19539
|
-
for (let j = 0; j < sheetIds.length; j++) {
|
|
19540
|
-
const sheetId = sheetIds[j];
|
|
19541
|
-
const cellData = sheetData[sheetId];
|
|
19542
|
-
if (cellData == null) continue;
|
|
19543
|
-
const setRangeValuesMutation = {
|
|
19544
|
-
subUnitId: sheetId,
|
|
19545
|
-
unitId,
|
|
19546
|
-
cellValue: this._getMergedCellData(unitId, sheetId, cellData)
|
|
19547
|
-
};
|
|
19548
|
-
redoMutationsInfo.push({
|
|
19549
|
-
id: SetRangeValuesMutation.id,
|
|
19550
|
-
params: setRangeValuesMutation
|
|
19551
|
-
});
|
|
19552
|
-
}
|
|
19553
|
-
}
|
|
19554
|
-
return sequenceExecute(redoMutationsInfo, this._commandService, {
|
|
19555
|
-
onlyLocal: true,
|
|
19556
|
-
fromFormula: true,
|
|
19557
|
-
applyFormulaCalculationResult: true
|
|
19558
|
-
});
|
|
19559
|
-
}));
|
|
19560
|
-
}
|
|
19561
|
-
/**
|
|
19562
|
-
* Priority that mainly deals with number format in unitData
|
|
19563
|
-
* @param unitId
|
|
19564
|
-
* @param sheetId
|
|
19565
|
-
* @param cellData
|
|
19566
|
-
* @returns
|
|
19567
|
-
*/
|
|
19568
|
-
_getMergedCellData(unitId, sheetId, cellData) {
|
|
19569
|
-
const workbook = this._univerInstanceService.getUniverSheetInstance(unitId);
|
|
19570
|
-
const styles = workbook === null || workbook === void 0 ? void 0 : workbook.getStyles();
|
|
19571
|
-
const worksheet = workbook === null || workbook === void 0 ? void 0 : workbook.getSheetBySheetId(sheetId);
|
|
19572
|
-
const oldCellDataMatrix = worksheet === null || worksheet === void 0 ? void 0 : worksheet.getCellMatrix();
|
|
19573
|
-
const cellDataMatrix = new ObjectMatrix(cellData);
|
|
19574
|
-
cellDataMatrix.forValue((row, col, cell) => {
|
|
19575
|
-
const newCell = handleNumfmtInCell(oldCellDataMatrix === null || oldCellDataMatrix === void 0 ? void 0 : oldCellDataMatrix.getValue(row, col), cell, styles);
|
|
19576
|
-
cellDataMatrix.setValue(row, col, newCell);
|
|
19577
|
-
});
|
|
19578
|
-
return cellDataMatrix.getMatrix();
|
|
19579
|
-
}
|
|
19580
|
-
};
|
|
19581
|
-
CalculateResultApplyController = __decorate([__decorateParam(0, Inject(IUniverInstanceService)), __decorateParam(1, ICommandService)], CalculateResultApplyController);
|
|
19582
|
-
|
|
19583
19593
|
//#endregion
|
|
19584
19594
|
//#region src/controllers/number-cell.controller.ts
|
|
19585
19595
|
/**
|
|
@@ -21216,4 +21226,4 @@ function convertPositionCellToSheetOverGrid(unitId, subUnitId, cellOverGridPosit
|
|
|
21216
21226
|
}
|
|
21217
21227
|
|
|
21218
21228
|
//#endregion
|
|
21219
|
-
export { AFFECT_LAYOUT_STYLES, AFTER_CELL_EDIT, AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeRedoSelectionsOperationFactory, AddMergeUndoMutationFactory, AddMergeUndoSelectionsOperationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddRangeThemeMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AddWorksheetProtectionMutation, AppendRowCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, AutoFillRules, AutoFillService, AutoFillTools, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, CopyWorksheetEndMutation, DISABLE_NORMAL_SELECTIONS, DefinedNameDataController, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, EffectRefRangId, EmptyMutation, ExclusiveRangeService, FactoryAddRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, FactorySetRangeProtectionMutation, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertColMutation, InsertColMutationUndoFactory, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, InsertRowMutation, InsertRowMutationUndoFactory, InsertSheetCommand, InsertSheetMutation, InsertSheetUndoMutationFactory, InterceptCellContentPriority, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyFilterChangeMutation, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveColsMutationUndoFactory, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, MoveRowsMutationUndoFactory, NumfmtService, OperatorType, PermissionPointsDefinitions, REF_SELECTIONS_ENABLED, RangeMergeUtil, RangeProtectionCache, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRefRangeService, RangeProtectionRenderModel, RangeProtectionRuleModel, RangeProtectionService, RangeThemeStyle, RefRangeService, RefSelectionsService, RefillCommand, RegisterWorksheetRangeThemeStyleCommand, RegisterWorksheetRangeThemeStyleMutation, RemoveColByRangeCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveNumfmtMutation, RemoveRangeThemeMutation, RemoveRowByRangeCommand, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveSheetUndoMutationFactory, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ReorderRangeCommand, ReorderRangeMutation, ReorderRangeUndoMutationFactory, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectRangeCommand, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, SetColDataCommand, SetColDataMutation, SetColDataMutationFactory, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetGridlinesColorCommand, SetGridlinesColorMutation, SetHorizontalTextAlignCommand, SetItalicCommand, SetNumfmtMutation, SetOverlineCommand, SetProtectionCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeThemeMutation, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowDataCommand, SetRowDataMutation, SetRowDataMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorkbookNameCommand, SetWorkbookNameMutation, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetColumnCountCommand, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory, SetWorksheetDefaultStyleCommand, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetPermissionPointsMutation, SetWorksheetProtectionCommand, SetWorksheetProtectionMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory, SetWorksheetRightToLeftCommand, SetWorksheetRightToLeftMutation, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowCountCommand, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyRightCommand, SheetInterceptorService, SheetLazyExecuteScheduleService, SheetPermissionCheckController, SheetPermissionInitController, SheetRangeThemeModel, SheetRangeThemeService, SheetSkeletonChangeType, SheetSkeletonService, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UnitAction, UnitObject, UniverSheetsPlugin, UnregisterWorksheetRangeThemeStyleCommand, UnregisterWorksheetRangeThemeStyleMutation, VALIDATE_CELL, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPermissionService, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSelectionModel, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPermissionService, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, ZebraCrossingCacheController, addMergeCellsUtil, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, checkCellValueType, checkRangesEditablePermission, convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, copyRangeStyles, countCells, createTopMatrixFromMatrix, createTopMatrixFromRanges, defaultLargeSheetOperationConfig, defaultWorkbookPermissionPoints, defaultWorksheetPermissionPoint, discreteRangeToRange, expandToContinuousRange, factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, findAllRectangle, findFirstNonEmptyCell, followSelectionOperation, generateNullCell, generateNullCellValue, getAddMergeMutationRangeByType, getAllRangePermissionPoint, getAllWorkbookPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getCellAtRowCol, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, getDefaultRangePermission, getInsertRangeMutations, getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, getNextPrimaryCell, getPrimaryForRange, getRemoveRangeMutations, getSelectionsService, getSeparateEffectedRangesOnCommand, getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, getVisibleRanges, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleDeleteRangeMutation, handleIRemoveCol, handleIRemoveRow, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRangeMutation, handleInsertRow, handleMoveCols, handleMoveRange, handleMoveRows, isSingleCellSelection, rangeMerge, rangeToDiscreteRange, rotateRange, runRefRangeMutations, setEndForRange, splitRangeText, transformCellsToRange, validateDefinedName };
|
|
21229
|
+
export { AFFECT_LAYOUT_STYLES, AFTER_CELL_EDIT, AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeRedoSelectionsOperationFactory, AddMergeUndoMutationFactory, AddMergeUndoSelectionsOperationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddRangeThemeMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AddWorksheetProtectionMutation, AppendRowCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, AutoFillRules, AutoFillService, AutoFillTools, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CalculateResultApplyController, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, CopyWorksheetEndMutation, DISABLE_NORMAL_SELECTIONS, DefinedNameDataController, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, EffectRefRangId, EmptyMutation, ExclusiveRangeService, FactoryAddRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, FactorySetRangeProtectionMutation, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertColMutation, InsertColMutationUndoFactory, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, InsertRowMutation, InsertRowMutationUndoFactory, InsertSheetCommand, InsertSheetMutation, InsertSheetUndoMutationFactory, InterceptCellContentPriority, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyFilterChangeMutation, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveColsMutationUndoFactory, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, MoveRowsMutationUndoFactory, NumfmtService, OperatorType, PermissionPointsDefinitions, REF_SELECTIONS_ENABLED, RangeMergeUtil, RangeProtectionCache, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRefRangeService, RangeProtectionRenderModel, RangeProtectionRuleModel, RangeProtectionService, RangeThemeStyle, RefRangeService, RefSelectionsService, RefillCommand, RegisterWorksheetRangeThemeStyleCommand, RegisterWorksheetRangeThemeStyleMutation, RemoveColByRangeCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveNumfmtMutation, RemoveRangeThemeMutation, RemoveRowByRangeCommand, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveSheetUndoMutationFactory, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ReorderRangeCommand, ReorderRangeMutation, ReorderRangeUndoMutationFactory, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectRangeCommand, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, SetColDataCommand, SetColDataMutation, SetColDataMutationFactory, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetGridlinesColorCommand, SetGridlinesColorMutation, SetHorizontalTextAlignCommand, SetItalicCommand, SetNumfmtMutation, SetOverlineCommand, SetProtectionCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeThemeMutation, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowDataCommand, SetRowDataMutation, SetRowDataMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorkbookNameCommand, SetWorkbookNameMutation, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetColumnCountCommand, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory, SetWorksheetDefaultStyleCommand, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetPermissionPointsMutation, SetWorksheetProtectionCommand, SetWorksheetProtectionMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory, SetWorksheetRightToLeftCommand, SetWorksheetRightToLeftMutation, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowCountCommand, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyRightCommand, SheetInterceptorService, SheetLazyExecuteScheduleService, SheetPermissionCheckController, SheetPermissionInitController, SheetRangeThemeModel, SheetRangeThemeService, SheetSkeletonChangeType, SheetSkeletonService, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UnitAction, UnitObject, UniverSheetsPlugin, UnregisterWorksheetRangeThemeStyleCommand, UnregisterWorksheetRangeThemeStyleMutation, VALIDATE_CELL, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPermissionService, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSelectionModel, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPermissionService, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, ZebraCrossingCacheController, addMergeCellsUtil, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, checkCellValueType, checkRangesEditablePermission, convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, copyRangeStyles, countCells, createTopMatrixFromMatrix, createTopMatrixFromRanges, defaultLargeSheetOperationConfig, defaultWorkbookPermissionPoints, defaultWorksheetPermissionPoint, deserializeListOptions, discreteRangeToRange, expandToContinuousRange, factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, findAllRectangle, findFirstNonEmptyCell, followSelectionOperation, generateNullCell, generateNullCellValue, getAddMergeMutationRangeByType, getAllRangePermissionPoint, getAllWorkbookPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getCellAtRowCol, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, getDefaultRangePermission, getInsertRangeMutations, getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, getNextPrimaryCell, getPrimaryForRange, getRemoveRangeMutations, getSelectionsService, getSeparateEffectedRangesOnCommand, getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, getVisibleRanges, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleDeleteRangeMutation, handleIRemoveCol, handleIRemoveRow, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRangeMutation, handleInsertRow, handleMoveCols, handleMoveRange, handleMoveRows, isSingleCellSelection, rangeMerge, rangeToDiscreteRange, rotateRange, runRefRangeMutations, serializeListOptions, setEndForRange, splitRangeText, transformCellsToRange, validateDefinedName };
|