@univerjs/sheets-conditional-formatting-ui 0.9.2 → 0.9.3-nightly.202507250819

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/index.js CHANGED
@@ -2,12 +2,12 @@ var lr = Object.defineProperty;
2
2
  var cr = (t, e, r) => e in t ? lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var Se = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { CommandType as me, ICommandService as te, IUniverInstanceService as Z, ColorKit as mn, BooleanNumber as le, LocaleService as re, UniverInstanceType as A, Tools as Bt, get as ur, set as dr, createInterceptorKey as fn, InterceptorManager as hr, Inject as P, Disposable as ue, Injector as fe, Rectangle as ye, generateRandomId as vr, ObjectMatrix as Me, Range as be, toDisposable as pn, InterceptorEffectEnum as gr, DependentOn as Cn, IConfigService as yn, Plugin as bn, merge as In, registerDependencies as mr, touchDependencies as kt } from "@univerjs/core";
5
- import { getSheetCommandTarget as Ie, SheetsSelectionsService as je, RemoveSheetMutation as fr, SetWorksheetActiveOperation as Wt, setEndForRange as pr, SetSelectionsOperation as Cr, checkRangesEditablePermission as mt, SheetInterceptorService as qt, ClearSelectionFormatCommand as yr, ClearSelectionAllCommand as br, RangeMergeUtil as Ir, rangeToDiscreteRange as Sr, findAllRectangle as ft, createTopMatrixFromMatrix as pt, SheetPermissionCheckController as _r, WorksheetEditPermission as Sn, WorksheetSetCellStylePermission as _n, RangeProtectionPermissionEditPoint as wn, WorkbookEditablePermission as Rn, RefRangeService as wr, handleDefaultRangeChangeWithEffectRefCommands as Rr, INTERCEPTOR_POINT as Tr, AFTER_CELL_EDIT as xr } from "@univerjs/sheets";
6
- import { ConditionalFormattingRuleModel as Q, CFSubRuleType as F, CFRuleType as L, AddConditionalRuleMutation as se, CFNumberOperator as U, getColorScaleFromValue as Er, iconMap as Ve, DEFAULT_BG_COLOR as Nr, DEFAULT_FONT_COLOR as Mr, defaultDataBarPositiveColor as Ke, defaultDataBarNativeColor as Xe, CFValueType as D, createDefaultValueByValueType as Je, removeUndefinedAttr as Vr, createDefaultValue as Ct, CFTextOperator as H, CFTimePeriodOperator as ve, iconGroup as kr, getOppositeOperator as Ht, compareWithNumber as Fr, EMPTY_ICON_TYPE as Lr, SetCfCommand as Ur, AddCfCommand as Tn, SetConditionalRuleMutation as _e, DeleteConditionalRuleMutation as we, MoveConditionalRuleMutation as xn, ClearWorksheetCfCommand as En, DeleteCfCommand as Yt, MoveCfCommand as Pr, ClearRangeCfCommand as Or, createDefaultRule as xe, setConditionalRuleMutationUndoFactory as $e, DeleteConditionalRuleMutationUndoFactory as Ae, ConditionalFormattingViewModel as it, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, AddConditionalRuleMutationUndoFactory as Nn, isRangesEqual as Dr, ConditionalFormattingService as Mn, DEFAULT_PADDING as $r, DEFAULT_WIDTH as Ar, UniverSheetsConditionalFormattingPlugin as Vn, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH as Hr } from "@univerjs/sheets-conditional-formatting";
5
+ import { getSheetCommandTarget as Ie, SheetsSelectionsService as Be, RemoveSheetMutation as fr, SetWorksheetActiveOperation as Wt, setEndForRange as pr, SetSelectionsOperation as Cr, checkRangesEditablePermission as mt, SheetInterceptorService as qt, ClearSelectionFormatCommand as yr, ClearSelectionAllCommand as br, RangeMergeUtil as Ir, rangeToDiscreteRange as Sr, findAllRectangle as ft, createTopMatrixFromMatrix as pt, SheetPermissionCheckController as _r, WorksheetEditPermission as Sn, WorksheetSetCellStylePermission as _n, RangeProtectionPermissionEditPoint as wn, WorkbookEditablePermission as Rn, RefRangeService as wr, handleDefaultRangeChangeWithEffectRefCommands as Rr, INTERCEPTOR_POINT as Tr, AFTER_CELL_EDIT as xr } from "@univerjs/sheets";
6
+ import { ConditionalFormattingRuleModel as Q, CFSubRuleType as F, CFRuleType as L, AddConditionalRuleMutation as se, CFNumberOperator as U, getColorScaleFromValue as Er, iconMap as Ve, DEFAULT_BG_COLOR as Nr, DEFAULT_FONT_COLOR as Mr, defaultDataBarPositiveColor as Ke, defaultDataBarNativeColor as Xe, CFValueType as D, createDefaultValueByValueType as Je, removeUndefinedAttr as Vr, createDefaultValue as Ct, CFTextOperator as H, CFTimePeriodOperator as ve, iconGroup as kr, getOppositeOperator as Ht, compareWithNumber as Fr, EMPTY_ICON_TYPE as Lr, SetCfCommand as Ur, AddCfCommand as Tn, SetConditionalRuleMutation as _e, DeleteConditionalRuleMutation as we, MoveConditionalRuleMutation as xn, ClearWorksheetCfCommand as En, DeleteCfCommand as Yt, MoveCfCommand as Pr, ClearRangeCfCommand as Or, createDefaultRule as xe, setConditionalRuleMutationUndoFactory as Ae, DeleteConditionalRuleMutationUndoFactory as He, ConditionalFormattingViewModel as it, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, AddConditionalRuleMutationUndoFactory as Nn, isRangesEqual as Dr, ConditionalFormattingService as Mn, DEFAULT_PADDING as $r, DEFAULT_WIDTH as Ar, UniverSheetsConditionalFormattingPlugin as Vn, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH as Hr } from "@univerjs/sheets-conditional-formatting";
7
7
  import { useDependency as q, useSidebarClick as Nt, ILayoutService as jr, useScrollYOverContainer as Br, ISidebarService as kn, useObservable as Wr, ComponentManager as qr, getMenuHiddenObservable as Gr, MenuItemType as Zr, RibbonDataGroup as zr, IMenuManagerService as Yr } from "@univerjs/ui";
8
8
  import { jsx as c, jsxs as k, Fragment as jt } from "react/jsx-runtime";
9
- import { forwardRef as oe, useRef as ge, createElement as de, useMemo as J, useState as N, useEffect as K } from "react";
10
- import { Dropdown as Gt, clsx as X, ColorPicker as Kr, borderClassName as Be, Select as ce, InputNumber as ke, RadioGroup as Xr, Radio as Kt, Checkbox as yt, Input as Jr, Button as Xt, Tooltip as Jt, ReactGridLayout as Qr } from "@univerjs/design";
9
+ import { forwardRef as oe, useRef as ge, createElement as de, useMemo as J, useState as N, useEffect as X } from "react";
10
+ import { Dropdown as Gt, clsx as Y, ColorPicker as Kr, borderClassName as Le, Select as ce, InputNumber as ke, RadioGroup as Xr, Radio as Kt, Checkbox as yt, Input as Jr, Button as Xt, Tooltip as Jt, ReactGridLayout as Qr } from "@univerjs/design";
11
11
  import { serializeRange as Fn, deserializeRangeWithSheet as ei } from "@univerjs/engine-formula";
12
12
  import { FormulaEditor as Mt, RangeSelector as ti } from "@univerjs/sheets-formula-ui";
13
13
  import { useHighlightRange as ni, ISheetClipboardService as ri, COPY_TYPE as Qt, PREDEFINED_HOOK_NAME as Ft, virtualizeDiscreteRanges as Ln, getRepeatRange as ii, SheetSkeletonManagerService as Un, IAutoFillService as si, APPLY_TYPE as Lt, getAutoFillRepeatRange as oi, getCurrentRangeDisable$ as ai, IFormatPainterService as li, FormatPainterStatus as Ut } from "@univerjs/sheets-ui";
@@ -369,7 +369,7 @@ tr.displayName = "UnderlineIcon";
369
369
  const Fe = (t) => {
370
370
  const { color: e, onChange: r, disable: n = !1, Icon: i = Jn, className: s } = t, o = J(() => new mn(e), [e]), u = () => {
371
371
  const a = {
372
- className: X("univer-fill-primary-600", n && s),
372
+ className: Y("univer-fill-primary-600", n && s),
373
373
  extend: { colorChannel1: o.isValid ? e : "" }
374
374
  };
375
375
  return /* @__PURE__ */ c(i, { ...a });
@@ -381,7 +381,7 @@ const Fe = (t) => {
381
381
  children: /* @__PURE__ */ c(
382
382
  "span",
383
383
  {
384
- className: X("univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", s),
384
+ className: Y("univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", s),
385
385
  children: u()
386
386
  }
387
387
  )
@@ -450,7 +450,7 @@ const Fe = (t) => {
450
450
  return /* @__PURE__ */ c(
451
451
  "div",
452
452
  {
453
- className: X(i, {
453
+ className: Y(i, {
454
454
  "univer-font-bold": x,
455
455
  "univer-italic": R
456
456
  }),
@@ -460,7 +460,7 @@ const Fe = (t) => {
460
460
  );
461
461
  }
462
462
  }
463
- }, at = X("univer-mt-5 univer-px-1 univer-py-2 univer-rounded", Be), Ee = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), Pt = (t) => {
463
+ }, at = Y("univer-mt-5 univer-px-1 univer-py-2 univer-rounded", Le), Ee = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), Pt = (t) => {
464
464
  var y;
465
465
  const { type: e, className: r, onChange: n, id: i, value: s } = t, o = q(Z), u = o.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId(), a = (y = o.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : y.getSheetId(), h = J(() => String(s).startsWith("=") ? String(s) : "=", [s]), l = J(() => [D.max, D.min, "none"].includes(e) ? { disabled: !0 } : [D.percent, D.percentile].includes(e) ? {
466
466
  min: 0,
@@ -476,7 +476,7 @@ const Fe = (t) => {
476
476
  Mt,
477
477
  {
478
478
  ref: d,
479
- className: X("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", Be),
479
+ className: Y("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", Le),
480
480
  initValue: h,
481
481
  unitId: u,
482
482
  subUnitId: a,
@@ -531,10 +531,10 @@ const Fe = (t) => {
531
531
  const m = "#2e55ef";
532
532
  return n && ((_ = n.config[n.config.length - 1]) == null ? void 0 : _.color) || m;
533
533
  }), E = J(() => (m) => {
534
- const { minType: _, medianType: j, maxType: Y, minValue: pe, medianValue: Ce, maxValue: Le, minColor: Ue, medianColor: $, maxColor: B } = m, G = [];
535
- return G.push({ color: Ue, value: { type: _, value: pe } }), j !== "none" && G.push({ color: $, value: { type: j, value: Ce } }), G.push({ color: B, value: { type: Y, value: Le } }), { config: G.map((ee, ne) => ({ ...ee, index: ne })), type: L.colorScale };
534
+ const { minType: _, medianType: j, maxType: K, minValue: pe, medianValue: Ce, maxValue: Ue, minColor: Pe, medianColor: $, maxColor: B } = m, G = [];
535
+ return G.push({ color: Pe, value: { type: _, value: pe } }), j !== "none" && G.push({ color: $, value: { type: j, value: Ce } }), G.push({ color: B, value: { type: K, value: Ue } }), { config: G.map((ee, ne) => ({ ...ee, index: ne })), type: L.colorScale };
536
536
  }, []);
537
- K(() => e.intercept(e.getInterceptPoints().submit, {
537
+ X(() => e.intercept(e.getInterceptPoints().submit, {
538
538
  handler() {
539
539
  return E({ minType: a, medianType: l, maxType: v, minValue: y, medianValue: w, maxValue: R, minColor: T, medianColor: b, maxColor: C });
540
540
  }
@@ -774,7 +774,7 @@ const Fe = (t) => {
774
774
  )
775
775
  ] })
776
776
  ] });
777
- }, Pe = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), rn = (t) => {
777
+ }, Oe = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), rn = (t) => {
778
778
  var f;
779
779
  const { onChange: e, className: r, value: n, type: i, id: s, disabled: o = !1 } = t, u = q(Z), a = u.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId(), h = (f = u.getCurrentUnitOfType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), l = ge(null), [d, v] = N(!1);
780
780
  Nt((w) => {
@@ -794,7 +794,7 @@ const Fe = (t) => {
794
794
  Mt,
795
795
  {
796
796
  ref: l,
797
- className: X("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", Be),
797
+ className: Y("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", Le),
798
798
  initValue: w,
799
799
  unitId: a,
800
800
  subUnitId: h,
@@ -822,8 +822,7 @@ const Fe = (t) => {
822
822
  var O;
823
823
  const { interceptorManager: e } = t, r = q(re), n = ((O = t.rule) == null ? void 0 : O.type) === L.dataBar ? t.rule : void 0, [i, s] = N(() => {
824
824
  var _;
825
- const m = "0";
826
- return n ? (_ = n.config) != null && _.isGradient ? "1" : "0" : m;
825
+ return n && (_ = n.config) != null && _.isGradient ? "1" : "0";
827
826
  }), [o, u] = N(() => {
828
827
  var m;
829
828
  return n ? ((m = n.config) == null ? void 0 : m.positiveColor) || Ke : Ke;
@@ -831,11 +830,11 @@ const Fe = (t) => {
831
830
  var m;
832
831
  return n ? ((m = n.config) == null ? void 0 : m.nativeColor) || Xe : Xe;
833
832
  }), l = [
834
- Pe(D.num, r),
835
- Pe(D.percent, r),
836
- Pe(D.percentile, r),
837
- Pe(D.formula, r)
838
- ], d = [Pe(D.min, r), ...l], v = [Pe(D.max, r), ...l], [p, y] = N(() => {
833
+ Oe(D.num, r),
834
+ Oe(D.percent, r),
835
+ Oe(D.percentile, r),
836
+ Oe(D.formula, r)
837
+ ], d = [Oe(D.min, r), ...l], v = [Oe(D.max, r), ...l], [p, y] = N(() => {
839
838
  var _;
840
839
  const m = d[0].value;
841
840
  return n && ((_ = n.config) == null ? void 0 : _.min.type) || m;
@@ -862,7 +861,7 @@ const Fe = (t) => {
862
861
  positiveColor: m.positiveColor || Ke,
863
862
  nativeColor: m.nativeColor || Xe
864
863
  }, type: L.dataBar, isShowValue: m.isShowValue });
865
- K(() => e.intercept(e.getInterceptPoints().submit, {
864
+ X(() => e.intercept(e.getInterceptPoints().submit, {
866
865
  handler() {
867
866
  return S({ isGradient: i, minValue: I, minValueType: p, maxValue: x, maxValueType: f, positiveColor: o, nativeColor: a, isShowValue: g });
868
867
  }
@@ -1131,7 +1130,7 @@ const Fe = (t) => {
1131
1130
  const I = "#e8ecfc";
1132
1131
  return (R = e == null ? void 0 : e.bg) != null && R.rgb ? e.bg.rgb : I;
1133
1132
  });
1134
- K(() => {
1133
+ X(() => {
1135
1134
  const I = {
1136
1135
  bl: i,
1137
1136
  it: o
@@ -1139,11 +1138,11 @@ const Fe = (t) => {
1139
1138
  v !== void 0 && (I.cl = { rgb: v }), y !== void 0 && (I.bg = { rgb: y }), l !== void 0 && (I.st = { s: l }), a !== void 0 && (I.ul = { s: a }), r(Vr(I));
1140
1139
  }, [i, o, a, l, v, y]);
1141
1140
  const w = "univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-px-1";
1142
- return /* @__PURE__ */ k("div", { className: X("univer-my-2.5 univer-flex univer-justify-between", n), children: [
1141
+ return /* @__PURE__ */ k("div", { className: Y("univer-my-2.5 univer-flex univer-justify-between", n), children: [
1143
1142
  /* @__PURE__ */ c(
1144
1143
  "div",
1145
1144
  {
1146
- className: X(w, {
1145
+ className: Y(w, {
1147
1146
  "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(i || le.FALSE)
1148
1147
  }),
1149
1148
  onClick: () => s(ct(i)),
@@ -1153,7 +1152,7 @@ const Fe = (t) => {
1153
1152
  /* @__PURE__ */ c(
1154
1153
  "div",
1155
1154
  {
1156
- className: X(w, {
1155
+ className: Y(w, {
1157
1156
  "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(o || le.FALSE)
1158
1157
  }),
1159
1158
  onClick: () => u(ct(o)),
@@ -1163,7 +1162,7 @@ const Fe = (t) => {
1163
1162
  /* @__PURE__ */ c(
1164
1163
  "div",
1165
1164
  {
1166
- className: X(w, {
1165
+ className: Y(w, {
1167
1166
  "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(a || le.FALSE)
1168
1167
  }),
1169
1168
  onClick: () => h(ct(a)),
@@ -1173,7 +1172,7 @@ const Fe = (t) => {
1173
1172
  /* @__PURE__ */ c(
1174
1173
  "div",
1175
1174
  {
1176
- className: X(w, {
1175
+ className: Y(w, {
1177
1176
  "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(l || le.FALSE)
1178
1177
  }),
1179
1178
  onClick: () => d(ct(l)),
@@ -1191,11 +1190,11 @@ const Fe = (t) => {
1191
1190
  type: L.highlightCell,
1192
1191
  subType: F.formula
1193
1192
  });
1194
- K(() => r.intercept(r.getInterceptPoints().submit, {
1193
+ X(() => r.intercept(r.getInterceptPoints().submit, {
1195
1194
  handler() {
1196
1195
  return R({ style: v });
1197
1196
  }
1198
- }), [v, y, r]), K(() => r.intercept(r.getInterceptPoints().beforeSubmit, {
1197
+ }), [v, y, r]), X(() => r.intercept(r.getInterceptPoints().beforeSubmit, {
1199
1198
  handler: (b, S, C) => w || y.length === 1 || !y.startsWith("=") ? (I(n.t("sheet.cf.errorMessage.formulaError")), !1) : C(b)
1200
1199
  }), [w, y]);
1201
1200
  const x = (g) => {
@@ -1216,7 +1215,7 @@ const Fe = (t) => {
1216
1215
  Mt,
1217
1216
  {
1218
1217
  ref: d,
1219
- className: X("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", Be),
1218
+ className: Y("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", Le),
1220
1219
  errorText: w,
1221
1220
  isFocus: h,
1222
1221
  initValue: y,
@@ -1256,7 +1255,7 @@ const Fe = (t) => {
1256
1255
  t.children
1257
1256
  ] }), W = (t, e) => ({ label: e.t(`sheet.cf.operator.${t}`), value: t }), Ei = (t) => {
1258
1257
  const { type: e, operator: r, onChange: n, value: i, interceptorManager: s } = t, o = q(re), [u, a] = N(() => typeof i == "number" ? i : 0), [h, l] = N(""), [d, v] = N(() => typeof i == "string" ? i : ""), [p, y] = N(""), [f, w] = N(() => Array.isArray(i) ? i[0] === void 0 ? 0 : i[0] : 0), [I, R] = N(""), [x, T] = N(() => Array.isArray(i) ? i[1] === void 0 ? 100 : i[1] : 100), [g, b] = N("");
1259
- switch (K(() => {
1258
+ switch (X(() => {
1260
1259
  switch (e) {
1261
1260
  case F.text: {
1262
1261
  [H.beginsWith, H.endsWith, H.containsText, H.notContainsText, H.equal, H.notEqual].includes(r) && n(d);
@@ -1267,7 +1266,7 @@ const Fe = (t) => {
1267
1266
  break;
1268
1267
  }
1269
1268
  }
1270
- }, [e]), K(() => {
1269
+ }, [e]), X(() => {
1271
1270
  const S = s.intercept(s.getInterceptPoints().beforeSubmit, {
1272
1271
  handler: (C, M, E) => {
1273
1272
  switch (e) {
@@ -1403,10 +1402,9 @@ const Fe = (t) => {
1403
1402
  return i && i.operator || g;
1404
1403
  }), [d, v] = N(() => {
1405
1404
  var S;
1406
- const g = "";
1407
- return i ? (S = i.value) != null ? S : Ct(i.subType, i.operator) : g;
1405
+ return i ? (S = i.value) != null ? S : Ct(i.subType, i.operator) : "";
1408
1406
  }), [p, y] = N({}), f = J(() => (g) => {
1409
- var b, S, C, M, E, V, O, m, _, j, Y, pe, Ce, Le, Ue;
1407
+ var b, S, C, M, E, V, O, m, _, j, K, pe, Ce, Ue, Pe;
1410
1408
  switch (g.subType || s) {
1411
1409
  case F.text: {
1412
1410
  if ([H.beginsWith, H.endsWith, H.containsText, H.notContainsText, H.equal, H.notEqual].includes(h))
@@ -1433,7 +1431,7 @@ const Fe = (t) => {
1433
1431
  type: L.highlightCell,
1434
1432
  subType: (_ = g.subType) != null ? _ : s,
1435
1433
  operator: (j = g.operator) != null ? j : h,
1436
- style: (Y = g.style) != null ? Y : p,
1434
+ style: (K = g.style) != null ? K : p,
1437
1435
  value: (pe = g.value) != null ? pe : d
1438
1436
  };
1439
1437
  break;
@@ -1442,15 +1440,15 @@ const Fe = (t) => {
1442
1440
  return {
1443
1441
  type: L.highlightCell,
1444
1442
  subType: (Ce = g.subType) != null ? Ce : s,
1445
- operator: (Le = g.operator) != null ? Le : h,
1446
- style: (Ue = g.style) != null ? Ue : p
1443
+ operator: (Ue = g.operator) != null ? Ue : h,
1444
+ style: (Pe = g.style) != null ? Pe : p
1447
1445
  };
1448
1446
  }, [s, h, d, p]);
1449
- K(() => e.intercept(e.getInterceptPoints().submit, {
1447
+ X(() => e.intercept(e.getInterceptPoints().submit, {
1450
1448
  handler() {
1451
1449
  return f({});
1452
1450
  }
1453
- }), [f, e]), K(() => {
1451
+ }), [f, e]), X(() => {
1454
1452
  u.some((g) => g.value === s) || o(u[0].value);
1455
1453
  }, [u]);
1456
1454
  const w = (g) => {
@@ -1524,7 +1522,7 @@ const Fe = (t) => {
1524
1522
  /* @__PURE__ */ c(
1525
1523
  ke,
1526
1524
  {
1527
- className: X({
1525
+ className: Y({
1528
1526
  "univer-border-red-500": e
1529
1527
  }),
1530
1528
  value: Number(t.value) || 0,
@@ -1536,6 +1534,7 @@ const Fe = (t) => {
1536
1534
  Mt,
1537
1535
  {
1538
1536
  ref: u,
1537
+ className: Y("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors hover:univer-border-primary-600 dark:!univer-bg-gray-700 dark:!univer-text-white [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent", Le),
1539
1538
  initValue: String(t.value),
1540
1539
  unitId: s,
1541
1540
  subUnitId: o,
@@ -1678,12 +1677,10 @@ const Fe = (t) => {
1678
1677
  {
1679
1678
  className: "univer-font-medium univer-text-gray-600 dark:!univer-text-gray-200",
1680
1679
  children: [
1681
- "(",
1682
1680
  i.t("sheet.cf.iconSet.when"),
1683
1681
  i.t(`sheet.cf.symbol.${Ht(I.operator)}`),
1684
1682
  R,
1685
- f ? "" : ` ${i.t("sheet.cf.iconSet.and")} `,
1686
- ")"
1683
+ f ? "" : ` ${i.t("sheet.cf.iconSet.and")} `
1687
1684
  ]
1688
1685
  }
1689
1686
  )
@@ -1691,7 +1688,7 @@ const Fe = (t) => {
1691
1688
  ]
1692
1689
  }
1693
1690
  ),
1694
- /* @__PURE__ */ k("div", { className: "univer-mt-3 univer-flex univer-items-center univer-justify-between univer-gap-4", children: [
1691
+ /* @__PURE__ */ k("div", { className: "univer-mt-3 univer-grid univer-grid-cols-2 univer-gap-4", children: [
1695
1692
  /* @__PURE__ */ c("div", { className: "univer-flex univer-items-center", children: /* @__PURE__ */ c(
1696
1693
  Gt,
1697
1694
  {
@@ -1699,14 +1696,9 @@ const Fe = (t) => {
1699
1696
  children: /* @__PURE__ */ k(
1700
1697
  "div",
1701
1698
  {
1702
- className: X("univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-between univer-rounded-md univer-bg-white univer-px-4 univer-py-2 univer-text-xs univer-text-gray-600 univer-transition-all hover:univer-border-primary-600 dark:!univer-text-gray-200", Be),
1699
+ className: Y("univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-between univer-rounded-md univer-bg-white univer-px-4 univer-py-2 univer-text-xs univer-text-gray-600 univer-transition-all hover:univer-border-primary-600 dark:!univer-text-gray-200", Le),
1703
1700
  children: [
1704
- y ? /* @__PURE__ */ c("img", { src: y, className: "univer-size-4", draggable: !1 }) : /* @__PURE__ */ c(
1705
- ot,
1706
- {
1707
- className: "univer-size-4"
1708
- }
1709
- ),
1701
+ y ? /* @__PURE__ */ c("img", { src: y, className: "univer-size-4", draggable: !1 }) : /* @__PURE__ */ c(ot, { className: "univer-size-4" }),
1710
1702
  /* @__PURE__ */ c(Zt, {})
1711
1703
  ]
1712
1704
  }
@@ -1716,7 +1708,7 @@ const Fe = (t) => {
1716
1708
  f ? /* @__PURE__ */ k(
1717
1709
  "div",
1718
1710
  {
1719
- className: "univer-mt-0 univer-w-[45%] univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1711
+ className: "univer-mt-0 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1720
1712
  children: [
1721
1713
  i.t("sheet.cf.iconSet.rule"),
1722
1714
  /* @__PURE__ */ k("span", { className: "univer-font-medium", children: [
@@ -1742,7 +1734,7 @@ const Fe = (t) => {
1742
1734
  /* @__PURE__ */ k(
1743
1735
  "div",
1744
1736
  {
1745
- className: "univer-mt-3 univer-flex univer-items-center univer-justify-between univer-gap-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1737
+ className: "univer-mt-3 univer-grid univer-grid-cols-2 univer-gap-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1746
1738
  children: [
1747
1739
  /* @__PURE__ */ c("div", { children: i.t("sheet.cf.iconSet.type") }),
1748
1740
  /* @__PURE__ */ c("div", { children: i.t("sheet.cf.iconSet.value") })
@@ -1752,12 +1744,11 @@ const Fe = (t) => {
1752
1744
  /* @__PURE__ */ k(
1753
1745
  "div",
1754
1746
  {
1755
- className: "univer-mt-3 univer-flex univer-items-center univer-justify-between univer-gap-4",
1747
+ className: "univer-mt-3 univer-grid univer-grid-cols-2 univer-gap-4",
1756
1748
  children: [
1757
1749
  /* @__PURE__ */ c(
1758
1750
  ce,
1759
1751
  {
1760
- className: "univer-flex-shrink-0",
1761
1752
  options: o,
1762
1753
  value: d.value.type,
1763
1754
  onChange: (T) => {
@@ -1765,7 +1756,7 @@ const Fe = (t) => {
1765
1756
  }
1766
1757
  }
1767
1758
  ),
1768
- /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
1759
+ /* @__PURE__ */ c(
1769
1760
  Ni,
1770
1761
  {
1771
1762
  id: v,
@@ -1776,7 +1767,7 @@ const Fe = (t) => {
1776
1767
  u(T, v);
1777
1768
  }
1778
1769
  }
1779
- ) })
1770
+ )
1780
1771
  ]
1781
1772
  }
1782
1773
  )
@@ -1843,7 +1834,7 @@ const Fe = (t) => {
1843
1834
  const b = Ve[g] || [], S = new Array(b.length).fill("").map((C, M, E) => an(g, M, E));
1844
1835
  h(S), s(p(S));
1845
1836
  };
1846
- K(() => {
1837
+ X(() => {
1847
1838
  const g = e.intercept(e.getInterceptPoints().submit, {
1848
1839
  handler() {
1849
1840
  return { type: L.iconSet, isShowValue: l, config: a };
@@ -1852,7 +1843,7 @@ const Fe = (t) => {
1852
1843
  return () => {
1853
1844
  g();
1854
1845
  };
1855
- }, [l, a, e]), K(() => {
1846
+ }, [l, a, e]), X(() => {
1856
1847
  const g = e.intercept(e.getInterceptPoints().beforeSubmit, {
1857
1848
  handler() {
1858
1849
  return Object.keys(i).length === 0;
@@ -1887,7 +1878,7 @@ const Fe = (t) => {
1887
1878
  children: /* @__PURE__ */ k(
1888
1879
  "div",
1889
1880
  {
1890
- className: X("univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-between univer-rounded-md univer-bg-white univer-px-4 univer-py-2 univer-text-xs univer-text-gray-600 univer-transition-all hover:univer-border-primary-600", Be),
1881
+ className: Y("univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-between univer-rounded-md univer-bg-white univer-px-4 univer-py-2 univer-text-xs univer-text-gray-600 univer-transition-all hover:univer-border-primary-600", Le),
1891
1882
  children: [
1892
1883
  v,
1893
1884
  /* @__PURE__ */ c(Zt, {})
@@ -1961,7 +1952,7 @@ const Fe = (t) => {
1961
1952
  if (R === "lessThanAverage")
1962
1953
  return { type: L.highlightCell, subType: F.average, operator: U.lessThan, style: g };
1963
1954
  };
1964
- K(() => r.intercept(r.getInterceptPoints().submit, {
1955
+ X(() => r.intercept(r.getInterceptPoints().submit, {
1965
1956
  handler() {
1966
1957
  return y({ type: o, isPercent: l, value: a, style: v });
1967
1958
  }
@@ -2037,7 +2028,7 @@ const Fe = (t) => {
2037
2028
  return (e = t.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : e.getSheetId();
2038
2029
  }, Oi = (t) => {
2039
2030
  var S, C, M;
2040
- const e = q(re), r = q(te), n = q(Z), i = q(Q), s = q(je), o = ln(n), u = cn(n), [a, h] = N(void 0), l = ge((C = (S = t.rule) == null ? void 0 : S.ranges) != null ? C : []), d = J(() => {
2031
+ const e = q(re), r = q(te), n = q(Z), i = q(Q), s = q(Be), o = ln(n), u = cn(n), [a, h] = N(void 0), l = ge((C = (S = t.rule) == null ? void 0 : S.ranges) != null ? C : []), d = J(() => {
2041
2032
  var V, O, m;
2042
2033
  let E = (V = t.rule) == null ? void 0 : V.ranges;
2043
2034
  return E != null && E.length || (E = (m = (O = s.getCurrentSelections()) == null ? void 0 : O.map((_) => _.range)) != null ? m : []), l.current = E, E != null && E.length ? E.map((_) => {
@@ -2099,7 +2090,7 @@ const Fe = (t) => {
2099
2090
  return on;
2100
2091
  }
2101
2092
  }, [p]);
2102
- K(() => {
2093
+ X(() => {
2103
2094
  const E = r.onCommandExecuted((V) => {
2104
2095
  if (V.id === fr.id) {
2105
2096
  const O = V.params;
@@ -2121,7 +2112,7 @@ const Fe = (t) => {
2121
2112
  const m = n.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet();
2122
2113
  if (!m)
2123
2114
  throw new Error("No active sheet found");
2124
- return l.current.map((Y) => pr(Y, m.getRowCount(), m.getColumnCount())).filter((Y) => !(Number.isNaN(Y.startRow) || Number.isNaN(Y.startColumn)));
2115
+ return l.current.map((K) => pr(K, m.getRowCount(), m.getColumnCount())).filter((K) => !(Number.isNaN(K.startRow) || Number.isNaN(K.startColumn)));
2125
2116
  })();
2126
2117
  if (w.fetchThroughInterceptors(w.getInterceptPoints().beforeSubmit)(!0, null)) {
2127
2118
  const m = w.fetchThroughInterceptors(w.getInterceptPoints().submit)(null, null);
@@ -2129,8 +2120,8 @@ const Fe = (t) => {
2129
2120
  const _ = ln(n), j = cn(n);
2130
2121
  if (!_ || !j)
2131
2122
  throw new Error("No active sheet found");
2132
- let Y = {};
2133
- t.rule && t.rule.cfId ? (Y = { ...t.rule, ranges: V, rule: m }, r.executeCommand(Ur.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel()) : (Y = { cfId: i.createCfId(_, j), ranges: V, rule: m, stopIfTrue: !1 }, r.executeCommand(Tn.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel());
2123
+ let K = {};
2124
+ t.rule && t.rule.cfId ? (K = { ...t.rule, ranges: V, rule: m }, r.executeCommand(Ur.id, { unitId: _, subUnitId: j, rule: K }), t.onCancel()) : (K = { cfId: i.createCfId(_, j), ranges: V, rule: m, stopIfTrue: !1 }, r.executeCommand(Tn.id, { unitId: _, subUnitId: j, rule: K }), t.onCancel());
2134
2125
  }
2135
2126
  }
2136
2127
  }, g = () => {
@@ -2194,7 +2185,7 @@ var Di = Object.getOwnPropertyDescriptor, $i = (t, e, r, n) => {
2194
2185
  (o = t[s]) && (i = o(i) || i);
2195
2186
  return i;
2196
2187
  }, Ai = (t, e) => (r, n) => e(r, n, t);
2197
- let He = class extends ue {
2188
+ let je = class extends ue {
2198
2189
  constructor(e) {
2199
2190
  super();
2200
2191
  Se(this, "_initLocal", () => {
@@ -2231,9 +2222,9 @@ let He = class extends ue {
2231
2222
  return [];
2232
2223
  }
2233
2224
  };
2234
- He = $i([
2225
+ je = $i([
2235
2226
  Ai(0, P(re))
2236
- ], He);
2227
+ ], je);
2237
2228
  const Hi = (t, e) => {
2238
2229
  const r = t.rule;
2239
2230
  switch (r.type) {
@@ -2274,7 +2265,7 @@ const Hi = (t, e) => {
2274
2265
  };
2275
2266
  let un = 0;
2276
2267
  const ji = (t) => {
2277
- const { onClick: e } = t, r = q(Q), n = q(Z), i = q(je), s = q(te), o = q(re), u = q(fe), a = q(kn), h = q(He), l = Wr(() => n.getCurrentTypeOfUnit$(A.UNIVER_SHEET), void 0, void 0, []), d = l.getUnitId(), v = l.getActiveSheet();
2268
+ const { onClick: e } = t, r = q(Q), n = q(Z), i = q(Be), s = q(te), o = q(re), u = q(fe), a = q(kn), h = q(je), l = Wr(() => n.getCurrentTypeOfUnit$(A.UNIVER_SHEET), void 0, void 0, []), d = l.getUnitId(), v = l.getActiveSheet();
2278
2269
  if (!v)
2279
2270
  throw new Error("No active sheet found");
2280
2271
  const p = v.getSheetId(), [y, f] = N([]), [w, I] = N("2"), [R, x] = N(0), [T, g] = N(-1), [b, S] = N(un), C = ge(null), M = [
@@ -2294,14 +2285,14 @@ const ji = (t) => {
2294
2285
  return [...$];
2295
2286
  return [];
2296
2287
  }, [V, O] = N(E);
2297
- ni(y), K(() => {
2288
+ ni(y), X(() => {
2298
2289
  const $ = s.onCommandExecuted((B) => {
2299
2290
  B.id === Wt.id && x(Math.random());
2300
2291
  });
2301
2292
  return () => $.dispose();
2302
- }), K(() => {
2293
+ }), X(() => {
2303
2294
  O(E);
2304
- }, [w, R, d, p]), K(() => {
2295
+ }, [w, R, d, p]), X(() => {
2305
2296
  if (w === "2")
2306
2297
  return;
2307
2298
  const $ = new Ne((B) => {
@@ -2316,12 +2307,12 @@ const ji = (t) => {
2316
2307
  return () => {
2317
2308
  $.unsubscribe();
2318
2309
  };
2319
- }, [n, w, d, p]), K(() => {
2310
+ }, [n, w, d, p]), X(() => {
2320
2311
  const $ = r.$ruleChange.subscribe(() => {
2321
2312
  x(Math.random());
2322
2313
  });
2323
2314
  return () => $.unsubscribe();
2324
- }, [r]), K(() => {
2315
+ }, [r]), X(() => {
2325
2316
  const $ = () => {
2326
2317
  var ee, ne;
2327
2318
  const z = Math.max(0, ((ne = (ee = C.current) == null ? void 0 : ee.getBoundingClientRect().width) != null ? ne : 0) - 8);
@@ -2367,7 +2358,7 @@ const ji = (t) => {
2367
2358
  return Math.min(ar - 1, Math.max(0, or));
2368
2359
  }, Re = V[ne(B.y)].cfId, Te = V[ne(G.y)].cfId;
2369
2360
  Re !== Te && s.executeCommand(Pr.id, { unitId: z, subUnitId: ee, start: { id: Re, type: "self" }, end: { id: Te, type: G.y > B.y ? "after" : "before" } });
2370
- }, Y = () => {
2361
+ }, K = () => {
2371
2362
  t.onCreate();
2372
2363
  }, pe = () => {
2373
2364
  w === "2" ? s.executeCommand(En.id) : w === "1" && V.map((B) => ({ unitId: d, subUnitId: p, cfId: B.cfId })).forEach((B) => {
@@ -2379,7 +2370,7 @@ const ji = (t) => {
2379
2370
  const z = G.ranges;
2380
2371
  return mt(u, $.getUnitId(), B.getSheetId(), z);
2381
2372
  });
2382
- }, [V]), Le = Ce.map(($, B) => ({ i: $.cfId, x: 0, w: 12, y: B, h: 1, isResizable: !1 })), Ue = J(() => {
2373
+ }, [V]), Ue = Ce.map(($, B) => ({ i: $.cfId, x: 0, w: 12, y: B, h: 1, isResizable: !1 })), Pe = J(() => {
2383
2374
  const $ = n.getCurrentUnitOfType(A.UNIVER_SHEET), B = $.getActiveSheet();
2384
2375
  return V.every((G) => {
2385
2376
  const z = G.ranges;
@@ -2407,11 +2398,11 @@ const ji = (t) => {
2407
2398
  "a",
2408
2399
  {
2409
2400
  className: "univer-size-5 univer-cursor-pointer",
2410
- onClick: Y,
2401
+ onClick: K,
2411
2402
  children: /* @__PURE__ */ c(Kn, {})
2412
2403
  }
2413
2404
  ) }),
2414
- V.length && Ue ? /* @__PURE__ */ c(Jt, { title: o.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ c(
2405
+ V.length && Pe ? /* @__PURE__ */ c(Jt, { title: o.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ c(
2415
2406
  "a",
2416
2407
  {
2417
2408
  className: "univer-size-5 univer-cursor-pointer",
@@ -2426,7 +2417,7 @@ const ji = (t) => {
2426
2417
  {
2427
2418
  className: "[&_.react-grid-item]:univer-transition-none [&_.react-grid-placeholder]:univer-rounded [&_.react-grid-placeholder]:!univer-bg-gray-200",
2428
2419
  draggableHandle: ".draggableHandle",
2429
- layout: Le,
2420
+ layout: Ue,
2430
2421
  cols: 12,
2431
2422
  rowHeight: 60,
2432
2423
  width: b,
@@ -2436,7 +2427,7 @@ const ji = (t) => {
2436
2427
  children: Ce == null ? void 0 : Ce.map(($, B) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ k(
2437
2428
  "div",
2438
2429
  {
2439
- className: X("univer-group univer-relative univer-flex univer-items-center univer-justify-between univer-rounded univer-py-2 univer-pl-5 univer-pr-8 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", {
2430
+ className: Y("univer-group univer-relative univer-flex univer-items-center univer-justify-between univer-rounded univer-py-2 univer-pl-5 univer-pr-8 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", {
2440
2431
  "univer-bg-gray-100 dark:!univer-bg-gray-700": T === B
2441
2432
  }),
2442
2433
  onMouseMove: () => {
@@ -2450,7 +2441,7 @@ const ji = (t) => {
2450
2441
  /* @__PURE__ */ c(
2451
2442
  "div",
2452
2443
  {
2453
- className: X("univer-absolute univer-left-0 univer-hidden univer-size-5 univer-cursor-grab univer-items-center univer-justify-center univer-rounded group-hover:univer-flex", "draggableHandle"),
2444
+ className: Y("univer-absolute univer-left-0 univer-hidden univer-size-5 univer-cursor-grab univer-items-center univer-justify-center univer-rounded group-hover:univer-flex", "draggableHandle"),
2454
2445
  onClick: (G) => G.stopPropagation(),
2455
2446
  children: /* @__PURE__ */ c(Qn, {})
2456
2447
  }
@@ -2475,7 +2466,7 @@ const ji = (t) => {
2475
2466
  /* @__PURE__ */ c(
2476
2467
  "div",
2477
2468
  {
2478
- className: X("univer-absolute univer-right-1 univer-hidden univer-size-6 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded hover:univer-bg-gray-200 group-hover:univer-flex", {
2469
+ className: Y("univer-absolute univer-right-1 univer-hidden univer-size-6 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded hover:univer-bg-gray-200 group-hover:univer-flex", {
2479
2470
  "univer-flex univer-items-center univer-justify-center": T === B
2480
2471
  }),
2481
2472
  onClick: (G) => {
@@ -2492,7 +2483,7 @@ const ji = (t) => {
2492
2483
  ] });
2493
2484
  }, Bi = (t) => {
2494
2485
  const [e, r] = N(t.rule), [n, i] = N(!!t.rule);
2495
- return /* @__PURE__ */ c("div", { className: "univer-flex univer-h-full univer-flex-col univer-justify-between", children: n ? /* @__PURE__ */ c(Oi, { onCancel: () => {
2486
+ return /* @__PURE__ */ c("div", { className: "univer-flex univer-h-full univer-flex-col univer-justify-between univer-py-4", children: n ? /* @__PURE__ */ c(Oi, { onCancel: () => {
2496
2487
  i(!1), r(void 0);
2497
2488
  }, rule: e }) : /* @__PURE__ */ c(ji, { onClick: (a) => {
2498
2489
  r(a), i(!0);
@@ -2553,7 +2544,7 @@ const Vt = {
2553
2544
  type: me.OPERATION,
2554
2545
  handler: (t, e) => {
2555
2546
  var u;
2556
- const r = t.get(Qe), n = t.get(je), i = t.get(te), s = ((u = n.getCurrentSelections()) == null ? void 0 : u.map((a) => a.range)) || [];
2547
+ const r = t.get(Qe), n = t.get(Be), i = t.get(te), s = ((u = n.getCurrentSelections()) == null ? void 0 : u.map((a) => a.range)) || [];
2557
2548
  switch (e.value) {
2558
2549
  case 3: {
2559
2550
  r.openPanel({ ...xe(), ranges: s });
@@ -2688,7 +2679,7 @@ bt = Zi([
2688
2679
  Ge(0, P(fe)),
2689
2680
  Ge(1, P(Z)),
2690
2681
  Ge(2, P(qt)),
2691
- Ge(3, P(je)),
2682
+ Ge(3, P(Be)),
2692
2683
  Ge(4, P(Q))
2693
2684
  ], bt);
2694
2685
  function dn(t, e, r, n, i) {
@@ -2703,7 +2694,7 @@ function dn(t, e, r, n, i) {
2703
2694
  subUnitId: i,
2704
2695
  rule: { ...u, ranges: h }
2705
2696
  }
2706
- }, d = $e(t, l.params);
2697
+ }, d = Ae(t, l.params);
2707
2698
  s.push(l), o.push(...d);
2708
2699
  } else {
2709
2700
  const l = {
@@ -2713,7 +2704,7 @@ function dn(t, e, r, n, i) {
2713
2704
  subUnitId: i,
2714
2705
  cfId: u.cfId
2715
2706
  }
2716
- }, d = Ae(t, l.params);
2707
+ }, d = He(t, l.params);
2717
2708
  s.push(l), o.push(...d);
2718
2709
  }
2719
2710
  }), { redos: s, undos: o };
@@ -2832,8 +2823,8 @@ let et = class extends ue {
2832
2823
  if (!v[O]) {
2833
2824
  const m = R(O), _ = new Me();
2834
2825
  v[O] = _, m.ranges.forEach((j) => {
2835
- be.foreach(j, (Y, pe) => {
2836
- _.setValue(Y, pe, 1);
2826
+ be.foreach(j, (K, pe) => {
2827
+ _.setValue(K, pe, 1);
2837
2828
  });
2838
2829
  });
2839
2830
  }
@@ -2850,7 +2841,7 @@ let et = class extends ue {
2850
2841
  subUnitId: o,
2851
2842
  cfId: g
2852
2843
  };
2853
- x.push({ id: we.id, params: C }), T.push(...Ae(this._injector, C));
2844
+ x.push({ id: we.id, params: C }), T.push(...He(this._injector, C));
2854
2845
  }
2855
2846
  if (f.some((C) => C.cfId === g)) {
2856
2847
  const C = R(g), M = {
@@ -2868,7 +2859,7 @@ let et = class extends ue {
2868
2859
  subUnitId: o,
2869
2860
  rule: { ...C, ranges: S }
2870
2861
  };
2871
- x.push({ id: _e.id, params: M }), T.push(...$e(this._injector, M));
2862
+ x.push({ id: _e.id, params: M }), T.push(...Ae(this._injector, M));
2872
2863
  }
2873
2864
  }
2874
2865
  return {
@@ -2926,10 +2917,10 @@ let nt = class extends ue {
2926
2917
  if (Dr(l, h))
2927
2918
  return { redos: [], undos: [] };
2928
2919
  if (l.length) {
2929
- const v = { unitId: n, subUnitId: i, rule: { ...s, ranges: l } }, p = [{ id: _e.id, params: v }], y = $e(this._injector, v);
2920
+ const v = { unitId: n, subUnitId: i, rule: { ...s, ranges: l } }, p = [{ id: _e.id, params: v }], y = Ae(this._injector, v);
2930
2921
  return { redos: p, undos: y };
2931
2922
  } else {
2932
- const v = { unitId: n, subUnitId: i, cfId: s.cfId }, p = [{ id: we.id, params: v }], y = Ae(this._injector, v);
2923
+ const v = { unitId: n, subUnitId: i, cfId: s.cfId }, p = [{ id: we.id, params: v }], y = He(this._injector, v);
2933
2924
  return { redos: p, undos: y };
2934
2925
  }
2935
2926
  }, u = [];
@@ -2973,7 +2964,7 @@ var es = Object.getOwnPropertyDescriptor, ts = (t, e, r, n) => {
2973
2964
  for (var i = n > 1 ? void 0 : n ? es(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2974
2965
  (o = t[s]) && (i = o(i) || i);
2975
2966
  return i;
2976
- }, Oe = (t, e) => (r, n) => e(r, n, t);
2967
+ }, De = (t, e) => (r, n) => e(r, n, t);
2977
2968
  let rt = class extends ue {
2978
2969
  constructor(e, r, n, i, s, o) {
2979
2970
  super();
@@ -3025,12 +3016,12 @@ let rt = class extends ue {
3025
3016
  }
3026
3017
  };
3027
3018
  rt = ts([
3028
- Oe(0, P(qt)),
3029
- Oe(1, P(Mn)),
3030
- Oe(2, P(Z)),
3031
- Oe(3, P(On)),
3032
- Oe(4, P(it)),
3033
- Oe(5, P(Q))
3019
+ De(0, P(qt)),
3020
+ De(1, P(Mn)),
3021
+ De(2, P(Z)),
3022
+ De(3, P(On)),
3023
+ De(4, P(it)),
3024
+ De(5, P(Q))
3034
3025
  ], rt);
3035
3026
  const rr = "sheets-conditional-formatting-ui.config", It = {};
3036
3027
  var ns = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, is = (t, e, r) => e in t ? ns(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, ss = (t, e, r, n) => {
@@ -3046,7 +3037,7 @@ let St = class extends bn {
3046
3037
  It,
3047
3038
  this._config
3048
3039
  );
3049
- i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(rr, s), this._initCommand(), this._injector.add([rt]), this._injector.add([nt]), this._injector.add([et]), this._injector.add([tt]), this._injector.add([He]);
3040
+ i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(rr, s), this._initCommand(), this._injector.add([rt]), this._injector.add([nt]), this._injector.add([et]), this._injector.add([tt]), this._injector.add([je]);
3050
3041
  }
3051
3042
  _initCommand() {
3052
3043
  [
@@ -3178,14 +3169,14 @@ let _t = class extends ue {
3178
3169
  subUnitId: u,
3179
3170
  rule: { ...b, ranges: S }
3180
3171
  };
3181
- h.push({ id: _e.id, params: C }), l.push(...$e(this._injector, C));
3172
+ h.push({ id: _e.id, params: C }), l.push(...Ae(this._injector, C));
3182
3173
  } else {
3183
3174
  const C = {
3184
3175
  unitId: o,
3185
3176
  subUnitId: u,
3186
3177
  cfId: b.cfId
3187
3178
  };
3188
- h.push({ id: we.id, params: C }), l.push(...Ae(this._injector, C));
3179
+ h.push({ id: we.id, params: C }), l.push(...He(this._injector, C));
3189
3180
  }
3190
3181
  }), {
3191
3182
  undos: l,
@@ -3340,7 +3331,7 @@ const vn = [
3340
3331
  value: ie.clearWorkSheetRules
3341
3332
  }
3342
3333
  ], us = (t) => {
3343
- const e = t.get(je), r = t.get(te), n = t.get(Z), i = t.get(Q), s = new Ne((a) => Pn(
3334
+ const e = t.get(Be), r = t.get(te), n = t.get(Z), i = t.get(Q), s = new Ne((a) => Pn(
3344
3335
  e.selectionMoveEnd$,
3345
3336
  e.selectionSet$,
3346
3337
  new Ne((h) => {
@@ -3424,7 +3415,7 @@ var gs = Object.getOwnPropertyDescriptor, ms = (t, e, r, n) => {
3424
3415
  for (var i = n > 1 ? void 0 : n ? gs(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3425
3416
  (o = t[s]) && (i = o(i) || i);
3426
3417
  return i;
3427
- }, De = (t, e) => (r, n) => e(r, n, t);
3418
+ }, $e = (t, e) => (r, n) => e(r, n, t);
3428
3419
  const fs = (t, e) => {
3429
3420
  const r = (l) => l.endRow - l.startRow + 1, n = (l) => l.endColumn - l.startColumn + 1, i = r(e) % r(t), s = n(e) % n(t), o = Math.floor(r(e) / r(t)), u = Math.floor(n(e) / n(t)), a = [], h = {
3430
3421
  startRow: 0,
@@ -3553,14 +3544,14 @@ let Tt = class extends ue {
3553
3544
  subUnitId: o,
3554
3545
  rule: { ...g, ranges: b }
3555
3546
  };
3556
- p.push({ id: _e.id, params: S }), y.push(...$e(this._injector, S));
3547
+ p.push({ id: _e.id, params: S }), y.push(...Ae(this._injector, S));
3557
3548
  } else {
3558
3549
  const S = {
3559
3550
  unitId: s,
3560
3551
  subUnitId: o,
3561
3552
  cfId: g.cfId
3562
3553
  };
3563
- p.push({ id: we.id, params: S }), y.push(...Ae(this._injector, S));
3554
+ p.push({ id: we.id, params: S }), y.push(...He(this._injector, S));
3564
3555
  }
3565
3556
  else if (b.length) {
3566
3557
  const S = this._conditionalFormattingRuleModel.getRule(h, l, T);
@@ -3588,14 +3579,14 @@ let Tt = class extends ue {
3588
3579
  subUnitId: l,
3589
3580
  rule: { ...g, ranges: b }
3590
3581
  };
3591
- p.push({ id: _e.id, params: S }), y.push(...$e(this._injector, S));
3582
+ p.push({ id: _e.id, params: S }), y.push(...Ae(this._injector, S));
3592
3583
  } else {
3593
3584
  const S = {
3594
3585
  unitId: h,
3595
3586
  subUnitId: l,
3596
3587
  cfId: g.cfId
3597
3588
  };
3598
- p.push({ id: we.id, params: S }), y.push(...Ae(this._injector, S));
3589
+ p.push({ id: we.id, params: S }), y.push(...He(this._injector, S));
3599
3590
  }
3600
3591
  }
3601
3592
  }), {
@@ -3628,12 +3619,12 @@ let Tt = class extends ue {
3628
3619
  }
3629
3620
  };
3630
3621
  Tt = ms([
3631
- De(0, P(fe)),
3632
- De(1, P(Z)),
3633
- De(2, P(li)),
3634
- De(3, P(je)),
3635
- De(4, P(Q)),
3636
- De(5, P(it))
3622
+ $e(0, P(fe)),
3623
+ $e(1, P(Z)),
3624
+ $e(2, P(li)),
3625
+ $e(3, P(Be)),
3626
+ $e(4, P(Q)),
3627
+ $e(5, P(it))
3637
3628
  ], Tt);
3638
3629
  var ps = Object.getOwnPropertyDescriptor, Cs = (t, e, r, n) => {
3639
3630
  for (var i = n > 1 ? void 0 : n ? ps(e, r) : e, s = t.length - 1, o; s >= 0; s--)
@@ -3691,7 +3682,7 @@ let Et = class extends bn {
3691
3682
  [tt],
3692
3683
  [Qe],
3693
3684
  [Rt],
3694
- [He],
3685
+ [je],
3695
3686
  [wt],
3696
3687
  [bt],
3697
3688
  [Tt],
@@ -3712,7 +3703,7 @@ let Et = class extends bn {
3712
3703
  [bt],
3713
3704
  [et],
3714
3705
  [wt],
3715
- [He],
3706
+ [je],
3716
3707
  [Tt],
3717
3708
  [tt],
3718
3709
  [nt],