@univerjs/sheets 0.4.0-alpha.0 → 0.4.0-alpha.2
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/index.js +2 -2
- package/lib/es/index.js +230 -174
- package/lib/types/commands/commands/toggle-checkbox.command.d.ts +9 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/selections/selection-manager.service.d.ts +8 -2
- package/lib/umd/index.js +2 -2
- package/package.json +8 -13
package/lib/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
|
|
5
|
-
import { Tools, CommandType, ICommandService, IUndoRedoService, RxDisposable, UniverInstanceType, Disposable, IUniverInstanceService, createInterceptorKey, InterceptorEffectEnum, toDisposable, remove, composeInterceptors, DisposableCollection, normalizeTextRuns, CellValueType, isRealNum, isBooleanString, isSafeNumeric, ObjectMatrix, sequenceExecute, LocaleService, createIdentifier, IContextService, selectionToArray, Rectangle, RANGE_TYPE, ErrorService, Range, cellToRange, PermissionStatus, IPermissionService, isICellData, Dimension, getArrayLength, insertMatrixArray, spliceArray, sliceMatrixArray, concatMatrixArray, BooleanNumber, Direction, mergeWorksheetSnapshotWithDefault, moveMatrixArray, BorderType, BorderStyleTypes, FontWeight, FontItalic, Inject, Injector, IResourceManagerService, Optional, IConfigService, queryObjectMatrix, InterceptorManager, LRUMap, ILogService, DependentOn, Plugin, registerDependencies, mergeOverrideWithDependencies, touchDependencies, ColorKit, getCellInfoInMergeData, makeCellRangeToRangeData, createRowColIter } from "@univerjs/core";
|
|
5
|
+
import { Tools, CommandType, ICommandService, IUndoRedoService, RxDisposable, UniverInstanceType, Disposable, IUniverInstanceService, createInterceptorKey, InterceptorEffectEnum, toDisposable, remove, composeInterceptors, DisposableCollection, normalizeTextRuns, CellValueType, isRealNum, isBooleanString, isSafeNumeric, ObjectMatrix, sequenceExecute, LocaleService, createIdentifier, IContextService, selectionToArray, Rectangle, RANGE_TYPE, ErrorService, Range, cellToRange, PermissionStatus, IPermissionService, isICellData, Dimension, getArrayLength, insertMatrixArray, spliceArray, sliceMatrixArray, concatMatrixArray, BooleanNumber, Direction, mergeWorksheetSnapshotWithDefault, moveMatrixArray, BorderType, BorderStyleTypes, FontWeight, FontItalic, Inject, Injector, IResourceManagerService, DocumentDataModel, BuildTextUtils, TextX, Optional, IConfigService, queryObjectMatrix, InterceptorManager, LRUMap, ILogService, DependentOn, Plugin, registerDependencies, mergeOverrideWithDependencies, touchDependencies, ColorKit, getCellInfoInMergeData, makeCellRangeToRangeData, createRowColIter } from "@univerjs/core";
|
|
6
6
|
import { SetDefinedNameMutation, RemoveDefinedNameMutation, SetDefinedNameMutationFactory, SetFormulaCalculationResultMutation, handleNumfmtInCell, IDefinedNamesService, stripErrorMargin, UniverFormulaEnginePlugin } from "@univerjs/engine-formula";
|
|
7
7
|
import { DataSyncPrimaryController } from "@univerjs/rpc";
|
|
8
8
|
import { Subject, BehaviorSubject, shareReplay, takeUntil, switchMap, of, merge, map, first, filter } from "rxjs";
|
|
@@ -165,7 +165,7 @@ var __defProp$g = Object.defineProperty, __getOwnPropDesc$g = Object.getOwnPrope
|
|
|
165
165
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
166
166
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
167
167
|
return kind && result && __defProp$g(target, key, result), result;
|
|
168
|
-
}, "__decorateClass$g"), __decorateParam$g = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$g"), SelectionMoveType = /* @__PURE__ */ ((SelectionMoveType2) => (SelectionMoveType2[SelectionMoveType2.MOVE_START = 0] = "MOVE_START", SelectionMoveType2[SelectionMoveType2.MOVING = 1] = "MOVING", SelectionMoveType2[SelectionMoveType2.MOVE_END = 2] = "MOVE_END", SelectionMoveType2))(SelectionMoveType || {}), _a;
|
|
168
|
+
}, "__decorateClass$g"), __decorateParam$g = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$g"), SelectionMoveType = /* @__PURE__ */ ((SelectionMoveType2) => (SelectionMoveType2[SelectionMoveType2.MOVE_START = 0] = "MOVE_START", SelectionMoveType2[SelectionMoveType2.MOVING = 1] = "MOVING", SelectionMoveType2[SelectionMoveType2.MOVE_END = 2] = "MOVE_END", SelectionMoveType2[SelectionMoveType2.ONLY_SET = 3] = "ONLY_SET", SelectionMoveType2))(SelectionMoveType || {}), _a;
|
|
169
169
|
let SheetsSelectionsService = (_a = class extends RxDisposable {
|
|
170
170
|
constructor(_instanceSrv) {
|
|
171
171
|
super();
|
|
@@ -294,6 +294,8 @@ const _WorkbookSelections = class _WorkbookSelections extends Disposable {
|
|
|
294
294
|
__publicField(this, "selectionMoving$", this._selectionMoving$.asObservable());
|
|
295
295
|
__publicField(this, "_selectionMoveEnd$", new BehaviorSubject([]));
|
|
296
296
|
__publicField(this, "selectionMoveEnd$", this._selectionMoveEnd$.asObservable());
|
|
297
|
+
__publicField(this, "_selectionSet$", new BehaviorSubject([]));
|
|
298
|
+
__publicField(this, "selectionSet$", this._selectionSet$.asObservable());
|
|
297
299
|
__publicField(this, "_beforeSelectionMoveEnd$", new BehaviorSubject([]));
|
|
298
300
|
__publicField(this, "beforeSelectionMoveEnd$", this._beforeSelectionMoveEnd$.asObservable());
|
|
299
301
|
__publicField(this, "_worksheetSelections", /* @__PURE__ */ new Map());
|
|
@@ -328,6 +330,10 @@ const _WorkbookSelections = class _WorkbookSelections extends Disposable {
|
|
|
328
330
|
case 2:
|
|
329
331
|
this._emitOnEnd(selectionDatas);
|
|
330
332
|
break;
|
|
333
|
+
case 3: {
|
|
334
|
+
this._selectionSet$.next(selectionDatas);
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
331
337
|
default:
|
|
332
338
|
this._emitOnEnd(selectionDatas);
|
|
333
339
|
break;
|
|
@@ -1210,16 +1216,21 @@ function getMoveRangeUndoRedoMutations(accessor, from, to, ignoreMerge = !1) {
|
|
|
1210
1216
|
const alignedRangeWithToRange = alignToMergedCellsBorders(toRange, toWorksheet, !1);
|
|
1211
1217
|
if (!Rectangle.equals(toRange, alignedRangeWithToRange) && !ignoreMerge)
|
|
1212
1218
|
return null;
|
|
1213
|
-
const fromCellValue = new ObjectMatrix(), newFromCellValue = new ObjectMatrix();
|
|
1219
|
+
const fromCellValue = new ObjectMatrix(), newFromCellValue = new ObjectMatrix(), fromCellStyle = new ObjectMatrix();
|
|
1214
1220
|
Range.foreach(fromRange, (row, col) => {
|
|
1215
|
-
|
|
1221
|
+
const cellData = fromCellMatrix.getValue(row, col);
|
|
1222
|
+
if (fromCellValue.setValue(row, col, Tools.deepClone(cellData)), cellData) {
|
|
1223
|
+
const style = workbook == null ? void 0 : workbook.getStyles().get(cellData.s);
|
|
1224
|
+
fromCellStyle.setValue(row, col, Tools.deepClone(style));
|
|
1225
|
+
}
|
|
1226
|
+
newFromCellValue.setValue(row, col, null);
|
|
1216
1227
|
});
|
|
1217
1228
|
const toCellValue = new ObjectMatrix(), newToCellValue = new ObjectMatrix();
|
|
1218
1229
|
Range.foreach(toRange, (row, col) => {
|
|
1219
1230
|
toCellValue.setValue(row, col, Tools.deepClone(toCellMatrix.getValue(row, col)));
|
|
1220
1231
|
}), Range.foreach(fromRange, (row, col) => {
|
|
1221
|
-
const cellRange = cellToRange(row, col), relativeRange = Rectangle.getRelativeRange(cellRange, fromRange), range = Rectangle.getPositionRange(relativeRange, toRange);
|
|
1222
|
-
newToCellValue.setValue(range.startRow, range.startColumn,
|
|
1232
|
+
const cellRange = cellToRange(row, col), relativeRange = Rectangle.getRelativeRange(cellRange, fromRange), range = Rectangle.getPositionRange(relativeRange, toRange), styleValue = Tools.deepClone(fromCellStyle.getValue(row, col)), cellValue = Tools.deepClone(fromCellValue.getValue(row, col));
|
|
1233
|
+
cellValue && styleValue && (cellValue.s = styleValue), newToCellValue.setValue(range.startRow, range.startColumn, cellValue);
|
|
1223
1234
|
});
|
|
1224
1235
|
const doMoveRangeMutation = {
|
|
1225
1236
|
fromRange: from.range,
|
|
@@ -1254,33 +1265,33 @@ function getMoveRangeUndoRedoMutations(accessor, from, to, ignoreMerge = !1) {
|
|
|
1254
1265
|
};
|
|
1255
1266
|
}
|
|
1256
1267
|
__name(getMoveRangeUndoRedoMutations, "getMoveRangeUndoRedoMutations");
|
|
1257
|
-
var
|
|
1268
|
+
var R = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(R || {}), D = /* @__PURE__ */ ((E) => (E[E.View = 0] = "View", E[E.Edit = 1] = "Edit", E[E.ManageCollaborator = 2] = "ManageCollaborator", E[E.Print = 3] = "Print", E[E.Duplicate = 4] = "Duplicate", E[E.Comment = 5] = "Comment", E[E.Copy = 6] = "Copy", E[E.Share = 7] = "Share", E[E.Export = 8] = "Export", E[E.MoveWorksheet = 9] = "MoveWorksheet", E[E.DeleteWorksheet = 10] = "DeleteWorksheet", E[E.HideWorksheet = 11] = "HideWorksheet", E[E.RenameWorksheet = 12] = "RenameWorksheet", E[E.CreateWorksheet = 13] = "CreateWorksheet", E[E.SetWorksheetStyle = 14] = "SetWorksheetStyle", E[E.EditWorksheetCell = 15] = "EditWorksheetCell", E[E.InsertHyperlink = 16] = "InsertHyperlink", E[E.Sort = 17] = "Sort", E[E.Filter = 18] = "Filter", E[E.PivotTable = 19] = "PivotTable", E[E.FloatImg = 20] = "FloatImg", E[E.History = 21] = "History", E[E.RwHgtClWdt = 22] = "RwHgtClWdt", E[E.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", E[E.ViewFilter = 24] = "ViewFilter", E[E.MoveSheet = 25] = "MoveSheet", E[E.DeleteSheet = 26] = "DeleteSheet", E[E.HideSheet = 27] = "HideSheet", E[E.CopySheet = 28] = "CopySheet", E[E.RenameSheet = 29] = "RenameSheet", E[E.CreateSheet = 30] = "CreateSheet", E[E.SelectProtectedCells = 31] = "SelectProtectedCells", E[E.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", E[E.SetCellStyle = 33] = "SetCellStyle", E[E.SetCellValue = 34] = "SetCellValue", E[E.SetRowStyle = 35] = "SetRowStyle", E[E.SetColumnStyle = 36] = "SetColumnStyle", E[E.InsertRow = 37] = "InsertRow", E[E.InsertColumn = 38] = "InsertColumn", E[E.DeleteRow = 39] = "DeleteRow", E[E.DeleteColumn = 40] = "DeleteColumn", E[E.EditExtraObject = 41] = "EditExtraObject", E[E.Delete = 42] = "Delete", E[E.RecoverHistory = 43] = "RecoverHistory", E[E.ViewHistory = 44] = "ViewHistory", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(D || {}), L = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {});
|
|
1258
1269
|
const _RangeProtectionPermissionEditPoint = class _RangeProtectionPermissionEditPoint {
|
|
1259
1270
|
constructor(unitId, subUnitId, permissionId) {
|
|
1260
|
-
__publicField(this, "type",
|
|
1261
|
-
__publicField(this, "subType",
|
|
1271
|
+
__publicField(this, "type", L.SelectRange);
|
|
1272
|
+
__publicField(this, "subType", D.Edit);
|
|
1262
1273
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1263
1274
|
__publicField(this, "value", !0);
|
|
1264
1275
|
__publicField(this, "id");
|
|
1265
1276
|
__publicField(this, "unitId");
|
|
1266
1277
|
__publicField(this, "subUnitId");
|
|
1267
1278
|
__publicField(this, "permissionId");
|
|
1268
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${
|
|
1279
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${L.SelectRange}.${D.Edit}.${permissionId}`;
|
|
1269
1280
|
}
|
|
1270
1281
|
};
|
|
1271
1282
|
__name(_RangeProtectionPermissionEditPoint, "RangeProtectionPermissionEditPoint");
|
|
1272
1283
|
let RangeProtectionPermissionEditPoint = _RangeProtectionPermissionEditPoint;
|
|
1273
1284
|
const _RangeProtectionPermissionViewPoint = class _RangeProtectionPermissionViewPoint {
|
|
1274
1285
|
constructor(unitId, subUnitId, permissionId) {
|
|
1275
|
-
__publicField(this, "type",
|
|
1276
|
-
__publicField(this, "subType",
|
|
1286
|
+
__publicField(this, "type", L.SelectRange);
|
|
1287
|
+
__publicField(this, "subType", D.View);
|
|
1277
1288
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1278
1289
|
__publicField(this, "value", !0);
|
|
1279
1290
|
__publicField(this, "id");
|
|
1280
1291
|
__publicField(this, "unitId");
|
|
1281
1292
|
__publicField(this, "subUnitId");
|
|
1282
1293
|
__publicField(this, "permissionId");
|
|
1283
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${
|
|
1294
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${L.SelectRange}.${D.View}.${permissionId}`;
|
|
1284
1295
|
}
|
|
1285
1296
|
};
|
|
1286
1297
|
__name(_RangeProtectionPermissionViewPoint, "RangeProtectionPermissionViewPoint");
|
|
@@ -1289,10 +1300,10 @@ const _WorkbookCommentPermission = class _WorkbookCommentPermission {
|
|
|
1289
1300
|
constructor(unitId) {
|
|
1290
1301
|
__publicField(this, "id");
|
|
1291
1302
|
__publicField(this, "value", !0);
|
|
1292
|
-
__publicField(this, "type",
|
|
1303
|
+
__publicField(this, "type", L.Workbook);
|
|
1293
1304
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1294
|
-
__publicField(this, "subType",
|
|
1295
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1305
|
+
__publicField(this, "subType", D.Comment);
|
|
1306
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.Comment}_${unitId}`;
|
|
1296
1307
|
}
|
|
1297
1308
|
};
|
|
1298
1309
|
__name(_WorkbookCommentPermission, "WorkbookCommentPermission");
|
|
@@ -1301,10 +1312,10 @@ const _WorkbookCopyPermission = class _WorkbookCopyPermission {
|
|
|
1301
1312
|
constructor(unitId) {
|
|
1302
1313
|
__publicField(this, "id");
|
|
1303
1314
|
__publicField(this, "value", !0);
|
|
1304
|
-
__publicField(this, "type",
|
|
1315
|
+
__publicField(this, "type", L.Workbook);
|
|
1305
1316
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1306
|
-
__publicField(this, "subType",
|
|
1307
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1317
|
+
__publicField(this, "subType", D.Copy);
|
|
1318
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.Copy}_${unitId}`;
|
|
1308
1319
|
}
|
|
1309
1320
|
};
|
|
1310
1321
|
__name(_WorkbookCopyPermission, "WorkbookCopyPermission");
|
|
@@ -1313,10 +1324,10 @@ const _WorkbookCopySheetPermission = class _WorkbookCopySheetPermission {
|
|
|
1313
1324
|
constructor(unitId) {
|
|
1314
1325
|
__publicField(this, "id");
|
|
1315
1326
|
__publicField(this, "value", !0);
|
|
1316
|
-
__publicField(this, "type",
|
|
1317
|
-
__publicField(this, "subType",
|
|
1327
|
+
__publicField(this, "type", L.Workbook);
|
|
1328
|
+
__publicField(this, "subType", D.CopySheet);
|
|
1318
1329
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1319
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1330
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.CopySheet}_${unitId}`;
|
|
1320
1331
|
}
|
|
1321
1332
|
};
|
|
1322
1333
|
__name(_WorkbookCopySheetPermission, "WorkbookCopySheetPermission");
|
|
@@ -1325,10 +1336,10 @@ const _WorkbookCreateSheetPermission = class _WorkbookCreateSheetPermission {
|
|
|
1325
1336
|
constructor(unitId) {
|
|
1326
1337
|
__publicField(this, "id");
|
|
1327
1338
|
__publicField(this, "value", !0);
|
|
1328
|
-
__publicField(this, "type",
|
|
1339
|
+
__publicField(this, "type", L.Workbook);
|
|
1329
1340
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1330
|
-
__publicField(this, "subType",
|
|
1331
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1341
|
+
__publicField(this, "subType", D.CreateSheet);
|
|
1342
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.CreateSheet}_${unitId}`;
|
|
1332
1343
|
}
|
|
1333
1344
|
};
|
|
1334
1345
|
__name(_WorkbookCreateSheetPermission, "WorkbookCreateSheetPermission");
|
|
@@ -1337,10 +1348,10 @@ const _WorkbookDeleteSheetPermission = class _WorkbookDeleteSheetPermission {
|
|
|
1337
1348
|
constructor(unitId) {
|
|
1338
1349
|
__publicField(this, "id");
|
|
1339
1350
|
__publicField(this, "value", !0);
|
|
1340
|
-
__publicField(this, "type",
|
|
1351
|
+
__publicField(this, "type", L.Workbook);
|
|
1341
1352
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1342
|
-
__publicField(this, "subType",
|
|
1343
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1353
|
+
__publicField(this, "subType", D.DeleteSheet);
|
|
1354
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.DeleteSheet}_${unitId}`;
|
|
1344
1355
|
}
|
|
1345
1356
|
};
|
|
1346
1357
|
__name(_WorkbookDeleteSheetPermission, "WorkbookDeleteSheetPermission");
|
|
@@ -1349,10 +1360,10 @@ const _WorkbookDuplicatePermission = class _WorkbookDuplicatePermission {
|
|
|
1349
1360
|
constructor(unitId) {
|
|
1350
1361
|
__publicField(this, "id");
|
|
1351
1362
|
__publicField(this, "value", !0);
|
|
1352
|
-
__publicField(this, "type",
|
|
1363
|
+
__publicField(this, "type", L.Workbook);
|
|
1353
1364
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1354
|
-
__publicField(this, "subType",
|
|
1355
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1365
|
+
__publicField(this, "subType", D.Duplicate);
|
|
1366
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.Duplicate}_${unitId}`;
|
|
1356
1367
|
}
|
|
1357
1368
|
};
|
|
1358
1369
|
__name(_WorkbookDuplicatePermission, "WorkbookDuplicatePermission");
|
|
@@ -1361,10 +1372,10 @@ const _WorkbookEditablePermission = class _WorkbookEditablePermission {
|
|
|
1361
1372
|
constructor(unitId) {
|
|
1362
1373
|
__publicField(this, "id");
|
|
1363
1374
|
__publicField(this, "value", !0);
|
|
1364
|
-
__publicField(this, "type",
|
|
1375
|
+
__publicField(this, "type", L.Workbook);
|
|
1365
1376
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1366
|
-
__publicField(this, "subType",
|
|
1367
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1377
|
+
__publicField(this, "subType", D.Edit);
|
|
1378
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.Edit}_${unitId}`;
|
|
1368
1379
|
}
|
|
1369
1380
|
};
|
|
1370
1381
|
__name(_WorkbookEditablePermission, "WorkbookEditablePermission");
|
|
@@ -1373,10 +1384,10 @@ const _WorkbookExportPermission = class _WorkbookExportPermission {
|
|
|
1373
1384
|
constructor(unitId) {
|
|
1374
1385
|
__publicField(this, "id");
|
|
1375
1386
|
__publicField(this, "value", !0);
|
|
1376
|
-
__publicField(this, "type",
|
|
1387
|
+
__publicField(this, "type", L.Workbook);
|
|
1377
1388
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1378
|
-
__publicField(this, "subType",
|
|
1379
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1389
|
+
__publicField(this, "subType", D.Export);
|
|
1390
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.Export}_${unitId}`;
|
|
1380
1391
|
}
|
|
1381
1392
|
};
|
|
1382
1393
|
__name(_WorkbookExportPermission, "WorkbookExportPermission");
|
|
@@ -1385,10 +1396,10 @@ const _WorkbookHideSheetPermission = class _WorkbookHideSheetPermission {
|
|
|
1385
1396
|
constructor(unitId) {
|
|
1386
1397
|
__publicField(this, "id");
|
|
1387
1398
|
__publicField(this, "value", !0);
|
|
1388
|
-
__publicField(this, "type",
|
|
1399
|
+
__publicField(this, "type", L.Workbook);
|
|
1389
1400
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1390
|
-
__publicField(this, "subType",
|
|
1391
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1401
|
+
__publicField(this, "subType", D.HideSheet);
|
|
1402
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.HideSheet}_${unitId}`;
|
|
1392
1403
|
}
|
|
1393
1404
|
};
|
|
1394
1405
|
__name(_WorkbookHideSheetPermission, "WorkbookHideSheetPermission");
|
|
@@ -1397,10 +1408,10 @@ const _WorkbookHistoryPermission = class _WorkbookHistoryPermission {
|
|
|
1397
1408
|
constructor(unitId) {
|
|
1398
1409
|
__publicField(this, "id");
|
|
1399
1410
|
__publicField(this, "value", !0);
|
|
1400
|
-
__publicField(this, "type",
|
|
1411
|
+
__publicField(this, "type", L.Workbook);
|
|
1401
1412
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1402
|
-
__publicField(this, "subType",
|
|
1403
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1413
|
+
__publicField(this, "subType", D.History);
|
|
1414
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.History}_${unitId}`;
|
|
1404
1415
|
}
|
|
1405
1416
|
};
|
|
1406
1417
|
__name(_WorkbookHistoryPermission, "WorkbookHistoryPermission");
|
|
@@ -1409,10 +1420,10 @@ const _WorkbookManageCollaboratorPermission = class _WorkbookManageCollaboratorP
|
|
|
1409
1420
|
constructor(unitId) {
|
|
1410
1421
|
__publicField(this, "id");
|
|
1411
1422
|
__publicField(this, "value", !0);
|
|
1412
|
-
__publicField(this, "type",
|
|
1423
|
+
__publicField(this, "type", L.Workbook);
|
|
1413
1424
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1414
|
-
__publicField(this, "subType",
|
|
1415
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1425
|
+
__publicField(this, "subType", D.ManageCollaborator);
|
|
1426
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.ManageCollaborator}_${unitId}`;
|
|
1416
1427
|
}
|
|
1417
1428
|
};
|
|
1418
1429
|
__name(_WorkbookManageCollaboratorPermission, "WorkbookManageCollaboratorPermission");
|
|
@@ -1421,10 +1432,10 @@ const _WorkbookMoveSheetPermission = class _WorkbookMoveSheetPermission {
|
|
|
1421
1432
|
constructor(unitId) {
|
|
1422
1433
|
__publicField(this, "id");
|
|
1423
1434
|
__publicField(this, "value", !0);
|
|
1424
|
-
__publicField(this, "type",
|
|
1435
|
+
__publicField(this, "type", L.Workbook);
|
|
1425
1436
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1426
|
-
__publicField(this, "subType",
|
|
1427
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1437
|
+
__publicField(this, "subType", D.MoveSheet);
|
|
1438
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.MoveSheet}_${unitId}`;
|
|
1428
1439
|
}
|
|
1429
1440
|
};
|
|
1430
1441
|
__name(_WorkbookMoveSheetPermission, "WorkbookMoveSheetPermission");
|
|
@@ -1433,10 +1444,10 @@ const _WorkbookPrintPermission = class _WorkbookPrintPermission {
|
|
|
1433
1444
|
constructor(unitId) {
|
|
1434
1445
|
__publicField(this, "id");
|
|
1435
1446
|
__publicField(this, "value", !0);
|
|
1436
|
-
__publicField(this, "type",
|
|
1447
|
+
__publicField(this, "type", L.Workbook);
|
|
1437
1448
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1438
|
-
__publicField(this, "subType",
|
|
1439
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1449
|
+
__publicField(this, "subType", D.Print);
|
|
1450
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.Print}_${unitId}`;
|
|
1440
1451
|
}
|
|
1441
1452
|
};
|
|
1442
1453
|
__name(_WorkbookPrintPermission, "WorkbookPrintPermission");
|
|
@@ -1445,10 +1456,10 @@ const _WorkbookRecoverHistoryPermission = class _WorkbookRecoverHistoryPermissio
|
|
|
1445
1456
|
constructor(unitId) {
|
|
1446
1457
|
__publicField(this, "id");
|
|
1447
1458
|
__publicField(this, "value", !0);
|
|
1448
|
-
__publicField(this, "type",
|
|
1459
|
+
__publicField(this, "type", L.Workbook);
|
|
1449
1460
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1450
|
-
__publicField(this, "subType",
|
|
1451
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1461
|
+
__publicField(this, "subType", D.RecoverHistory);
|
|
1462
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.RecoverHistory}_${unitId}`;
|
|
1452
1463
|
}
|
|
1453
1464
|
};
|
|
1454
1465
|
__name(_WorkbookRecoverHistoryPermission, "WorkbookRecoverHistoryPermission");
|
|
@@ -1457,10 +1468,10 @@ const _WorkbookRenameSheetPermission = class _WorkbookRenameSheetPermission {
|
|
|
1457
1468
|
constructor(unitId) {
|
|
1458
1469
|
__publicField(this, "id");
|
|
1459
1470
|
__publicField(this, "value", !0);
|
|
1460
|
-
__publicField(this, "type",
|
|
1471
|
+
__publicField(this, "type", L.Workbook);
|
|
1461
1472
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1462
|
-
__publicField(this, "subType",
|
|
1463
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1473
|
+
__publicField(this, "subType", D.RenameSheet);
|
|
1474
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.RenameSheet}_${unitId}`;
|
|
1464
1475
|
}
|
|
1465
1476
|
};
|
|
1466
1477
|
__name(_WorkbookRenameSheetPermission, "WorkbookRenameSheetPermission");
|
|
@@ -1469,10 +1480,10 @@ const _WorkbookSharePermission = class _WorkbookSharePermission {
|
|
|
1469
1480
|
constructor(unitId) {
|
|
1470
1481
|
__publicField(this, "id");
|
|
1471
1482
|
__publicField(this, "value", !0);
|
|
1472
|
-
__publicField(this, "type",
|
|
1483
|
+
__publicField(this, "type", L.Workbook);
|
|
1473
1484
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1474
|
-
__publicField(this, "subType",
|
|
1475
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1485
|
+
__publicField(this, "subType", D.Share);
|
|
1486
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.Share}_${unitId}`;
|
|
1476
1487
|
}
|
|
1477
1488
|
};
|
|
1478
1489
|
__name(_WorkbookSharePermission, "WorkbookSharePermission");
|
|
@@ -1481,10 +1492,10 @@ const _WorkbookViewPermission = class _WorkbookViewPermission {
|
|
|
1481
1492
|
constructor(unitId) {
|
|
1482
1493
|
__publicField(this, "id");
|
|
1483
1494
|
__publicField(this, "value", !0);
|
|
1484
|
-
__publicField(this, "type",
|
|
1495
|
+
__publicField(this, "type", L.Workbook);
|
|
1485
1496
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1486
|
-
__publicField(this, "subType",
|
|
1487
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1497
|
+
__publicField(this, "subType", D.View);
|
|
1498
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.View}_${unitId}`;
|
|
1488
1499
|
}
|
|
1489
1500
|
};
|
|
1490
1501
|
__name(_WorkbookViewPermission, "WorkbookViewPermission");
|
|
@@ -1493,10 +1504,10 @@ const _WorkbookViewHistoryPermission = class _WorkbookViewHistoryPermission {
|
|
|
1493
1504
|
constructor(unitId) {
|
|
1494
1505
|
__publicField(this, "id");
|
|
1495
1506
|
__publicField(this, "value", !0);
|
|
1496
|
-
__publicField(this, "type",
|
|
1507
|
+
__publicField(this, "type", L.Workbook);
|
|
1497
1508
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1498
|
-
__publicField(this, "subType",
|
|
1499
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1509
|
+
__publicField(this, "subType", D.ViewHistory);
|
|
1510
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${D.ViewHistory}_${unitId}`;
|
|
1500
1511
|
}
|
|
1501
1512
|
};
|
|
1502
1513
|
__name(_WorkbookViewHistoryPermission, "WorkbookViewHistoryPermission");
|
|
@@ -1504,11 +1515,11 @@ let WorkbookViewHistoryPermission = _WorkbookViewHistoryPermission;
|
|
|
1504
1515
|
const _WorksheetCopyPermission = class _WorksheetCopyPermission {
|
|
1505
1516
|
constructor(unitId, subUnitId) {
|
|
1506
1517
|
__publicField(this, "value", !0);
|
|
1507
|
-
__publicField(this, "type",
|
|
1518
|
+
__publicField(this, "type", L.Worksheet);
|
|
1508
1519
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1509
1520
|
__publicField(this, "id");
|
|
1510
|
-
__publicField(this, "subType",
|
|
1511
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1521
|
+
__publicField(this, "subType", D.Copy);
|
|
1522
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.Copy}_${unitId}_${subUnitId}`;
|
|
1512
1523
|
}
|
|
1513
1524
|
};
|
|
1514
1525
|
__name(_WorksheetCopyPermission, "WorksheetCopyPermission");
|
|
@@ -1516,11 +1527,11 @@ let WorksheetCopyPermission = _WorksheetCopyPermission;
|
|
|
1516
1527
|
const _WorksheetDeleteColumnPermission = class _WorksheetDeleteColumnPermission {
|
|
1517
1528
|
constructor(unitId, subUnitId) {
|
|
1518
1529
|
__publicField(this, "value", !0);
|
|
1519
|
-
__publicField(this, "type",
|
|
1530
|
+
__publicField(this, "type", L.Worksheet);
|
|
1520
1531
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1521
1532
|
__publicField(this, "id");
|
|
1522
|
-
__publicField(this, "subType",
|
|
1523
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1533
|
+
__publicField(this, "subType", D.DeleteColumn);
|
|
1534
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.DeleteColumn}_${unitId}_${subUnitId}`;
|
|
1524
1535
|
}
|
|
1525
1536
|
};
|
|
1526
1537
|
__name(_WorksheetDeleteColumnPermission, "WorksheetDeleteColumnPermission");
|
|
@@ -1528,11 +1539,11 @@ let WorksheetDeleteColumnPermission = _WorksheetDeleteColumnPermission;
|
|
|
1528
1539
|
const _WorksheetDeleteRowPermission = class _WorksheetDeleteRowPermission {
|
|
1529
1540
|
constructor(unitId, subUnitId) {
|
|
1530
1541
|
__publicField(this, "value", !0);
|
|
1531
|
-
__publicField(this, "type",
|
|
1542
|
+
__publicField(this, "type", L.Worksheet);
|
|
1532
1543
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1533
1544
|
__publicField(this, "id");
|
|
1534
|
-
__publicField(this, "subType",
|
|
1535
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1545
|
+
__publicField(this, "subType", D.DeleteRow);
|
|
1546
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.DeleteRow}_${unitId}_${subUnitId}`;
|
|
1536
1547
|
}
|
|
1537
1548
|
};
|
|
1538
1549
|
__name(_WorksheetDeleteRowPermission, "WorksheetDeleteRowPermission");
|
|
@@ -1540,11 +1551,11 @@ let WorksheetDeleteRowPermission = _WorksheetDeleteRowPermission;
|
|
|
1540
1551
|
const _WorksheetEditPermission = class _WorksheetEditPermission {
|
|
1541
1552
|
constructor(unitId, subUnitId) {
|
|
1542
1553
|
__publicField(this, "value", !0);
|
|
1543
|
-
__publicField(this, "type",
|
|
1554
|
+
__publicField(this, "type", L.Worksheet);
|
|
1544
1555
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1545
1556
|
__publicField(this, "id");
|
|
1546
|
-
__publicField(this, "subType",
|
|
1547
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1557
|
+
__publicField(this, "subType", D.Edit);
|
|
1558
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.Edit}_${unitId}_${subUnitId}`;
|
|
1548
1559
|
}
|
|
1549
1560
|
};
|
|
1550
1561
|
__name(_WorksheetEditPermission, "WorksheetEditPermission");
|
|
@@ -1552,11 +1563,11 @@ let WorksheetEditPermission = _WorksheetEditPermission;
|
|
|
1552
1563
|
const _WorksheetEditExtraObjectPermission = class _WorksheetEditExtraObjectPermission {
|
|
1553
1564
|
constructor(unitId, subUnitId) {
|
|
1554
1565
|
__publicField(this, "value", !0);
|
|
1555
|
-
__publicField(this, "type",
|
|
1566
|
+
__publicField(this, "type", L.Worksheet);
|
|
1556
1567
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1557
1568
|
__publicField(this, "id");
|
|
1558
|
-
__publicField(this, "subType",
|
|
1559
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1569
|
+
__publicField(this, "subType", D.EditExtraObject);
|
|
1570
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.EditExtraObject}_${unitId}_${subUnitId}`;
|
|
1560
1571
|
}
|
|
1561
1572
|
};
|
|
1562
1573
|
__name(_WorksheetEditExtraObjectPermission, "WorksheetEditExtraObjectPermission");
|
|
@@ -1564,11 +1575,11 @@ let WorksheetEditExtraObjectPermission = _WorksheetEditExtraObjectPermission;
|
|
|
1564
1575
|
const _WorksheetFilterPermission = class _WorksheetFilterPermission {
|
|
1565
1576
|
constructor(unitId, subUnitId) {
|
|
1566
1577
|
__publicField(this, "value", !0);
|
|
1567
|
-
__publicField(this, "type",
|
|
1578
|
+
__publicField(this, "type", L.Worksheet);
|
|
1568
1579
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1569
1580
|
__publicField(this, "id");
|
|
1570
|
-
__publicField(this, "subType",
|
|
1571
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1581
|
+
__publicField(this, "subType", D.Filter);
|
|
1582
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.Filter}_${unitId}_${subUnitId}`;
|
|
1572
1583
|
}
|
|
1573
1584
|
};
|
|
1574
1585
|
__name(_WorksheetFilterPermission, "WorksheetFilterPermission");
|
|
@@ -1576,11 +1587,11 @@ let WorksheetFilterPermission = _WorksheetFilterPermission;
|
|
|
1576
1587
|
const _WorksheetInsertColumnPermission = class _WorksheetInsertColumnPermission {
|
|
1577
1588
|
constructor(unitId, subUnitId) {
|
|
1578
1589
|
__publicField(this, "value", !0);
|
|
1579
|
-
__publicField(this, "type",
|
|
1590
|
+
__publicField(this, "type", L.Worksheet);
|
|
1580
1591
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1581
1592
|
__publicField(this, "id");
|
|
1582
|
-
__publicField(this, "subType",
|
|
1583
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1593
|
+
__publicField(this, "subType", D.InsertColumn);
|
|
1594
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.InsertColumn}_${unitId}_${subUnitId}`;
|
|
1584
1595
|
}
|
|
1585
1596
|
};
|
|
1586
1597
|
__name(_WorksheetInsertColumnPermission, "WorksheetInsertColumnPermission");
|
|
@@ -1588,11 +1599,11 @@ let WorksheetInsertColumnPermission = _WorksheetInsertColumnPermission;
|
|
|
1588
1599
|
const _WorksheetInsertHyperlinkPermission = class _WorksheetInsertHyperlinkPermission {
|
|
1589
1600
|
constructor(unitId, subUnitId) {
|
|
1590
1601
|
__publicField(this, "value", !0);
|
|
1591
|
-
__publicField(this, "type",
|
|
1602
|
+
__publicField(this, "type", L.Worksheet);
|
|
1592
1603
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1593
1604
|
__publicField(this, "id");
|
|
1594
|
-
__publicField(this, "subType",
|
|
1595
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1605
|
+
__publicField(this, "subType", D.InsertHyperlink);
|
|
1606
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.InsertHyperlink}_${unitId}_${subUnitId}`;
|
|
1596
1607
|
}
|
|
1597
1608
|
};
|
|
1598
1609
|
__name(_WorksheetInsertHyperlinkPermission, "WorksheetInsertHyperlinkPermission");
|
|
@@ -1600,11 +1611,11 @@ let WorksheetInsertHyperlinkPermission = _WorksheetInsertHyperlinkPermission;
|
|
|
1600
1611
|
const _WorksheetInsertRowPermission = class _WorksheetInsertRowPermission {
|
|
1601
1612
|
constructor(unitId, subUnitId) {
|
|
1602
1613
|
__publicField(this, "value", !0);
|
|
1603
|
-
__publicField(this, "type",
|
|
1614
|
+
__publicField(this, "type", L.Worksheet);
|
|
1604
1615
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1605
1616
|
__publicField(this, "id");
|
|
1606
|
-
__publicField(this, "subType",
|
|
1607
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1617
|
+
__publicField(this, "subType", D.InsertRow);
|
|
1618
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.InsertRow}_${unitId}_${subUnitId}`;
|
|
1608
1619
|
}
|
|
1609
1620
|
};
|
|
1610
1621
|
__name(_WorksheetInsertRowPermission, "WorksheetInsertRowPermission");
|
|
@@ -1612,11 +1623,11 @@ let WorksheetInsertRowPermission = _WorksheetInsertRowPermission;
|
|
|
1612
1623
|
const _WorksheetManageCollaboratorPermission = class _WorksheetManageCollaboratorPermission {
|
|
1613
1624
|
constructor(unitId, subUnitId) {
|
|
1614
1625
|
__publicField(this, "value", !0);
|
|
1615
|
-
__publicField(this, "type",
|
|
1626
|
+
__publicField(this, "type", L.Worksheet);
|
|
1616
1627
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1617
1628
|
__publicField(this, "id");
|
|
1618
|
-
__publicField(this, "subType",
|
|
1619
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1629
|
+
__publicField(this, "subType", D.ManageCollaborator);
|
|
1630
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.ManageCollaborator}_${unitId}_${subUnitId}`;
|
|
1620
1631
|
}
|
|
1621
1632
|
};
|
|
1622
1633
|
__name(_WorksheetManageCollaboratorPermission, "WorksheetManageCollaboratorPermission");
|
|
@@ -1624,11 +1635,11 @@ let WorksheetManageCollaboratorPermission = _WorksheetManageCollaboratorPermissi
|
|
|
1624
1635
|
const _WorksheetPivotTablePermission = class _WorksheetPivotTablePermission {
|
|
1625
1636
|
constructor(unitId, subUnitId) {
|
|
1626
1637
|
__publicField(this, "value", !0);
|
|
1627
|
-
__publicField(this, "type",
|
|
1638
|
+
__publicField(this, "type", L.Worksheet);
|
|
1628
1639
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1629
1640
|
__publicField(this, "id");
|
|
1630
|
-
__publicField(this, "subType",
|
|
1631
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1641
|
+
__publicField(this, "subType", D.PivotTable);
|
|
1642
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.PivotTable}_${unitId}_${subUnitId}`;
|
|
1632
1643
|
}
|
|
1633
1644
|
};
|
|
1634
1645
|
__name(_WorksheetPivotTablePermission, "WorksheetPivotTablePermission");
|
|
@@ -1636,11 +1647,11 @@ let WorksheetPivotTablePermission = _WorksheetPivotTablePermission;
|
|
|
1636
1647
|
const _WorksheetSelectProtectedCellsPermission = class _WorksheetSelectProtectedCellsPermission {
|
|
1637
1648
|
constructor(unitId, subUnitId) {
|
|
1638
1649
|
__publicField(this, "value", !0);
|
|
1639
|
-
__publicField(this, "type",
|
|
1650
|
+
__publicField(this, "type", L.Worksheet);
|
|
1640
1651
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1641
1652
|
__publicField(this, "id");
|
|
1642
|
-
__publicField(this, "subType",
|
|
1643
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1653
|
+
__publicField(this, "subType", D.SelectProtectedCells);
|
|
1654
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.SelectProtectedCells}_${unitId}_${subUnitId}`;
|
|
1644
1655
|
}
|
|
1645
1656
|
};
|
|
1646
1657
|
__name(_WorksheetSelectProtectedCellsPermission, "WorksheetSelectProtectedCellsPermission");
|
|
@@ -1648,11 +1659,11 @@ let WorksheetSelectProtectedCellsPermission = _WorksheetSelectProtectedCellsPerm
|
|
|
1648
1659
|
const _WorksheetSelectUnProtectedCellsPermission = class _WorksheetSelectUnProtectedCellsPermission {
|
|
1649
1660
|
constructor(unitId, subUnitId) {
|
|
1650
1661
|
__publicField(this, "value", !0);
|
|
1651
|
-
__publicField(this, "type",
|
|
1662
|
+
__publicField(this, "type", L.Worksheet);
|
|
1652
1663
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1653
1664
|
__publicField(this, "id");
|
|
1654
|
-
__publicField(this, "subType",
|
|
1655
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1665
|
+
__publicField(this, "subType", D.SelectUnProtectedCells);
|
|
1666
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.SelectUnProtectedCells}_${unitId}_${subUnitId}`;
|
|
1656
1667
|
}
|
|
1657
1668
|
};
|
|
1658
1669
|
__name(_WorksheetSelectUnProtectedCellsPermission, "WorksheetSelectUnProtectedCellsPermission");
|
|
@@ -1660,11 +1671,11 @@ let WorksheetSelectUnProtectedCellsPermission = _WorksheetSelectUnProtectedCells
|
|
|
1660
1671
|
const _WorksheetSetCellStylePermission = class _WorksheetSetCellStylePermission {
|
|
1661
1672
|
constructor(unitId, subUnitId) {
|
|
1662
1673
|
__publicField(this, "value", !0);
|
|
1663
|
-
__publicField(this, "type",
|
|
1674
|
+
__publicField(this, "type", L.Worksheet);
|
|
1664
1675
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1665
1676
|
__publicField(this, "id");
|
|
1666
|
-
__publicField(this, "subType",
|
|
1667
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1677
|
+
__publicField(this, "subType", D.SetCellStyle);
|
|
1678
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.SetCellStyle}_${unitId}_${subUnitId}`;
|
|
1668
1679
|
}
|
|
1669
1680
|
};
|
|
1670
1681
|
__name(_WorksheetSetCellStylePermission, "WorksheetSetCellStylePermission");
|
|
@@ -1672,11 +1683,11 @@ let WorksheetSetCellStylePermission = _WorksheetSetCellStylePermission;
|
|
|
1672
1683
|
const _WorksheetSetCellValuePermission = class _WorksheetSetCellValuePermission {
|
|
1673
1684
|
constructor(unitId, subUnitId) {
|
|
1674
1685
|
__publicField(this, "value", !0);
|
|
1675
|
-
__publicField(this, "type",
|
|
1686
|
+
__publicField(this, "type", L.Worksheet);
|
|
1676
1687
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1677
1688
|
__publicField(this, "id");
|
|
1678
|
-
__publicField(this, "subType",
|
|
1679
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1689
|
+
__publicField(this, "subType", D.SetCellValue);
|
|
1690
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.SetCellValue}_${unitId}_${subUnitId}`;
|
|
1680
1691
|
}
|
|
1681
1692
|
};
|
|
1682
1693
|
__name(_WorksheetSetCellValuePermission, "WorksheetSetCellValuePermission");
|
|
@@ -1684,11 +1695,11 @@ let WorksheetSetCellValuePermission = _WorksheetSetCellValuePermission;
|
|
|
1684
1695
|
const _WorksheetSetColumnStylePermission = class _WorksheetSetColumnStylePermission {
|
|
1685
1696
|
constructor(unitId, subUnitId) {
|
|
1686
1697
|
__publicField(this, "value", !0);
|
|
1687
|
-
__publicField(this, "type",
|
|
1698
|
+
__publicField(this, "type", L.Worksheet);
|
|
1688
1699
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1689
1700
|
__publicField(this, "id");
|
|
1690
|
-
__publicField(this, "subType",
|
|
1691
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1701
|
+
__publicField(this, "subType", D.SetColumnStyle);
|
|
1702
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.SetColumnStyle}_${unitId}_${subUnitId}`;
|
|
1692
1703
|
}
|
|
1693
1704
|
};
|
|
1694
1705
|
__name(_WorksheetSetColumnStylePermission, "WorksheetSetColumnStylePermission");
|
|
@@ -1696,11 +1707,11 @@ let WorksheetSetColumnStylePermission = _WorksheetSetColumnStylePermission;
|
|
|
1696
1707
|
const _WorksheetSetRowStylePermission = class _WorksheetSetRowStylePermission {
|
|
1697
1708
|
constructor(unitId, subUnitId) {
|
|
1698
1709
|
__publicField(this, "value", !0);
|
|
1699
|
-
__publicField(this, "type",
|
|
1710
|
+
__publicField(this, "type", L.Worksheet);
|
|
1700
1711
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1701
1712
|
__publicField(this, "id");
|
|
1702
|
-
__publicField(this, "subType",
|
|
1703
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1713
|
+
__publicField(this, "subType", D.SetRowStyle);
|
|
1714
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.SetRowStyle}_${unitId}_${subUnitId}`;
|
|
1704
1715
|
}
|
|
1705
1716
|
};
|
|
1706
1717
|
__name(_WorksheetSetRowStylePermission, "WorksheetSetRowStylePermission");
|
|
@@ -1708,11 +1719,11 @@ let WorksheetSetRowStylePermission = _WorksheetSetRowStylePermission;
|
|
|
1708
1719
|
const _WorksheetSortPermission = class _WorksheetSortPermission {
|
|
1709
1720
|
constructor(unitId, subUnitId) {
|
|
1710
1721
|
__publicField(this, "value", !0);
|
|
1711
|
-
__publicField(this, "type",
|
|
1722
|
+
__publicField(this, "type", L.Worksheet);
|
|
1712
1723
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1713
1724
|
__publicField(this, "id");
|
|
1714
|
-
__publicField(this, "subType",
|
|
1715
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1725
|
+
__publicField(this, "subType", D.Sort);
|
|
1726
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.Sort}_${unitId}_${subUnitId}`;
|
|
1716
1727
|
}
|
|
1717
1728
|
};
|
|
1718
1729
|
__name(_WorksheetSortPermission, "WorksheetSortPermission");
|
|
@@ -1720,11 +1731,11 @@ let WorksheetSortPermission = _WorksheetSortPermission;
|
|
|
1720
1731
|
const _WorksheetViewPermission = class _WorksheetViewPermission {
|
|
1721
1732
|
constructor(unitId, subUnitId) {
|
|
1722
1733
|
__publicField(this, "value", !0);
|
|
1723
|
-
__publicField(this, "type",
|
|
1734
|
+
__publicField(this, "type", L.Worksheet);
|
|
1724
1735
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1725
1736
|
__publicField(this, "id");
|
|
1726
|
-
__publicField(this, "subType",
|
|
1727
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1737
|
+
__publicField(this, "subType", D.View);
|
|
1738
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${D.View}_${unitId}_${subUnitId}`;
|
|
1728
1739
|
}
|
|
1729
1740
|
};
|
|
1730
1741
|
__name(_WorksheetViewPermission, "WorksheetViewPermission");
|
|
@@ -4690,20 +4701,20 @@ const SetStyleCommand = {
|
|
|
4690
4701
|
WorksheetSetRowStylePermission,
|
|
4691
4702
|
WorksheetSortPermission
|
|
4692
4703
|
], "getAllWorksheetPermissionPointByPointPanel"), defaultWorksheetPermissionPoint = [
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4704
|
+
D.Copy,
|
|
4705
|
+
D.DeleteColumn,
|
|
4706
|
+
D.DeleteRow,
|
|
4707
|
+
D.EditExtraObject,
|
|
4708
|
+
D.Filter,
|
|
4709
|
+
D.InsertColumn,
|
|
4710
|
+
D.InsertRow,
|
|
4711
|
+
D.InsertHyperlink,
|
|
4712
|
+
D.PivotTable,
|
|
4713
|
+
D.SetCellStyle,
|
|
4714
|
+
D.SetCellValue,
|
|
4715
|
+
D.SetColumnStyle,
|
|
4716
|
+
D.SetRowStyle,
|
|
4717
|
+
D.Sort
|
|
4707
4718
|
], _WorksheetProtectionPointModel = class _WorksheetProtectionPointModel {
|
|
4708
4719
|
constructor() {
|
|
4709
4720
|
__publicField(this, "_model", /* @__PURE__ */ new Map());
|
|
@@ -4936,7 +4947,7 @@ let WorksheetPermissionService = (_a4 = class extends RxDisposable {
|
|
|
4936
4947
|
toJson,
|
|
4937
4948
|
parseJson,
|
|
4938
4949
|
pluginName: RULE_MODEL_PLUGIN_NAME,
|
|
4939
|
-
businesses: [
|
|
4950
|
+
businesses: [R.UNIVER_SHEET],
|
|
4940
4951
|
onLoad: /* @__PURE__ */ __name((unitId, resources) => {
|
|
4941
4952
|
this._worksheetProtectionRuleModel.fromObject(resources), Object.keys(resources).forEach((subUnitId) => {
|
|
4942
4953
|
getAllWorksheetPermissionPoint().forEach((F) => {
|
|
@@ -4969,7 +4980,7 @@ let WorksheetPermissionService = (_a4 = class extends RxDisposable {
|
|
|
4969
4980
|
toJson,
|
|
4970
4981
|
parseJson,
|
|
4971
4982
|
pluginName: POINT_MODEL_PLUGIN_NAME,
|
|
4972
|
-
businesses: [
|
|
4983
|
+
businesses: [R.UNIVER_SHEET],
|
|
4973
4984
|
onLoad: /* @__PURE__ */ __name((unitId, resources) => {
|
|
4974
4985
|
this._worksheetProtectionPointRuleModel.fromObject(resources), Object.keys(resources).forEach((subUnitId) => {
|
|
4975
4986
|
getAllWorksheetPermissionPointByPointPanel().forEach((F) => {
|
|
@@ -5308,6 +5319,49 @@ const SetWorksheetPermissionPointsMutation = {
|
|
|
5308
5319
|
]
|
|
5309
5320
|
}), !0) : !1;
|
|
5310
5321
|
}, "handler")
|
|
5322
|
+
}, ToggleCellCheckboxCommand = {
|
|
5323
|
+
id: "sheet.command.toggle-cell-checkbox",
|
|
5324
|
+
type: CommandType.COMMAND,
|
|
5325
|
+
handler: /* @__PURE__ */ __name((accessor, params) => {
|
|
5326
|
+
if (!params)
|
|
5327
|
+
return !1;
|
|
5328
|
+
const { unitId, subUnitId, row, col, paragraphIndex } = params, workbook = accessor.get(IUniverInstanceService).getUnit(unitId, UniverInstanceType.UNIVER_SHEET), sheet = workbook == null ? void 0 : workbook.getSheetBySheetId(subUnitId), undoRedoService = accessor.get(IUndoRedoService), commandService = accessor.get(ICommandService);
|
|
5329
|
+
if (!sheet)
|
|
5330
|
+
return !1;
|
|
5331
|
+
const cell = sheet.getCell(row, col);
|
|
5332
|
+
if (!(cell != null && cell.p))
|
|
5333
|
+
return !1;
|
|
5334
|
+
const p = Tools.deepClone(cell.p), documentDataModel = new DocumentDataModel(p), textX = BuildTextUtils.paragraph.bullet.toggleChecklist({
|
|
5335
|
+
document: documentDataModel,
|
|
5336
|
+
paragraphIndex
|
|
5337
|
+
});
|
|
5338
|
+
if (!textX)
|
|
5339
|
+
return !1;
|
|
5340
|
+
TextX.apply(documentDataModel.getBody(), textX.serialize());
|
|
5341
|
+
const redoParams = {
|
|
5342
|
+
unitId,
|
|
5343
|
+
subUnitId,
|
|
5344
|
+
cellValue: {
|
|
5345
|
+
[row]: {
|
|
5346
|
+
[col]: {
|
|
5347
|
+
p,
|
|
5348
|
+
t: CellValueType.STRING
|
|
5349
|
+
}
|
|
5350
|
+
}
|
|
5351
|
+
}
|
|
5352
|
+
}, redo = {
|
|
5353
|
+
id: SetRangeValuesMutation.id,
|
|
5354
|
+
params: redoParams
|
|
5355
|
+
}, undoParams = SetRangeValuesUndoMutationFactory(accessor, redoParams), undo = {
|
|
5356
|
+
id: SetRangeValuesMutation.id,
|
|
5357
|
+
params: undoParams
|
|
5358
|
+
}, redos = [redo], undos = [undo];
|
|
5359
|
+
return undoRedoService.pushUndoRedo({
|
|
5360
|
+
redoMutations: redos,
|
|
5361
|
+
undoMutations: undos,
|
|
5362
|
+
unitID: unitId
|
|
5363
|
+
}), commandService.syncExecuteCommand(redo.id, redo.params);
|
|
5364
|
+
}, "handler")
|
|
5311
5365
|
}, AddWorksheetProtectionMutation = {
|
|
5312
5366
|
id: "sheet.mutation.add-worksheet-protection",
|
|
5313
5367
|
type: CommandType.MUTATION,
|
|
@@ -5633,7 +5687,8 @@ let BasicWorksheetController = (_a5 = class extends Disposable {
|
|
|
5633
5687
|
SetRangeProtectionCommand,
|
|
5634
5688
|
AddRangeProtectionMutation,
|
|
5635
5689
|
DeleteRangeProtectionMutation,
|
|
5636
|
-
SetRangeProtectionMutation
|
|
5690
|
+
SetRangeProtectionMutation,
|
|
5691
|
+
ToggleCellCheckboxCommand
|
|
5637
5692
|
].forEach((command) => this.disposeWithMe(this._commandService.registerCommand(command))), this._configService.setConfig(MAX_CELL_PER_SHEET_KEY, MAX_CELL_PER_SHEET_DEFAULT);
|
|
5638
5693
|
}
|
|
5639
5694
|
}, __name(_a5, "BasicWorksheetController"), _a5);
|
|
@@ -7641,7 +7696,7 @@ let RangeProtectionCache = (_a11 = class extends Disposable {
|
|
|
7641
7696
|
}
|
|
7642
7697
|
_initUpdateCellInfoCache() {
|
|
7643
7698
|
this._permissionService.permissionPointUpdate$.pipe(
|
|
7644
|
-
filter((permission) => permission.type ===
|
|
7699
|
+
filter((permission) => permission.type === L.SelectRange),
|
|
7645
7700
|
map((permission) => permission)
|
|
7646
7701
|
).subscribe((permission) => {
|
|
7647
7702
|
const { subUnitId, unitId, permissionId } = permission, ruleId = this._permissionIdCache.get(permissionId);
|
|
@@ -7720,8 +7775,8 @@ let RangeProtectionCache = (_a11 = class extends Disposable {
|
|
|
7720
7775
|
rowInfoMap.clear(), colInfoMap.clear(), this._ruleModel.getSubunitRuleList(unitId, subUnitId).forEach((rule) => {
|
|
7721
7776
|
var _a18, _b, _c, _d, _e, _f;
|
|
7722
7777
|
const edit = (_c = (_b = this._permissionService.getPermissionPoint((_a18 = new RangeProtectionPermissionEditPoint(unitId, subUnitId, rule.permissionId)) == null ? void 0 : _a18.id)) == null ? void 0 : _b.value) != null ? _c : !0, view = (_f = (_e = this._permissionService.getPermissionPoint((_d = new RangeProtectionPermissionViewPoint(unitId, subUnitId, rule.permissionId)) == null ? void 0 : _d.id)) == null ? void 0 : _e.value) != null ? _f : !0, selectionProtection = {
|
|
7723
|
-
[
|
|
7724
|
-
[
|
|
7778
|
+
[D.Edit]: edit,
|
|
7779
|
+
[D.View]: view,
|
|
7725
7780
|
ruleId: rule.id,
|
|
7726
7781
|
ranges: rule.ranges
|
|
7727
7782
|
};
|
|
@@ -7729,11 +7784,11 @@ let RangeProtectionCache = (_a11 = class extends Disposable {
|
|
|
7729
7784
|
const { startRow, endRow, startColumn, endColumn } = range;
|
|
7730
7785
|
for (let i = startRow; i <= endRow; i++) {
|
|
7731
7786
|
const rowInfo = rowInfoMap.get(`${i}`);
|
|
7732
|
-
rowInfo ? rowInfo.set(rule.id, { [
|
|
7787
|
+
rowInfo ? rowInfo.set(rule.id, { [D.Edit]: edit, [D.View]: view }) : rowInfoMap.set(`${i}`, /* @__PURE__ */ new Map([[rule.id, { [D.Edit]: edit, [D.View]: view }]]));
|
|
7733
7788
|
for (let j = startColumn; j <= endColumn; j++) {
|
|
7734
7789
|
cellRuleMap.set(`${i}-${j}`, rule.id), cellInfoMap.set(`${i}-${j}`, selectionProtection);
|
|
7735
7790
|
const colInfo = colInfoMap.get(`${j}`);
|
|
7736
|
-
colInfo ? colInfo.set(rule.id, { [
|
|
7791
|
+
colInfo ? colInfo.set(rule.id, { [D.Edit]: edit, [D.View]: view }) : colInfoMap.set(`${j}`, /* @__PURE__ */ new Map([[rule.id, { [D.Edit]: edit, [D.View]: view }]]));
|
|
7737
7792
|
}
|
|
7738
7793
|
}
|
|
7739
7794
|
}), this._permissionIdCache.set(rule.permissionId, rule.id);
|
|
@@ -7767,7 +7822,7 @@ let RangeProtectionCache = (_a11 = class extends Disposable {
|
|
|
7767
7822
|
}
|
|
7768
7823
|
_initUpdateRowColInfoCache() {
|
|
7769
7824
|
this._permissionService.permissionPointUpdate$.pipe(
|
|
7770
|
-
filter((permission) => permission.type ===
|
|
7825
|
+
filter((permission) => permission.type === L.SelectRange),
|
|
7771
7826
|
map((permission) => permission)
|
|
7772
7827
|
).subscribe({
|
|
7773
7828
|
next: /* @__PURE__ */ __name((permission) => {
|
|
@@ -7783,10 +7838,10 @@ let RangeProtectionCache = (_a11 = class extends Disposable {
|
|
|
7783
7838
|
const { startRow, endRow, startColumn, endColumn } = range;
|
|
7784
7839
|
for (let i = startRow; i <= endRow; i++) {
|
|
7785
7840
|
const rowInfo = rowInfoMap.get(`${i}`);
|
|
7786
|
-
rowInfo ? rowInfo.set(ruleId, { [
|
|
7841
|
+
rowInfo ? rowInfo.set(ruleId, { [D.Edit]: edit, [D.View]: view }) : rowInfoMap.set(`${i}`, /* @__PURE__ */ new Map([[ruleId, { [D.Edit]: edit, [D.View]: view }]]));
|
|
7787
7842
|
for (let j = startColumn; j <= endColumn; j++) {
|
|
7788
7843
|
const colInfo = colInfoMap.get(`${j}`);
|
|
7789
|
-
colInfo ? colInfo.set(ruleId, { [
|
|
7844
|
+
colInfo ? colInfo.set(ruleId, { [D.Edit]: edit, [D.View]: view }) : colInfoMap.set(`${j}`, /* @__PURE__ */ new Map([[ruleId, { [D.Edit]: edit, [D.View]: view }]]));
|
|
7790
7845
|
}
|
|
7791
7846
|
}
|
|
7792
7847
|
});
|
|
@@ -7821,8 +7876,8 @@ let RangeProtectionCache = (_a11 = class extends Disposable {
|
|
|
7821
7876
|
if (rule) {
|
|
7822
7877
|
view = (_e = (_d = this._permissionService.getPermissionPoint((_c = new RangeProtectionPermissionViewPoint(unitId, subUnitId, rule.permissionId)) == null ? void 0 : _c.id)) == null ? void 0 : _d.value) != null ? _e : !0, edit = (_h = (_g = this._permissionService.getPermissionPoint((_f = new RangeProtectionPermissionEditPoint(unitId, subUnitId, rule.permissionId)) == null ? void 0 : _f.id)) == null ? void 0 : _g.value) != null ? _h : !0;
|
|
7823
7878
|
const selectionProtection = {
|
|
7824
|
-
[
|
|
7825
|
-
[
|
|
7879
|
+
[D.Edit]: edit,
|
|
7880
|
+
[D.View]: view,
|
|
7826
7881
|
ruleId,
|
|
7827
7882
|
ranges: rule.ranges
|
|
7828
7883
|
};
|
|
@@ -7861,7 +7916,7 @@ let RangeProtectionRenderModel = (_a12 = class {
|
|
|
7861
7916
|
}
|
|
7862
7917
|
_init() {
|
|
7863
7918
|
this._permissionService.permissionPointUpdate$.pipe(
|
|
7864
|
-
filter$1((permission) => permission.type ===
|
|
7919
|
+
filter$1((permission) => permission.type === L.SelectRange),
|
|
7865
7920
|
filter$1((permission) => getAllRangePermissionPoint().some((F) => permission instanceof F)),
|
|
7866
7921
|
map$1((permission) => permission)
|
|
7867
7922
|
).subscribe((permission) => {
|
|
@@ -8354,7 +8409,7 @@ let RangeProtectionService = (_a15 = class extends Disposable {
|
|
|
8354
8409
|
toJson,
|
|
8355
8410
|
parseJson,
|
|
8356
8411
|
pluginName: PLUGIN_NAME$1,
|
|
8357
|
-
businesses: [
|
|
8412
|
+
businesses: [R.UNIVER_SHEET],
|
|
8358
8413
|
onLoad: /* @__PURE__ */ __name((unitId, resources) => {
|
|
8359
8414
|
const result = this._selectionProtectionRuleModel.toObject();
|
|
8360
8415
|
result[unitId] = resources, this._selectionProtectionRuleModel.fromObject(result);
|
|
@@ -8365,8 +8420,8 @@ let RangeProtectionService = (_a15 = class extends Disposable {
|
|
|
8365
8420
|
allAllowedParams.push({
|
|
8366
8421
|
objectID: rule.permissionId,
|
|
8367
8422
|
unitID: unitId,
|
|
8368
|
-
objectType:
|
|
8369
|
-
actions: [
|
|
8423
|
+
objectType: L.SelectRange,
|
|
8424
|
+
actions: [D.View, D.Edit]
|
|
8370
8425
|
});
|
|
8371
8426
|
}), list.forEach((rule) => {
|
|
8372
8427
|
getAllRangePermissionPoint().forEach((Factor) => {
|
|
@@ -8408,23 +8463,23 @@ const getAllWorkbookPermissionPoint = /* @__PURE__ */ __name(() => [
|
|
|
8408
8463
|
WorkbookViewHistoryPermission,
|
|
8409
8464
|
WorkbookRecoverHistoryPermission
|
|
8410
8465
|
], "getAllWorkbookPermissionPoint"), defaultWorkbookPermissionPoints = [
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8466
|
+
D.Edit,
|
|
8467
|
+
D.Print,
|
|
8468
|
+
D.Comment,
|
|
8469
|
+
D.View,
|
|
8470
|
+
D.Copy,
|
|
8471
|
+
D.Export,
|
|
8472
|
+
D.ManageCollaborator,
|
|
8473
|
+
D.CreateSheet,
|
|
8474
|
+
D.DeleteSheet,
|
|
8475
|
+
D.RenameSheet,
|
|
8476
|
+
D.HideSheet,
|
|
8477
|
+
D.Duplicate,
|
|
8478
|
+
D.Share,
|
|
8479
|
+
D.MoveSheet,
|
|
8480
|
+
D.CopySheet,
|
|
8481
|
+
D.RecoverHistory,
|
|
8482
|
+
D.ViewHistory
|
|
8428
8483
|
];
|
|
8429
8484
|
var __defProp$1 = Object.defineProperty, __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor, __decorateClass$1 = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
8430
8485
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -9292,8 +9347,9 @@ export {
|
|
|
9292
9347
|
SetWorksheetShowCommand,
|
|
9293
9348
|
SheetInterceptorService,
|
|
9294
9349
|
SheetsSelectionsService,
|
|
9295
|
-
|
|
9296
|
-
|
|
9350
|
+
ToggleCellCheckboxCommand,
|
|
9351
|
+
D as UnitAction,
|
|
9352
|
+
L as UnitObject,
|
|
9297
9353
|
UniverSheetsPlugin,
|
|
9298
9354
|
WorkbookCommentPermission,
|
|
9299
9355
|
WorkbookCopyPermission,
|