@univerjs/sheets 0.1.16 → 0.1.17
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 +1 -1
- package/lib/es/index.js +447 -440
- package/lib/locale/en-US.json +1 -1
- package/lib/locale/ru-RU.json +1 -1
- package/lib/locale/zh-CN.json +1 -1
- package/lib/types/commands/commands/copy-worksheet.command.d.ts +2 -1
- package/lib/umd/index.js +3 -3
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -519,7 +519,7 @@ const ur = (t, e, n = "") => t.reduce(
|
|
|
519
519
|
function Dt(t) {
|
|
520
520
|
return t.v !== void 0 && t.v !== null && t.v !== "" || t.p !== void 0;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function xu(t, e, n) {
|
|
523
523
|
const { left: o, right: s, up: r, down: i } = e, a = n.getMaxRows(), u = n.getMaxColumns();
|
|
524
524
|
let l = !0;
|
|
525
525
|
const c = { ...t };
|
|
@@ -773,7 +773,7 @@ const mr = (t, e) => {
|
|
|
773
773
|
if (!i)
|
|
774
774
|
return !1;
|
|
775
775
|
const { workbook: a, worksheet: u, unitId: l } = i, c = O.deepClone(u.getConfig());
|
|
776
|
-
c.name
|
|
776
|
+
c.name = fr(a, r, c.name), c.id = O.generateRandomId();
|
|
777
777
|
const h = {
|
|
778
778
|
index: a.getSheetIndex(u) + 1,
|
|
779
779
|
sheet: c,
|
|
@@ -788,7 +788,14 @@ const mr = (t, e) => {
|
|
|
788
788
|
redoMutations: [{ id: ut.id, params: h }]
|
|
789
789
|
}), !0) : !1;
|
|
790
790
|
}
|
|
791
|
-
}
|
|
791
|
+
};
|
|
792
|
+
function fr(t, e, n) {
|
|
793
|
+
let o = n + e.t("sheets.tabs.sheetCopy", ""), s = 2;
|
|
794
|
+
for (; t.checkSheetName(o); )
|
|
795
|
+
o = n + e.t("sheets.tabs.sheetCopy", `${s}`), s++;
|
|
796
|
+
return o;
|
|
797
|
+
}
|
|
798
|
+
const ct = {
|
|
792
799
|
id: "sheet.mutation.move-range",
|
|
793
800
|
type: I.MUTATION,
|
|
794
801
|
handler: (t, e) => {
|
|
@@ -836,7 +843,7 @@ function sn(t, e, n = !0) {
|
|
|
836
843
|
const r = N.union(t, ...s);
|
|
837
844
|
return n ? sn(r, e, n) : r;
|
|
838
845
|
}
|
|
839
|
-
function
|
|
846
|
+
function Au(t, e, n) {
|
|
840
847
|
let o = null;
|
|
841
848
|
return n.getMatrixWithMergedCells(t, e, t, e).forValue((r, i, a) => (o = {
|
|
842
849
|
actualRow: r,
|
|
@@ -860,7 +867,7 @@ function xu(t, e, n) {
|
|
|
860
867
|
rangeType: G.NORMAL
|
|
861
868
|
};
|
|
862
869
|
}
|
|
863
|
-
function
|
|
870
|
+
function Vu(t, e, n) {
|
|
864
871
|
const { startRow: o, startColumn: s, endRow: r, endColumn: i } = t;
|
|
865
872
|
return Number.isNaN(o) && (t.startRow = 0), Number.isNaN(r) && (t.endRow = e - 1), Number.isNaN(s) && (t.startColumn = 0), Number.isNaN(i) && (t.endColumn = n - 1), t;
|
|
866
873
|
}
|
|
@@ -894,13 +901,13 @@ const Ze = (t, e, n) => ({
|
|
|
894
901
|
selections: [{ range: t, primary: Ue(t, n) }]
|
|
895
902
|
}
|
|
896
903
|
});
|
|
897
|
-
function
|
|
904
|
+
function Wu(t) {
|
|
898
905
|
if (!t)
|
|
899
906
|
return !1;
|
|
900
907
|
const { range: e, primary: n } = t;
|
|
901
908
|
return N.equals(e, n);
|
|
902
909
|
}
|
|
903
|
-
function
|
|
910
|
+
function Rr(t) {
|
|
904
911
|
function e(n, o) {
|
|
905
912
|
function s(r) {
|
|
906
913
|
for (let i = r.startRow; i <= r.endRow; i++)
|
|
@@ -1013,7 +1020,7 @@ function bn(t, e, n, o = !1) {
|
|
|
1013
1020
|
};
|
|
1014
1021
|
}
|
|
1015
1022
|
var Zt = /* @__PURE__ */ ((t) => (t[t.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", t[t.UNIVER_DOC = 1] = "UNIVER_DOC", t[t.UNIVER_SHEET = 2] = "UNIVER_SHEET", t[t.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", t[t.UNRECOGNIZED = -1] = "UNRECOGNIZED", t))(Zt || {}), _ = /* @__PURE__ */ ((t) => (t[t.View = 0] = "View", t[t.Edit = 1] = "Edit", t[t.ManageCollaborator = 2] = "ManageCollaborator", t[t.Print = 3] = "Print", t[t.Duplicate = 4] = "Duplicate", t[t.Comment = 5] = "Comment", t[t.Copy = 6] = "Copy", t[t.Share = 7] = "Share", t[t.Export = 8] = "Export", t[t.MoveWorksheet = 9] = "MoveWorksheet", t[t.DeleteWorksheet = 10] = "DeleteWorksheet", t[t.HideWorksheet = 11] = "HideWorksheet", t[t.RenameWorksheet = 12] = "RenameWorksheet", t[t.CreateWorksheet = 13] = "CreateWorksheet", t[t.SetWorksheetStyle = 14] = "SetWorksheetStyle", t[t.EditWorksheetCell = 15] = "EditWorksheetCell", t[t.InsertHyperlink = 16] = "InsertHyperlink", t[t.Sort = 17] = "Sort", t[t.Filter = 18] = "Filter", t[t.PivotTable = 19] = "PivotTable", t[t.FloatImg = 20] = "FloatImg", t[t.History = 21] = "History", t[t.RwHgtClWdt = 22] = "RwHgtClWdt", t[t.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", t[t.ViewFilter = 24] = "ViewFilter", t[t.MoveSheet = 25] = "MoveSheet", t[t.DeleteSheet = 26] = "DeleteSheet", t[t.HideSheet = 27] = "HideSheet", t[t.CopySheet = 28] = "CopySheet", t[t.RenameSheet = 29] = "RenameSheet", t[t.CreateSheet = 30] = "CreateSheet", t[t.SelectProtectedCells = 31] = "SelectProtectedCells", t[t.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", t[t.SetCellStyle = 33] = "SetCellStyle", t[t.SetCellValue = 34] = "SetCellValue", t[t.SetRowStyle = 35] = "SetRowStyle", t[t.SetColumnStyle = 36] = "SetColumnStyle", t[t.InsertRow = 37] = "InsertRow", t[t.InsertColumn = 38] = "InsertColumn", t[t.DeleteRow = 39] = "DeleteRow", t[t.DeleteColumn = 40] = "DeleteColumn", t[t.EditExtraObject = 41] = "EditExtraObject", t[t.Delete = 42] = "Delete", t[t.UNRECOGNIZED = -1] = "UNRECOGNIZED", t))(_ || {}), W = /* @__PURE__ */ ((t) => (t[t.Unkonwn = 0] = "Unkonwn", t[t.Workbook = 1] = "Workbook", t[t.Worksheet = 2] = "Worksheet", t[t.SelectRange = 3] = "SelectRange", t[t.Document = 4] = "Document", t[t.Slide = 5] = "Slide", t[t.UNRECOGNIZED = -1] = "UNRECOGNIZED", t))(W || {});
|
|
1016
|
-
class
|
|
1023
|
+
class Cr {
|
|
1017
1024
|
constructor(e, n) {
|
|
1018
1025
|
R(this, "value", !0);
|
|
1019
1026
|
R(this, "type", W.Worksheet);
|
|
@@ -1023,7 +1030,7 @@ class Rr {
|
|
|
1023
1030
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.Copy}_${e}_${n}`;
|
|
1024
1031
|
}
|
|
1025
1032
|
}
|
|
1026
|
-
class
|
|
1033
|
+
class $u {
|
|
1027
1034
|
constructor(e, n) {
|
|
1028
1035
|
R(this, "value", !0);
|
|
1029
1036
|
R(this, "type", W.Worksheet);
|
|
@@ -1033,7 +1040,7 @@ class Wu {
|
|
|
1033
1040
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.SelectProtectedCells}_${e}_${n}`;
|
|
1034
1041
|
}
|
|
1035
1042
|
}
|
|
1036
|
-
class
|
|
1043
|
+
class Lu {
|
|
1037
1044
|
constructor(e, n) {
|
|
1038
1045
|
R(this, "value", !0);
|
|
1039
1046
|
R(this, "type", W.Worksheet);
|
|
@@ -1043,7 +1050,7 @@ class $u {
|
|
|
1043
1050
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.SelectUnProtectedCells}_${e}_${n}`;
|
|
1044
1051
|
}
|
|
1045
1052
|
}
|
|
1046
|
-
class
|
|
1053
|
+
class pr {
|
|
1047
1054
|
constructor(e, n) {
|
|
1048
1055
|
R(this, "value", !0);
|
|
1049
1056
|
R(this, "type", W.Worksheet);
|
|
@@ -1053,7 +1060,7 @@ class Cr {
|
|
|
1053
1060
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.SetCellStyle}_${e}_${n}`;
|
|
1054
1061
|
}
|
|
1055
1062
|
}
|
|
1056
|
-
class
|
|
1063
|
+
class Sr {
|
|
1057
1064
|
constructor(e, n) {
|
|
1058
1065
|
R(this, "value", !0);
|
|
1059
1066
|
R(this, "type", W.Worksheet);
|
|
@@ -1063,7 +1070,7 @@ class pr {
|
|
|
1063
1070
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.SetCellValue}_${e}_${n}`;
|
|
1064
1071
|
}
|
|
1065
1072
|
}
|
|
1066
|
-
class
|
|
1073
|
+
class vr {
|
|
1067
1074
|
constructor(e, n) {
|
|
1068
1075
|
R(this, "value", !0);
|
|
1069
1076
|
R(this, "type", W.Worksheet);
|
|
@@ -1073,7 +1080,7 @@ class Sr {
|
|
|
1073
1080
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.View}_${e}_${n}`;
|
|
1074
1081
|
}
|
|
1075
1082
|
}
|
|
1076
|
-
class
|
|
1083
|
+
class wr {
|
|
1077
1084
|
constructor(e, n) {
|
|
1078
1085
|
R(this, "value", !0);
|
|
1079
1086
|
R(this, "type", W.Worksheet);
|
|
@@ -1083,7 +1090,7 @@ class vr {
|
|
|
1083
1090
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.SetRowStyle}_${e}_${n}`;
|
|
1084
1091
|
}
|
|
1085
1092
|
}
|
|
1086
|
-
class
|
|
1093
|
+
class Ir {
|
|
1087
1094
|
constructor(e, n) {
|
|
1088
1095
|
R(this, "value", !0);
|
|
1089
1096
|
R(this, "type", W.Worksheet);
|
|
@@ -1093,7 +1100,7 @@ class wr {
|
|
|
1093
1100
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.SetColumnStyle}_${e}_${n}`;
|
|
1094
1101
|
}
|
|
1095
1102
|
}
|
|
1096
|
-
class
|
|
1103
|
+
class Mr {
|
|
1097
1104
|
constructor(e, n) {
|
|
1098
1105
|
R(this, "value", !0);
|
|
1099
1106
|
R(this, "type", W.Worksheet);
|
|
@@ -1103,7 +1110,7 @@ class Ir {
|
|
|
1103
1110
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.InsertRow}_${e}_${n}`;
|
|
1104
1111
|
}
|
|
1105
1112
|
}
|
|
1106
|
-
class
|
|
1113
|
+
class _r {
|
|
1107
1114
|
constructor(e, n) {
|
|
1108
1115
|
R(this, "value", !0);
|
|
1109
1116
|
R(this, "type", W.Worksheet);
|
|
@@ -1113,7 +1120,7 @@ class Mr {
|
|
|
1113
1120
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.InsertColumn}_${e}_${n}`;
|
|
1114
1121
|
}
|
|
1115
1122
|
}
|
|
1116
|
-
class
|
|
1123
|
+
class yr {
|
|
1117
1124
|
constructor(e, n) {
|
|
1118
1125
|
R(this, "value", !0);
|
|
1119
1126
|
R(this, "type", W.Worksheet);
|
|
@@ -1123,7 +1130,7 @@ class _r {
|
|
|
1123
1130
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.InsertHyperlink}_${e}_${n}`;
|
|
1124
1131
|
}
|
|
1125
1132
|
}
|
|
1126
|
-
class
|
|
1133
|
+
class br {
|
|
1127
1134
|
constructor(e, n) {
|
|
1128
1135
|
R(this, "value", !0);
|
|
1129
1136
|
R(this, "type", W.Worksheet);
|
|
@@ -1133,7 +1140,7 @@ class yr {
|
|
|
1133
1140
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.DeleteRow}_${e}_${n}`;
|
|
1134
1141
|
}
|
|
1135
1142
|
}
|
|
1136
|
-
class
|
|
1143
|
+
class Ur {
|
|
1137
1144
|
constructor(e, n) {
|
|
1138
1145
|
R(this, "value", !0);
|
|
1139
1146
|
R(this, "type", W.Worksheet);
|
|
@@ -1143,7 +1150,7 @@ class br {
|
|
|
1143
1150
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.DeleteColumn}_${e}_${n}`;
|
|
1144
1151
|
}
|
|
1145
1152
|
}
|
|
1146
|
-
class
|
|
1153
|
+
class Pr {
|
|
1147
1154
|
constructor(e, n) {
|
|
1148
1155
|
R(this, "value", !0);
|
|
1149
1156
|
R(this, "type", W.Worksheet);
|
|
@@ -1153,7 +1160,7 @@ class Ur {
|
|
|
1153
1160
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.Sort}_${e}_${n}`;
|
|
1154
1161
|
}
|
|
1155
1162
|
}
|
|
1156
|
-
class
|
|
1163
|
+
class Nr {
|
|
1157
1164
|
constructor(e, n) {
|
|
1158
1165
|
R(this, "value", !0);
|
|
1159
1166
|
R(this, "type", W.Worksheet);
|
|
@@ -1163,7 +1170,7 @@ class Pr {
|
|
|
1163
1170
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.Filter}_${e}_${n}`;
|
|
1164
1171
|
}
|
|
1165
1172
|
}
|
|
1166
|
-
class
|
|
1173
|
+
class Er {
|
|
1167
1174
|
constructor(e, n) {
|
|
1168
1175
|
R(this, "value", !0);
|
|
1169
1176
|
R(this, "type", W.Worksheet);
|
|
@@ -1173,7 +1180,7 @@ class Nr {
|
|
|
1173
1180
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.PivotTable}_${e}_${n}`;
|
|
1174
1181
|
}
|
|
1175
1182
|
}
|
|
1176
|
-
class
|
|
1183
|
+
class Or {
|
|
1177
1184
|
constructor(e, n) {
|
|
1178
1185
|
R(this, "value", !0);
|
|
1179
1186
|
R(this, "type", W.Worksheet);
|
|
@@ -1183,7 +1190,7 @@ class Er {
|
|
|
1183
1190
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.EditExtraObject}_${e}_${n}`;
|
|
1184
1191
|
}
|
|
1185
1192
|
}
|
|
1186
|
-
class
|
|
1193
|
+
class Bu {
|
|
1187
1194
|
constructor(e, n) {
|
|
1188
1195
|
R(this, "value", !0);
|
|
1189
1196
|
R(this, "type", W.Worksheet);
|
|
@@ -1203,7 +1210,7 @@ class So {
|
|
|
1203
1210
|
this.unitId = e, this.subUnitId = n, this.id = `${this.type}.${_.Edit}_${e}_${n}`;
|
|
1204
1211
|
}
|
|
1205
1212
|
}
|
|
1206
|
-
class
|
|
1213
|
+
class kr {
|
|
1207
1214
|
constructor(e) {
|
|
1208
1215
|
R(this, "id");
|
|
1209
1216
|
R(this, "value", !0);
|
|
@@ -1213,7 +1220,7 @@ class Or {
|
|
|
1213
1220
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.Comment}_${e}`;
|
|
1214
1221
|
}
|
|
1215
1222
|
}
|
|
1216
|
-
class
|
|
1223
|
+
class Dr {
|
|
1217
1224
|
constructor(e) {
|
|
1218
1225
|
R(this, "id");
|
|
1219
1226
|
R(this, "value", !0);
|
|
@@ -1223,7 +1230,7 @@ class kr {
|
|
|
1223
1230
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.Edit}_${e}`;
|
|
1224
1231
|
}
|
|
1225
1232
|
}
|
|
1226
|
-
class
|
|
1233
|
+
class Tr {
|
|
1227
1234
|
constructor(e) {
|
|
1228
1235
|
R(this, "id");
|
|
1229
1236
|
R(this, "value", !0);
|
|
@@ -1233,7 +1240,7 @@ class Dr {
|
|
|
1233
1240
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.Duplicate}_${e}`;
|
|
1234
1241
|
}
|
|
1235
1242
|
}
|
|
1236
|
-
class
|
|
1243
|
+
class xr {
|
|
1237
1244
|
constructor(e) {
|
|
1238
1245
|
R(this, "id");
|
|
1239
1246
|
R(this, "value", !0);
|
|
@@ -1243,7 +1250,7 @@ class Tr {
|
|
|
1243
1250
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.Print}_${e}`;
|
|
1244
1251
|
}
|
|
1245
1252
|
}
|
|
1246
|
-
class
|
|
1253
|
+
class Ar {
|
|
1247
1254
|
constructor(e) {
|
|
1248
1255
|
R(this, "id");
|
|
1249
1256
|
R(this, "value", !0);
|
|
@@ -1253,7 +1260,7 @@ class xr {
|
|
|
1253
1260
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.Export}_${e}`;
|
|
1254
1261
|
}
|
|
1255
1262
|
}
|
|
1256
|
-
class
|
|
1263
|
+
class Vr {
|
|
1257
1264
|
constructor(e) {
|
|
1258
1265
|
R(this, "id");
|
|
1259
1266
|
R(this, "value", !0);
|
|
@@ -1263,7 +1270,7 @@ class Ar {
|
|
|
1263
1270
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.MoveSheet}_${e}`;
|
|
1264
1271
|
}
|
|
1265
1272
|
}
|
|
1266
|
-
class
|
|
1273
|
+
class Wr {
|
|
1267
1274
|
constructor(e) {
|
|
1268
1275
|
R(this, "id");
|
|
1269
1276
|
R(this, "value", !0);
|
|
@@ -1273,7 +1280,7 @@ class Vr {
|
|
|
1273
1280
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.DeleteSheet}_${e}`;
|
|
1274
1281
|
}
|
|
1275
1282
|
}
|
|
1276
|
-
class
|
|
1283
|
+
class $r {
|
|
1277
1284
|
constructor(e) {
|
|
1278
1285
|
R(this, "id");
|
|
1279
1286
|
R(this, "value", !0);
|
|
@@ -1283,7 +1290,7 @@ class Wr {
|
|
|
1283
1290
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.HideSheet}_${e}`;
|
|
1284
1291
|
}
|
|
1285
1292
|
}
|
|
1286
|
-
class
|
|
1293
|
+
class Lr {
|
|
1287
1294
|
constructor(e) {
|
|
1288
1295
|
R(this, "id");
|
|
1289
1296
|
R(this, "value", !0);
|
|
@@ -1293,7 +1300,7 @@ class $r {
|
|
|
1293
1300
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.RenameSheet}_${e}`;
|
|
1294
1301
|
}
|
|
1295
1302
|
}
|
|
1296
|
-
class
|
|
1303
|
+
class Br {
|
|
1297
1304
|
constructor(e) {
|
|
1298
1305
|
R(this, "id");
|
|
1299
1306
|
R(this, "value", !0);
|
|
@@ -1303,7 +1310,7 @@ class Lr {
|
|
|
1303
1310
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.CreateSheet}_${e}`;
|
|
1304
1311
|
}
|
|
1305
1312
|
}
|
|
1306
|
-
class
|
|
1313
|
+
class Fu {
|
|
1307
1314
|
constructor(e) {
|
|
1308
1315
|
R(this, "id");
|
|
1309
1316
|
R(this, "value", !0);
|
|
@@ -1313,7 +1320,7 @@ class Bu {
|
|
|
1313
1320
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.History}_${e}`;
|
|
1314
1321
|
}
|
|
1315
1322
|
}
|
|
1316
|
-
class
|
|
1323
|
+
class Fr {
|
|
1317
1324
|
constructor(e) {
|
|
1318
1325
|
R(this, "id");
|
|
1319
1326
|
R(this, "value", !0);
|
|
@@ -1323,7 +1330,7 @@ class Br {
|
|
|
1323
1330
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.View}_${e}`;
|
|
1324
1331
|
}
|
|
1325
1332
|
}
|
|
1326
|
-
class
|
|
1333
|
+
class Hr {
|
|
1327
1334
|
constructor(e) {
|
|
1328
1335
|
R(this, "id");
|
|
1329
1336
|
R(this, "value", !0);
|
|
@@ -1333,7 +1340,7 @@ class Fr {
|
|
|
1333
1340
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.Share}_${e}`;
|
|
1334
1341
|
}
|
|
1335
1342
|
}
|
|
1336
|
-
class
|
|
1343
|
+
class jr {
|
|
1337
1344
|
constructor(e) {
|
|
1338
1345
|
R(this, "id");
|
|
1339
1346
|
R(this, "value", !0);
|
|
@@ -1343,7 +1350,7 @@ class Hr {
|
|
|
1343
1350
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.Copy}_${e}`;
|
|
1344
1351
|
}
|
|
1345
1352
|
}
|
|
1346
|
-
class
|
|
1353
|
+
class zr {
|
|
1347
1354
|
constructor(e) {
|
|
1348
1355
|
R(this, "id");
|
|
1349
1356
|
R(this, "value", !0);
|
|
@@ -1353,7 +1360,7 @@ class jr {
|
|
|
1353
1360
|
this.unitId = e, this.unitId = e, this.id = `${this.type}.${_.CopySheet}_${e}`;
|
|
1354
1361
|
}
|
|
1355
1362
|
}
|
|
1356
|
-
class
|
|
1363
|
+
class Gr {
|
|
1357
1364
|
constructor(e) {
|
|
1358
1365
|
R(this, "id");
|
|
1359
1366
|
R(this, "value", !0);
|
|
@@ -1585,7 +1592,7 @@ function wo(t, e) {
|
|
|
1585
1592
|
undo: o
|
|
1586
1593
|
};
|
|
1587
1594
|
}
|
|
1588
|
-
function
|
|
1595
|
+
function Hu(t, e, n, o, s, r) {
|
|
1589
1596
|
const { startRow: i, endRow: a, startColumn: u, endColumn: l } = e;
|
|
1590
1597
|
if (s === we.ROWS) {
|
|
1591
1598
|
const c = a - i + 1;
|
|
@@ -1609,7 +1616,7 @@ function Fu(t, e, n, o, s, r) {
|
|
|
1609
1616
|
r && r[d] && r[d][h] ? t.setValue(d, h, r[d][h]) : t.realDeleteValue(d, h);
|
|
1610
1617
|
}
|
|
1611
1618
|
}
|
|
1612
|
-
function
|
|
1619
|
+
function ju(t, e, n, o, s) {
|
|
1613
1620
|
const { startRow: r, endRow: i, startColumn: a, endColumn: u } = e, l = i - r + 1, c = u - a + 1;
|
|
1614
1621
|
if (s === we.ROWS)
|
|
1615
1622
|
for (let d = r; d <= n; d++)
|
|
@@ -1739,7 +1746,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
1739
1746
|
}
|
|
1740
1747
|
return s.setColumnCount(s.getColumnCount() + i.endColumn - i.startColumn + 1), s.getCellMatrix().insertColumns(i.startColumn, d), !0;
|
|
1741
1748
|
}
|
|
1742
|
-
},
|
|
1749
|
+
}, Kr = (t, e) => {
|
|
1743
1750
|
const s = e.getRowManager().getRowData(), r = {}, i = t.range, a = co(i.startRow, i.endRow, s), u = lo(r, a);
|
|
1744
1751
|
return {
|
|
1745
1752
|
unitId: t.unitId,
|
|
@@ -1762,7 +1769,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
1762
1769
|
const u = r.endRow - r.startRow + 1;
|
|
1763
1770
|
return uo(r.startRow, u, a), s.getCellMatrix().removeRows(r.startRow, u), s.setRowCount(s.getRowCount() - u), !0;
|
|
1764
1771
|
}
|
|
1765
|
-
},
|
|
1772
|
+
}, Jr = (t, e) => {
|
|
1766
1773
|
const o = t.get(M).getUniverSheetInstance(e.unitId);
|
|
1767
1774
|
if (o == null)
|
|
1768
1775
|
throw new Error("universheet is null error!");
|
|
@@ -1788,7 +1795,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
1788
1795
|
const r = e.range, a = s.getColumnManager().getColumnData(), u = r.endColumn - r.startColumn + 1;
|
|
1789
1796
|
return uo(r.startColumn, u, a), s.setColumnCount(s.getColumnCount() - u), s.getCellMatrix().removeColumns(r.startColumn, u), !0;
|
|
1790
1797
|
}
|
|
1791
|
-
},
|
|
1798
|
+
}, qr = "sheet.command.insert-range-move-down", On = {
|
|
1792
1799
|
type: I.COMMAND,
|
|
1793
1800
|
id: "sheet.command.insert-range-move-down",
|
|
1794
1801
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -1963,7 +1970,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
1963
1970
|
redoMutations: v
|
|
1964
1971
|
}), !0) : !1;
|
|
1965
1972
|
}
|
|
1966
|
-
},
|
|
1973
|
+
}, Yr = {
|
|
1967
1974
|
type: I.COMMAND,
|
|
1968
1975
|
id: "sheet.command.insert-row-before",
|
|
1969
1976
|
handler: async (t) => {
|
|
@@ -1999,7 +2006,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
1999
2006
|
};
|
|
2000
2007
|
return t.get(P).executeCommand(ft.id, d);
|
|
2001
2008
|
}
|
|
2002
|
-
},
|
|
2009
|
+
}, Xr = {
|
|
2003
2010
|
type: I.COMMAND,
|
|
2004
2011
|
id: "sheet.command.insert-row-after",
|
|
2005
2012
|
handler: async (t) => {
|
|
@@ -2065,7 +2072,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
2065
2072
|
redoMutations: v.filter(Boolean)
|
|
2066
2073
|
}), !0) : !1;
|
|
2067
2074
|
}
|
|
2068
|
-
},
|
|
2075
|
+
}, Zr = {
|
|
2069
2076
|
type: I.COMMAND,
|
|
2070
2077
|
id: "sheet.command.insert-col-before",
|
|
2071
2078
|
handler: async (t) => {
|
|
@@ -2101,7 +2108,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
2101
2108
|
};
|
|
2102
2109
|
return t.get(P).executeCommand(Rt.id, d);
|
|
2103
2110
|
}
|
|
2104
|
-
},
|
|
2111
|
+
}, Qr = {
|
|
2105
2112
|
type: I.COMMAND,
|
|
2106
2113
|
id: "sheet.command.insert-col-after",
|
|
2107
2114
|
handler: async (t) => {
|
|
@@ -2130,7 +2137,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
2130
2137
|
};
|
|
2131
2138
|
return t.get(P).executeCommand(Rt.id, c);
|
|
2132
2139
|
}
|
|
2133
|
-
},
|
|
2140
|
+
}, ei = {
|
|
2134
2141
|
id: "sheet.command.insert-sheet",
|
|
2135
2142
|
type: I.COMMAND,
|
|
2136
2143
|
handler: (t, e) => {
|
|
@@ -2156,7 +2163,7 @@ const Io = "sheet.command.delete-range-move-left", Nn = {
|
|
|
2156
2163
|
}), !0) : !1;
|
|
2157
2164
|
}
|
|
2158
2165
|
};
|
|
2159
|
-
function
|
|
2166
|
+
function ti(t, e) {
|
|
2160
2167
|
const { unitId: n, subUnitId: o, sourceRange: s, targetRange: r } = e, i = s.startRow > r.startRow, a = s.endRow - s.startRow + 1;
|
|
2161
2168
|
return i ? {
|
|
2162
2169
|
unitId: n,
|
|
@@ -2192,7 +2199,7 @@ const Je = {
|
|
|
2192
2199
|
return ho(l, c, d, h), u.getCellMatrix().moveRows(l, c, d), !0;
|
|
2193
2200
|
}
|
|
2194
2201
|
};
|
|
2195
|
-
function
|
|
2202
|
+
function ni(t, e) {
|
|
2196
2203
|
const { unitId: n, subUnitId: o, sourceRange: s, targetRange: r } = e, i = s.startColumn > r.startColumn, a = s.endColumn - s.startColumn + 1;
|
|
2197
2204
|
return i ? {
|
|
2198
2205
|
unitId: n,
|
|
@@ -2228,10 +2235,10 @@ const qe = {
|
|
|
2228
2235
|
return ho(l, c, d, h), u.getCellMatrix().moveColumns(l, c, d), !0;
|
|
2229
2236
|
}
|
|
2230
2237
|
};
|
|
2231
|
-
function
|
|
2238
|
+
function oi(t, e) {
|
|
2232
2239
|
return e.getMergeData().some((n) => n.startRow < t && t <= n.endRow);
|
|
2233
2240
|
}
|
|
2234
|
-
function
|
|
2241
|
+
function si(t, e) {
|
|
2235
2242
|
return e.getMergeData().some((n) => n.startColumn < t && t <= n.endColumn);
|
|
2236
2243
|
}
|
|
2237
2244
|
const No = "sheet.command.move-rows", Dn = {
|
|
@@ -2256,7 +2263,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2256
2263
|
const d = l.getUnitId(), h = c.getSheetId(), m = t.get(mt), f = t.get(Le), g = i[0].range, C = i[0].primary, S = sn(g, c, !1);
|
|
2257
2264
|
if (!N.equals(g, S))
|
|
2258
2265
|
return m.emit(f.t("sheets.info.partOfCell")), !1;
|
|
2259
|
-
if (
|
|
2266
|
+
if (oi(r, c))
|
|
2260
2267
|
return m.emit(f.t("sheets.info.acrossMergedCell")), !1;
|
|
2261
2268
|
const p = {
|
|
2262
2269
|
...g,
|
|
@@ -2267,7 +2274,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2267
2274
|
subUnitId: h,
|
|
2268
2275
|
sourceRange: g,
|
|
2269
2276
|
targetRange: p
|
|
2270
|
-
}, w =
|
|
2277
|
+
}, w = ti(t, v), b = r - s < 0, k = g.endRow - g.startRow + 1, E = b ? p : {
|
|
2271
2278
|
...p,
|
|
2272
2279
|
startRow: p.startRow - k,
|
|
2273
2280
|
endRow: p.endRow - k
|
|
@@ -2320,7 +2327,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2320
2327
|
const d = l.getUnitId(), h = c.getSheetId(), m = t.get(mt), f = t.get(Le), g = i[0].range, C = i[0].primary, S = sn(g, c, !1);
|
|
2321
2328
|
if (!N.equals(g, S))
|
|
2322
2329
|
return m.emit(f.t("sheets.info.partOfCell")), !1;
|
|
2323
|
-
if (
|
|
2330
|
+
if (si(r, c))
|
|
2324
2331
|
return m.emit(f.t("sheets.info.acrossMergedCell")), !1;
|
|
2325
2332
|
const p = {
|
|
2326
2333
|
...g,
|
|
@@ -2331,7 +2338,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2331
2338
|
subUnitId: h,
|
|
2332
2339
|
sourceRange: g,
|
|
2333
2340
|
targetRange: p
|
|
2334
|
-
}, w =
|
|
2341
|
+
}, w = ni(t, v), y = g.endColumn - g.startColumn + 1, E = r - s < 0 ? p : {
|
|
2335
2342
|
...p,
|
|
2336
2343
|
startColumn: p.startColumn - y,
|
|
2337
2344
|
endColumn: p.endColumn - y
|
|
@@ -2404,7 +2411,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2404
2411
|
unitId: c,
|
|
2405
2412
|
subUnitId: l,
|
|
2406
2413
|
cellValue: E.getMatrix()
|
|
2407
|
-
}, $ =
|
|
2414
|
+
}, $ = Kr(
|
|
2408
2415
|
k,
|
|
2409
2416
|
u
|
|
2410
2417
|
);
|
|
@@ -2456,7 +2463,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2456
2463
|
unitId: c,
|
|
2457
2464
|
subUnitId: l,
|
|
2458
2465
|
range: s
|
|
2459
|
-
}, h =
|
|
2466
|
+
}, h = Jr(t, d), m = u.getCellMatrix().getSlice(0, u.getRowCount() - 1, s.startColumn, s.endColumn), f = {
|
|
2460
2467
|
unitId: c,
|
|
2461
2468
|
subUnitId: l,
|
|
2462
2469
|
cellValue: m.getMatrix()
|
|
@@ -2572,7 +2579,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2572
2579
|
}
|
|
2573
2580
|
return !0;
|
|
2574
2581
|
}
|
|
2575
|
-
},
|
|
2582
|
+
}, ri = {
|
|
2576
2583
|
type: I.COMMAND,
|
|
2577
2584
|
id: "sheet.command.remove-worksheet-merge",
|
|
2578
2585
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -2603,7 +2610,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2603
2610
|
isMerged: !1,
|
|
2604
2611
|
isMergedMainCell: !1
|
|
2605
2612
|
};
|
|
2606
|
-
const w =
|
|
2613
|
+
const w = ii(l, h), y = {
|
|
2607
2614
|
unitId: u,
|
|
2608
2615
|
subUnitId: a,
|
|
2609
2616
|
cellValue: w.redoParams.getMatrix()
|
|
@@ -2627,7 +2634,7 @@ const No = "sheet.command.move-rows", Dn = {
|
|
|
2627
2634
|
}), !0) : !1;
|
|
2628
2635
|
}
|
|
2629
2636
|
};
|
|
2630
|
-
function
|
|
2637
|
+
function ii(t, e) {
|
|
2631
2638
|
const n = new X(), o = new X();
|
|
2632
2639
|
return e.forEach((s) => {
|
|
2633
2640
|
const { startRow: r, startColumn: i, endColumn: a, endRow: u } = s, l = t.getCellMatrix().getValue(r, i);
|
|
@@ -2679,7 +2686,7 @@ function Tt(t, e) {
|
|
|
2679
2686
|
for (let a = o; a <= r; a++)
|
|
2680
2687
|
e(i, a);
|
|
2681
2688
|
}
|
|
2682
|
-
const
|
|
2689
|
+
const ai = {
|
|
2683
2690
|
id: "sheet.command.set-border-basic",
|
|
2684
2691
|
type: I.COMMAND,
|
|
2685
2692
|
handler: async (t, e) => {
|
|
@@ -2689,7 +2696,7 @@ const ii = {
|
|
|
2689
2696
|
subUnitId: o
|
|
2690
2697
|
});
|
|
2691
2698
|
}
|
|
2692
|
-
},
|
|
2699
|
+
}, ui = {
|
|
2693
2700
|
id: "sheet.command.set-border-position",
|
|
2694
2701
|
type: I.COMMAND,
|
|
2695
2702
|
handler: async (t, e) => {
|
|
@@ -2697,14 +2704,14 @@ const ii = {
|
|
|
2697
2704
|
const n = t.get(P);
|
|
2698
2705
|
return t.get(Ct).setType(e.value), n.executeCommand(Ot.id);
|
|
2699
2706
|
}
|
|
2700
|
-
},
|
|
2707
|
+
}, ci = {
|
|
2701
2708
|
id: "sheet.command.set-border-style",
|
|
2702
2709
|
type: I.COMMAND,
|
|
2703
2710
|
handler: async (t, e) => {
|
|
2704
2711
|
const n = t.get(P);
|
|
2705
2712
|
return t.get(Ct).setStyle(e.value), n.executeCommand(Ot.id);
|
|
2706
2713
|
}
|
|
2707
|
-
},
|
|
2714
|
+
}, li = {
|
|
2708
2715
|
id: "sheet.command.set-border-color",
|
|
2709
2716
|
type: I.COMMAND,
|
|
2710
2717
|
handler: async (t, e) => {
|
|
@@ -2965,7 +2972,7 @@ const ii = {
|
|
|
2965
2972
|
redoMutations: [{ id: re.id, params: ln }]
|
|
2966
2973
|
}), !0) : !1;
|
|
2967
2974
|
}
|
|
2968
|
-
},
|
|
2975
|
+
}, di = (t, e) => {
|
|
2969
2976
|
if (t.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
2970
2977
|
throw new Error("universheet is null error!");
|
|
2971
2978
|
return {
|
|
@@ -2990,7 +2997,7 @@ const ii = {
|
|
|
2990
2997
|
}
|
|
2991
2998
|
return !0;
|
|
2992
2999
|
}
|
|
2993
|
-
},
|
|
3000
|
+
}, hi = (t, e) => {
|
|
2994
3001
|
if (t.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
2995
3002
|
throw new Error("universheet is null error!");
|
|
2996
3003
|
return {
|
|
@@ -3031,7 +3038,7 @@ const ii = {
|
|
|
3031
3038
|
subUnitId: o,
|
|
3032
3039
|
pluginName: he,
|
|
3033
3040
|
selections: s.map((v) => ({ range: v, primary: Ue(v, l), style: null }))
|
|
3034
|
-
}, h =
|
|
3041
|
+
}, h = hi(t, c), m = {
|
|
3035
3042
|
unitId: n,
|
|
3036
3043
|
subUnitId: o,
|
|
3037
3044
|
pluginName: he,
|
|
@@ -3062,7 +3069,7 @@ const ii = {
|
|
|
3062
3069
|
]
|
|
3063
3070
|
}), !0;
|
|
3064
3071
|
}
|
|
3065
|
-
},
|
|
3072
|
+
}, mi = {
|
|
3066
3073
|
type: I.COMMAND,
|
|
3067
3074
|
id: "sheet.command.set-selected-cols-visible",
|
|
3068
3075
|
handler: async (t) => {
|
|
@@ -3089,7 +3096,7 @@ const ii = {
|
|
|
3089
3096
|
const i = J(o);
|
|
3090
3097
|
if (!i) return !1;
|
|
3091
3098
|
const { worksheet: a, unitId: u, subUnitId: l } = i;
|
|
3092
|
-
r =
|
|
3099
|
+
r = gi(i.worksheet, r);
|
|
3093
3100
|
const c = { unitId: u, subUnitId: l, ranges: r }, d = {
|
|
3094
3101
|
unitId: u,
|
|
3095
3102
|
subUnitId: l,
|
|
@@ -3099,7 +3106,7 @@ const ii = {
|
|
|
3099
3106
|
primary: Ue(w, a),
|
|
3100
3107
|
style: null
|
|
3101
3108
|
}))
|
|
3102
|
-
}, h =
|
|
3109
|
+
}, h = di(t, c), m = {
|
|
3103
3110
|
unitId: u,
|
|
3104
3111
|
subUnitId: l,
|
|
3105
3112
|
pluginName: he,
|
|
@@ -3131,7 +3138,7 @@ const ii = {
|
|
|
3131
3138
|
}), !0) : !1;
|
|
3132
3139
|
}
|
|
3133
3140
|
};
|
|
3134
|
-
function
|
|
3141
|
+
function gi(t, e) {
|
|
3135
3142
|
const n = t.getRowCount() - 1, o = t.getHiddenCols(), s = [];
|
|
3136
3143
|
return e.forEach((r) => {
|
|
3137
3144
|
const i = o.filter((a) => a.startColumn >= r.startColumn && a.endColumn <= r.endColumn);
|
|
@@ -3145,7 +3152,7 @@ function mi(t, e) {
|
|
|
3145
3152
|
}), s;
|
|
3146
3153
|
}
|
|
3147
3154
|
function xo(t) {
|
|
3148
|
-
return
|
|
3155
|
+
return fi(t).map((n) => {
|
|
3149
3156
|
const o = n.startColumn === 0 ? n.endColumn + 1 : n.startColumn - 1;
|
|
3150
3157
|
return {
|
|
3151
3158
|
...n,
|
|
@@ -3154,7 +3161,7 @@ function xo(t) {
|
|
|
3154
3161
|
};
|
|
3155
3162
|
});
|
|
3156
3163
|
}
|
|
3157
|
-
function
|
|
3164
|
+
function fi(t) {
|
|
3158
3165
|
const e = [];
|
|
3159
3166
|
let n;
|
|
3160
3167
|
return t.sort((o, s) => o.startColumn - s.startColumn).forEach((o) => {
|
|
@@ -3190,7 +3197,7 @@ const Ao = (t, e) => {
|
|
|
3190
3197
|
const r = s.getConfig(), { startRow: i, startColumn: a, ySplit: u, xSplit: l } = e;
|
|
3191
3198
|
return r.freeze = { startRow: i, startColumn: a, ySplit: u, xSplit: l }, !0;
|
|
3192
3199
|
}
|
|
3193
|
-
},
|
|
3200
|
+
}, Ri = {
|
|
3194
3201
|
type: I.COMMAND,
|
|
3195
3202
|
id: "sheet.command.set-frozen",
|
|
3196
3203
|
handler: async (t, e) => {
|
|
@@ -3210,7 +3217,7 @@ const Ao = (t, e) => {
|
|
|
3210
3217
|
redoMutations: [{ id: nt.id, params: m }]
|
|
3211
3218
|
}), !0) : !1;
|
|
3212
3219
|
}
|
|
3213
|
-
},
|
|
3220
|
+
}, Ci = {
|
|
3214
3221
|
type: I.COMMAND,
|
|
3215
3222
|
id: "sheet.command.set-frozen-cancel",
|
|
3216
3223
|
handler: async (t) => {
|
|
@@ -3230,7 +3237,7 @@ const Ao = (t, e) => {
|
|
|
3230
3237
|
redoMutations: [{ id: nt.id, params: a }]
|
|
3231
3238
|
}), !0) : !1;
|
|
3232
3239
|
}
|
|
3233
|
-
},
|
|
3240
|
+
}, pi = (t, e) => {
|
|
3234
3241
|
if (t.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
3235
3242
|
throw new Error("universheet is null error!");
|
|
3236
3243
|
return {
|
|
@@ -3255,7 +3262,7 @@ const Ao = (t, e) => {
|
|
|
3255
3262
|
}
|
|
3256
3263
|
return !0;
|
|
3257
3264
|
}
|
|
3258
|
-
},
|
|
3265
|
+
}, Si = (t, e) => {
|
|
3259
3266
|
if (t.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
3260
3267
|
throw new Error("universheet is null error!");
|
|
3261
3268
|
return {
|
|
@@ -3296,7 +3303,7 @@ const Ao = (t, e) => {
|
|
|
3296
3303
|
primary: Ue(w, l),
|
|
3297
3304
|
style: null
|
|
3298
3305
|
}))
|
|
3299
|
-
}, h =
|
|
3306
|
+
}, h = pi(t, c), m = {
|
|
3300
3307
|
unitId: n,
|
|
3301
3308
|
subUnitId: o,
|
|
3302
3309
|
pluginName: he,
|
|
@@ -3331,7 +3338,7 @@ const Ao = (t, e) => {
|
|
|
3331
3338
|
]
|
|
3332
3339
|
}), !0;
|
|
3333
3340
|
}
|
|
3334
|
-
},
|
|
3341
|
+
}, vi = {
|
|
3335
3342
|
type: I.COMMAND,
|
|
3336
3343
|
id: "sheet.command.set-selected-rows-visible",
|
|
3337
3344
|
handler: async (t) => {
|
|
@@ -3357,7 +3364,7 @@ const Ao = (t, e) => {
|
|
|
3357
3364
|
if (!(i != null && i.length)) return !1;
|
|
3358
3365
|
const a = J(s);
|
|
3359
3366
|
if (!a) return !1;
|
|
3360
|
-
i =
|
|
3367
|
+
i = wi(a.worksheet, i);
|
|
3361
3368
|
const { unitId: u, subUnitId: l, worksheet: c } = a, d = { unitId: u, subUnitId: l, ranges: i }, h = {
|
|
3362
3369
|
unitId: u,
|
|
3363
3370
|
subUnitId: l,
|
|
@@ -3367,7 +3374,7 @@ const Ao = (t, e) => {
|
|
|
3367
3374
|
primary: Ue(b, c),
|
|
3368
3375
|
style: null
|
|
3369
3376
|
}))
|
|
3370
|
-
}, m =
|
|
3377
|
+
}, m = Si(t, d), f = {
|
|
3371
3378
|
unitId: u,
|
|
3372
3379
|
subUnitId: l,
|
|
3373
3380
|
pluginName: he,
|
|
@@ -3399,7 +3406,7 @@ const Ao = (t, e) => {
|
|
|
3399
3406
|
}), !0;
|
|
3400
3407
|
}
|
|
3401
3408
|
};
|
|
3402
|
-
function
|
|
3409
|
+
function wi(t, e) {
|
|
3403
3410
|
const n = t.getMaxColumns() - 1, o = t.getHiddenRows(), s = [];
|
|
3404
3411
|
return e.forEach((r) => {
|
|
3405
3412
|
const i = o.filter((a) => a.startRow >= r.startRow && a.endRow <= r.endRow);
|
|
@@ -3413,7 +3420,7 @@ function vi(t, e) {
|
|
|
3413
3420
|
}), s;
|
|
3414
3421
|
}
|
|
3415
3422
|
function Wo(t) {
|
|
3416
|
-
return
|
|
3423
|
+
return Ii(t).map((n) => {
|
|
3417
3424
|
const o = n.startRow === 0 ? n.endRow + 1 : n.startRow - 1;
|
|
3418
3425
|
return {
|
|
3419
3426
|
...n,
|
|
@@ -3422,7 +3429,7 @@ function Wo(t) {
|
|
|
3422
3429
|
};
|
|
3423
3430
|
});
|
|
3424
3431
|
}
|
|
3425
|
-
function
|
|
3432
|
+
function Ii(t) {
|
|
3426
3433
|
const e = [];
|
|
3427
3434
|
let n;
|
|
3428
3435
|
return t.sort((o, s) => o.startRow - s.startRow).forEach((o) => {
|
|
@@ -3442,7 +3449,7 @@ const Re = {
|
|
|
3442
3449
|
const { unitId: s, subUnitId: r, worksheet: i } = o, { range: a, style: u } = e, l = t.get(P), c = t.get(V), d = t.get(L), h = a ? [a] : d.getSelectionRanges();
|
|
3443
3450
|
if (!(h != null && h.length))
|
|
3444
3451
|
return !1;
|
|
3445
|
-
const m = new X(), f =
|
|
3452
|
+
const m = new X(), f = Rr(i);
|
|
3446
3453
|
if (O.isArray(u.value))
|
|
3447
3454
|
for (let y = 0; y < h.length; y++)
|
|
3448
3455
|
f.forOperableEach(h[y], (b, k, E) => {
|
|
@@ -3481,7 +3488,7 @@ const Re = {
|
|
|
3481
3488
|
redoMutations: [{ id: re.id, params: g }, ...v]
|
|
3482
3489
|
}), !0) : !1;
|
|
3483
3490
|
}
|
|
3484
|
-
},
|
|
3491
|
+
}, zu = {
|
|
3485
3492
|
type: I.COMMAND,
|
|
3486
3493
|
id: "sheet.command.set-bold",
|
|
3487
3494
|
handler: async (t) => {
|
|
@@ -3497,7 +3504,7 @@ const Re = {
|
|
|
3497
3504
|
};
|
|
3498
3505
|
return t.get(P).executeCommand(Re.id, a);
|
|
3499
3506
|
}
|
|
3500
|
-
},
|
|
3507
|
+
}, Gu = {
|
|
3501
3508
|
type: I.COMMAND,
|
|
3502
3509
|
id: "sheet.command.set-italic",
|
|
3503
3510
|
handler: async (t) => {
|
|
@@ -3519,7 +3526,7 @@ const Re = {
|
|
|
3519
3526
|
};
|
|
3520
3527
|
return t.get(P).executeCommand(Re.id, r);
|
|
3521
3528
|
}
|
|
3522
|
-
},
|
|
3529
|
+
}, Ku = {
|
|
3523
3530
|
type: I.COMMAND,
|
|
3524
3531
|
id: "sheet.command.set-underline",
|
|
3525
3532
|
handler: async (t) => {
|
|
@@ -3540,7 +3547,7 @@ const Re = {
|
|
|
3540
3547
|
};
|
|
3541
3548
|
return t.get(P).executeCommand(Re.id, r);
|
|
3542
3549
|
}
|
|
3543
|
-
},
|
|
3550
|
+
}, Ju = {
|
|
3544
3551
|
type: I.COMMAND,
|
|
3545
3552
|
id: "sheet.command.set-stroke",
|
|
3546
3553
|
handler: async (t) => {
|
|
@@ -3561,7 +3568,7 @@ const Re = {
|
|
|
3561
3568
|
}
|
|
3562
3569
|
};
|
|
3563
3570
|
I.COMMAND;
|
|
3564
|
-
const
|
|
3571
|
+
const qu = {
|
|
3565
3572
|
type: I.COMMAND,
|
|
3566
3573
|
id: "sheet.command.set-font-family",
|
|
3567
3574
|
handler: async (t, e) => {
|
|
@@ -3575,7 +3582,7 @@ const Ju = {
|
|
|
3575
3582
|
};
|
|
3576
3583
|
return n.executeCommand(Re.id, o);
|
|
3577
3584
|
}
|
|
3578
|
-
},
|
|
3585
|
+
}, Yu = {
|
|
3579
3586
|
type: I.COMMAND,
|
|
3580
3587
|
id: "sheet.command.set-font-size",
|
|
3581
3588
|
handler: async (t, e) => {
|
|
@@ -3589,7 +3596,7 @@ const Ju = {
|
|
|
3589
3596
|
};
|
|
3590
3597
|
return n.executeCommand(Re.id, o);
|
|
3591
3598
|
}
|
|
3592
|
-
},
|
|
3599
|
+
}, Mi = {
|
|
3593
3600
|
type: I.COMMAND,
|
|
3594
3601
|
id: "sheet.command.set-text-color",
|
|
3595
3602
|
handler: async (t, e) => {
|
|
@@ -3605,7 +3612,7 @@ const Ju = {
|
|
|
3605
3612
|
};
|
|
3606
3613
|
return n.executeCommand(Re.id, o);
|
|
3607
3614
|
}
|
|
3608
|
-
},
|
|
3615
|
+
}, _i = {
|
|
3609
3616
|
type: I.COMMAND,
|
|
3610
3617
|
id: "sheet.command.reset-text-color",
|
|
3611
3618
|
handler: async (t) => {
|
|
@@ -3620,7 +3627,7 @@ const Ju = {
|
|
|
3620
3627
|
};
|
|
3621
3628
|
return e.executeCommand(Re.id, n);
|
|
3622
3629
|
}
|
|
3623
|
-
},
|
|
3630
|
+
}, yi = {
|
|
3624
3631
|
type: I.COMMAND,
|
|
3625
3632
|
id: "sheet.command.set-background-color",
|
|
3626
3633
|
handler: async (t, e) => {
|
|
@@ -3636,7 +3643,7 @@ const Ju = {
|
|
|
3636
3643
|
};
|
|
3637
3644
|
return n.executeCommand(Re.id, o);
|
|
3638
3645
|
}
|
|
3639
|
-
},
|
|
3646
|
+
}, bi = {
|
|
3640
3647
|
type: I.COMMAND,
|
|
3641
3648
|
id: "sheet.command.reset-background-color",
|
|
3642
3649
|
handler: async (t) => {
|
|
@@ -3651,7 +3658,7 @@ const Ju = {
|
|
|
3651
3658
|
};
|
|
3652
3659
|
return e.executeCommand(Re.id, n);
|
|
3653
3660
|
}
|
|
3654
|
-
},
|
|
3661
|
+
}, Ui = {
|
|
3655
3662
|
type: I.COMMAND,
|
|
3656
3663
|
id: "sheet.command.set-vertical-text-align",
|
|
3657
3664
|
handler: async (t, e) => {
|
|
@@ -3668,7 +3675,7 @@ const Ju = {
|
|
|
3668
3675
|
};
|
|
3669
3676
|
return n.executeCommand(Re.id, o);
|
|
3670
3677
|
}
|
|
3671
|
-
},
|
|
3678
|
+
}, Pi = {
|
|
3672
3679
|
type: I.COMMAND,
|
|
3673
3680
|
id: "sheet.command.set-horizontal-text-align",
|
|
3674
3681
|
handler: async (t, e) => {
|
|
@@ -3685,7 +3692,7 @@ const Ju = {
|
|
|
3685
3692
|
};
|
|
3686
3693
|
return n.executeCommand(Re.id, o);
|
|
3687
3694
|
}
|
|
3688
|
-
},
|
|
3695
|
+
}, Ni = {
|
|
3689
3696
|
type: I.COMMAND,
|
|
3690
3697
|
id: "sheet.command.set-text-wrap",
|
|
3691
3698
|
handler: async (t, e) => {
|
|
@@ -3702,7 +3709,7 @@ const Ju = {
|
|
|
3702
3709
|
};
|
|
3703
3710
|
return n.executeCommand(Re.id, o);
|
|
3704
3711
|
}
|
|
3705
|
-
},
|
|
3712
|
+
}, Ei = {
|
|
3706
3713
|
type: I.COMMAND,
|
|
3707
3714
|
id: "sheet.command.set-text-rotation",
|
|
3708
3715
|
handler: async (t, e) => {
|
|
@@ -3716,7 +3723,7 @@ const Ju = {
|
|
|
3716
3723
|
};
|
|
3717
3724
|
return o.executeCommand(Re.id, s);
|
|
3718
3725
|
}
|
|
3719
|
-
},
|
|
3726
|
+
}, Oi = (t, e) => {
|
|
3720
3727
|
const r = t.get(M).getUniverSheetInstance(e.unitId).getSheetBySheetId(e.subUnitId).getConfig().tabColor;
|
|
3721
3728
|
return {
|
|
3722
3729
|
...O.deepClone(e),
|
|
@@ -3731,7 +3738,7 @@ const Ju = {
|
|
|
3731
3738
|
const o = n.getSheetBySheetId(e.subUnitId);
|
|
3732
3739
|
return o ? (o.getConfig().tabColor = e.color, !0) : !1;
|
|
3733
3740
|
}
|
|
3734
|
-
},
|
|
3741
|
+
}, ki = {
|
|
3735
3742
|
type: I.COMMAND,
|
|
3736
3743
|
id: "sheet.command.set-tab-color",
|
|
3737
3744
|
handler: async (t, e) => {
|
|
@@ -3741,7 +3748,7 @@ const Ju = {
|
|
|
3741
3748
|
color: e.value,
|
|
3742
3749
|
unitId: r,
|
|
3743
3750
|
subUnitId: i
|
|
3744
|
-
}, u =
|
|
3751
|
+
}, u = Oi(t, a);
|
|
3745
3752
|
return n.syncExecuteCommand($t.id, a) ? (o.pushUndoRedo({
|
|
3746
3753
|
unitID: r,
|
|
3747
3754
|
undoMutations: [{ id: $t.id, params: u }],
|
|
@@ -3760,7 +3767,7 @@ const Ju = {
|
|
|
3760
3767
|
return n.setActiveSheet(s), !0;
|
|
3761
3768
|
return !1;
|
|
3762
3769
|
}
|
|
3763
|
-
},
|
|
3770
|
+
}, Di = 4, Vn = {
|
|
3764
3771
|
type: I.COMMAND,
|
|
3765
3772
|
id: "sheet.command.set-worksheet-activate",
|
|
3766
3773
|
handler: (t, e, n) => {
|
|
@@ -3774,7 +3781,7 @@ const Ju = {
|
|
|
3774
3781
|
subUnitId: i
|
|
3775
3782
|
}, n);
|
|
3776
3783
|
a(u);
|
|
3777
|
-
},
|
|
3784
|
+
}, Di);
|
|
3778
3785
|
});
|
|
3779
3786
|
}
|
|
3780
3787
|
}, $o = (t, e) => {
|
|
@@ -3931,7 +3938,7 @@ const Ju = {
|
|
|
3931
3938
|
const o = n.getSheetBySheetId(e.subUnitId);
|
|
3932
3939
|
return o ? (o.getConfig().hidden = e.hidden, !0) : !1;
|
|
3933
3940
|
}
|
|
3934
|
-
},
|
|
3941
|
+
}, Ti = {
|
|
3935
3942
|
type: I.COMMAND,
|
|
3936
3943
|
id: "sheet.command.set-worksheet-hidden",
|
|
3937
3944
|
handler: async (t, e) => {
|
|
@@ -3950,7 +3957,7 @@ const Ju = {
|
|
|
3950
3957
|
redoMutations: [{ id: ot.id, params: h }]
|
|
3951
3958
|
}), !0) : !1;
|
|
3952
3959
|
}
|
|
3953
|
-
},
|
|
3960
|
+
}, xi = (t, e) => {
|
|
3954
3961
|
const n = _n(t.get(M), e);
|
|
3955
3962
|
if (!n)
|
|
3956
3963
|
throw new Error("[SetWorksheetNameMutationFactory]: worksheet is null error!");
|
|
@@ -3981,7 +3988,7 @@ const Ju = {
|
|
|
3981
3988
|
subUnitId: a,
|
|
3982
3989
|
name: e.name,
|
|
3983
3990
|
unitId: i
|
|
3984
|
-
}, l =
|
|
3991
|
+
}, l = xi(
|
|
3985
3992
|
t,
|
|
3986
3993
|
u
|
|
3987
3994
|
), c = s.onCommandExecute({
|
|
@@ -4002,7 +4009,7 @@ const Ju = {
|
|
|
4002
4009
|
redoMutations: d
|
|
4003
4010
|
}), !0) : !1;
|
|
4004
4011
|
}
|
|
4005
|
-
},
|
|
4012
|
+
}, Ai = (t, e) => ({
|
|
4006
4013
|
...O.deepClone(e),
|
|
4007
4014
|
toOrder: e.fromOrder,
|
|
4008
4015
|
fromOrder: e.toOrder
|
|
@@ -4015,7 +4022,7 @@ const Ju = {
|
|
|
4015
4022
|
const o = n.getConfig();
|
|
4016
4023
|
return o.sheetOrder.splice(e.fromOrder, 1), o.sheetOrder.splice(e.toOrder, 0, e.subUnitId), !0;
|
|
4017
4024
|
}
|
|
4018
|
-
},
|
|
4025
|
+
}, Vi = {
|
|
4019
4026
|
type: I.COMMAND,
|
|
4020
4027
|
id: "sheet.command.set-worksheet-order",
|
|
4021
4028
|
handler: async (t, e) => {
|
|
@@ -4026,14 +4033,14 @@ const Ju = {
|
|
|
4026
4033
|
toOrder: e.order,
|
|
4027
4034
|
unitId: i,
|
|
4028
4035
|
subUnitId: a
|
|
4029
|
-
}, c =
|
|
4036
|
+
}, c = Ai(t, l);
|
|
4030
4037
|
return n.syncExecuteCommand(Lt.id, l) ? (o.pushUndoRedo({
|
|
4031
4038
|
unitID: i,
|
|
4032
4039
|
undoMutations: [{ id: Lt.id, params: c }],
|
|
4033
4040
|
redoMutations: [{ id: Lt.id, params: l }]
|
|
4034
4041
|
}), !0) : !1;
|
|
4035
4042
|
}
|
|
4036
|
-
},
|
|
4043
|
+
}, Wi = 2e3, Ho = (t, e) => {
|
|
4037
4044
|
const { unitId: n, subUnitId: o, ranges: s } = e, i = t.get(M).getUniverSheetInstance(n), a = i == null ? void 0 : i.getSheetBySheetId(o);
|
|
4038
4045
|
if (a == null)
|
|
4039
4046
|
throw new Error("worksheet is null error!");
|
|
@@ -4062,7 +4069,7 @@ const Ju = {
|
|
|
4062
4069
|
ranges: s,
|
|
4063
4070
|
autoHeightInfo: u
|
|
4064
4071
|
};
|
|
4065
|
-
},
|
|
4072
|
+
}, Xu = (t, e) => {
|
|
4066
4073
|
const { unitId: n, subUnitId: o, rowsAutoHeightInfo: s } = e, i = t.get(M).getUniverSheetInstance(n), a = i == null ? void 0 : i.getSheetBySheetId(o);
|
|
4067
4074
|
if (!a)
|
|
4068
4075
|
return {
|
|
@@ -4095,7 +4102,7 @@ const Ju = {
|
|
|
4095
4102
|
for (const { startRow: h, endRow: m } of s)
|
|
4096
4103
|
for (let f = h; f <= m; f++) {
|
|
4097
4104
|
const g = c.getRowOrCreate(f);
|
|
4098
|
-
typeof r == "number" ? g.h = r : g.h = (d = r[f]) != null ? d : l, g.h = Math.min(
|
|
4105
|
+
typeof r == "number" ? g.h = r : g.h = (d = r[f]) != null ? d : l, g.h = Math.min(Wi, g.h);
|
|
4099
4106
|
}
|
|
4100
4107
|
return !0;
|
|
4101
4108
|
}
|
|
@@ -4322,7 +4329,7 @@ const Ju = {
|
|
|
4322
4329
|
redoMutations: [{ id: Te.id, params: h }, ...C]
|
|
4323
4330
|
}), !0) : !1;
|
|
4324
4331
|
}
|
|
4325
|
-
},
|
|
4332
|
+
}, $i = {
|
|
4326
4333
|
type: I.COMMAND,
|
|
4327
4334
|
id: "sheet.command.set-worksheet-show",
|
|
4328
4335
|
handler: async (t, e) => {
|
|
@@ -4355,7 +4362,7 @@ const Ju = {
|
|
|
4355
4362
|
]
|
|
4356
4363
|
}), !0) : !1;
|
|
4357
4364
|
}
|
|
4358
|
-
},
|
|
4365
|
+
}, Li = (t) => {
|
|
4359
4366
|
const e = new X();
|
|
4360
4367
|
return t.forEach((n) => {
|
|
4361
4368
|
q.foreach(n, (o, s) => {
|
|
@@ -4365,7 +4372,7 @@ const Ju = {
|
|
|
4365
4372
|
const s = e.getValue(n - 1, o);
|
|
4366
4373
|
s && e.setValue(n, o, s + 1);
|
|
4367
4374
|
}), e;
|
|
4368
|
-
},
|
|
4375
|
+
}, Bi = (t) => {
|
|
4369
4376
|
const e = t;
|
|
4370
4377
|
return e.forValue((n, o) => {
|
|
4371
4378
|
const s = t.getValue(n - 1, o);
|
|
@@ -4395,7 +4402,7 @@ const Ju = {
|
|
|
4395
4402
|
u.startColumn = l, u.startRow = o - a + 1, n(c, u);
|
|
4396
4403
|
}
|
|
4397
4404
|
}), e;
|
|
4398
|
-
},
|
|
4405
|
+
}, Fi = (t, e) => (q.foreach(e, (n, o) => {
|
|
4399
4406
|
t.realDeleteValue(n, o);
|
|
4400
4407
|
let s = n + 1, r = t.getValue(s, o) || 0;
|
|
4401
4408
|
for (; r > 1; )
|
|
@@ -4404,13 +4411,13 @@ const Ju = {
|
|
|
4404
4411
|
const e = [];
|
|
4405
4412
|
let n = qn(t);
|
|
4406
4413
|
for (; n.area > 0; )
|
|
4407
|
-
n.range && (e.push(n.range),
|
|
4414
|
+
n.range && (e.push(n.range), Fi(t, n.range)), n = qn(t);
|
|
4408
4415
|
return e;
|
|
4409
4416
|
}, qo = (t) => {
|
|
4410
|
-
const e =
|
|
4417
|
+
const e = Li(t);
|
|
4411
4418
|
return Jo(e);
|
|
4412
4419
|
};
|
|
4413
|
-
class
|
|
4420
|
+
class Zu {
|
|
4414
4421
|
constructor() {
|
|
4415
4422
|
R(this, "_matrix", new X());
|
|
4416
4423
|
}
|
|
@@ -4429,13 +4436,13 @@ class Xu {
|
|
|
4429
4436
|
}), this;
|
|
4430
4437
|
}
|
|
4431
4438
|
merge() {
|
|
4432
|
-
const e =
|
|
4439
|
+
const e = Bi(this._matrix);
|
|
4433
4440
|
return Jo(e);
|
|
4434
4441
|
}
|
|
4435
4442
|
}
|
|
4436
4443
|
const pt = Vs("INumfmtService");
|
|
4437
4444
|
bs(Ie.Ready, pt);
|
|
4438
|
-
const
|
|
4445
|
+
const Qu = (t, e) => {
|
|
4439
4446
|
const n = t.get(pt), { values: o, unitId: s, subUnitId: r } = e, i = [], a = [];
|
|
4440
4447
|
Object.keys(o).forEach((l) => {
|
|
4441
4448
|
o[l].ranges.forEach((d) => {
|
|
@@ -4495,7 +4502,7 @@ const Zu = (t, e) => {
|
|
|
4495
4502
|
const { unitId: n, subUnitId: o, ranges: s } = e;
|
|
4496
4503
|
return t.get(pt).deleteValues(n, o, s), !0;
|
|
4497
4504
|
}
|
|
4498
|
-
},
|
|
4505
|
+
}, ec = (t, e) => {
|
|
4499
4506
|
const n = t.get(pt), { ranges: o, unitId: s, subUnitId: r } = e, i = [];
|
|
4500
4507
|
if (o.forEach((u) => {
|
|
4501
4508
|
q.foreach(u, (l, c) => {
|
|
@@ -4523,11 +4530,11 @@ const Zu = (t, e) => {
|
|
|
4523
4530
|
r[l] || (r[l] = { ranges: [] }), r[l].ranges.push(io(c.row, c.col));
|
|
4524
4531
|
});
|
|
4525
4532
|
}), { unitId: t, subUnitId: e, refMap: s, values: r };
|
|
4526
|
-
},
|
|
4533
|
+
}, Hi = {
|
|
4527
4534
|
id: "sheet.mutation.empty",
|
|
4528
4535
|
type: I.MUTATION,
|
|
4529
4536
|
handler: () => !0
|
|
4530
|
-
},
|
|
4537
|
+
}, ji = {
|
|
4531
4538
|
id: "sheet.command.insert-defined-name",
|
|
4532
4539
|
type: I.COMMAND,
|
|
4533
4540
|
handler: (t, e) => {
|
|
@@ -4542,7 +4549,7 @@ const Zu = (t, e) => {
|
|
|
4542
4549
|
redoMutations: [{ id: rt.id, params: s }]
|
|
4543
4550
|
}), !0) : !1;
|
|
4544
4551
|
}
|
|
4545
|
-
},
|
|
4552
|
+
}, zi = {
|
|
4546
4553
|
id: "sheet.command.remove-defined-name",
|
|
4547
4554
|
type: I.COMMAND,
|
|
4548
4555
|
handler: (t, e) => {
|
|
@@ -4557,7 +4564,7 @@ const Zu = (t, e) => {
|
|
|
4557
4564
|
redoMutations: [{ id: Rn.id, params: s }]
|
|
4558
4565
|
}), !0) : !1;
|
|
4559
4566
|
}
|
|
4560
|
-
},
|
|
4567
|
+
}, Gi = {
|
|
4561
4568
|
id: "sheet.command.set-defined-name",
|
|
4562
4569
|
type: I.COMMAND,
|
|
4563
4570
|
handler: (t, e) => {
|
|
@@ -4568,7 +4575,7 @@ const Zu = (t, e) => {
|
|
|
4568
4575
|
redoMutations: [{ id: rt.id, params: e.newDefinedName }]
|
|
4569
4576
|
}), !0) : !1;
|
|
4570
4577
|
}
|
|
4571
|
-
},
|
|
4578
|
+
}, Ki = {
|
|
4572
4579
|
id: "sheet.operation.scroll-to-cell",
|
|
4573
4580
|
type: I.OPERATION,
|
|
4574
4581
|
handler: () => !0
|
|
@@ -4599,10 +4606,10 @@ const Zu = (t, e) => {
|
|
|
4599
4606
|
return Z(a, u).result;
|
|
4600
4607
|
}
|
|
4601
4608
|
};
|
|
4602
|
-
var
|
|
4603
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4609
|
+
var Ji = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, Yi = (t, e, n, o) => {
|
|
4610
|
+
for (var s = o > 1 ? void 0 : o ? qi(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
4604
4611
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
4605
|
-
return o && s &&
|
|
4612
|
+
return o && s && Ji(e, n, s), s;
|
|
4606
4613
|
};
|
|
4607
4614
|
let Ke = class {
|
|
4608
4615
|
constructor() {
|
|
@@ -4676,24 +4683,24 @@ let Ke = class {
|
|
|
4676
4683
|
this._resetOrder.next(Math.random());
|
|
4677
4684
|
}
|
|
4678
4685
|
};
|
|
4679
|
-
Ke =
|
|
4686
|
+
Ke = Yi([
|
|
4680
4687
|
_e(Ie.Starting, Ke)
|
|
4681
4688
|
], Ke);
|
|
4682
|
-
const
|
|
4689
|
+
const Xi = {
|
|
4683
4690
|
id: "sheet.mutation.add-worksheet-protection",
|
|
4684
4691
|
type: I.MUTATION,
|
|
4685
4692
|
handler: (t, e) => {
|
|
4686
4693
|
const { unitId: n, rule: o } = e;
|
|
4687
4694
|
return t.get(Ke).addRule(n, o), !0;
|
|
4688
4695
|
}
|
|
4689
|
-
},
|
|
4696
|
+
}, Zi = {
|
|
4690
4697
|
id: "sheet.mutation.set-worksheet-protection",
|
|
4691
4698
|
type: I.MUTATION,
|
|
4692
4699
|
handler: (t, e) => {
|
|
4693
4700
|
const { unitId: n, subUnitId: o, rule: s } = e;
|
|
4694
4701
|
return t.get(Ke).setRule(n, o, s), !0;
|
|
4695
4702
|
}
|
|
4696
|
-
},
|
|
4703
|
+
}, Qi = {
|
|
4697
4704
|
id: "sheet.mutation.delete-worksheet-protection",
|
|
4698
4705
|
type: I.MUTATION,
|
|
4699
4706
|
handler: (t, e) => {
|
|
@@ -4701,10 +4708,10 @@ const Yi = {
|
|
|
4701
4708
|
return t.get(Ke).deleteRule(n, o), !0;
|
|
4702
4709
|
}
|
|
4703
4710
|
};
|
|
4704
|
-
var
|
|
4705
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4711
|
+
var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, na = (t, e, n, o) => {
|
|
4712
|
+
for (var s = o > 1 ? void 0 : o ? ta(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
4706
4713
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
4707
|
-
return o && s &&
|
|
4714
|
+
return o && s && ea(e, n, s), s;
|
|
4708
4715
|
};
|
|
4709
4716
|
let pe = class {
|
|
4710
4717
|
constructor() {
|
|
@@ -4784,28 +4791,28 @@ let pe = class {
|
|
|
4784
4791
|
return n;
|
|
4785
4792
|
}
|
|
4786
4793
|
};
|
|
4787
|
-
pe =
|
|
4794
|
+
pe = na([
|
|
4788
4795
|
_e(Ie.Starting, pe)
|
|
4789
4796
|
], pe);
|
|
4790
4797
|
const et = () => [
|
|
4791
4798
|
So,
|
|
4792
|
-
|
|
4799
|
+
vr
|
|
4793
4800
|
], Bt = () => [
|
|
4794
|
-
|
|
4801
|
+
Cr,
|
|
4802
|
+
Ur,
|
|
4795
4803
|
br,
|
|
4804
|
+
Or,
|
|
4805
|
+
Nr,
|
|
4806
|
+
_r,
|
|
4807
|
+
Mr,
|
|
4796
4808
|
yr,
|
|
4797
4809
|
Er,
|
|
4798
|
-
Pr,
|
|
4799
|
-
Mr,
|
|
4800
|
-
Ir,
|
|
4801
|
-
_r,
|
|
4802
|
-
Nr,
|
|
4803
|
-
Cr,
|
|
4804
4810
|
pr,
|
|
4811
|
+
Sr,
|
|
4812
|
+
Ir,
|
|
4805
4813
|
wr,
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
], ec = [
|
|
4814
|
+
Pr
|
|
4815
|
+
], tc = [
|
|
4809
4816
|
_.Copy,
|
|
4810
4817
|
_.DeleteColumn,
|
|
4811
4818
|
_.DeleteRow,
|
|
@@ -4821,10 +4828,10 @@ const et = () => [
|
|
|
4821
4828
|
_.SetRowStyle,
|
|
4822
4829
|
_.Sort
|
|
4823
4830
|
];
|
|
4824
|
-
var
|
|
4825
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4831
|
+
var oa = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, ra = (t, e, n, o) => {
|
|
4832
|
+
for (var s = o > 1 ? void 0 : o ? sa(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
4826
4833
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
4827
|
-
return o && s &&
|
|
4834
|
+
return o && s && oa(e, n, s), s;
|
|
4828
4835
|
};
|
|
4829
4836
|
let it = class {
|
|
4830
4837
|
constructor() {
|
|
@@ -4874,15 +4881,15 @@ let it = class {
|
|
|
4874
4881
|
return e || (e = /* @__PURE__ */ new Map(), this._model.set(t, e)), e;
|
|
4875
4882
|
}
|
|
4876
4883
|
};
|
|
4877
|
-
it =
|
|
4884
|
+
it = ra([
|
|
4878
4885
|
_e(Ie.Starting, it)
|
|
4879
4886
|
], it);
|
|
4880
|
-
var
|
|
4881
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4887
|
+
var ia = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, ua = (t, e, n, o) => {
|
|
4888
|
+
for (var s = o > 1 ? void 0 : o ? aa(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
4882
4889
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
4883
|
-
return o && s &&
|
|
4890
|
+
return o && s && ia(e, n, s), s;
|
|
4884
4891
|
}, Qe = (t, e) => (n, o) => e(n, o, t);
|
|
4885
|
-
const
|
|
4892
|
+
const ca = "SHEET_WORKSHEET_PROTECTION_PLUGIN", la = "SHEET_WORKSHEET_PROTECTION_POINT_PLUGIN";
|
|
4886
4893
|
let Ft = class extends Us {
|
|
4887
4894
|
constructor(t, e, n, o, s, r, i) {
|
|
4888
4895
|
super(), this._permissionService = t, this._univerInstanceService = e, this._injector = n, this._worksheetProtectionRuleModel = o, this._worksheetProtectionPointRuleModel = s, this._resourceManagerService = r, this._rangeProtectionRuleModel = i, this._init(), this._initRuleChange(), this._initRuleSnapshot(), this._initPointSnapshot();
|
|
@@ -4966,7 +4973,7 @@ let Ft = class extends Us {
|
|
|
4966
4973
|
this._resourceManagerService.registerPluginResource({
|
|
4967
4974
|
toJson: t,
|
|
4968
4975
|
parseJson: e,
|
|
4969
|
-
pluginName:
|
|
4976
|
+
pluginName: ca,
|
|
4970
4977
|
businesses: [Zt.UNIVER_SHEET],
|
|
4971
4978
|
onLoad: (n, o) => {
|
|
4972
4979
|
this._worksheetProtectionRuleModel.fromObject(o), Object.keys(o).forEach((s) => {
|
|
@@ -4999,7 +5006,7 @@ let Ft = class extends Us {
|
|
|
4999
5006
|
this._resourceManagerService.registerPluginResource({
|
|
5000
5007
|
toJson: t,
|
|
5001
5008
|
parseJson: e,
|
|
5002
|
-
pluginName:
|
|
5009
|
+
pluginName: la,
|
|
5003
5010
|
businesses: [Zt.UNIVER_SHEET],
|
|
5004
5011
|
onLoad: (n, o) => {
|
|
5005
5012
|
this._worksheetProtectionPointRuleModel.fromObject(o), Object.keys(o).forEach((s) => {
|
|
@@ -5016,7 +5023,7 @@ let Ft = class extends Us {
|
|
|
5016
5023
|
);
|
|
5017
5024
|
}
|
|
5018
5025
|
};
|
|
5019
|
-
Ft =
|
|
5026
|
+
Ft = ua([
|
|
5020
5027
|
_e(Ie.Starting, Ft),
|
|
5021
5028
|
Qe(0, te(Nt)),
|
|
5022
5029
|
Qe(1, te(M)),
|
|
@@ -5033,7 +5040,7 @@ const Qo = {
|
|
|
5033
5040
|
const { rule: n } = e;
|
|
5034
5041
|
return t.get(it).addRule(n), !0;
|
|
5035
5042
|
}
|
|
5036
|
-
},
|
|
5043
|
+
}, da = {
|
|
5037
5044
|
type: I.COMMAND,
|
|
5038
5045
|
id: "sheet.command.set-worksheet-permission-points",
|
|
5039
5046
|
async handler(t, e) {
|
|
@@ -5046,7 +5053,7 @@ const Qo = {
|
|
|
5046
5053
|
subUnitId: o.subUnitId
|
|
5047
5054
|
}), !0;
|
|
5048
5055
|
}
|
|
5049
|
-
},
|
|
5056
|
+
}, nc = (t, e) => {
|
|
5050
5057
|
const n = t.get(pe), o = e.ruleIds.map((r) => n.getRule(e.unitId, e.subUnitId, r)).filter((r) => !!r);
|
|
5051
5058
|
return { id: Pt.id, params: { subUnitId: e.subUnitId, unitId: e.unitId, rules: o } };
|
|
5052
5059
|
}, Ut = {
|
|
@@ -5058,7 +5065,7 @@ const Qo = {
|
|
|
5058
5065
|
r.deleteRule(n, o, i);
|
|
5059
5066
|
}), !0;
|
|
5060
5067
|
}
|
|
5061
|
-
},
|
|
5068
|
+
}, oc = (t) => {
|
|
5062
5069
|
const e = { ...t, ruleIds: t.rules.map((n) => n.id) };
|
|
5063
5070
|
return { id: Ut.id, params: e };
|
|
5064
5071
|
}, Pt = {
|
|
@@ -5100,7 +5107,7 @@ const Qo = {
|
|
|
5100
5107
|
}
|
|
5101
5108
|
return !0;
|
|
5102
5109
|
}
|
|
5103
|
-
},
|
|
5110
|
+
}, ha = {
|
|
5104
5111
|
type: I.COMMAND,
|
|
5105
5112
|
id: "sheet.command.delete-range-protection",
|
|
5106
5113
|
async handler(t, e) {
|
|
@@ -5124,7 +5131,7 @@ const Qo = {
|
|
|
5124
5131
|
const { unitId: n, subUnitId: o, rule: s, ruleId: r } = e;
|
|
5125
5132
|
return t.get(pe).setRule(n, o, r, s), !0;
|
|
5126
5133
|
}
|
|
5127
|
-
},
|
|
5134
|
+
}, sc = (t, e) => {
|
|
5128
5135
|
const { unitId: n, subUnitId: o, ruleId: s } = e, i = t.get(pe).getRule(n, o, s);
|
|
5129
5136
|
return i ? {
|
|
5130
5137
|
id: fe.id,
|
|
@@ -5175,7 +5182,7 @@ const Qo = {
|
|
|
5175
5182
|
}
|
|
5176
5183
|
return !0;
|
|
5177
5184
|
}
|
|
5178
|
-
},
|
|
5185
|
+
}, ma = (t) => {
|
|
5179
5186
|
const { order: e } = t, n = {};
|
|
5180
5187
|
return Object.keys(e).forEach((o) => {
|
|
5181
5188
|
n[e[Number(o)]] = Number(o);
|
|
@@ -5217,7 +5224,7 @@ const Qo = {
|
|
|
5217
5224
|
}
|
|
5218
5225
|
}, u = {
|
|
5219
5226
|
id: Qt.id,
|
|
5220
|
-
params:
|
|
5227
|
+
params: ma(a.params)
|
|
5221
5228
|
}, c = t.get(H).onCommandExecute({ id: os.id, params: e }), d = [
|
|
5222
5229
|
...(f = c.preRedos) != null ? f : [],
|
|
5223
5230
|
a,
|
|
@@ -5233,11 +5240,11 @@ const Qo = {
|
|
|
5233
5240
|
redoMutations: d
|
|
5234
5241
|
}), !0) : !1;
|
|
5235
5242
|
}
|
|
5236
|
-
},
|
|
5237
|
-
var
|
|
5238
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
5243
|
+
}, ga = "maxCellsPerSheet", fa = 3e6, ss = "ONLY_REGISTER_FORMULA_RELATED_MUTATIONS_KEY";
|
|
5244
|
+
var Ra = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, pa = (t, e, n, o) => {
|
|
5245
|
+
for (var s = o > 1 ? void 0 : o ? Ca(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
5239
5246
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
5240
|
-
return o && s &&
|
|
5247
|
+
return o && s && Ra(e, n, s), s;
|
|
5241
5248
|
}, hn = (t, e) => (n, o) => e(n, o, t);
|
|
5242
5249
|
let Ht = class extends xe {
|
|
5243
5250
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -5261,7 +5268,7 @@ let Ht = class extends xe {
|
|
|
5261
5268
|
pn,
|
|
5262
5269
|
$n,
|
|
5263
5270
|
Qt,
|
|
5264
|
-
|
|
5271
|
+
Hi
|
|
5265
5272
|
].forEach((r) => {
|
|
5266
5273
|
var i;
|
|
5267
5274
|
this._commandService.registerCommand(r), (i = this._dataSyncPrimaryController) == null || i.registerSyncingMutations(r);
|
|
@@ -5274,15 +5281,15 @@ let Ht = class extends xe {
|
|
|
5274
5281
|
En,
|
|
5275
5282
|
Lo,
|
|
5276
5283
|
zo,
|
|
5284
|
+
Qr,
|
|
5277
5285
|
Zr,
|
|
5278
|
-
Xr,
|
|
5279
5286
|
Rt,
|
|
5280
5287
|
On,
|
|
5281
5288
|
kn,
|
|
5289
|
+
Xr,
|
|
5282
5290
|
Yr,
|
|
5283
|
-
qr,
|
|
5284
5291
|
ft,
|
|
5285
|
-
|
|
5292
|
+
ei,
|
|
5286
5293
|
Tn,
|
|
5287
5294
|
yn,
|
|
5288
5295
|
Dn,
|
|
@@ -5290,83 +5297,83 @@ let Ht = class extends xe {
|
|
|
5290
5297
|
an,
|
|
5291
5298
|
Do,
|
|
5292
5299
|
os,
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
Mi,
|
|
5300
|
+
ri,
|
|
5301
|
+
bi,
|
|
5296
5302
|
_i,
|
|
5297
|
-
|
|
5298
|
-
ci,
|
|
5299
|
-
Ot,
|
|
5303
|
+
yi,
|
|
5300
5304
|
ai,
|
|
5305
|
+
li,
|
|
5306
|
+
Ot,
|
|
5301
5307
|
ui,
|
|
5308
|
+
ci,
|
|
5302
5309
|
To,
|
|
5303
5310
|
Mt,
|
|
5304
5311
|
_t,
|
|
5305
5312
|
Cn,
|
|
5313
|
+
Ci,
|
|
5306
5314
|
Ri,
|
|
5307
|
-
fi,
|
|
5308
5315
|
nt,
|
|
5309
|
-
|
|
5316
|
+
Pi,
|
|
5310
5317
|
rn,
|
|
5311
5318
|
Go,
|
|
5312
5319
|
Vo,
|
|
5313
5320
|
bt,
|
|
5314
5321
|
yt,
|
|
5315
|
-
|
|
5316
|
-
|
|
5322
|
+
mi,
|
|
5323
|
+
vi,
|
|
5317
5324
|
xn,
|
|
5318
5325
|
An,
|
|
5319
5326
|
Re,
|
|
5320
|
-
|
|
5327
|
+
ki,
|
|
5321
5328
|
$t,
|
|
5322
|
-
|
|
5329
|
+
Mi,
|
|
5330
|
+
Ei,
|
|
5323
5331
|
Ni,
|
|
5324
|
-
|
|
5325
|
-
bi,
|
|
5332
|
+
Ui,
|
|
5326
5333
|
Zo,
|
|
5327
5334
|
Vn,
|
|
5328
5335
|
cn,
|
|
5329
5336
|
ze,
|
|
5330
|
-
|
|
5337
|
+
Ti,
|
|
5331
5338
|
ot,
|
|
5332
5339
|
Fo,
|
|
5333
|
-
|
|
5340
|
+
Vi,
|
|
5334
5341
|
Lt,
|
|
5335
5342
|
jo,
|
|
5336
5343
|
Ge,
|
|
5337
5344
|
Ko,
|
|
5338
5345
|
Te,
|
|
5339
5346
|
ce,
|
|
5340
|
-
|
|
5341
|
-
Hi,
|
|
5347
|
+
Ki,
|
|
5342
5348
|
ji,
|
|
5343
5349
|
zi,
|
|
5344
|
-
|
|
5350
|
+
Gi,
|
|
5351
|
+
$i,
|
|
5345
5352
|
// permissions range protection
|
|
5346
|
-
|
|
5347
|
-
Yi,
|
|
5353
|
+
da,
|
|
5348
5354
|
Xi,
|
|
5349
5355
|
Zi,
|
|
5356
|
+
Qi,
|
|
5350
5357
|
Qo,
|
|
5351
5358
|
es,
|
|
5352
|
-
|
|
5359
|
+
ha,
|
|
5353
5360
|
ts,
|
|
5354
5361
|
Pt,
|
|
5355
5362
|
Ut,
|
|
5356
5363
|
fe
|
|
5357
|
-
].forEach((r) => this.disposeWithMe(this._commandService.registerCommand(r))), this._configService.setConfig(
|
|
5364
|
+
].forEach((r) => this.disposeWithMe(this._commandService.registerCommand(r))), this._configService.setConfig(ga, fa);
|
|
5358
5365
|
}
|
|
5359
5366
|
};
|
|
5360
|
-
Ht =
|
|
5367
|
+
Ht = pa([
|
|
5361
5368
|
_e(Ie.Starting, Ht),
|
|
5362
5369
|
hn(0, P),
|
|
5363
5370
|
hn(1, mo),
|
|
5364
5371
|
hn(2, Ws(Hs))
|
|
5365
5372
|
], Ht);
|
|
5366
|
-
var
|
|
5367
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
5373
|
+
var Sa = Object.defineProperty, va = Object.getOwnPropertyDescriptor, wa = (t, e, n, o) => {
|
|
5374
|
+
for (var s = o > 1 ? void 0 : o ? va(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
5368
5375
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
5369
|
-
return o && s &&
|
|
5376
|
+
return o && s && Sa(e, n, s), s;
|
|
5370
5377
|
}, Yn = (t, e) => (n, o) => e(n, o, t);
|
|
5371
5378
|
let jt = class extends xe {
|
|
5372
5379
|
constructor(t, e) {
|
|
@@ -5419,7 +5426,7 @@ let jt = class extends xe {
|
|
|
5419
5426
|
}), a.clone();
|
|
5420
5427
|
}
|
|
5421
5428
|
};
|
|
5422
|
-
jt =
|
|
5429
|
+
jt = wa([
|
|
5423
5430
|
_e(Ie.Ready, jt),
|
|
5424
5431
|
Yn(0, te(M)),
|
|
5425
5432
|
Yn(1, P)
|
|
@@ -5432,7 +5439,7 @@ const D = {
|
|
|
5432
5439
|
RemoveRowCommandId: Oo,
|
|
5433
5440
|
DeleteRangeMoveLeftCommandId: Io,
|
|
5434
5441
|
DeleteRangeMoveUpCommandId: Mo,
|
|
5435
|
-
InsertRangeMoveDownCommandId:
|
|
5442
|
+
InsertRangeMoveDownCommandId: qr,
|
|
5436
5443
|
InsertRangeMoveRightCommandId: bo,
|
|
5437
5444
|
MoveColsCommandId: Eo,
|
|
5438
5445
|
MoveRowsCommandId: No,
|
|
@@ -5501,7 +5508,7 @@ const xt = Number.MAX_SAFE_INTEGER, Ve = (t) => {
|
|
|
5501
5508
|
length: a.length || 0
|
|
5502
5509
|
}
|
|
5503
5510
|
];
|
|
5504
|
-
},
|
|
5511
|
+
}, Ia = (t, e) => {
|
|
5505
5512
|
const { fromRange: n, toRange: o } = t.params || {};
|
|
5506
5513
|
if (!n || !o)
|
|
5507
5514
|
return [e];
|
|
@@ -5509,7 +5516,7 @@ const xt = Number.MAX_SAFE_INTEGER, Ve = (t) => {
|
|
|
5509
5516
|
return q.foreach(e, (l, c) => {
|
|
5510
5517
|
a.setValue(l, c, 1);
|
|
5511
5518
|
}), a.moveRows(s, r, i), Ye(a, (l) => l === 1);
|
|
5512
|
-
},
|
|
5519
|
+
}, Ma = (t, e) => {
|
|
5513
5520
|
const { range: n, order: o } = t.params || {};
|
|
5514
5521
|
if (!n || !o)
|
|
5515
5522
|
return [e];
|
|
@@ -5547,7 +5554,7 @@ const xt = Number.MAX_SAFE_INTEGER, Ve = (t) => {
|
|
|
5547
5554
|
length: a.length || 0
|
|
5548
5555
|
}
|
|
5549
5556
|
];
|
|
5550
|
-
},
|
|
5557
|
+
}, _a = (t, e) => {
|
|
5551
5558
|
const { fromRange: n, toRange: o } = t.params || {};
|
|
5552
5559
|
if (!n || !o)
|
|
5553
5560
|
return [e];
|
|
@@ -5555,7 +5562,7 @@ const xt = Number.MAX_SAFE_INTEGER, Ve = (t) => {
|
|
|
5555
5562
|
return q.foreach(e, (u, l) => {
|
|
5556
5563
|
a.setValue(u, l, 1);
|
|
5557
5564
|
}), a.moveColumns(s, r, i), Ye(a, (u) => u === 1);
|
|
5558
|
-
},
|
|
5565
|
+
}, ya = (t, e) => {
|
|
5559
5566
|
var r, i;
|
|
5560
5567
|
const n = (r = t.params) == null ? void 0 : r.toRange, o = (i = t.params) == null ? void 0 : i.fromRange;
|
|
5561
5568
|
if (!n || !o)
|
|
@@ -5576,7 +5583,7 @@ const xt = Number.MAX_SAFE_INTEGER, Ve = (t) => {
|
|
|
5576
5583
|
];
|
|
5577
5584
|
}
|
|
5578
5585
|
return s;
|
|
5579
|
-
},
|
|
5586
|
+
}, ba = (t, e) => {
|
|
5580
5587
|
var d, h;
|
|
5581
5588
|
const n = (d = t.params) == null ? void 0 : d.toRange, o = (h = t.params) == null ? void 0 : h.fromRange;
|
|
5582
5589
|
if (!n || !o)
|
|
@@ -5665,7 +5672,7 @@ const xt = Number.MAX_SAFE_INTEGER, Ve = (t) => {
|
|
|
5665
5672
|
});
|
|
5666
5673
|
}
|
|
5667
5674
|
return o;
|
|
5668
|
-
},
|
|
5675
|
+
}, Ua = (t, e) => {
|
|
5669
5676
|
const { range: n, order: o } = t.params || {};
|
|
5670
5677
|
if (!n || !o)
|
|
5671
5678
|
return [];
|
|
@@ -5702,7 +5709,7 @@ const xt = Number.MAX_SAFE_INTEGER, Ve = (t) => {
|
|
|
5702
5709
|
}
|
|
5703
5710
|
return { step: 0, length: 0 };
|
|
5704
5711
|
};
|
|
5705
|
-
function
|
|
5712
|
+
function Pa(t, e, n) {
|
|
5706
5713
|
const o = [];
|
|
5707
5714
|
if (N.contains(e, n) && o.push({
|
|
5708
5715
|
type: j.Delete
|
|
@@ -5742,7 +5749,7 @@ const cs = (t, e) => {
|
|
|
5742
5749
|
step: r,
|
|
5743
5750
|
length: i
|
|
5744
5751
|
}), o;
|
|
5745
|
-
},
|
|
5752
|
+
}, Na = (t, e) => {
|
|
5746
5753
|
var a;
|
|
5747
5754
|
const n = (a = t.params) == null ? void 0 : a.range;
|
|
5748
5755
|
if (!n)
|
|
@@ -5753,7 +5760,7 @@ const cs = (t, e) => {
|
|
|
5753
5760
|
step: r,
|
|
5754
5761
|
length: i
|
|
5755
5762
|
}), o;
|
|
5756
|
-
},
|
|
5763
|
+
}, Ea = (t, e) => {
|
|
5757
5764
|
var u;
|
|
5758
5765
|
const n = (u = t.params) == null ? void 0 : u.range;
|
|
5759
5766
|
if (!n)
|
|
@@ -5773,7 +5780,7 @@ const cs = (t, e) => {
|
|
|
5773
5780
|
}), i && q.foreach(i, (l, c) => {
|
|
5774
5781
|
a.setValue(l + o, c, 1);
|
|
5775
5782
|
}), Ye(a, (l) => l === 1);
|
|
5776
|
-
},
|
|
5783
|
+
}, Oa = (t, e) => {
|
|
5777
5784
|
var a;
|
|
5778
5785
|
const n = (a = t.params) == null ? void 0 : a.range;
|
|
5779
5786
|
if (!n)
|
|
@@ -5784,7 +5791,7 @@ const cs = (t, e) => {
|
|
|
5784
5791
|
step: r,
|
|
5785
5792
|
length: i
|
|
5786
5793
|
}), o;
|
|
5787
|
-
},
|
|
5794
|
+
}, ka = (t, e) => {
|
|
5788
5795
|
var u;
|
|
5789
5796
|
const n = (u = t.params) == null ? void 0 : u.range;
|
|
5790
5797
|
if (!n)
|
|
@@ -5804,7 +5811,7 @@ const cs = (t, e) => {
|
|
|
5804
5811
|
}), i && q.foreach(i, (l, c) => {
|
|
5805
5812
|
a.setValue(l, c + o, 1);
|
|
5806
5813
|
}), Ye(a, (l) => l === 1);
|
|
5807
|
-
},
|
|
5814
|
+
}, Da = (t, e) => {
|
|
5808
5815
|
var r;
|
|
5809
5816
|
const n = (r = t.params) == null ? void 0 : r.range;
|
|
5810
5817
|
if (!n)
|
|
@@ -5821,7 +5828,7 @@ const cs = (t, e) => {
|
|
|
5821
5828
|
});
|
|
5822
5829
|
}
|
|
5823
5830
|
return o;
|
|
5824
|
-
},
|
|
5831
|
+
}, Ta = (t, e) => {
|
|
5825
5832
|
var l;
|
|
5826
5833
|
const n = (l = t.params) == null ? void 0 : l.range;
|
|
5827
5834
|
if (!n)
|
|
@@ -5844,7 +5851,7 @@ const cs = (t, e) => {
|
|
|
5844
5851
|
u.setValue(d, h, 1);
|
|
5845
5852
|
});
|
|
5846
5853
|
}), Ye(u, (c) => c === 1);
|
|
5847
|
-
},
|
|
5854
|
+
}, xa = (t, e) => {
|
|
5848
5855
|
var r;
|
|
5849
5856
|
const n = (r = t.params) == null ? void 0 : r.range;
|
|
5850
5857
|
if (!n)
|
|
@@ -5861,7 +5868,7 @@ const cs = (t, e) => {
|
|
|
5861
5868
|
});
|
|
5862
5869
|
}
|
|
5863
5870
|
return o;
|
|
5864
|
-
},
|
|
5871
|
+
}, Aa = (t, e) => {
|
|
5865
5872
|
var l;
|
|
5866
5873
|
const n = (l = t.params) == null ? void 0 : l.range;
|
|
5867
5874
|
if (!n)
|
|
@@ -5909,15 +5916,15 @@ const cs = (t, e) => {
|
|
|
5909
5916
|
}
|
|
5910
5917
|
}
|
|
5911
5918
|
}), n && (n.endColumn < n.startColumn || n.endRow < n.startRow) ? null : n;
|
|
5912
|
-
},
|
|
5919
|
+
}, Va = (t, e) => {
|
|
5913
5920
|
let n = [];
|
|
5914
5921
|
switch (e.id) {
|
|
5915
5922
|
case D.DeleteRangeMoveLeftCommandId: {
|
|
5916
|
-
n =
|
|
5923
|
+
n = Da(e, t);
|
|
5917
5924
|
break;
|
|
5918
5925
|
}
|
|
5919
5926
|
case D.DeleteRangeMoveUpCommandId: {
|
|
5920
|
-
n =
|
|
5927
|
+
n = xa(e, t);
|
|
5921
5928
|
break;
|
|
5922
5929
|
}
|
|
5923
5930
|
case D.InsertColCommandId: {
|
|
@@ -5925,11 +5932,11 @@ const cs = (t, e) => {
|
|
|
5925
5932
|
break;
|
|
5926
5933
|
}
|
|
5927
5934
|
case D.InsertRangeMoveDownCommandId: {
|
|
5928
|
-
n =
|
|
5935
|
+
n = Na(e, t);
|
|
5929
5936
|
break;
|
|
5930
5937
|
}
|
|
5931
5938
|
case D.InsertRangeMoveRightCommandId: {
|
|
5932
|
-
n =
|
|
5939
|
+
n = Oa(e, t);
|
|
5933
5940
|
break;
|
|
5934
5941
|
}
|
|
5935
5942
|
case D.InsertRowCommandId: {
|
|
@@ -5941,7 +5948,7 @@ const cs = (t, e) => {
|
|
|
5941
5948
|
break;
|
|
5942
5949
|
}
|
|
5943
5950
|
case D.MoveRangeCommandId: {
|
|
5944
|
-
n =
|
|
5951
|
+
n = ya(e, t);
|
|
5945
5952
|
break;
|
|
5946
5953
|
}
|
|
5947
5954
|
case D.MoveRowsCommandId: {
|
|
@@ -5957,22 +5964,22 @@ const cs = (t, e) => {
|
|
|
5957
5964
|
break;
|
|
5958
5965
|
}
|
|
5959
5966
|
case D.ReorderRangeCommandId: {
|
|
5960
|
-
n =
|
|
5967
|
+
n = Ua(e, t);
|
|
5961
5968
|
break;
|
|
5962
5969
|
}
|
|
5963
5970
|
}
|
|
5964
5971
|
return ht(n, t);
|
|
5965
|
-
},
|
|
5972
|
+
}, rc = (t, e, n) => $a(e, n).some((s) => N.intersects(s, t)) ? Va(t, e) : t, ic = (t, e) => {
|
|
5966
5973
|
let n = [];
|
|
5967
5974
|
switch (e.id) {
|
|
5968
5975
|
case D.DeleteRangeMoveLeftCommandId:
|
|
5969
|
-
return
|
|
5976
|
+
return Ta(e, t);
|
|
5970
5977
|
case D.DeleteRangeMoveUpCommandId:
|
|
5971
|
-
return
|
|
5978
|
+
return Aa(e, t);
|
|
5972
5979
|
case D.InsertRangeMoveDownCommandId:
|
|
5973
|
-
return
|
|
5980
|
+
return Ea(e, t);
|
|
5974
5981
|
case D.InsertRangeMoveRightCommandId:
|
|
5975
|
-
return
|
|
5982
|
+
return ka(e, t);
|
|
5976
5983
|
case D.InsertColCommandId: {
|
|
5977
5984
|
n = ls(e, t);
|
|
5978
5985
|
break;
|
|
@@ -5982,13 +5989,13 @@ const cs = (t, e) => {
|
|
|
5982
5989
|
break;
|
|
5983
5990
|
}
|
|
5984
5991
|
case D.MoveColsCommandId:
|
|
5985
|
-
return
|
|
5992
|
+
return _a(e, t);
|
|
5986
5993
|
case D.MoveRangeCommandId:
|
|
5987
|
-
return
|
|
5994
|
+
return ba(e, t);
|
|
5988
5995
|
case D.MoveRowsCommandId:
|
|
5989
|
-
return wa(e, t);
|
|
5990
|
-
case D.ReorderRangeCommandId:
|
|
5991
5996
|
return Ia(e, t);
|
|
5997
|
+
case D.ReorderRangeCommandId:
|
|
5998
|
+
return Ma(e, t);
|
|
5992
5999
|
case D.RemoveColCommandId: {
|
|
5993
6000
|
n = as(e, t);
|
|
5994
6001
|
break;
|
|
@@ -6000,7 +6007,7 @@ const cs = (t, e) => {
|
|
|
6000
6007
|
}
|
|
6001
6008
|
return ht(n, t);
|
|
6002
6009
|
};
|
|
6003
|
-
function
|
|
6010
|
+
function Wa(t, e) {
|
|
6004
6011
|
const { id: n, params: o } = e;
|
|
6005
6012
|
let s = {
|
|
6006
6013
|
length: 0,
|
|
@@ -6038,7 +6045,7 @@ function Va(t, e) {
|
|
|
6038
6045
|
s = dt(o.range, t), s.type = j.HorizontalMove;
|
|
6039
6046
|
break;
|
|
6040
6047
|
case ct.id:
|
|
6041
|
-
s =
|
|
6048
|
+
s = Pa(
|
|
6042
6049
|
new X(o.from).getRange(),
|
|
6043
6050
|
new X(o.to).getRange(),
|
|
6044
6051
|
t
|
|
@@ -6047,7 +6054,7 @@ function Va(t, e) {
|
|
|
6047
6054
|
}
|
|
6048
6055
|
return s ? Array.isArray(s) ? ht(s, t) : ht([s], t) : t;
|
|
6049
6056
|
}
|
|
6050
|
-
function
|
|
6057
|
+
function $a(t, e) {
|
|
6051
6058
|
var o, s, r, i;
|
|
6052
6059
|
const { selectionManagerService: n } = e;
|
|
6053
6060
|
switch (t.id) {
|
|
@@ -6124,7 +6131,7 @@ function Wa(t, e) {
|
|
|
6124
6131
|
}
|
|
6125
6132
|
}
|
|
6126
6133
|
}
|
|
6127
|
-
function
|
|
6134
|
+
function La(t) {
|
|
6128
6135
|
switch (t.id) {
|
|
6129
6136
|
case qe.id: {
|
|
6130
6137
|
const e = t.params;
|
|
@@ -6178,13 +6185,13 @@ function $a(t) {
|
|
|
6178
6185
|
return [t.params.range];
|
|
6179
6186
|
}
|
|
6180
6187
|
}
|
|
6181
|
-
var
|
|
6182
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6188
|
+
var Ba = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, Ha = (t, e, n, o) => {
|
|
6189
|
+
for (var s = o > 1 ? void 0 : o ? Fa(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
6183
6190
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
6184
|
-
return o && s &&
|
|
6191
|
+
return o && s && Ba(e, n, s), s;
|
|
6185
6192
|
}, At = (t, e) => (n, o) => e(n, o, t);
|
|
6186
|
-
const
|
|
6187
|
-
class
|
|
6193
|
+
const ja = nn("MERGE_REDO"), za = nn("MERGE_UNDO"), Xn = Math.floor(Number.MAX_SAFE_INTEGER / 10);
|
|
6194
|
+
class Ga extends xe {
|
|
6188
6195
|
constructor(e, n, o, s, r = !1) {
|
|
6189
6196
|
super(), this._unitId = e, this._subUnitId = n, this._range = o, this._callback = s, this._skipIntersects = r;
|
|
6190
6197
|
}
|
|
@@ -6192,11 +6199,11 @@ class za extends xe {
|
|
|
6192
6199
|
if (e.params.unitId !== this._unitId || e.params.subUnitId !== this._subUnitId || !this._range)
|
|
6193
6200
|
return;
|
|
6194
6201
|
if (this._skipIntersects) {
|
|
6195
|
-
const s =
|
|
6202
|
+
const s = La(e);
|
|
6196
6203
|
if (s != null && s.some((r) => N.intersects(r, this._range)))
|
|
6197
6204
|
return !1;
|
|
6198
6205
|
}
|
|
6199
|
-
const n =
|
|
6206
|
+
const n = Wa(this._range, e);
|
|
6200
6207
|
if (n && N.equals(n, this._range))
|
|
6201
6208
|
return !1;
|
|
6202
6209
|
const o = this._range;
|
|
@@ -6206,10 +6213,10 @@ class za extends xe {
|
|
|
6206
6213
|
let at = class extends xe {
|
|
6207
6214
|
constructor(e, n, o, s) {
|
|
6208
6215
|
super();
|
|
6209
|
-
R(this, "interceptor", new Ps({ MERGE_REDO:
|
|
6216
|
+
R(this, "interceptor", new Ps({ MERGE_REDO: ja, MERGE_UNDO: za }));
|
|
6210
6217
|
R(this, "_watchRanges", /* @__PURE__ */ new Set());
|
|
6211
6218
|
R(this, "_refRangeManagerMap", /* @__PURE__ */ new Map());
|
|
6212
|
-
R(this, "_serializer",
|
|
6219
|
+
R(this, "_serializer", Ka());
|
|
6213
6220
|
// eslint-disable-next-line max-lines-per-function
|
|
6214
6221
|
R(this, "_onRefRangeChange", () => {
|
|
6215
6222
|
this._sheetInterceptorService.interceptCommand({
|
|
@@ -6402,7 +6409,7 @@ let at = class extends xe {
|
|
|
6402
6409
|
for (const d of this._watchRanges)
|
|
6403
6410
|
d.onMutation(c);
|
|
6404
6411
|
}));
|
|
6405
|
-
const a = new
|
|
6412
|
+
const a = new Ga(e, n, o, s, r);
|
|
6406
6413
|
this._watchRanges.add(a);
|
|
6407
6414
|
const u = $e(() => {
|
|
6408
6415
|
this._watchRanges.delete(a), this._watchRanges.size === 0 && (i == null || i.dispose(), i = null);
|
|
@@ -6412,7 +6419,7 @@ let at = class extends xe {
|
|
|
6412
6419
|
});
|
|
6413
6420
|
}
|
|
6414
6421
|
};
|
|
6415
|
-
at =
|
|
6422
|
+
at = Ha([
|
|
6416
6423
|
_e(Ie.Ready, at),
|
|
6417
6424
|
At(0, P),
|
|
6418
6425
|
At(1, te(H)),
|
|
@@ -6432,7 +6439,7 @@ function eo(t) {
|
|
|
6432
6439
|
function to(t, e) {
|
|
6433
6440
|
return `${t}_${e}`;
|
|
6434
6441
|
}
|
|
6435
|
-
function
|
|
6442
|
+
function Ka() {
|
|
6436
6443
|
const t = ["startRow", "startColumn", "endRow", "endColumn", "rangeType"], e = "_";
|
|
6437
6444
|
return {
|
|
6438
6445
|
deserialize: (n) => {
|
|
@@ -6454,13 +6461,13 @@ function Ga() {
|
|
|
6454
6461
|
}, "")
|
|
6455
6462
|
};
|
|
6456
6463
|
}
|
|
6457
|
-
var
|
|
6458
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6464
|
+
var Ja = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Ya = (t, e, n, o) => {
|
|
6465
|
+
for (var s = o > 1 ? void 0 : o ? qa(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
6459
6466
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
6460
|
-
return o && s &&
|
|
6467
|
+
return o && s && Ja(e, n, s), s;
|
|
6461
6468
|
}, st = (t, e) => (n, o) => e(n, o, t);
|
|
6462
|
-
const
|
|
6463
|
-
function
|
|
6469
|
+
const Xa = [Fe.id, Be.id, We.id, He.id], Za = [Je.id, qe.id];
|
|
6470
|
+
function Qa(t, e) {
|
|
6464
6471
|
let n = t;
|
|
6465
6472
|
if (e !== void 0) {
|
|
6466
6473
|
const o = [];
|
|
@@ -6689,7 +6696,7 @@ let zt = class extends xe {
|
|
|
6689
6696
|
const r = De(s, o);
|
|
6690
6697
|
if (!r)
|
|
6691
6698
|
return this._handleNull();
|
|
6692
|
-
const i = r.getMergeData(), a = i.filter((m) => N.intersects(m, e.fromRange)), u = i.filter((m) => N.intersects(m, e.toRange)), l = a.map((m) => N.getRelativeRange(m, e.fromRange)).map((m) => N.getPositionRange(m, e.toRange)), c =
|
|
6699
|
+
const i = r.getMergeData(), a = i.filter((m) => N.intersects(m, e.fromRange)), u = i.filter((m) => N.intersects(m, e.toRange)), l = a.map((m) => N.getRelativeRange(m, e.fromRange)).map((m) => N.getPositionRange(m, e.toRange)), c = Qa(l).filter(
|
|
6693
6700
|
(m) => !i.some((f) => N.equals(m, f))
|
|
6694
6701
|
), d = [
|
|
6695
6702
|
{
|
|
@@ -7139,7 +7146,7 @@ let zt = class extends xe {
|
|
|
7139
7146
|
}
|
|
7140
7147
|
_commandExecutedListener() {
|
|
7141
7148
|
this.disposeWithMe(this._commandService.onCommandExecuted((e) => {
|
|
7142
|
-
if (
|
|
7149
|
+
if (Za.includes(e.id)) {
|
|
7143
7150
|
if (!e.params) return;
|
|
7144
7151
|
const n = this._univerInstanceService.getUniverSheetInstance(e.params.unitId);
|
|
7145
7152
|
if (!n) return;
|
|
@@ -7155,7 +7162,7 @@ let zt = class extends xe {
|
|
|
7155
7162
|
this.disposableCollection.add(this._refRangeService.registerRefRange(g, f, h, m));
|
|
7156
7163
|
});
|
|
7157
7164
|
}
|
|
7158
|
-
if (
|
|
7165
|
+
if (Xa.includes(e.id)) {
|
|
7159
7166
|
const n = this._univerInstanceService.getUniverSheetInstance(e.params.unitId);
|
|
7160
7167
|
if (!n) return;
|
|
7161
7168
|
const o = n.getSheetBySheetId(e.params.subUnitId);
|
|
@@ -7175,7 +7182,7 @@ let zt = class extends xe {
|
|
|
7175
7182
|
}));
|
|
7176
7183
|
}
|
|
7177
7184
|
};
|
|
7178
|
-
zt =
|
|
7185
|
+
zt = Ya([
|
|
7179
7186
|
_e(Ie.Steady, zt),
|
|
7180
7187
|
st(0, te(P)),
|
|
7181
7188
|
st(1, te(at)),
|
|
@@ -7190,10 +7197,10 @@ function ke(t, e) {
|
|
|
7190
7197
|
function De(t, e) {
|
|
7191
7198
|
return e ? t.getSheetBySheetId(e) : t.getActiveSheet();
|
|
7192
7199
|
}
|
|
7193
|
-
var
|
|
7194
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7200
|
+
var eu = Object.defineProperty, tu = Object.getOwnPropertyDescriptor, nu = (t, e, n, o) => {
|
|
7201
|
+
for (var s = o > 1 ? void 0 : o ? tu(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
7195
7202
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
7196
|
-
return o && s &&
|
|
7203
|
+
return o && s && eu(e, n, s), s;
|
|
7197
7204
|
}, mn = (t, e) => (n, o) => e(n, o, t);
|
|
7198
7205
|
let vn = class extends xe {
|
|
7199
7206
|
constructor(t, e, n) {
|
|
@@ -7258,28 +7265,28 @@ let vn = class extends xe {
|
|
|
7258
7265
|
});
|
|
7259
7266
|
}
|
|
7260
7267
|
};
|
|
7261
|
-
vn =
|
|
7268
|
+
vn = nu([
|
|
7262
7269
|
mn(0, on),
|
|
7263
7270
|
mn(1, M),
|
|
7264
7271
|
mn(2, Ns)
|
|
7265
7272
|
], vn);
|
|
7266
7273
|
const no = () => [
|
|
7274
|
+
Dr,
|
|
7275
|
+
xr,
|
|
7267
7276
|
kr,
|
|
7268
|
-
|
|
7269
|
-
|
|
7277
|
+
Fr,
|
|
7278
|
+
jr,
|
|
7279
|
+
Ar,
|
|
7280
|
+
Gr,
|
|
7270
7281
|
Br,
|
|
7271
|
-
|
|
7272
|
-
xr,
|
|
7273
|
-
zr,
|
|
7282
|
+
Wr,
|
|
7274
7283
|
Lr,
|
|
7275
|
-
Vr,
|
|
7276
7284
|
$r,
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
], ic = [
|
|
7285
|
+
Tr,
|
|
7286
|
+
Hr,
|
|
7287
|
+
Vr,
|
|
7288
|
+
zr
|
|
7289
|
+
], ac = [
|
|
7283
7290
|
_.Edit,
|
|
7284
7291
|
_.Print,
|
|
7285
7292
|
_.Comment,
|
|
@@ -7296,10 +7303,10 @@ const no = () => [
|
|
|
7296
7303
|
_.MoveSheet,
|
|
7297
7304
|
_.CopySheet
|
|
7298
7305
|
];
|
|
7299
|
-
var
|
|
7300
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7306
|
+
var ou = Object.defineProperty, su = Object.getOwnPropertyDescriptor, ru = (t, e, n, o) => {
|
|
7307
|
+
for (var s = o > 1 ? void 0 : o ? su(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
7301
7308
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
7302
|
-
return o && s &&
|
|
7309
|
+
return o && s && ou(e, n, s), s;
|
|
7303
7310
|
}, gn = (t, e) => (n, o) => e(n, o, t);
|
|
7304
7311
|
let Gt = class extends xe {
|
|
7305
7312
|
constructor(t, e, n) {
|
|
@@ -7337,18 +7344,18 @@ let Gt = class extends xe {
|
|
|
7337
7344
|
}));
|
|
7338
7345
|
}
|
|
7339
7346
|
};
|
|
7340
|
-
Gt =
|
|
7347
|
+
Gt = ru([
|
|
7341
7348
|
_e(Ie.Starting, Gt),
|
|
7342
7349
|
gn(0, te(Nt)),
|
|
7343
7350
|
gn(1, te(M)),
|
|
7344
7351
|
gn(2, te(pe))
|
|
7345
7352
|
], Gt);
|
|
7346
|
-
var
|
|
7347
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7353
|
+
var iu = Object.defineProperty, au = Object.getOwnPropertyDescriptor, uu = (t, e, n, o) => {
|
|
7354
|
+
for (var s = o > 1 ? void 0 : o ? au(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
7348
7355
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
7349
|
-
return o && s &&
|
|
7356
|
+
return o && s && iu(e, n, s), s;
|
|
7350
7357
|
}, oo = (t, e) => (n, o) => e(n, o, t);
|
|
7351
|
-
const
|
|
7358
|
+
const cu = "SHEET_DEFINED_NAME_PLUGIN";
|
|
7352
7359
|
let Kt = class extends xe {
|
|
7353
7360
|
constructor(t, e) {
|
|
7354
7361
|
super(), this._definedNamesService = t, this._resourceManagerService = e, this._initialize();
|
|
@@ -7371,7 +7378,7 @@ let Kt = class extends xe {
|
|
|
7371
7378
|
};
|
|
7372
7379
|
this.disposeWithMe(
|
|
7373
7380
|
this._resourceManagerService.registerPluginResource({
|
|
7374
|
-
pluginName:
|
|
7381
|
+
pluginName: cu,
|
|
7375
7382
|
businesses: [ee.UNIVER_SHEET],
|
|
7376
7383
|
toJson: (n) => t(n),
|
|
7377
7384
|
parseJson: (n) => e(n),
|
|
@@ -7385,19 +7392,19 @@ let Kt = class extends xe {
|
|
|
7385
7392
|
);
|
|
7386
7393
|
}
|
|
7387
7394
|
};
|
|
7388
|
-
Kt =
|
|
7395
|
+
Kt = uu([
|
|
7389
7396
|
_e(Ie.Ready, Kt),
|
|
7390
7397
|
oo(0, Bs),
|
|
7391
7398
|
oo(1, on)
|
|
7392
7399
|
], Kt);
|
|
7393
|
-
const tt = () => [Pn, Un],
|
|
7400
|
+
const tt = () => [Pn, Un], uc = (t = "unitId", e = "subUnitId", n = "permissionId") => tt().reduce((o, s) => {
|
|
7394
7401
|
const r = new s(t, e, n);
|
|
7395
7402
|
return o[r.subType] = r.value, o;
|
|
7396
7403
|
}, {});
|
|
7397
|
-
var
|
|
7398
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7404
|
+
var lu = Object.defineProperty, du = Object.getOwnPropertyDescriptor, hu = (t, e, n, o) => {
|
|
7405
|
+
for (var s = o > 1 ? void 0 : o ? du(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
7399
7406
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
7400
|
-
return o && s &&
|
|
7407
|
+
return o && s && lu(e, n, s), s;
|
|
7401
7408
|
}, so = (t, e) => (n, o) => e(n, o, t);
|
|
7402
7409
|
let wt = class {
|
|
7403
7410
|
constructor(t, e) {
|
|
@@ -7459,17 +7466,17 @@ let wt = class {
|
|
|
7459
7466
|
this._cache.clear();
|
|
7460
7467
|
}
|
|
7461
7468
|
};
|
|
7462
|
-
wt =
|
|
7469
|
+
wt = hu([
|
|
7463
7470
|
_e(Ie.Ready, wt),
|
|
7464
7471
|
so(0, te(pe)),
|
|
7465
7472
|
so(1, te(Nt))
|
|
7466
7473
|
], wt);
|
|
7467
|
-
var
|
|
7468
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7474
|
+
var mu = Object.defineProperty, gu = Object.getOwnPropertyDescriptor, fu = (t, e, n, o) => {
|
|
7475
|
+
for (var s = o > 1 ? void 0 : o ? gu(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
7469
7476
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
7470
|
-
return o && s &&
|
|
7477
|
+
return o && s && mu(e, n, s), s;
|
|
7471
7478
|
}, vt = (t, e) => (n, o) => e(n, o, t);
|
|
7472
|
-
const
|
|
7479
|
+
const Ru = [Fe.id, Be.id, We.id, He.id], Cu = [Je.id, qe.id];
|
|
7473
7480
|
let Jt = class extends xe {
|
|
7474
7481
|
constructor(e, n, o, s, r) {
|
|
7475
7482
|
super();
|
|
@@ -7623,7 +7630,7 @@ let Jt = class extends xe {
|
|
|
7623
7630
|
}
|
|
7624
7631
|
_correctPermissionRange() {
|
|
7625
7632
|
this.disposeWithMe(this._commandService.onCommandExecuted((e) => {
|
|
7626
|
-
if (
|
|
7633
|
+
if (Cu.includes(e.id)) {
|
|
7627
7634
|
if (!e.params) return;
|
|
7628
7635
|
const n = this._univerInstanceService.getCurrentUnitForType(ee.UNIVER_SHEET);
|
|
7629
7636
|
if (!n) return;
|
|
@@ -7641,7 +7648,7 @@ let Jt = class extends xe {
|
|
|
7641
7648
|
this.disposableCollection.add(this._refRangeService.registerRefRange(g, m, d, h));
|
|
7642
7649
|
}), this._selectionProtectionRenderModel.clear();
|
|
7643
7650
|
}
|
|
7644
|
-
if (
|
|
7651
|
+
if (Ru.includes(e.id)) {
|
|
7645
7652
|
const n = this._univerInstanceService.getUniverSheetInstance(e.params.unitId);
|
|
7646
7653
|
if (!n) return;
|
|
7647
7654
|
const o = n.getSheetBySheetId(e.params.subUnitId);
|
|
@@ -7666,7 +7673,7 @@ let Jt = class extends xe {
|
|
|
7666
7673
|
return e.startRow <= e.endRow && e.startColumn <= e.endColumn;
|
|
7667
7674
|
}
|
|
7668
7675
|
};
|
|
7669
|
-
Jt =
|
|
7676
|
+
Jt = fu([
|
|
7670
7677
|
_e(Ie.Starting, Jt),
|
|
7671
7678
|
vt(0, te(pe)),
|
|
7672
7679
|
vt(1, te(M)),
|
|
@@ -7674,12 +7681,12 @@ Jt = gu([
|
|
|
7674
7681
|
vt(3, te(at)),
|
|
7675
7682
|
vt(4, te(wt))
|
|
7676
7683
|
], Jt);
|
|
7677
|
-
var
|
|
7678
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7684
|
+
var pu = Object.defineProperty, Su = Object.getOwnPropertyDescriptor, vu = (t, e, n, o) => {
|
|
7685
|
+
for (var s = o > 1 ? void 0 : o ? Su(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
7679
7686
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
7680
|
-
return o && s &&
|
|
7687
|
+
return o && s && pu(e, n, s), s;
|
|
7681
7688
|
}, fn = (t, e) => (n, o) => e(n, o, t);
|
|
7682
|
-
const
|
|
7689
|
+
const wu = "SHEET_RANGE_PROTECTION_PLUGIN";
|
|
7683
7690
|
let qt = class extends xe {
|
|
7684
7691
|
constructor(t, e, n) {
|
|
7685
7692
|
super(), this._selectionProtectionRuleModel = t, this._permissionService = e, this._resourceManagerService = n, this._initSnapshot(), this._initRuleChange();
|
|
@@ -7732,7 +7739,7 @@ let qt = class extends xe {
|
|
|
7732
7739
|
this._resourceManagerService.registerPluginResource({
|
|
7733
7740
|
toJson: t,
|
|
7734
7741
|
parseJson: e,
|
|
7735
|
-
pluginName:
|
|
7742
|
+
pluginName: wu,
|
|
7736
7743
|
businesses: [Zt.UNIVER_SHEET],
|
|
7737
7744
|
onLoad: (n, o) => {
|
|
7738
7745
|
const s = this._selectionProtectionRuleModel.toObject();
|
|
@@ -7762,18 +7769,18 @@ let qt = class extends xe {
|
|
|
7762
7769
|
);
|
|
7763
7770
|
}
|
|
7764
7771
|
};
|
|
7765
|
-
qt =
|
|
7772
|
+
qt = vu([
|
|
7766
7773
|
_e(Ie.Starting, qt),
|
|
7767
7774
|
fn(0, te(pe)),
|
|
7768
7775
|
fn(1, te(Nt)),
|
|
7769
7776
|
fn(2, te(on))
|
|
7770
7777
|
], qt);
|
|
7771
|
-
var ds = Object.defineProperty,
|
|
7772
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7778
|
+
var ds = Object.defineProperty, Iu = Object.getOwnPropertyDescriptor, Mu = (t, e, n) => e in t ? ds(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, _u = (t, e, n, o) => {
|
|
7779
|
+
for (var s = o > 1 ? void 0 : o ? Iu(e, n) : e, r = t.length - 1, i; r >= 0; r--)
|
|
7773
7780
|
(i = t[r]) && (s = (o ? i(e, n, s) : i(s)) || s);
|
|
7774
7781
|
return o && s && ds(e, n, s), s;
|
|
7775
|
-
}, Vt = (t, e) => (n, o) => e(n, o, t), hs = (t, e, n) =>
|
|
7776
|
-
const
|
|
7782
|
+
}, Vt = (t, e) => (n, o) => e(n, o, t), hs = (t, e, n) => Mu(t, typeof e != "symbol" ? e + "" : e, n);
|
|
7783
|
+
const yu = "SHEET_PLUGIN";
|
|
7777
7784
|
let tn = class extends ks {
|
|
7778
7785
|
constructor(t, e, n, o, s) {
|
|
7779
7786
|
super(), this._config = t, this._commandService = e, this._configService = n, this._localeService = o, this._injector = s, this._initConfig(), this._initDependencies(s);
|
|
@@ -7815,16 +7822,16 @@ let tn = class extends ks {
|
|
|
7815
7822
|
});
|
|
7816
7823
|
}
|
|
7817
7824
|
};
|
|
7818
|
-
hs(tn, "pluginName",
|
|
7825
|
+
hs(tn, "pluginName", yu);
|
|
7819
7826
|
hs(tn, "type", ee.UNIVER_SHEET);
|
|
7820
|
-
tn =
|
|
7827
|
+
tn = _u([
|
|
7821
7828
|
Os(Fs),
|
|
7822
7829
|
Vt(1, P),
|
|
7823
7830
|
Vt(2, mo),
|
|
7824
7831
|
Vt(3, te(Le)),
|
|
7825
7832
|
Vt(4, te(wn))
|
|
7826
7833
|
], tn);
|
|
7827
|
-
const
|
|
7834
|
+
const cc = [
|
|
7828
7835
|
Ge.id,
|
|
7829
7836
|
Te.id,
|
|
7830
7837
|
jo.id,
|
|
@@ -7840,14 +7847,14 @@ const uc = [
|
|
|
7840
7847
|
Be.id,
|
|
7841
7848
|
We.id,
|
|
7842
7849
|
He.id
|
|
7843
|
-
],
|
|
7850
|
+
], lc = [
|
|
7844
7851
|
re.id,
|
|
7845
7852
|
ct.id,
|
|
7846
7853
|
ie.id,
|
|
7847
7854
|
se.id,
|
|
7848
7855
|
Qt.id
|
|
7849
|
-
],
|
|
7850
|
-
function
|
|
7856
|
+
], dc = 1.5, hc = "rgba(255, 255, 255, 0.01)";
|
|
7857
|
+
function mc(t) {
|
|
7851
7858
|
const e = t.getCurrentTheme(), n = new Ts(e.primaryColor).setAlpha(0.07).toRgbString();
|
|
7852
7859
|
return {
|
|
7853
7860
|
strokeWidth: 1,
|
|
@@ -7873,7 +7880,7 @@ function hc(t) {
|
|
|
7873
7880
|
columnHeaderStrokeWidth: 1
|
|
7874
7881
|
};
|
|
7875
7882
|
}
|
|
7876
|
-
function
|
|
7883
|
+
function gc(t) {
|
|
7877
7884
|
const { rangeWithCoord: e, primaryWithCoord: n, style: o } = t, s = {
|
|
7878
7885
|
range: {
|
|
7879
7886
|
startRow: e.startRow,
|
|
@@ -7885,9 +7892,9 @@ function mc(t) {
|
|
|
7885
7892
|
primary: null,
|
|
7886
7893
|
style: o
|
|
7887
7894
|
};
|
|
7888
|
-
return n != null && (s.primary =
|
|
7895
|
+
return n != null && (s.primary = bu(n)), s;
|
|
7889
7896
|
}
|
|
7890
|
-
function
|
|
7897
|
+
function bu(t) {
|
|
7891
7898
|
const { actualRow: e, actualColumn: n, isMerged: o, isMergedMainCell: s } = t, { startRow: r, startColumn: i, endRow: a, endColumn: u } = t.mergeInfo;
|
|
7892
7899
|
return {
|
|
7893
7900
|
actualRow: e,
|
|
@@ -7900,7 +7907,7 @@ function yu(t) {
|
|
|
7900
7907
|
endColumn: u
|
|
7901
7908
|
};
|
|
7902
7909
|
}
|
|
7903
|
-
function
|
|
7910
|
+
function fc(t, e, n) {
|
|
7904
7911
|
const o = xs(t, e, n), s = As(o);
|
|
7905
7912
|
if (s)
|
|
7906
7913
|
return {
|
|
@@ -7909,7 +7916,7 @@ function gc(t, e, n) {
|
|
|
7909
7916
|
style: null
|
|
7910
7917
|
};
|
|
7911
7918
|
}
|
|
7912
|
-
const
|
|
7919
|
+
const Rc = (t, e, n) => {
|
|
7913
7920
|
const s = t.get(L).getSelections(), { value: r, selections: i, unitId: a, subUnitId: u } = e;
|
|
7914
7921
|
if (s) {
|
|
7915
7922
|
const c = s[(s == null ? void 0 : s.length) - 1].primary;
|
|
@@ -7950,7 +7957,7 @@ const fc = (t, e, n) => {
|
|
|
7950
7957
|
return null;
|
|
7951
7958
|
}
|
|
7952
7959
|
return null;
|
|
7953
|
-
},
|
|
7960
|
+
}, Cc = (t, e) => {
|
|
7954
7961
|
const o = t.get(L).getSelections(), { unitId: s, subUnitId: r } = e;
|
|
7955
7962
|
if (o && o[(o == null ? void 0 : o.length) - 1].primary) {
|
|
7956
7963
|
const u = {
|
|
@@ -7967,16 +7974,16 @@ const fc = (t, e, n) => {
|
|
|
7967
7974
|
return null;
|
|
7968
7975
|
};
|
|
7969
7976
|
export {
|
|
7970
|
-
|
|
7977
|
+
Rc as AddMergeRedoSelectionsOperationFactory,
|
|
7971
7978
|
Ae as AddMergeUndoMutationFactory,
|
|
7972
|
-
|
|
7979
|
+
Cc as AddMergeUndoSelectionsOperationFactory,
|
|
7973
7980
|
es as AddRangeProtectionCommand,
|
|
7974
7981
|
Pt as AddRangeProtectionMutation,
|
|
7975
7982
|
se as AddWorksheetMergeMutation,
|
|
7976
|
-
|
|
7983
|
+
Xi as AddWorksheetProtectionMutation,
|
|
7977
7984
|
Ct as BorderStyleManagerService,
|
|
7978
|
-
|
|
7979
|
-
|
|
7985
|
+
cc as COMMAND_LISTENER_SKELETON_CHANGE,
|
|
7986
|
+
lc as COMMAND_LISTENER_VALUE_CHANGE,
|
|
7980
7987
|
In as ClearSelectionAllCommand,
|
|
7981
7988
|
Ro as ClearSelectionContentCommand,
|
|
7982
7989
|
Mn as ClearSelectionFormatCommand,
|
|
@@ -7984,48 +7991,48 @@ export {
|
|
|
7984
7991
|
Kt as DefinedNameDataController,
|
|
7985
7992
|
Nn as DeleteRangeMoveLeftCommand,
|
|
7986
7993
|
En as DeleteRangeMoveUpCommand,
|
|
7987
|
-
|
|
7994
|
+
ha as DeleteRangeProtectionCommand,
|
|
7988
7995
|
Ut as DeleteRangeProtectionMutation,
|
|
7989
|
-
|
|
7996
|
+
Qi as DeleteWorksheetProtectionMutation,
|
|
7990
7997
|
Lo as DeltaColumnWidthCommand,
|
|
7991
7998
|
zo as DeltaRowHeightCommand,
|
|
7992
7999
|
D as EffectRefRangId,
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
8000
|
+
Hi as EmptyMutation,
|
|
8001
|
+
oc as FactoryAddRangeProtectionMutation,
|
|
8002
|
+
nc as FactoryDeleteRangeProtectionMutation,
|
|
8003
|
+
sc as FactorySetRangeProtectionMutation,
|
|
7997
8004
|
dn as INTERCEPTOR_POINT,
|
|
7998
8005
|
pt as INumfmtService,
|
|
7999
|
-
|
|
8000
|
-
|
|
8006
|
+
Qr as InsertColAfterCommand,
|
|
8007
|
+
Zr as InsertColBeforeCommand,
|
|
8001
8008
|
Rt as InsertColCommand,
|
|
8002
8009
|
Fe as InsertColMutation,
|
|
8003
8010
|
yo as InsertColMutationUndoFactory,
|
|
8004
|
-
|
|
8011
|
+
ji as InsertDefinedNameCommand,
|
|
8005
8012
|
On as InsertRangeMoveDownCommand,
|
|
8006
8013
|
kn as InsertRangeMoveRightCommand,
|
|
8007
|
-
|
|
8008
|
-
|
|
8014
|
+
Xr as InsertRowAfterCommand,
|
|
8015
|
+
Yr as InsertRowBeforeCommand,
|
|
8009
8016
|
ft as InsertRowCommand,
|
|
8010
8017
|
Be as InsertRowMutation,
|
|
8011
8018
|
_o as InsertRowMutationUndoFactory,
|
|
8012
|
-
|
|
8019
|
+
ei as InsertSheetCommand,
|
|
8013
8020
|
ut as InsertSheetMutation,
|
|
8014
8021
|
Co as InsertSheetUndoMutationFactory,
|
|
8015
|
-
|
|
8022
|
+
ga as MAX_CELL_PER_SHEET_KEY,
|
|
8016
8023
|
zt as MergeCellController,
|
|
8017
8024
|
Tn as MoveColsCommand,
|
|
8018
8025
|
qe as MoveColsMutation,
|
|
8019
|
-
|
|
8026
|
+
ni as MoveColsMutationUndoFactory,
|
|
8020
8027
|
yn as MoveRangeCommand,
|
|
8021
8028
|
ct as MoveRangeMutation,
|
|
8022
8029
|
Dn as MoveRowsCommand,
|
|
8023
8030
|
Je as MoveRowsMutation,
|
|
8024
|
-
|
|
8031
|
+
ti as MoveRowsMutationUndoFactory,
|
|
8025
8032
|
he as NORMAL_SELECTION_PLUGIN_NAME,
|
|
8026
8033
|
vn as NumfmtService,
|
|
8027
8034
|
j as OperatorType,
|
|
8028
|
-
|
|
8035
|
+
Zu as RangeMergeUtil,
|
|
8029
8036
|
Un as RangeProtectionPermissionEditPoint,
|
|
8030
8037
|
Pn as RangeProtectionPermissionViewPoint,
|
|
8031
8038
|
Jt as RangeProtectionRefRangeService,
|
|
@@ -8035,7 +8042,7 @@ export {
|
|
|
8035
8042
|
at as RefRangeService,
|
|
8036
8043
|
un as RemoveColCommand,
|
|
8037
8044
|
We as RemoveColMutation,
|
|
8038
|
-
|
|
8045
|
+
zi as RemoveDefinedNameCommand,
|
|
8039
8046
|
Ee as RemoveMergeUndoMutationFactory,
|
|
8040
8047
|
Yo as RemoveNumfmtMutation,
|
|
8041
8048
|
an as RemoveRowCommand,
|
|
@@ -8043,36 +8050,36 @@ export {
|
|
|
8043
8050
|
Do as RemoveSheetCommand,
|
|
8044
8051
|
Et as RemoveSheetMutation,
|
|
8045
8052
|
mr as RemoveSheetUndoMutationFactory,
|
|
8046
|
-
|
|
8053
|
+
ri as RemoveWorksheetMergeCommand,
|
|
8047
8054
|
ie as RemoveWorksheetMergeMutation,
|
|
8048
8055
|
os as ReorderRangeCommand,
|
|
8049
8056
|
Qt as ReorderRangeMutation,
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8057
|
+
bi as ResetBackgroundColorCommand,
|
|
8058
|
+
_i as ResetTextColorCommand,
|
|
8059
|
+
hc as SELECTION_CONTROL_BORDER_BUFFER_COLOR,
|
|
8060
|
+
dc as SELECTION_CONTROL_BORDER_BUFFER_WIDTH,
|
|
8061
|
+
Ki as ScrollToCellOperation,
|
|
8055
8062
|
L as SelectionManagerService,
|
|
8056
8063
|
qs as SelectionMoveType,
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8064
|
+
yi as SetBackgroundColorCommand,
|
|
8065
|
+
zu as SetBoldCommand,
|
|
8066
|
+
ai as SetBorderBasicCommand,
|
|
8067
|
+
li as SetBorderColorCommand,
|
|
8061
8068
|
Ot as SetBorderCommand,
|
|
8062
|
-
|
|
8063
|
-
|
|
8069
|
+
ui as SetBorderPositionCommand,
|
|
8070
|
+
ci as SetBorderStyleCommand,
|
|
8064
8071
|
To as SetColHiddenCommand,
|
|
8065
8072
|
Mt as SetColHiddenMutation,
|
|
8066
8073
|
_t as SetColVisibleMutation,
|
|
8067
8074
|
Cn as SetColWidthCommand,
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8075
|
+
Gi as SetDefinedNameCommand,
|
|
8076
|
+
qu as SetFontFamilyCommand,
|
|
8077
|
+
Yu as SetFontSizeCommand,
|
|
8078
|
+
Ri as SetFrozenCommand,
|
|
8072
8079
|
nt as SetFrozenMutation,
|
|
8073
8080
|
Ao as SetFrozenMutationFactory,
|
|
8074
|
-
|
|
8075
|
-
|
|
8081
|
+
Pi as SetHorizontalTextAlignCommand,
|
|
8082
|
+
Gu as SetItalicCommand,
|
|
8076
8083
|
$n as SetNumfmtMutation,
|
|
8077
8084
|
ts as SetRangeProtectionCommand,
|
|
8078
8085
|
fe as SetRangeProtectionMutation,
|
|
@@ -8083,104 +8090,104 @@ export {
|
|
|
8083
8090
|
Vo as SetRowHiddenCommand,
|
|
8084
8091
|
bt as SetRowHiddenMutation,
|
|
8085
8092
|
yt as SetRowVisibleMutation,
|
|
8086
|
-
|
|
8087
|
-
|
|
8093
|
+
mi as SetSelectedColsVisibleCommand,
|
|
8094
|
+
vi as SetSelectedRowsVisibleCommand,
|
|
8088
8095
|
ce as SetSelectionsOperation,
|
|
8089
8096
|
xn as SetSpecificColsVisibleCommand,
|
|
8090
8097
|
An as SetSpecificRowsVisibleCommand,
|
|
8091
|
-
|
|
8098
|
+
Ju as SetStrikeThroughCommand,
|
|
8092
8099
|
Re as SetStyleCommand,
|
|
8093
|
-
|
|
8100
|
+
ki as SetTabColorCommand,
|
|
8094
8101
|
$t as SetTabColorMutation,
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8102
|
+
Mi as SetTextColorCommand,
|
|
8103
|
+
Ei as SetTextRotationCommand,
|
|
8104
|
+
Ni as SetTextWrapCommand,
|
|
8105
|
+
Ku as SetUnderlineCommand,
|
|
8106
|
+
Ui as SetVerticalTextAlignCommand,
|
|
8100
8107
|
Zo as SetWorkbookNameCommand,
|
|
8101
8108
|
Xo as SetWorkbookNameMutation,
|
|
8102
8109
|
Vn as SetWorksheetActivateCommand,
|
|
8103
8110
|
cn as SetWorksheetActiveOperation,
|
|
8104
8111
|
ze as SetWorksheetColWidthMutation,
|
|
8105
8112
|
$o as SetWorksheetColWidthMutationFactory,
|
|
8106
|
-
|
|
8113
|
+
Ti as SetWorksheetHideCommand,
|
|
8107
8114
|
ot as SetWorksheetHideMutation,
|
|
8108
8115
|
Fo as SetWorksheetNameCommand,
|
|
8109
8116
|
pn as SetWorksheetNameMutation,
|
|
8110
|
-
|
|
8117
|
+
Vi as SetWorksheetOrderCommand,
|
|
8111
8118
|
Lt as SetWorksheetOrderMutation,
|
|
8112
|
-
|
|
8113
|
-
|
|
8119
|
+
da as SetWorksheetPermissionPointsCommand,
|
|
8120
|
+
Zi as SetWorksheetProtectionMutation,
|
|
8114
8121
|
jo as SetWorksheetRowAutoHeightMutation,
|
|
8115
|
-
|
|
8122
|
+
Xu as SetWorksheetRowAutoHeightMutationFactory,
|
|
8116
8123
|
Ge as SetWorksheetRowHeightMutation,
|
|
8117
8124
|
Ko as SetWorksheetRowIsAutoHeightCommand,
|
|
8118
8125
|
Te as SetWorksheetRowIsAutoHeightMutation,
|
|
8119
|
-
|
|
8126
|
+
$i as SetWorksheetShowCommand,
|
|
8120
8127
|
H as SheetInterceptorService,
|
|
8121
8128
|
tn as UniverSheetsPlugin,
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8129
|
+
kr as WorkbookCommentPermission,
|
|
8130
|
+
jr as WorkbookCopyPermission,
|
|
8131
|
+
zr as WorkbookCopySheetPermission,
|
|
8132
|
+
Br as WorkbookCreateSheetPermission,
|
|
8133
|
+
Wr as WorkbookDeleteSheetPermission,
|
|
8134
|
+
Tr as WorkbookDuplicatePermission,
|
|
8135
|
+
Dr as WorkbookEditablePermission,
|
|
8136
|
+
Ar as WorkbookExportPermission,
|
|
8137
|
+
$r as WorkbookHideSheetPermission,
|
|
8138
|
+
Fu as WorkbookHistoryPermission,
|
|
8139
|
+
Gr as WorkbookManageCollaboratorPermission,
|
|
8140
|
+
Vr as WorkbookMoveSheetPermission,
|
|
8134
8141
|
Gt as WorkbookPermissionService,
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8142
|
+
xr as WorkbookPrintPermission,
|
|
8143
|
+
Lr as WorkbookRenameSheetPermission,
|
|
8144
|
+
Hr as WorkbookSharePermission,
|
|
8145
|
+
Fr as WorkbookViewPermission,
|
|
8146
|
+
Cr as WorksheetCopyPermission,
|
|
8147
|
+
Ur as WorksheetDeleteColumnPermission,
|
|
8148
|
+
br as WorksheetDeleteRowPermission,
|
|
8149
|
+
Or as WorksheetEditExtraObjectPermission,
|
|
8143
8150
|
So as WorksheetEditPermission,
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8151
|
+
Nr as WorksheetFilterPermission,
|
|
8152
|
+
_r as WorksheetInsertColumnPermission,
|
|
8153
|
+
yr as WorksheetInsertHyperlinkPermission,
|
|
8154
|
+
Mr as WorksheetInsertRowPermission,
|
|
8155
|
+
Bu as WorksheetManageCollaboratorPermission,
|
|
8149
8156
|
Ft as WorksheetPermissionService,
|
|
8150
|
-
|
|
8157
|
+
Er as WorksheetPivotTablePermission,
|
|
8151
8158
|
it as WorksheetProtectionPointModel,
|
|
8152
8159
|
Ke as WorksheetProtectionRuleModel,
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8160
|
+
$u as WorksheetSelectProtectedCellsPermission,
|
|
8161
|
+
Lu as WorksheetSelectUnProtectedCellsPermission,
|
|
8162
|
+
pr as WorksheetSetCellStylePermission,
|
|
8163
|
+
Sr as WorksheetSetCellValuePermission,
|
|
8164
|
+
Ir as WorksheetSetColumnStylePermission,
|
|
8165
|
+
wr as WorksheetSetRowStylePermission,
|
|
8166
|
+
Pr as WorksheetSortPermission,
|
|
8167
|
+
vr as WorksheetViewPermission,
|
|
8161
8168
|
sn as alignToMergedCellsBorders,
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8169
|
+
bu as convertPrimaryWithCoordToPrimary,
|
|
8170
|
+
gc as convertSelectionDataToRange,
|
|
8171
|
+
Bi as createTopMatrixFromMatrix,
|
|
8172
|
+
Li as createTopMatrixFromRanges,
|
|
8173
|
+
ac as defaultWorkbookPermissionPoints,
|
|
8174
|
+
tc as defaultWorksheetPermissionPoint,
|
|
8175
|
+
xu as expandToContinuousRange,
|
|
8176
|
+
ec as factoryRemoveNumfmtUndoMutation,
|
|
8177
|
+
Qu as factorySetNumfmtUndoMutation,
|
|
8171
8178
|
Jo as findAllRectangle,
|
|
8172
8179
|
Ze as followSelectionOperation,
|
|
8173
8180
|
lr as generateNullCellValue,
|
|
8174
|
-
|
|
8181
|
+
Qa as getAddMergeMutationRangeByType,
|
|
8175
8182
|
tt as getAllRangePermissionPoint,
|
|
8176
8183
|
no as getAllWorkbookPermissionPoint,
|
|
8177
8184
|
et as getAllWorksheetPermissionPoint,
|
|
8178
8185
|
Bt as getAllWorksheetPermissionPointByPointPanel,
|
|
8179
|
-
|
|
8180
|
-
|
|
8186
|
+
Au as getCellAtRowCol,
|
|
8187
|
+
uc as getDefaultRangePermission,
|
|
8181
8188
|
vo as getInsertRangeMutations,
|
|
8182
8189
|
bn as getMoveRangeUndoRedoMutations,
|
|
8183
|
-
|
|
8190
|
+
mc as getNormalSelectionStyle,
|
|
8184
8191
|
Ue as getPrimaryForRange,
|
|
8185
8192
|
wo as getRemoveRangeMutations,
|
|
8186
8193
|
J as getSheetCommandTarget,
|
|
@@ -8189,27 +8196,27 @@ export {
|
|
|
8189
8196
|
dt as handleBaseInsertRange,
|
|
8190
8197
|
en as handleBaseMoveRowsCols,
|
|
8191
8198
|
lt as handleBaseRemoveRange,
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8199
|
+
ic as handleCommonDefaultRangeChangeWithEffectRefCommands,
|
|
8200
|
+
Va as handleDefaultRangeChangeWithEffectRefCommands,
|
|
8201
|
+
rc as handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests,
|
|
8202
|
+
Da as handleDeleteRangeMoveLeft,
|
|
8203
|
+
xa as handleDeleteRangeMoveUp,
|
|
8204
|
+
ju as handleDeleteRangeMutation,
|
|
8198
8205
|
as as handleIRemoveCol,
|
|
8199
8206
|
us as handleIRemoveRow,
|
|
8200
8207
|
ls as handleInsertCol,
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8208
|
+
Na as handleInsertRangeMoveDown,
|
|
8209
|
+
Oa as handleInsertRangeMoveRight,
|
|
8210
|
+
Hu as handleInsertRangeMutation,
|
|
8204
8211
|
cs as handleInsertRow,
|
|
8205
8212
|
is as handleMoveCols,
|
|
8206
|
-
|
|
8213
|
+
ya as handleMoveRange,
|
|
8207
8214
|
rs as handleMoveRows,
|
|
8208
|
-
|
|
8215
|
+
Wu as isSingleCellSelection,
|
|
8209
8216
|
qo as rangeMerge,
|
|
8210
8217
|
Oe as rotateRange,
|
|
8211
8218
|
ht as runRefRangeMutations,
|
|
8212
|
-
|
|
8213
|
-
|
|
8219
|
+
Vu as setEndForRange,
|
|
8220
|
+
fc as transformCellDataToSelectionData,
|
|
8214
8221
|
Sn as transformCellsToRange
|
|
8215
8222
|
};
|