@univerjs/sheets 0.5.5 → 0.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +3 -3
- package/lib/es/facade.js +531 -396
- package/lib/es/index.js +537 -425
- package/lib/types/facade/f-defined-name.d.ts +22 -16
- package/lib/types/facade/f-enum.d.ts +3 -0
- package/lib/types/facade/f-event.d.ts +43 -41
- package/lib/types/facade/f-permission.d.ts +141 -9
- package/lib/types/facade/f-range.d.ts +155 -149
- package/lib/types/facade/f-selection.d.ts +3 -1
- package/lib/types/facade/f-sheet-hooks.d.ts +3 -0
- package/lib/types/facade/f-univer.d.ts +9 -3
- package/lib/types/facade/f-workbook.d.ts +13 -5
- package/lib/types/facade/f-worksheet.d.ts +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/model/range-protection-rule.model.d.ts +1 -1
- package/lib/types/services/permission/permission-point/const.d.ts +117 -4
- package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +1 -1
- package/lib/types/services/permission/range-permission/range-protection.service.d.ts +1 -1
- package/lib/types/services/permission/worksheet-permission/worksheet-permission-rule.model.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +3 -3
- package/package.json +8 -8
- package/lib/types/basics/__tests__/cell-type.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/cell-value.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/expand.data.d.ts +0 -2
- package/lib/types/basics/__tests__/expand.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/rangeMerge.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/row-column-value.spec.d.ts +0 -16
- package/lib/types/basics/__tests__/utils.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/add-merge-command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +0 -7
- package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/range-template-command.sepc.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/remove-rows-cols.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-col-data.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-gridlines-command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-row-data.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-worksheet-default-style.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts +0 -16
- package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts +0 -16
- package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +0 -8
- package/lib/types/commands/mutations/__tests__/move-rows-cols.mutation.spec.d.ts +0 -16
- package/lib/types/commands/mutations/__tests__/remove-row-col.mutation.spec.d.ts +0 -16
- package/lib/types/controllers/__tests__/util.d.ts +0 -13
- package/lib/types/facade/__tests__/utils.spec.d.ts +0 -16
- package/lib/types/services/__tests__/move-active-cell.spec.d.ts +0 -16
- package/lib/types/services/__tests__/numfmt.service.test.d.ts +0 -16
- package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts +0 -16
- package/lib/types/services/__tests__/util.d.ts +0 -14
- package/lib/types/services/ref-range/__tests__/__testing__.d.ts +0 -14
- package/lib/types/services/ref-range/__tests__/ref-range.service.spec.d.ts +0 -13
- package/lib/types/services/ref-range/__tests__/utils.spec.d.ts +0 -16
- package/lib/types/services/ref-range/__tests__/watch-range.spec.d.ts +0 -16
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +0 -13
- package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts +0 -16
package/lib/es/index.js
CHANGED
|
@@ -103,7 +103,7 @@ class de {
|
|
|
103
103
|
return null;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const Vd = (n, e) => {
|
|
107
107
|
const t = n.get(de), o = e.ruleIds.map((r) => t.getRule(e.unitId, e.subUnitId, r)).filter((r) => !!r);
|
|
108
108
|
return { id: Ne.id, params: { subUnitId: e.subUnitId, unitId: e.unitId, rules: o } };
|
|
109
109
|
}, ze = {
|
|
@@ -115,7 +115,7 @@ const Bd = (n, e) => {
|
|
|
115
115
|
r.deleteRule(t, o, i);
|
|
116
116
|
}), !0;
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, Hd = (n) => {
|
|
119
119
|
const e = { ...n, ruleIds: n.rules.map((t) => t.id) };
|
|
120
120
|
return { id: ze.id, params: e };
|
|
121
121
|
}, Ne = {
|
|
@@ -1485,7 +1485,7 @@ let F = class extends ps {
|
|
|
1485
1485
|
F = Oa([
|
|
1486
1486
|
Da(0, M)
|
|
1487
1487
|
], F);
|
|
1488
|
-
const
|
|
1488
|
+
const Bd = "DISABLE_NORMAL_SELECTIONS", Fd = "SELECTIONS_ENABLED", Aa = "REF_SELECTIONS_ENABLED";
|
|
1489
1489
|
function xa(n, e, t) {
|
|
1490
1490
|
var i;
|
|
1491
1491
|
const o = n.getStyleByCell(e);
|
|
@@ -1895,7 +1895,7 @@ function Ln(n, e, t = !0) {
|
|
|
1895
1895
|
const r = k.union(n, ...s);
|
|
1896
1896
|
return t ? Ln(r, e, t) : r;
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function jd(n, e, t) {
|
|
1899
1899
|
let o = null;
|
|
1900
1900
|
return t.getMatrixWithMergedCells(n, e, n, e).forValue((r, i, a) => (o = {
|
|
1901
1901
|
actualRow: r,
|
|
@@ -1919,7 +1919,7 @@ function zd(n, e, t) {
|
|
|
1919
1919
|
rangeType: H.NORMAL
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function Gd(n, e, t) {
|
|
1923
1923
|
const { startRow: o, startColumn: s, endRow: r, endColumn: i } = n;
|
|
1924
1924
|
return Number.isNaN(o) && (n.startRow = 0), Number.isNaN(r) && (n.endRow = e - 1), Number.isNaN(s) && (n.startColumn = 0), Number.isNaN(i) && (n.endColumn = t - 1), n;
|
|
1925
1925
|
}
|
|
@@ -1953,7 +1953,7 @@ const Xe = (n, e, t) => ({
|
|
|
1953
1953
|
selections: [{ range: n, primary: ve(n, t) }]
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
|
-
function
|
|
1956
|
+
function zd(n) {
|
|
1957
1957
|
if (!n)
|
|
1958
1958
|
return !1;
|
|
1959
1959
|
const { range: e, primary: t } = n;
|
|
@@ -2437,7 +2437,7 @@ class ir {
|
|
|
2437
2437
|
this.unitId = e, this.subUnitId = t, this.id = `${this.type}.${_.PivotTable}_${e}_${t}`;
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
2440
|
-
class
|
|
2440
|
+
class Kd {
|
|
2441
2441
|
constructor(e, t) {
|
|
2442
2442
|
R(this, "value", !0);
|
|
2443
2443
|
R(this, "type", D.Worksheet);
|
|
@@ -2447,7 +2447,7 @@ class nu {
|
|
|
2447
2447
|
this.unitId = e, this.subUnitId = t, this.id = `${this.type}.${_.SelectProtectedCells}_${e}_${t}`;
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
|
-
class
|
|
2450
|
+
class Jd {
|
|
2451
2451
|
constructor(e, t) {
|
|
2452
2452
|
R(this, "value", !0);
|
|
2453
2453
|
R(this, "type", D.Worksheet);
|
|
@@ -2814,7 +2814,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
// all subsequent mutations should succeed inorder to make the whole process succeed
|
|
2816
2816
|
// Promise.all([]).then(() => true),
|
|
2817
|
-
},
|
|
2817
|
+
}, nu = {
|
|
2818
2818
|
type: v.COMMAND,
|
|
2819
2819
|
id: "sheet.command.delete-range-protection",
|
|
2820
2820
|
async handler(n, e) {
|
|
@@ -2831,7 +2831,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
2831
2831
|
undoMutations: [{ id: Ne.id, params: { unitId: s, subUnitId: r, rules: [i] } }]
|
|
2832
2832
|
}), !0;
|
|
2833
2833
|
}
|
|
2834
|
-
},
|
|
2834
|
+
}, ou = {
|
|
2835
2835
|
type: v.COMMAND,
|
|
2836
2836
|
id: "sheet.command.delete-worksheet-protection",
|
|
2837
2837
|
handler(n, e) {
|
|
@@ -2849,7 +2849,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
2849
2849
|
undoMutations: u
|
|
2850
2850
|
}), !0;
|
|
2851
2851
|
}
|
|
2852
|
-
},
|
|
2852
|
+
}, su = {
|
|
2853
2853
|
type: v.COMMAND,
|
|
2854
2854
|
id: "sheet.command.remove-worksheet-range-theme-style",
|
|
2855
2855
|
handler: (n, e) => {
|
|
@@ -2860,7 +2860,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
2860
2860
|
redoMutations: [{ id: Kt.id, params: e }]
|
|
2861
2861
|
}), !0) : !1;
|
|
2862
2862
|
}
|
|
2863
|
-
},
|
|
2863
|
+
}, ru = {
|
|
2864
2864
|
id: "sheet.command.insert-defined-name",
|
|
2865
2865
|
type: v.COMMAND,
|
|
2866
2866
|
handler: (n, e) => {
|
|
@@ -2930,7 +2930,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
return s.setColumnCount(s.getColumnCount() + i.endColumn - i.startColumn + 1), s.getCellMatrix().insertColumns(i.startColumn, d), !0;
|
|
2932
2932
|
}
|
|
2933
|
-
},
|
|
2933
|
+
}, iu = (n, e) => {
|
|
2934
2934
|
const s = e.getRowManager().getRowData(), r = {}, i = n.range, a = _s(i.startRow, i.endRow, s), u = bs(r, a);
|
|
2935
2935
|
return {
|
|
2936
2936
|
unitId: n.unitId,
|
|
@@ -2953,7 +2953,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
2953
2953
|
const u = r.endRow - r.startRow + 1;
|
|
2954
2954
|
return Ms(r.startRow, u, a), s.getCellMatrix().removeRows(r.startRow, u), s.setRowCount(s.getRowCount() - u), !0;
|
|
2955
2955
|
}
|
|
2956
|
-
},
|
|
2956
|
+
}, au = (n, e) => {
|
|
2957
2957
|
const o = n.get(M).getUniverSheetInstance(e.unitId);
|
|
2958
2958
|
if (o == null)
|
|
2959
2959
|
throw new Error("universheet is null error!");
|
|
@@ -2979,7 +2979,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
2979
2979
|
const r = e.range, a = s.getColumnManager().getColumnData(), u = r.endColumn - r.startColumn + 1;
|
|
2980
2980
|
return Ms(r.startColumn, u, a), s.setColumnCount(s.getColumnCount() - u), s.getCellMatrix().removeColumns(r.startColumn, u), !0;
|
|
2981
2981
|
}
|
|
2982
|
-
},
|
|
2982
|
+
}, uu = "sheet.command.insert-range-move-down", sn = {
|
|
2983
2983
|
type: v.COMMAND,
|
|
2984
2984
|
id: "sheet.command.insert-range-move-down",
|
|
2985
2985
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -3116,7 +3116,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
3116
3116
|
redoMutations: f
|
|
3117
3117
|
}), !0) : !1;
|
|
3118
3118
|
}
|
|
3119
|
-
// all subsequent mutations should succeed
|
|
3119
|
+
// all subsequent mutations should succeed in order to make the whole process succeed
|
|
3120
3120
|
// Promise.all([]).then(() => true),
|
|
3121
3121
|
}, gr = "sheet.command.insert-row", mt = {
|
|
3122
3122
|
type: v.COMMAND,
|
|
@@ -3174,7 +3174,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
3174
3174
|
redoMutations: w
|
|
3175
3175
|
}), !0) : !1;
|
|
3176
3176
|
}
|
|
3177
|
-
},
|
|
3177
|
+
}, lu = {
|
|
3178
3178
|
type: v.COMMAND,
|
|
3179
3179
|
id: "sheet.command.insert-row-before",
|
|
3180
3180
|
handler: async (n) => {
|
|
@@ -3202,7 +3202,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
3202
3202
|
};
|
|
3203
3203
|
return n.get(E).executeCommand(mt.id, m);
|
|
3204
3204
|
}
|
|
3205
|
-
},
|
|
3205
|
+
}, cu = {
|
|
3206
3206
|
type: v.COMMAND,
|
|
3207
3207
|
id: "sheet.command.insert-row-after",
|
|
3208
3208
|
handler: async (n) => {
|
|
@@ -3284,7 +3284,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
3284
3284
|
redoMutations: I.filter(Boolean)
|
|
3285
3285
|
}), !0) : !1;
|
|
3286
3286
|
}
|
|
3287
|
-
},
|
|
3287
|
+
}, du = {
|
|
3288
3288
|
type: v.COMMAND,
|
|
3289
3289
|
id: "sheet.command.insert-col-before",
|
|
3290
3290
|
handler: async (n) => {
|
|
@@ -3312,7 +3312,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
3312
3312
|
};
|
|
3313
3313
|
return n.get(E).executeCommand(gt.id, m);
|
|
3314
3314
|
}
|
|
3315
|
-
},
|
|
3315
|
+
}, hu = {
|
|
3316
3316
|
type: v.COMMAND,
|
|
3317
3317
|
id: "sheet.command.insert-col-after",
|
|
3318
3318
|
handler: async (n) => {
|
|
@@ -3339,7 +3339,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
3339
3339
|
};
|
|
3340
3340
|
return n.get(E).executeCommand(gt.id, g);
|
|
3341
3341
|
}
|
|
3342
|
-
},
|
|
3342
|
+
}, mu = {
|
|
3343
3343
|
id: "sheet.command.insert-sheet",
|
|
3344
3344
|
type: v.COMMAND,
|
|
3345
3345
|
handler: (n, e) => {
|
|
@@ -3365,7 +3365,7 @@ const dr = "sheet.command.delete-range-move-left", Pt = {
|
|
|
3365
3365
|
}), !0) : !1;
|
|
3366
3366
|
}
|
|
3367
3367
|
};
|
|
3368
|
-
function
|
|
3368
|
+
function gu(n, e) {
|
|
3369
3369
|
const { unitId: t, subUnitId: o, sourceRange: s, targetRange: r } = e, i = s.startRow > r.startRow, a = s.endRow - s.startRow + 1;
|
|
3370
3370
|
return i ? {
|
|
3371
3371
|
unitId: t,
|
|
@@ -3401,7 +3401,7 @@ const ot = {
|
|
|
3401
3401
|
return ys(l, c, d, h), u.getCellMatrix().moveRows(l, c, d), !0;
|
|
3402
3402
|
}
|
|
3403
3403
|
};
|
|
3404
|
-
function
|
|
3404
|
+
function fu(n, e) {
|
|
3405
3405
|
const { unitId: t, subUnitId: o, sourceRange: s, targetRange: r } = e, i = s.startColumn > r.startColumn, a = s.endColumn - s.startColumn + 1;
|
|
3406
3406
|
return i ? {
|
|
3407
3407
|
unitId: t,
|
|
@@ -3437,10 +3437,10 @@ const st = {
|
|
|
3437
3437
|
return ys(l, c, d, h), u.getCellMatrix().moveColumns(l, c, d), !0;
|
|
3438
3438
|
}
|
|
3439
3439
|
};
|
|
3440
|
-
function
|
|
3440
|
+
function Ru(n, e) {
|
|
3441
3441
|
return e.getMergeData().some((t) => t.startRow < n && n <= t.endRow);
|
|
3442
3442
|
}
|
|
3443
|
-
function
|
|
3443
|
+
function pu(n, e) {
|
|
3444
3444
|
return e.getMergeData().some((t) => t.startColumn < n && n <= t.endColumn);
|
|
3445
3445
|
}
|
|
3446
3446
|
const Cr = "sheet.command.move-rows", Fn = {
|
|
@@ -3463,7 +3463,7 @@ const Cr = "sheet.command.move-rows", Fn = {
|
|
|
3463
3463
|
const { workbook: d, worksheet: h } = c, m = d.getUnitId(), g = h.getSheetId(), f = n.get(bt), p = n.get(Ke), C = a[0].range, S = a[0].primary, I = Ln(C, h, !1);
|
|
3464
3464
|
if (!k.equals(C, I))
|
|
3465
3465
|
return f.emit(p.t("sheets.info.partOfCell")), !1;
|
|
3466
|
-
if (
|
|
3466
|
+
if (Ru(s, h))
|
|
3467
3467
|
return f.emit(p.t("sheets.info.acrossMergedCell")), !1;
|
|
3468
3468
|
const w = {
|
|
3469
3469
|
...C,
|
|
@@ -3474,7 +3474,7 @@ const Cr = "sheet.command.move-rows", Fn = {
|
|
|
3474
3474
|
subUnitId: g,
|
|
3475
3475
|
sourceRange: C,
|
|
3476
3476
|
targetRange: w
|
|
3477
|
-
}, y =
|
|
3477
|
+
}, y = gu(n, b), x = n.get(E), T = u.onCommandExecute({ id: Fn.id, params: e }), U = [
|
|
3478
3478
|
...(j = T.preRedos) != null ? j : [],
|
|
3479
3479
|
{ id: ot.id, params: b }
|
|
3480
3480
|
], P = [
|
|
@@ -3529,7 +3529,7 @@ const Cr = "sheet.command.move-rows", Fn = {
|
|
|
3529
3529
|
const { workbook: d, worksheet: h } = c, m = d.getUnitId(), g = h.getSheetId(), f = n.get(bt), p = n.get(Ke), C = a[0].range, S = a[0].primary, I = Ln(C, h, !1);
|
|
3530
3530
|
if (!k.equals(C, I))
|
|
3531
3531
|
return f.emit(p.t("sheets.info.partOfCell")), !1;
|
|
3532
|
-
if (
|
|
3532
|
+
if (pu(s, h))
|
|
3533
3533
|
return f.emit(p.t("sheets.info.acrossMergedCell")), !1;
|
|
3534
3534
|
const w = {
|
|
3535
3535
|
...C,
|
|
@@ -3540,7 +3540,7 @@ const Cr = "sheet.command.move-rows", Fn = {
|
|
|
3540
3540
|
subUnitId: g,
|
|
3541
3541
|
sourceRange: C,
|
|
3542
3542
|
targetRange: w
|
|
3543
|
-
}, y =
|
|
3543
|
+
}, y = fu(n, b), x = n.get(E), T = u.onCommandExecute({ id: jn.id, params: e }), U = [
|
|
3544
3544
|
...(j = T.preRedos) != null ? j : [],
|
|
3545
3545
|
{ id: st.id, params: b }
|
|
3546
3546
|
], P = [
|
|
@@ -3595,7 +3595,7 @@ const Yt = {
|
|
|
3595
3595
|
const { unitId: t, themeName: o } = e, s = n.get(M), r = N(s), i = n.get(He);
|
|
3596
3596
|
return r ? (i.unregisterRangeThemeStyle(t, o), !0) : !1;
|
|
3597
3597
|
}
|
|
3598
|
-
},
|
|
3598
|
+
}, Cu = {
|
|
3599
3599
|
id: "sheet.command.register-worksheet-range-theme-style",
|
|
3600
3600
|
type: v.COMMAND,
|
|
3601
3601
|
handler: (n, e) => {
|
|
@@ -3611,7 +3611,7 @@ const Yt = {
|
|
|
3611
3611
|
unitId: t,
|
|
3612
3612
|
themeName: o.getName()
|
|
3613
3613
|
};
|
|
3614
|
-
return r.syncExecuteCommand(Yt.id,
|
|
3614
|
+
return r.syncExecuteCommand(Yt.id, u) && i.pushUndoRedo({
|
|
3615
3615
|
unitID: t,
|
|
3616
3616
|
undoMutations: [{ id: Uo.id, params: l }],
|
|
3617
3617
|
redoMutations: [{ id: Yt.id, params: u }]
|
|
@@ -3654,7 +3654,7 @@ const Yt = {
|
|
|
3654
3654
|
unitId: u,
|
|
3655
3655
|
subUnitId: l,
|
|
3656
3656
|
range: a
|
|
3657
|
-
}, d =
|
|
3657
|
+
}, d = iu(
|
|
3658
3658
|
c,
|
|
3659
3659
|
r
|
|
3660
3660
|
), h = r.getCellMatrix().getSlice(a.startRow, a.endRow, 0, r.getColumnCount() - 1), m = {
|
|
@@ -3725,7 +3725,7 @@ const Yt = {
|
|
|
3725
3725
|
unitId: u,
|
|
3726
3726
|
subUnitId: l,
|
|
3727
3727
|
range: a
|
|
3728
|
-
}, d =
|
|
3728
|
+
}, d = au(n, c), h = r.getCellMatrix().getSlice(0, r.getRowCount() - 1, a.startColumn, a.endColumn), m = {
|
|
3729
3729
|
unitId: u,
|
|
3730
3730
|
subUnitId: l,
|
|
3731
3731
|
cellValue: h.getMatrix()
|
|
@@ -3863,7 +3863,7 @@ const Yt = {
|
|
|
3863
3863
|
}
|
|
3864
3864
|
return s.getSpanModel().rebuild(i), !0;
|
|
3865
3865
|
}
|
|
3866
|
-
},
|
|
3866
|
+
}, Su = {
|
|
3867
3867
|
type: v.COMMAND,
|
|
3868
3868
|
id: "sheet.command.remove-worksheet-merge",
|
|
3869
3869
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -3895,7 +3895,7 @@ const Yt = {
|
|
|
3895
3895
|
isMerged: !1,
|
|
3896
3896
|
isMergedMainCell: !1
|
|
3897
3897
|
};
|
|
3898
|
-
const b =
|
|
3898
|
+
const b = wu(c, m), y = {
|
|
3899
3899
|
unitId: l,
|
|
3900
3900
|
subUnitId: u,
|
|
3901
3901
|
cellValue: b.redoParams.getMatrix()
|
|
@@ -3919,7 +3919,7 @@ const Yt = {
|
|
|
3919
3919
|
}), !0) : !1;
|
|
3920
3920
|
}
|
|
3921
3921
|
};
|
|
3922
|
-
function
|
|
3922
|
+
function wu(n, e) {
|
|
3923
3923
|
const t = new G(), o = new G();
|
|
3924
3924
|
return e.forEach((s) => {
|
|
3925
3925
|
const { startRow: r, startColumn: i, endColumn: a, endRow: u } = s, l = n.getCellMatrix().getValue(r, i);
|
|
@@ -3932,7 +3932,7 @@ function vu(n, e) {
|
|
|
3932
3932
|
undoParams: o
|
|
3933
3933
|
};
|
|
3934
3934
|
}
|
|
3935
|
-
const
|
|
3935
|
+
const Iu = (n) => {
|
|
3936
3936
|
const { order: e } = n, t = {};
|
|
3937
3937
|
return Object.keys(e).forEach((o) => {
|
|
3938
3938
|
t[e[Number(o)]] = Number(o);
|
|
@@ -3974,7 +3974,7 @@ const Mu = (n) => {
|
|
|
3974
3974
|
}
|
|
3975
3975
|
}, u = {
|
|
3976
3976
|
id: In.id,
|
|
3977
|
-
params:
|
|
3977
|
+
params: Iu(a.params)
|
|
3978
3978
|
}, l = n.get(V), c = l.onCommandExecute({ id: uo.id, params: e }), d = [
|
|
3979
3979
|
...(f = c.preRedos) != null ? f : [],
|
|
3980
3980
|
a,
|
|
@@ -4056,7 +4056,7 @@ const No = (n, e, t, o) => {
|
|
|
4056
4056
|
s.setValue(i, a, { s: { bd: l } });
|
|
4057
4057
|
}
|
|
4058
4058
|
});
|
|
4059
|
-
},
|
|
4059
|
+
}, vu = (n) => {
|
|
4060
4060
|
const e = {
|
|
4061
4061
|
startRow: n.startRow - 1,
|
|
4062
4062
|
startColumn: n.startColumn,
|
|
@@ -4109,7 +4109,7 @@ const No = (n, e, t, o) => {
|
|
|
4109
4109
|
rightRange: u
|
|
4110
4110
|
};
|
|
4111
4111
|
};
|
|
4112
|
-
function
|
|
4112
|
+
function Mu(n, e, t) {
|
|
4113
4113
|
const { style: o, color: s, type: r } = n.getBorderInfo(), i = r === ue.TOP || r === ue.ALL || r === ue.OUTSIDE, a = r === ue.LEFT || r === ue.ALL || r === ue.OUTSIDE, u = r === ue.BOTTOM || r === ue.ALL || r === ue.OUTSIDE, l = r === ue.RIGHT || r === ue.ALL || r === ue.OUTSIDE, c = r === ue.VERTICAL || r === ue.ALL || r === ue.INSIDE, d = r === ue.HORIZONTAL || r === ue.ALL || r === ue.INSIDE, h = r.indexOf("tlbr") > -1, m = r.indexOf("tlbc") > -1, g = r.indexOf("tlmr") > -1, f = r.indexOf("bltr") > -1, p = r.indexOf("mltr") > -1, C = r.indexOf("bctr") > -1, S = t[0], {
|
|
4114
4114
|
topRangeOut: I,
|
|
4115
4115
|
leftRangeOut: w,
|
|
@@ -4119,7 +4119,7 @@ function bu(n, e, t) {
|
|
|
4119
4119
|
leftRange: T,
|
|
4120
4120
|
bottomRange: U,
|
|
4121
4121
|
rightRange: P
|
|
4122
|
-
} =
|
|
4122
|
+
} = vu(S), A = new G(), { worksheet: j, unitId: Z, subUnitId: Y } = e;
|
|
4123
4123
|
return {
|
|
4124
4124
|
worksheet: j,
|
|
4125
4125
|
unitId: Z,
|
|
@@ -4157,7 +4157,7 @@ function bu(n, e, t) {
|
|
|
4157
4157
|
}
|
|
4158
4158
|
};
|
|
4159
4159
|
}
|
|
4160
|
-
const
|
|
4160
|
+
const _u = (n) => {
|
|
4161
4161
|
const { range: e, mr: t, borderStyle: o, vertical: s, horizontal: r, worksheet: i } = n;
|
|
4162
4162
|
s && vn(e, (a, u) => {
|
|
4163
4163
|
var c, d, h;
|
|
@@ -4217,18 +4217,18 @@ const yu = (n) => {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
});
|
|
4219
4219
|
};
|
|
4220
|
-
function
|
|
4220
|
+
function bu(n) {
|
|
4221
4221
|
const { borderStyle: e, tl_br: t, tl_bc: o, tl_mr: s, bl_tr: r, ml_tr: i, bc_tr: a } = n, u = (l, c, d) => {
|
|
4222
4222
|
No(n, l, c, d);
|
|
4223
4223
|
};
|
|
4224
4224
|
t && u(n.range, { tl_br: O.deepClone(e) }, !0), o && u(n.range, { tl_bc: O.deepClone(e) }, !0), s && u(n.range, { tl_mr: O.deepClone(e) }, !0), r && u(n.range, { bl_tr: O.deepClone(e) }, !0), i && u(n.range, { ml_tr: O.deepClone(e) }, !0), a && u(n.range, { bc_tr: O.deepClone(e) }, !0);
|
|
4225
4225
|
}
|
|
4226
|
-
const
|
|
4226
|
+
const yu = (n) => {
|
|
4227
4227
|
const { top: e, left: t, right: o, bottom: s, borderStyle: r, bottomRange: i, topRange: a, leftRange: u, rightRange: l, bottomRangeOut: c, topRangeOut: d, leftRangeOut: h, rightRangeOut: m } = n, g = (f, p, C) => {
|
|
4228
4228
|
No(n, f, p, C);
|
|
4229
4229
|
};
|
|
4230
4230
|
e && (g(d, { b: null }), g(a, { t: O.deepClone(r) }, !0)), s && (g(c, { t: null }), g(i, { b: O.deepClone(r) }, !0)), t && (g(h, { r: null }), g(u, { l: O.deepClone(r) }, !0)), o && (g(m, { l: null }), g(l, { r: O.deepClone(r) }, !0));
|
|
4231
|
-
},
|
|
4231
|
+
}, Eu = (n) => {
|
|
4232
4232
|
const { range: e, worksheet: t, mr: o, top: s, bottom: r, left: i, right: a, vertical: u, horizontal: l, tl_br: c, tl_bc: d, tl_mr: h, bl_tr: m, ml_tr: g, bc_tr: f, topRange: p, bottomRange: C, leftRange: S, rightRange: I, topRangeOut: w, bottomRangeOut: b, leftRangeOut: y, rightRangeOut: x } = n, T = (U, P, A) => {
|
|
4233
4233
|
No(n, U, P, A);
|
|
4234
4234
|
};
|
|
@@ -4315,8 +4315,8 @@ const Uu = (n) => {
|
|
|
4315
4315
|
return !1;
|
|
4316
4316
|
const { activeBorderType: l } = i.getBorderInfo();
|
|
4317
4317
|
if (!l) return !1;
|
|
4318
|
-
const c =
|
|
4319
|
-
|
|
4318
|
+
const c = Mu(i, a, u);
|
|
4319
|
+
_u(c), yu(c), bu(c), Eu(c);
|
|
4320
4320
|
const { unitId: d, subUnitId: h, mr: m } = c, g = {
|
|
4321
4321
|
unitId: d,
|
|
4322
4322
|
subUnitId: h,
|
|
@@ -4331,7 +4331,7 @@ const Uu = (n) => {
|
|
|
4331
4331
|
redoMutations: [{ id: Q.id, params: g }]
|
|
4332
4332
|
}), !0) : !1;
|
|
4333
4333
|
}
|
|
4334
|
-
},
|
|
4334
|
+
}, Uu = {
|
|
4335
4335
|
id: "sheet.command.set-border-position",
|
|
4336
4336
|
type: v.COMMAND,
|
|
4337
4337
|
handler: (n, e) => {
|
|
@@ -4339,21 +4339,21 @@ const Uu = (n) => {
|
|
|
4339
4339
|
const t = n.get(E);
|
|
4340
4340
|
return n.get(kt).setType(e.value), t.syncExecuteCommand(rn.id);
|
|
4341
4341
|
}
|
|
4342
|
-
},
|
|
4342
|
+
}, Pu = {
|
|
4343
4343
|
id: "sheet.command.set-border-style",
|
|
4344
4344
|
type: v.COMMAND,
|
|
4345
4345
|
handler: (n, e) => {
|
|
4346
4346
|
const t = n.get(E);
|
|
4347
4347
|
return n.get(kt).setStyle(e.value), t.syncExecuteCommand(rn.id);
|
|
4348
4348
|
}
|
|
4349
|
-
},
|
|
4349
|
+
}, Tu = {
|
|
4350
4350
|
id: "sheet.command.set-border-color",
|
|
4351
4351
|
type: v.COMMAND,
|
|
4352
4352
|
handler: (n, e) => {
|
|
4353
4353
|
const t = n.get(E);
|
|
4354
4354
|
return n.get(kt).setColor(e.value), t.syncExecuteCommand(rn.id);
|
|
4355
4355
|
}
|
|
4356
|
-
},
|
|
4356
|
+
}, ku = {
|
|
4357
4357
|
id: "sheet.command.set-border-basic",
|
|
4358
4358
|
type: v.COMMAND,
|
|
4359
4359
|
handler: (n, e) => {
|
|
@@ -4364,7 +4364,7 @@ const Uu = (n) => {
|
|
|
4364
4364
|
});
|
|
4365
4365
|
}
|
|
4366
4366
|
};
|
|
4367
|
-
function
|
|
4367
|
+
function Nu(n, e) {
|
|
4368
4368
|
if (n == null)
|
|
4369
4369
|
return n;
|
|
4370
4370
|
const t = O.deepClone(n);
|
|
@@ -4373,7 +4373,7 @@ function Du(n, e) {
|
|
|
4373
4373
|
const o = {};
|
|
4374
4374
|
return "h" in e && (o.h = t.h), "ia" in e && (o.ia = t.ia), "ah" in e && (o.ah = t.ah), "hd" in e && (o.hd = t.hd), "s" in e && (o.s = t.s), "custom" in e && (o.custom = t.custom), o;
|
|
4375
4375
|
}
|
|
4376
|
-
function
|
|
4376
|
+
function Ou(n, e) {
|
|
4377
4377
|
if (n == null)
|
|
4378
4378
|
return n;
|
|
4379
4379
|
const t = O.deepClone(n);
|
|
@@ -4382,11 +4382,11 @@ function Au(n, e) {
|
|
|
4382
4382
|
const o = {};
|
|
4383
4383
|
return "w" in e && (o.w = t.w), "hd" in e && (o.hd = t.hd), "s" in e && (o.s = t.s), "custom" in e && (o.custom = t.custom), o;
|
|
4384
4384
|
}
|
|
4385
|
-
const
|
|
4385
|
+
const Du = (n, e) => {
|
|
4386
4386
|
const { unitId: t, subUnitId: o, columnData: s } = n, r = {}, i = e.getColumnManager();
|
|
4387
4387
|
for (const a in s) {
|
|
4388
4388
|
const u = s[a], l = i.getColumn(Number(a));
|
|
4389
|
-
r[a] =
|
|
4389
|
+
r[a] = Ou(l, u);
|
|
4390
4390
|
}
|
|
4391
4391
|
return {
|
|
4392
4392
|
unitId: t,
|
|
@@ -4411,7 +4411,7 @@ const xu = (n, e) => {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
return !0;
|
|
4413
4413
|
}
|
|
4414
|
-
},
|
|
4414
|
+
}, Au = {
|
|
4415
4415
|
type: v.COMMAND,
|
|
4416
4416
|
id: "sheet.command.set-col-data",
|
|
4417
4417
|
handler: (n, e) => {
|
|
@@ -4421,14 +4421,14 @@ const xu = (n, e) => {
|
|
|
4421
4421
|
subUnitId: u,
|
|
4422
4422
|
unitId: a,
|
|
4423
4423
|
columnData: i
|
|
4424
|
-
}, d =
|
|
4424
|
+
}, d = Du(c, l);
|
|
4425
4425
|
return t.syncExecuteCommand(Lt.id, c) ? (o.pushUndoRedo({
|
|
4426
4426
|
unitID: a,
|
|
4427
4427
|
undoMutations: [{ id: Lt.id, params: d }],
|
|
4428
4428
|
redoMutations: [{ id: Lt.id, params: c }]
|
|
4429
4429
|
}), !0) : !1;
|
|
4430
4430
|
}
|
|
4431
|
-
},
|
|
4431
|
+
}, xu = (n, e) => {
|
|
4432
4432
|
if (n.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
4433
4433
|
throw new Error("universheet is null error!");
|
|
4434
4434
|
return {
|
|
@@ -4453,7 +4453,7 @@ const xu = (n, e) => {
|
|
|
4453
4453
|
}
|
|
4454
4454
|
return !0;
|
|
4455
4455
|
}
|
|
4456
|
-
},
|
|
4456
|
+
}, $u = (n, e) => {
|
|
4457
4457
|
if (n.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
4458
4458
|
throw new Error("universheet is null error!");
|
|
4459
4459
|
return {
|
|
@@ -4494,7 +4494,7 @@ const xu = (n, e) => {
|
|
|
4494
4494
|
subUnitId: o,
|
|
4495
4495
|
reveal: !0,
|
|
4496
4496
|
selections: s.map((I) => ({ range: I, primary: ve(I, l), style: null }))
|
|
4497
|
-
}, h =
|
|
4497
|
+
}, h = $u(n, c), m = {
|
|
4498
4498
|
unitId: t,
|
|
4499
4499
|
subUnitId: o,
|
|
4500
4500
|
selections: Er(s).map((I) => ({
|
|
@@ -4551,7 +4551,7 @@ const xu = (n, e) => {
|
|
|
4551
4551
|
const a = N(s, e);
|
|
4552
4552
|
if (!a) return !1;
|
|
4553
4553
|
const { worksheet: u, unitId: l, subUnitId: c } = a;
|
|
4554
|
-
i =
|
|
4554
|
+
i = Wu(a.worksheet, i);
|
|
4555
4555
|
const d = { unitId: l, subUnitId: c, ranges: i }, h = {
|
|
4556
4556
|
unitId: l,
|
|
4557
4557
|
subUnitId: c,
|
|
@@ -4560,7 +4560,7 @@ const xu = (n, e) => {
|
|
|
4560
4560
|
primary: ve(y, u),
|
|
4561
4561
|
style: null
|
|
4562
4562
|
}))
|
|
4563
|
-
}, m =
|
|
4563
|
+
}, m = xu(n, d), g = {
|
|
4564
4564
|
unitId: l,
|
|
4565
4565
|
subUnitId: c,
|
|
4566
4566
|
reveal: !0,
|
|
@@ -4592,7 +4592,7 @@ const xu = (n, e) => {
|
|
|
4592
4592
|
}), !0) : !1;
|
|
4593
4593
|
}
|
|
4594
4594
|
};
|
|
4595
|
-
function
|
|
4595
|
+
function Wu(n, e) {
|
|
4596
4596
|
const t = n.getRowCount() - 1, o = n.getHiddenCols(), s = [];
|
|
4597
4597
|
return e.forEach((r) => {
|
|
4598
4598
|
const i = o.filter((a) => a.startColumn >= r.startColumn && a.endColumn <= r.endColumn);
|
|
@@ -4606,7 +4606,7 @@ function Vu(n, e) {
|
|
|
4606
4606
|
}), s;
|
|
4607
4607
|
}
|
|
4608
4608
|
function Er(n) {
|
|
4609
|
-
return
|
|
4609
|
+
return Lu(n).map((t) => {
|
|
4610
4610
|
const o = t.startColumn === 0 ? t.endColumn + 1 : t.startColumn - 1;
|
|
4611
4611
|
return {
|
|
4612
4612
|
...t,
|
|
@@ -4615,7 +4615,7 @@ function Er(n) {
|
|
|
4615
4615
|
};
|
|
4616
4616
|
});
|
|
4617
4617
|
}
|
|
4618
|
-
function
|
|
4618
|
+
function Lu(n) {
|
|
4619
4619
|
const e = [];
|
|
4620
4620
|
let t;
|
|
4621
4621
|
return n.sort((o, s) => o.startColumn - s.startColumn).forEach((o) => {
|
|
@@ -4677,7 +4677,7 @@ const Ur = {
|
|
|
4677
4677
|
const r = s.getConfig(), { startRow: i, startColumn: a, ySplit: u, xSplit: l } = e;
|
|
4678
4678
|
return r.freeze = { startRow: i, startColumn: a, ySplit: u, xSplit: l }, !0;
|
|
4679
4679
|
}
|
|
4680
|
-
},
|
|
4680
|
+
}, Vu = {
|
|
4681
4681
|
type: v.COMMAND,
|
|
4682
4682
|
id: "sheet.command.set-frozen",
|
|
4683
4683
|
handler: (n, e) => {
|
|
@@ -4697,7 +4697,7 @@ const Ur = {
|
|
|
4697
4697
|
redoMutations: [{ id: ut.id, params: m }]
|
|
4698
4698
|
}), !0) : !1;
|
|
4699
4699
|
}
|
|
4700
|
-
},
|
|
4700
|
+
}, Hu = {
|
|
4701
4701
|
type: v.COMMAND,
|
|
4702
4702
|
id: "sheet.command.cancel-frozen",
|
|
4703
4703
|
handler: (n, e) => {
|
|
@@ -4726,7 +4726,7 @@ const Ur = {
|
|
|
4726
4726
|
const { worksheet: o } = t, s = o.getConfig();
|
|
4727
4727
|
return s.gridlinesColor = e.color, !0;
|
|
4728
4728
|
}
|
|
4729
|
-
},
|
|
4729
|
+
}, Bu = {
|
|
4730
4730
|
type: v.COMMAND,
|
|
4731
4731
|
id: "sheet.command.set-gridlines-color",
|
|
4732
4732
|
handler: (n, e) => {
|
|
@@ -4772,7 +4772,7 @@ const Ur = {
|
|
|
4772
4772
|
const { unitId: t, subUnitId: o, rule: s } = e;
|
|
4773
4773
|
return n.get(Ye).setRule(t, o, s), !0;
|
|
4774
4774
|
}
|
|
4775
|
-
},
|
|
4775
|
+
}, Fu = {
|
|
4776
4776
|
type: v.COMMAND,
|
|
4777
4777
|
id: "sheet.command.set-protection",
|
|
4778
4778
|
async handler(n, e) {
|
|
@@ -4785,11 +4785,11 @@ const Ur = {
|
|
|
4785
4785
|
redoMutations: l
|
|
4786
4786
|
}), !0;
|
|
4787
4787
|
}
|
|
4788
|
-
},
|
|
4788
|
+
}, ju = (n, e) => {
|
|
4789
4789
|
const { unitId: t, subUnitId: o, rowData: s } = n, r = {}, i = e.getRowManager();
|
|
4790
4790
|
for (const a in s) {
|
|
4791
4791
|
const u = s[a], l = i.getRow(Number(a));
|
|
4792
|
-
r[a] =
|
|
4792
|
+
r[a] = Nu(l, u);
|
|
4793
4793
|
}
|
|
4794
4794
|
return {
|
|
4795
4795
|
unitId: t,
|
|
@@ -4814,7 +4814,7 @@ const Ur = {
|
|
|
4814
4814
|
}
|
|
4815
4815
|
return !0;
|
|
4816
4816
|
}
|
|
4817
|
-
},
|
|
4817
|
+
}, Gu = {
|
|
4818
4818
|
type: v.COMMAND,
|
|
4819
4819
|
id: "sheet.command.set-row-data",
|
|
4820
4820
|
handler: (n, e) => {
|
|
@@ -4824,14 +4824,14 @@ const Ur = {
|
|
|
4824
4824
|
subUnitId: u,
|
|
4825
4825
|
unitId: a,
|
|
4826
4826
|
rowData: i
|
|
4827
|
-
}, d =
|
|
4827
|
+
}, d = ju(c, l);
|
|
4828
4828
|
return t.syncExecuteCommand(Ht.id, c) ? (o.pushUndoRedo({
|
|
4829
4829
|
unitID: a,
|
|
4830
4830
|
undoMutations: [{ id: Ht.id, params: d }],
|
|
4831
4831
|
redoMutations: [{ id: Ht.id, params: c }]
|
|
4832
4832
|
}), !0) : !1;
|
|
4833
4833
|
}
|
|
4834
|
-
},
|
|
4834
|
+
}, zu = (n, e) => {
|
|
4835
4835
|
if (n.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
4836
4836
|
throw new Error("universheet is null error!");
|
|
4837
4837
|
return {
|
|
@@ -4856,7 +4856,7 @@ const Ur = {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
return !0;
|
|
4858
4858
|
}
|
|
4859
|
-
},
|
|
4859
|
+
}, Ku = (n, e) => {
|
|
4860
4860
|
if (n.get(M).getUniverSheetInstance(e.unitId) == null)
|
|
4861
4861
|
throw new Error("universheet is null error!");
|
|
4862
4862
|
return {
|
|
@@ -4897,7 +4897,7 @@ const Ur = {
|
|
|
4897
4897
|
primary: ve(w, l),
|
|
4898
4898
|
style: null
|
|
4899
4899
|
}))
|
|
4900
|
-
}, h =
|
|
4900
|
+
}, h = zu(n, c), m = {
|
|
4901
4901
|
unitId: t,
|
|
4902
4902
|
subUnitId: o,
|
|
4903
4903
|
selections: Nr(s).map((w) => ({
|
|
@@ -4957,7 +4957,7 @@ const Ur = {
|
|
|
4957
4957
|
if (!(a != null && a.length)) return !1;
|
|
4958
4958
|
const u = N(r, e);
|
|
4959
4959
|
if (!u) return !1;
|
|
4960
|
-
a =
|
|
4960
|
+
a = Ju(u.worksheet, a);
|
|
4961
4961
|
const { unitId: l, subUnitId: c, worksheet: d } = u, h = { unitId: l, subUnitId: c, ranges: a }, m = {
|
|
4962
4962
|
unitId: l,
|
|
4963
4963
|
subUnitId: c,
|
|
@@ -4966,7 +4966,7 @@ const Ur = {
|
|
|
4966
4966
|
primary: ve(T, d),
|
|
4967
4967
|
style: null
|
|
4968
4968
|
}))
|
|
4969
|
-
}, g =
|
|
4969
|
+
}, g = Ku(n, h), f = {
|
|
4970
4970
|
unitId: l,
|
|
4971
4971
|
subUnitId: c,
|
|
4972
4972
|
reveal: !0,
|
|
@@ -4998,7 +4998,7 @@ const Ur = {
|
|
|
4998
4998
|
}), !0;
|
|
4999
4999
|
}
|
|
5000
5000
|
};
|
|
5001
|
-
function
|
|
5001
|
+
function Ju(n, e) {
|
|
5002
5002
|
const t = n.getMaxColumns() - 1, o = n.getHiddenRows(), s = [];
|
|
5003
5003
|
return e.forEach((r) => {
|
|
5004
5004
|
const i = o.filter((a) => a.startRow >= r.startRow && a.endRow <= r.endRow);
|
|
@@ -5012,7 +5012,7 @@ function Xu(n, e) {
|
|
|
5012
5012
|
}), s;
|
|
5013
5013
|
}
|
|
5014
5014
|
function Nr(n) {
|
|
5015
|
-
return
|
|
5015
|
+
return Yu(n).map((t) => {
|
|
5016
5016
|
const o = t.startRow === 0 ? t.endRow + 1 : t.startRow - 1;
|
|
5017
5017
|
return {
|
|
5018
5018
|
...t,
|
|
@@ -5021,7 +5021,7 @@ function Nr(n) {
|
|
|
5021
5021
|
};
|
|
5022
5022
|
});
|
|
5023
5023
|
}
|
|
5024
|
-
function
|
|
5024
|
+
function Yu(n) {
|
|
5025
5025
|
const e = [];
|
|
5026
5026
|
let t;
|
|
5027
5027
|
return n.sort((o, s) => o.startRow - s.startRow).forEach((o) => {
|
|
@@ -5208,7 +5208,7 @@ const fe = {
|
|
|
5208
5208
|
};
|
|
5209
5209
|
return t.syncExecuteCommand(fe.id, o);
|
|
5210
5210
|
}
|
|
5211
|
-
},
|
|
5211
|
+
}, Xu = {
|
|
5212
5212
|
type: v.COMMAND,
|
|
5213
5213
|
id: "sheet.command.set-text-color",
|
|
5214
5214
|
handler: (n, e) => {
|
|
@@ -5224,7 +5224,7 @@ const fe = {
|
|
|
5224
5224
|
};
|
|
5225
5225
|
return t.syncExecuteCommand(fe.id, o);
|
|
5226
5226
|
}
|
|
5227
|
-
},
|
|
5227
|
+
}, qu = {
|
|
5228
5228
|
type: v.COMMAND,
|
|
5229
5229
|
id: "sheet.command.reset-text-color",
|
|
5230
5230
|
handler: (n) => {
|
|
@@ -5239,7 +5239,7 @@ const fe = {
|
|
|
5239
5239
|
};
|
|
5240
5240
|
return e.syncExecuteCommand(fe.id, t);
|
|
5241
5241
|
}
|
|
5242
|
-
},
|
|
5242
|
+
}, Zu = {
|
|
5243
5243
|
type: v.COMMAND,
|
|
5244
5244
|
id: "sheet.command.set-background-color",
|
|
5245
5245
|
handler: (n, e) => {
|
|
@@ -5255,7 +5255,7 @@ const fe = {
|
|
|
5255
5255
|
};
|
|
5256
5256
|
return t.syncExecuteCommand(fe.id, o);
|
|
5257
5257
|
}
|
|
5258
|
-
},
|
|
5258
|
+
}, Qu = {
|
|
5259
5259
|
type: v.COMMAND,
|
|
5260
5260
|
id: "sheet.command.reset-background-color",
|
|
5261
5261
|
handler: (n) => {
|
|
@@ -5270,7 +5270,7 @@ const fe = {
|
|
|
5270
5270
|
};
|
|
5271
5271
|
return e.syncExecuteCommand(fe.id, t);
|
|
5272
5272
|
}
|
|
5273
|
-
},
|
|
5273
|
+
}, el = {
|
|
5274
5274
|
type: v.COMMAND,
|
|
5275
5275
|
id: "sheet.command.set-vertical-text-align",
|
|
5276
5276
|
handler: (n, e) => {
|
|
@@ -5287,7 +5287,7 @@ const fe = {
|
|
|
5287
5287
|
};
|
|
5288
5288
|
return t.syncExecuteCommand(fe.id, o);
|
|
5289
5289
|
}
|
|
5290
|
-
},
|
|
5290
|
+
}, tl = {
|
|
5291
5291
|
type: v.COMMAND,
|
|
5292
5292
|
id: "sheet.command.set-horizontal-text-align",
|
|
5293
5293
|
handler: (n, e) => {
|
|
@@ -5304,7 +5304,7 @@ const fe = {
|
|
|
5304
5304
|
};
|
|
5305
5305
|
return t.syncExecuteCommand(fe.id, o);
|
|
5306
5306
|
}
|
|
5307
|
-
},
|
|
5307
|
+
}, nl = {
|
|
5308
5308
|
type: v.COMMAND,
|
|
5309
5309
|
id: "sheet.command.set-text-wrap",
|
|
5310
5310
|
handler: (n, e) => {
|
|
@@ -5321,7 +5321,7 @@ const fe = {
|
|
|
5321
5321
|
};
|
|
5322
5322
|
return t.syncExecuteCommand(fe.id, o);
|
|
5323
5323
|
}
|
|
5324
|
-
},
|
|
5324
|
+
}, ol = {
|
|
5325
5325
|
type: v.COMMAND,
|
|
5326
5326
|
id: "sheet.command.set-text-rotation",
|
|
5327
5327
|
handler: (n, e) => {
|
|
@@ -5335,7 +5335,7 @@ const fe = {
|
|
|
5335
5335
|
};
|
|
5336
5336
|
return o.syncExecuteCommand(fe.id, s);
|
|
5337
5337
|
}
|
|
5338
|
-
},
|
|
5338
|
+
}, sl = (n, e) => {
|
|
5339
5339
|
const r = n.get(M).getUniverSheetInstance(e.unitId).getSheetBySheetId(e.subUnitId).getConfig().tabColor;
|
|
5340
5340
|
return {
|
|
5341
5341
|
...O.deepClone(e),
|
|
@@ -5350,7 +5350,7 @@ const fe = {
|
|
|
5350
5350
|
const o = t.getSheetBySheetId(e.subUnitId);
|
|
5351
5351
|
return o ? (o.getConfig().tabColor = e.color, !0) : !1;
|
|
5352
5352
|
}
|
|
5353
|
-
},
|
|
5353
|
+
}, rl = {
|
|
5354
5354
|
type: v.COMMAND,
|
|
5355
5355
|
id: "sheet.command.set-tab-color",
|
|
5356
5356
|
handler: (n, e) => {
|
|
@@ -5360,7 +5360,7 @@ const fe = {
|
|
|
5360
5360
|
color: e.value,
|
|
5361
5361
|
unitId: r,
|
|
5362
5362
|
subUnitId: i
|
|
5363
|
-
}, u =
|
|
5363
|
+
}, u = sl(n, a);
|
|
5364
5364
|
return t.syncExecuteCommand(fn.id, a) ? (o.pushUndoRedo({
|
|
5365
5365
|
unitID: r,
|
|
5366
5366
|
undoMutations: [{ id: fn.id, params: u }],
|
|
@@ -5405,7 +5405,7 @@ const fe = {
|
|
|
5405
5405
|
return t.setActiveSheet(s), !0;
|
|
5406
5406
|
return !1;
|
|
5407
5407
|
}
|
|
5408
|
-
},
|
|
5408
|
+
}, il = 4, Ar = {
|
|
5409
5409
|
type: v.COMMAND,
|
|
5410
5410
|
id: "sheet.command.set-worksheet-activate",
|
|
5411
5411
|
handler: (n, e, t) => {
|
|
@@ -5419,7 +5419,7 @@ const fe = {
|
|
|
5419
5419
|
subUnitId: i
|
|
5420
5420
|
}, t);
|
|
5421
5421
|
a(u);
|
|
5422
|
-
},
|
|
5422
|
+
}, il);
|
|
5423
5423
|
});
|
|
5424
5424
|
}
|
|
5425
5425
|
}, xr = (n, e) => {
|
|
@@ -5541,7 +5541,7 @@ const fe = {
|
|
|
5541
5541
|
redoMutations: [...(b = p.preRedos) != null ? b : [], { id: tt.id, params: d }, ...f]
|
|
5542
5542
|
}), !0) : !1;
|
|
5543
5543
|
}
|
|
5544
|
-
},
|
|
5544
|
+
}, al = {
|
|
5545
5545
|
type: v.COMMAND,
|
|
5546
5546
|
id: "sheet.command.set-col-is-auto-width",
|
|
5547
5547
|
handler: async (n, e) => {
|
|
@@ -5563,7 +5563,7 @@ const fe = {
|
|
|
5563
5563
|
subUnitId: u,
|
|
5564
5564
|
ranges: l
|
|
5565
5565
|
}, { undos: d, redos: h } = n.get(V).onCommandExecute({
|
|
5566
|
-
id:
|
|
5566
|
+
id: al.id,
|
|
5567
5567
|
params: c
|
|
5568
5568
|
});
|
|
5569
5569
|
return z([...h], t).result ? (o.pushUndoRedo({
|
|
@@ -5581,7 +5581,7 @@ const fe = {
|
|
|
5581
5581
|
const { worksheet: r } = s;
|
|
5582
5582
|
return r ? (r.setDefaultCellStyle(t), !0) : !1;
|
|
5583
5583
|
}
|
|
5584
|
-
},
|
|
5584
|
+
}, ul = (n, e) => {
|
|
5585
5585
|
const t = Et(n.get(M), e);
|
|
5586
5586
|
if (!t)
|
|
5587
5587
|
throw new Error("[SetWorksheetDefaultStyleMutationFactory]: worksheet is null error!");
|
|
@@ -5591,11 +5591,11 @@ const fe = {
|
|
|
5591
5591
|
subUnitId: o.getSheetId(),
|
|
5592
5592
|
defaultStyle: o.getDefaultCellStyle()
|
|
5593
5593
|
};
|
|
5594
|
-
},
|
|
5594
|
+
}, ll = {
|
|
5595
5595
|
type: v.COMMAND,
|
|
5596
5596
|
id: "sheet.command.set-worksheet-default-style",
|
|
5597
5597
|
handler: (n, e) => {
|
|
5598
|
-
const t = n.get(E), o = n.get(W), { unitId: s } = e, r =
|
|
5598
|
+
const t = n.get(E), o = n.get(W), { unitId: s } = e, r = ul(n, e);
|
|
5599
5599
|
return t.syncExecuteCommand(Bt.id, e) ? (o.pushUndoRedo({
|
|
5600
5600
|
unitID: s,
|
|
5601
5601
|
undoMutations: [{ id: Bt.id, params: r }],
|
|
@@ -5622,7 +5622,7 @@ const fe = {
|
|
|
5622
5622
|
const o = t.getSheetBySheetId(e.subUnitId);
|
|
5623
5623
|
return o ? (o.getConfig().hidden = e.hidden, !0) : !1;
|
|
5624
5624
|
}
|
|
5625
|
-
},
|
|
5625
|
+
}, cl = {
|
|
5626
5626
|
type: v.COMMAND,
|
|
5627
5627
|
id: "sheet.command.set-worksheet-hidden",
|
|
5628
5628
|
handler: (n, e) => {
|
|
@@ -5641,7 +5641,7 @@ const fe = {
|
|
|
5641
5641
|
redoMutations: [{ id: lt.id, params: h }]
|
|
5642
5642
|
}), !0) : !1;
|
|
5643
5643
|
}
|
|
5644
|
-
},
|
|
5644
|
+
}, dl = (n, e) => {
|
|
5645
5645
|
const t = Et(n.get(M), e);
|
|
5646
5646
|
if (!t)
|
|
5647
5647
|
throw new Error("[SetWorksheetNameMutationFactory]: worksheet is null error!");
|
|
@@ -5672,7 +5672,7 @@ const fe = {
|
|
|
5672
5672
|
subUnitId: a,
|
|
5673
5673
|
name: e.name,
|
|
5674
5674
|
unitId: i
|
|
5675
|
-
}, l =
|
|
5675
|
+
}, l = dl(
|
|
5676
5676
|
n,
|
|
5677
5677
|
u
|
|
5678
5678
|
), c = s.onCommandExecute({
|
|
@@ -5693,7 +5693,7 @@ const fe = {
|
|
|
5693
5693
|
redoMutations: d
|
|
5694
5694
|
}), !0) : !1;
|
|
5695
5695
|
}
|
|
5696
|
-
},
|
|
5696
|
+
}, hl = (n, e) => ({
|
|
5697
5697
|
...O.deepClone(e),
|
|
5698
5698
|
toOrder: e.fromOrder,
|
|
5699
5699
|
fromOrder: e.toOrder
|
|
@@ -5717,7 +5717,7 @@ const fe = {
|
|
|
5717
5717
|
toOrder: e.order,
|
|
5718
5718
|
unitId: i,
|
|
5719
5719
|
subUnitId: a
|
|
5720
|
-
}, c =
|
|
5720
|
+
}, c = hl(n, l);
|
|
5721
5721
|
return t.syncExecuteCommand(Rn.id, l) ? (o.pushUndoRedo({
|
|
5722
5722
|
unitID: i,
|
|
5723
5723
|
undoMutations: [{ id: Rn.id, params: c }],
|
|
@@ -5828,7 +5828,7 @@ const Ie = () => [Io, Pe, Vr, Lr], it = [_.Edit, _.View, _.ManageCollaborator, _
|
|
|
5828
5828
|
Ys,
|
|
5829
5829
|
zs,
|
|
5830
5830
|
Vs
|
|
5831
|
-
],
|
|
5831
|
+
], ml = [
|
|
5832
5832
|
_.Edit,
|
|
5833
5833
|
_.Print,
|
|
5834
5834
|
_.Comment,
|
|
@@ -5883,12 +5883,12 @@ const Ie = () => [Io, Pe, Vr, Lr], it = [_.Edit, _.View, _.ManageCollaborator, _
|
|
|
5883
5883
|
_.SetRowStyle,
|
|
5884
5884
|
_.Sort
|
|
5885
5885
|
];
|
|
5886
|
-
var
|
|
5887
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
5886
|
+
var gl = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, Rl = (n, e, t, o) => {
|
|
5887
|
+
for (var s = o > 1 ? void 0 : o ? fl(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
5888
5888
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5889
|
-
return o && s &&
|
|
5889
|
+
return o && s && gl(e, t, s), s;
|
|
5890
5890
|
}, Ze = (n, e) => (t, o) => e(t, o, n);
|
|
5891
|
-
const
|
|
5891
|
+
const pl = "SHEET_WORKSHEET_PROTECTION_PLUGIN", Cl = "SHEET_WORKSHEET_PROTECTION_POINT_PLUGIN";
|
|
5892
5892
|
let bn = class extends ps {
|
|
5893
5893
|
constructor(n, e, t, o, s, r, i, a) {
|
|
5894
5894
|
super(), this._permissionService = n, this._univerInstanceService = e, this._injector = t, this._worksheetProtectionRuleModel = o, this._worksheetProtectionPointRuleModel = s, this._resourceManagerService = r, this._rangeProtectionRuleModel = i, this._logService = a, this._init(), this._initRuleChange(), this._initRuleSnapshot(), this._initPointSnapshot();
|
|
@@ -5972,7 +5972,7 @@ let bn = class extends ps {
|
|
|
5972
5972
|
this._resourceManagerService.registerPluginResource({
|
|
5973
5973
|
toJson: n,
|
|
5974
5974
|
parseJson: e,
|
|
5975
|
-
pluginName:
|
|
5975
|
+
pluginName: pl,
|
|
5976
5976
|
businesses: [Sn.UNIVER_SHEET],
|
|
5977
5977
|
onLoad: (t, o) => {
|
|
5978
5978
|
this._worksheetProtectionRuleModel.fromObject(o), Object.keys(o).forEach((s) => {
|
|
@@ -6015,7 +6015,7 @@ let bn = class extends ps {
|
|
|
6015
6015
|
this._resourceManagerService.registerPluginResource({
|
|
6016
6016
|
toJson: n,
|
|
6017
6017
|
parseJson: e,
|
|
6018
|
-
pluginName:
|
|
6018
|
+
pluginName: Cl,
|
|
6019
6019
|
businesses: [Sn.UNIVER_SHEET],
|
|
6020
6020
|
onLoad: (t, o) => {
|
|
6021
6021
|
this._worksheetProtectionPointRuleModel.fromObject(o), Object.keys(o).forEach((s) => {
|
|
@@ -6032,7 +6032,7 @@ let bn = class extends ps {
|
|
|
6032
6032
|
);
|
|
6033
6033
|
}
|
|
6034
6034
|
};
|
|
6035
|
-
bn =
|
|
6035
|
+
bn = Rl([
|
|
6036
6036
|
Ze(0, L(Fe)),
|
|
6037
6037
|
Ze(1, L(M)),
|
|
6038
6038
|
Ze(2, L(Ro)),
|
|
@@ -6049,7 +6049,7 @@ const Ao = {
|
|
|
6049
6049
|
const { rule: t } = e;
|
|
6050
6050
|
return n.get(un).addRule(t), !0;
|
|
6051
6051
|
}
|
|
6052
|
-
},
|
|
6052
|
+
}, Sl = {
|
|
6053
6053
|
type: v.COMMAND,
|
|
6054
6054
|
id: "sheet.command.set-worksheet-permission-points",
|
|
6055
6055
|
async handler(n, e) {
|
|
@@ -6062,7 +6062,7 @@ const Ao = {
|
|
|
6062
6062
|
subUnitId: o.subUnitId
|
|
6063
6063
|
}), !0;
|
|
6064
6064
|
}
|
|
6065
|
-
},
|
|
6065
|
+
}, wl = {
|
|
6066
6066
|
type: v.COMMAND,
|
|
6067
6067
|
id: "sheet.command.set-worksheet-protection",
|
|
6068
6068
|
async handler(n, e) {
|
|
@@ -6083,7 +6083,7 @@ const Ao = {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
return !0;
|
|
6085
6085
|
}
|
|
6086
|
-
},
|
|
6086
|
+
}, Il = 2e3, Hr = (n, e) => {
|
|
6087
6087
|
const { unitId: t, subUnitId: o, ranges: s } = n, r = {}, i = e.getRowManager();
|
|
6088
6088
|
for (const { startRow: a, endRow: u } of s)
|
|
6089
6089
|
for (let l = a; l < u + 1; l++) {
|
|
@@ -6131,7 +6131,7 @@ const Ao = {
|
|
|
6131
6131
|
for (const { startRow: c, endRow: d } of t)
|
|
6132
6132
|
for (let h = c; h <= d; h++) {
|
|
6133
6133
|
const m = a.getRowOrCreate(h);
|
|
6134
|
-
typeof o == "number" ? m.h = o : m.h = (l = o[h]) != null ? l : u, m.h = Math.min(
|
|
6134
|
+
typeof o == "number" ? m.h = o : m.h = (l = o[h]) != null ? l : u, m.h = Math.min(Il, m.h);
|
|
6135
6135
|
}
|
|
6136
6136
|
return !0;
|
|
6137
6137
|
}
|
|
@@ -6378,7 +6378,7 @@ const Ao = {
|
|
|
6378
6378
|
}), !0) : !1;
|
|
6379
6379
|
}
|
|
6380
6380
|
};
|
|
6381
|
-
class
|
|
6381
|
+
class vl {
|
|
6382
6382
|
constructor() {
|
|
6383
6383
|
R(this, "_tabCount", 0);
|
|
6384
6384
|
R(this, "_commaCount", 0);
|
|
@@ -6409,44 +6409,44 @@ class _l {
|
|
|
6409
6409
|
return e === 0 || e === this._tabCount ? 1 : e === this._commaCount ? 2 : e === this._semicolonCount ? 4 : e === this._spaceCount ? 8 : 1;
|
|
6410
6410
|
}
|
|
6411
6411
|
}
|
|
6412
|
-
function
|
|
6412
|
+
function Ml(n, e, t) {
|
|
6413
6413
|
const o = [];
|
|
6414
6414
|
t !== void 0 && (n & 16) > 0 && o.push(t), (n & 1) > 0 && o.push(" "), (n & 2) > 0 && o.push(","), (n & 4) > 0 && o.push(";"), (n & 8) > 0 && o.push(" ");
|
|
6415
6415
|
let s = "";
|
|
6416
6416
|
for (const i of o)
|
|
6417
|
-
s +=
|
|
6417
|
+
s += _l(i);
|
|
6418
6418
|
let r = "[".concat(s, "]");
|
|
6419
6419
|
return e && (r += "+"), new RegExp(r);
|
|
6420
6420
|
}
|
|
6421
|
-
function
|
|
6421
|
+
function _l(n) {
|
|
6422
6422
|
return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
6423
6423
|
}
|
|
6424
|
-
const
|
|
6424
|
+
const bl = (n) => {
|
|
6425
6425
|
var t;
|
|
6426
6426
|
return ((t = n.body) == null ? void 0 : t.dataStream.replace(/\r\n$/, "")) || "";
|
|
6427
6427
|
};
|
|
6428
|
-
function
|
|
6428
|
+
function yl(n) {
|
|
6429
6429
|
if (n != null) {
|
|
6430
6430
|
if (n.p)
|
|
6431
|
-
return
|
|
6431
|
+
return bl(n.p);
|
|
6432
6432
|
if (n.v && typeof n.v == "string")
|
|
6433
6433
|
return n.v;
|
|
6434
6434
|
if (n.t && (n.t === se.FORCE_STRING || n.t === se.STRING))
|
|
6435
6435
|
return String(n.v);
|
|
6436
6436
|
}
|
|
6437
6437
|
}
|
|
6438
|
-
function
|
|
6438
|
+
function El(n, e, t, o, s = !1) {
|
|
6439
6439
|
const r = K.transformRange(e, n), { startColumn: i, startRow: a, endColumn: u, endRow: l } = r;
|
|
6440
6440
|
if (i !== u)
|
|
6441
6441
|
throw new Error("The range must be in the same column.");
|
|
6442
6442
|
if (t && (t & 16) > 0 && (o === void 0 || o.length !== 1))
|
|
6443
6443
|
throw new Error("The custom delimiter must a character.");
|
|
6444
|
-
const c = t === void 0, d = c ? new
|
|
6444
|
+
const c = t === void 0, d = c ? new vl() : null, h = [];
|
|
6445
6445
|
for (let I = a; I <= l; I++) {
|
|
6446
|
-
const w = n.getCell(I, i), b =
|
|
6446
|
+
const w = n.getCell(I, i), b = yl(w);
|
|
6447
6447
|
h.push(b), d && d.update(b);
|
|
6448
6448
|
}
|
|
6449
|
-
const m = c ? d.getDelimiter() : t, g =
|
|
6449
|
+
const m = c ? d.getDelimiter() : t, g = Ml(m, s, o);
|
|
6450
6450
|
let f = -1, p = 0, C = 0;
|
|
6451
6451
|
const S = [];
|
|
6452
6452
|
for (const I of h) {
|
|
@@ -6463,7 +6463,7 @@ function Pl(n, e, t, o, s = !1) {
|
|
|
6463
6463
|
lastRow: p
|
|
6464
6464
|
};
|
|
6465
6465
|
}
|
|
6466
|
-
const
|
|
6466
|
+
const Ul = {
|
|
6467
6467
|
type: v.COMMAND,
|
|
6468
6468
|
id: "sheet.command.split-text-to-columns",
|
|
6469
6469
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -6474,7 +6474,7 @@ const Tl = {
|
|
|
6474
6474
|
if (!h) return !1;
|
|
6475
6475
|
const m = h.getSheetBySheetId(o);
|
|
6476
6476
|
if (!m) return !1;
|
|
6477
|
-
const { lastRow: g, rs: f, maxLength: p } =
|
|
6477
|
+
const { lastRow: g, rs: f, maxLength: p } = El(m, s, r, i, a), C = m.getColumnCount(), { startColumn: S } = K.transformRange(s, m);
|
|
6478
6478
|
if (s.startColumn !== s.endColumn)
|
|
6479
6479
|
return !1;
|
|
6480
6480
|
const I = [], w = [], b = S + p + 1 - C;
|
|
@@ -6533,7 +6533,7 @@ const Tl = {
|
|
|
6533
6533
|
redoMutations: I
|
|
6534
6534
|
}), !0) : !1;
|
|
6535
6535
|
}
|
|
6536
|
-
},
|
|
6536
|
+
}, Pl = {
|
|
6537
6537
|
id: "sheet.command.toggle-cell-checkbox",
|
|
6538
6538
|
type: v.COMMAND,
|
|
6539
6539
|
handler: (n, e) => {
|
|
@@ -6585,7 +6585,7 @@ const Tl = {
|
|
|
6585
6585
|
const { worksheet: o } = t, s = o.getConfig();
|
|
6586
6586
|
return s.showGridlines = e.showGridlines, !0;
|
|
6587
6587
|
}
|
|
6588
|
-
},
|
|
6588
|
+
}, Tl = {
|
|
6589
6589
|
type: v.COMMAND,
|
|
6590
6590
|
id: "sheet.command.toggle-gridlines",
|
|
6591
6591
|
handler: (n, e) => {
|
|
@@ -6608,7 +6608,7 @@ const Tl = {
|
|
|
6608
6608
|
redoMutations: [{ id: Ft.id, params: c }]
|
|
6609
6609
|
}), !0) : !1;
|
|
6610
6610
|
}
|
|
6611
|
-
},
|
|
6611
|
+
}, kl = {
|
|
6612
6612
|
id: "sheet.command.unregister-worksheet-range-theme-style",
|
|
6613
6613
|
type: v.COMMAND,
|
|
6614
6614
|
handler: (n, e) => {
|
|
@@ -6631,11 +6631,11 @@ const Tl = {
|
|
|
6631
6631
|
redoMutations: [{ id: Uo.id, params: l }]
|
|
6632
6632
|
}), !0;
|
|
6633
6633
|
}
|
|
6634
|
-
},
|
|
6634
|
+
}, Nl = {
|
|
6635
6635
|
id: "sheet.mutation.empty",
|
|
6636
6636
|
type: v.MUTATION,
|
|
6637
6637
|
handler: () => !0
|
|
6638
|
-
},
|
|
6638
|
+
}, Ol = (n) => {
|
|
6639
6639
|
const e = new G();
|
|
6640
6640
|
return n.forEach((t) => {
|
|
6641
6641
|
K.foreach(t, (o, s) => {
|
|
@@ -6645,7 +6645,7 @@ const Tl = {
|
|
|
6645
6645
|
const s = e.getValue(t - 1, o);
|
|
6646
6646
|
s && e.setValue(t, o, s + 1);
|
|
6647
6647
|
}), e;
|
|
6648
|
-
},
|
|
6648
|
+
}, Dl = (n) => {
|
|
6649
6649
|
const e = n;
|
|
6650
6650
|
return e.forValue((t, o) => {
|
|
6651
6651
|
const s = n.getValue(t - 1, o);
|
|
@@ -6675,7 +6675,7 @@ const Tl = {
|
|
|
6675
6675
|
u.startColumn = l, u.startRow = o - a + 1, t(c, u);
|
|
6676
6676
|
}
|
|
6677
6677
|
}), e;
|
|
6678
|
-
},
|
|
6678
|
+
}, Al = (n, e) => {
|
|
6679
6679
|
K.foreach(e, (t, o) => {
|
|
6680
6680
|
n.realDeleteValue(t, o);
|
|
6681
6681
|
});
|
|
@@ -6693,10 +6693,10 @@ const Tl = {
|
|
|
6693
6693
|
const e = [];
|
|
6694
6694
|
let t = Qo(n);
|
|
6695
6695
|
for (; t.area > 0; )
|
|
6696
|
-
t.range && (e.push(t.range),
|
|
6696
|
+
t.range && (e.push(t.range), Al(n, t.range)), t = Qo(n);
|
|
6697
6697
|
return e;
|
|
6698
6698
|
}, Gr = (n) => {
|
|
6699
|
-
const e =
|
|
6699
|
+
const e = Ol(n);
|
|
6700
6700
|
return jr(e);
|
|
6701
6701
|
};
|
|
6702
6702
|
class ah {
|
|
@@ -6718,7 +6718,7 @@ class ah {
|
|
|
6718
6718
|
}), this;
|
|
6719
6719
|
}
|
|
6720
6720
|
merge() {
|
|
6721
|
-
const e =
|
|
6721
|
+
const e = Dl(this._matrix);
|
|
6722
6722
|
return jr(e);
|
|
6723
6723
|
}
|
|
6724
6724
|
}
|
|
@@ -6810,15 +6810,15 @@ const wt = fo("INumfmtService"), uh = (n, e) => {
|
|
|
6810
6810
|
r[l] || (r[l] = { ranges: [] }), r[l].ranges.push(ws(c.row, c.col));
|
|
6811
6811
|
});
|
|
6812
6812
|
}), { unitId: n, subUnitId: e, refMap: s, values: r };
|
|
6813
|
-
},
|
|
6813
|
+
}, xl = {
|
|
6814
6814
|
id: "sheet.operation.scroll-to-cell",
|
|
6815
6815
|
type: v.OPERATION,
|
|
6816
6816
|
handler: () => !0
|
|
6817
|
-
}, Kr = "ONLY_REGISTER_FORMULA_RELATED_MUTATIONS_KEY",
|
|
6818
|
-
var
|
|
6819
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6817
|
+
}, Kr = "ONLY_REGISTER_FORMULA_RELATED_MUTATIONS_KEY", $l = "maxCellsPerSheet", Wl = 3e6;
|
|
6818
|
+
var Ll = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, Hl = (n, e, t, o) => {
|
|
6819
|
+
for (var s = o > 1 ? void 0 : o ? Vl(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
6820
6820
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6821
|
-
return o && s &&
|
|
6821
|
+
return o && s && Ll(e, t, s), s;
|
|
6822
6822
|
}, to = (n, e) => (t, o) => e(t, o, n);
|
|
6823
6823
|
let yn = class extends ae {
|
|
6824
6824
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -6842,7 +6842,7 @@ let yn = class extends ae {
|
|
|
6842
6842
|
_n,
|
|
6843
6843
|
Vo,
|
|
6844
6844
|
In,
|
|
6845
|
-
|
|
6845
|
+
Nl,
|
|
6846
6846
|
Qt,
|
|
6847
6847
|
// formula SUBTOTAL
|
|
6848
6848
|
Zt,
|
|
@@ -6860,17 +6860,17 @@ let yn = class extends ae {
|
|
|
6860
6860
|
Tt,
|
|
6861
6861
|
Oo,
|
|
6862
6862
|
$o,
|
|
6863
|
-
|
|
6864
|
-
|
|
6863
|
+
hu,
|
|
6864
|
+
du,
|
|
6865
6865
|
pr,
|
|
6866
6866
|
gt,
|
|
6867
6867
|
sn,
|
|
6868
6868
|
Bn,
|
|
6869
|
-
|
|
6870
|
-
|
|
6869
|
+
cu,
|
|
6870
|
+
lu,
|
|
6871
6871
|
fr,
|
|
6872
6872
|
mt,
|
|
6873
|
-
|
|
6873
|
+
mu,
|
|
6874
6874
|
jn,
|
|
6875
6875
|
pt,
|
|
6876
6876
|
Fn,
|
|
@@ -6880,43 +6880,43 @@ let yn = class extends ae {
|
|
|
6880
6880
|
Gn,
|
|
6881
6881
|
ko,
|
|
6882
6882
|
uo,
|
|
6883
|
-
|
|
6884
|
-
tl,
|
|
6883
|
+
Su,
|
|
6885
6884
|
Qu,
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
Nu,
|
|
6889
|
-
rn,
|
|
6890
|
-
Tu,
|
|
6885
|
+
qu,
|
|
6886
|
+
Zu,
|
|
6891
6887
|
ku,
|
|
6888
|
+
Tu,
|
|
6889
|
+
rn,
|
|
6890
|
+
Uu,
|
|
6891
|
+
Pu,
|
|
6892
6892
|
yr,
|
|
6893
6893
|
Mn,
|
|
6894
|
-
|
|
6894
|
+
Au,
|
|
6895
6895
|
Lt,
|
|
6896
|
-
|
|
6896
|
+
Vu,
|
|
6897
6897
|
ut,
|
|
6898
|
-
|
|
6899
|
-
|
|
6898
|
+
Hu,
|
|
6899
|
+
tl,
|
|
6900
6900
|
on,
|
|
6901
6901
|
Wo,
|
|
6902
6902
|
kr,
|
|
6903
|
-
|
|
6903
|
+
Gu,
|
|
6904
6904
|
Ht,
|
|
6905
6905
|
br,
|
|
6906
6906
|
Tr,
|
|
6907
6907
|
Kn,
|
|
6908
6908
|
Jn,
|
|
6909
6909
|
fe,
|
|
6910
|
-
al,
|
|
6911
|
-
fn,
|
|
6912
|
-
Zu,
|
|
6913
6910
|
rl,
|
|
6914
|
-
|
|
6911
|
+
fn,
|
|
6912
|
+
Xu,
|
|
6913
|
+
ol,
|
|
6915
6914
|
nl,
|
|
6915
|
+
el,
|
|
6916
6916
|
Dr,
|
|
6917
6917
|
Ar,
|
|
6918
6918
|
an,
|
|
6919
|
-
|
|
6919
|
+
cl,
|
|
6920
6920
|
lt,
|
|
6921
6921
|
Do,
|
|
6922
6922
|
Wr,
|
|
@@ -6928,55 +6928,55 @@ let yn = class extends ae {
|
|
|
6928
6928
|
tt,
|
|
6929
6929
|
// SetWorksheetColIsAutoWidthCommand,
|
|
6930
6930
|
re,
|
|
6931
|
-
|
|
6932
|
-
|
|
6931
|
+
xl,
|
|
6932
|
+
ru,
|
|
6933
6933
|
Ir,
|
|
6934
6934
|
Ur,
|
|
6935
6935
|
Fr,
|
|
6936
|
-
|
|
6936
|
+
Tl,
|
|
6937
6937
|
Ft,
|
|
6938
|
-
|
|
6938
|
+
Bu,
|
|
6939
6939
|
Vt,
|
|
6940
6940
|
// permissions range protection
|
|
6941
|
-
|
|
6941
|
+
Sl,
|
|
6942
6942
|
ct,
|
|
6943
6943
|
Ct,
|
|
6944
6944
|
St,
|
|
6945
6945
|
Ao,
|
|
6946
6946
|
Xi,
|
|
6947
|
-
|
|
6948
|
-
|
|
6947
|
+
Fu,
|
|
6948
|
+
nu,
|
|
6949
6949
|
qi,
|
|
6950
|
-
|
|
6951
|
-
|
|
6950
|
+
ou,
|
|
6951
|
+
wl,
|
|
6952
6952
|
Ne,
|
|
6953
6953
|
ze,
|
|
6954
6954
|
he,
|
|
6955
|
-
|
|
6955
|
+
Pl,
|
|
6956
6956
|
Bt,
|
|
6957
|
-
|
|
6958
|
-
|
|
6957
|
+
ll,
|
|
6958
|
+
Ul,
|
|
6959
6959
|
// range theme
|
|
6960
6960
|
Kt,
|
|
6961
6961
|
zt,
|
|
6962
6962
|
Uo,
|
|
6963
6963
|
Yt,
|
|
6964
|
-
|
|
6965
|
-
|
|
6964
|
+
kl,
|
|
6965
|
+
Cu,
|
|
6966
6966
|
ba,
|
|
6967
|
-
|
|
6968
|
-
].forEach((r) => this.disposeWithMe(this._commandService.registerCommand(r))), this._configService.setConfig(
|
|
6967
|
+
su
|
|
6968
|
+
].forEach((r) => this.disposeWithMe(this._commandService.registerCommand(r))), this._configService.setConfig($l, Wl);
|
|
6969
6969
|
}
|
|
6970
6970
|
};
|
|
6971
|
-
yn =
|
|
6971
|
+
yn = Hl([
|
|
6972
6972
|
to(0, E),
|
|
6973
6973
|
to(1, Us),
|
|
6974
6974
|
to(2, Si(Fi))
|
|
6975
6975
|
], yn);
|
|
6976
|
-
var
|
|
6977
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6976
|
+
var Bl = Object.defineProperty, Fl = Object.getOwnPropertyDescriptor, jl = (n, e, t, o) => {
|
|
6977
|
+
for (var s = o > 1 ? void 0 : o ? Fl(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
6978
6978
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6979
|
-
return o && s &&
|
|
6979
|
+
return o && s && Bl(e, t, s), s;
|
|
6980
6980
|
}, es = (n, e) => (t, o) => e(t, o, n);
|
|
6981
6981
|
let En = class extends ae {
|
|
6982
6982
|
constructor(n, e) {
|
|
@@ -7031,17 +7031,17 @@ let En = class extends ae {
|
|
|
7031
7031
|
}), a.getMatrix();
|
|
7032
7032
|
}
|
|
7033
7033
|
};
|
|
7034
|
-
En =
|
|
7034
|
+
En = jl([
|
|
7035
7035
|
es(0, L(M)),
|
|
7036
7036
|
es(1, E)
|
|
7037
7037
|
], En);
|
|
7038
|
-
const
|
|
7039
|
-
var
|
|
7040
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
7038
|
+
const Gl = "sheets.config", ts = {};
|
|
7039
|
+
var zl = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Jl = (n, e, t, o) => {
|
|
7040
|
+
for (var s = o > 1 ? void 0 : o ? Kl(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
7041
7041
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
7042
|
-
return o && s &&
|
|
7042
|
+
return o && s && zl(e, t, s), s;
|
|
7043
7043
|
}, ns = (n, e) => (t, o) => e(t, o, n);
|
|
7044
|
-
const
|
|
7044
|
+
const Yl = "SHEET_DEFINED_NAME_PLUGIN", ch = "AllDefaultWorkbook";
|
|
7045
7045
|
let Un = class extends ae {
|
|
7046
7046
|
constructor(n, e) {
|
|
7047
7047
|
super(), this._definedNamesService = n, this._resourceManagerService = e, this._initialize();
|
|
@@ -7064,7 +7064,7 @@ let Un = class extends ae {
|
|
|
7064
7064
|
};
|
|
7065
7065
|
this.disposeWithMe(
|
|
7066
7066
|
this._resourceManagerService.registerPluginResource({
|
|
7067
|
-
pluginName:
|
|
7067
|
+
pluginName: Yl,
|
|
7068
7068
|
businesses: [B.UNIVER_SHEET],
|
|
7069
7069
|
toJson: (t) => n(t),
|
|
7070
7070
|
parseJson: (t) => e(t),
|
|
@@ -7078,7 +7078,7 @@ let Un = class extends ae {
|
|
|
7078
7078
|
);
|
|
7079
7079
|
}
|
|
7080
7080
|
};
|
|
7081
|
-
Un =
|
|
7081
|
+
Un = Jl([
|
|
7082
7082
|
ns(0, Ps),
|
|
7083
7083
|
ns(1, nn)
|
|
7084
7084
|
], Un);
|
|
@@ -7090,7 +7090,7 @@ const $ = {
|
|
|
7090
7090
|
RemoveRowCommandId: Po,
|
|
7091
7091
|
DeleteRangeMoveLeftCommandId: dr,
|
|
7092
7092
|
DeleteRangeMoveUpCommandId: hr,
|
|
7093
|
-
InsertRangeMoveDownCommandId:
|
|
7093
|
+
InsertRangeMoveDownCommandId: uu,
|
|
7094
7094
|
InsertRangeMoveRightCommandId: Eo,
|
|
7095
7095
|
MoveColsCommandId: Sr,
|
|
7096
7096
|
MoveRowsCommandId: Cr,
|
|
@@ -7159,7 +7159,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7159
7159
|
length: a.length || 0
|
|
7160
7160
|
}
|
|
7161
7161
|
];
|
|
7162
|
-
},
|
|
7162
|
+
}, Xl = (n, e) => {
|
|
7163
7163
|
const { fromRange: t, toRange: o } = n.params || {};
|
|
7164
7164
|
if (!t || !o)
|
|
7165
7165
|
return [e];
|
|
@@ -7167,7 +7167,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7167
7167
|
return K.foreach(e, (l, c) => {
|
|
7168
7168
|
a.setValue(l, c, 1);
|
|
7169
7169
|
}), a.moveRows(s, r, i), Je(a, (l) => l === 1);
|
|
7170
|
-
},
|
|
7170
|
+
}, ql = (n, e) => {
|
|
7171
7171
|
const { range: t, order: o } = n.params || {};
|
|
7172
7172
|
if (!t || !o)
|
|
7173
7173
|
return [e];
|
|
@@ -7205,7 +7205,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7205
7205
|
length: a.length || 0
|
|
7206
7206
|
}
|
|
7207
7207
|
];
|
|
7208
|
-
},
|
|
7208
|
+
}, Zl = (n, e) => {
|
|
7209
7209
|
const { fromRange: t, toRange: o } = n.params || {};
|
|
7210
7210
|
if (!t || !o)
|
|
7211
7211
|
return [e];
|
|
@@ -7213,7 +7213,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7213
7213
|
return K.foreach(e, (u, l) => {
|
|
7214
7214
|
a.setValue(u, l, 1);
|
|
7215
7215
|
}), a.moveColumns(s, r, i), Je(a, (u) => u === 1);
|
|
7216
|
-
},
|
|
7216
|
+
}, Ql = (n, e) => {
|
|
7217
7217
|
var r, i;
|
|
7218
7218
|
const t = (r = n.params) == null ? void 0 : r.toRange, o = (i = n.params) == null ? void 0 : i.fromRange;
|
|
7219
7219
|
if (!t || !o)
|
|
@@ -7234,7 +7234,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7234
7234
|
];
|
|
7235
7235
|
}
|
|
7236
7236
|
return s;
|
|
7237
|
-
},
|
|
7237
|
+
}, ec = (n, e) => {
|
|
7238
7238
|
var d, h;
|
|
7239
7239
|
const t = (d = n.params) == null ? void 0 : d.toRange, o = (h = n.params) == null ? void 0 : h.fromRange;
|
|
7240
7240
|
if (!t || !o)
|
|
@@ -7306,7 +7306,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7306
7306
|
});
|
|
7307
7307
|
}
|
|
7308
7308
|
return o;
|
|
7309
|
-
},
|
|
7309
|
+
}, tc = (n, e) => {
|
|
7310
7310
|
var r;
|
|
7311
7311
|
const t = (r = n.params) == null ? void 0 : r.range;
|
|
7312
7312
|
if (!t)
|
|
@@ -7323,7 +7323,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7323
7323
|
});
|
|
7324
7324
|
}
|
|
7325
7325
|
return o;
|
|
7326
|
-
},
|
|
7326
|
+
}, nc = (n, e) => {
|
|
7327
7327
|
const { range: t, order: o } = n.params || {};
|
|
7328
7328
|
if (!t || !o)
|
|
7329
7329
|
return [];
|
|
@@ -7360,7 +7360,7 @@ const cn = Number.MAX_SAFE_INTEGER, Ve = (n) => {
|
|
|
7360
7360
|
}
|
|
7361
7361
|
return { step: 0, length: 0 };
|
|
7362
7362
|
};
|
|
7363
|
-
function
|
|
7363
|
+
function oc(n, e, t) {
|
|
7364
7364
|
const o = [];
|
|
7365
7365
|
if (k.contains(e, t) && o.push({
|
|
7366
7366
|
type: q.Delete
|
|
@@ -7378,7 +7378,7 @@ function rc(n, e, t) {
|
|
|
7378
7378
|
}
|
|
7379
7379
|
return o;
|
|
7380
7380
|
}
|
|
7381
|
-
const
|
|
7381
|
+
const sc = (n, e) => {
|
|
7382
7382
|
var a;
|
|
7383
7383
|
const t = (a = n.params) == null ? void 0 : a.range;
|
|
7384
7384
|
if (!t)
|
|
@@ -7389,7 +7389,7 @@ const ic = (n, e) => {
|
|
|
7389
7389
|
step: r,
|
|
7390
7390
|
length: i
|
|
7391
7391
|
}), o;
|
|
7392
|
-
},
|
|
7392
|
+
}, rc = (n, e) => {
|
|
7393
7393
|
var a;
|
|
7394
7394
|
const t = (a = n.params) == null ? void 0 : a.range;
|
|
7395
7395
|
if (!t)
|
|
@@ -7400,7 +7400,7 @@ const ic = (n, e) => {
|
|
|
7400
7400
|
step: r,
|
|
7401
7401
|
length: i
|
|
7402
7402
|
}), o;
|
|
7403
|
-
},
|
|
7403
|
+
}, ic = (n, e) => {
|
|
7404
7404
|
var a;
|
|
7405
7405
|
const t = (a = n.params) == null ? void 0 : a.range;
|
|
7406
7406
|
if (!t)
|
|
@@ -7411,7 +7411,7 @@ const ic = (n, e) => {
|
|
|
7411
7411
|
step: r,
|
|
7412
7412
|
length: i
|
|
7413
7413
|
}), o;
|
|
7414
|
-
},
|
|
7414
|
+
}, ac = (n, e) => {
|
|
7415
7415
|
var u;
|
|
7416
7416
|
const t = (u = n.params) == null ? void 0 : u.range;
|
|
7417
7417
|
if (!t)
|
|
@@ -7431,7 +7431,7 @@ const ic = (n, e) => {
|
|
|
7431
7431
|
}), i && K.foreach(i, (l, c) => {
|
|
7432
7432
|
a.setValue(l + o, c, 1);
|
|
7433
7433
|
}), Je(a, (l) => l === 1);
|
|
7434
|
-
},
|
|
7434
|
+
}, uc = (n, e) => {
|
|
7435
7435
|
var a;
|
|
7436
7436
|
const t = (a = n.params) == null ? void 0 : a.range;
|
|
7437
7437
|
if (!t)
|
|
@@ -7442,7 +7442,7 @@ const ic = (n, e) => {
|
|
|
7442
7442
|
step: r,
|
|
7443
7443
|
length: i
|
|
7444
7444
|
}), o;
|
|
7445
|
-
},
|
|
7445
|
+
}, lc = (n, e) => {
|
|
7446
7446
|
var u;
|
|
7447
7447
|
const t = (u = n.params) == null ? void 0 : u.range;
|
|
7448
7448
|
if (!t)
|
|
@@ -7462,7 +7462,7 @@ const ic = (n, e) => {
|
|
|
7462
7462
|
}), i && K.foreach(i, (l, c) => {
|
|
7463
7463
|
a.setValue(l, c + o, 1);
|
|
7464
7464
|
}), Je(a, (l) => l === 1);
|
|
7465
|
-
},
|
|
7465
|
+
}, cc = (n, e) => {
|
|
7466
7466
|
var r;
|
|
7467
7467
|
const t = (r = n.params) == null ? void 0 : r.range;
|
|
7468
7468
|
if (!t)
|
|
@@ -7479,7 +7479,7 @@ const ic = (n, e) => {
|
|
|
7479
7479
|
});
|
|
7480
7480
|
}
|
|
7481
7481
|
return o;
|
|
7482
|
-
},
|
|
7482
|
+
}, dc = (n, e) => {
|
|
7483
7483
|
var l;
|
|
7484
7484
|
const t = (l = n.params) == null ? void 0 : l.range;
|
|
7485
7485
|
if (!t)
|
|
@@ -7502,7 +7502,7 @@ const ic = (n, e) => {
|
|
|
7502
7502
|
u.setValue(d, h, 1);
|
|
7503
7503
|
});
|
|
7504
7504
|
}), Je(u, (c) => c === 1);
|
|
7505
|
-
},
|
|
7505
|
+
}, hc = (n, e) => {
|
|
7506
7506
|
var r;
|
|
7507
7507
|
const t = (r = n.params) == null ? void 0 : r.range;
|
|
7508
7508
|
if (!t)
|
|
@@ -7519,7 +7519,7 @@ const ic = (n, e) => {
|
|
|
7519
7519
|
});
|
|
7520
7520
|
}
|
|
7521
7521
|
return o;
|
|
7522
|
-
},
|
|
7522
|
+
}, mc = (n, e) => {
|
|
7523
7523
|
var l;
|
|
7524
7524
|
const t = (l = n.params) == null ? void 0 : l.range;
|
|
7525
7525
|
if (!t)
|
|
@@ -7541,7 +7541,7 @@ const ic = (n, e) => {
|
|
|
7541
7541
|
u.setValue(d, h, 1);
|
|
7542
7542
|
});
|
|
7543
7543
|
}), Je(u, (c) => c === 1);
|
|
7544
|
-
},
|
|
7544
|
+
}, gc = (n, e) => {
|
|
7545
7545
|
var s;
|
|
7546
7546
|
const t = (s = n.ranges) != null ? s : [n.range], o = new G();
|
|
7547
7547
|
return K.foreach(e, (r, i) => {
|
|
@@ -7550,7 +7550,7 @@ const ic = (n, e) => {
|
|
|
7550
7550
|
const i = r.startRow, u = r.endRow - i + 1;
|
|
7551
7551
|
o.removeRows(i, u);
|
|
7552
7552
|
}), Je(o, (r) => r === 1);
|
|
7553
|
-
},
|
|
7553
|
+
}, fc = (n, e) => {
|
|
7554
7554
|
const t = n.params, o = t.range.startRow, s = t.range.endRow - t.range.startRow + 1, r = t.direction;
|
|
7555
7555
|
return r === pe.UP && o === e.startRow || r === pe.DOWN && o - 1 === e.endRow ? [
|
|
7556
7556
|
{
|
|
@@ -7570,7 +7570,7 @@ const ic = (n, e) => {
|
|
|
7570
7570
|
startColumn: e.startColumn,
|
|
7571
7571
|
endColumn: e.endColumn
|
|
7572
7572
|
}];
|
|
7573
|
-
},
|
|
7573
|
+
}, Rc = (n, e) => {
|
|
7574
7574
|
const t = n.params, o = t.range.startColumn, s = t.range.endColumn - t.range.startColumn + 1, r = t.direction;
|
|
7575
7575
|
return r === pe.LEFT && o === e.startColumn || r === pe.RIGHT && o - 1 === e.endColumn ? [
|
|
7576
7576
|
{
|
|
@@ -7620,27 +7620,27 @@ const ic = (n, e) => {
|
|
|
7620
7620
|
let t = [];
|
|
7621
7621
|
switch (e.id) {
|
|
7622
7622
|
case $.DeleteRangeMoveLeftCommandId: {
|
|
7623
|
-
t =
|
|
7623
|
+
t = cc(e, n);
|
|
7624
7624
|
break;
|
|
7625
7625
|
}
|
|
7626
7626
|
case $.DeleteRangeMoveUpCommandId: {
|
|
7627
|
-
t =
|
|
7627
|
+
t = hc(e, n);
|
|
7628
7628
|
break;
|
|
7629
7629
|
}
|
|
7630
7630
|
case $.InsertColCommandId: {
|
|
7631
|
-
t =
|
|
7631
|
+
t = rc(e, n);
|
|
7632
7632
|
break;
|
|
7633
7633
|
}
|
|
7634
7634
|
case $.InsertRangeMoveDownCommandId: {
|
|
7635
|
-
t =
|
|
7635
|
+
t = ic(e, n);
|
|
7636
7636
|
break;
|
|
7637
7637
|
}
|
|
7638
7638
|
case $.InsertRangeMoveRightCommandId: {
|
|
7639
|
-
t =
|
|
7639
|
+
t = uc(e, n);
|
|
7640
7640
|
break;
|
|
7641
7641
|
}
|
|
7642
7642
|
case $.InsertRowCommandId: {
|
|
7643
|
-
t =
|
|
7643
|
+
t = sc(e, n);
|
|
7644
7644
|
break;
|
|
7645
7645
|
}
|
|
7646
7646
|
case $.MoveColsCommandId: {
|
|
@@ -7648,7 +7648,7 @@ const ic = (n, e) => {
|
|
|
7648
7648
|
break;
|
|
7649
7649
|
}
|
|
7650
7650
|
case $.MoveRangeCommandId: {
|
|
7651
|
-
t =
|
|
7651
|
+
t = Ql(e, n);
|
|
7652
7652
|
break;
|
|
7653
7653
|
}
|
|
7654
7654
|
case $.MoveRowsCommandId: {
|
|
@@ -7660,11 +7660,11 @@ const ic = (n, e) => {
|
|
|
7660
7660
|
break;
|
|
7661
7661
|
}
|
|
7662
7662
|
case $.RemoveRowCommandId: {
|
|
7663
|
-
t =
|
|
7663
|
+
t = tc(e, n);
|
|
7664
7664
|
break;
|
|
7665
7665
|
}
|
|
7666
7666
|
case $.ReorderRangeCommandId: {
|
|
7667
|
-
t =
|
|
7667
|
+
t = nc(e, n);
|
|
7668
7668
|
break;
|
|
7669
7669
|
}
|
|
7670
7670
|
}
|
|
@@ -7673,36 +7673,36 @@ const ic = (n, e) => {
|
|
|
7673
7673
|
let t = [];
|
|
7674
7674
|
switch (e.id) {
|
|
7675
7675
|
case $.DeleteRangeMoveLeftCommandId:
|
|
7676
|
-
return
|
|
7676
|
+
return dc(e, n);
|
|
7677
7677
|
case $.DeleteRangeMoveUpCommandId:
|
|
7678
|
-
return
|
|
7678
|
+
return mc(e, n);
|
|
7679
7679
|
case $.InsertRangeMoveDownCommandId:
|
|
7680
|
-
return
|
|
7680
|
+
return ac(e, n);
|
|
7681
7681
|
case $.InsertRangeMoveRightCommandId:
|
|
7682
|
-
return
|
|
7682
|
+
return lc(e, n);
|
|
7683
7683
|
case $.InsertColCommandId:
|
|
7684
|
-
return
|
|
7684
|
+
return Rc(e, n);
|
|
7685
7685
|
case $.InsertRowCommandId:
|
|
7686
|
-
return
|
|
7686
|
+
return fc(e, n);
|
|
7687
7687
|
case $.MoveColsCommandId:
|
|
7688
|
-
return
|
|
7688
|
+
return Zl(e, n);
|
|
7689
7689
|
case $.MoveRangeCommandId:
|
|
7690
|
-
return
|
|
7690
|
+
return ec(e, n);
|
|
7691
7691
|
case $.MoveRowsCommandId:
|
|
7692
|
-
return
|
|
7692
|
+
return Xl(e, n);
|
|
7693
7693
|
case $.ReorderRangeCommandId:
|
|
7694
|
-
return
|
|
7694
|
+
return ql(e, n);
|
|
7695
7695
|
case $.RemoveColCommandId: {
|
|
7696
7696
|
t = Xr(e, n);
|
|
7697
7697
|
break;
|
|
7698
7698
|
}
|
|
7699
7699
|
case $.RemoveRowCommandId:
|
|
7700
|
-
return
|
|
7700
|
+
return gc(e.params, n);
|
|
7701
7701
|
}
|
|
7702
7702
|
const o = Mt(t, n);
|
|
7703
7703
|
return o ? [o] : [];
|
|
7704
7704
|
}, hh = (n, e, t) => [Pt.id, Tt.id, sn.id, Eo].includes(e.id) || qr(e, t).some((r) => k.intersects(r, n)) ? ss(n, e) : n;
|
|
7705
|
-
function
|
|
7705
|
+
function pc(n, e) {
|
|
7706
7706
|
const { id: t, params: o } = e;
|
|
7707
7707
|
let s = {
|
|
7708
7708
|
length: 0,
|
|
@@ -7742,7 +7742,7 @@ function Sc(n, e) {
|
|
|
7742
7742
|
case dt.id:
|
|
7743
7743
|
{
|
|
7744
7744
|
const r = o.fromRange || new G(o.from).getRange(), i = o.toRange || new G(o.to).getRange();
|
|
7745
|
-
s =
|
|
7745
|
+
s = oc(
|
|
7746
7746
|
r,
|
|
7747
7747
|
i,
|
|
7748
7748
|
n
|
|
@@ -7829,7 +7829,7 @@ function qr(n, e) {
|
|
|
7829
7829
|
}
|
|
7830
7830
|
}
|
|
7831
7831
|
}
|
|
7832
|
-
function
|
|
7832
|
+
function Cc(n) {
|
|
7833
7833
|
switch (n.id) {
|
|
7834
7834
|
case st.id: {
|
|
7835
7835
|
const e = n.params;
|
|
@@ -8057,13 +8057,13 @@ function mh(n, e) {
|
|
|
8057
8057
|
}
|
|
8058
8058
|
}
|
|
8059
8059
|
}
|
|
8060
|
-
var
|
|
8061
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
8060
|
+
var Sc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, Ic = (n, e, t, o) => {
|
|
8061
|
+
for (var s = o > 1 ? void 0 : o ? wc(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
8062
8062
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
8063
|
-
return o && s &&
|
|
8063
|
+
return o && s && Sc(e, t, s), s;
|
|
8064
8064
|
}, dn = (n, e) => (t, o) => e(t, o, n);
|
|
8065
|
-
const
|
|
8066
|
-
class
|
|
8065
|
+
const vc = rt("MERGE_REDO"), Mc = rt("MERGE_UNDO"), rs = Math.floor(Number.MAX_SAFE_INTEGER / 10);
|
|
8066
|
+
class _c extends ae {
|
|
8067
8067
|
constructor(e, t, o, s, r = !1) {
|
|
8068
8068
|
super(), this._unitId = e, this._subUnitId = t, this._range = o, this._callback = s, this._skipIntersects = r;
|
|
8069
8069
|
}
|
|
@@ -8082,11 +8082,11 @@ class yc extends ae {
|
|
|
8082
8082
|
if (this._skipIntersects) {
|
|
8083
8083
|
if (e.id === Ut.id)
|
|
8084
8084
|
return;
|
|
8085
|
-
const i =
|
|
8085
|
+
const i = Cc(e);
|
|
8086
8086
|
if (i != null && i.some((a) => k.intersects(a, this._range)))
|
|
8087
8087
|
return;
|
|
8088
8088
|
}
|
|
8089
|
-
const t =
|
|
8089
|
+
const t = pc(this._range, e);
|
|
8090
8090
|
if (t && k.equals(t, this._range))
|
|
8091
8091
|
return !1;
|
|
8092
8092
|
const o = this._range;
|
|
@@ -8096,10 +8096,10 @@ class yc extends ae {
|
|
|
8096
8096
|
let _t = class extends ae {
|
|
8097
8097
|
constructor(e, t, o, s) {
|
|
8098
8098
|
super();
|
|
8099
|
-
R(this, "interceptor", new mo({ MERGE_REDO:
|
|
8099
|
+
R(this, "interceptor", new mo({ MERGE_REDO: vc, MERGE_UNDO: Mc }));
|
|
8100
8100
|
R(this, "_watchRanges", /* @__PURE__ */ new Set());
|
|
8101
8101
|
R(this, "_refRangeManagerMap", /* @__PURE__ */ new Map());
|
|
8102
|
-
R(this, "_serializer",
|
|
8102
|
+
R(this, "_serializer", bc());
|
|
8103
8103
|
// eslint-disable-next-line max-lines-per-function
|
|
8104
8104
|
R(this, "_onRefRangeChange", () => {
|
|
8105
8105
|
this._sheetInterceptorService.interceptCommand({
|
|
@@ -8292,7 +8292,7 @@ let _t = class extends ae {
|
|
|
8292
8292
|
for (const d of this._watchRanges)
|
|
8293
8293
|
d.onMutation(c);
|
|
8294
8294
|
}));
|
|
8295
|
-
const a = new
|
|
8295
|
+
const a = new _c(e, t, o, s, r);
|
|
8296
8296
|
this._watchRanges.add(a);
|
|
8297
8297
|
const u = We(() => {
|
|
8298
8298
|
this._watchRanges.delete(a), this._watchRanges.size === 0 && (i == null || i.dispose(), i = null);
|
|
@@ -8302,7 +8302,7 @@ let _t = class extends ae {
|
|
|
8302
8302
|
});
|
|
8303
8303
|
}
|
|
8304
8304
|
};
|
|
8305
|
-
_t =
|
|
8305
|
+
_t = Ic([
|
|
8306
8306
|
dn(0, E),
|
|
8307
8307
|
dn(1, L(V)),
|
|
8308
8308
|
dn(2, L(M)),
|
|
@@ -8322,7 +8322,7 @@ function us(n) {
|
|
|
8322
8322
|
function ls(n, e) {
|
|
8323
8323
|
return `${n}_${e}`;
|
|
8324
8324
|
}
|
|
8325
|
-
function
|
|
8325
|
+
function bc() {
|
|
8326
8326
|
const n = ["startRow", "startColumn", "endRow", "endColumn", "rangeType"], e = "_";
|
|
8327
8327
|
return {
|
|
8328
8328
|
deserialize: (t) => {
|
|
@@ -8344,12 +8344,12 @@ function Ec() {
|
|
|
8344
8344
|
}, "")
|
|
8345
8345
|
};
|
|
8346
8346
|
}
|
|
8347
|
-
var
|
|
8348
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
8347
|
+
var yc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, Uc = (n, e, t, o) => {
|
|
8348
|
+
for (var s = o > 1 ? void 0 : o ? Ec(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
8349
8349
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
8350
|
-
return o && s &&
|
|
8350
|
+
return o && s && yc(e, t, s), s;
|
|
8351
8351
|
}, Rt = (n, e) => (t, o) => e(t, o, n);
|
|
8352
|
-
const
|
|
8352
|
+
const Pc = [je.id, qe.id, De.id, Be.id], Tc = [ot.id, st.id];
|
|
8353
8353
|
function Zr(n, e) {
|
|
8354
8354
|
let t = n;
|
|
8355
8355
|
if (e !== void 0) {
|
|
@@ -8381,12 +8381,12 @@ function Zr(n, e) {
|
|
|
8381
8381
|
}
|
|
8382
8382
|
return t;
|
|
8383
8383
|
}
|
|
8384
|
-
const
|
|
8384
|
+
const kc = rt("mergeCellPermissionCheck");
|
|
8385
8385
|
let Tn = class extends ae {
|
|
8386
8386
|
constructor(e, t, o, s, r, i) {
|
|
8387
8387
|
super();
|
|
8388
8388
|
R(this, "disposableCollection", new jt());
|
|
8389
|
-
R(this, "interceptor", new mo({ MERGE_CELL_INTERCEPTOR_CHECK:
|
|
8389
|
+
R(this, "interceptor", new mo({ MERGE_CELL_INTERCEPTOR_CHECK: kc }));
|
|
8390
8390
|
this._commandService = e, this._refRangeService = t, this._univerInstanceService = o, this._injector = s, this._sheetInterceptorService = r, this._selectionManagerService = i, this._onRefRangeChange(), this._initCommandInterceptor(), this._commandExecutedListener();
|
|
8391
8391
|
}
|
|
8392
8392
|
_initCommandInterceptor() {
|
|
@@ -9040,7 +9040,7 @@ let Tn = class extends ae {
|
|
|
9040
9040
|
}
|
|
9041
9041
|
_commandExecutedListener() {
|
|
9042
9042
|
this.disposeWithMe(this._commandService.onCommandExecuted((e) => {
|
|
9043
|
-
if (
|
|
9043
|
+
if (Tc.includes(e.id)) {
|
|
9044
9044
|
if (!e.params) return;
|
|
9045
9045
|
const t = this._univerInstanceService.getUniverSheetInstance(e.params.unitId);
|
|
9046
9046
|
if (!t) return;
|
|
@@ -9056,7 +9056,7 @@ let Tn = class extends ae {
|
|
|
9056
9056
|
this.disposableCollection.add(this._refRangeService.registerRefRange(f, g, h, m));
|
|
9057
9057
|
});
|
|
9058
9058
|
}
|
|
9059
|
-
if (
|
|
9059
|
+
if (Pc.includes(e.id)) {
|
|
9060
9060
|
const t = this._univerInstanceService.getUniverSheetInstance(e.params.unitId);
|
|
9061
9061
|
if (!t) return;
|
|
9062
9062
|
const o = t.getSheetBySheetId(e.params.subUnitId);
|
|
@@ -9076,7 +9076,7 @@ let Tn = class extends ae {
|
|
|
9076
9076
|
}));
|
|
9077
9077
|
}
|
|
9078
9078
|
};
|
|
9079
|
-
Tn =
|
|
9079
|
+
Tn = Uc([
|
|
9080
9080
|
Rt(0, L(E)),
|
|
9081
9081
|
Rt(1, L(_t)),
|
|
9082
9082
|
Rt(2, L(M)),
|
|
@@ -9090,11 +9090,11 @@ function be(n, e) {
|
|
|
9090
9090
|
function ye(n, e) {
|
|
9091
9091
|
return e ? n.getSheetBySheetId(e) : n.getActiveSheet();
|
|
9092
9092
|
}
|
|
9093
|
-
var
|
|
9094
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9093
|
+
var Nc = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, Dc = (n, e, t, o) => {
|
|
9094
|
+
for (var s = o > 1 ? void 0 : o ? Oc(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9095
9095
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9096
|
-
return o && s &&
|
|
9097
|
-
},
|
|
9096
|
+
return o && s && Nc(e, t, s), s;
|
|
9097
|
+
}, Ac = (n, e) => (t, o) => e(t, o, n);
|
|
9098
9098
|
let kn = class extends ae {
|
|
9099
9099
|
constructor(n) {
|
|
9100
9100
|
super(), this._sheetInterceptorService = n, this._initialize();
|
|
@@ -9119,13 +9119,13 @@ let kn = class extends ae {
|
|
|
9119
9119
|
);
|
|
9120
9120
|
}
|
|
9121
9121
|
};
|
|
9122
|
-
kn =
|
|
9123
|
-
|
|
9122
|
+
kn = Dc([
|
|
9123
|
+
Ac(0, L(V))
|
|
9124
9124
|
], kn);
|
|
9125
|
-
var
|
|
9126
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9125
|
+
var xc = Object.defineProperty, $c = Object.getOwnPropertyDescriptor, Wc = (n, e, t, o) => {
|
|
9126
|
+
for (var s = o > 1 ? void 0 : o ? $c(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9127
9127
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9128
|
-
return o && s &&
|
|
9128
|
+
return o && s && xc(e, t, s), s;
|
|
9129
9129
|
}, $e = (n, e) => (t, o) => e(t, o, n);
|
|
9130
9130
|
let Nn = class extends ae {
|
|
9131
9131
|
constructor(e, t, o, s, r, i, a, u, l, c) {
|
|
@@ -9416,7 +9416,7 @@ let Nn = class extends ae {
|
|
|
9416
9416
|
return !0;
|
|
9417
9417
|
}
|
|
9418
9418
|
};
|
|
9419
|
-
Nn =
|
|
9419
|
+
Nn = Wc([
|
|
9420
9420
|
$e(0, E),
|
|
9421
9421
|
$e(1, M),
|
|
9422
9422
|
$e(2, Fe),
|
|
@@ -9428,10 +9428,10 @@ Nn = Vc([
|
|
|
9428
9428
|
$e(8, Ss),
|
|
9429
9429
|
$e(9, Ps)
|
|
9430
9430
|
], Nn);
|
|
9431
|
-
var
|
|
9432
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9431
|
+
var Lc = Object.defineProperty, Vc = Object.getOwnPropertyDescriptor, Hc = (n, e, t, o) => {
|
|
9432
|
+
for (var s = o > 1 ? void 0 : o ? Vc(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9433
9433
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9434
|
-
return o && s &&
|
|
9434
|
+
return o && s && Lc(e, t, s), s;
|
|
9435
9435
|
}, no = (n, e) => (t, o) => e(t, o, n);
|
|
9436
9436
|
let ht = class extends ae {
|
|
9437
9437
|
constructor(e, t, o) {
|
|
@@ -9657,15 +9657,15 @@ let ht = class extends ae {
|
|
|
9657
9657
|
});
|
|
9658
9658
|
}
|
|
9659
9659
|
};
|
|
9660
|
-
ht =
|
|
9660
|
+
ht = Hc([
|
|
9661
9661
|
no(0, L(de)),
|
|
9662
9662
|
no(1, L(Fe)),
|
|
9663
9663
|
no(2, L(M))
|
|
9664
9664
|
], ht);
|
|
9665
|
-
var
|
|
9666
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9665
|
+
var Bc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, jc = (n, e, t, o) => {
|
|
9666
|
+
for (var s = o > 1 ? void 0 : o ? Fc(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9667
9667
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9668
|
-
return o && s &&
|
|
9668
|
+
return o && s && Bc(e, t, s), s;
|
|
9669
9669
|
}, Ee = (n, e) => (t, o) => e(t, o, n);
|
|
9670
9670
|
let On = class extends ae {
|
|
9671
9671
|
constructor(n, e, t, o, s, r, i, a, u, l, c) {
|
|
@@ -9732,7 +9732,7 @@ let On = class extends ae {
|
|
|
9732
9732
|
objectID: e,
|
|
9733
9733
|
objectType: D.Workbook,
|
|
9734
9734
|
unitID: e,
|
|
9735
|
-
actions:
|
|
9735
|
+
actions: ml
|
|
9736
9736
|
}).then((o) => {
|
|
9737
9737
|
en().forEach((s) => {
|
|
9738
9738
|
const r = new s(e), i = r.subType, a = o.find((u) => u.action === i);
|
|
@@ -9904,7 +9904,7 @@ let On = class extends ae {
|
|
|
9904
9904
|
);
|
|
9905
9905
|
}
|
|
9906
9906
|
};
|
|
9907
|
-
On =
|
|
9907
|
+
On = jc([
|
|
9908
9908
|
Ee(0, M),
|
|
9909
9909
|
Ee(1, Fe),
|
|
9910
9910
|
Ee(2, vi),
|
|
@@ -9917,10 +9917,10 @@ On = zc([
|
|
|
9917
9917
|
Ee(9, L(E)),
|
|
9918
9918
|
Ee(10, L(ht))
|
|
9919
9919
|
], On);
|
|
9920
|
-
var
|
|
9921
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9920
|
+
var Gc = Object.defineProperty, zc = Object.getOwnPropertyDescriptor, Kc = (n, e, t, o) => {
|
|
9921
|
+
for (var s = o > 1 ? void 0 : o ? zc(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9922
9922
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9923
|
-
return o && s &&
|
|
9923
|
+
return o && s && Gc(e, t, s), s;
|
|
9924
9924
|
}, hn = (n, e) => (t, o) => e(t, o, n);
|
|
9925
9925
|
let Dn = class extends ae {
|
|
9926
9926
|
constructor(n, e, t, o) {
|
|
@@ -9967,16 +9967,16 @@ let Dn = class extends ae {
|
|
|
9967
9967
|
));
|
|
9968
9968
|
}
|
|
9969
9969
|
};
|
|
9970
|
-
Dn =
|
|
9970
|
+
Dn = Kc([
|
|
9971
9971
|
hn(0, Fe),
|
|
9972
9972
|
hn(1, L(Ye)),
|
|
9973
9973
|
hn(2, L(V)),
|
|
9974
9974
|
hn(3, L(ht))
|
|
9975
9975
|
], Dn);
|
|
9976
|
-
var
|
|
9977
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
9976
|
+
var Jc = Object.defineProperty, Yc = Object.getOwnPropertyDescriptor, Xc = (n, e, t, o) => {
|
|
9977
|
+
for (var s = o > 1 ? void 0 : o ? Yc(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
9978
9978
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
9979
|
-
return o && s &&
|
|
9979
|
+
return o && s && Jc(e, t, s), s;
|
|
9980
9980
|
}, cs = (n, e) => (t, o) => e(t, o, n);
|
|
9981
9981
|
let tn = class {
|
|
9982
9982
|
constructor(n, e) {
|
|
@@ -10038,12 +10038,12 @@ let tn = class {
|
|
|
10038
10038
|
this._cache.clear();
|
|
10039
10039
|
}
|
|
10040
10040
|
};
|
|
10041
|
-
tn =
|
|
10041
|
+
tn = Xc([
|
|
10042
10042
|
cs(0, L(de)),
|
|
10043
10043
|
cs(1, L(Fe))
|
|
10044
10044
|
], tn);
|
|
10045
10045
|
const ds = fo("univer.exclusive-range-service");
|
|
10046
|
-
class
|
|
10046
|
+
class qc extends ae {
|
|
10047
10047
|
constructor() {
|
|
10048
10048
|
super(...arguments);
|
|
10049
10049
|
/**
|
|
@@ -10106,10 +10106,10 @@ class Qc extends ae {
|
|
|
10106
10106
|
}), o;
|
|
10107
10107
|
}
|
|
10108
10108
|
}
|
|
10109
|
-
var
|
|
10110
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10109
|
+
var Zc = Object.defineProperty, Qc = Object.getOwnPropertyDescriptor, ed = (n, e, t, o) => {
|
|
10110
|
+
for (var s = o > 1 ? void 0 : o ? Qc(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10111
10111
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10112
|
-
return o && s &&
|
|
10112
|
+
return o && s && Zc(e, t, s), s;
|
|
10113
10113
|
}, oo = (n, e) => (t, o) => e(t, o, n);
|
|
10114
10114
|
let co = class extends ae {
|
|
10115
10115
|
constructor(n, e, t) {
|
|
@@ -10174,15 +10174,15 @@ let co = class extends ae {
|
|
|
10174
10174
|
});
|
|
10175
10175
|
}
|
|
10176
10176
|
};
|
|
10177
|
-
co =
|
|
10177
|
+
co = ed([
|
|
10178
10178
|
oo(0, nn),
|
|
10179
10179
|
oo(1, M),
|
|
10180
10180
|
oo(2, Es)
|
|
10181
10181
|
], co);
|
|
10182
|
-
var
|
|
10183
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10182
|
+
var td = Object.defineProperty, nd = Object.getOwnPropertyDescriptor, od = (n, e, t, o) => {
|
|
10183
|
+
for (var s = o > 1 ? void 0 : o ? nd(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10184
10184
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10185
|
-
return o && s &&
|
|
10185
|
+
return o && s && td(e, t, s), s;
|
|
10186
10186
|
}, Qe = (n, e) => (t, o) => e(t, o, n);
|
|
10187
10187
|
const hs = [je.id, qe.id, De.id, Be.id], ms = [ot.id, st.id];
|
|
10188
10188
|
let An = class extends ae {
|
|
@@ -10410,7 +10410,7 @@ let An = class extends ae {
|
|
|
10410
10410
|
);
|
|
10411
10411
|
}
|
|
10412
10412
|
};
|
|
10413
|
-
An =
|
|
10413
|
+
An = od([
|
|
10414
10414
|
Qe(0, L(de)),
|
|
10415
10415
|
Qe(1, L(M)),
|
|
10416
10416
|
Qe(2, E),
|
|
@@ -10420,12 +10420,12 @@ An = rd([
|
|
|
10420
10420
|
Qe(6, L(V)),
|
|
10421
10421
|
Qe(7, L(de))
|
|
10422
10422
|
], An);
|
|
10423
|
-
var
|
|
10424
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10423
|
+
var sd = Object.defineProperty, rd = Object.getOwnPropertyDescriptor, id = (n, e, t, o) => {
|
|
10424
|
+
for (var s = o > 1 ? void 0 : o ? rd(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10425
10425
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10426
|
-
return o && s &&
|
|
10426
|
+
return o && s && sd(e, t, s), s;
|
|
10427
10427
|
}, Dt = (n, e) => (t, o) => e(t, o, n);
|
|
10428
|
-
const
|
|
10428
|
+
const ad = "SHEET_RANGE_PROTECTION_PLUGIN";
|
|
10429
10429
|
let xn = class extends ae {
|
|
10430
10430
|
constructor(n, e, t, o, s) {
|
|
10431
10431
|
super(), this._selectionProtectionRuleModel = n, this._permissionService = e, this._resourceManagerService = t, this._selectionProtectionCache = o, this._univerInstanceService = s, this._initSnapshot(), this._initRuleChange();
|
|
@@ -10478,7 +10478,7 @@ let xn = class extends ae {
|
|
|
10478
10478
|
this._resourceManagerService.registerPluginResource({
|
|
10479
10479
|
toJson: n,
|
|
10480
10480
|
parseJson: e,
|
|
10481
|
-
pluginName:
|
|
10481
|
+
pluginName: ad,
|
|
10482
10482
|
businesses: [Sn.UNIVER_SHEET],
|
|
10483
10483
|
onLoad: (t, o) => {
|
|
10484
10484
|
const s = this._selectionProtectionRuleModel.toObject();
|
|
@@ -10508,17 +10508,17 @@ let xn = class extends ae {
|
|
|
10508
10508
|
);
|
|
10509
10509
|
}
|
|
10510
10510
|
};
|
|
10511
|
-
xn =
|
|
10511
|
+
xn = id([
|
|
10512
10512
|
Dt(0, L(de)),
|
|
10513
10513
|
Dt(1, L(Fe)),
|
|
10514
10514
|
Dt(2, L(nn)),
|
|
10515
10515
|
Dt(3, L(ht)),
|
|
10516
10516
|
Dt(4, L(M))
|
|
10517
10517
|
], xn);
|
|
10518
|
-
var
|
|
10519
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10518
|
+
var ud = Object.defineProperty, ld = Object.getOwnPropertyDescriptor, cd = (n, e, t, o) => {
|
|
10519
|
+
for (var s = o > 1 ? void 0 : o ? ld(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10520
10520
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10521
|
-
return o && s &&
|
|
10521
|
+
return o && s && ud(e, t, s), s;
|
|
10522
10522
|
}, At = (n, e) => (t, o) => e(t, o, n);
|
|
10523
10523
|
let $n = class extends ae {
|
|
10524
10524
|
constructor(n, e, t, o, s) {
|
|
@@ -10556,18 +10556,18 @@ let $n = class extends ae {
|
|
|
10556
10556
|
}));
|
|
10557
10557
|
}
|
|
10558
10558
|
};
|
|
10559
|
-
$n =
|
|
10559
|
+
$n = cd([
|
|
10560
10560
|
At(0, L(Fe)),
|
|
10561
10561
|
At(1, L(M)),
|
|
10562
10562
|
At(2, L(de)),
|
|
10563
10563
|
At(3, L(Ye)),
|
|
10564
10564
|
At(4, L(un))
|
|
10565
10565
|
], $n);
|
|
10566
|
-
var
|
|
10567
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10566
|
+
var dd = Object.defineProperty, hd = Object.getOwnPropertyDescriptor, md = (n, e, t, o) => {
|
|
10567
|
+
for (var s = o > 1 ? void 0 : o ? hd(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10568
10568
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10569
|
-
return o && s &&
|
|
10570
|
-
},
|
|
10569
|
+
return o && s && dd(e, t, s), s;
|
|
10570
|
+
}, gd = (n, e) => (t, o) => e(t, o, n);
|
|
10571
10571
|
let ho = class extends ae {
|
|
10572
10572
|
constructor(n) {
|
|
10573
10573
|
super(), this._sheetRangeThemeModel = n;
|
|
@@ -10610,15 +10610,15 @@ let ho = class extends ae {
|
|
|
10610
10610
|
return this._sheetRangeThemeModel.getRegisteredRangeThemes();
|
|
10611
10611
|
}
|
|
10612
10612
|
};
|
|
10613
|
-
ho =
|
|
10614
|
-
|
|
10613
|
+
ho = md([
|
|
10614
|
+
gd(0, L(He))
|
|
10615
10615
|
], ho);
|
|
10616
|
-
var Qr = Object.defineProperty,
|
|
10617
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
10616
|
+
var Qr = Object.defineProperty, fd = Object.getOwnPropertyDescriptor, Rd = (n, e, t) => e in n ? Qr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, pd = (n, e, t, o) => {
|
|
10617
|
+
for (var s = o > 1 ? void 0 : o ? fd(e, t) : e, r = n.length - 1, i; r >= 0; r--)
|
|
10618
10618
|
(i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
10619
10619
|
return o && s && Qr(e, t, s), s;
|
|
10620
|
-
}, gs = (n, e) => (t, o) => e(t, o, n), ei = (n, e, t) =>
|
|
10621
|
-
const
|
|
10620
|
+
}, gs = (n, e) => (t, o) => e(t, o, n), ei = (n, e, t) => Rd(n, typeof e != "symbol" ? e + "" : e, t);
|
|
10621
|
+
const Cd = "SHEET_PLUGIN";
|
|
10622
10622
|
let Wn = class extends bi {
|
|
10623
10623
|
constructor(n = ts, e, t) {
|
|
10624
10624
|
super(), this._config = n, this._injector = e, this._configService = t;
|
|
@@ -10627,7 +10627,7 @@ let Wn = class extends bi {
|
|
|
10627
10627
|
ts,
|
|
10628
10628
|
this._config
|
|
10629
10629
|
);
|
|
10630
|
-
this._configService.setConfig(
|
|
10630
|
+
this._configService.setConfig(Gl, o), this._initConfig(), this._initDependencies();
|
|
10631
10631
|
}
|
|
10632
10632
|
_initConfig() {
|
|
10633
10633
|
var n, e, t;
|
|
@@ -10665,14 +10665,15 @@ let Wn = class extends bi {
|
|
|
10665
10665
|
[An],
|
|
10666
10666
|
[xn],
|
|
10667
10667
|
[ds, {
|
|
10668
|
-
useClass:
|
|
10668
|
+
useClass: qc,
|
|
10669
10669
|
deps: [F]
|
|
10670
10670
|
}]
|
|
10671
10671
|
];
|
|
10672
10672
|
(e = this._config) != null && e.notExecuteFormula || n.push([En]), Pi(this._injector, Ti(n, this._config.override)), ln(this._injector, [
|
|
10673
10673
|
[V],
|
|
10674
10674
|
[xn],
|
|
10675
|
-
[ds]
|
|
10675
|
+
[ds],
|
|
10676
|
+
[On]
|
|
10676
10677
|
]);
|
|
10677
10678
|
}
|
|
10678
10679
|
onStarting() {
|
|
@@ -10686,8 +10687,7 @@ let Wn = class extends bi {
|
|
|
10686
10687
|
}
|
|
10687
10688
|
onRendered() {
|
|
10688
10689
|
ln(this._injector, [
|
|
10689
|
-
[wt]
|
|
10690
|
-
[On]
|
|
10690
|
+
[wt]
|
|
10691
10691
|
]);
|
|
10692
10692
|
}
|
|
10693
10693
|
onReady() {
|
|
@@ -10703,14 +10703,14 @@ let Wn = class extends bi {
|
|
|
10703
10703
|
]);
|
|
10704
10704
|
}
|
|
10705
10705
|
};
|
|
10706
|
-
ei(Wn, "pluginName",
|
|
10706
|
+
ei(Wn, "pluginName", Cd);
|
|
10707
10707
|
ei(Wn, "type", B.UNIVER_SHEET);
|
|
10708
|
-
Wn =
|
|
10708
|
+
Wn = pd([
|
|
10709
10709
|
_i(Bi),
|
|
10710
10710
|
gs(1, L(Ro)),
|
|
10711
10711
|
gs(2, Us)
|
|
10712
10712
|
], Wn);
|
|
10713
|
-
var
|
|
10713
|
+
var Sd = /* @__PURE__ */ ((n) => (n.SET_WORKSHEET_ROW_HEIGHT = "sheet.mutation.set-worksheet-row-height", n.SET_WORKSHEET_ROW_IS_AUTO_HEIGHT = "sheet.mutation.set-worksheet-row-is-auto-height", n.SET_WORKSHEET_ROW_AUTO_HEIGHT = "sheet.mutation.set-worksheet-row-auto-height", n.SET_WORKSHEET_COL_WIDTH = "sheet.mutation.set-worksheet-col-width", n.SET_WORKSHEET_ACTIVE = "sheet.operation.set-worksheet-active", n.MOVE_ROWS = "sheet.mutation.move-rows", n.MOVE_COLUMNS = "sheet.mutation.move-columns", n.SET_COL_HIDDEN = "sheet.mutation.set-col-hidden", n.SET_COL_VISIBLE = "sheet.mutation.set-col-visible", n.SET_ROW_HIDDEN = "sheet.mutation.set-row-hidden", n.SET_ROW_VISIBLE = "sheet.mutation.set-row-visible", n.INSERT_COL = "sheet.mutation.insert-col", n.INSERT_ROW = "sheet.mutation.insert-row", n.REMOVE_COL = "sheet.mutation.remove-col", n.REMOVE_ROW = "sheet.mutation.remove-row", n.TOGGLE_GRIDLINES = "sheet.mutation.toggle-gridlines", n.SET_GRIDLINES_COLOR = "sheet.mutation.set-gridlines-color", n))(Sd || {}), wd = /* @__PURE__ */ ((n) => (n.SET_RANGE_VALUES = "sheet.mutation.set-range-values", n.MOVE_RANGE = "sheet.mutation.move-range", n.REMOVE_WORKSHEET_MERGE = "sheet.mutation.remove-worksheet-merge", n.ADD_WORKSHEET_MERGE = "sheet.mutation.add-worksheet-merge", n.REORDER_RANGE = "sheet.mutation.reorder-range", n.SET_WORKSHEET_DEFAULT_STYLE = "sheet.mutation.set-worksheet-default-style", n.SET_ROW_DATA = "sheet.mutation.set-row-data", n.SET_COL_DATA = "sheet.mutation.set-col-data", n.SET_WORKSHEET_RANGE_THEME_STYLE = "sheet.mutation.set-worksheet-range-theme-style", n.DELETE_WORKSHEET_RANGE_THEME_STYLE = "sheet.mutation.delete-worksheet-range-theme-style", n))(wd || {});
|
|
10714
10714
|
const gh = [
|
|
10715
10715
|
nt.id,
|
|
10716
10716
|
Oe.id,
|
|
@@ -10963,9 +10963,9 @@ function wh(n) {
|
|
|
10963
10963
|
primary: null,
|
|
10964
10964
|
style: o
|
|
10965
10965
|
};
|
|
10966
|
-
return t != null && (s.primary =
|
|
10966
|
+
return t != null && (s.primary = Id(t)), s;
|
|
10967
10967
|
}
|
|
10968
|
-
function
|
|
10968
|
+
function Id(n) {
|
|
10969
10969
|
const { actualRow: e, actualColumn: t, isMerged: o, isMergedMainCell: s } = n, { startRow: r, startColumn: i, endRow: a, endColumn: u } = n.mergeInfo;
|
|
10970
10970
|
return {
|
|
10971
10971
|
actualRow: e,
|
|
@@ -11041,7 +11041,7 @@ function fs(n) {
|
|
|
11041
11041
|
function Yn(n, e) {
|
|
11042
11042
|
return n && n.spanAnchor ? fs(e.getValue(n.spanAnchor.startRow, n.spanAnchor.startColumn)) : fs(n);
|
|
11043
11043
|
}
|
|
11044
|
-
function
|
|
11044
|
+
function vd(n, e, t, o, s) {
|
|
11045
11045
|
const r = n.getCellMatrix(), i = n.getSpanModel().getMergedCellRange(e, t, o, s), a = new G();
|
|
11046
11046
|
return r.forValue((u, l) => {
|
|
11047
11047
|
const c = r.getValue(u, l);
|
|
@@ -11058,7 +11058,7 @@ function _d(n, e, t, o, s) {
|
|
|
11058
11058
|
});
|
|
11059
11059
|
}), a;
|
|
11060
11060
|
}
|
|
11061
|
-
function
|
|
11061
|
+
function Md(n, e, t, o) {
|
|
11062
11062
|
const { startRow: s, startColumn: r, endRow: i } = n;
|
|
11063
11063
|
let a = null, u = !1;
|
|
11064
11064
|
for (let l = s; l <= i; l++) {
|
|
@@ -11087,7 +11087,7 @@ function bd(n, e, t, o) {
|
|
|
11087
11087
|
range: n
|
|
11088
11088
|
};
|
|
11089
11089
|
}
|
|
11090
|
-
function
|
|
11090
|
+
function _d(n, e, t, o) {
|
|
11091
11091
|
const { startRow: s, endColumn: r, endRow: i } = n;
|
|
11092
11092
|
let a = null, u = !1;
|
|
11093
11093
|
for (let l = s; l <= i; l++) {
|
|
@@ -11116,7 +11116,7 @@ function yd(n, e, t, o) {
|
|
|
11116
11116
|
range: n
|
|
11117
11117
|
};
|
|
11118
11118
|
}
|
|
11119
|
-
function
|
|
11119
|
+
function bd(n, e, t, o) {
|
|
11120
11120
|
const { startRow: s, startColumn: r, endColumn: i } = n;
|
|
11121
11121
|
let a = null, u = !1;
|
|
11122
11122
|
for (let l = r; l <= i; l++) {
|
|
@@ -11145,7 +11145,7 @@ function Ed(n, e, t, o) {
|
|
|
11145
11145
|
range: n
|
|
11146
11146
|
};
|
|
11147
11147
|
}
|
|
11148
|
-
function
|
|
11148
|
+
function yd(n, e, t, o) {
|
|
11149
11149
|
const { startColumn: s, endColumn: r, endRow: i } = n;
|
|
11150
11150
|
let a = null, u = !1;
|
|
11151
11151
|
for (let l = s; l <= r; l++) {
|
|
@@ -11175,33 +11175,33 @@ function Ud(n, e, t, o) {
|
|
|
11175
11175
|
};
|
|
11176
11176
|
}
|
|
11177
11177
|
function Mh(n, e, t) {
|
|
11178
|
-
const o = t.getMaxRows(), s = t.getMaxColumns(), r =
|
|
11178
|
+
const o = t.getMaxRows(), s = t.getMaxColumns(), r = vd(t, 0, 0, o - 1, s - 1), i = t.getSnapshot().mergeData.length > 0, { left: a, right: u, up: l, down: c } = e;
|
|
11179
11179
|
let d = !0, h = { ...n };
|
|
11180
11180
|
const m = [];
|
|
11181
11181
|
for (; d; ) {
|
|
11182
11182
|
if (d = !1, l && h.startRow !== 0) {
|
|
11183
|
-
const { hasValue: g, range: f, spanAnchor: p } =
|
|
11183
|
+
const { hasValue: g, range: f, spanAnchor: p } = bd(h, r, 1, i);
|
|
11184
11184
|
if (p && m.push(p), g) {
|
|
11185
11185
|
h = f, d = !0;
|
|
11186
11186
|
continue;
|
|
11187
11187
|
}
|
|
11188
11188
|
}
|
|
11189
11189
|
if (c && h.endRow !== o - 1) {
|
|
11190
|
-
const { hasValue: g, range: f, spanAnchor: p } =
|
|
11190
|
+
const { hasValue: g, range: f, spanAnchor: p } = yd(h, r, 1, i);
|
|
11191
11191
|
if (p && m.push(p), g) {
|
|
11192
11192
|
h = f, d = !0;
|
|
11193
11193
|
continue;
|
|
11194
11194
|
}
|
|
11195
11195
|
}
|
|
11196
11196
|
if (a && h.startColumn !== 0) {
|
|
11197
|
-
const { hasValue: g, range: f, spanAnchor: p } =
|
|
11197
|
+
const { hasValue: g, range: f, spanAnchor: p } = Md(h, r, 1, i);
|
|
11198
11198
|
if (p && m.push(p), g) {
|
|
11199
11199
|
h = f, d = !0;
|
|
11200
11200
|
continue;
|
|
11201
11201
|
}
|
|
11202
11202
|
}
|
|
11203
11203
|
if (u && h.endColumn !== s - 1) {
|
|
11204
|
-
const { hasValue: g, range: f, spanAnchor: p } =
|
|
11204
|
+
const { hasValue: g, range: f, spanAnchor: p } = _d(h, r, 1, i);
|
|
11205
11205
|
if (p && m.push(p), g) {
|
|
11206
11206
|
h = f, d = !0;
|
|
11207
11207
|
continue;
|
|
@@ -11279,7 +11279,7 @@ function mn(n, e, t) {
|
|
|
11279
11279
|
rangeType: H.NORMAL
|
|
11280
11280
|
};
|
|
11281
11281
|
}
|
|
11282
|
-
const
|
|
11282
|
+
const Ed = (n, e, t, o, s = 1) => {
|
|
11283
11283
|
switch (o) {
|
|
11284
11284
|
case pe.UP:
|
|
11285
11285
|
return ti(n, e, t, s);
|
|
@@ -11304,7 +11304,7 @@ const Pd = (n, e, t, o, s = 1) => {
|
|
|
11304
11304
|
return null;
|
|
11305
11305
|
const l = { ...r }, { startRow: c, startColumn: d, endRow: h, endColumn: m } = o.range, g = i ? l.startRow === c && l.startColumn === d : l.endRow === h && l.endColumn === m, f = g && i;
|
|
11306
11306
|
if (!k.equals(o.range, l)) {
|
|
11307
|
-
const C = g ? u.range :
|
|
11307
|
+
const C = g ? u.range : Ed(o.range, t, l, e);
|
|
11308
11308
|
if (!C)
|
|
11309
11309
|
return null;
|
|
11310
11310
|
const S = f ? mn(C.endRow, C.endColumn, t) : mn(C.startRow, C.startColumn, t);
|
|
@@ -11323,45 +11323,157 @@ const Pd = (n, e, t, o, s = 1) => {
|
|
|
11323
11323
|
endColumn: p.endColumn
|
|
11324
11324
|
};
|
|
11325
11325
|
}, bh = {
|
|
11326
|
+
/**
|
|
11327
|
+
* The permission point for adding or editing workbook comments
|
|
11328
|
+
*/
|
|
11326
11329
|
WorkbookCommentPermission: Ws,
|
|
11330
|
+
/**
|
|
11331
|
+
* The permission point for copy in workbook
|
|
11332
|
+
*/
|
|
11327
11333
|
WorkbookCopyPermission: Ls,
|
|
11334
|
+
/**
|
|
11335
|
+
* The permission point for creating protect in a workbook
|
|
11336
|
+
*/
|
|
11328
11337
|
WorkbookCreateProtectPermission: Vs,
|
|
11338
|
+
/**
|
|
11339
|
+
* The permission point for creating new sheets in a workbook
|
|
11340
|
+
*/
|
|
11329
11341
|
WorkbookCreateSheetPermission: Hs,
|
|
11342
|
+
/**
|
|
11343
|
+
* The permission point for deleting sheets in a workbook
|
|
11344
|
+
*/
|
|
11330
11345
|
WorkbookDeleteSheetPermission: Bs,
|
|
11346
|
+
/**
|
|
11347
|
+
* The permission point for duplicating a sheet in a workbook
|
|
11348
|
+
*/
|
|
11331
11349
|
WorkbookDuplicatePermission: Fs,
|
|
11350
|
+
/**
|
|
11351
|
+
* The permission point for editing workbook content
|
|
11352
|
+
*/
|
|
11332
11353
|
WorkbookEditablePermission: Me,
|
|
11354
|
+
/**
|
|
11355
|
+
* The permission point for exporting workbook data
|
|
11356
|
+
*/
|
|
11333
11357
|
WorkbookExportPermission: js,
|
|
11358
|
+
/**
|
|
11359
|
+
* The permission point for hiding sheets in a workbook
|
|
11360
|
+
*/
|
|
11334
11361
|
WorkbookHideSheetPermission: vo,
|
|
11362
|
+
/**
|
|
11363
|
+
* The permission point for viewing and managing workbook history
|
|
11364
|
+
*/
|
|
11335
11365
|
WorkbookHistoryPermission: tu,
|
|
11366
|
+
/**
|
|
11367
|
+
* The permission point for managing collaborators in a workbook
|
|
11368
|
+
*/
|
|
11336
11369
|
WorkbookManageCollaboratorPermission: Mo,
|
|
11370
|
+
/**
|
|
11371
|
+
* The permission point for moving sheets within a workbook
|
|
11372
|
+
*/
|
|
11337
11373
|
WorkbookMoveSheetPermission: _o,
|
|
11374
|
+
/**
|
|
11375
|
+
* The permission point for printing a workbook
|
|
11376
|
+
*/
|
|
11338
11377
|
WorkbookPrintPermission: Gs,
|
|
11378
|
+
/**
|
|
11379
|
+
* The permission point for recovering a previous history state of a workbook
|
|
11380
|
+
*/
|
|
11339
11381
|
WorkbookRecoverHistoryPermission: zs,
|
|
11382
|
+
/**
|
|
11383
|
+
* The permission point for renaming sheets in a workbook
|
|
11384
|
+
*/
|
|
11340
11385
|
WorkbookRenameSheetPermission: bo,
|
|
11386
|
+
/**
|
|
11387
|
+
* The permission point for sharing a workbook with others
|
|
11388
|
+
*/
|
|
11341
11389
|
WorkbookSharePermission: Ks,
|
|
11390
|
+
/**
|
|
11391
|
+
* The permission point for viewing the history of a workbook
|
|
11392
|
+
*/
|
|
11342
11393
|
WorkbookViewHistoryPermission: Ys,
|
|
11394
|
+
/**
|
|
11395
|
+
* The permission point for viewing a workbook
|
|
11396
|
+
*/
|
|
11343
11397
|
WorkbookViewPermission: Js,
|
|
11398
|
+
/**
|
|
11399
|
+
* The permission point for copying contents from a worksheet
|
|
11400
|
+
*/
|
|
11344
11401
|
WorksheetCopyPermission: Xs,
|
|
11402
|
+
/**
|
|
11403
|
+
* The permission point for deleting columns in a worksheet
|
|
11404
|
+
*/
|
|
11345
11405
|
WorksheetDeleteColumnPermission: qs,
|
|
11406
|
+
/**
|
|
11407
|
+
* The permission point for deleting worksheet protection rules
|
|
11408
|
+
*/
|
|
11346
11409
|
WorksheetDeleteProtectionPermission: Zs,
|
|
11410
|
+
/**
|
|
11411
|
+
* The permission point for deleting rows in a worksheet
|
|
11412
|
+
*/
|
|
11347
11413
|
WorksheetDeleteRowPermission: Qs,
|
|
11414
|
+
/**
|
|
11415
|
+
* The permission point for editing extra objects (e.g. shapes) in a worksheet
|
|
11416
|
+
*/
|
|
11348
11417
|
WorksheetEditExtraObjectPermission: er,
|
|
11418
|
+
/**
|
|
11419
|
+
* The permission point for editing the content of a worksheet
|
|
11420
|
+
*/
|
|
11349
11421
|
WorksheetEditPermission: Te,
|
|
11422
|
+
/**
|
|
11423
|
+
* The permission point for applying filters in a worksheet
|
|
11424
|
+
*/
|
|
11350
11425
|
WorksheetFilterPermission: tr,
|
|
11426
|
+
/**
|
|
11427
|
+
* The permission point for inserting columns into a worksheet
|
|
11428
|
+
*/
|
|
11351
11429
|
WorksheetInsertColumnPermission: nr,
|
|
11430
|
+
/**
|
|
11431
|
+
* The permission point for inserting hyperlinks in a worksheet
|
|
11432
|
+
*/
|
|
11352
11433
|
WorksheetInsertHyperlinkPermission: or,
|
|
11434
|
+
/**
|
|
11435
|
+
* The permission point for inserting rows into a worksheet
|
|
11436
|
+
*/
|
|
11353
11437
|
WorksheetInsertRowPermission: sr,
|
|
11438
|
+
/**
|
|
11439
|
+
* The permission point for managing collaborators of a worksheet
|
|
11440
|
+
*/
|
|
11354
11441
|
WorksheetManageCollaboratorPermission: rr,
|
|
11442
|
+
/**
|
|
11443
|
+
* The permission point for creating or modifying pivot tables in a worksheet
|
|
11444
|
+
*/
|
|
11355
11445
|
WorksheetPivotTablePermission: ir,
|
|
11356
|
-
|
|
11357
|
-
|
|
11446
|
+
/**
|
|
11447
|
+
* The permission point for setting the style of cells in a worksheet
|
|
11448
|
+
*/
|
|
11358
11449
|
WorksheetSetCellStylePermission: ar,
|
|
11450
|
+
/**
|
|
11451
|
+
* The permission point for setting the value of cells in a worksheet
|
|
11452
|
+
*/
|
|
11359
11453
|
WorksheetSetCellValuePermission: wn,
|
|
11454
|
+
/**
|
|
11455
|
+
* The permission point for setting the style of columns in a worksheet
|
|
11456
|
+
*/
|
|
11360
11457
|
WorksheetSetColumnStylePermission: $t,
|
|
11458
|
+
/**
|
|
11459
|
+
* The permission point for setting the style of rows in a worksheet
|
|
11460
|
+
*/
|
|
11361
11461
|
WorksheetSetRowStylePermission: Wt,
|
|
11462
|
+
/**
|
|
11463
|
+
* The permission point for performing sort operations on a worksheet
|
|
11464
|
+
*/
|
|
11362
11465
|
WorksheetSortPermission: ur,
|
|
11466
|
+
/**
|
|
11467
|
+
* The permission point for viewing the content of a worksheet
|
|
11468
|
+
*/
|
|
11363
11469
|
WorksheetViewPermission: Hn,
|
|
11470
|
+
/**
|
|
11471
|
+
* The permission point for editing the range protection settings
|
|
11472
|
+
*/
|
|
11364
11473
|
RangeProtectionPermissionEditPoint: Pe,
|
|
11474
|
+
/**
|
|
11475
|
+
* The permission point for viewing the range protection settings
|
|
11476
|
+
*/
|
|
11365
11477
|
RangeProtectionPermissionViewPoint: Io
|
|
11366
11478
|
}, yh = (n, e, t, o) => {
|
|
11367
11479
|
const s = n.get(Fe), r = n.get(de), i = s.getPermissionPoint(new Me(e).id);
|
|
@@ -11376,10 +11488,10 @@ const Pd = (n, e, t, o, s = 1) => {
|
|
|
11376
11488
|
return !!(h != null && h.value);
|
|
11377
11489
|
}) : !0;
|
|
11378
11490
|
};
|
|
11379
|
-
function
|
|
11380
|
-
return e.some((t) =>
|
|
11491
|
+
function Ud(n, e) {
|
|
11492
|
+
return e.some((t) => Pd(n, t));
|
|
11381
11493
|
}
|
|
11382
|
-
function
|
|
11494
|
+
function Pd(n, e) {
|
|
11383
11495
|
const { startRow: t, startColumn: o, endColumn: s, endRow: r } = e, i = n.getMatrixWithMergedCells(t, o, r, s);
|
|
11384
11496
|
let a = !1;
|
|
11385
11497
|
return i.forValue((u, l, c) => {
|
|
@@ -11387,10 +11499,10 @@ function kd(n, e) {
|
|
|
11387
11499
|
return a = !0, !1;
|
|
11388
11500
|
}), a;
|
|
11389
11501
|
}
|
|
11390
|
-
function
|
|
11502
|
+
function Td(n, e, t, o) {
|
|
11391
11503
|
const s = [], r = [], i = t.getSheetId();
|
|
11392
11504
|
return o.forEach((a) => {
|
|
11393
|
-
const u =
|
|
11505
|
+
const u = kd(t, a), l = {
|
|
11394
11506
|
unitId: e,
|
|
11395
11507
|
subUnitId: i,
|
|
11396
11508
|
cellValue: u.getData()
|
|
@@ -11404,7 +11516,7 @@ function Nd(n, e, t, o) {
|
|
|
11404
11516
|
redos: r
|
|
11405
11517
|
};
|
|
11406
11518
|
}
|
|
11407
|
-
function
|
|
11519
|
+
function kd(n, e) {
|
|
11408
11520
|
const { startRow: t, startColumn: o, endColumn: s, endRow: r } = e, i = n.getMatrixWithMergedCells(t, o, r, s, Ni.Intercepted), a = new G();
|
|
11409
11521
|
return i.forValue((u, l, c) => {
|
|
11410
11522
|
c && (u !== t || l !== o) && a.setValue(u, l, null);
|
|
@@ -11414,7 +11526,7 @@ const Xn = {
|
|
|
11414
11526
|
type: v.COMMAND,
|
|
11415
11527
|
id: "sheet.command.add-worksheet-merge",
|
|
11416
11528
|
handler: (n, e) => {
|
|
11417
|
-
const t = n.get(E), o = n.get(W), s = n.get(M), r = e.unitId, i = e.subUnitId, a = e.selections, u = Zr(a, e.value), l = s.getUniverSheetInstance(r).getSheetBySheetId(i), c = [], d = [], h =
|
|
11529
|
+
const t = n.get(E), o = n.get(W), s = n.get(M), r = e.unitId, i = e.subUnitId, a = e.selections, u = Zr(a, e.value), l = s.getUniverSheetInstance(r).getSheetBySheetId(i), c = [], d = [], h = Ud(l, u), m = {
|
|
11418
11530
|
unitId: r,
|
|
11419
11531
|
subUnitId: i,
|
|
11420
11532
|
ranges: u
|
|
@@ -11426,7 +11538,7 @@ const Xn = {
|
|
|
11426
11538
|
c.push({ id: oe.id, params: m }), c.push({ id: ne.id, params: g });
|
|
11427
11539
|
const f = Se(n, m), p = Ue(n, g);
|
|
11428
11540
|
if (d.push({ id: oe.id, params: p }), d.push({ id: ne.id, params: f }), h) {
|
|
11429
|
-
const S =
|
|
11541
|
+
const S = Td(n, r, l, u);
|
|
11430
11542
|
c.unshift(...S.redos), d.push(...S.undos);
|
|
11431
11543
|
}
|
|
11432
11544
|
return z(c, t).result ? (o.pushUndoRedo({
|
|
@@ -11508,7 +11620,7 @@ function Th(n, e, t, o, s) {
|
|
|
11508
11620
|
defaultMerge: s
|
|
11509
11621
|
});
|
|
11510
11622
|
}
|
|
11511
|
-
const
|
|
11623
|
+
const Nd = (n, e) => {
|
|
11512
11624
|
const r = n.get(M).getUniverSheetInstance(e.unitId).getSheetBySheetId(e.subUnitId).getConfig().rightToLeft;
|
|
11513
11625
|
return {
|
|
11514
11626
|
...O.deepClone(e),
|
|
@@ -11539,7 +11651,7 @@ const Dd = (n, e) => {
|
|
|
11539
11651
|
rightToLeft: a,
|
|
11540
11652
|
unitId: r,
|
|
11541
11653
|
subUnitId: i
|
|
11542
|
-
}, l =
|
|
11654
|
+
}, l = Nd(
|
|
11543
11655
|
n,
|
|
11544
11656
|
u
|
|
11545
11657
|
);
|
|
@@ -11574,65 +11686,65 @@ export {
|
|
|
11574
11686
|
kt as BorderStyleManagerService,
|
|
11575
11687
|
gh as COMMAND_LISTENER_SKELETON_CHANGE,
|
|
11576
11688
|
fh as COMMAND_LISTENER_VALUE_CHANGE,
|
|
11577
|
-
|
|
11689
|
+
Hu as CancelFrozenCommand,
|
|
11578
11690
|
po as ClearSelectionAllCommand,
|
|
11579
11691
|
Co as ClearSelectionContentCommand,
|
|
11580
11692
|
So as ClearSelectionFormatCommand,
|
|
11581
11693
|
xs as CopySheetCommand,
|
|
11582
|
-
|
|
11694
|
+
Bd as DISABLE_NORMAL_SELECTIONS,
|
|
11583
11695
|
Un as DefinedNameDataController,
|
|
11584
11696
|
Pt as DeleteRangeMoveLeftCommand,
|
|
11585
11697
|
Tt as DeleteRangeMoveUpCommand,
|
|
11586
|
-
|
|
11698
|
+
nu as DeleteRangeProtectionCommand,
|
|
11587
11699
|
ze as DeleteRangeProtectionMutation,
|
|
11588
|
-
|
|
11700
|
+
ou as DeleteWorksheetProtectionCommand,
|
|
11589
11701
|
St as DeleteWorksheetProtectionMutation,
|
|
11590
|
-
|
|
11702
|
+
su as DeleteWorksheetRangeThemeStyleCommand,
|
|
11591
11703
|
Kt as DeleteWorksheetRangeThemeStyleMutation,
|
|
11592
11704
|
_a as DeleteWorksheetRangeThemeStyleMutationFactory,
|
|
11593
11705
|
Oo as DeltaColumnWidthCommand,
|
|
11594
11706
|
$o as DeltaRowHeightCommand,
|
|
11595
11707
|
Yi as EditStateEnum,
|
|
11596
11708
|
$ as EffectRefRangId,
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11709
|
+
Nl as EmptyMutation,
|
|
11710
|
+
qc as ExclusiveRangeService,
|
|
11711
|
+
Hd as FactoryAddRangeProtectionMutation,
|
|
11712
|
+
Vd as FactoryDeleteRangeProtectionMutation,
|
|
11601
11713
|
qd as FactorySetRangeProtectionMutation,
|
|
11602
11714
|
ds as IExclusiveRangeService,
|
|
11603
11715
|
et as INTERCEPTOR_POINT,
|
|
11604
11716
|
wt as INumfmtService,
|
|
11605
11717
|
Xa as IRefSelectionsService,
|
|
11606
|
-
|
|
11607
|
-
|
|
11718
|
+
hu as InsertColAfterCommand,
|
|
11719
|
+
du as InsertColBeforeCommand,
|
|
11608
11720
|
pr as InsertColByRangeCommand,
|
|
11609
11721
|
gt as InsertColCommand,
|
|
11610
11722
|
je as InsertColMutation,
|
|
11611
11723
|
yo as InsertColMutationUndoFactory,
|
|
11612
|
-
|
|
11724
|
+
ru as InsertDefinedNameCommand,
|
|
11613
11725
|
sn as InsertRangeMoveDownCommand,
|
|
11614
11726
|
Bn as InsertRangeMoveRightCommand,
|
|
11615
|
-
|
|
11616
|
-
|
|
11727
|
+
cu as InsertRowAfterCommand,
|
|
11728
|
+
lu as InsertRowBeforeCommand,
|
|
11617
11729
|
fr as InsertRowByRangeCommand,
|
|
11618
11730
|
mt as InsertRowCommand,
|
|
11619
11731
|
qe as InsertRowMutation,
|
|
11620
11732
|
mr as InsertRowMutationUndoFactory,
|
|
11621
|
-
|
|
11733
|
+
mu as InsertSheetCommand,
|
|
11622
11734
|
Jt as InsertSheetMutation,
|
|
11623
11735
|
As as InsertSheetUndoMutationFactory,
|
|
11624
11736
|
ea as InterceptCellContentPriority,
|
|
11625
|
-
|
|
11626
|
-
|
|
11737
|
+
$l as MAX_CELL_PER_SHEET_KEY,
|
|
11738
|
+
kc as MERGE_CELL_INTERCEPTOR_CHECK,
|
|
11627
11739
|
Tn as MergeCellController,
|
|
11628
11740
|
jn as MoveColsCommand,
|
|
11629
11741
|
st as MoveColsMutation,
|
|
11630
|
-
|
|
11742
|
+
fu as MoveColsMutationUndoFactory,
|
|
11631
11743
|
pt as MoveRangeCommand,
|
|
11632
11744
|
dt as MoveRangeMutation,
|
|
11633
11745
|
Fn as MoveRowsCommand,
|
|
11634
11746
|
ot as MoveRowsMutation,
|
|
11635
|
-
|
|
11747
|
+
gu as MoveRowsMutationUndoFactory,
|
|
11636
11748
|
co as NumfmtService,
|
|
11637
11749
|
q as OperatorType,
|
|
11638
11750
|
bh as PermissionPointsDefinitions,
|
|
@@ -11650,7 +11762,7 @@ export {
|
|
|
11650
11762
|
yt as RangeThemeStyle,
|
|
11651
11763
|
_t as RefRangeService,
|
|
11652
11764
|
qo as RefSelectionsService,
|
|
11653
|
-
|
|
11765
|
+
Cu as RegisterWorksheetRangeThemeStyleCommand,
|
|
11654
11766
|
Yt as RegisterWorksheetRangeThemeStyleMutation,
|
|
11655
11767
|
Mr as RemoveColByRangeCommand,
|
|
11656
11768
|
zn as RemoveColCommand,
|
|
@@ -11664,29 +11776,29 @@ export {
|
|
|
11664
11776
|
ko as RemoveSheetCommand,
|
|
11665
11777
|
Ut as RemoveSheetMutation,
|
|
11666
11778
|
ja as RemoveSheetUndoMutationFactory,
|
|
11667
|
-
|
|
11779
|
+
Su as RemoveWorksheetMergeCommand,
|
|
11668
11780
|
oe as RemoveWorksheetMergeMutation,
|
|
11669
11781
|
uo as ReorderRangeCommand,
|
|
11670
11782
|
In as ReorderRangeMutation,
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11783
|
+
Iu as ReorderRangeUndoMutationFactory,
|
|
11784
|
+
Qu as ResetBackgroundColorCommand,
|
|
11785
|
+
qu as ResetTextColorCommand,
|
|
11674
11786
|
ch as SCOPE_WORKBOOK_VALUE_DEFINED_NAME,
|
|
11675
|
-
|
|
11787
|
+
Fd as SELECTIONS_ENABLED,
|
|
11676
11788
|
Sh as SELECTION_CONTROL_BORDER_BUFFER_COLOR,
|
|
11677
11789
|
Ch as SELECTION_CONTROL_BORDER_BUFFER_WIDTH,
|
|
11678
|
-
|
|
11790
|
+
xl as ScrollToCellOperation,
|
|
11679
11791
|
Ce as SelectionMoveType,
|
|
11680
|
-
|
|
11792
|
+
Zu as SetBackgroundColorCommand,
|
|
11681
11793
|
Zd as SetBoldCommand,
|
|
11682
|
-
|
|
11683
|
-
|
|
11794
|
+
ku as SetBorderBasicCommand,
|
|
11795
|
+
Tu as SetBorderColorCommand,
|
|
11684
11796
|
rn as SetBorderCommand,
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11797
|
+
Uu as SetBorderPositionCommand,
|
|
11798
|
+
Pu as SetBorderStyleCommand,
|
|
11799
|
+
Au as SetColDataCommand,
|
|
11688
11800
|
Lt as SetColDataMutation,
|
|
11689
|
-
|
|
11801
|
+
Du as SetColDataMutationFactory,
|
|
11690
11802
|
yr as SetColHiddenCommand,
|
|
11691
11803
|
Xt as SetColHiddenMutation,
|
|
11692
11804
|
qt as SetColVisibleMutation,
|
|
@@ -11694,23 +11806,23 @@ export {
|
|
|
11694
11806
|
Ur as SetDefinedNameCommand,
|
|
11695
11807
|
oh as SetFontFamilyCommand,
|
|
11696
11808
|
sh as SetFontSizeCommand,
|
|
11697
|
-
|
|
11809
|
+
Vu as SetFrozenCommand,
|
|
11698
11810
|
ut as SetFrozenMutation,
|
|
11699
11811
|
Pr as SetFrozenMutationFactory,
|
|
11700
|
-
|
|
11812
|
+
Bu as SetGridlinesColorCommand,
|
|
11701
11813
|
Vt as SetGridlinesColorMutation,
|
|
11702
|
-
|
|
11814
|
+
tl as SetHorizontalTextAlignCommand,
|
|
11703
11815
|
Qd as SetItalicCommand,
|
|
11704
11816
|
Vo as SetNumfmtMutation,
|
|
11705
11817
|
nh as SetOverlineCommand,
|
|
11706
|
-
|
|
11818
|
+
Fu as SetProtectionCommand,
|
|
11707
11819
|
he as SetRangeProtectionMutation,
|
|
11708
11820
|
on as SetRangeValuesCommand,
|
|
11709
11821
|
Q as SetRangeValuesMutation,
|
|
11710
11822
|
Ae as SetRangeValuesUndoMutationFactory,
|
|
11711
|
-
|
|
11823
|
+
Gu as SetRowDataCommand,
|
|
11712
11824
|
Ht as SetRowDataMutation,
|
|
11713
|
-
|
|
11825
|
+
ju as SetRowDataMutationFactory,
|
|
11714
11826
|
Wo as SetRowHeightCommand,
|
|
11715
11827
|
kr as SetRowHiddenCommand,
|
|
11716
11828
|
Qt as SetRowHiddenMutation,
|
|
@@ -11722,31 +11834,31 @@ export {
|
|
|
11722
11834
|
Jn as SetSpecificRowsVisibleCommand,
|
|
11723
11835
|
th as SetStrikeThroughCommand,
|
|
11724
11836
|
fe as SetStyleCommand,
|
|
11725
|
-
|
|
11837
|
+
rl as SetTabColorCommand,
|
|
11726
11838
|
fn as SetTabColorMutation,
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11839
|
+
Xu as SetTextColorCommand,
|
|
11840
|
+
ol as SetTextRotationCommand,
|
|
11841
|
+
nl as SetTextWrapCommand,
|
|
11730
11842
|
eh as SetUnderlineCommand,
|
|
11731
|
-
|
|
11843
|
+
el as SetVerticalTextAlignCommand,
|
|
11732
11844
|
Dr as SetWorkbookNameCommand,
|
|
11733
11845
|
Or as SetWorkbookNameMutation,
|
|
11734
11846
|
Ar as SetWorksheetActivateCommand,
|
|
11735
11847
|
an as SetWorksheetActiveOperation,
|
|
11736
11848
|
tt as SetWorksheetColWidthMutation,
|
|
11737
11849
|
xr as SetWorksheetColWidthMutationFactory,
|
|
11738
|
-
|
|
11850
|
+
ll as SetWorksheetDefaultStyleCommand,
|
|
11739
11851
|
Bt as SetWorksheetDefaultStyleMutation,
|
|
11740
|
-
|
|
11741
|
-
|
|
11852
|
+
ul as SetWorksheetDefaultStyleMutationFactory,
|
|
11853
|
+
cl as SetWorksheetHideCommand,
|
|
11742
11854
|
lt as SetWorksheetHideMutation,
|
|
11743
11855
|
Do as SetWorksheetNameCommand,
|
|
11744
11856
|
_n as SetWorksheetNameMutation,
|
|
11745
11857
|
Wr as SetWorksheetOrderCommand,
|
|
11746
11858
|
Rn as SetWorksheetOrderMutation,
|
|
11747
|
-
|
|
11859
|
+
Sl as SetWorksheetPermissionPointsCommand,
|
|
11748
11860
|
Ao as SetWorksheetPermissionPointsMutation,
|
|
11749
|
-
|
|
11861
|
+
wl as SetWorksheetProtectionCommand,
|
|
11750
11862
|
Ct as SetWorksheetProtectionMutation,
|
|
11751
11863
|
ba as SetWorksheetRangeThemeStyleCommand,
|
|
11752
11864
|
zt as SetWorksheetRangeThemeStyleMutation,
|
|
@@ -11763,17 +11875,17 @@ export {
|
|
|
11763
11875
|
Nn as SheetPermissionCheckController,
|
|
11764
11876
|
On as SheetPermissionInitController,
|
|
11765
11877
|
ho as SheetRangeThemeService,
|
|
11766
|
-
|
|
11767
|
-
|
|
11878
|
+
Sd as SheetSkeletonChangeType,
|
|
11879
|
+
wd as SheetValueChangeType,
|
|
11768
11880
|
F as SheetsSelectionsService,
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11881
|
+
Ul as SplitTextToColumnsCommand,
|
|
11882
|
+
Pl as ToggleCellCheckboxCommand,
|
|
11883
|
+
Tl as ToggleGridlinesCommand,
|
|
11772
11884
|
Ft as ToggleGridlinesMutation,
|
|
11773
11885
|
_ as UnitAction,
|
|
11774
11886
|
D as UnitObject,
|
|
11775
11887
|
Wn as UniverSheetsPlugin,
|
|
11776
|
-
|
|
11888
|
+
kl as UnregisterWorksheetRangeThemeStyleCommand,
|
|
11777
11889
|
Uo as UnregisterWorksheetRangeThemeStyleMutation,
|
|
11778
11890
|
Ji as ViewStateEnum,
|
|
11779
11891
|
Ws as WorkbookCommentPermission,
|
|
@@ -11812,8 +11924,8 @@ export {
|
|
|
11812
11924
|
ir as WorksheetPivotTablePermission,
|
|
11813
11925
|
un as WorksheetProtectionPointModel,
|
|
11814
11926
|
Ye as WorksheetProtectionRuleModel,
|
|
11815
|
-
|
|
11816
|
-
|
|
11927
|
+
Kd as WorksheetSelectProtectedCellsPermission,
|
|
11928
|
+
Jd as WorksheetSelectUnProtectedCellsPermission,
|
|
11817
11929
|
ar as WorksheetSetCellStylePermission,
|
|
11818
11930
|
wn as WorksheetSetCellValuePermission,
|
|
11819
11931
|
$t as WorksheetSetColumnStylePermission,
|
|
@@ -11821,16 +11933,16 @@ export {
|
|
|
11821
11933
|
ur as WorksheetSortPermission,
|
|
11822
11934
|
Hn as WorksheetViewPermission,
|
|
11823
11935
|
Th as addMergeCellsUtil,
|
|
11824
|
-
|
|
11936
|
+
pc as adjustRangeOnMutation,
|
|
11825
11937
|
Ln as alignToMergedCellsBorders,
|
|
11826
11938
|
it as baseProtectionActions,
|
|
11827
11939
|
yh as checkRangesEditablePermission,
|
|
11828
|
-
|
|
11940
|
+
Id as convertPrimaryWithCoordToPrimary,
|
|
11829
11941
|
wh as convertSelectionDataToRange,
|
|
11830
11942
|
Vn as copyRangeStyles,
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11943
|
+
Dl as createTopMatrixFromMatrix,
|
|
11944
|
+
Ol as createTopMatrixFromRanges,
|
|
11945
|
+
ml as defaultWorkbookPermissionPoints,
|
|
11834
11946
|
eo as defaultWorksheetPermissionPoint,
|
|
11835
11947
|
Mh as expandToContinuousRange,
|
|
11836
11948
|
lh as factoryRemoveNumfmtUndoMutation,
|
|
@@ -11844,7 +11956,7 @@ export {
|
|
|
11844
11956
|
en as getAllWorkbookPermissionPoint,
|
|
11845
11957
|
we as getAllWorksheetPermissionPoint,
|
|
11846
11958
|
ke as getAllWorksheetPermissionPointByPointPanel,
|
|
11847
|
-
|
|
11959
|
+
jd as getCellAtRowCol,
|
|
11848
11960
|
rh as getDefaultRangePermission,
|
|
11849
11961
|
lr as getInsertRangeMutations,
|
|
11850
11962
|
wo as getMoveRangeUndoRedoMutations,
|
|
@@ -11865,24 +11977,24 @@ export {
|
|
|
11865
11977
|
hh as handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests,
|
|
11866
11978
|
os as handleDefaultRangeChangeWithEffectRefCommands,
|
|
11867
11979
|
dh as handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests,
|
|
11868
|
-
|
|
11869
|
-
|
|
11980
|
+
cc as handleDeleteRangeMoveLeft,
|
|
11981
|
+
hc as handleDeleteRangeMoveUp,
|
|
11870
11982
|
Xd as handleDeleteRangeMutation,
|
|
11871
11983
|
Xr as handleIRemoveCol,
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11984
|
+
tc as handleIRemoveRow,
|
|
11985
|
+
rc as handleInsertCol,
|
|
11986
|
+
ic as handleInsertRangeMoveDown,
|
|
11987
|
+
uc as handleInsertRangeMoveRight,
|
|
11876
11988
|
Yd as handleInsertRangeMutation,
|
|
11877
|
-
|
|
11989
|
+
sc as handleInsertRow,
|
|
11878
11990
|
Yr as handleMoveCols,
|
|
11879
|
-
|
|
11991
|
+
Ql as handleMoveRange,
|
|
11880
11992
|
Jr as handleMoveRows,
|
|
11881
|
-
|
|
11993
|
+
zd as isSingleCellSelection,
|
|
11882
11994
|
Gr as rangeMerge,
|
|
11883
11995
|
_e as rotateRange,
|
|
11884
11996
|
Mt as runRefRangeMutations,
|
|
11885
|
-
|
|
11886
|
-
|
|
11997
|
+
Gd as setEndForRange,
|
|
11998
|
+
El as splitRangeText,
|
|
11887
11999
|
lo as transformCellsToRange
|
|
11888
12000
|
};
|