@univerjs/sheets 0.2.7 → 0.2.9
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 +266 -196
- package/lib/types/basics/cell-style.d.ts +0 -1
- package/lib/types/basics/cell-type.d.ts +0 -1
- package/lib/types/basics/cell-value.d.ts +0 -1
- package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +0 -1
- package/lib/types/basics/interfaces/i-ruler-manager.d.ts +0 -1
- package/lib/types/basics/interfaces/mutation-interface.d.ts +0 -1
- package/lib/types/basics/interfaces/selection-config.d.ts +0 -1
- package/lib/types/basics/interfaces/spreadsheet-config.d.ts +0 -1
- package/lib/types/basics/rangeMerge.d.ts +0 -1
- package/lib/types/basics/selection.d.ts +0 -1
- package/lib/types/basics/sheet-header.d.ts +0 -1
- package/lib/types/basics/utils.d.ts +0 -1
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +0 -1
- package/lib/types/commands/commands/add-range-protection.command.d.ts +0 -1
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +0 -1
- package/lib/types/commands/commands/clear-selection-all.command.d.ts +0 -1
- package/lib/types/commands/commands/clear-selection-content.command.d.ts +0 -1
- package/lib/types/commands/commands/clear-selection-format.command.d.ts +0 -1
- package/lib/types/commands/commands/copy-worksheet.command.d.ts +0 -1
- package/lib/types/commands/commands/delete-range-move-left.command.d.ts +0 -1
- package/lib/types/commands/commands/delete-range-move-up.command.d.ts +0 -1
- package/lib/types/commands/commands/delete-range-protection.command.d.ts +0 -1
- package/lib/types/commands/commands/insert-defined-name.command.d.ts +0 -1
- package/lib/types/commands/commands/insert-range-move-down.command.d.ts +0 -1
- package/lib/types/commands/commands/insert-range-move-right.command.d.ts +0 -1
- package/lib/types/commands/commands/insert-row-col.command.d.ts +0 -1
- package/lib/types/commands/commands/insert-sheet.command.d.ts +0 -1
- package/lib/types/commands/commands/move-range.command.d.ts +0 -1
- package/lib/types/commands/commands/move-rows-cols.command.d.ts +0 -1
- package/lib/types/commands/commands/remove-defined-name.command.d.ts +0 -1
- package/lib/types/commands/commands/remove-row-col.command.d.ts +3 -1
- package/lib/types/commands/commands/remove-sheet.command.d.ts +0 -1
- package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +0 -1
- package/lib/types/commands/commands/reorder-range.command.d.ts +0 -1
- package/lib/types/commands/commands/set-border-command.d.ts +0 -1
- package/lib/types/commands/commands/set-col-visible.command.d.ts +0 -1
- package/lib/types/commands/commands/set-defined-name.command.d.ts +0 -1
- package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +0 -1
- package/lib/types/commands/commands/set-frozen.command.d.ts +0 -1
- package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +0 -1
- package/lib/types/commands/commands/set-range-protection.command.d.ts +0 -1
- package/lib/types/commands/commands/set-range-values.command.d.ts +0 -1
- package/lib/types/commands/commands/set-row-visible.command.d.ts +0 -1
- package/lib/types/commands/commands/set-style.command.d.ts +0 -1
- package/lib/types/commands/commands/set-tab-color.command.d.ts +0 -1
- package/lib/types/commands/commands/set-workbook-name.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-name.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-order.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-permission-points.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +0 -1
- package/lib/types/commands/commands/set-worksheet-show.command.d.ts +0 -1
- package/lib/types/commands/commands/utils/merged-cell-util.d.ts +0 -1
- package/lib/types/commands/commands/utils/selection-utils.d.ts +0 -1
- package/lib/types/commands/commands/utils/target-util.d.ts +0 -1
- package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +0 -1
- package/lib/types/commands/mutations/add-range-protection.mutation.d.ts +1 -2
- package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/add-worksheet-protection.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/delete-range-protection.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/delete-worksheet-protection.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/empty.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/move-range.mutation.d.ts +3 -2
- package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/numfmt-mutation.d.ts +0 -1
- package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/reorder-range.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-frozen.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +0 -1
- package/lib/types/commands/mutations/set-range-protection.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-workbook-name.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-permission-points.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-protection.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +0 -1
- package/lib/types/commands/operations/scroll-to-cell.operation.d.ts +0 -1
- package/lib/types/commands/operations/selection.operation.d.ts +0 -1
- package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +0 -1
- package/lib/types/commands/utils/handle-merge-operation.d.ts +0 -1
- package/lib/types/commands/utils/handle-range-mutation.d.ts +0 -1
- package/lib/types/commands/utils/selection-command-util.d.ts +0 -1
- package/lib/types/controllers/__tests__/util.d.ts +0 -1
- package/lib/types/controllers/basic-worksheet.controller.d.ts +0 -1
- package/lib/types/controllers/calculate-result-apply.controller.d.ts +0 -1
- package/lib/types/controllers/defined-name-data.controller.d.ts +0 -1
- package/lib/types/controllers/merge-cell.controller.d.ts +0 -1
- package/lib/types/controllers/number-cell.controller.d.ts +0 -1
- package/lib/types/index.d.ts +4 -3
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/types/model/range-protection-render.model.d.ts +0 -1
- package/lib/types/model/range-protection-rule.model.d.ts +2 -2
- package/lib/types/services/__tests__/util.d.ts +0 -1
- package/lib/types/services/border-style-manager.service.d.ts +0 -1
- package/lib/types/services/numfmt/numfmt.service.d.ts +0 -1
- package/lib/types/services/numfmt/type.d.ts +0 -1
- package/lib/types/services/permission/permission-point/range/edit.d.ts +0 -1
- package/lib/types/services/permission/permission-point/range/view.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/comment.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/copy-sheet.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/copy.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/create-sheet.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/delete-sheet.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/duplicate.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/editable.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/export.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/hide-sheet.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/history.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/manage-collaborator.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/move-sheet.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/print.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/recover-history.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/rename-sheet.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/share.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/view-history.d.ts +0 -1
- package/lib/types/services/permission/permission-point/workbook/view.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/copy.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/delete-column.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/delete-row.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/edit-extra-object.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/edit.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/filter.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/insert-column.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/insert-hyperlink.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/insert-row.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/manage-collaborator.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/pivot-table.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/select-protected-cells.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/select-un-protected-cells.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/set-cell-style.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/set-cell-value.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/set-column-style.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/set-row-style.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/sort.d.ts +0 -1
- package/lib/types/services/permission/permission-point/worksheet/view.d.ts +0 -1
- package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +6 -2
- package/lib/types/services/permission/range-permission/range-protection.service.d.ts +0 -1
- package/lib/types/services/permission/range-permission/util.d.ts +0 -1
- package/lib/types/services/permission/type.d.ts +1 -2
- package/lib/types/services/permission/util.d.ts +0 -1
- package/lib/types/services/permission/workbook-permission/util.d.ts +0 -1
- package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +0 -1
- package/lib/types/services/permission/worksheet-permission/type.d.ts +0 -1
- package/lib/types/services/permission/worksheet-permission/utils.d.ts +0 -1
- package/lib/types/services/permission/worksheet-permission/worksheet-permission-point.model.d.ts +2 -2
- package/lib/types/services/permission/worksheet-permission/worksheet-permission-rule.model.d.ts +3 -3
- package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +0 -1
- package/lib/types/services/ref-range/__tests__/__testing__.d.ts +0 -1
- package/lib/types/services/ref-range/__tests__/ref-range.service.spec.d.ts +0 -1
- package/lib/types/services/ref-range/ref-range.service.d.ts +0 -1
- package/lib/types/services/ref-range/type.d.ts +0 -1
- package/lib/types/services/ref-range/util.d.ts +5 -1
- package/lib/types/services/selections/ref-selections.service.d.ts +0 -1
- package/lib/types/services/selections/selection-manager.service.d.ts +7 -4
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +0 -1
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +4 -1
- package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +2 -3
- package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +0 -1
- package/lib/types/sheets-plugin.d.ts +0 -1
- package/lib/umd/index.js +2 -2
- package/package.json +13 -13
package/lib/es/index.js
CHANGED
|
@@ -35,7 +35,10 @@ let SheetsSelectionsService = (_a = class extends RxDisposable {
|
|
|
35
35
|
this._removeWorkbookSelection(workbook.getUnitId());
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Clear all selections in all workbooks.
|
|
40
|
+
* invoked by prompt.controller
|
|
41
|
+
*/
|
|
39
42
|
clear() {
|
|
40
43
|
this._workbookSelections.forEach((wbSelection) => wbSelection.clear());
|
|
41
44
|
}
|
|
@@ -57,6 +60,14 @@ let SheetsSelectionsService = (_a = class extends RxDisposable {
|
|
|
57
60
|
const { unitId, sheetId } = current;
|
|
58
61
|
this._ensureWorkbookSelection(unitId).addSelections(sheetId, unitIdOrSelections);
|
|
59
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Set seleciton data to WorkbookSelections.
|
|
65
|
+
* If type is not specfied, this method would clear all existing selections.
|
|
66
|
+
* @param unitIdOrSelections
|
|
67
|
+
* @param worksheetIdOrType
|
|
68
|
+
* @param selectionDatas
|
|
69
|
+
* @param type
|
|
70
|
+
*/
|
|
60
71
|
setSelections(unitIdOrSelections, worksheetIdOrType, selectionDatas, type) {
|
|
61
72
|
if (typeof unitIdOrSelections == "string") {
|
|
62
73
|
this._ensureWorkbookSelection(unitIdOrSelections).setSelections(
|
|
@@ -145,13 +156,27 @@ const _WorkbookSelections = class _WorkbookSelections extends Disposable {
|
|
|
145
156
|
selections.push(...selectionDatas), this._emitOnEnd(selections);
|
|
146
157
|
}
|
|
147
158
|
/**
|
|
148
|
-
*
|
|
159
|
+
* Set selectionDatas to _worksheetSelections, and emit selectionDatas by type.
|
|
160
|
+
* If type is not specfied, this method would clear all existing selections.
|
|
149
161
|
* @param sheetId
|
|
150
162
|
* @param selectionDatas
|
|
151
163
|
* @param type
|
|
152
164
|
*/
|
|
153
165
|
setSelections(sheetId, selectionDatas, type = 2) {
|
|
154
|
-
this._ensureSheetSelection(sheetId).length = 0, this._ensureSheetSelection(sheetId).push(...selectionDatas), type
|
|
166
|
+
switch (this._ensureSheetSelection(sheetId).length = 0, this._ensureSheetSelection(sheetId).push(...selectionDatas), type) {
|
|
167
|
+
case 0:
|
|
168
|
+
this._selectionMoveStart$.next(selectionDatas);
|
|
169
|
+
break;
|
|
170
|
+
case 1:
|
|
171
|
+
this._selectionMoving$.next(selectionDatas);
|
|
172
|
+
break;
|
|
173
|
+
case 2:
|
|
174
|
+
this._emitOnEnd(selectionDatas);
|
|
175
|
+
break;
|
|
176
|
+
default:
|
|
177
|
+
this._emitOnEnd(selectionDatas);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
155
180
|
}
|
|
156
181
|
getCurrentSelections() {
|
|
157
182
|
return this._getCurrentSelections();
|
|
@@ -167,7 +192,7 @@ const _WorkbookSelections = class _WorkbookSelections extends Disposable {
|
|
|
167
192
|
return selectionData[selectionData.length - 1];
|
|
168
193
|
}
|
|
169
194
|
/**
|
|
170
|
-
*
|
|
195
|
+
* Same as _getCurrentSelections(which return this._worksheetSelections), but this method would set [] if no selection.
|
|
171
196
|
* @param sheetId
|
|
172
197
|
* @returns this._worksheetSelections
|
|
173
198
|
*/
|
|
@@ -185,7 +210,7 @@ const DISABLE_NORMAL_SELECTIONS = "DISABLE_NORMAL_SELECTIONS", CELL_CONTENT = cr
|
|
|
185
210
|
CELL_CONTENT,
|
|
186
211
|
ROW_FILTERED
|
|
187
212
|
};
|
|
188
|
-
var __defProp$h = Object.defineProperty, __getOwnPropDesc$h = Object.getOwnPropertyDescriptor, __decorateClass$h = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
213
|
+
var InterceptCellContentPriority = /* @__PURE__ */ ((InterceptCellContentPriority2) => (InterceptCellContentPriority2[InterceptCellContentPriority2.DATA_VALIDATION = 9] = "DATA_VALIDATION", InterceptCellContentPriority2[InterceptCellContentPriority2.NUMFMT = 10] = "NUMFMT", InterceptCellContentPriority2))(InterceptCellContentPriority || {}), __defProp$h = Object.defineProperty, __getOwnPropDesc$h = Object.getOwnPropertyDescriptor, __decorateClass$h = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
189
214
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
190
215
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
191
216
|
return kind && result && __defProp$h(target, key, result), result;
|
|
@@ -1069,18 +1094,18 @@ function getMoveRangeUndoRedoMutations(accessor, from, to, ignoreMerge = !1) {
|
|
|
1069
1094
|
return null;
|
|
1070
1095
|
const fromCellValue = new ObjectMatrix(), newFromCellValue = new ObjectMatrix();
|
|
1071
1096
|
Range.foreach(fromRange, (row, col) => {
|
|
1072
|
-
fromCellValue.setValue(row, col, fromCellMatrix.getValue(row, col)), newFromCellValue.setValue(row, col, null);
|
|
1097
|
+
fromCellValue.setValue(row, col, Tools.deepClone(fromCellMatrix.getValue(row, col))), newFromCellValue.setValue(row, col, null);
|
|
1073
1098
|
});
|
|
1074
|
-
const toCellValue = new ObjectMatrix();
|
|
1099
|
+
const toCellValue = new ObjectMatrix(), newToCellValue = new ObjectMatrix();
|
|
1075
1100
|
Range.foreach(toRange, (row, col) => {
|
|
1076
|
-
toCellValue.setValue(row, col, toCellMatrix.getValue(row, col));
|
|
1077
|
-
})
|
|
1078
|
-
const newToCellValue = new ObjectMatrix();
|
|
1079
|
-
Range.foreach(fromRange, (row, col) => {
|
|
1101
|
+
toCellValue.setValue(row, col, Tools.deepClone(toCellMatrix.getValue(row, col)));
|
|
1102
|
+
}), Range.foreach(fromRange, (row, col) => {
|
|
1080
1103
|
const cellRange = cellToRange(row, col), relativeRange = Rectangle.getRelativeRange(cellRange, fromRange), range = Rectangle.getPositionRange(relativeRange, toRange);
|
|
1081
|
-
newToCellValue.setValue(range.startRow, range.startColumn, fromCellMatrix.getValue(row, col));
|
|
1104
|
+
newToCellValue.setValue(range.startRow, range.startColumn, Tools.deepClone(fromCellMatrix.getValue(row, col)));
|
|
1082
1105
|
});
|
|
1083
1106
|
const doMoveRangeMutation = {
|
|
1107
|
+
fromRange: from.range,
|
|
1108
|
+
toRange: to.range,
|
|
1084
1109
|
from: {
|
|
1085
1110
|
value: newFromCellValue.getMatrix(),
|
|
1086
1111
|
subUnitId: fromSubUnitId
|
|
@@ -1091,6 +1116,8 @@ function getMoveRangeUndoRedoMutations(accessor, from, to, ignoreMerge = !1) {
|
|
|
1091
1116
|
},
|
|
1092
1117
|
unitId
|
|
1093
1118
|
}, undoMoveRangeMutation = {
|
|
1119
|
+
fromRange: to.range,
|
|
1120
|
+
toRange: from.range,
|
|
1094
1121
|
from: {
|
|
1095
1122
|
value: fromCellValue.getMatrix(),
|
|
1096
1123
|
subUnitId: fromSubUnitId
|
|
@@ -1109,15 +1136,15 @@ function getMoveRangeUndoRedoMutations(accessor, from, to, ignoreMerge = !1) {
|
|
|
1109
1136
|
};
|
|
1110
1137
|
}
|
|
1111
1138
|
__name(getMoveRangeUndoRedoMutations, "getMoveRangeUndoRedoMutations");
|
|
1112
|
-
var I = /* @__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.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}),
|
|
1139
|
+
var I = /* @__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))(I || {}), L = /* @__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))(L || {}), M = /* @__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))(M || {});
|
|
1113
1140
|
const _WorksheetCopyPermission = class _WorksheetCopyPermission {
|
|
1114
1141
|
constructor(unitId, subUnitId) {
|
|
1115
1142
|
__publicField(this, "value", !0);
|
|
1116
|
-
__publicField(this, "type",
|
|
1143
|
+
__publicField(this, "type", M.Worksheet);
|
|
1117
1144
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1118
1145
|
__publicField(this, "id");
|
|
1119
|
-
__publicField(this, "subType",
|
|
1120
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1146
|
+
__publicField(this, "subType", L.Copy);
|
|
1147
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.Copy}_${unitId}_${subUnitId}`;
|
|
1121
1148
|
}
|
|
1122
1149
|
};
|
|
1123
1150
|
__name(_WorksheetCopyPermission, "WorksheetCopyPermission");
|
|
@@ -1125,11 +1152,11 @@ let WorksheetCopyPermission = _WorksheetCopyPermission;
|
|
|
1125
1152
|
const _WorksheetSelectProtectedCellsPermission = class _WorksheetSelectProtectedCellsPermission {
|
|
1126
1153
|
constructor(unitId, subUnitId) {
|
|
1127
1154
|
__publicField(this, "value", !0);
|
|
1128
|
-
__publicField(this, "type",
|
|
1155
|
+
__publicField(this, "type", M.Worksheet);
|
|
1129
1156
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1130
1157
|
__publicField(this, "id");
|
|
1131
|
-
__publicField(this, "subType",
|
|
1132
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1158
|
+
__publicField(this, "subType", L.SelectProtectedCells);
|
|
1159
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.SelectProtectedCells}_${unitId}_${subUnitId}`;
|
|
1133
1160
|
}
|
|
1134
1161
|
};
|
|
1135
1162
|
__name(_WorksheetSelectProtectedCellsPermission, "WorksheetSelectProtectedCellsPermission");
|
|
@@ -1137,11 +1164,11 @@ let WorksheetSelectProtectedCellsPermission = _WorksheetSelectProtectedCellsPerm
|
|
|
1137
1164
|
const _WorksheetSelectUnProtectedCellsPermission = class _WorksheetSelectUnProtectedCellsPermission {
|
|
1138
1165
|
constructor(unitId, subUnitId) {
|
|
1139
1166
|
__publicField(this, "value", !0);
|
|
1140
|
-
__publicField(this, "type",
|
|
1167
|
+
__publicField(this, "type", M.Worksheet);
|
|
1141
1168
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1142
1169
|
__publicField(this, "id");
|
|
1143
|
-
__publicField(this, "subType",
|
|
1144
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1170
|
+
__publicField(this, "subType", L.SelectUnProtectedCells);
|
|
1171
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.SelectUnProtectedCells}_${unitId}_${subUnitId}`;
|
|
1145
1172
|
}
|
|
1146
1173
|
};
|
|
1147
1174
|
__name(_WorksheetSelectUnProtectedCellsPermission, "WorksheetSelectUnProtectedCellsPermission");
|
|
@@ -1149,11 +1176,11 @@ let WorksheetSelectUnProtectedCellsPermission = _WorksheetSelectUnProtectedCells
|
|
|
1149
1176
|
const _WorksheetSetCellStylePermission = class _WorksheetSetCellStylePermission {
|
|
1150
1177
|
constructor(unitId, subUnitId) {
|
|
1151
1178
|
__publicField(this, "value", !0);
|
|
1152
|
-
__publicField(this, "type",
|
|
1179
|
+
__publicField(this, "type", M.Worksheet);
|
|
1153
1180
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1154
1181
|
__publicField(this, "id");
|
|
1155
|
-
__publicField(this, "subType",
|
|
1156
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1182
|
+
__publicField(this, "subType", L.SetCellStyle);
|
|
1183
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.SetCellStyle}_${unitId}_${subUnitId}`;
|
|
1157
1184
|
}
|
|
1158
1185
|
};
|
|
1159
1186
|
__name(_WorksheetSetCellStylePermission, "WorksheetSetCellStylePermission");
|
|
@@ -1161,11 +1188,11 @@ let WorksheetSetCellStylePermission = _WorksheetSetCellStylePermission;
|
|
|
1161
1188
|
const _WorksheetSetCellValuePermission = class _WorksheetSetCellValuePermission {
|
|
1162
1189
|
constructor(unitId, subUnitId) {
|
|
1163
1190
|
__publicField(this, "value", !0);
|
|
1164
|
-
__publicField(this, "type",
|
|
1191
|
+
__publicField(this, "type", M.Worksheet);
|
|
1165
1192
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1166
1193
|
__publicField(this, "id");
|
|
1167
|
-
__publicField(this, "subType",
|
|
1168
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1194
|
+
__publicField(this, "subType", L.SetCellValue);
|
|
1195
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.SetCellValue}_${unitId}_${subUnitId}`;
|
|
1169
1196
|
}
|
|
1170
1197
|
};
|
|
1171
1198
|
__name(_WorksheetSetCellValuePermission, "WorksheetSetCellValuePermission");
|
|
@@ -1173,11 +1200,11 @@ let WorksheetSetCellValuePermission = _WorksheetSetCellValuePermission;
|
|
|
1173
1200
|
const _WorksheetViewPermission = class _WorksheetViewPermission {
|
|
1174
1201
|
constructor(unitId, subUnitId) {
|
|
1175
1202
|
__publicField(this, "value", !0);
|
|
1176
|
-
__publicField(this, "type",
|
|
1203
|
+
__publicField(this, "type", M.Worksheet);
|
|
1177
1204
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1178
1205
|
__publicField(this, "id");
|
|
1179
|
-
__publicField(this, "subType",
|
|
1180
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1206
|
+
__publicField(this, "subType", L.View);
|
|
1207
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.View}_${unitId}_${subUnitId}`;
|
|
1181
1208
|
}
|
|
1182
1209
|
};
|
|
1183
1210
|
__name(_WorksheetViewPermission, "WorksheetViewPermission");
|
|
@@ -1185,11 +1212,11 @@ let WorksheetViewPermission = _WorksheetViewPermission;
|
|
|
1185
1212
|
const _WorksheetSetRowStylePermission = class _WorksheetSetRowStylePermission {
|
|
1186
1213
|
constructor(unitId, subUnitId) {
|
|
1187
1214
|
__publicField(this, "value", !0);
|
|
1188
|
-
__publicField(this, "type",
|
|
1215
|
+
__publicField(this, "type", M.Worksheet);
|
|
1189
1216
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1190
1217
|
__publicField(this, "id");
|
|
1191
|
-
__publicField(this, "subType",
|
|
1192
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1218
|
+
__publicField(this, "subType", L.SetRowStyle);
|
|
1219
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.SetRowStyle}_${unitId}_${subUnitId}`;
|
|
1193
1220
|
}
|
|
1194
1221
|
};
|
|
1195
1222
|
__name(_WorksheetSetRowStylePermission, "WorksheetSetRowStylePermission");
|
|
@@ -1197,11 +1224,11 @@ let WorksheetSetRowStylePermission = _WorksheetSetRowStylePermission;
|
|
|
1197
1224
|
const _WorksheetSetColumnStylePermission = class _WorksheetSetColumnStylePermission {
|
|
1198
1225
|
constructor(unitId, subUnitId) {
|
|
1199
1226
|
__publicField(this, "value", !0);
|
|
1200
|
-
__publicField(this, "type",
|
|
1227
|
+
__publicField(this, "type", M.Worksheet);
|
|
1201
1228
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1202
1229
|
__publicField(this, "id");
|
|
1203
|
-
__publicField(this, "subType",
|
|
1204
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1230
|
+
__publicField(this, "subType", L.SetColumnStyle);
|
|
1231
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.SetColumnStyle}_${unitId}_${subUnitId}`;
|
|
1205
1232
|
}
|
|
1206
1233
|
};
|
|
1207
1234
|
__name(_WorksheetSetColumnStylePermission, "WorksheetSetColumnStylePermission");
|
|
@@ -1209,11 +1236,11 @@ let WorksheetSetColumnStylePermission = _WorksheetSetColumnStylePermission;
|
|
|
1209
1236
|
const _WorksheetInsertRowPermission = class _WorksheetInsertRowPermission {
|
|
1210
1237
|
constructor(unitId, subUnitId) {
|
|
1211
1238
|
__publicField(this, "value", !0);
|
|
1212
|
-
__publicField(this, "type",
|
|
1239
|
+
__publicField(this, "type", M.Worksheet);
|
|
1213
1240
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1214
1241
|
__publicField(this, "id");
|
|
1215
|
-
__publicField(this, "subType",
|
|
1216
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1242
|
+
__publicField(this, "subType", L.InsertRow);
|
|
1243
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.InsertRow}_${unitId}_${subUnitId}`;
|
|
1217
1244
|
}
|
|
1218
1245
|
};
|
|
1219
1246
|
__name(_WorksheetInsertRowPermission, "WorksheetInsertRowPermission");
|
|
@@ -1221,11 +1248,11 @@ let WorksheetInsertRowPermission = _WorksheetInsertRowPermission;
|
|
|
1221
1248
|
const _WorksheetInsertColumnPermission = class _WorksheetInsertColumnPermission {
|
|
1222
1249
|
constructor(unitId, subUnitId) {
|
|
1223
1250
|
__publicField(this, "value", !0);
|
|
1224
|
-
__publicField(this, "type",
|
|
1251
|
+
__publicField(this, "type", M.Worksheet);
|
|
1225
1252
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1226
1253
|
__publicField(this, "id");
|
|
1227
|
-
__publicField(this, "subType",
|
|
1228
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1254
|
+
__publicField(this, "subType", L.InsertColumn);
|
|
1255
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.InsertColumn}_${unitId}_${subUnitId}`;
|
|
1229
1256
|
}
|
|
1230
1257
|
};
|
|
1231
1258
|
__name(_WorksheetInsertColumnPermission, "WorksheetInsertColumnPermission");
|
|
@@ -1233,11 +1260,11 @@ let WorksheetInsertColumnPermission = _WorksheetInsertColumnPermission;
|
|
|
1233
1260
|
const _WorksheetInsertHyperlinkPermission = class _WorksheetInsertHyperlinkPermission {
|
|
1234
1261
|
constructor(unitId, subUnitId) {
|
|
1235
1262
|
__publicField(this, "value", !0);
|
|
1236
|
-
__publicField(this, "type",
|
|
1263
|
+
__publicField(this, "type", M.Worksheet);
|
|
1237
1264
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1238
1265
|
__publicField(this, "id");
|
|
1239
|
-
__publicField(this, "subType",
|
|
1240
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1266
|
+
__publicField(this, "subType", L.InsertHyperlink);
|
|
1267
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.InsertHyperlink}_${unitId}_${subUnitId}`;
|
|
1241
1268
|
}
|
|
1242
1269
|
};
|
|
1243
1270
|
__name(_WorksheetInsertHyperlinkPermission, "WorksheetInsertHyperlinkPermission");
|
|
@@ -1245,11 +1272,11 @@ let WorksheetInsertHyperlinkPermission = _WorksheetInsertHyperlinkPermission;
|
|
|
1245
1272
|
const _WorksheetDeleteRowPermission = class _WorksheetDeleteRowPermission {
|
|
1246
1273
|
constructor(unitId, subUnitId) {
|
|
1247
1274
|
__publicField(this, "value", !0);
|
|
1248
|
-
__publicField(this, "type",
|
|
1275
|
+
__publicField(this, "type", M.Worksheet);
|
|
1249
1276
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1250
1277
|
__publicField(this, "id");
|
|
1251
|
-
__publicField(this, "subType",
|
|
1252
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1278
|
+
__publicField(this, "subType", L.DeleteRow);
|
|
1279
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.DeleteRow}_${unitId}_${subUnitId}`;
|
|
1253
1280
|
}
|
|
1254
1281
|
};
|
|
1255
1282
|
__name(_WorksheetDeleteRowPermission, "WorksheetDeleteRowPermission");
|
|
@@ -1257,11 +1284,11 @@ let WorksheetDeleteRowPermission = _WorksheetDeleteRowPermission;
|
|
|
1257
1284
|
const _WorksheetDeleteColumnPermission = class _WorksheetDeleteColumnPermission {
|
|
1258
1285
|
constructor(unitId, subUnitId) {
|
|
1259
1286
|
__publicField(this, "value", !0);
|
|
1260
|
-
__publicField(this, "type",
|
|
1287
|
+
__publicField(this, "type", M.Worksheet);
|
|
1261
1288
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1262
1289
|
__publicField(this, "id");
|
|
1263
|
-
__publicField(this, "subType",
|
|
1264
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1290
|
+
__publicField(this, "subType", L.DeleteColumn);
|
|
1291
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.DeleteColumn}_${unitId}_${subUnitId}`;
|
|
1265
1292
|
}
|
|
1266
1293
|
};
|
|
1267
1294
|
__name(_WorksheetDeleteColumnPermission, "WorksheetDeleteColumnPermission");
|
|
@@ -1269,11 +1296,11 @@ let WorksheetDeleteColumnPermission = _WorksheetDeleteColumnPermission;
|
|
|
1269
1296
|
const _WorksheetSortPermission = class _WorksheetSortPermission {
|
|
1270
1297
|
constructor(unitId, subUnitId) {
|
|
1271
1298
|
__publicField(this, "value", !0);
|
|
1272
|
-
__publicField(this, "type",
|
|
1299
|
+
__publicField(this, "type", M.Worksheet);
|
|
1273
1300
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1274
1301
|
__publicField(this, "id");
|
|
1275
|
-
__publicField(this, "subType",
|
|
1276
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1302
|
+
__publicField(this, "subType", L.Sort);
|
|
1303
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.Sort}_${unitId}_${subUnitId}`;
|
|
1277
1304
|
}
|
|
1278
1305
|
};
|
|
1279
1306
|
__name(_WorksheetSortPermission, "WorksheetSortPermission");
|
|
@@ -1281,11 +1308,11 @@ let WorksheetSortPermission = _WorksheetSortPermission;
|
|
|
1281
1308
|
const _WorksheetFilterPermission = class _WorksheetFilterPermission {
|
|
1282
1309
|
constructor(unitId, subUnitId) {
|
|
1283
1310
|
__publicField(this, "value", !0);
|
|
1284
|
-
__publicField(this, "type",
|
|
1311
|
+
__publicField(this, "type", M.Worksheet);
|
|
1285
1312
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1286
1313
|
__publicField(this, "id");
|
|
1287
|
-
__publicField(this, "subType",
|
|
1288
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1314
|
+
__publicField(this, "subType", L.Filter);
|
|
1315
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.Filter}_${unitId}_${subUnitId}`;
|
|
1289
1316
|
}
|
|
1290
1317
|
};
|
|
1291
1318
|
__name(_WorksheetFilterPermission, "WorksheetFilterPermission");
|
|
@@ -1293,11 +1320,11 @@ let WorksheetFilterPermission = _WorksheetFilterPermission;
|
|
|
1293
1320
|
const _WorksheetPivotTablePermission = class _WorksheetPivotTablePermission {
|
|
1294
1321
|
constructor(unitId, subUnitId) {
|
|
1295
1322
|
__publicField(this, "value", !0);
|
|
1296
|
-
__publicField(this, "type",
|
|
1323
|
+
__publicField(this, "type", M.Worksheet);
|
|
1297
1324
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1298
1325
|
__publicField(this, "id");
|
|
1299
|
-
__publicField(this, "subType",
|
|
1300
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1326
|
+
__publicField(this, "subType", L.PivotTable);
|
|
1327
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.PivotTable}_${unitId}_${subUnitId}`;
|
|
1301
1328
|
}
|
|
1302
1329
|
};
|
|
1303
1330
|
__name(_WorksheetPivotTablePermission, "WorksheetPivotTablePermission");
|
|
@@ -1305,11 +1332,11 @@ let WorksheetPivotTablePermission = _WorksheetPivotTablePermission;
|
|
|
1305
1332
|
const _WorksheetEditExtraObjectPermission = class _WorksheetEditExtraObjectPermission {
|
|
1306
1333
|
constructor(unitId, subUnitId) {
|
|
1307
1334
|
__publicField(this, "value", !0);
|
|
1308
|
-
__publicField(this, "type",
|
|
1335
|
+
__publicField(this, "type", M.Worksheet);
|
|
1309
1336
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1310
1337
|
__publicField(this, "id");
|
|
1311
|
-
__publicField(this, "subType",
|
|
1312
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1338
|
+
__publicField(this, "subType", L.EditExtraObject);
|
|
1339
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.EditExtraObject}_${unitId}_${subUnitId}`;
|
|
1313
1340
|
}
|
|
1314
1341
|
};
|
|
1315
1342
|
__name(_WorksheetEditExtraObjectPermission, "WorksheetEditExtraObjectPermission");
|
|
@@ -1317,11 +1344,11 @@ let WorksheetEditExtraObjectPermission = _WorksheetEditExtraObjectPermission;
|
|
|
1317
1344
|
const _WorksheetManageCollaboratorPermission = class _WorksheetManageCollaboratorPermission {
|
|
1318
1345
|
constructor(unitId, subUnitId) {
|
|
1319
1346
|
__publicField(this, "value", !0);
|
|
1320
|
-
__publicField(this, "type",
|
|
1347
|
+
__publicField(this, "type", M.Worksheet);
|
|
1321
1348
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1322
1349
|
__publicField(this, "id");
|
|
1323
|
-
__publicField(this, "subType",
|
|
1324
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1350
|
+
__publicField(this, "subType", L.ManageCollaborator);
|
|
1351
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.ManageCollaborator}_${unitId}_${subUnitId}`;
|
|
1325
1352
|
}
|
|
1326
1353
|
};
|
|
1327
1354
|
__name(_WorksheetManageCollaboratorPermission, "WorksheetManageCollaboratorPermission");
|
|
@@ -1329,11 +1356,11 @@ let WorksheetManageCollaboratorPermission = _WorksheetManageCollaboratorPermissi
|
|
|
1329
1356
|
const _WorksheetEditPermission = class _WorksheetEditPermission {
|
|
1330
1357
|
constructor(unitId, subUnitId) {
|
|
1331
1358
|
__publicField(this, "value", !0);
|
|
1332
|
-
__publicField(this, "type",
|
|
1359
|
+
__publicField(this, "type", M.Worksheet);
|
|
1333
1360
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1334
1361
|
__publicField(this, "id");
|
|
1335
|
-
__publicField(this, "subType",
|
|
1336
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${
|
|
1362
|
+
__publicField(this, "subType", L.Edit);
|
|
1363
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.id = `${this.type}.${L.Edit}_${unitId}_${subUnitId}`;
|
|
1337
1364
|
}
|
|
1338
1365
|
};
|
|
1339
1366
|
__name(_WorksheetEditPermission, "WorksheetEditPermission");
|
|
@@ -1342,10 +1369,10 @@ const _WorkbookCommentPermission = class _WorkbookCommentPermission {
|
|
|
1342
1369
|
constructor(unitId) {
|
|
1343
1370
|
__publicField(this, "id");
|
|
1344
1371
|
__publicField(this, "value", !0);
|
|
1345
|
-
__publicField(this, "type",
|
|
1372
|
+
__publicField(this, "type", M.Workbook);
|
|
1346
1373
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1347
|
-
__publicField(this, "subType",
|
|
1348
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1374
|
+
__publicField(this, "subType", L.Comment);
|
|
1375
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.Comment}_${unitId}`;
|
|
1349
1376
|
}
|
|
1350
1377
|
};
|
|
1351
1378
|
__name(_WorkbookCommentPermission, "WorkbookCommentPermission");
|
|
@@ -1354,10 +1381,10 @@ const _WorkbookEditablePermission = class _WorkbookEditablePermission {
|
|
|
1354
1381
|
constructor(unitId) {
|
|
1355
1382
|
__publicField(this, "id");
|
|
1356
1383
|
__publicField(this, "value", !0);
|
|
1357
|
-
__publicField(this, "type",
|
|
1384
|
+
__publicField(this, "type", M.Workbook);
|
|
1358
1385
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1359
|
-
__publicField(this, "subType",
|
|
1360
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1386
|
+
__publicField(this, "subType", L.Edit);
|
|
1387
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.Edit}_${unitId}`;
|
|
1361
1388
|
}
|
|
1362
1389
|
};
|
|
1363
1390
|
__name(_WorkbookEditablePermission, "WorkbookEditablePermission");
|
|
@@ -1366,10 +1393,10 @@ const _WorkbookDuplicatePermission = class _WorkbookDuplicatePermission {
|
|
|
1366
1393
|
constructor(unitId) {
|
|
1367
1394
|
__publicField(this, "id");
|
|
1368
1395
|
__publicField(this, "value", !0);
|
|
1369
|
-
__publicField(this, "type",
|
|
1396
|
+
__publicField(this, "type", M.Workbook);
|
|
1370
1397
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1371
|
-
__publicField(this, "subType",
|
|
1372
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1398
|
+
__publicField(this, "subType", L.Duplicate);
|
|
1399
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.Duplicate}_${unitId}`;
|
|
1373
1400
|
}
|
|
1374
1401
|
};
|
|
1375
1402
|
__name(_WorkbookDuplicatePermission, "WorkbookDuplicatePermission");
|
|
@@ -1378,10 +1405,10 @@ const _WorkbookPrintPermission = class _WorkbookPrintPermission {
|
|
|
1378
1405
|
constructor(unitId) {
|
|
1379
1406
|
__publicField(this, "id");
|
|
1380
1407
|
__publicField(this, "value", !0);
|
|
1381
|
-
__publicField(this, "type",
|
|
1408
|
+
__publicField(this, "type", M.Workbook);
|
|
1382
1409
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1383
|
-
__publicField(this, "subType",
|
|
1384
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1410
|
+
__publicField(this, "subType", L.Print);
|
|
1411
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.Print}_${unitId}`;
|
|
1385
1412
|
}
|
|
1386
1413
|
};
|
|
1387
1414
|
__name(_WorkbookPrintPermission, "WorkbookPrintPermission");
|
|
@@ -1390,10 +1417,10 @@ const _WorkbookExportPermission = class _WorkbookExportPermission {
|
|
|
1390
1417
|
constructor(unitId) {
|
|
1391
1418
|
__publicField(this, "id");
|
|
1392
1419
|
__publicField(this, "value", !0);
|
|
1393
|
-
__publicField(this, "type",
|
|
1420
|
+
__publicField(this, "type", M.Workbook);
|
|
1394
1421
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1395
|
-
__publicField(this, "subType",
|
|
1396
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1422
|
+
__publicField(this, "subType", L.Export);
|
|
1423
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.Export}_${unitId}`;
|
|
1397
1424
|
}
|
|
1398
1425
|
};
|
|
1399
1426
|
__name(_WorkbookExportPermission, "WorkbookExportPermission");
|
|
@@ -1402,10 +1429,10 @@ const _WorkbookMoveSheetPermission = class _WorkbookMoveSheetPermission {
|
|
|
1402
1429
|
constructor(unitId) {
|
|
1403
1430
|
__publicField(this, "id");
|
|
1404
1431
|
__publicField(this, "value", !0);
|
|
1405
|
-
__publicField(this, "type",
|
|
1432
|
+
__publicField(this, "type", M.Workbook);
|
|
1406
1433
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1407
|
-
__publicField(this, "subType",
|
|
1408
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1434
|
+
__publicField(this, "subType", L.MoveSheet);
|
|
1435
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.MoveSheet}_${unitId}`;
|
|
1409
1436
|
}
|
|
1410
1437
|
};
|
|
1411
1438
|
__name(_WorkbookMoveSheetPermission, "WorkbookMoveSheetPermission");
|
|
@@ -1414,10 +1441,10 @@ const _WorkbookDeleteSheetPermission = class _WorkbookDeleteSheetPermission {
|
|
|
1414
1441
|
constructor(unitId) {
|
|
1415
1442
|
__publicField(this, "id");
|
|
1416
1443
|
__publicField(this, "value", !0);
|
|
1417
|
-
__publicField(this, "type",
|
|
1444
|
+
__publicField(this, "type", M.Workbook);
|
|
1418
1445
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1419
|
-
__publicField(this, "subType",
|
|
1420
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1446
|
+
__publicField(this, "subType", L.DeleteSheet);
|
|
1447
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.DeleteSheet}_${unitId}`;
|
|
1421
1448
|
}
|
|
1422
1449
|
};
|
|
1423
1450
|
__name(_WorkbookDeleteSheetPermission, "WorkbookDeleteSheetPermission");
|
|
@@ -1426,10 +1453,10 @@ const _WorkbookHideSheetPermission = class _WorkbookHideSheetPermission {
|
|
|
1426
1453
|
constructor(unitId) {
|
|
1427
1454
|
__publicField(this, "id");
|
|
1428
1455
|
__publicField(this, "value", !0);
|
|
1429
|
-
__publicField(this, "type",
|
|
1456
|
+
__publicField(this, "type", M.Workbook);
|
|
1430
1457
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1431
|
-
__publicField(this, "subType",
|
|
1432
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1458
|
+
__publicField(this, "subType", L.HideSheet);
|
|
1459
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.HideSheet}_${unitId}`;
|
|
1433
1460
|
}
|
|
1434
1461
|
};
|
|
1435
1462
|
__name(_WorkbookHideSheetPermission, "WorkbookHideSheetPermission");
|
|
@@ -1438,10 +1465,10 @@ const _WorkbookRenameSheetPermission = class _WorkbookRenameSheetPermission {
|
|
|
1438
1465
|
constructor(unitId) {
|
|
1439
1466
|
__publicField(this, "id");
|
|
1440
1467
|
__publicField(this, "value", !0);
|
|
1441
|
-
__publicField(this, "type",
|
|
1468
|
+
__publicField(this, "type", M.Workbook);
|
|
1442
1469
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1443
|
-
__publicField(this, "subType",
|
|
1444
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1470
|
+
__publicField(this, "subType", L.RenameSheet);
|
|
1471
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.RenameSheet}_${unitId}`;
|
|
1445
1472
|
}
|
|
1446
1473
|
};
|
|
1447
1474
|
__name(_WorkbookRenameSheetPermission, "WorkbookRenameSheetPermission");
|
|
@@ -1450,10 +1477,10 @@ const _WorkbookCreateSheetPermission = class _WorkbookCreateSheetPermission {
|
|
|
1450
1477
|
constructor(unitId) {
|
|
1451
1478
|
__publicField(this, "id");
|
|
1452
1479
|
__publicField(this, "value", !0);
|
|
1453
|
-
__publicField(this, "type",
|
|
1480
|
+
__publicField(this, "type", M.Workbook);
|
|
1454
1481
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1455
|
-
__publicField(this, "subType",
|
|
1456
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1482
|
+
__publicField(this, "subType", L.CreateSheet);
|
|
1483
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.CreateSheet}_${unitId}`;
|
|
1457
1484
|
}
|
|
1458
1485
|
};
|
|
1459
1486
|
__name(_WorkbookCreateSheetPermission, "WorkbookCreateSheetPermission");
|
|
@@ -1462,10 +1489,10 @@ const _WorkbookHistoryPermission = class _WorkbookHistoryPermission {
|
|
|
1462
1489
|
constructor(unitId) {
|
|
1463
1490
|
__publicField(this, "id");
|
|
1464
1491
|
__publicField(this, "value", !0);
|
|
1465
|
-
__publicField(this, "type",
|
|
1492
|
+
__publicField(this, "type", M.Workbook);
|
|
1466
1493
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1467
|
-
__publicField(this, "subType",
|
|
1468
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1494
|
+
__publicField(this, "subType", L.History);
|
|
1495
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.History}_${unitId}`;
|
|
1469
1496
|
}
|
|
1470
1497
|
};
|
|
1471
1498
|
__name(_WorkbookHistoryPermission, "WorkbookHistoryPermission");
|
|
@@ -1474,10 +1501,10 @@ const _WorkbookViewPermission = class _WorkbookViewPermission {
|
|
|
1474
1501
|
constructor(unitId) {
|
|
1475
1502
|
__publicField(this, "id");
|
|
1476
1503
|
__publicField(this, "value", !0);
|
|
1477
|
-
__publicField(this, "type",
|
|
1504
|
+
__publicField(this, "type", M.Workbook);
|
|
1478
1505
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1479
|
-
__publicField(this, "subType",
|
|
1480
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1506
|
+
__publicField(this, "subType", L.View);
|
|
1507
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.View}_${unitId}`;
|
|
1481
1508
|
}
|
|
1482
1509
|
};
|
|
1483
1510
|
__name(_WorkbookViewPermission, "WorkbookViewPermission");
|
|
@@ -1486,10 +1513,10 @@ const _WorkbookSharePermission = class _WorkbookSharePermission {
|
|
|
1486
1513
|
constructor(unitId) {
|
|
1487
1514
|
__publicField(this, "id");
|
|
1488
1515
|
__publicField(this, "value", !0);
|
|
1489
|
-
__publicField(this, "type",
|
|
1516
|
+
__publicField(this, "type", M.Workbook);
|
|
1490
1517
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1491
|
-
__publicField(this, "subType",
|
|
1492
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1518
|
+
__publicField(this, "subType", L.Share);
|
|
1519
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.Share}_${unitId}`;
|
|
1493
1520
|
}
|
|
1494
1521
|
};
|
|
1495
1522
|
__name(_WorkbookSharePermission, "WorkbookSharePermission");
|
|
@@ -1498,10 +1525,10 @@ const _WorkbookCopyPermission = class _WorkbookCopyPermission {
|
|
|
1498
1525
|
constructor(unitId) {
|
|
1499
1526
|
__publicField(this, "id");
|
|
1500
1527
|
__publicField(this, "value", !0);
|
|
1501
|
-
__publicField(this, "type",
|
|
1528
|
+
__publicField(this, "type", M.Workbook);
|
|
1502
1529
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1503
|
-
__publicField(this, "subType",
|
|
1504
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1530
|
+
__publicField(this, "subType", L.Copy);
|
|
1531
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.Copy}_${unitId}`;
|
|
1505
1532
|
}
|
|
1506
1533
|
};
|
|
1507
1534
|
__name(_WorkbookCopyPermission, "WorkbookCopyPermission");
|
|
@@ -1510,10 +1537,10 @@ const _WorkbookCopySheetPermission = class _WorkbookCopySheetPermission {
|
|
|
1510
1537
|
constructor(unitId) {
|
|
1511
1538
|
__publicField(this, "id");
|
|
1512
1539
|
__publicField(this, "value", !0);
|
|
1513
|
-
__publicField(this, "type",
|
|
1514
|
-
__publicField(this, "subType",
|
|
1540
|
+
__publicField(this, "type", M.Workbook);
|
|
1541
|
+
__publicField(this, "subType", L.CopySheet);
|
|
1515
1542
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1516
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1543
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.CopySheet}_${unitId}`;
|
|
1517
1544
|
}
|
|
1518
1545
|
};
|
|
1519
1546
|
__name(_WorkbookCopySheetPermission, "WorkbookCopySheetPermission");
|
|
@@ -1522,10 +1549,10 @@ const _WorkbookManageCollaboratorPermission = class _WorkbookManageCollaboratorP
|
|
|
1522
1549
|
constructor(unitId) {
|
|
1523
1550
|
__publicField(this, "id");
|
|
1524
1551
|
__publicField(this, "value", !0);
|
|
1525
|
-
__publicField(this, "type",
|
|
1552
|
+
__publicField(this, "type", M.Workbook);
|
|
1526
1553
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1527
|
-
__publicField(this, "subType",
|
|
1528
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1554
|
+
__publicField(this, "subType", L.ManageCollaborator);
|
|
1555
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.ManageCollaborator}_${unitId}`;
|
|
1529
1556
|
}
|
|
1530
1557
|
};
|
|
1531
1558
|
__name(_WorkbookManageCollaboratorPermission, "WorkbookManageCollaboratorPermission");
|
|
@@ -1534,10 +1561,10 @@ const _WorkbookViewHistoryPermission = class _WorkbookViewHistoryPermission {
|
|
|
1534
1561
|
constructor(unitId) {
|
|
1535
1562
|
__publicField(this, "id");
|
|
1536
1563
|
__publicField(this, "value", !0);
|
|
1537
|
-
__publicField(this, "type",
|
|
1564
|
+
__publicField(this, "type", M.Workbook);
|
|
1538
1565
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1539
|
-
__publicField(this, "subType",
|
|
1540
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1566
|
+
__publicField(this, "subType", L.ViewHistory);
|
|
1567
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.ViewHistory}_${unitId}`;
|
|
1541
1568
|
}
|
|
1542
1569
|
};
|
|
1543
1570
|
__name(_WorkbookViewHistoryPermission, "WorkbookViewHistoryPermission");
|
|
@@ -1546,40 +1573,40 @@ const _WorkbookRecoverHistoryPermission = class _WorkbookRecoverHistoryPermissio
|
|
|
1546
1573
|
constructor(unitId) {
|
|
1547
1574
|
__publicField(this, "id");
|
|
1548
1575
|
__publicField(this, "value", !0);
|
|
1549
|
-
__publicField(this, "type",
|
|
1576
|
+
__publicField(this, "type", M.Workbook);
|
|
1550
1577
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1551
|
-
__publicField(this, "subType",
|
|
1552
|
-
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${
|
|
1578
|
+
__publicField(this, "subType", L.RecoverHistory);
|
|
1579
|
+
this.unitId = unitId, this.unitId = unitId, this.id = `${this.type}.${L.RecoverHistory}_${unitId}`;
|
|
1553
1580
|
}
|
|
1554
1581
|
};
|
|
1555
1582
|
__name(_WorkbookRecoverHistoryPermission, "WorkbookRecoverHistoryPermission");
|
|
1556
1583
|
let WorkbookRecoverHistoryPermission = _WorkbookRecoverHistoryPermission;
|
|
1557
1584
|
const _RangeProtectionPermissionEditPoint = class _RangeProtectionPermissionEditPoint {
|
|
1558
1585
|
constructor(unitId, subUnitId, permissionId) {
|
|
1559
|
-
__publicField(this, "type",
|
|
1560
|
-
__publicField(this, "subType",
|
|
1586
|
+
__publicField(this, "type", M.SelectRange);
|
|
1587
|
+
__publicField(this, "subType", L.Edit);
|
|
1561
1588
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1562
1589
|
__publicField(this, "value", !0);
|
|
1563
1590
|
__publicField(this, "id");
|
|
1564
1591
|
__publicField(this, "unitId");
|
|
1565
1592
|
__publicField(this, "subUnitId");
|
|
1566
1593
|
__publicField(this, "permissionId");
|
|
1567
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${
|
|
1594
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${M.SelectRange}.${L.Edit}.${permissionId}`;
|
|
1568
1595
|
}
|
|
1569
1596
|
};
|
|
1570
1597
|
__name(_RangeProtectionPermissionEditPoint, "RangeProtectionPermissionEditPoint");
|
|
1571
1598
|
let RangeProtectionPermissionEditPoint = _RangeProtectionPermissionEditPoint;
|
|
1572
1599
|
const _RangeProtectionPermissionViewPoint = class _RangeProtectionPermissionViewPoint {
|
|
1573
1600
|
constructor(unitId, subUnitId, permissionId) {
|
|
1574
|
-
__publicField(this, "type",
|
|
1575
|
-
__publicField(this, "subType",
|
|
1601
|
+
__publicField(this, "type", M.SelectRange);
|
|
1602
|
+
__publicField(this, "subType", L.View);
|
|
1576
1603
|
__publicField(this, "status", PermissionStatus.INIT);
|
|
1577
1604
|
__publicField(this, "value", !0);
|
|
1578
1605
|
__publicField(this, "id");
|
|
1579
1606
|
__publicField(this, "unitId");
|
|
1580
1607
|
__publicField(this, "subUnitId");
|
|
1581
1608
|
__publicField(this, "permissionId");
|
|
1582
|
-
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${
|
|
1609
|
+
this.unitId = unitId, this.subUnitId = subUnitId, this.permissionId = permissionId, this.id = `${M.SelectRange}.${L.View}.${permissionId}`;
|
|
1583
1610
|
}
|
|
1584
1611
|
};
|
|
1585
1612
|
__name(_RangeProtectionPermissionViewPoint, "RangeProtectionPermissionViewPoint");
|
|
@@ -2608,7 +2635,7 @@ const MoveRowsCommandId = "sheet.command.move-rows", MoveRowsCommand = {
|
|
|
2608
2635
|
ranges.push(totalRange);
|
|
2609
2636
|
if (!await sheetInterceptorService.beforeCommandExecute({
|
|
2610
2637
|
id: RemoveRowCommand.id,
|
|
2611
|
-
params: { range: totalRange }
|
|
2638
|
+
params: { range: totalRange, ranges }
|
|
2612
2639
|
}))
|
|
2613
2640
|
return !1;
|
|
2614
2641
|
const redos = [], undos = [];
|
|
@@ -2629,7 +2656,7 @@ const MoveRowsCommandId = "sheet.command.move-rows", MoveRowsCommand = {
|
|
|
2629
2656
|
});
|
|
2630
2657
|
const intercepted = sheetInterceptorService.onCommandExecute({
|
|
2631
2658
|
id: RemoveRowCommand.id,
|
|
2632
|
-
params: { range: totalRange }
|
|
2659
|
+
params: { range: totalRange, ranges }
|
|
2633
2660
|
}), commandService = accessor.get(ICommandService);
|
|
2634
2661
|
return sequenceExecute(
|
|
2635
2662
|
[
|
|
@@ -4864,7 +4891,7 @@ let WorksheetProtectionRuleModel = (_a4 = class {
|
|
|
4864
4891
|
constructor() {
|
|
4865
4892
|
/**
|
|
4866
4893
|
*
|
|
4867
|
-
* Map<unitId, Map<subUnitId, Map<
|
|
4894
|
+
* Map<unitId, Map<subUnitId, Map<subUnitId, IWorksheetProtectionRule>>>
|
|
4868
4895
|
*/
|
|
4869
4896
|
__publicField(this, "_model", /* @__PURE__ */ new Map());
|
|
4870
4897
|
__publicField(this, "_ruleChange", new Subject());
|
|
@@ -4918,8 +4945,8 @@ let WorksheetProtectionRuleModel = (_a4 = class {
|
|
|
4918
4945
|
}
|
|
4919
4946
|
}), this._model = result;
|
|
4920
4947
|
}
|
|
4921
|
-
deleteUnitModel() {
|
|
4922
|
-
this._model.
|
|
4948
|
+
deleteUnitModel(unitId) {
|
|
4949
|
+
this._model.delete(unitId);
|
|
4923
4950
|
}
|
|
4924
4951
|
_ensureSubUnitMap(unitId) {
|
|
4925
4952
|
let subUnitMap = this._model.get(unitId);
|
|
@@ -4931,6 +4958,13 @@ let WorksheetProtectionRuleModel = (_a4 = class {
|
|
|
4931
4958
|
resetOrder() {
|
|
4932
4959
|
this._resetOrder.next(Math.random());
|
|
4933
4960
|
}
|
|
4961
|
+
getTargetByPermissionId(unitId, permissionId) {
|
|
4962
|
+
const subUnitMap = this._model.get(unitId);
|
|
4963
|
+
if (!subUnitMap) return null;
|
|
4964
|
+
for (const [subUnitId, rule] of subUnitMap)
|
|
4965
|
+
if (rule.permissionId === permissionId)
|
|
4966
|
+
return [unitId, subUnitId];
|
|
4967
|
+
}
|
|
4934
4968
|
}, __name(_a4, "WorksheetProtectionRuleModel"), _a4);
|
|
4935
4969
|
WorksheetProtectionRuleModel = __decorateClass$f([
|
|
4936
4970
|
OnLifecycle(LifecycleStages.Starting, WorksheetProtectionRuleModel)
|
|
@@ -5029,8 +5063,8 @@ let RangeProtectionRuleModel = (_a5 = class {
|
|
|
5029
5063
|
}), result.set(unitId, map2);
|
|
5030
5064
|
}), this._model = result;
|
|
5031
5065
|
}
|
|
5032
|
-
deleteUnitModel() {
|
|
5033
|
-
this._model.
|
|
5066
|
+
deleteUnitModel(unitId) {
|
|
5067
|
+
this._model.delete(unitId);
|
|
5034
5068
|
}
|
|
5035
5069
|
createRuleId(unitId, subUnitId) {
|
|
5036
5070
|
let id = Tools.generateRandomId(4);
|
|
@@ -5039,6 +5073,15 @@ let RangeProtectionRuleModel = (_a5 = class {
|
|
|
5039
5073
|
id = Tools.generateRandomId(4);
|
|
5040
5074
|
return id;
|
|
5041
5075
|
}
|
|
5076
|
+
getTargetByPermissionId(unitId, permissionId) {
|
|
5077
|
+
const subUnitMap = this._model.get(unitId);
|
|
5078
|
+
if (!subUnitMap) return null;
|
|
5079
|
+
for (const [subUnitId, ruleMap] of subUnitMap)
|
|
5080
|
+
for (const rule of ruleMap.values())
|
|
5081
|
+
if (rule.permissionId === permissionId)
|
|
5082
|
+
return [unitId, subUnitId];
|
|
5083
|
+
return null;
|
|
5084
|
+
}
|
|
5042
5085
|
}, __name(_a5, "RangeProtectionRuleModel"), _a5);
|
|
5043
5086
|
RangeProtectionRuleModel = __decorateClass$e([
|
|
5044
5087
|
OnLifecycle(LifecycleStages.Starting, RangeProtectionRuleModel)
|
|
@@ -5062,20 +5105,20 @@ const getAllWorksheetPermissionPoint = /* @__PURE__ */ __name(() => [
|
|
|
5062
5105
|
WorksheetSetRowStylePermission,
|
|
5063
5106
|
WorksheetSortPermission
|
|
5064
5107
|
], "getAllWorksheetPermissionPointByPointPanel"), defaultWorksheetPermissionPoint = [
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5108
|
+
L.Copy,
|
|
5109
|
+
L.DeleteColumn,
|
|
5110
|
+
L.DeleteRow,
|
|
5111
|
+
L.EditExtraObject,
|
|
5112
|
+
L.Filter,
|
|
5113
|
+
L.InsertColumn,
|
|
5114
|
+
L.InsertRow,
|
|
5115
|
+
L.InsertHyperlink,
|
|
5116
|
+
L.PivotTable,
|
|
5117
|
+
L.SetCellStyle,
|
|
5118
|
+
L.SetCellValue,
|
|
5119
|
+
L.SetColumnStyle,
|
|
5120
|
+
L.SetRowStyle,
|
|
5121
|
+
L.Sort
|
|
5079
5122
|
];
|
|
5080
5123
|
var __defProp$d = Object.defineProperty, __getOwnPropDesc$d = Object.getOwnPropertyDescriptor, __decorateClass$d = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
5081
5124
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -5122,13 +5165,20 @@ let WorksheetProtectionPointModel = (_a6 = class {
|
|
|
5122
5165
|
}
|
|
5123
5166
|
}), this._model = result;
|
|
5124
5167
|
}
|
|
5125
|
-
deleteUnitModel() {
|
|
5126
|
-
this._model.
|
|
5168
|
+
deleteUnitModel(unitId) {
|
|
5169
|
+
this._model.delete(unitId);
|
|
5127
5170
|
}
|
|
5128
5171
|
_ensureSubUnitMap(unitId) {
|
|
5129
5172
|
let subUnitMap = this._model.get(unitId);
|
|
5130
5173
|
return subUnitMap || (subUnitMap = /* @__PURE__ */ new Map(), this._model.set(unitId, subUnitMap)), subUnitMap;
|
|
5131
5174
|
}
|
|
5175
|
+
getTargetByPermissionId(unitId, permissionId) {
|
|
5176
|
+
const subUnitMap = this._model.get(unitId);
|
|
5177
|
+
if (!subUnitMap) return null;
|
|
5178
|
+
for (const [subUnitId, rule] of subUnitMap)
|
|
5179
|
+
if (rule.permissionId === permissionId)
|
|
5180
|
+
return [unitId, subUnitId];
|
|
5181
|
+
}
|
|
5132
5182
|
}, __name(_a6, "WorksheetProtectionPointModel"), _a6);
|
|
5133
5183
|
WorksheetProtectionPointModel = __decorateClass$d([
|
|
5134
5184
|
OnLifecycle(LifecycleStages.Starting, WorksheetProtectionPointModel)
|
|
@@ -5233,8 +5283,8 @@ let WorksheetPermissionService = (_a7 = class extends RxDisposable {
|
|
|
5233
5283
|
});
|
|
5234
5284
|
}), this._worksheetProtectionRuleModel.changeRuleInitState(!0);
|
|
5235
5285
|
}, "onLoad"),
|
|
5236
|
-
onUnLoad: /* @__PURE__ */ __name(() => {
|
|
5237
|
-
this._worksheetProtectionRuleModel.deleteUnitModel();
|
|
5286
|
+
onUnLoad: /* @__PURE__ */ __name((unitId) => {
|
|
5287
|
+
this._worksheetProtectionRuleModel.deleteUnitModel(unitId);
|
|
5238
5288
|
}, "onUnLoad")
|
|
5239
5289
|
})
|
|
5240
5290
|
);
|
|
@@ -5266,8 +5316,8 @@ let WorksheetPermissionService = (_a7 = class extends RxDisposable {
|
|
|
5266
5316
|
});
|
|
5267
5317
|
});
|
|
5268
5318
|
}, "onLoad"),
|
|
5269
|
-
onUnLoad: /* @__PURE__ */ __name(() => {
|
|
5270
|
-
this._worksheetProtectionPointRuleModel.deleteUnitModel();
|
|
5319
|
+
onUnLoad: /* @__PURE__ */ __name((unitId) => {
|
|
5320
|
+
this._worksheetProtectionPointRuleModel.deleteUnitModel(unitId);
|
|
5271
5321
|
}, "onUnLoad")
|
|
5272
5322
|
})
|
|
5273
5323
|
);
|
|
@@ -6141,7 +6191,16 @@ const handleInsertRow = /* @__PURE__ */ __name((param, targetRange) => {
|
|
|
6141
6191
|
matrix.setValue(row, col, 1);
|
|
6142
6192
|
});
|
|
6143
6193
|
}), queryObjectMatrix(matrix, (v) => v === 1);
|
|
6144
|
-
}, "handleDeleteRangeMoveUpCommon"),
|
|
6194
|
+
}, "handleDeleteRangeMoveUpCommon"), handleRemoveRowCommon = /* @__PURE__ */ __name((param, targetRange) => {
|
|
6195
|
+
var _a20;
|
|
6196
|
+
const ranges = (_a20 = param.ranges) != null ? _a20 : [param.range], matrix = new ObjectMatrix();
|
|
6197
|
+
return Range.foreach(targetRange, (row, col) => {
|
|
6198
|
+
matrix.setValue(row, col, 1);
|
|
6199
|
+
}), ranges.forEach((range) => {
|
|
6200
|
+
const startRow = range.startRow, count = range.endRow - startRow + 1;
|
|
6201
|
+
matrix.removeRows(startRow, count);
|
|
6202
|
+
}), queryObjectMatrix(matrix, (value) => value === 1);
|
|
6203
|
+
}, "handleRemoveRowCommon"), runRefRangeMutations = /* @__PURE__ */ __name((operators, range) => {
|
|
6145
6204
|
let result = { ...range };
|
|
6146
6205
|
return operators.forEach((operator) => {
|
|
6147
6206
|
switch (operator.type) {
|
|
@@ -6220,7 +6279,7 @@ const handleInsertRow = /* @__PURE__ */ __name((param, targetRange) => {
|
|
|
6220
6279
|
}
|
|
6221
6280
|
}
|
|
6222
6281
|
return runRefRangeMutations(operator, range);
|
|
6223
|
-
}, "handleDefaultRangeChangeWithEffectRefCommands"), handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests = /* @__PURE__ */ __name((range, commandInfo, deps) => getEffectedRangesOnCommand(commandInfo, deps).some((effectRange) => Rectangle.intersects(effectRange, range)) ? handleDefaultRangeChangeWithEffectRefCommands(range, commandInfo) : range, "handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests"), handleCommonDefaultRangeChangeWithEffectRefCommands = /* @__PURE__ */ __name((range, commandInfo) => {
|
|
6282
|
+
}, "handleDefaultRangeChangeWithEffectRefCommands"), handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests = /* @__PURE__ */ __name((range, commandInfo, deps) => [DeleteRangeMoveLeftCommand.id, DeleteRangeMoveUpCommand.id].includes(commandInfo.id) || getEffectedRangesOnCommand(commandInfo, deps).some((effectRange) => Rectangle.intersects(effectRange, range)) ? handleDefaultRangeChangeWithEffectRefCommands(range, commandInfo) : range, "handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests"), handleCommonDefaultRangeChangeWithEffectRefCommands = /* @__PURE__ */ __name((range, commandInfo) => {
|
|
6224
6283
|
let operator = [];
|
|
6225
6284
|
switch (commandInfo.id) {
|
|
6226
6285
|
case EffectRefRangId.DeleteRangeMoveLeftCommandId:
|
|
@@ -6251,13 +6310,11 @@ const handleInsertRow = /* @__PURE__ */ __name((param, targetRange) => {
|
|
|
6251
6310
|
operator = handleIRemoveCol(commandInfo, range);
|
|
6252
6311
|
break;
|
|
6253
6312
|
}
|
|
6254
|
-
case EffectRefRangId.RemoveRowCommandId:
|
|
6255
|
-
|
|
6256
|
-
break;
|
|
6257
|
-
}
|
|
6313
|
+
case EffectRefRangId.RemoveRowCommandId:
|
|
6314
|
+
return handleRemoveRowCommon(commandInfo.params, range);
|
|
6258
6315
|
}
|
|
6259
6316
|
return runRefRangeMutations(operator, range);
|
|
6260
|
-
}, "handleCommonDefaultRangeChangeWithEffectRefCommands");
|
|
6317
|
+
}, "handleCommonDefaultRangeChangeWithEffectRefCommands"), handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests = /* @__PURE__ */ __name((range, commandInfo, deps) => [DeleteRangeMoveLeftCommand.id, DeleteRangeMoveUpCommand.id].includes(commandInfo.id) || getEffectedRangesOnCommand(commandInfo, deps).some((effectRange) => Rectangle.intersects(effectRange, range)) ? handleCommonDefaultRangeChangeWithEffectRefCommands(range, commandInfo) : range, "handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests");
|
|
6261
6318
|
function adjustRangeOnMutation(range, mutation) {
|
|
6262
6319
|
const { id, params } = mutation;
|
|
6263
6320
|
let baseRangeOperator = {
|
|
@@ -6296,11 +6353,14 @@ function adjustRangeOnMutation(range, mutation) {
|
|
|
6296
6353
|
baseRangeOperator = handleBaseInsertRange(params.range, range), baseRangeOperator.type = OperatorType.HorizontalMove;
|
|
6297
6354
|
break;
|
|
6298
6355
|
case MoveRangeMutation.id:
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6356
|
+
{
|
|
6357
|
+
const fromRange = params.fromRange, toRange = params.toRange;
|
|
6358
|
+
baseRangeOperator = handleBaseMoveRange(
|
|
6359
|
+
fromRange,
|
|
6360
|
+
toRange,
|
|
6361
|
+
range
|
|
6362
|
+
);
|
|
6363
|
+
}
|
|
6304
6364
|
break;
|
|
6305
6365
|
}
|
|
6306
6366
|
return baseRangeOperator ? Array.isArray(baseRangeOperator) ? runRefRangeMutations(baseRangeOperator, range) : runRefRangeMutations([baseRangeOperator], range) : range;
|
|
@@ -6410,7 +6470,7 @@ function getEffectedRangesOnMutation(mutation) {
|
|
|
6410
6470
|
}
|
|
6411
6471
|
case MoveRangeMutation.id: {
|
|
6412
6472
|
const params = mutation.params;
|
|
6413
|
-
return [new ObjectMatrix(params.from).getRange(), new ObjectMatrix(params.to).getRange()];
|
|
6473
|
+
return [new ObjectMatrix(params.from.value).getRange(), new ObjectMatrix(params.to.value).getRange()];
|
|
6414
6474
|
}
|
|
6415
6475
|
case InsertColMutation.id: {
|
|
6416
6476
|
const range = mutation.params.range;
|
|
@@ -6450,7 +6510,15 @@ const MERGE_REDO = createInterceptorKey("MERGE_REDO"), MERGE_UNDO = createInterc
|
|
|
6450
6510
|
}
|
|
6451
6511
|
onMutation(mutation) {
|
|
6452
6512
|
var _a20, _b;
|
|
6453
|
-
if (((_a20 = mutation.params) == null ? void 0 : _a20.unitId) !== this._unitId
|
|
6513
|
+
if (((_a20 = mutation.params) == null ? void 0 : _a20.unitId) !== this._unitId)
|
|
6514
|
+
return;
|
|
6515
|
+
if (mutation.id === MoveRangeMutation.id) {
|
|
6516
|
+
const params = mutation.params;
|
|
6517
|
+
if (params.from.subUnitId !== this._subUnitId || params.to.subUnitId !== this._subUnitId)
|
|
6518
|
+
return;
|
|
6519
|
+
} else if (((_b = mutation.params) == null ? void 0 : _b.subUnitId) !== this._subUnitId)
|
|
6520
|
+
return;
|
|
6521
|
+
if (!this._range)
|
|
6454
6522
|
return;
|
|
6455
6523
|
if (this._skipIntersects) {
|
|
6456
6524
|
const effectRanges = getEffectedRangesOnMutation(mutation);
|
|
@@ -7586,21 +7654,21 @@ const getAllWorkbookPermissionPoint = /* @__PURE__ */ __name(() => [
|
|
|
7586
7654
|
WorkbookViewHistoryPermission,
|
|
7587
7655
|
WorkbookRecoverHistoryPermission
|
|
7588
7656
|
], "getAllWorkbookPermissionPoint"), defaultWorkbookPermissionPoints = [
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7657
|
+
L.Edit,
|
|
7658
|
+
L.Print,
|
|
7659
|
+
L.Comment,
|
|
7660
|
+
L.View,
|
|
7661
|
+
L.Copy,
|
|
7662
|
+
L.Export,
|
|
7663
|
+
L.ManageCollaborator,
|
|
7664
|
+
L.CreateSheet,
|
|
7665
|
+
L.DeleteSheet,
|
|
7666
|
+
L.RenameSheet,
|
|
7667
|
+
L.HideSheet,
|
|
7668
|
+
L.Duplicate,
|
|
7669
|
+
L.Share,
|
|
7670
|
+
L.MoveSheet,
|
|
7671
|
+
L.CopySheet
|
|
7604
7672
|
];
|
|
7605
7673
|
var __defProp$6 = Object.defineProperty, __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor, __decorateClass$6 = /* @__PURE__ */ __name((decorators, target, key, kind) => {
|
|
7606
7674
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -7713,7 +7781,7 @@ let RangeProtectionRenderModel = (_a15 = class {
|
|
|
7713
7781
|
}
|
|
7714
7782
|
_init() {
|
|
7715
7783
|
this._permissionService.permissionPointUpdate$.pipe(
|
|
7716
|
-
filter((permission) => permission.type ===
|
|
7784
|
+
filter((permission) => permission.type === M.SelectRange),
|
|
7717
7785
|
filter((permission) => getAllRangePermissionPoint().some((F) => permission instanceof F)),
|
|
7718
7786
|
map$1((permission) => permission)
|
|
7719
7787
|
).subscribe((permission) => {
|
|
@@ -7803,8 +7871,8 @@ let RangeProtectionRefRangeService = (_a16 = class extends Disposable {
|
|
|
7803
7871
|
return;
|
|
7804
7872
|
registerRefRange(unitId, sheetId);
|
|
7805
7873
|
}
|
|
7806
|
-
if (commandInfo.id ===
|
|
7807
|
-
const params = commandInfo.params, subUnitId = params.
|
|
7874
|
+
if (commandInfo.id === SetRangeProtectionMutation.id || commandInfo.id === AddRangeProtectionMutation.id) {
|
|
7875
|
+
const params = commandInfo.params, subUnitId = params.subUnitId, unitId = params.unitId;
|
|
7808
7876
|
if (!subUnitId || !unitId)
|
|
7809
7877
|
return;
|
|
7810
7878
|
registerRefRange(unitId, subUnitId);
|
|
@@ -7849,7 +7917,7 @@ let RangeProtectionRefRangeService = (_a16 = class extends Disposable {
|
|
|
7849
7917
|
}
|
|
7850
7918
|
return p;
|
|
7851
7919
|
}, []);
|
|
7852
|
-
cloneRule.ranges = rangesByRemove, redoMutations.push({ id: SetRangeProtectionMutation.id, params: { unitId, subUnitId, rule: cloneRule, ruleId: rule.id } }), undoMutations.push({ id: SetRangeProtectionMutation.id, params: { unitId, subUnitId, rule, ruleId: rule.id } });
|
|
7920
|
+
cloneRule.ranges = rangesByRemove, cloneRule.ranges.length ? (redoMutations.push({ id: SetRangeProtectionMutation.id, params: { unitId, subUnitId, rule: cloneRule, ruleId: rule.id } }), undoMutations.push({ id: SetRangeProtectionMutation.id, params: { unitId, subUnitId, rule, ruleId: rule.id } })) : (redoMutations.push({ id: DeleteRangeProtectionMutation.id, params: { unitId, subUnitId, ruleIds: [rule.id] } }), undoMutations.push({ id: AddRangeProtectionMutation.id, params: { unitId, subUnitId, name: "", rules: [rule] } }));
|
|
7853
7921
|
}), { redos: redoMutations, undos: undoMutations };
|
|
7854
7922
|
}
|
|
7855
7923
|
return { undos: [], redos: [] };
|
|
@@ -7975,7 +8043,7 @@ let RangeProtectionRefRangeService = (_a16 = class extends Disposable {
|
|
|
7975
8043
|
}
|
|
7976
8044
|
}, __name(_a16, "RangeProtectionRefRangeService"), _a16);
|
|
7977
8045
|
RangeProtectionRefRangeService = __decorateClass$3([
|
|
7978
|
-
OnLifecycle(LifecycleStages.
|
|
8046
|
+
OnLifecycle(LifecycleStages.Ready, RangeProtectionRefRangeService),
|
|
7979
8047
|
__decorateParam$3(0, Inject(RangeProtectionRuleModel)),
|
|
7980
8048
|
__decorateParam$3(1, Inject(IUniverInstanceService)),
|
|
7981
8049
|
__decorateParam$3(2, ICommandService),
|
|
@@ -8053,8 +8121,8 @@ let RangeProtectionService = (_a17 = class extends Disposable {
|
|
|
8053
8121
|
allAllowedParams.push({
|
|
8054
8122
|
objectID: rule.permissionId,
|
|
8055
8123
|
unitID: unitId,
|
|
8056
|
-
objectType:
|
|
8057
|
-
actions: [
|
|
8124
|
+
objectType: M.SelectRange,
|
|
8125
|
+
actions: [L.View, L.Edit]
|
|
8058
8126
|
});
|
|
8059
8127
|
}), list.forEach((rule) => {
|
|
8060
8128
|
getAllRangePermissionPoint().forEach((Factor) => {
|
|
@@ -8064,8 +8132,8 @@ let RangeProtectionService = (_a17 = class extends Disposable {
|
|
|
8064
8132
|
});
|
|
8065
8133
|
});
|
|
8066
8134
|
}, "onLoad"),
|
|
8067
|
-
onUnLoad: /* @__PURE__ */ __name(() => {
|
|
8068
|
-
this._selectionProtectionRuleModel.deleteUnitModel();
|
|
8135
|
+
onUnLoad: /* @__PURE__ */ __name((unitId) => {
|
|
8136
|
+
this._selectionProtectionRuleModel.deleteUnitModel(unitId);
|
|
8069
8137
|
}, "onUnLoad")
|
|
8070
8138
|
})
|
|
8071
8139
|
);
|
|
@@ -8195,7 +8263,6 @@ function getNormalSelectionStyle(themeService) {
|
|
|
8195
8263
|
return {
|
|
8196
8264
|
strokeWidth: 1,
|
|
8197
8265
|
stroke: styleSheet.primaryColor,
|
|
8198
|
-
// strokeDash: 8,
|
|
8199
8266
|
fill,
|
|
8200
8267
|
// widgets: { tl: true, tc: true, tr: true, ml: true, mr: true, bl: true, bc: true, br: true },
|
|
8201
8268
|
widgets: {},
|
|
@@ -8587,6 +8654,7 @@ export {
|
|
|
8587
8654
|
InsertSheetCommand,
|
|
8588
8655
|
InsertSheetMutation,
|
|
8589
8656
|
InsertSheetUndoMutationFactory,
|
|
8657
|
+
InterceptCellContentPriority,
|
|
8590
8658
|
MAX_CELL_PER_SHEET_KEY,
|
|
8591
8659
|
MERGE_CELL_INTERCEPTOR_CHECK,
|
|
8592
8660
|
MergeCellController,
|
|
@@ -8702,6 +8770,7 @@ export {
|
|
|
8702
8770
|
SetWorksheetShowCommand,
|
|
8703
8771
|
SheetInterceptorService,
|
|
8704
8772
|
SheetsSelectionsService,
|
|
8773
|
+
M as UnitObject,
|
|
8705
8774
|
UniverSheetsPlugin,
|
|
8706
8775
|
WorkbookCommentPermission,
|
|
8707
8776
|
WorkbookCopyPermission,
|
|
@@ -8780,6 +8849,7 @@ export {
|
|
|
8780
8849
|
handleBaseMoveRowsCols,
|
|
8781
8850
|
handleBaseRemoveRange,
|
|
8782
8851
|
handleCommonDefaultRangeChangeWithEffectRefCommands,
|
|
8852
|
+
handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests,
|
|
8783
8853
|
handleDefaultRangeChangeWithEffectRefCommands,
|
|
8784
8854
|
handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests,
|
|
8785
8855
|
handleDeleteRangeMoveLeft,
|