@univerjs/sheets-conditional-formatting 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260124-12fc7f0
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 +63 -63
- package/lib/index.js +63 -63
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var H2 = Object.defineProperty;
|
|
2
2
|
var j2 = (s, r, t) => r in s ? H2(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
|
|
3
3
|
var m = (s, r, t) => j2(s, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import { generateRandomId as X2, Tools as J, CommandType as O, IUndoRedoService as e2, ICommandService as W, IUniverInstanceService as q, ObjectMatrix as V, Range as T, sequenceExecute as
|
|
4
|
+
import { generateRandomId as X2, Tools as J, CommandType as O, IUndoRedoService as e2, ICommandService as W, IUniverInstanceService as q, ObjectMatrix as V, Range as T, sequenceExecute as B2, Inject as S, Disposable as x2, RefAlias as K2, CellValueType as x, BooleanNumber as N2, LRUMap as T2, ColorKit as U2, dayjs as v, Injector as M2, RTree as Y2, IResourceManagerService as J2, merge as V2, UniverInstanceType as D2, isInternalEditorID as z2, Rectangle as n2, DependentOn as Q2, IConfigService as e0, Plugin as t0, touchDependencies as n0 } from "@univerjs/core";
|
|
5
5
|
import { isRangesEqual as X1 } from "@univerjs/core";
|
|
6
6
|
import { getSheetCommandTarget as t2, SheetsSelectionsService as r0, findAllRectangle as s0, createTopMatrixFromMatrix as i0, SheetInterceptorService as a0, RemoveSheetCommand as l0, CopySheetCommand as o0, ReorderRangeMutation as u0, MoveRangeMutation as c0, MoveColsMutation as d0, MoveRowsMutation as h0, InsertRowMutation as g0, RemoveRowMutation as C0, RemoveColMutation as f0, InsertColMutation as D0, SetRangeValuesMutation as m0 } from "@univerjs/sheets";
|
|
7
7
|
import { Subject as d2, BehaviorSubject as F0 } from "rxjs";
|
|
@@ -9,7 +9,7 @@ import { RegisterOtherFormulaService as w0, FormulaResultStatus as p, OtherFormu
|
|
|
9
9
|
import { distinctUntilChanged as E0, bufferTime as A0, filter as _0, map as x0 } from "rxjs/operators";
|
|
10
10
|
import { isObject as M0, SpreadsheetExtensionRegistry as O2, SheetExtension as $2, FIX_ONE_PIXEL_BLUR_OFFSET as y0 } from "@univerjs/engine-render";
|
|
11
11
|
const P2 = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
|
|
12
|
-
var
|
|
12
|
+
var k = /* @__PURE__ */ ((s) => (s.beginsWith = "beginsWith", s.endsWith = "endsWith", s.containsText = "containsText", s.notContainsText = "notContainsText", s.equal = "equal", s.notEqual = "notEqual", s.containsBlanks = "containsBlanks", s.notContainsBlanks = "notContainsBlanks", s.containsErrors = "containsErrors", s.notContainsErrors = "notContainsErrors", s))(k || {}), B = /* @__PURE__ */ ((s) => (s.today = "today", s.yesterday = "yesterday", s.tomorrow = "tomorrow", s.last7Days = "last7Days", s.thisMonth = "thisMonth", s.lastMonth = "lastMonth", s.nextMonth = "nextMonth", s.thisWeek = "thisWeek", s.lastWeek = "lastWeek", s.nextWeek = "nextWeek", s))(B || {}), w = /* @__PURE__ */ ((s) => (s.greaterThan = "greaterThan", s.greaterThanOrEqual = "greaterThanOrEqual", s.lessThan = "lessThan", s.lessThanOrEqual = "lessThanOrEqual", s.notBetween = "notBetween", s.between = "between", s.equal = "equal", s.notEqual = "notEqual", s))(w || {}), M = /* @__PURE__ */ ((s) => (s.highlightCell = "highlightCell", s.dataBar = "dataBar", s.colorScale = "colorScale", s.iconSet = "iconSet", s))(M || {}), _ = /* @__PURE__ */ ((s) => (s.uniqueValues = "uniqueValues", s.duplicateValues = "duplicateValues", s.rank = "rank", s.text = "text", s.timePeriod = "timePeriod", s.number = "number", s.average = "average", s.formula = "formula", s))(_ || {}), b = /* @__PURE__ */ ((s) => (s.num = "num", s.min = "min", s.max = "max", s.percent = "percent", s.percentile = "percentile", s.formula = "formula", s))(b || {});
|
|
13
13
|
const V1 = "#fff", O1 = "#000000", $1 = () => ({
|
|
14
14
|
cfId: void 0,
|
|
15
15
|
ranges: [],
|
|
@@ -294,7 +294,7 @@ const i2 = {
|
|
|
294
294
|
rule: J.deepClone(a)
|
|
295
295
|
}
|
|
296
296
|
}] : [];
|
|
297
|
-
},
|
|
297
|
+
}, k0 = {
|
|
298
298
|
type: O.COMMAND,
|
|
299
299
|
id: "sheet.command.clear-range-conditional-rule",
|
|
300
300
|
handler(s, r) {
|
|
@@ -327,14 +327,14 @@ const i2 = {
|
|
|
327
327
|
h.push({ id: K.id, params: A }), g.push(...I);
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
|
-
const f =
|
|
330
|
+
const f = B2(h, n).result;
|
|
331
331
|
return f && i.pushUndoRedo({
|
|
332
332
|
unitID: l,
|
|
333
333
|
redoMutations: h,
|
|
334
334
|
undoMutations: g
|
|
335
335
|
}), f;
|
|
336
336
|
}
|
|
337
|
-
},
|
|
337
|
+
}, B0 = {
|
|
338
338
|
type: O.COMMAND,
|
|
339
339
|
id: "sheet.command.clear-worksheet-conditional-rule",
|
|
340
340
|
handler(s, r) {
|
|
@@ -343,7 +343,7 @@ const i2 = {
|
|
|
343
343
|
const { unitId: c, subUnitId: l } = a, o = t.getSubunitRules(c, l);
|
|
344
344
|
if (!(o != null && o.length))
|
|
345
345
|
return !1;
|
|
346
|
-
const d = o.map((f) => ({ cfId: f.cfId, unitId: c, subUnitId: l })), u = d.map((f) => ({ id: K.id, params: f })), h = d.map((f) => m2(s, f)[0]), g =
|
|
346
|
+
const d = o.map((f) => ({ cfId: f.cfId, unitId: c, subUnitId: l })), u = d.map((f) => ({ id: K.id, params: f })), h = d.map((f) => m2(s, f)[0]), g = B2(u, n).result;
|
|
347
347
|
return g && i.pushUndoRedo({
|
|
348
348
|
unitID: c,
|
|
349
349
|
redoMutations: u,
|
|
@@ -396,7 +396,7 @@ var V0 = Object.getOwnPropertyDescriptor, O0 = (s, r, t, e) => {
|
|
|
396
396
|
(a = s[i]) && (n = a(n) || n);
|
|
397
397
|
return n;
|
|
398
398
|
}, S2 = (s, r) => (t, e) => r(t, e, s);
|
|
399
|
-
let z = class extends
|
|
399
|
+
let z = class extends x2 {
|
|
400
400
|
constructor(r, t) {
|
|
401
401
|
super();
|
|
402
402
|
// Cache Formula ID and formula mapping.
|
|
@@ -637,7 +637,7 @@ class F2 {
|
|
|
637
637
|
class $0 extends F2 {
|
|
638
638
|
preComputing(r, t, e) {
|
|
639
639
|
const n = e.rule, i = e.worksheet, a = new V();
|
|
640
|
-
!n.rule.config.every((d) => d.value.type === b.num) &&
|
|
640
|
+
!n.rule.config.every((d) => d.value.type === b.num) && w2(n.ranges, i.getMaxRows() - 1, i.getMaxColumns() - 1).forEach((u) => {
|
|
641
641
|
T.foreach(u, (h, g) => {
|
|
642
642
|
const f = e.getCellValue(h, g), D = f && f.v;
|
|
643
643
|
if (!N(D) && (f == null ? void 0 : f.t) === x.NUMBER) {
|
|
@@ -706,7 +706,7 @@ class G0 extends $2 {
|
|
|
706
706
|
return;
|
|
707
707
|
c.add($);
|
|
708
708
|
}
|
|
709
|
-
const { color: D, value: F, startPoint: E, isGradient: R } = f.dataBar, { startX: A, endX: I, startY: L, endY:
|
|
709
|
+
const { color: D, value: F, startPoint: E, isGradient: R } = f.dataBar, { startX: A, endX: I, startY: L, endY: v2 } = u || h ? g : d, o2 = I - A, p2 = v2 + y0 - L, Z = o2 - this._paddingRightAndLeft * 2, y2 = p2 - this._paddingTopAndBottom * 2;
|
|
710
710
|
if (F > 0) {
|
|
711
711
|
const $ = Math.max(Z * (1 - E / 100) * F / 100, 1), G = A + this._paddingRightAndLeft + E / 100 * Z, H = L + this._paddingTopAndBottom;
|
|
712
712
|
if (R) {
|
|
@@ -743,7 +743,7 @@ const u2 = (s) => Math.max(Math.min(100, s), 0), H0 = (s, r, t) => {
|
|
|
743
743
|
class j0 extends F2 {
|
|
744
744
|
preComputing(r, t, e) {
|
|
745
745
|
const n = e.rule, i = n.rule, a = e.worksheet, c = new V();
|
|
746
|
-
![n.rule.config.max, n.rule.config.min].every((g) => g.type === b.num) &&
|
|
746
|
+
![n.rule.config.max, n.rule.config.min].every((g) => g.type === b.num) && w2(n.ranges, a.getMaxRows() - 1, a.getMaxColumns() - 1).forEach((f) => {
|
|
747
747
|
T.foreach(f, (D, F) => {
|
|
748
748
|
const E = e.getCellValue(D, F), R = E && E.v;
|
|
749
749
|
if (!N(R) && (E == null ? void 0 : E.t) === x.NUMBER) {
|
|
@@ -803,7 +803,7 @@ class j0 extends F2 {
|
|
|
803
803
|
class X0 extends F2 {
|
|
804
804
|
// eslint-disable-next-line max-lines-per-function
|
|
805
805
|
preComputing(r, t, e) {
|
|
806
|
-
const n = e.rule.rule, i = e.rule.ranges, c = (() => {
|
|
806
|
+
const n = e.rule.rule, i = w2(e.rule.ranges, e.worksheet.getMaxRows() - 1, e.worksheet.getMaxColumns() - 1), c = (() => {
|
|
807
807
|
switch (n.subType) {
|
|
808
808
|
case _.average: {
|
|
809
809
|
let l = 0, o = 0;
|
|
@@ -855,7 +855,7 @@ class X0 extends F2 {
|
|
|
855
855
|
}
|
|
856
856
|
case _.timePeriod:
|
|
857
857
|
switch (n.operator) {
|
|
858
|
-
case
|
|
858
|
+
case B.last7Days:
|
|
859
859
|
return {
|
|
860
860
|
value: {
|
|
861
861
|
start: v().subtract(7, "day").valueOf(),
|
|
@@ -863,7 +863,7 @@ class X0 extends F2 {
|
|
|
863
863
|
},
|
|
864
864
|
type: n.subType
|
|
865
865
|
};
|
|
866
|
-
case
|
|
866
|
+
case B.lastMonth:
|
|
867
867
|
return {
|
|
868
868
|
value: {
|
|
869
869
|
start: v().startOf("month").subtract(1, "month").valueOf(),
|
|
@@ -871,7 +871,7 @@ class X0 extends F2 {
|
|
|
871
871
|
},
|
|
872
872
|
type: n.subType
|
|
873
873
|
};
|
|
874
|
-
case
|
|
874
|
+
case B.lastWeek:
|
|
875
875
|
return {
|
|
876
876
|
value: {
|
|
877
877
|
start: v().startOf("week").subtract(1, "week").valueOf(),
|
|
@@ -879,7 +879,7 @@ class X0 extends F2 {
|
|
|
879
879
|
},
|
|
880
880
|
type: n.subType
|
|
881
881
|
};
|
|
882
|
-
case
|
|
882
|
+
case B.nextMonth:
|
|
883
883
|
return {
|
|
884
884
|
value: {
|
|
885
885
|
start: v().startOf("month").add(1, "month").valueOf(),
|
|
@@ -887,7 +887,7 @@ class X0 extends F2 {
|
|
|
887
887
|
},
|
|
888
888
|
type: n.subType
|
|
889
889
|
};
|
|
890
|
-
case
|
|
890
|
+
case B.nextWeek:
|
|
891
891
|
return {
|
|
892
892
|
value: {
|
|
893
893
|
start: v().startOf("week").add(1, "week").valueOf(),
|
|
@@ -895,7 +895,7 @@ class X0 extends F2 {
|
|
|
895
895
|
},
|
|
896
896
|
type: n.subType
|
|
897
897
|
};
|
|
898
|
-
case
|
|
898
|
+
case B.thisMonth:
|
|
899
899
|
return {
|
|
900
900
|
value: {
|
|
901
901
|
start: v().startOf("month").valueOf(),
|
|
@@ -903,7 +903,7 @@ class X0 extends F2 {
|
|
|
903
903
|
},
|
|
904
904
|
type: n.subType
|
|
905
905
|
};
|
|
906
|
-
case
|
|
906
|
+
case B.thisWeek:
|
|
907
907
|
return {
|
|
908
908
|
value: {
|
|
909
909
|
start: v().startOf("week").valueOf(),
|
|
@@ -911,7 +911,7 @@ class X0 extends F2 {
|
|
|
911
911
|
},
|
|
912
912
|
type: n.subType
|
|
913
913
|
};
|
|
914
|
-
case
|
|
914
|
+
case B.today:
|
|
915
915
|
return {
|
|
916
916
|
value: {
|
|
917
917
|
start: v().startOf("day").valueOf(),
|
|
@@ -919,7 +919,7 @@ class X0 extends F2 {
|
|
|
919
919
|
},
|
|
920
920
|
type: n.subType
|
|
921
921
|
};
|
|
922
|
-
case
|
|
922
|
+
case B.tomorrow:
|
|
923
923
|
return {
|
|
924
924
|
value: {
|
|
925
925
|
start: v().startOf("day").add(1, "day").valueOf(),
|
|
@@ -927,7 +927,7 @@ class X0 extends F2 {
|
|
|
927
927
|
},
|
|
928
928
|
type: n.subType
|
|
929
929
|
};
|
|
930
|
-
case
|
|
930
|
+
case B.yesterday:
|
|
931
931
|
return {
|
|
932
932
|
value: {
|
|
933
933
|
start: v().startOf("day").subtract(1, "day").valueOf(),
|
|
@@ -952,25 +952,25 @@ class X0 extends F2 {
|
|
|
952
952
|
case _.text: {
|
|
953
953
|
const o = a, d = P(i), u = d === null ? "" : String(d), h = o.value || "";
|
|
954
954
|
switch (o.operator) {
|
|
955
|
-
case
|
|
955
|
+
case k.beginsWith:
|
|
956
956
|
return u.startsWith(h);
|
|
957
|
-
case
|
|
957
|
+
case k.containsBlanks:
|
|
958
958
|
return /^\s*$/.test(u);
|
|
959
|
-
case
|
|
959
|
+
case k.notContainsBlanks:
|
|
960
960
|
return !/^\s*$/.test(u);
|
|
961
|
-
case
|
|
961
|
+
case k.containsErrors:
|
|
962
962
|
return R2.has(u);
|
|
963
|
-
case
|
|
963
|
+
case k.notContainsErrors:
|
|
964
964
|
return !R2.has(u);
|
|
965
|
-
case
|
|
965
|
+
case k.containsText:
|
|
966
966
|
return u.indexOf(h) > -1;
|
|
967
|
-
case
|
|
967
|
+
case k.notContainsText:
|
|
968
968
|
return u.indexOf(h) === -1;
|
|
969
|
-
case
|
|
969
|
+
case k.endsWith:
|
|
970
970
|
return u.endsWith(h);
|
|
971
|
-
case
|
|
971
|
+
case k.equal:
|
|
972
972
|
return u === h;
|
|
973
|
-
case
|
|
973
|
+
case k.notEqual:
|
|
974
974
|
return u !== h;
|
|
975
975
|
default:
|
|
976
976
|
return !1;
|
|
@@ -1045,7 +1045,7 @@ const K0 = (s, r, t) => {
|
|
|
1045
1045
|
class Y0 extends F2 {
|
|
1046
1046
|
preComputing(r, t, e) {
|
|
1047
1047
|
const n = e.rule.rule, i = e.worksheet, a = new V();
|
|
1048
|
-
!n.config.every((d) => d.value.type === b.num) &&
|
|
1048
|
+
!n.config.every((d) => d.value.type === b.num) && w2(e.rule.ranges, i.getMaxRows() - 1, i.getMaxColumns() - 1).forEach((u) => {
|
|
1049
1049
|
T.foreach(u, (h, g) => {
|
|
1050
1050
|
const f = e.getCellValue(h, g), D = f && f.v;
|
|
1051
1051
|
if (!N(D) && (f == null ? void 0 : f.t) === x.NUMBER) {
|
|
@@ -1103,8 +1103,8 @@ var J0 = Object.getOwnPropertyDescriptor, z0 = (s, r, t, e) => {
|
|
|
1103
1103
|
(a = s[i]) && (n = a(n) || n);
|
|
1104
1104
|
return n;
|
|
1105
1105
|
}, c2 = (s, r) => (t, e) => r(t, e, s);
|
|
1106
|
-
const
|
|
1107
|
-
let Q = class extends
|
|
1106
|
+
const E2 = 1e3 * 3 * 3;
|
|
1107
|
+
let Q = class extends x2 {
|
|
1108
1108
|
constructor(r, t, e, n) {
|
|
1109
1109
|
super();
|
|
1110
1110
|
// Map<unitID ,<sheetId ,ObjectMatrix>>
|
|
@@ -1113,7 +1113,7 @@ let Q = class extends _2 {
|
|
|
1113
1113
|
/**
|
|
1114
1114
|
* 1nd-level cache
|
|
1115
1115
|
*/
|
|
1116
|
-
m(this, "_cellCache", new T2(
|
|
1116
|
+
m(this, "_cellCache", new T2(E2));
|
|
1117
1117
|
m(this, "_markDirty$", new d2());
|
|
1118
1118
|
/**
|
|
1119
1119
|
* The rendering layer listens to this variable to determine whether a reRender is necessary.
|
|
@@ -1260,7 +1260,7 @@ let Q = class extends _2 {
|
|
|
1260
1260
|
subUnitId: t,
|
|
1261
1261
|
accessor: this._injector,
|
|
1262
1262
|
rule: e,
|
|
1263
|
-
limit:
|
|
1263
|
+
limit: E2,
|
|
1264
1264
|
getCellValue: (c, l) => i.getCellRaw(c, l) || {}
|
|
1265
1265
|
};
|
|
1266
1266
|
switch (e.rule.type) {
|
|
@@ -1277,7 +1277,7 @@ let Q = class extends _2 {
|
|
|
1277
1277
|
_createCacheKey(r, t, e, n) {
|
|
1278
1278
|
return `${r}_${t}_${e}_${n}`;
|
|
1279
1279
|
}
|
|
1280
|
-
setCacheLength(r =
|
|
1280
|
+
setCacheLength(r = E2) {
|
|
1281
1281
|
this._cellCache.limit !== r && (this._cellCache.limit = r, this._calculateUnitManagers.forEach((t) => {
|
|
1282
1282
|
t.forEach((e) => {
|
|
1283
1283
|
e.forEach((n) => {
|
|
@@ -1288,7 +1288,7 @@ let Q = class extends _2 {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
1290
|
Q = z0([
|
|
1291
|
-
c2(0, S(
|
|
1291
|
+
c2(0, S(M2)),
|
|
1292
1292
|
c2(1, S(y)),
|
|
1293
1293
|
c2(2, S(z)),
|
|
1294
1294
|
c2(3, q)
|
|
@@ -1304,7 +1304,7 @@ const N = (s) => [void 0, null].includes(s), P = (s) => {
|
|
|
1304
1304
|
return s.v === N2.TRUE ? I2.TRUE : I2.FALSE;
|
|
1305
1305
|
const r = s.v, t = (n = (e = s.p) == null ? void 0 : e.body) == null ? void 0 : n.dataStream.replace(/\r\n$/, "");
|
|
1306
1306
|
return N(r) ? N(t) ? null : t : r;
|
|
1307
|
-
},
|
|
1307
|
+
}, A2 = 86400;
|
|
1308
1308
|
function Q0(s, r = !0) {
|
|
1309
1309
|
if (r && s >= 0) {
|
|
1310
1310
|
if (s === 0)
|
|
@@ -1326,10 +1326,10 @@ function Q0(s, r = !0) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
const e1 = (s) => {
|
|
1328
1328
|
let r = s | 0;
|
|
1329
|
-
const t =
|
|
1329
|
+
const t = A2 * (s - r);
|
|
1330
1330
|
let e = Math.floor(t);
|
|
1331
|
-
t - e > 0.9999 && (e += 1, e ===
|
|
1332
|
-
const n = e < 0 ?
|
|
1331
|
+
t - e > 0.9999 && (e += 1, e === A2 && (e = 0, r += 1));
|
|
1332
|
+
const n = e < 0 ? A2 + e : e, [i, a, c] = Q0(s, !0), l = Math.floor(n / 60 / 60) % 60, o = Math.floor(n / 60) % 60, d = Math.floor(n) % 60;
|
|
1333
1333
|
return v(`${i}/${a}/${c} ${l}:${o}:${d}`).valueOf();
|
|
1334
1334
|
}, g2 = (s, r, t) => {
|
|
1335
1335
|
switch (s.type) {
|
|
@@ -1461,7 +1461,7 @@ const e1 = (s) => {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
} else
|
|
1463
1463
|
return s[s.length - 1].color.toRgbString();
|
|
1464
|
-
},
|
|
1464
|
+
}, w2 = (s, r, t) => s.map((e) => {
|
|
1465
1465
|
if (e.startColumn > t || e.startRow > r)
|
|
1466
1466
|
return null;
|
|
1467
1467
|
const n = { ...e };
|
|
@@ -1575,13 +1575,13 @@ for (const s in C2) {
|
|
|
1575
1575
|
const r = C2[s];
|
|
1576
1576
|
Object.freeze(r);
|
|
1577
1577
|
}
|
|
1578
|
-
const C1 = "EMPTY_ICON_TYPE", f1 = "ssheets-conditional-formatting.config",
|
|
1578
|
+
const C1 = "EMPTY_ICON_TYPE", f1 = "ssheets-conditional-formatting.config", k2 = {};
|
|
1579
1579
|
var D1 = Object.getOwnPropertyDescriptor, m1 = (s, r, t, e) => {
|
|
1580
1580
|
for (var n = e > 1 ? void 0 : e ? D1(r, t) : r, i = s.length - 1, a; i >= 0; i--)
|
|
1581
1581
|
(a = s[i]) && (n = a(n) || n);
|
|
1582
1582
|
return n;
|
|
1583
1583
|
}, Y = (s, r) => (t, e) => r(t, e, s);
|
|
1584
|
-
let s2 = class extends
|
|
1584
|
+
let s2 = class extends x2 {
|
|
1585
1585
|
constructor(s, r, t, e, n, i) {
|
|
1586
1586
|
super(), this._conditionalFormattingRuleModel = s, this._injector = r, this._univerInstanceService = t, this._resourceManagerService = e, this._sheetInterceptorService = n, this._commandService = i, this._initCellChange(), this._initSnapshot(), this._initSheetChange();
|
|
1587
1587
|
}
|
|
@@ -1785,7 +1785,7 @@ let s2 = class extends _2 {
|
|
|
1785
1785
|
};
|
|
1786
1786
|
s2 = m1([
|
|
1787
1787
|
Y(0, S(y)),
|
|
1788
|
-
Y(1, S(
|
|
1788
|
+
Y(1, S(M2)),
|
|
1789
1789
|
Y(2, S(q)),
|
|
1790
1790
|
Y(3, S(J2)),
|
|
1791
1791
|
Y(4, S(a0)),
|
|
@@ -1799,13 +1799,13 @@ var v1 = Object.defineProperty, p1 = Object.getOwnPropertyDescriptor, E1 = (s, r
|
|
|
1799
1799
|
for (var n = e > 1 ? void 0 : e ? p1(r, t) : r, i = s.length - 1, a; i >= 0; i--)
|
|
1800
1800
|
(a = s[i]) && (n = a(n) || n);
|
|
1801
1801
|
return n;
|
|
1802
|
-
},
|
|
1802
|
+
}, _2 = (s, r) => (t, e) => r(t, e, s), G2 = (s, r, t) => E1(s, typeof r != "symbol" ? r + "" : r, t);
|
|
1803
1803
|
let f2 = class extends t0 {
|
|
1804
|
-
constructor(s =
|
|
1804
|
+
constructor(s = k2, r, t, e) {
|
|
1805
1805
|
super(), this._config = s, this._injector = r, this._commandService = t, this._configService = e;
|
|
1806
1806
|
const { ...n } = V2(
|
|
1807
1807
|
{},
|
|
1808
|
-
|
|
1808
|
+
k2,
|
|
1809
1809
|
this._config
|
|
1810
1810
|
);
|
|
1811
1811
|
this._configService.setConfig(f1, n), [
|
|
@@ -1817,8 +1817,8 @@ let f2 = class extends t0 {
|
|
|
1817
1817
|
this._injector.add(i);
|
|
1818
1818
|
}), [
|
|
1819
1819
|
L0,
|
|
1820
|
-
B0,
|
|
1821
1820
|
k0,
|
|
1821
|
+
B0,
|
|
1822
1822
|
N0,
|
|
1823
1823
|
T0,
|
|
1824
1824
|
U0,
|
|
@@ -1841,9 +1841,9 @@ G2(f2, "pluginName", P2);
|
|
|
1841
1841
|
G2(f2, "type", D2.UNIVER_SHEET);
|
|
1842
1842
|
f2 = A1([
|
|
1843
1843
|
Q2(p0),
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1844
|
+
_2(1, S(M2)),
|
|
1845
|
+
_2(2, S(W)),
|
|
1846
|
+
_2(3, e0)
|
|
1847
1847
|
], f2);
|
|
1848
1848
|
const _1 = "sheet-conditional-rule-icon", x1 = 35, M1 = 15, y1 = 2, R1 = (s) => {
|
|
1849
1849
|
const { startRow: r, endRow: t, startColumn: e, endColumn: n } = s;
|
|
@@ -1884,11 +1884,11 @@ class I1 extends $2 {
|
|
|
1884
1884
|
return;
|
|
1885
1885
|
c.add(Z);
|
|
1886
1886
|
}
|
|
1887
|
-
const { startX: R, endX: A, startY: I, endY: L } = u || h ? g : d,
|
|
1888
|
-
if (this._width > o2 || this._width >
|
|
1887
|
+
const { startX: R, endX: A, startY: I, endY: L } = u || h ? g : d, v2 = A - R, o2 = L - I;
|
|
1888
|
+
if (this._width > o2 || this._width > v2 + this._paddingRightAndLeft * 2)
|
|
1889
1889
|
return;
|
|
1890
|
-
const
|
|
1891
|
-
t.drawImage(E, R + this._paddingRightAndLeft,
|
|
1890
|
+
const p2 = (o2 - this._width) / 2 + I;
|
|
1891
|
+
t.drawImage(E, R + this._paddingRightAndLeft, p2, this._width, this._width);
|
|
1892
1892
|
}), t.restore();
|
|
1893
1893
|
}
|
|
1894
1894
|
_init() {
|
|
@@ -1923,12 +1923,12 @@ export {
|
|
|
1923
1923
|
w as CFNumberOperator,
|
|
1924
1924
|
M as CFRuleType,
|
|
1925
1925
|
_ as CFSubRuleType,
|
|
1926
|
-
|
|
1927
|
-
|
|
1926
|
+
k as CFTextOperator,
|
|
1927
|
+
B as CFTimePeriodOperator,
|
|
1928
1928
|
b as CFValueType,
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1929
|
+
E2 as CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH,
|
|
1930
|
+
k0 as ClearRangeCfCommand,
|
|
1931
|
+
B0 as ClearWorksheetCfCommand,
|
|
1932
1932
|
z as ConditionalFormattingFormulaService,
|
|
1933
1933
|
I1 as ConditionalFormattingIcon,
|
|
1934
1934
|
y as ConditionalFormattingRuleModel,
|
|
@@ -1961,7 +1961,7 @@ export {
|
|
|
1961
1961
|
L2 as defaultDataBarNativeColor,
|
|
1962
1962
|
b2 as defaultDataBarPositiveColor,
|
|
1963
1963
|
W0 as defaultPlaceholderColor,
|
|
1964
|
-
|
|
1964
|
+
w2 as filterRange,
|
|
1965
1965
|
X as findIndexByAnchor,
|
|
1966
1966
|
Z1 as getCacheStyleMatrix,
|
|
1967
1967
|
P as getCellValue,
|