@univerjs/sheets-conditional-formatting 0.4.0-alpha.0 → 0.4.0-alpha.1
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 +285 -2
- package/lib/umd/index.js +1 -1
- package/package.json +7 -12
package/lib/es/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { bufferTime, filter, map } from "rxjs/operators";
|
|
|
8
8
|
import { SheetInterceptorService, RemoveSheetCommand, ReorderRangeMutation, MoveRangeMutation, MoveColsMutation, MoveRowsMutation, InsertRowMutation, RemoveRowMutation, RemoveColMutation, InsertColMutation, SetRangeValuesMutation } from "@univerjs/sheets";
|
|
9
9
|
import { isObject, SpreadsheetExtensionRegistry, SheetExtension, FIX_ONE_PIXEL_BLUR_OFFSET } from "@univerjs/engine-render";
|
|
10
10
|
import { IActiveDirtyManagerService, SetFormulaCalculationResultMutation, SetOtherFormulaMutation, RemoveOtherFormulaMutation, BooleanValue, LexerTreeBuilder, sequenceNodeType, deserializeRangeWithSheet, serializeRange, generateStringWithSequence, ERROR_TYPE_SET } from "@univerjs/engine-formula";
|
|
11
|
-
import dayjs from "dayjs";
|
|
12
11
|
const SHEET_CONDITIONAL_FORMATTING_PLUGIN = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
|
|
13
12
|
var CFTextOperator = /* @__PURE__ */ ((CFTextOperator2) => (CFTextOperator2.beginsWith = "beginsWith", CFTextOperator2.endsWith = "endsWith", CFTextOperator2.containsText = "containsText", CFTextOperator2.notContainsText = "notContainsText", CFTextOperator2.equal = "equal", CFTextOperator2.notEqual = "notEqual", CFTextOperator2.containsBlanks = "containsBlanks", CFTextOperator2.notContainsBlanks = "notContainsBlanks", CFTextOperator2.containsErrors = "containsErrors", CFTextOperator2.notContainsErrors = "notContainsErrors", CFTextOperator2))(CFTextOperator || {}), CFTimePeriodOperator = /* @__PURE__ */ ((CFTimePeriodOperator2) => (CFTimePeriodOperator2.today = "today", CFTimePeriodOperator2.yesterday = "yesterday", CFTimePeriodOperator2.tomorrow = "tomorrow", CFTimePeriodOperator2.last7Days = "last7Days", CFTimePeriodOperator2.thisMonth = "thisMonth", CFTimePeriodOperator2.lastMonth = "lastMonth", CFTimePeriodOperator2.nextMonth = "nextMonth", CFTimePeriodOperator2.thisWeek = "thisWeek", CFTimePeriodOperator2.lastWeek = "lastWeek", CFTimePeriodOperator2.nextWeek = "nextWeek", CFTimePeriodOperator2))(CFTimePeriodOperator || {}), CFNumberOperator = /* @__PURE__ */ ((CFNumberOperator2) => (CFNumberOperator2.greaterThan = "greaterThan", CFNumberOperator2.greaterThanOrEqual = "greaterThanOrEqual", CFNumberOperator2.lessThan = "lessThan", CFNumberOperator2.lessThanOrEqual = "lessThanOrEqual", CFNumberOperator2.notBetween = "notBetween", CFNumberOperator2.between = "between", CFNumberOperator2.equal = "equal", CFNumberOperator2.notEqual = "notEqual", CFNumberOperator2))(CFNumberOperator || {}), CFRuleType = /* @__PURE__ */ ((CFRuleType2) => (CFRuleType2.highlightCell = "highlightCell", CFRuleType2.dataBar = "dataBar", CFRuleType2.colorScale = "colorScale", CFRuleType2.iconSet = "iconSet", CFRuleType2))(CFRuleType || {}), CFSubRuleType = /* @__PURE__ */ ((CFSubRuleType2) => (CFSubRuleType2.uniqueValues = "uniqueValues", CFSubRuleType2.duplicateValues = "duplicateValues", CFSubRuleType2.rank = "rank", CFSubRuleType2.text = "text", CFSubRuleType2.timePeriod = "timePeriod", CFSubRuleType2.number = "number", CFSubRuleType2.average = "average", CFSubRuleType2.formula = "formula", CFSubRuleType2))(CFSubRuleType || {}), CFValueType = /* @__PURE__ */ ((CFValueType2) => (CFValueType2.num = "num", CFValueType2.min = "min", CFValueType2.max = "max", CFValueType2.percent = "percent", CFValueType2.percentile = "percentile", CFValueType2.formula = "formula", CFValueType2))(CFValueType || {});
|
|
14
13
|
const DEFAULT_BG_COLOR = "#fff", DEFAULT_FONT_COLOR = "#000000", createDefaultRule = /* @__PURE__ */ __name(() => ({
|
|
@@ -1080,7 +1079,291 @@ const dataBarCellCalculateUnit = {
|
|
|
1080
1079
|
}
|
|
1081
1080
|
return computeResult;
|
|
1082
1081
|
}, "handle")
|
|
1083
|
-
}
|
|
1082
|
+
};
|
|
1083
|
+
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1084
|
+
function getDefaultExportFromCjs(x) {
|
|
1085
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
|
|
1086
|
+
}
|
|
1087
|
+
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
|
1088
|
+
var dayjs_min = { exports: {} };
|
|
1089
|
+
(function(module, exports) {
|
|
1090
|
+
(function(t, e) {
|
|
1091
|
+
module.exports = e();
|
|
1092
|
+
})(commonjsGlobal, function() {
|
|
1093
|
+
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ __name(function(t2) {
|
|
1094
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
1095
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
1096
|
+
}, "ordinal") }, m = /* @__PURE__ */ __name(function(t2, e2, n2) {
|
|
1097
|
+
var r2 = String(t2);
|
|
1098
|
+
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
1099
|
+
}, "m"), v = { s: m, z: /* @__PURE__ */ __name(function(t2) {
|
|
1100
|
+
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
1101
|
+
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
1102
|
+
}, "z"), m: /* @__PURE__ */ __name(function t2(e2, n2) {
|
|
1103
|
+
if (e2.date() < n2.date()) return -t2(n2, e2);
|
|
1104
|
+
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
|
1105
|
+
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
1106
|
+
}, "t"), a: /* @__PURE__ */ __name(function(t2) {
|
|
1107
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
1108
|
+
}, "a"), p: /* @__PURE__ */ __name(function(t2) {
|
|
1109
|
+
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
1110
|
+
}, "p"), u: /* @__PURE__ */ __name(function(t2) {
|
|
1111
|
+
return t2 === void 0;
|
|
1112
|
+
}, "u") }, g = "en", D = {};
|
|
1113
|
+
D[g] = M;
|
|
1114
|
+
var p = "$isDayjsObject", S = /* @__PURE__ */ __name(function(t2) {
|
|
1115
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
1116
|
+
}, "S"), w = /* @__PURE__ */ __name(function t2(e2, n2, r2) {
|
|
1117
|
+
var i2;
|
|
1118
|
+
if (!e2) return g;
|
|
1119
|
+
if (typeof e2 == "string") {
|
|
1120
|
+
var s2 = e2.toLowerCase();
|
|
1121
|
+
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
1122
|
+
var u2 = e2.split("-");
|
|
1123
|
+
if (!i2 && u2.length > 1) return t2(u2[0]);
|
|
1124
|
+
} else {
|
|
1125
|
+
var a2 = e2.name;
|
|
1126
|
+
D[a2] = e2, i2 = a2;
|
|
1127
|
+
}
|
|
1128
|
+
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
1129
|
+
}, "t"), O = /* @__PURE__ */ __name(function(t2, e2) {
|
|
1130
|
+
if (S(t2)) return t2.clone();
|
|
1131
|
+
var n2 = typeof e2 == "object" ? e2 : {};
|
|
1132
|
+
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
1133
|
+
}, "O"), b = v;
|
|
1134
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
1135
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
1136
|
+
};
|
|
1137
|
+
var _ = function() {
|
|
1138
|
+
function M2(t2) {
|
|
1139
|
+
this.$L = w(t2.locale, null, !0), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = !0;
|
|
1140
|
+
}
|
|
1141
|
+
__name(M2, "M");
|
|
1142
|
+
var m2 = M2.prototype;
|
|
1143
|
+
return m2.parse = function(t2) {
|
|
1144
|
+
this.$d = function(t3) {
|
|
1145
|
+
var e2 = t3.date, n2 = t3.utc;
|
|
1146
|
+
if (e2 === null) return /* @__PURE__ */ new Date(NaN);
|
|
1147
|
+
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
1148
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
1149
|
+
if (typeof e2 == "string" && !/Z$/i.test(e2)) {
|
|
1150
|
+
var r2 = e2.match($);
|
|
1151
|
+
if (r2) {
|
|
1152
|
+
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
1153
|
+
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
return new Date(e2);
|
|
1157
|
+
}(t2), this.init();
|
|
1158
|
+
}, m2.init = function() {
|
|
1159
|
+
var t2 = this.$d;
|
|
1160
|
+
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
1161
|
+
}, m2.$utils = function() {
|
|
1162
|
+
return b;
|
|
1163
|
+
}, m2.isValid = function() {
|
|
1164
|
+
return this.$d.toString() !== l;
|
|
1165
|
+
}, m2.isSame = function(t2, e2) {
|
|
1166
|
+
var n2 = O(t2);
|
|
1167
|
+
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
1168
|
+
}, m2.isAfter = function(t2, e2) {
|
|
1169
|
+
return O(t2) < this.startOf(e2);
|
|
1170
|
+
}, m2.isBefore = function(t2, e2) {
|
|
1171
|
+
return this.endOf(e2) < O(t2);
|
|
1172
|
+
}, m2.$g = function(t2, e2, n2) {
|
|
1173
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
1174
|
+
}, m2.unix = function() {
|
|
1175
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
1176
|
+
}, m2.valueOf = function() {
|
|
1177
|
+
return this.$d.getTime();
|
|
1178
|
+
}, m2.startOf = function(t2, e2) {
|
|
1179
|
+
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = /* @__PURE__ */ __name(function(t3, e3) {
|
|
1180
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
1181
|
+
return r2 ? i2 : i2.endOf(a);
|
|
1182
|
+
}, "l"), $2 = /* @__PURE__ */ __name(function(t3, e3) {
|
|
1183
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
1184
|
+
}, "$"), y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
1185
|
+
switch (f2) {
|
|
1186
|
+
case h:
|
|
1187
|
+
return r2 ? l2(1, 0) : l2(31, 11);
|
|
1188
|
+
case c:
|
|
1189
|
+
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
1190
|
+
case o:
|
|
1191
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
1192
|
+
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
1193
|
+
case a:
|
|
1194
|
+
case d:
|
|
1195
|
+
return $2(v2 + "Hours", 0);
|
|
1196
|
+
case u:
|
|
1197
|
+
return $2(v2 + "Minutes", 1);
|
|
1198
|
+
case s:
|
|
1199
|
+
return $2(v2 + "Seconds", 2);
|
|
1200
|
+
case i:
|
|
1201
|
+
return $2(v2 + "Milliseconds", 3);
|
|
1202
|
+
default:
|
|
1203
|
+
return this.clone();
|
|
1204
|
+
}
|
|
1205
|
+
}, m2.endOf = function(t2) {
|
|
1206
|
+
return this.startOf(t2, !1);
|
|
1207
|
+
}, m2.$set = function(t2, e2) {
|
|
1208
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
1209
|
+
if (o2 === c || o2 === h) {
|
|
1210
|
+
var y2 = this.clone().set(d, 1);
|
|
1211
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
1212
|
+
} else l2 && this.$d[l2]($2);
|
|
1213
|
+
return this.init(), this;
|
|
1214
|
+
}, m2.set = function(t2, e2) {
|
|
1215
|
+
return this.clone().$set(t2, e2);
|
|
1216
|
+
}, m2.get = function(t2) {
|
|
1217
|
+
return this[b.p(t2)]();
|
|
1218
|
+
}, m2.add = function(r2, f2) {
|
|
1219
|
+
var d2, l2 = this;
|
|
1220
|
+
r2 = Number(r2);
|
|
1221
|
+
var $2 = b.p(f2), y2 = /* @__PURE__ */ __name(function(t2) {
|
|
1222
|
+
var e2 = O(l2);
|
|
1223
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
1224
|
+
}, "y");
|
|
1225
|
+
if ($2 === c) return this.set(c, this.$M + r2);
|
|
1226
|
+
if ($2 === h) return this.set(h, this.$y + r2);
|
|
1227
|
+
if ($2 === a) return y2(1);
|
|
1228
|
+
if ($2 === o) return y2(7);
|
|
1229
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
1230
|
+
return b.w(m3, this);
|
|
1231
|
+
}, m2.subtract = function(t2, e2) {
|
|
1232
|
+
return this.add(-1 * t2, e2);
|
|
1233
|
+
}, m2.format = function(t2) {
|
|
1234
|
+
var e2 = this, n2 = this.$locale();
|
|
1235
|
+
if (!this.isValid()) return n2.invalidDate || l;
|
|
1236
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = /* @__PURE__ */ __name(function(t3, n3, i3, s3) {
|
|
1237
|
+
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
1238
|
+
}, "h"), d2 = /* @__PURE__ */ __name(function(t3) {
|
|
1239
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
1240
|
+
}, "d"), $2 = f2 || function(t3, e3, n3) {
|
|
1241
|
+
var r3 = t3 < 12 ? "AM" : "PM";
|
|
1242
|
+
return n3 ? r3.toLowerCase() : r3;
|
|
1243
|
+
};
|
|
1244
|
+
return r2.replace(y, function(t3, r3) {
|
|
1245
|
+
return r3 || function(t4) {
|
|
1246
|
+
switch (t4) {
|
|
1247
|
+
case "YY":
|
|
1248
|
+
return String(e2.$y).slice(-2);
|
|
1249
|
+
case "YYYY":
|
|
1250
|
+
return b.s(e2.$y, 4, "0");
|
|
1251
|
+
case "M":
|
|
1252
|
+
return a2 + 1;
|
|
1253
|
+
case "MM":
|
|
1254
|
+
return b.s(a2 + 1, 2, "0");
|
|
1255
|
+
case "MMM":
|
|
1256
|
+
return h2(n2.monthsShort, a2, c2, 3);
|
|
1257
|
+
case "MMMM":
|
|
1258
|
+
return h2(c2, a2);
|
|
1259
|
+
case "D":
|
|
1260
|
+
return e2.$D;
|
|
1261
|
+
case "DD":
|
|
1262
|
+
return b.s(e2.$D, 2, "0");
|
|
1263
|
+
case "d":
|
|
1264
|
+
return String(e2.$W);
|
|
1265
|
+
case "dd":
|
|
1266
|
+
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
1267
|
+
case "ddd":
|
|
1268
|
+
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
1269
|
+
case "dddd":
|
|
1270
|
+
return o2[e2.$W];
|
|
1271
|
+
case "H":
|
|
1272
|
+
return String(s2);
|
|
1273
|
+
case "HH":
|
|
1274
|
+
return b.s(s2, 2, "0");
|
|
1275
|
+
case "h":
|
|
1276
|
+
return d2(1);
|
|
1277
|
+
case "hh":
|
|
1278
|
+
return d2(2);
|
|
1279
|
+
case "a":
|
|
1280
|
+
return $2(s2, u2, !0);
|
|
1281
|
+
case "A":
|
|
1282
|
+
return $2(s2, u2, !1);
|
|
1283
|
+
case "m":
|
|
1284
|
+
return String(u2);
|
|
1285
|
+
case "mm":
|
|
1286
|
+
return b.s(u2, 2, "0");
|
|
1287
|
+
case "s":
|
|
1288
|
+
return String(e2.$s);
|
|
1289
|
+
case "ss":
|
|
1290
|
+
return b.s(e2.$s, 2, "0");
|
|
1291
|
+
case "SSS":
|
|
1292
|
+
return b.s(e2.$ms, 3, "0");
|
|
1293
|
+
case "Z":
|
|
1294
|
+
return i2;
|
|
1295
|
+
}
|
|
1296
|
+
return null;
|
|
1297
|
+
}(t3) || i2.replace(":", "");
|
|
1298
|
+
});
|
|
1299
|
+
}, m2.utcOffset = function() {
|
|
1300
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1301
|
+
}, m2.diff = function(r2, d2, l2) {
|
|
1302
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = /* @__PURE__ */ __name(function() {
|
|
1303
|
+
return b.m(y2, m3);
|
|
1304
|
+
}, "D");
|
|
1305
|
+
switch (M3) {
|
|
1306
|
+
case h:
|
|
1307
|
+
$2 = D2() / 12;
|
|
1308
|
+
break;
|
|
1309
|
+
case c:
|
|
1310
|
+
$2 = D2();
|
|
1311
|
+
break;
|
|
1312
|
+
case f:
|
|
1313
|
+
$2 = D2() / 3;
|
|
1314
|
+
break;
|
|
1315
|
+
case o:
|
|
1316
|
+
$2 = (g2 - v2) / 6048e5;
|
|
1317
|
+
break;
|
|
1318
|
+
case a:
|
|
1319
|
+
$2 = (g2 - v2) / 864e5;
|
|
1320
|
+
break;
|
|
1321
|
+
case u:
|
|
1322
|
+
$2 = g2 / n;
|
|
1323
|
+
break;
|
|
1324
|
+
case s:
|
|
1325
|
+
$2 = g2 / e;
|
|
1326
|
+
break;
|
|
1327
|
+
case i:
|
|
1328
|
+
$2 = g2 / t;
|
|
1329
|
+
break;
|
|
1330
|
+
default:
|
|
1331
|
+
$2 = g2;
|
|
1332
|
+
}
|
|
1333
|
+
return l2 ? $2 : b.a($2);
|
|
1334
|
+
}, m2.daysInMonth = function() {
|
|
1335
|
+
return this.endOf(c).$D;
|
|
1336
|
+
}, m2.$locale = function() {
|
|
1337
|
+
return D[this.$L];
|
|
1338
|
+
}, m2.locale = function(t2, e2) {
|
|
1339
|
+
if (!t2) return this.$L;
|
|
1340
|
+
var n2 = this.clone(), r2 = w(t2, e2, !0);
|
|
1341
|
+
return r2 && (n2.$L = r2), n2;
|
|
1342
|
+
}, m2.clone = function() {
|
|
1343
|
+
return b.w(this.$d, this);
|
|
1344
|
+
}, m2.toDate = function() {
|
|
1345
|
+
return new Date(this.valueOf());
|
|
1346
|
+
}, m2.toJSON = function() {
|
|
1347
|
+
return this.isValid() ? this.toISOString() : null;
|
|
1348
|
+
}, m2.toISOString = function() {
|
|
1349
|
+
return this.$d.toISOString();
|
|
1350
|
+
}, m2.toString = function() {
|
|
1351
|
+
return this.$d.toUTCString();
|
|
1352
|
+
}, M2;
|
|
1353
|
+
}(), k = _.prototype;
|
|
1354
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
1355
|
+
k[t2[1]] = function(e2) {
|
|
1356
|
+
return this.$g(e2, t2[0], t2[1]);
|
|
1357
|
+
};
|
|
1358
|
+
}), O.extend = function(t2, e2) {
|
|
1359
|
+
return t2.$i || (t2(e2, _, O), t2.$i = !0), O;
|
|
1360
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
1361
|
+
return O(1e3 * t2);
|
|
1362
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
1363
|
+
});
|
|
1364
|
+
})(dayjs_min);
|
|
1365
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
1366
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports), highlightCellCalculateUnit = {
|
|
1084
1367
|
type: CFRuleType.highlightCell,
|
|
1085
1368
|
handle: /* @__PURE__ */ __name(async (rule, context) => {
|
|
1086
1369
|
const ruleConfig = rule.rule, { worksheet } = context, ranges = filterRange(rule.ranges, worksheet.getMaxRows() - 1, worksheet.getMaxColumns() - 1), cache = (/* @__PURE__ */ __name(() => {
|