@univerjs/sheets-table 0.16.1 → 0.17.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/index.js +1 -1
- package/lib/es/index.js +411 -408
- package/lib/index.js +411 -408
- package/lib/types/controllers/table-theme.factory.d.ts +1 -1
- package/lib/types/index.d.ts +14 -14
- package/lib/types/plugin.d.ts +3 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
package/lib/es/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (t, e, n) =>
|
|
4
|
-
import { CellValueType as J, UniverInstanceType as
|
|
5
|
-
import { IDefinedNamesService as
|
|
6
|
-
import { getSheetCommandTarget as $,
|
|
7
|
-
import { Subject as Y, BehaviorSubject as
|
|
8
|
-
var M = /* @__PURE__ */ ((t) => (t.Insert = "insert", t.Delete = "delete", t))(M || {}), N = /* @__PURE__ */ ((t) => (t.Row = "row", t.Col = "column", t))(N || {}),
|
|
9
|
-
function
|
|
1
|
+
var it = Object.defineProperty;
|
|
2
|
+
var lt = (t, e, n) => e in t ? it(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var b = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { CellValueType as J, UniverInstanceType as z, BorderStyleTypes as ut, createREGEXFromWildChar as ee, generateRandomId as B, IUniverInstanceService as A, Inject as C, LocaleService as be, Disposable as H, CommandType as y, IUndoRedoService as L, ICommandService as D, customNameCharacterCheck as We, sequenceExecute as E, ILogService as He, IResourceManagerService as ct, Rectangle as _e, RTree as dt, InterceptorEffectEnum as ht, Injector as Ve, IConfigService as Pe, Plugin as gt, merge as mt, registerDependencies as bt, touchDependencies as Me } from "@univerjs/core";
|
|
5
|
+
import { IDefinedNamesService as qe, RemoveSuperTableMutation as ve, SetSuperTableMutation as wt } from "@univerjs/engine-formula";
|
|
6
|
+
import { getSheetCommandTarget as $, AddRangeThemeMutation as Je, RemoveRangeThemeMutation as ke, SheetRangeThemeModel as Qe, SheetInterceptorService as Re, INTERCEPTOR_POINT as Ye, RemoveSheetCommand as ft, CopySheetCommand as pt, SheetsSelectionsService as we, InsertRowMutation as Ge, RemoveRowMutation as je, getMoveRangeUndoRedoMutations as fe, InsertColMutation as ze, RemoveColMutation as Ke, IExclusiveRangeService as St, RefRangeService as _t, RemoveColCommand as Ct, RemoveRowCommand as Rt, InsertColCommand as Tt, InsertRowCommand as It, SheetRangeThemeService as Mt, RangeThemeStyle as vt, ZebraCrossingCacheController as Ft } from "@univerjs/sheets";
|
|
7
|
+
import { Subject as Y, BehaviorSubject as Xe, filter as pe, switchMap as Fe } from "rxjs";
|
|
8
|
+
var M = /* @__PURE__ */ ((t) => (t.Insert = "insert", t.Delete = "delete", t))(M || {}), N = /* @__PURE__ */ ((t) => (t.Row = "row", t.Col = "column", t))(N || {}), Ze = /* @__PURE__ */ ((t) => (t.None = "none", t.String = "string", t.Number = "number", t.Date = "date", t.Bool = "bool", t.Checkbox = "checkbox", t.List = "list", t))(Ze || {}), se = /* @__PURE__ */ ((t) => (t.manual = "manual", t.condition = "condition", t))(se || {}), U = /* @__PURE__ */ ((t) => (t.Date = "date", t.Number = "number", t.String = "string", t.Logic = "logic", t))(U || {}), F = /* @__PURE__ */ ((t) => (t.Equal = "equal", t.NotEqual = "notEqual", t.GreaterThan = "greaterThan", t.GreaterThanOrEqual = "greaterThanOrEqual", t.LessThan = "lessThan", t.LessThanOrEqual = "lessThanOrEqual", t.Between = "between", t.NotBetween = "notBetween", t.Above = "above", t.Below = "below", t.TopN = "topN", t))(F || {}), P = /* @__PURE__ */ ((t) => (t.Equal = "equal", t.NotEqual = "notEqual", t.Contains = "contains", t.NotContains = "notContains", t.StartsWith = "startsWith", t.EndsWith = "endsWith", t))(P || {}), m = /* @__PURE__ */ ((t) => (t.Equal = "equal", t.NotEqual = "notEqual", t.After = "after", t.AfterOrEqual = "afterOrEqual", t.Before = "before", t.BeforeOrEqual = "beforeOrEqual", t.Between = "between", t.NotBetween = "notBetween", t.Today = "today", t.Yesterday = "yesterday", t.Tomorrow = "tomorrow", t.ThisWeek = "thisWeek", t.LastWeek = "lastWeek", t.NextWeek = "nextWeek", t.ThisMonth = "thisMonth", t.LastMonth = "lastMonth", t.NextMonth = "nextMonth", t.ThisQuarter = "thisQuarter", t.LastQuarter = "lastQuarter", t.NextQuarter = "nextQuarter", t.ThisYear = "thisYear", t.LastYear = "lastYear", t.NextYear = "nextYear", t.YearToDate = "yearToDate", t.Quarter = "quarter", t.Month = "month", t.M1 = "m1", t.M2 = "m2", t.M3 = "m3", t.M4 = "m4", t.M5 = "m5", t.M6 = "m6", t.M7 = "m7", t.M8 = "m8", t.M9 = "m9", t.M10 = "m10", t.M11 = "m11", t.M12 = "m12", t.Q1 = "q1", t.Q2 = "q2", t.Q3 = "q3", t.Q4 = "q4", t))(m || {}), q = /* @__PURE__ */ ((t) => (t[t.FilteredSortNone = 1] = "FilteredSortNone", t[t.FilteredSortAsc = 2] = "FilteredSortAsc", t[t.FilteredSortDesc = 3] = "FilteredSortDesc", t[t.FilterNoneSortNone = 4] = "FilterNoneSortNone", t[t.FilterNoneSortAsc = 5] = "FilterNoneSortAsc", t[t.FilterNoneSortDesc = 6] = "FilterNoneSortDesc", t))(q || {}), j = /* @__PURE__ */ ((t) => (t.Asc = "asc", t.Desc = "desc", t.None = "none", t))(j || {});
|
|
9
|
+
function ne(t, e) {
|
|
10
10
|
return `${e} ${t}`;
|
|
11
11
|
}
|
|
12
|
-
const Ne = "TRUE", ye = "FALSE",
|
|
12
|
+
const Ne = "TRUE", ye = "FALSE", Nt = (t) => {
|
|
13
13
|
var n;
|
|
14
14
|
return ((n = t.body) == null ? void 0 : n.dataStream.replace(/\r\n$/, "")) || "";
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function et(t) {
|
|
17
17
|
if (t) {
|
|
18
18
|
const { v: e, t: n, p: s } = t;
|
|
19
|
-
return s ?
|
|
19
|
+
return s ? Nt(s) : (n === J.FORCE_STRING || n === J.STRING) && e !== void 0 && e !== null ? String(e) : n === J.BOOLEAN ? e ? Ne : ye : n === J.NUMBER ? String(e) : typeof e === "boolean" ? e ? Ne : ye : e == null ? "" : String(e);
|
|
20
20
|
}
|
|
21
21
|
return "";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function yt(t, e) {
|
|
24
24
|
if (t != null)
|
|
25
25
|
switch (e) {
|
|
26
|
-
case
|
|
26
|
+
case j.Asc:
|
|
27
27
|
return q.FilteredSortAsc;
|
|
28
|
-
case
|
|
28
|
+
case j.Desc:
|
|
29
29
|
return q.FilteredSortDesc;
|
|
30
30
|
default:
|
|
31
31
|
return q.FilteredSortNone;
|
|
32
32
|
}
|
|
33
33
|
else
|
|
34
34
|
switch (e) {
|
|
35
|
-
case
|
|
35
|
+
case j.Asc:
|
|
36
36
|
return q.FilterNoneSortAsc;
|
|
37
|
-
case
|
|
37
|
+
case j.Desc:
|
|
38
38
|
return q.FilterNoneSortDesc;
|
|
39
39
|
default:
|
|
40
40
|
return q.FilterNoneSortNone;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return t ? t.filterType ===
|
|
43
|
+
function Dt(t) {
|
|
44
|
+
return t ? t.filterType === se.condition : !1;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return t ? t.filterType ===
|
|
46
|
+
function ws(t) {
|
|
47
|
+
return t ? t.filterType === se.manual : !1;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const { univerInstanceService: n, tableManager: s, definedNamesService: r } = e, a = /* @__PURE__ */ new Set(), o = n == null ? void 0 : n.getUnit(t,
|
|
49
|
+
function tt(t, e) {
|
|
50
|
+
const { univerInstanceService: n, tableManager: s, definedNamesService: r } = e, a = /* @__PURE__ */ new Set(), o = n == null ? void 0 : n.getUnit(t, z.UNIVER_SHEET);
|
|
51
51
|
o && o.getSheets().forEach((i) => {
|
|
52
52
|
a.add(i.getName().toLowerCase());
|
|
53
53
|
});
|
|
@@ -61,11 +61,11 @@ function et(t, e) {
|
|
|
61
61
|
}), a;
|
|
62
62
|
}
|
|
63
63
|
const x = {
|
|
64
|
-
s:
|
|
64
|
+
s: ut.THIN,
|
|
65
65
|
cl: {
|
|
66
66
|
rgb: "rgb(95, 101, 116)"
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, nt = "sheets-table.config", De = {}, fs = {
|
|
69
69
|
headerRowStyle: {
|
|
70
70
|
bd: {
|
|
71
71
|
t: x
|
|
@@ -86,7 +86,7 @@ const x = {
|
|
|
86
86
|
b: x
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, ps = (t, e) => {
|
|
90
90
|
if (t === "headerRowStyle") {
|
|
91
91
|
if (!e.bd)
|
|
92
92
|
return {
|
|
@@ -119,14 +119,14 @@ const x = {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
return e;
|
|
122
|
-
},
|
|
122
|
+
}, xt = [
|
|
123
123
|
[["#6280F9", "#FFFFFF", "#BAC6F8", "#D2DAFA"], ["#fff"]],
|
|
124
124
|
[["#16BDCA", "#FFFFFF", "#EDFAFA", "#AFECEF"], ["#000"]],
|
|
125
125
|
[["#31C48D", "#FFFFFF", "#F3FAF7", "#BCF0DA"], ["#fff"]],
|
|
126
126
|
[["#AC94FA", "#FFFFFF", "#F6F5FF", "#EDEBFE"], ["#fff"]],
|
|
127
127
|
[["#F17EBB", "#FFFFFF", "#FDF2F8", "#FCE8F3"], ["#fff"]],
|
|
128
128
|
[["#F98080", "#FFFFFF", "#FDF2F2", "#FDE8E8"], ["#fff"]]
|
|
129
|
-
],
|
|
129
|
+
], st = xt.map((t, e) => {
|
|
130
130
|
const [n, s] = t, [r, a, o, u] = n, [l] = s;
|
|
131
131
|
return {
|
|
132
132
|
name: `table-default-${e}`,
|
|
@@ -173,7 +173,7 @@ const x = {
|
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
});
|
|
176
|
-
class
|
|
176
|
+
class K {
|
|
177
177
|
constructor(e, n) {
|
|
178
178
|
b(this, "dataType");
|
|
179
179
|
b(this, "id");
|
|
@@ -181,7 +181,7 @@ class z {
|
|
|
181
181
|
b(this, "formula");
|
|
182
182
|
b(this, "meta");
|
|
183
183
|
b(this, "style");
|
|
184
|
-
this.id = e, this.displayName = n, this.dataType =
|
|
184
|
+
this.id = e, this.displayName = n, this.dataType = Ze.String, this.formula = "", this.meta = {}, this.style = {};
|
|
185
185
|
}
|
|
186
186
|
getMeta() {
|
|
187
187
|
return this.meta;
|
|
@@ -206,45 +206,45 @@ class z {
|
|
|
206
206
|
this.id = e.id, this.displayName = e.displayName, this.dataType = e.dataType, this.formula = e.formula, this.meta = e.meta, this.style = e.style;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Ot = (t) => t.getMonth() <= 2, Ut = (t) => {
|
|
210
210
|
const e = t.getMonth();
|
|
211
211
|
return e > 2 && e <= 5;
|
|
212
|
-
},
|
|
212
|
+
}, $t = (t) => {
|
|
213
213
|
const e = t.getMonth();
|
|
214
214
|
return e > 5 && e <= 8;
|
|
215
|
-
},
|
|
215
|
+
}, At = (t) => {
|
|
216
216
|
const e = t.getMonth();
|
|
217
217
|
return e > 8 && e <= 11;
|
|
218
|
-
},
|
|
218
|
+
}, Lt = (t) => t.getMonth() === 0, Et = (t) => t.getMonth() === 1, Bt = (t) => t.getMonth() === 2, Wt = (t) => t.getMonth() === 3, Ht = (t) => t.getMonth() === 4, Vt = (t) => t.getMonth() === 5, Pt = (t) => t.getMonth() === 6, qt = (t) => t.getMonth() === 7, Jt = (t) => t.getMonth() === 8, kt = (t) => t.getMonth() === 9, Qt = (t) => t.getMonth() === 10, Yt = (t) => t.getMonth() === 11, Gt = (t, e = /* @__PURE__ */ new Date()) => t.toDateString() === e.toDateString(), jt = (t, e = /* @__PURE__ */ new Date()) => {
|
|
219
219
|
const n = new Date(e);
|
|
220
220
|
return n.setDate(n.getDate() + 1), t.toDateString() === n.toDateString();
|
|
221
|
-
},
|
|
221
|
+
}, zt = (t, e = /* @__PURE__ */ new Date()) => {
|
|
222
222
|
const n = new Date(e);
|
|
223
223
|
return n.setDate(n.getDate() - 1), t.toDateString() === n.toDateString();
|
|
224
|
-
},
|
|
224
|
+
}, X = (t) => {
|
|
225
225
|
const e = t.getDay(), n = t.getDate() - e + (e === 0 ? -6 : 1), s = new Date(t);
|
|
226
226
|
return s.setDate(n), s;
|
|
227
|
-
},
|
|
228
|
-
const n =
|
|
229
|
-
return n.toDateString() === s.toDateString();
|
|
230
|
-
}, Kt = (t, e = /* @__PURE__ */ new Date()) => {
|
|
231
|
-
const n = K(t), s = new Date(K(e).getTime() + st);
|
|
227
|
+
}, rt = 10080 * 60 * 1e3, Kt = (t, e = /* @__PURE__ */ new Date()) => {
|
|
228
|
+
const n = X(t), s = X(e);
|
|
232
229
|
return n.toDateString() === s.toDateString();
|
|
233
230
|
}, Xt = (t, e = /* @__PURE__ */ new Date()) => {
|
|
234
|
-
const n =
|
|
231
|
+
const n = X(t), s = new Date(X(e).getTime() + rt);
|
|
235
232
|
return n.toDateString() === s.toDateString();
|
|
236
|
-
}, Zt = (t, e = /* @__PURE__ */ new Date()) =>
|
|
233
|
+
}, Zt = (t, e = /* @__PURE__ */ new Date()) => {
|
|
234
|
+
const n = X(t), s = new Date(X(e).getTime() - rt);
|
|
235
|
+
return n.toDateString() === s.toDateString();
|
|
236
|
+
}, en = (t, e = /* @__PURE__ */ new Date()) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth(), tn = (t) => {
|
|
237
237
|
const e = new Date(t);
|
|
238
238
|
return e.setHours(0, 0, 0, 0), e.setDate(1), e;
|
|
239
|
-
},
|
|
239
|
+
}, nn = (t, e = /* @__PURE__ */ new Date()) => {
|
|
240
240
|
const n = new Date(e);
|
|
241
241
|
n.setHours(0, 0, 0, 0), n.setMonth(n.getMonth() + 1, 1);
|
|
242
242
|
const s = new Date(n);
|
|
243
243
|
s.setMonth(s.getMonth() + 1, 0);
|
|
244
244
|
const r = t.getTime();
|
|
245
245
|
return r >= n.getTime() && r < s.getTime();
|
|
246
|
-
},
|
|
247
|
-
const n =
|
|
246
|
+
}, sn = (t, e = /* @__PURE__ */ new Date()) => {
|
|
247
|
+
const n = tn(e), s = new Date(n);
|
|
248
248
|
s.setMonth(s.getMonth() + 1, 0);
|
|
249
249
|
const r = t.getTime();
|
|
250
250
|
return r >= n.getTime() && r < s.getTime();
|
|
@@ -253,32 +253,32 @@ const xt = (t) => t.getMonth() <= 2, Ot = (t) => {
|
|
|
253
253
|
e.setHours(0, 0, 0, 0), e.setDate(1);
|
|
254
254
|
const n = e.getMonth();
|
|
255
255
|
return e.setMonth(n - n % 3), e;
|
|
256
|
-
},
|
|
256
|
+
}, rn = (t, e = /* @__PURE__ */ new Date()) => {
|
|
257
257
|
const n = Te(e), s = new Date(n);
|
|
258
258
|
s.setMonth(s.getMonth() + 3);
|
|
259
259
|
const r = t.getTime();
|
|
260
260
|
return r >= n.getTime() && r < s.getTime();
|
|
261
|
-
},
|
|
261
|
+
}, an = (t, e = /* @__PURE__ */ new Date()) => {
|
|
262
262
|
const n = Te(e), s = new Date(n);
|
|
263
263
|
s.setMonth(s.getMonth() + 3);
|
|
264
264
|
const r = new Date(s);
|
|
265
265
|
r.setMonth(r.getMonth() + 3, 0);
|
|
266
266
|
const a = t.getTime();
|
|
267
267
|
return a >= s.getTime() && a < r.getTime();
|
|
268
|
-
},
|
|
268
|
+
}, on = (t, e = /* @__PURE__ */ new Date()) => {
|
|
269
269
|
const n = Te(e), s = new Date(n);
|
|
270
270
|
s.setMonth(s.getMonth() - 3);
|
|
271
271
|
const r = new Date(n);
|
|
272
272
|
r.setDate(0);
|
|
273
273
|
const a = t.getTime();
|
|
274
274
|
return a >= s.getTime() && a < r.getTime();
|
|
275
|
-
},
|
|
275
|
+
}, ln = (t, e = /* @__PURE__ */ new Date()) => t.getFullYear() === e.getFullYear(), un = (t, e = /* @__PURE__ */ new Date()) => t.getFullYear() === e.getFullYear() + 1, cn = (t, e = /* @__PURE__ */ new Date()) => t.getFullYear() === e.getFullYear() - 1, dn = (t, e = /* @__PURE__ */ new Date()) => {
|
|
276
276
|
const n = new Date(e);
|
|
277
277
|
n.setHours(0, 0, 0, 0), n.setMonth(0, 1);
|
|
278
278
|
const s = t.getTime();
|
|
279
279
|
return s >= n.getTime() && s < e.getTime();
|
|
280
280
|
};
|
|
281
|
-
function
|
|
281
|
+
function hn(t) {
|
|
282
282
|
switch (t.compareType) {
|
|
283
283
|
case m.Equal: {
|
|
284
284
|
const e = new Date(t.expectedValue);
|
|
@@ -316,105 +316,105 @@ function dn(t) {
|
|
|
316
316
|
};
|
|
317
317
|
case m.Today: {
|
|
318
318
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
319
|
-
return (n) =>
|
|
319
|
+
return (n) => Gt(n, e);
|
|
320
320
|
}
|
|
321
321
|
case m.Yesterday: {
|
|
322
322
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
323
|
-
return (n) =>
|
|
323
|
+
return (n) => zt(n, e);
|
|
324
324
|
}
|
|
325
325
|
case m.Tomorrow: {
|
|
326
326
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
327
|
-
return (n) =>
|
|
327
|
+
return (n) => jt(n, e);
|
|
328
328
|
}
|
|
329
329
|
case m.ThisWeek: {
|
|
330
330
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
331
|
-
return (n) =>
|
|
331
|
+
return (n) => Kt(n, e);
|
|
332
332
|
}
|
|
333
333
|
case m.LastWeek: {
|
|
334
334
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
335
|
-
return (n) =>
|
|
335
|
+
return (n) => Zt(n, e);
|
|
336
336
|
}
|
|
337
337
|
case m.NextWeek: {
|
|
338
338
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
339
|
-
return (n) =>
|
|
339
|
+
return (n) => Xt(n, e);
|
|
340
340
|
}
|
|
341
341
|
case m.ThisMonth: {
|
|
342
342
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
343
|
-
return (n) =>
|
|
343
|
+
return (n) => en(n, e);
|
|
344
344
|
}
|
|
345
345
|
case m.LastMonth: {
|
|
346
346
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
347
|
-
return (n) =>
|
|
347
|
+
return (n) => sn(n, e);
|
|
348
348
|
}
|
|
349
349
|
case m.NextMonth: {
|
|
350
350
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
351
|
-
return (n) =>
|
|
351
|
+
return (n) => nn(n, e);
|
|
352
352
|
}
|
|
353
353
|
case m.ThisQuarter: {
|
|
354
354
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
355
|
-
return (n) =>
|
|
355
|
+
return (n) => rn(n, e);
|
|
356
356
|
}
|
|
357
357
|
case m.LastQuarter: {
|
|
358
358
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
359
|
-
return (n) =>
|
|
359
|
+
return (n) => on(n, e);
|
|
360
360
|
}
|
|
361
361
|
case m.NextQuarter: {
|
|
362
362
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
363
|
-
return (n) =>
|
|
363
|
+
return (n) => an(n, e);
|
|
364
364
|
}
|
|
365
365
|
case m.ThisYear: {
|
|
366
366
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
367
|
-
return (n) =>
|
|
367
|
+
return (n) => ln(n, e);
|
|
368
368
|
}
|
|
369
369
|
case m.LastYear: {
|
|
370
370
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
371
|
-
return (n) =>
|
|
371
|
+
return (n) => cn(n, e);
|
|
372
372
|
}
|
|
373
373
|
case m.NextYear: {
|
|
374
374
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
375
|
-
return (n) =>
|
|
375
|
+
return (n) => un(n, e);
|
|
376
376
|
}
|
|
377
377
|
case m.YearToDate: {
|
|
378
378
|
const e = t.anchorTime ? new Date(t.anchorTime) : /* @__PURE__ */ new Date();
|
|
379
|
-
return (n) =>
|
|
379
|
+
return (n) => dn(n, e);
|
|
380
380
|
}
|
|
381
381
|
case m.M1:
|
|
382
|
-
return At;
|
|
383
|
-
case m.M2:
|
|
384
382
|
return Lt;
|
|
385
|
-
case m.
|
|
383
|
+
case m.M2:
|
|
386
384
|
return Et;
|
|
387
|
-
case m.
|
|
385
|
+
case m.M3:
|
|
388
386
|
return Bt;
|
|
389
|
-
case m.
|
|
387
|
+
case m.M4:
|
|
390
388
|
return Wt;
|
|
391
|
-
case m.
|
|
389
|
+
case m.M5:
|
|
392
390
|
return Ht;
|
|
393
|
-
case m.
|
|
391
|
+
case m.M6:
|
|
394
392
|
return Vt;
|
|
395
|
-
case m.
|
|
393
|
+
case m.M7:
|
|
396
394
|
return Pt;
|
|
397
|
-
case m.
|
|
395
|
+
case m.M8:
|
|
398
396
|
return qt;
|
|
399
|
-
case m.
|
|
397
|
+
case m.M9:
|
|
400
398
|
return Jt;
|
|
401
|
-
case m.
|
|
399
|
+
case m.M10:
|
|
402
400
|
return kt;
|
|
403
|
-
case m.
|
|
401
|
+
case m.M11:
|
|
404
402
|
return Qt;
|
|
403
|
+
case m.M12:
|
|
404
|
+
return Yt;
|
|
405
405
|
case m.Q1:
|
|
406
|
-
return xt;
|
|
407
|
-
case m.Q2:
|
|
408
406
|
return Ot;
|
|
409
|
-
case m.
|
|
407
|
+
case m.Q2:
|
|
410
408
|
return Ut;
|
|
411
|
-
case m.
|
|
409
|
+
case m.Q3:
|
|
412
410
|
return $t;
|
|
411
|
+
case m.Q4:
|
|
412
|
+
return At;
|
|
413
413
|
default:
|
|
414
414
|
throw new Error("Unsupported compare type");
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class gn {
|
|
418
418
|
/**
|
|
419
419
|
* Initializes a new instance of the Heap class.
|
|
420
420
|
*/
|
|
@@ -478,7 +478,7 @@ class hn {
|
|
|
478
478
|
return this.heap.includes(e);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
class
|
|
481
|
+
class mn extends gn {
|
|
482
482
|
/**
|
|
483
483
|
* Initializes a new instance of the MinHeap class.
|
|
484
484
|
*/
|
|
@@ -517,13 +517,13 @@ class gn extends hn {
|
|
|
517
517
|
this.heap[0] = this.heap.pop(), this.shiftDown(0);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
const
|
|
521
|
-
const n = new
|
|
520
|
+
const bn = (t, e) => {
|
|
521
|
+
const n = new mn();
|
|
522
522
|
for (const s of t)
|
|
523
523
|
n.insert(s), n.size() > e && n.pop();
|
|
524
524
|
return n.heap;
|
|
525
|
-
},
|
|
526
|
-
function
|
|
525
|
+
}, wn = (t, e) => t > e, fn = (t, e) => t < e, pn = (t, e, n) => bn(t, e).includes(n);
|
|
526
|
+
function Sn(t, e) {
|
|
527
527
|
switch (t.compareType) {
|
|
528
528
|
case F.Equal: {
|
|
529
529
|
const n = Number(t.expectedValue);
|
|
@@ -559,56 +559,56 @@ function pn(t, e) {
|
|
|
559
559
|
}
|
|
560
560
|
case F.Above: {
|
|
561
561
|
const n = e.average;
|
|
562
|
-
return (s) =>
|
|
562
|
+
return (s) => wn(s, n);
|
|
563
563
|
}
|
|
564
564
|
case F.Below: {
|
|
565
565
|
const n = e.average;
|
|
566
|
-
return (s) =>
|
|
566
|
+
return (s) => fn(s, n);
|
|
567
567
|
}
|
|
568
568
|
case F.TopN: {
|
|
569
569
|
const n = e.list, s = Number(t.expectedValue);
|
|
570
|
-
return (r) =>
|
|
570
|
+
return (r) => pn(n, s, r);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
const
|
|
575
|
-
function
|
|
574
|
+
const _n = (t, e) => ee(e).test(t), Cn = (t, e) => !ee(e).test(t), Rn = (t, e) => ee(`*${e}*`).test(t), Tn = (t, e) => !ee(`*${e}*`).test(t), In = (t, e) => ee(`${e}*`).test(t), Mn = (t, e) => ee(`*${e}`).test(t);
|
|
575
|
+
function vn(t) {
|
|
576
576
|
switch (t.compareType) {
|
|
577
577
|
case P.Equal:
|
|
578
|
-
return (e) => Sn(e, t.expectedValue);
|
|
579
|
-
case P.NotEqual:
|
|
580
578
|
return (e) => _n(e, t.expectedValue);
|
|
581
|
-
case P.
|
|
579
|
+
case P.NotEqual:
|
|
582
580
|
return (e) => Cn(e, t.expectedValue);
|
|
583
|
-
case P.
|
|
581
|
+
case P.Contains:
|
|
584
582
|
return (e) => Rn(e, t.expectedValue);
|
|
585
|
-
case P.
|
|
583
|
+
case P.NotContains:
|
|
586
584
|
return (e) => Tn(e, t.expectedValue);
|
|
587
|
-
case P.
|
|
585
|
+
case P.StartsWith:
|
|
588
586
|
return (e) => In(e, t.expectedValue);
|
|
587
|
+
case P.EndsWith:
|
|
588
|
+
return (e) => Mn(e, t.expectedValue);
|
|
589
589
|
default:
|
|
590
590
|
return console.error(`Unknown filter operator: ${t.compareType}`), (e) => !0;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
const
|
|
593
|
+
const Fn = /* @__PURE__ */ new Set([
|
|
594
594
|
F.Above,
|
|
595
595
|
F.Below,
|
|
596
596
|
F.TopN
|
|
597
597
|
]);
|
|
598
598
|
m.Today, m.Yesterday, m.Tomorrow, m.ThisWeek, m.LastWeek, m.NextWeek, m.ThisMonth, m.LastMonth, m.NextMonth, m.ThisQuarter, m.LastQuarter, m.NextQuarter, m.NextYear, m.ThisYear, m.LastYear, m.YearToDate;
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function at(t) {
|
|
600
|
+
return Fn.has(t);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
if (
|
|
602
|
+
function Nn(t, e) {
|
|
603
|
+
if (at(t.filterInfo.compareType))
|
|
604
604
|
return (n) => !0;
|
|
605
605
|
switch (t.filterInfo.conditionType) {
|
|
606
606
|
case U.Date:
|
|
607
|
-
return
|
|
607
|
+
return hn(t.filterInfo);
|
|
608
608
|
case U.Number:
|
|
609
|
-
return
|
|
609
|
+
return Sn(t.filterInfo, e);
|
|
610
610
|
case U.String:
|
|
611
|
-
return
|
|
611
|
+
return vn(t.filterInfo);
|
|
612
612
|
case U.Logic:
|
|
613
613
|
default:
|
|
614
614
|
return (n) => !0;
|
|
@@ -618,25 +618,25 @@ function ue(t, e, n, s) {
|
|
|
618
618
|
switch (s) {
|
|
619
619
|
case U.Date: {
|
|
620
620
|
const r = xe(t, e, n);
|
|
621
|
-
return r ?
|
|
621
|
+
return r ? xn(r) : null;
|
|
622
622
|
}
|
|
623
623
|
case U.Number:
|
|
624
624
|
return xe(t, e, n);
|
|
625
625
|
case U.String:
|
|
626
626
|
default:
|
|
627
|
-
return
|
|
627
|
+
return Dn(t, e, n);
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
const
|
|
630
|
+
const yn = (t) => {
|
|
631
631
|
var n;
|
|
632
632
|
return ((n = t.body) == null ? void 0 : n.dataStream.replace(/\r\n$/, "")) || "";
|
|
633
633
|
};
|
|
634
|
-
function
|
|
634
|
+
function Dn(t, e, n) {
|
|
635
635
|
const s = t.getCell(e, n);
|
|
636
636
|
if (!s) return null;
|
|
637
637
|
const { v: r, t: a, p: o } = s;
|
|
638
638
|
if (o)
|
|
639
|
-
return
|
|
639
|
+
return yn(o);
|
|
640
640
|
if (typeof r == "string")
|
|
641
641
|
return a === J.BOOLEAN ? r.toUpperCase() : r;
|
|
642
642
|
if (typeof r == "number")
|
|
@@ -651,7 +651,7 @@ function xe(t, e, n) {
|
|
|
651
651
|
const { v: r, t: a, p: o } = s;
|
|
652
652
|
return o ? null : typeof r == "string" && a === J.NUMBER ? Number(t.getCellRaw(e, n).v) : Number(r);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function xn(t) {
|
|
655
655
|
const e = new Date(Date.UTC(1900, 0, 1, 0, 0, 0)), n = new Date(Date.UTC(1900, 1, 28, 0, 0, 0));
|
|
656
656
|
let s = t - 1;
|
|
657
657
|
return s > (n.getTime() - e.getTime()) / (1e3 * 3600 * 24) && (s -= 1), s < 0 && (s = t), new Date(e.getTime() + s * (1e3 * 3600 * 24));
|
|
@@ -674,8 +674,8 @@ class Oe {
|
|
|
674
674
|
}
|
|
675
675
|
getFilterState(e) {
|
|
676
676
|
var s;
|
|
677
|
-
const n = ((s = this._tableSortInfo) == null ? void 0 : s.columnIndex) === e ? this._tableSortInfo.sortState :
|
|
678
|
-
return
|
|
677
|
+
const n = ((s = this._tableSortInfo) == null ? void 0 : s.columnIndex) === e ? this._tableSortInfo.sortState : j.None;
|
|
678
|
+
return yt(this._tableColumnFilterList[e], n);
|
|
679
679
|
}
|
|
680
680
|
getSortState() {
|
|
681
681
|
var e;
|
|
@@ -701,7 +701,7 @@ class Oe {
|
|
|
701
701
|
if (a && e) {
|
|
702
702
|
const { startRow: o, endRow: u, startColumn: l } = n, i = l + s, h = this.getExecuteFunc(e, n, s, a);
|
|
703
703
|
for (let d = o; d <= u; d++) {
|
|
704
|
-
const c =
|
|
704
|
+
const c = Dt(a) ? a.filterInfo.conditionType : U.String;
|
|
705
705
|
ue(e, d, i, c) === null ? r.add(d) : h(ue(e, d, i, c)) || r.add(d);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
@@ -719,12 +719,12 @@ class Oe {
|
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
getExecuteFunc(e, n, s, r) {
|
|
722
|
-
if (r.filterType ===
|
|
722
|
+
if (r.filterType === se.manual) {
|
|
723
723
|
const a = new Set(r.values);
|
|
724
724
|
return (o) => a.has(o);
|
|
725
|
-
} else if (r.filterType ===
|
|
726
|
-
const o =
|
|
727
|
-
return
|
|
725
|
+
} else if (r.filterType === se.condition) {
|
|
726
|
+
const o = at(r.filterInfo.compareType) ? this._getNumberCalculatedOptions(e, n, s) : void 0;
|
|
727
|
+
return Nn(r, o);
|
|
728
728
|
} else
|
|
729
729
|
return (a) => !0;
|
|
730
730
|
}
|
|
@@ -768,7 +768,7 @@ class Ue {
|
|
|
768
768
|
const i = l - r;
|
|
769
769
|
let h, d;
|
|
770
770
|
(u = n.columns) != null && u[i] ? (h = n.columns[i].id, d = n.columns[i].displayName) : (h = B(), d = e[l - r]);
|
|
771
|
-
const c = new
|
|
771
|
+
const c = new K(h, d);
|
|
772
772
|
this._columns.set(h, c), this._columnOrder.push(h);
|
|
773
773
|
}
|
|
774
774
|
n.filters && n.filters.forEach((i, h) => {
|
|
@@ -795,7 +795,7 @@ class Ue {
|
|
|
795
795
|
}
|
|
796
796
|
setColumns(e) {
|
|
797
797
|
this._columns.clear(), this._columnOrder = [], e.forEach((n) => {
|
|
798
|
-
const s = new
|
|
798
|
+
const s = new K(n.id, n.displayName);
|
|
799
799
|
s.fromJSON(n), this._columns.set(n.id, s), this._columnOrder.push(n.id);
|
|
800
800
|
});
|
|
801
801
|
}
|
|
@@ -856,7 +856,7 @@ class Ue {
|
|
|
856
856
|
}
|
|
857
857
|
getTableStyleId() {
|
|
858
858
|
var e;
|
|
859
|
-
return (e = this._tableStyleId) != null ? e :
|
|
859
|
+
return (e = this._tableStyleId) != null ? e : st[0].name;
|
|
860
860
|
}
|
|
861
861
|
setTableStyleId(e) {
|
|
862
862
|
this._tableStyleId = e;
|
|
@@ -919,7 +919,7 @@ class Ue {
|
|
|
919
919
|
fromJSON(e) {
|
|
920
920
|
var s, r;
|
|
921
921
|
this._id = e.id, this._name = e.name, this._range = e.range, this.tableMeta = e.meta, this._tableStyleId = e.options.tableStyleId || "", this._showHeader = (s = e.options.showHeader) != null ? s : !0, this._showFooter = (r = e.options.showFooter) != null ? r : !0, e.columns.forEach((a) => {
|
|
922
|
-
const o = new
|
|
922
|
+
const o = new K(a.id, a.displayName);
|
|
923
923
|
o.fromJSON(a), this._columns.set(a.id, o), this._columnOrder.push(a.id);
|
|
924
924
|
}), this._tableFilters = new Oe(), this._tableFilters.fromJSON(e.filters);
|
|
925
925
|
}
|
|
@@ -927,8 +927,8 @@ class Ue {
|
|
|
927
927
|
this._id = "", this._name = "", this._tableStyleId = "", this._showHeader = !0, this._showFooter = !0, delete this._range, this._columns.clear(), this._columnOrder = [];
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
var
|
|
931
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
930
|
+
var On = Object.getOwnPropertyDescriptor, Un = (t, e, n, s) => {
|
|
931
|
+
for (var r = s > 1 ? void 0 : s ? On(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
932
932
|
(o = t[a]) && (r = o(r) || r);
|
|
933
933
|
return r;
|
|
934
934
|
}, $e = (t, e) => (n, s) => e(n, s, t);
|
|
@@ -948,7 +948,7 @@ let T = class extends H {
|
|
|
948
948
|
b(this, "tableThemeChanged$", this._tableThemeChanged$.asObservable());
|
|
949
949
|
b(this, "_tableFilterChanged$", new Y());
|
|
950
950
|
b(this, "tableFilterChanged$", this._tableFilterChanged$.asObservable());
|
|
951
|
-
b(this, "_tableInitStatus", new
|
|
951
|
+
b(this, "_tableInitStatus", new Xe(!1));
|
|
952
952
|
b(this, "tableInitStatus$", this._tableInitStatus.asObservable());
|
|
953
953
|
this._univerInstanceService = e, this._localeService = n, this._tableMap = /* @__PURE__ */ new Map();
|
|
954
954
|
}
|
|
@@ -959,7 +959,7 @@ let T = class extends H {
|
|
|
959
959
|
var d;
|
|
960
960
|
const a = (d = this._univerInstanceService.getUnit(e)) == null ? void 0 : d.getSheetBySheetId(n), { startRow: o, startColumn: u, endColumn: l } = s, i = [], h = r != null ? r : "Column";
|
|
961
961
|
for (let c = u; c <= l; c++)
|
|
962
|
-
i.push(
|
|
962
|
+
i.push(et(a == null ? void 0 : a.getCell(o, c)) || ne(c - u + 1, h));
|
|
963
963
|
return i;
|
|
964
964
|
}
|
|
965
965
|
/**
|
|
@@ -1104,7 +1104,7 @@ let T = class extends H {
|
|
|
1104
1104
|
else if (o === "column") {
|
|
1105
1105
|
d.endColumn += l;
|
|
1106
1106
|
for (let c = 0; c < l; c++) {
|
|
1107
|
-
const g = this._localeService.t("sheets-table.columnPrefix"), _ = new
|
|
1107
|
+
const g = this._localeService.t("sheets-table.columnPrefix"), _ = new K(B(), ne(r.getColumnsCount() + 1 + c, g));
|
|
1108
1108
|
i != null && i[c] && _.fromJSON(i[c]);
|
|
1109
1109
|
const f = u + c - h.startColumn;
|
|
1110
1110
|
r.insertColumn(f, _);
|
|
@@ -1134,7 +1134,7 @@ let T = class extends H {
|
|
|
1134
1134
|
if (o.startColumn < a.startColumn) {
|
|
1135
1135
|
const u = a.startColumn - o.startColumn, l = this._localeService.t("sheets-table.columnPrefix");
|
|
1136
1136
|
for (let i = 0; i < u; i++)
|
|
1137
|
-
r.insertColumn(a.startColumn, new
|
|
1137
|
+
r.insertColumn(a.startColumn, new K(B(), ne(r.getColumnsCount() + 1, l)));
|
|
1138
1138
|
} else if (o.startColumn > a.startColumn) {
|
|
1139
1139
|
const u = o.startColumn - a.startColumn;
|
|
1140
1140
|
for (let l = u - 1; l >= 0; l--) {
|
|
@@ -1151,7 +1151,7 @@ let T = class extends H {
|
|
|
1151
1151
|
} else if (o.endColumn > a.endColumn) {
|
|
1152
1152
|
const u = o.endColumn - a.endColumn;
|
|
1153
1153
|
for (let l = 0; l < u; l++)
|
|
1154
|
-
r.insertColumn(a.endColumn, new
|
|
1154
|
+
r.insertColumn(a.endColumn, new K(B(), ne(r.getColumnsCount() + 1, "Column")));
|
|
1155
1155
|
}
|
|
1156
1156
|
r.setRange(o), this._tableRangeChanged$.next({
|
|
1157
1157
|
unitId: e,
|
|
@@ -1241,16 +1241,16 @@ let T = class extends H {
|
|
|
1241
1241
|
}), this._tableMap.clear();
|
|
1242
1242
|
}
|
|
1243
1243
|
};
|
|
1244
|
-
T =
|
|
1244
|
+
T = Un([
|
|
1245
1245
|
$e(0, A),
|
|
1246
1246
|
$e(1, C(be))
|
|
1247
1247
|
], T);
|
|
1248
|
-
var
|
|
1249
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1248
|
+
var $n = Object.getOwnPropertyDescriptor, An = (t, e, n, s) => {
|
|
1249
|
+
for (var r = s > 1 ? void 0 : s ? $n(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
1250
1250
|
(o = t[a]) && (r = o(r) || r);
|
|
1251
1251
|
return r;
|
|
1252
|
-
},
|
|
1253
|
-
let
|
|
1252
|
+
}, Ln = (t, e) => (n, s) => e(n, s, t);
|
|
1253
|
+
let Z = class extends H {
|
|
1254
1254
|
constructor(t) {
|
|
1255
1255
|
super(), this._tableManager = t;
|
|
1256
1256
|
}
|
|
@@ -1294,37 +1294,37 @@ let X = class extends H {
|
|
|
1294
1294
|
return ue(t, e, n, s);
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
],
|
|
1297
|
+
Z = An([
|
|
1298
|
+
Ln(0, C(T))
|
|
1299
|
+
], Z);
|
|
1300
1300
|
const k = {
|
|
1301
1301
|
id: "sheet.mutation.add-table",
|
|
1302
1302
|
type: y.MUTATION,
|
|
1303
1303
|
handler: (t, e) => {
|
|
1304
1304
|
const { tableId: n, unitId: s, subUnitId: r, name: a, range: o, header: u, options: l } = e;
|
|
1305
|
-
return t.get(
|
|
1305
|
+
return t.get(Z).addTable(s, r, a, o, u, n, l), !0;
|
|
1306
1306
|
}
|
|
1307
1307
|
}, Q = {
|
|
1308
1308
|
id: "sheet.mutation.delete-table",
|
|
1309
1309
|
type: y.MUTATION,
|
|
1310
1310
|
handler: (t, e) => {
|
|
1311
1311
|
const { unitId: n, subUnitId: s, tableId: r } = e;
|
|
1312
|
-
return t.get(
|
|
1312
|
+
return t.get(Z).deleteTable(n, s, r), !0;
|
|
1313
1313
|
}
|
|
1314
|
-
},
|
|
1314
|
+
}, En = {
|
|
1315
1315
|
id: "sheet.command.add-table",
|
|
1316
1316
|
type: y.COMMAND,
|
|
1317
1317
|
handler: (t, e) => {
|
|
1318
1318
|
var p;
|
|
1319
1319
|
if (!e)
|
|
1320
1320
|
return !1;
|
|
1321
|
-
const n = t.get(L), s = t.get(D), r = t.get(be), a = t.get(T), o = (p = e.id) != null ? p : B(), u =
|
|
1321
|
+
const n = t.get(L), s = t.get(D), r = t.get(be), a = t.get(T), o = (p = e.id) != null ? p : B(), u = tt(e.unitId, {
|
|
1322
1322
|
univerInstanceService: t.get(A),
|
|
1323
1323
|
tableManager: a,
|
|
1324
|
-
definedNamesService: t.get(
|
|
1324
|
+
definedNamesService: t.get(qe)
|
|
1325
1325
|
});
|
|
1326
1326
|
let l = e.name;
|
|
1327
|
-
if (!l || !
|
|
1327
|
+
if (!l || !We(l.toLowerCase(), u)) {
|
|
1328
1328
|
const w = r.t("sheets-table.tablePrefix");
|
|
1329
1329
|
let R = a.getTableList(e.unitId).length + 1;
|
|
1330
1330
|
for (const O of u)
|
|
@@ -1341,13 +1341,73 @@ const k = {
|
|
|
1341
1341
|
redoMutations: i
|
|
1342
1342
|
}), !0;
|
|
1343
1343
|
}
|
|
1344
|
-
},
|
|
1344
|
+
}, S = {
|
|
1345
|
+
id: "sheet.mutation.set-sheet-table",
|
|
1346
|
+
type: y.MUTATION,
|
|
1347
|
+
handler: (t, e) => {
|
|
1348
|
+
if (!e)
|
|
1349
|
+
return !1;
|
|
1350
|
+
const { unitId: n, tableId: s, config: r } = e;
|
|
1351
|
+
return t.get(T).setTableByConfig(n, s, r), !0;
|
|
1352
|
+
}
|
|
1353
|
+
}, Bn = {
|
|
1354
|
+
id: "sheet.command.add-table-theme",
|
|
1355
|
+
type: y.COMMAND,
|
|
1356
|
+
handler: (t, e) => {
|
|
1357
|
+
if (!e)
|
|
1358
|
+
return !1;
|
|
1359
|
+
const n = t.get(T), { unitId: s, tableId: r, themeStyle: a } = e, o = [], u = [], l = n.getTableById(s, r);
|
|
1360
|
+
if (!l) return !1;
|
|
1361
|
+
const i = l.getSubunitId();
|
|
1362
|
+
o.push({
|
|
1363
|
+
id: Je.id,
|
|
1364
|
+
params: {
|
|
1365
|
+
unitId: s,
|
|
1366
|
+
subUnitId: i,
|
|
1367
|
+
styleJSON: a.toJson()
|
|
1368
|
+
}
|
|
1369
|
+
}), o.push({
|
|
1370
|
+
id: S.id,
|
|
1371
|
+
params: {
|
|
1372
|
+
unitId: s,
|
|
1373
|
+
subUnitId: i,
|
|
1374
|
+
tableId: r,
|
|
1375
|
+
config: {
|
|
1376
|
+
theme: a.getName()
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}), u.push({
|
|
1380
|
+
id: S.id,
|
|
1381
|
+
params: {
|
|
1382
|
+
unitId: s,
|
|
1383
|
+
subUnitId: i,
|
|
1384
|
+
tableId: r,
|
|
1385
|
+
config: {
|
|
1386
|
+
themeStyle: l.getTableStyleId()
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
}), u.push({
|
|
1390
|
+
id: ke.id,
|
|
1391
|
+
params: {
|
|
1392
|
+
unitId: s,
|
|
1393
|
+
subUnitId: i,
|
|
1394
|
+
styleName: a.getName()
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
const h = t.get(D);
|
|
1398
|
+
return E(o, h) && t.get(L).pushUndoRedo({
|
|
1399
|
+
unitID: s,
|
|
1400
|
+
undoMutations: u,
|
|
1401
|
+
redoMutations: o
|
|
1402
|
+
}), !0;
|
|
1403
|
+
}
|
|
1404
|
+
}, Wn = {
|
|
1345
1405
|
id: "sheet.command.delete-table",
|
|
1346
1406
|
type: y.COMMAND,
|
|
1347
1407
|
handler: (t, e) => {
|
|
1348
1408
|
if (!e)
|
|
1349
1409
|
return !1;
|
|
1350
|
-
const n = t.get(L), s = t.get(D), r = t.get(T), a = t.get(
|
|
1410
|
+
const n = t.get(L), s = t.get(D), r = t.get(T), a = t.get(He), o = [], u = [], l = r.getTable(e.unitId, e.tableId), i = l == null ? void 0 : l.toJSON();
|
|
1351
1411
|
return i ? (o.push({ id: Q.id, params: { ...e } }), u.push({
|
|
1352
1412
|
id: k.id,
|
|
1353
1413
|
params: {
|
|
@@ -1364,6 +1424,80 @@ const k = {
|
|
|
1364
1424
|
redoMutations: o
|
|
1365
1425
|
}), !0) : (a.error("[TableManager]: Table not found"), !1);
|
|
1366
1426
|
}
|
|
1427
|
+
}, ot = "SHEET_TABLE_PLUGIN", ae = "SHEET_TABLE", Hn = "table-custom", Vn = {
|
|
1428
|
+
id: "sheet.command.remove-table-theme",
|
|
1429
|
+
type: y.COMMAND,
|
|
1430
|
+
handler: (t, e) => {
|
|
1431
|
+
if (!e)
|
|
1432
|
+
return !1;
|
|
1433
|
+
const { unitId: n, tableId: s, themeName: r } = e, a = t.get(T), o = t.get(Qe), u = a.getTableById(n, s);
|
|
1434
|
+
if (!u) return !1;
|
|
1435
|
+
const l = u.getSubunitId(), i = [], h = [], d = o.getRegisteredRangeThemes().filter((w) => w == null ? void 0 : w.startsWith("table-default"));
|
|
1436
|
+
let g = o.getRegisteredRangeThemes().filter((w) => w == null ? void 0 : w.startsWith(Hn)).find((w) => w !== r);
|
|
1437
|
+
g || (g = d[0]), i.push({ id: S.id, params: { unitId: n, subUnitId: l, tableId: s, config: { theme: g } } }), i.push({ id: ke.id, params: { unitId: n, subUnitId: l, styleName: r } });
|
|
1438
|
+
const _ = o.getDefaultRangeThemeStyle(r);
|
|
1439
|
+
_ && (h.push({ id: Je.id, params: { unitId: n, subUnitId: l, styleJSON: _.toJson() } }), h.push({ id: S.id, params: { unitId: n, subUnitId: l, tableId: s, config: { theme: r } } }));
|
|
1440
|
+
const f = t.get(D);
|
|
1441
|
+
return E(i, f) && t.get(L).pushUndoRedo({
|
|
1442
|
+
unitID: n,
|
|
1443
|
+
redoMutations: i,
|
|
1444
|
+
undoMutations: h
|
|
1445
|
+
}), !0;
|
|
1446
|
+
}
|
|
1447
|
+
}, Pn = {
|
|
1448
|
+
id: "sheet.command.set-table-config",
|
|
1449
|
+
type: y.COMMAND,
|
|
1450
|
+
// eslint-disable-next-line max-lines-per-function
|
|
1451
|
+
handler: (t, e) => {
|
|
1452
|
+
if (!e)
|
|
1453
|
+
return !1;
|
|
1454
|
+
const { unitId: n, tableId: s, name: r, updateRange: a, rowColOperation: o, theme: u } = e, l = t.get(T), i = l.getTableById(n, s);
|
|
1455
|
+
if (!i) return !1;
|
|
1456
|
+
const h = {}, d = {}, c = t.get(be), g = tt(n, {
|
|
1457
|
+
univerInstanceService: t.get(A),
|
|
1458
|
+
tableManager: l,
|
|
1459
|
+
definedNamesService: t.get(qe)
|
|
1460
|
+
});
|
|
1461
|
+
if (r) {
|
|
1462
|
+
if (!We(r.toLowerCase(), g))
|
|
1463
|
+
return t.get(He).warn(c.t("sheets-table.tableNameError")), !1;
|
|
1464
|
+
h.name = i.getDisplayName(), d.name = r;
|
|
1465
|
+
}
|
|
1466
|
+
o && (h.rowColOperation = {
|
|
1467
|
+
operationType: o.operationType === M.Insert ? M.Delete : M.Insert,
|
|
1468
|
+
rowColType: o.rowColType,
|
|
1469
|
+
index: o.index,
|
|
1470
|
+
count: o.count
|
|
1471
|
+
}, d.rowColOperation = o), a && (h.updateRange = {
|
|
1472
|
+
newRange: i.getRange()
|
|
1473
|
+
}, d.updateRange = a), u && (h.theme = i.getTableStyleId(), d.theme = u);
|
|
1474
|
+
const _ = {
|
|
1475
|
+
unitId: n,
|
|
1476
|
+
subUnitId: i.getSubunitId(),
|
|
1477
|
+
tableId: s,
|
|
1478
|
+
config: d
|
|
1479
|
+
};
|
|
1480
|
+
return t.get(D).executeCommand(S.id, _), t.get(L).pushUndoRedo({
|
|
1481
|
+
unitID: n,
|
|
1482
|
+
undoMutations: [
|
|
1483
|
+
{
|
|
1484
|
+
id: S.id,
|
|
1485
|
+
params: {
|
|
1486
|
+
unitId: n,
|
|
1487
|
+
subUnitId: i.getSubunitId(),
|
|
1488
|
+
tableId: s,
|
|
1489
|
+
config: h
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
],
|
|
1493
|
+
redoMutations: [
|
|
1494
|
+
{
|
|
1495
|
+
id: S.id,
|
|
1496
|
+
params: _
|
|
1497
|
+
}
|
|
1498
|
+
]
|
|
1499
|
+
}), !0;
|
|
1500
|
+
}
|
|
1367
1501
|
}, Ce = {
|
|
1368
1502
|
id: "sheet.mutation.set-table-filter",
|
|
1369
1503
|
type: y.MUTATION,
|
|
@@ -1371,7 +1505,7 @@ const k = {
|
|
|
1371
1505
|
const { tableId: n, unitId: s, column: r, tableFilter: a } = e;
|
|
1372
1506
|
return t.get(T).addFilter(s, n, r, a), !0;
|
|
1373
1507
|
}
|
|
1374
|
-
},
|
|
1508
|
+
}, qn = {
|
|
1375
1509
|
id: "sheet.command.set-table-filter",
|
|
1376
1510
|
type: y.COMMAND,
|
|
1377
1511
|
handler: (t, e) => {
|
|
@@ -1384,12 +1518,12 @@ const k = {
|
|
|
1384
1518
|
redoMutations: a
|
|
1385
1519
|
}), !0;
|
|
1386
1520
|
}
|
|
1387
|
-
}
|
|
1388
|
-
var
|
|
1389
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1521
|
+
};
|
|
1522
|
+
var Jn = Object.getOwnPropertyDescriptor, kn = (t, e, n, s) => {
|
|
1523
|
+
for (var r = s > 1 ? void 0 : s ? Jn(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
1390
1524
|
(o = t[a]) && (r = o(r) || r);
|
|
1391
1525
|
return r;
|
|
1392
|
-
},
|
|
1526
|
+
}, oe = (t, e) => (n, s) => e(n, s, t);
|
|
1393
1527
|
let W = class extends H {
|
|
1394
1528
|
constructor(e, n, s, r) {
|
|
1395
1529
|
super();
|
|
@@ -1405,7 +1539,7 @@ let W = class extends H {
|
|
|
1405
1539
|
return this._tableManager.getTable(e, String(o));
|
|
1406
1540
|
}
|
|
1407
1541
|
_ensureTableRangeRTree(e) {
|
|
1408
|
-
return this._tableRangeRTree.has(e) || this._tableRangeRTree.set(e, new
|
|
1542
|
+
return this._tableRangeRTree.has(e) || this._tableRangeRTree.set(e, new dt()), this._tableRangeRTree.get(e);
|
|
1409
1543
|
}
|
|
1410
1544
|
registerTableChangeEvent() {
|
|
1411
1545
|
this.disposeWithMe(
|
|
@@ -1447,8 +1581,8 @@ let W = class extends H {
|
|
|
1447
1581
|
}
|
|
1448
1582
|
registerTableHeaderInterceptor() {
|
|
1449
1583
|
this.disposeWithMe(
|
|
1450
|
-
this._sheetInterceptorService.intercept(
|
|
1451
|
-
effect:
|
|
1584
|
+
this._sheetInterceptorService.intercept(Ye.CELL_CONTENT, {
|
|
1585
|
+
effect: ht.Value,
|
|
1452
1586
|
handler: (e, n, s) => {
|
|
1453
1587
|
const { row: r, col: a, unitId: o, subUnitId: u } = n, l = this._ensureTableRangeRTree(o);
|
|
1454
1588
|
if ((e == null ? void 0 : e.v) === void 0 && l) {
|
|
@@ -1490,8 +1624,8 @@ let W = class extends H {
|
|
|
1490
1624
|
return {};
|
|
1491
1625
|
}
|
|
1492
1626
|
},
|
|
1493
|
-
businesses: [
|
|
1494
|
-
pluginName:
|
|
1627
|
+
businesses: [z.UNIVER_SHEET],
|
|
1628
|
+
pluginName: ot,
|
|
1495
1629
|
onLoad: (e, n) => {
|
|
1496
1630
|
this._fromJSON(e, n);
|
|
1497
1631
|
},
|
|
@@ -1507,8 +1641,8 @@ let W = class extends H {
|
|
|
1507
1641
|
// eslint-disable-next-line max-lines-per-function
|
|
1508
1642
|
getMutations: (e) => {
|
|
1509
1643
|
var n;
|
|
1510
|
-
if (e.id ===
|
|
1511
|
-
const s = e.params, r = s.unitId || this._univerInstanceService.getCurrentUnitOfType(
|
|
1644
|
+
if (e.id === ft.id) {
|
|
1645
|
+
const s = e.params, r = s.unitId || this._univerInstanceService.getCurrentUnitOfType(z.UNIVER_SHEET).getUnitId(), a = s.subUnitId || ((n = this._univerInstanceService.getCurrentUnitOfType(z.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : n.getSheetId());
|
|
1512
1646
|
if (!r || !a)
|
|
1513
1647
|
return { redos: [], undos: [] };
|
|
1514
1648
|
const o = this._tableManager.getTablesBySubunitId(r, a);
|
|
@@ -1540,7 +1674,7 @@ let W = class extends H {
|
|
|
1540
1674
|
}
|
|
1541
1675
|
});
|
|
1542
1676
|
}), { redos: u, undos: l };
|
|
1543
|
-
} else if (e.id ===
|
|
1677
|
+
} else if (e.id === pt.id) {
|
|
1544
1678
|
const s = e.params, { unitId: r, subUnitId: a, targetSubUnitId: o } = s;
|
|
1545
1679
|
if (!r || !a || !o)
|
|
1546
1680
|
return { redos: [], undos: [] };
|
|
@@ -1586,147 +1720,13 @@ let W = class extends H {
|
|
|
1586
1720
|
super.dispose(), this._tableRangeRTree.clear();
|
|
1587
1721
|
}
|
|
1588
1722
|
};
|
|
1589
|
-
W =
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1723
|
+
W = kn([
|
|
1724
|
+
oe(0, C(A)),
|
|
1725
|
+
oe(1, C(Re)),
|
|
1726
|
+
oe(2, C(T)),
|
|
1727
|
+
oe(3, C(ct))
|
|
1594
1728
|
], W);
|
|
1595
|
-
const
|
|
1596
|
-
id: "sheet.mutation.set-sheet-table",
|
|
1597
|
-
type: y.MUTATION,
|
|
1598
|
-
handler: (t, e) => {
|
|
1599
|
-
if (!e)
|
|
1600
|
-
return !1;
|
|
1601
|
-
const { unitId: n, tableId: s, config: r } = e;
|
|
1602
|
-
return t.get(T).setTableByConfig(n, s, r), !0;
|
|
1603
|
-
}
|
|
1604
|
-
}, Pn = {
|
|
1605
|
-
id: "sheet.command.add-table-theme",
|
|
1606
|
-
type: y.COMMAND,
|
|
1607
|
-
handler: (t, e) => {
|
|
1608
|
-
if (!e)
|
|
1609
|
-
return !1;
|
|
1610
|
-
const n = t.get(T), { unitId: s, tableId: r, themeStyle: a } = e, o = [], u = [], l = n.getTableById(s, r);
|
|
1611
|
-
if (!l) return !1;
|
|
1612
|
-
const i = l.getSubunitId();
|
|
1613
|
-
o.push({
|
|
1614
|
-
id: Je.id,
|
|
1615
|
-
params: {
|
|
1616
|
-
unitId: s,
|
|
1617
|
-
subUnitId: i,
|
|
1618
|
-
styleJSON: a.toJson()
|
|
1619
|
-
}
|
|
1620
|
-
}), o.push({
|
|
1621
|
-
id: S.id,
|
|
1622
|
-
params: {
|
|
1623
|
-
unitId: s,
|
|
1624
|
-
subUnitId: i,
|
|
1625
|
-
tableId: r,
|
|
1626
|
-
config: {
|
|
1627
|
-
theme: a.getName()
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
}), u.push({
|
|
1631
|
-
id: S.id,
|
|
1632
|
-
params: {
|
|
1633
|
-
unitId: s,
|
|
1634
|
-
subUnitId: i,
|
|
1635
|
-
tableId: r,
|
|
1636
|
-
config: {
|
|
1637
|
-
themeStyle: l.getTableStyleId()
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
}), u.push({
|
|
1641
|
-
id: ke.id,
|
|
1642
|
-
params: {
|
|
1643
|
-
unitId: s,
|
|
1644
|
-
subUnitId: i,
|
|
1645
|
-
styleName: a.getName()
|
|
1646
|
-
}
|
|
1647
|
-
});
|
|
1648
|
-
const h = t.get(D);
|
|
1649
|
-
return E(o, h) && t.get(L).pushUndoRedo({
|
|
1650
|
-
unitID: s,
|
|
1651
|
-
undoMutations: u,
|
|
1652
|
-
redoMutations: o
|
|
1653
|
-
}), !0;
|
|
1654
|
-
}
|
|
1655
|
-
}, qn = {
|
|
1656
|
-
id: "sheet.command.remove-table-theme",
|
|
1657
|
-
type: y.COMMAND,
|
|
1658
|
-
handler: (t, e) => {
|
|
1659
|
-
if (!e)
|
|
1660
|
-
return !1;
|
|
1661
|
-
const { unitId: n, tableId: s, themeName: r } = e, a = t.get(T), o = t.get(Qe), u = a.getTableById(n, s);
|
|
1662
|
-
if (!u) return !1;
|
|
1663
|
-
const l = u.getSubunitId(), i = [], h = [], d = o.getRegisteredRangeThemes().filter((w) => w == null ? void 0 : w.startsWith("table-default"));
|
|
1664
|
-
let g = o.getRegisteredRangeThemes().filter((w) => w == null ? void 0 : w.startsWith(Wn)).find((w) => w !== r);
|
|
1665
|
-
g || (g = d[0]), i.push({ id: S.id, params: { unitId: n, subUnitId: l, tableId: s, config: { theme: g } } }), i.push({ id: ke.id, params: { unitId: n, subUnitId: l, styleName: r } });
|
|
1666
|
-
const _ = o.getDefaultRangeThemeStyle(r);
|
|
1667
|
-
_ && (h.push({ id: Je.id, params: { unitId: n, subUnitId: l, styleJSON: _.toJson() } }), h.push({ id: S.id, params: { unitId: n, subUnitId: l, tableId: s, config: { theme: r } } }));
|
|
1668
|
-
const f = t.get(D);
|
|
1669
|
-
return E(i, f) && t.get(L).pushUndoRedo({
|
|
1670
|
-
unitID: n,
|
|
1671
|
-
redoMutations: i,
|
|
1672
|
-
undoMutations: h
|
|
1673
|
-
}), !0;
|
|
1674
|
-
}
|
|
1675
|
-
}, Jn = {
|
|
1676
|
-
id: "sheet.command.set-table-config",
|
|
1677
|
-
type: y.COMMAND,
|
|
1678
|
-
// eslint-disable-next-line max-lines-per-function
|
|
1679
|
-
handler: (t, e) => {
|
|
1680
|
-
if (!e)
|
|
1681
|
-
return !1;
|
|
1682
|
-
const { unitId: n, tableId: s, name: r, updateRange: a, rowColOperation: o, theme: u } = e, l = t.get(T), i = l.getTableById(n, s);
|
|
1683
|
-
if (!i) return !1;
|
|
1684
|
-
const h = {}, d = {}, c = t.get(be), g = et(n, {
|
|
1685
|
-
univerInstanceService: t.get(A),
|
|
1686
|
-
tableManager: l,
|
|
1687
|
-
definedNamesService: t.get(Pe)
|
|
1688
|
-
});
|
|
1689
|
-
if (r) {
|
|
1690
|
-
if (!Be(r.toLowerCase(), g))
|
|
1691
|
-
return t.get(We).warn(c.t("sheets-table.tableNameError")), !1;
|
|
1692
|
-
h.name = i.getDisplayName(), d.name = r;
|
|
1693
|
-
}
|
|
1694
|
-
o && (h.rowColOperation = {
|
|
1695
|
-
operationType: o.operationType === M.Insert ? M.Delete : M.Insert,
|
|
1696
|
-
rowColType: o.rowColType,
|
|
1697
|
-
index: o.index,
|
|
1698
|
-
count: o.count
|
|
1699
|
-
}, d.rowColOperation = o), a && (h.updateRange = {
|
|
1700
|
-
newRange: i.getRange()
|
|
1701
|
-
}, d.updateRange = a), u && (h.theme = i.getTableStyleId(), d.theme = u);
|
|
1702
|
-
const _ = {
|
|
1703
|
-
unitId: n,
|
|
1704
|
-
subUnitId: i.getSubunitId(),
|
|
1705
|
-
tableId: s,
|
|
1706
|
-
config: d
|
|
1707
|
-
};
|
|
1708
|
-
return t.get(D).executeCommand(S.id, _), t.get(L).pushUndoRedo({
|
|
1709
|
-
unitID: n,
|
|
1710
|
-
undoMutations: [
|
|
1711
|
-
{
|
|
1712
|
-
id: S.id,
|
|
1713
|
-
params: {
|
|
1714
|
-
unitId: n,
|
|
1715
|
-
subUnitId: i.getSubunitId(),
|
|
1716
|
-
tableId: s,
|
|
1717
|
-
config: h
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1720
|
-
],
|
|
1721
|
-
redoMutations: [
|
|
1722
|
-
{
|
|
1723
|
-
id: S.id,
|
|
1724
|
-
params: _
|
|
1725
|
-
}
|
|
1726
|
-
]
|
|
1727
|
-
}), !0;
|
|
1728
|
-
}
|
|
1729
|
-
}, kn = {
|
|
1729
|
+
const Qn = {
|
|
1730
1730
|
id: "sheet.command.table-insert-row",
|
|
1731
1731
|
type: y.COMMAND,
|
|
1732
1732
|
handler: (t) => {
|
|
@@ -1742,7 +1742,7 @@ const S = {
|
|
|
1742
1742
|
const g = h.endRow - h.startRow + 1, f = r.getRowCount() - 1, p = r.getCellMatrix().getDataRange().endRow, w = [], R = [];
|
|
1743
1743
|
if (f - p < g)
|
|
1744
1744
|
w.push({
|
|
1745
|
-
id:
|
|
1745
|
+
id: Ge.id,
|
|
1746
1746
|
params: {
|
|
1747
1747
|
unitId: a,
|
|
1748
1748
|
subUnitId: o,
|
|
@@ -1776,7 +1776,7 @@ const S = {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
}), R.push({
|
|
1779
|
-
id:
|
|
1779
|
+
id: je.id,
|
|
1780
1780
|
params: {
|
|
1781
1781
|
unitId: a,
|
|
1782
1782
|
subUnitId: o,
|
|
@@ -1813,7 +1813,7 @@ const S = {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
});
|
|
1816
|
-
const
|
|
1816
|
+
const te = fe(
|
|
1817
1817
|
t,
|
|
1818
1818
|
{
|
|
1819
1819
|
unitId: a,
|
|
@@ -1836,7 +1836,7 @@ const S = {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
);
|
|
1839
|
-
|
|
1839
|
+
te && (w.push(...te.redos), R.push(...te.undos));
|
|
1840
1840
|
}
|
|
1841
1841
|
const O = t.get(D);
|
|
1842
1842
|
return E(w, O) && t.get(L).pushUndoRedo({
|
|
@@ -1845,7 +1845,7 @@ const S = {
|
|
|
1845
1845
|
redoMutations: w
|
|
1846
1846
|
}), !0;
|
|
1847
1847
|
}
|
|
1848
|
-
},
|
|
1848
|
+
}, Yn = {
|
|
1849
1849
|
id: "sheet.command.table-insert-col",
|
|
1850
1850
|
type: y.COMMAND,
|
|
1851
1851
|
handler: (t) => {
|
|
@@ -1860,7 +1860,7 @@ const S = {
|
|
|
1860
1860
|
const c = i.endColumn - i.startColumn + 1, _ = s.getColumnCount() - 1, f = s.getCellMatrix().getDataRange().endColumn, p = [], w = [];
|
|
1861
1861
|
if (_ - f < c)
|
|
1862
1862
|
p.push({
|
|
1863
|
-
id:
|
|
1863
|
+
id: ze.id,
|
|
1864
1864
|
params: {
|
|
1865
1865
|
unitId: r,
|
|
1866
1866
|
subUnitId: a,
|
|
@@ -1897,7 +1897,7 @@ const S = {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
}), w.push({
|
|
1900
|
-
id:
|
|
1900
|
+
id: Ke.id,
|
|
1901
1901
|
params: {
|
|
1902
1902
|
unitId: r,
|
|
1903
1903
|
subUnitId: a,
|
|
@@ -1969,7 +1969,7 @@ const S = {
|
|
|
1969
1969
|
redoMutations: p
|
|
1970
1970
|
}), !0;
|
|
1971
1971
|
}
|
|
1972
|
-
},
|
|
1972
|
+
}, Gn = {
|
|
1973
1973
|
id: "sheet.command.table-remove-row",
|
|
1974
1974
|
type: y.COMMAND,
|
|
1975
1975
|
handler: (t, e) => {
|
|
@@ -2043,7 +2043,7 @@ const S = {
|
|
|
2043
2043
|
redoMutations: g
|
|
2044
2044
|
}), !0;
|
|
2045
2045
|
}
|
|
2046
|
-
},
|
|
2046
|
+
}, jn = {
|
|
2047
2047
|
id: "sheet.command.table-remove-col",
|
|
2048
2048
|
type: y.COMMAND,
|
|
2049
2049
|
handler: (t, e) => {
|
|
@@ -2077,8 +2077,8 @@ const S = {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
});
|
|
2079
2079
|
const w = [], R = h.startColumn - p.startColumn;
|
|
2080
|
-
for (let
|
|
2081
|
-
const Ie = c.getTableInfo().columns[R +
|
|
2080
|
+
for (let re = 0; re < g; re++) {
|
|
2081
|
+
const Ie = c.getTableInfo().columns[R + re];
|
|
2082
2082
|
Ie && w.push(Ie);
|
|
2083
2083
|
}
|
|
2084
2084
|
f.push({
|
|
@@ -2122,19 +2122,22 @@ const S = {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
);
|
|
2124
2124
|
v && (_.push(...v.redos), f.push(...v.undos));
|
|
2125
|
-
const
|
|
2126
|
-
return E(_,
|
|
2125
|
+
const te = t.get(D);
|
|
2126
|
+
return E(_, te) && t.get(L).pushUndoRedo({
|
|
2127
2127
|
unitID: a,
|
|
2128
2128
|
undoMutations: f,
|
|
2129
2129
|
redoMutations: _
|
|
2130
2130
|
}), !0;
|
|
2131
2131
|
}
|
|
2132
|
+
}, zn = "@univerjs/sheets-table", Kn = "0.17.0", Ae = {
|
|
2133
|
+
name: zn,
|
|
2134
|
+
version: Kn
|
|
2132
2135
|
};
|
|
2133
|
-
var
|
|
2134
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2136
|
+
var Xn = Object.getOwnPropertyDescriptor, Zn = (t, e, n, s) => {
|
|
2137
|
+
for (var r = s > 1 ? void 0 : s ? Xn(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
2135
2138
|
(o = t[a]) && (r = o(r) || r);
|
|
2136
2139
|
return r;
|
|
2137
|
-
},
|
|
2140
|
+
}, Le = (t, e) => (n, s) => e(n, s, t);
|
|
2138
2141
|
let ce = class extends H {
|
|
2139
2142
|
constructor(t, e) {
|
|
2140
2143
|
super(), this._tableManager = t, this._commandService = e, this._initRangeListener();
|
|
@@ -2174,7 +2177,7 @@ let ce = class extends H {
|
|
|
2174
2177
|
const n = e.getTableInfo(), s = n.name, r = n.columns, a = /* @__PURE__ */ new Map();
|
|
2175
2178
|
r.forEach((o, u) => {
|
|
2176
2179
|
a.set(o.displayName, u);
|
|
2177
|
-
}), this._commandService.executeCommand(
|
|
2180
|
+
}), this._commandService.executeCommand(wt.id, {
|
|
2178
2181
|
unitId: t,
|
|
2179
2182
|
tableName: s,
|
|
2180
2183
|
reference: {
|
|
@@ -2185,15 +2188,15 @@ let ce = class extends H {
|
|
|
2185
2188
|
});
|
|
2186
2189
|
}
|
|
2187
2190
|
};
|
|
2188
|
-
ce =
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
+
ce = Zn([
|
|
2192
|
+
Le(0, C(T)),
|
|
2193
|
+
Le(1, D)
|
|
2191
2194
|
], ce);
|
|
2192
|
-
var
|
|
2193
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2195
|
+
var es = Object.getOwnPropertyDescriptor, ts = (t, e, n, s) => {
|
|
2196
|
+
for (var r = s > 1 ? void 0 : s ? es(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
2194
2197
|
(o = t[a]) && (r = o(r) || r);
|
|
2195
2198
|
return r;
|
|
2196
|
-
},
|
|
2199
|
+
}, Ee = (t, e) => (n, s) => e(n, s, t);
|
|
2197
2200
|
let de = class extends H {
|
|
2198
2201
|
constructor(t, e) {
|
|
2199
2202
|
super(), this._tableManager = t, this._exclusiveRangeService = e, this._initRangeListener();
|
|
@@ -2202,7 +2205,7 @@ let de = class extends H {
|
|
|
2202
2205
|
this.disposeWithMe(
|
|
2203
2206
|
this._tableManager.tableRangeChanged$.subscribe((t) => {
|
|
2204
2207
|
const { range: e, tableId: n, unitId: s, subUnitId: r } = t;
|
|
2205
|
-
this._exclusiveRangeService.clearExclusiveRangesByGroupId(s, r,
|
|
2208
|
+
this._exclusiveRangeService.clearExclusiveRangesByGroupId(s, r, ae, n), this._exclusiveRangeService.addExclusiveRange(s, r, ae, [{
|
|
2206
2209
|
range: { ...e },
|
|
2207
2210
|
groupId: n
|
|
2208
2211
|
}]);
|
|
@@ -2210,7 +2213,7 @@ let de = class extends H {
|
|
|
2210
2213
|
), this.disposeWithMe(
|
|
2211
2214
|
this._tableManager.tableAdd$.subscribe((t) => {
|
|
2212
2215
|
const { tableId: e, unitId: n, subUnitId: s, range: r } = t;
|
|
2213
|
-
this._exclusiveRangeService.addExclusiveRange(n, s,
|
|
2216
|
+
this._exclusiveRangeService.addExclusiveRange(n, s, ae, [{
|
|
2214
2217
|
range: { ...r },
|
|
2215
2218
|
groupId: e
|
|
2216
2219
|
}]);
|
|
@@ -2218,17 +2221,17 @@ let de = class extends H {
|
|
|
2218
2221
|
), this.disposeWithMe(
|
|
2219
2222
|
this._tableManager.tableDelete$.subscribe((t) => {
|
|
2220
2223
|
const { tableId: e, unitId: n, subUnitId: s } = t;
|
|
2221
|
-
this._exclusiveRangeService.clearExclusiveRangesByGroupId(n, s,
|
|
2224
|
+
this._exclusiveRangeService.clearExclusiveRangesByGroupId(n, s, ae, e);
|
|
2222
2225
|
})
|
|
2223
2226
|
);
|
|
2224
2227
|
}
|
|
2225
2228
|
};
|
|
2226
|
-
de =
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
+
de = ts([
|
|
2230
|
+
Ee(0, C(T)),
|
|
2231
|
+
Ee(1, C(St))
|
|
2229
2232
|
], de);
|
|
2230
|
-
var
|
|
2231
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2233
|
+
var ns = Object.getOwnPropertyDescriptor, ss = (t, e, n, s) => {
|
|
2234
|
+
for (var r = s > 1 ? void 0 : s ? ns(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
2232
2235
|
(o = t[a]) && (r = o(r) || r);
|
|
2233
2236
|
return r;
|
|
2234
2237
|
}, V = (t, e) => (n, s) => e(n, s, t);
|
|
@@ -2242,13 +2245,13 @@ let he = class extends H {
|
|
|
2242
2245
|
getMutations(e) {
|
|
2243
2246
|
const n = { redos: [], undos: [] }, { id: s, params: r } = e;
|
|
2244
2247
|
switch (s) {
|
|
2245
|
-
case
|
|
2248
|
+
case It.id:
|
|
2246
2249
|
return t._generateTableMutationWithInsertRow(r);
|
|
2247
|
-
case
|
|
2250
|
+
case Tt.id:
|
|
2248
2251
|
return t._generateTableMutationWithInsertCol(r);
|
|
2249
|
-
case
|
|
2252
|
+
case Rt.id:
|
|
2250
2253
|
return t._generateTableMutationWithRemoveRow(r);
|
|
2251
|
-
case
|
|
2254
|
+
case Ct.id:
|
|
2252
2255
|
return t._generateTableMutationWithRemoveCol(r);
|
|
2253
2256
|
}
|
|
2254
2257
|
return n;
|
|
@@ -2464,7 +2467,7 @@ let he = class extends H {
|
|
|
2464
2467
|
return { undos: e, redos: n, preRedos: s, preUndos: r };
|
|
2465
2468
|
const O = [];
|
|
2466
2469
|
for (let I = f; I <= p; I++)
|
|
2467
|
-
O.push(
|
|
2470
|
+
O.push(et(R == null ? void 0 : R.getCell(_, I)) || ne(I - f + 1, this._localeService.t("sheets-table.columnPrefix")));
|
|
2468
2471
|
e.push({
|
|
2469
2472
|
id: k.id,
|
|
2470
2473
|
params: {
|
|
@@ -2602,7 +2605,7 @@ let he = class extends H {
|
|
|
2602
2605
|
}
|
|
2603
2606
|
_initCommandListener() {
|
|
2604
2607
|
this._commandService.onCommandExecuted((t) => {
|
|
2605
|
-
if (t.id ===
|
|
2608
|
+
if (t.id === Ge.id) {
|
|
2606
2609
|
const e = t.params, { unitId: n, subUnitId: s, range: r } = e, a = r.endRow - r.startRow + 1;
|
|
2607
2610
|
this._tableManager.getTablesBySubunitId(n, s).forEach((u) => {
|
|
2608
2611
|
const l = u.getRange();
|
|
@@ -2614,7 +2617,7 @@ let he = class extends H {
|
|
|
2614
2617
|
}
|
|
2615
2618
|
});
|
|
2616
2619
|
});
|
|
2617
|
-
} else if (t.id ===
|
|
2620
|
+
} else if (t.id === ze.id) {
|
|
2618
2621
|
const e = t.params, { unitId: n, subUnitId: s, range: r } = e, a = r.endColumn - r.startColumn + 1;
|
|
2619
2622
|
this._tableManager.getTablesBySubunitId(n, s).forEach((u) => {
|
|
2620
2623
|
const l = u.getRange();
|
|
@@ -2626,7 +2629,7 @@ let he = class extends H {
|
|
|
2626
2629
|
}
|
|
2627
2630
|
});
|
|
2628
2631
|
});
|
|
2629
|
-
} else if (t.id ===
|
|
2632
|
+
} else if (t.id === je.id) {
|
|
2630
2633
|
const e = t.params, { unitId: n, subUnitId: s, range: r } = e, a = r.endRow - r.startRow + 1;
|
|
2631
2634
|
this._tableManager.getTablesBySubunitId(n, s).forEach((u) => {
|
|
2632
2635
|
const l = u.getRange();
|
|
@@ -2638,7 +2641,7 @@ let he = class extends H {
|
|
|
2638
2641
|
}
|
|
2639
2642
|
});
|
|
2640
2643
|
});
|
|
2641
|
-
} else if (t.id ===
|
|
2644
|
+
} else if (t.id === Ke.id) {
|
|
2642
2645
|
const e = t.params, { unitId: n, subUnitId: s, range: r } = e, a = r.endColumn - r.startColumn + 1;
|
|
2643
2646
|
this._tableManager.getTablesBySubunitId(n, s).forEach((u) => {
|
|
2644
2647
|
const l = u.getRange();
|
|
@@ -2654,20 +2657,20 @@ let he = class extends H {
|
|
|
2654
2657
|
});
|
|
2655
2658
|
}
|
|
2656
2659
|
};
|
|
2657
|
-
he =
|
|
2660
|
+
he = ss([
|
|
2658
2661
|
V(0, C(D)),
|
|
2659
|
-
V(1, C(
|
|
2662
|
+
V(1, C(_t)),
|
|
2660
2663
|
V(2, C(A)),
|
|
2661
|
-
V(3, C(
|
|
2664
|
+
V(3, C(Ve)),
|
|
2662
2665
|
V(4, C(Re)),
|
|
2663
2666
|
V(5, C(T)),
|
|
2664
2667
|
V(6, C(be))
|
|
2665
2668
|
], he);
|
|
2666
|
-
var
|
|
2667
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2669
|
+
var rs = Object.getOwnPropertyDescriptor, as = (t, e, n, s) => {
|
|
2670
|
+
for (var r = s > 1 ? void 0 : s ? rs(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
2668
2671
|
(o = t[a]) && (r = o(r) || r);
|
|
2669
2672
|
return r;
|
|
2670
|
-
},
|
|
2673
|
+
}, ie = (t, e) => (n, s) => e(n, s, t);
|
|
2671
2674
|
let ge = class extends H {
|
|
2672
2675
|
constructor(e, n, s, r) {
|
|
2673
2676
|
super();
|
|
@@ -2724,12 +2727,12 @@ let ge = class extends H {
|
|
|
2724
2727
|
);
|
|
2725
2728
|
}
|
|
2726
2729
|
_initUserTableTheme() {
|
|
2727
|
-
const e = this._configService.getConfig(
|
|
2728
|
-
this._defaultThemeIndex = n, this._allThemes = s.concat(
|
|
2730
|
+
const e = this._configService.getConfig(nt) || {}, n = e.defaultThemeIndex || 0, s = e.userThemes || [];
|
|
2731
|
+
this._defaultThemeIndex = n, this._allThemes = s.concat(st);
|
|
2729
2732
|
}
|
|
2730
2733
|
_initDefaultTableTheme() {
|
|
2731
2734
|
for (let e = 0; e < this._allThemes.length; e++) {
|
|
2732
|
-
const { name: n, style: s } = this._allThemes[e], r = new
|
|
2735
|
+
const { name: n, style: s } = this._allThemes[e], r = new vt(n, s);
|
|
2733
2736
|
this._sheetRangeThemeModel.registerDefaultRangeTheme(r);
|
|
2734
2737
|
}
|
|
2735
2738
|
}
|
|
@@ -2737,21 +2740,21 @@ let ge = class extends H {
|
|
|
2737
2740
|
super.dispose(), this._allThemes = [], this._defaultThemeIndex = 0;
|
|
2738
2741
|
}
|
|
2739
2742
|
};
|
|
2740
|
-
ge =
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2743
|
+
ge = as([
|
|
2744
|
+
ie(0, C(T)),
|
|
2745
|
+
ie(1, C(Mt)),
|
|
2746
|
+
ie(2, C(Qe)),
|
|
2747
|
+
ie(3, Pe)
|
|
2745
2748
|
], ge);
|
|
2746
|
-
var
|
|
2747
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2749
|
+
var os = Object.getOwnPropertyDescriptor, is = (t, e, n, s) => {
|
|
2750
|
+
for (var r = s > 1 ? void 0 : s ? os(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
2748
2751
|
(o = t[a]) && (r = o(r) || r);
|
|
2749
2752
|
return r;
|
|
2750
|
-
},
|
|
2753
|
+
}, le = (t, e) => (n, s) => e(n, s, t);
|
|
2751
2754
|
let me = class extends H {
|
|
2752
2755
|
constructor(e, n, s, r) {
|
|
2753
2756
|
super();
|
|
2754
|
-
b(this, "_tableFilteredOutRows$", new
|
|
2757
|
+
b(this, "_tableFilteredOutRows$", new Xe(/* @__PURE__ */ new Set()));
|
|
2755
2758
|
b(this, "tableFilteredOutRows$", this._tableFilteredOutRows$.asObservable());
|
|
2756
2759
|
b(this, "_subscription", null);
|
|
2757
2760
|
this._tableManager = e, this._sheetInterceptorService = n, this._univerInstanceService = s, this._zebraCrossingCacheController = r, this.registerFilterChangeEvent(), this.initTableHiddenRowIntercept(), this._initFilteredOutRows();
|
|
@@ -2763,7 +2766,7 @@ let me = class extends H {
|
|
|
2763
2766
|
this._tableFilteredOutRows$.next(e);
|
|
2764
2767
|
}
|
|
2765
2768
|
initTableHiddenRowIntercept() {
|
|
2766
|
-
this.disposeWithMe(this._sheetInterceptorService.intercept(
|
|
2769
|
+
this.disposeWithMe(this._sheetInterceptorService.intercept(Ye.ROW_FILTERED, {
|
|
2767
2770
|
// 这里需要保证优先级高于sheet的筛选,因为筛选没有next,低于筛选的不会触发interceptor
|
|
2768
2771
|
priority: 100,
|
|
2769
2772
|
handler: (e, n, s) => {
|
|
@@ -2776,7 +2779,7 @@ let me = class extends H {
|
|
|
2776
2779
|
_initFilteredOutRows() {
|
|
2777
2780
|
this._tableManager.tableInitStatus$.pipe(
|
|
2778
2781
|
pe((e) => e),
|
|
2779
|
-
Fe(() => this._univerInstanceService.getCurrentTypeOfUnit$(
|
|
2782
|
+
Fe(() => this._univerInstanceService.getCurrentTypeOfUnit$(z.UNIVER_SHEET)),
|
|
2780
2783
|
pe((e) => e != null),
|
|
2781
2784
|
Fe((e) => e.activeSheet$),
|
|
2782
2785
|
pe((e) => e != null)
|
|
@@ -2814,33 +2817,33 @@ let me = class extends H {
|
|
|
2814
2817
|
super.dispose(), (e = this._subscription) == null || e.unsubscribe();
|
|
2815
2818
|
}
|
|
2816
2819
|
};
|
|
2817
|
-
me =
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2820
|
+
me = is([
|
|
2821
|
+
le(0, C(T)),
|
|
2822
|
+
le(1, C(Re)),
|
|
2823
|
+
le(2, C(A)),
|
|
2824
|
+
le(3, C(Ft))
|
|
2822
2825
|
], me);
|
|
2823
|
-
var
|
|
2824
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2826
|
+
var ls = Object.getOwnPropertyDescriptor, us = (t, e, n, s) => {
|
|
2827
|
+
for (var r = s > 1 ? void 0 : s ? ls(e, n) : e, a = t.length - 1, o; a >= 0; a--)
|
|
2825
2828
|
(o = t[a]) && (r = o(r) || r);
|
|
2826
2829
|
return r;
|
|
2827
|
-
}, Se = (t, e) => (n, s) => e(n, s, t),
|
|
2828
|
-
let
|
|
2830
|
+
}, Se = (t, e) => (n, s) => e(n, s, t), G;
|
|
2831
|
+
let Be = (G = class extends gt {
|
|
2829
2832
|
constructor(t = De, e, n, s) {
|
|
2830
2833
|
super(), this._config = t, this._injector = e, this._configService = n, this._commandService = s;
|
|
2831
|
-
const { ...r } =
|
|
2834
|
+
const { ...r } = mt(
|
|
2832
2835
|
{},
|
|
2833
2836
|
De,
|
|
2834
2837
|
this._config
|
|
2835
2838
|
);
|
|
2836
|
-
this._configService.setConfig(
|
|
2839
|
+
this._configService.setConfig(nt, r), this._initRegisterCommand();
|
|
2837
2840
|
}
|
|
2838
2841
|
onStarting() {
|
|
2839
|
-
|
|
2842
|
+
bt(this._injector, [
|
|
2840
2843
|
[T],
|
|
2841
2844
|
[ge],
|
|
2842
2845
|
[W],
|
|
2843
|
-
[
|
|
2846
|
+
[Z],
|
|
2844
2847
|
[me],
|
|
2845
2848
|
[de],
|
|
2846
2849
|
[he],
|
|
@@ -2854,7 +2857,7 @@ let Ee = (le = class extends ht {
|
|
|
2854
2857
|
[he],
|
|
2855
2858
|
[ge],
|
|
2856
2859
|
[W],
|
|
2857
|
-
[
|
|
2860
|
+
[Z],
|
|
2858
2861
|
[me]
|
|
2859
2862
|
]), Me(this._injector, [
|
|
2860
2863
|
[T]
|
|
@@ -2862,58 +2865,58 @@ let Ee = (le = class extends ht {
|
|
|
2862
2865
|
}
|
|
2863
2866
|
_initRegisterCommand() {
|
|
2864
2867
|
[
|
|
2865
|
-
Ln,
|
|
2866
|
-
k,
|
|
2867
2868
|
En,
|
|
2869
|
+
k,
|
|
2870
|
+
Wn,
|
|
2868
2871
|
Q,
|
|
2869
2872
|
Ce,
|
|
2870
|
-
Bn,
|
|
2871
|
-
Jn,
|
|
2872
|
-
S,
|
|
2873
|
-
Pn,
|
|
2874
2873
|
qn,
|
|
2875
|
-
|
|
2874
|
+
Pn,
|
|
2875
|
+
S,
|
|
2876
|
+
Bn,
|
|
2877
|
+
Vn,
|
|
2876
2878
|
Qn,
|
|
2877
2879
|
Yn,
|
|
2878
|
-
Gn
|
|
2880
|
+
Gn,
|
|
2881
|
+
jn
|
|
2879
2882
|
].forEach((t) => this._commandService.registerCommand(t));
|
|
2880
2883
|
}
|
|
2881
|
-
}, b(
|
|
2882
|
-
|
|
2883
|
-
Se(1, C(
|
|
2884
|
-
Se(2,
|
|
2884
|
+
}, b(G, "pluginName", ot), b(G, "packageName", Ae.name), b(G, "version", Ae.version), b(G, "type", z.UNIVER_SHEET), G);
|
|
2885
|
+
Be = us([
|
|
2886
|
+
Se(1, C(Ve)),
|
|
2887
|
+
Se(2, Pe),
|
|
2885
2888
|
Se(3, C(D))
|
|
2886
|
-
],
|
|
2889
|
+
], Be);
|
|
2887
2890
|
export {
|
|
2888
|
-
|
|
2891
|
+
En as AddSheetTableCommand,
|
|
2889
2892
|
k as AddSheetTableMutation,
|
|
2890
|
-
|
|
2891
|
-
|
|
2893
|
+
Bn as AddTableThemeCommand,
|
|
2894
|
+
Wn as DeleteSheetTableCommand,
|
|
2892
2895
|
Q as DeleteSheetTableMutation,
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2896
|
+
Vn as RemoveTableThemeCommand,
|
|
2897
|
+
Hn as SHEET_TABLE_CUSTOM_THEME_PREFIX,
|
|
2898
|
+
Pn as SetSheetTableCommand,
|
|
2899
|
+
qn as SetSheetTableFilterCommand,
|
|
2897
2900
|
Ce as SetSheetTableFilterMutation,
|
|
2898
2901
|
S as SetSheetTableMutation,
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2902
|
+
Yn as SheetTableInsertColCommand,
|
|
2903
|
+
Qn as SheetTableInsertRowCommand,
|
|
2904
|
+
jn as SheetTableRemoveColCommand,
|
|
2905
|
+
Gn as SheetTableRemoveRowCommand,
|
|
2906
|
+
Z as SheetTableService,
|
|
2904
2907
|
q as SheetsTableButtonStateEnum,
|
|
2905
2908
|
W as SheetsTableController,
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
+
j as SheetsTableSortStateEnum,
|
|
2910
|
+
Ze as TableColumnDataTypeEnum,
|
|
2911
|
+
se as TableColumnFilterTypeEnum,
|
|
2909
2912
|
U as TableConditionTypeEnum,
|
|
2910
2913
|
m as TableDateCompareTypeEnum,
|
|
2911
2914
|
T as TableManager,
|
|
2912
2915
|
F as TableNumberCompareTypeEnum,
|
|
2913
2916
|
P as TableStringCompareTypeEnum,
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2917
|
+
Be as UniverSheetsTablePlugin,
|
|
2918
|
+
fs as customEmptyThemeWithBorderStyle,
|
|
2919
|
+
Dt as isConditionFilter,
|
|
2920
|
+
ws as isManualTableFilter,
|
|
2921
|
+
ps as processStyleWithBorderStyle
|
|
2919
2922
|
};
|