@univerjs/sheets-conditional-formatting-ui 0.8.2 → 0.8.3-nightly.202507010644

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/es/index.js CHANGED
@@ -2,8 +2,8 @@ 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 { ConditionalFormattingRuleModel as Q, CFSubRuleType as F, CFRuleType as L, AddConditionalRuleMutation as se, CFNumberOperator as U, getColorScaleFromValue as fr, iconMap as Ve, DEFAULT_BG_COLOR as pr, DEFAULT_FONT_COLOR as Cr, defaultDataBarPositiveColor as Ke, defaultDataBarNativeColor as Xe, CFValueType as D, createDefaultValueByValueType as Je, removeUndefinedAttr as yr, createDefaultValue as mt, CFTextOperator as H, CFTimePeriodOperator as ve, iconGroup as br, getOppositeOperator as Ht, compareWithNumber as Ir, EMPTY_ICON_TYPE as Sr, SetCfCommand as _r, AddCfCommand as Sn, SetConditionalRuleMutation as _e, DeleteConditionalRuleMutation as we, MoveConditionalRuleMutation as _n, ClearWorksheetCfCommand as wn, DeleteCfCommand as Yt, MoveCfCommand as wr, ClearRangeCfCommand as Rr, createDefaultRule as xe, ConditionalFormattingViewModel as it, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, DeleteConditionalRuleMutationUndoFactory as $e, AddConditionalRuleMutationUndoFactory as Rn, setConditionalRuleMutationUndoFactory as Ae, isRangesEqual as Tr, ConditionalFormattingService as Tn, DEFAULT_PADDING as xr, DEFAULT_WIDTH as Er, UniverSheetsConditionalFormattingPlugin as xn, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH as Nr } from "@univerjs/sheets-conditional-formatting";
6
- import { getSheetCommandTarget as Ie, SheetsSelectionsService as je, RemoveSheetMutation as Mr, SetWorksheetActiveOperation as Wt, setEndForRange as Vr, SetSelectionsOperation as kr, checkRangesEditablePermission as ft, rangeToDiscreteRange as Fr, findAllRectangle as pt, createTopMatrixFromMatrix as Ct, SheetPermissionCheckController as Lr, WorksheetEditPermission as En, WorksheetSetCellStylePermission as Nn, RangeProtectionPermissionEditPoint as Mn, WorkbookEditablePermission as Vn, RefRangeService as Ur, handleDefaultRangeChangeWithEffectRefCommands as Pr, SheetInterceptorService as qt, INTERCEPTOR_POINT as Or, ClearSelectionFormatCommand as Dr, ClearSelectionAllCommand as $r, RangeMergeUtil as Ar, AFTER_CELL_EDIT as Hr } from "@univerjs/sheets";
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";
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
9
  import { forwardRef as oe, useRef as ge, createElement as de, useMemo as J, useState as N, useEffect as K } from "react";
@@ -394,7 +394,7 @@ const Fe = (t) => {
394
394
  const r = J(() => {
395
395
  if (e.type === L.colorScale) {
396
396
  const l = e.config.map((p, y) => ({ color: new mn(p.color), value: y })), d = l.length - 1;
397
- return new Array(5).fill("").map((p, y, f) => y * d / (f.length - 1)).map((p) => fr(l, p));
397
+ return new Array(5).fill("").map((p, y, f) => y * d / (f.length - 1)).map((p) => Er(l, p));
398
398
  }
399
399
  return null;
400
400
  }, [e]), n = J(() => {
@@ -442,7 +442,7 @@ const Fe = (t) => {
442
442
  case L.iconSet:
443
443
  return n && /* @__PURE__ */ c("div", { className: i, children: n.map((l, d) => l ? /* @__PURE__ */ c("img", { className: "univer-h-full", src: l, draggable: !1 }, d) : /* @__PURE__ */ c(ot, {}, d)) });
444
444
  case L.highlightCell: {
445
- const { ul: l, st: d, it: v, bl: p, bg: y, cl: f } = e.style, w = (l == null ? void 0 : l.s) === le.TRUE, I = (d == null ? void 0 : d.s) === le.TRUE, R = v === le.TRUE, x = p === le.TRUE, T = (u = y == null ? void 0 : y.rgb) != null ? u : pr, g = (a = f == null ? void 0 : f.rgb) != null ? a : Cr, b = {
445
+ const { ul: l, st: d, it: v, bl: p, bg: y, cl: f } = e.style, w = (l == null ? void 0 : l.s) === le.TRUE, I = (d == null ? void 0 : d.s) === le.TRUE, R = v === le.TRUE, x = p === le.TRUE, T = (u = y == null ? void 0 : y.rgb) != null ? u : Nr, g = (a = f == null ? void 0 : f.rgb) != null ? a : Mr, b = {
446
446
  textDecoration: (h = `${w ? "underline" : ""} ${I ? "line-through" : ""}`.replace(/^ /, "")) != null ? h : void 0,
447
447
  backgroundColor: T,
448
448
  color: g
@@ -1136,7 +1136,7 @@ const Fe = (t) => {
1136
1136
  bl: i,
1137
1137
  it: o
1138
1138
  };
1139
- 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(yr(I));
1139
+ 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
1140
  }, [i, o, a, l, v, y]);
1141
1141
  const w = "univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-px-1";
1142
1142
  return /* @__PURE__ */ k("div", { className: X("univer-my-2.5 univer-flex univer-justify-between", n), children: [
@@ -1404,7 +1404,7 @@ const Fe = (t) => {
1404
1404
  }), [d, v] = N(() => {
1405
1405
  var S;
1406
1406
  const g = "";
1407
- return i ? (S = i.value) != null ? S : mt(i.subType, i.operator) : g;
1407
+ return i ? (S = i.value) != null ? S : Ct(i.subType, i.operator) : g;
1408
1408
  }), [p, y] = N({}), f = J(() => (g) => {
1409
1409
  var b, S, C, M, E, V, O, m, _, j, Y, pe, Ce, Le, Ue;
1410
1410
  switch (g.subType || s) {
@@ -1455,7 +1455,7 @@ const Fe = (t) => {
1455
1455
  }, [u]);
1456
1456
  const w = (g) => {
1457
1457
  const b = g, S = sn(b, n), C = S && S[0].value;
1458
- o(b), l(C), C && v(mt(b, C)), r(f({ subType: b, operator: C }));
1458
+ o(b), l(C), C && v(Ct(b, C)), r(f({ subType: b, operator: C }));
1459
1459
  }, I = (g) => {
1460
1460
  const b = g;
1461
1461
  l(b), r(f({ operator: b }));
@@ -1555,7 +1555,7 @@ const Fe = (t) => {
1555
1555
  const { onClick: r } = t, n = q(re), i = (s) => {
1556
1556
  r(s);
1557
1557
  };
1558
- return /* @__PURE__ */ c("div", { ref: e, className: "univer-w-80", children: br.map((s, o) => /* @__PURE__ */ k("div", { className: "univer-mb-3", children: [
1558
+ return /* @__PURE__ */ c("div", { ref: e, className: "univer-w-80", children: kr.map((s, o) => /* @__PURE__ */ k("div", { className: "univer-mb-3", children: [
1559
1559
  /* @__PURE__ */ c("div", { className: "univer-mb-1 univer-text-sm", children: n.t(s.title) }),
1560
1560
  /* @__PURE__ */ c("div", { className: "univer-flex univer-flex-wrap", children: s.group.map((u) => /* @__PURE__ */ c(
1561
1561
  "div",
@@ -1605,7 +1605,7 @@ const Fe = (t) => {
1605
1605
  "div",
1606
1606
  {
1607
1607
  className: "univer-mb-2.5 univer-flex univer-cursor-pointer univer-items-center univer-pl-1",
1608
- onClick: () => n({ iconType: Sr, iconId: "" }),
1608
+ onClick: () => n({ iconType: Lr, iconId: "" }),
1609
1609
  children: [
1610
1610
  /* @__PURE__ */ c(ot, { className: "univer-size-5" }),
1611
1611
  /* @__PURE__ */ c("span", { className: "univer-ml-2", children: "无单元格图标" })
@@ -1639,11 +1639,11 @@ const Fe = (t) => {
1639
1639
  e([String(v), "value", "value"], d);
1640
1640
  }, a = (d, v) => {
1641
1641
  e([String(v), "operator"], d);
1642
- const p = mt(F.number, d);
1642
+ const p = Ct(F.number, d);
1643
1643
  u(p, v);
1644
1644
  }, h = (d, v) => {
1645
1645
  e([String(v), "value", "type"], d);
1646
- const p = r[v], y = mt(F.number, p.operator);
1646
+ const p = r[v], y = Ct(F.number, p.operator);
1647
1647
  u(y, v);
1648
1648
  };
1649
1649
  return J(() => r.map((d, v) => {
@@ -1832,7 +1832,7 @@ const Fe = (t) => {
1832
1832
  if (M - 1 < 0 || M === E.length - 1)
1833
1833
  return;
1834
1834
  const O = g[M - 1], m = Ht(O.operator);
1835
- Ir({ operator: m, value: O.value.value }, C.value.value) || (S[M] = `${n.t(`sheet.cf.form.${m}`, String(O.value.value))} `);
1835
+ Fr({ operator: m, value: O.value.value }, C.value.value) || (S[M] = `${n.t(`sheet.cf.form.${m}`, String(O.value.value))} `);
1836
1836
  }), S;
1837
1837
  }
1838
1838
  return {};
@@ -2101,7 +2101,7 @@ const Fe = (t) => {
2101
2101
  }, [p]);
2102
2102
  K(() => {
2103
2103
  const E = r.onCommandExecuted((V) => {
2104
- if (V.id === Mr.id) {
2104
+ if (V.id === fr.id) {
2105
2105
  const O = V.params;
2106
2106
  O.subUnitId === u && O.unitId === o && t.onCancel();
2107
2107
  }
@@ -2121,7 +2121,7 @@ const Fe = (t) => {
2121
2121
  const m = n.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet();
2122
2122
  if (!m)
2123
2123
  throw new Error("No active sheet found");
2124
- return l.current.map((Y) => Vr(Y, m.getRowCount(), m.getColumnCount())).filter((Y) => !(Number.isNaN(Y.startRow) || Number.isNaN(Y.startColumn)));
2124
+ return l.current.map((Y) => pr(Y, m.getRowCount(), m.getColumnCount())).filter((Y) => !(Number.isNaN(Y.startRow) || Number.isNaN(Y.startColumn)));
2125
2125
  })();
2126
2126
  if (w.fetchThroughInterceptors(w.getInterceptPoints().beforeSubmit)(!0, null)) {
2127
2127
  const m = w.fetchThroughInterceptors(w.getInterceptPoints().submit)(null, null);
@@ -2130,7 +2130,7 @@ const Fe = (t) => {
2130
2130
  if (!_ || !j)
2131
2131
  throw new Error("No active sheet found");
2132
2132
  let Y = {};
2133
- t.rule && t.rule.cfId ? (Y = { ...t.rule, ranges: V, rule: m }, r.executeCommand(_r.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel()) : (Y = { cfId: i.createCfId(_, j), ranges: V, rule: m, stopIfTrue: !1 }, r.executeCommand(Sn.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel());
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());
2134
2134
  }
2135
2135
  }
2136
2136
  }, g = () => {
@@ -2305,7 +2305,7 @@ const ji = (t) => {
2305
2305
  if (w === "2")
2306
2306
  return;
2307
2307
  const $ = new Ne((B) => {
2308
- const G = [kr.id, se.id, _e.id, we.id, _n.id], z = s.onCommandExecuted((ee) => {
2308
+ const G = [Cr.id, se.id, _e.id, we.id, xn.id], z = s.onCommandExecuted((ee) => {
2309
2309
  const { id: ne, params: Re } = ee, Te = n.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId();
2310
2310
  G.includes(ne) && Re.unitId === Te && B.next(null);
2311
2311
  });
@@ -2366,24 +2366,24 @@ const ji = (t) => {
2366
2366
  const ar = V.length;
2367
2367
  return Math.min(ar - 1, Math.max(0, or));
2368
2368
  }, Re = V[ne(B.y)].cfId, Te = V[ne(G.y)].cfId;
2369
- Re !== Te && s.executeCommand(wr.id, { unitId: z, subUnitId: ee, start: { id: Re, type: "self" }, end: { id: Te, type: G.y > B.y ? "after" : "before" } });
2369
+ 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
2370
  }, Y = () => {
2371
2371
  t.onCreate();
2372
2372
  }, pe = () => {
2373
- w === "2" ? s.executeCommand(wn.id) : w === "1" && V.map((B) => ({ unitId: d, subUnitId: p, cfId: B.cfId })).forEach((B) => {
2373
+ w === "2" ? s.executeCommand(En.id) : w === "1" && V.map((B) => ({ unitId: d, subUnitId: p, cfId: B.cfId })).forEach((B) => {
2374
2374
  s.executeCommand(Yt.id, B);
2375
2375
  });
2376
2376
  }, Ce = J(() => {
2377
2377
  const $ = n.getCurrentUnitOfType(A.UNIVER_SHEET), B = $.getActiveSheet();
2378
2378
  return V.filter((G) => {
2379
2379
  const z = G.ranges;
2380
- return ft(u, $.getUnitId(), B.getSheetId(), z);
2380
+ return mt(u, $.getUnitId(), B.getSheetId(), z);
2381
2381
  });
2382
2382
  }, [V]), Le = Ce.map(($, B) => ({ i: $.cfId, x: 0, w: 12, y: B, h: 1, isResizable: !1 })), Ue = J(() => {
2383
2383
  const $ = n.getCurrentUnitOfType(A.UNIVER_SHEET), B = $.getActiveSheet();
2384
2384
  return V.every((G) => {
2385
2385
  const z = G.ranges;
2386
- return ft(u, $.getUnitId(), B.getSheetId(), z);
2386
+ return mt(u, $.getUnitId(), B.getSheetId(), z);
2387
2387
  });
2388
2388
  }, [V]);
2389
2389
  return /* @__PURE__ */ k("div", { children: [
@@ -2630,11 +2630,11 @@ const Vt = {
2630
2630
  break;
2631
2631
  }
2632
2632
  case 9: {
2633
- i.executeCommand(Rr.id, { ranges: s });
2633
+ i.executeCommand(Or.id, { ranges: s });
2634
2634
  break;
2635
2635
  }
2636
2636
  case 10: {
2637
- i.executeCommand(wn.id);
2637
+ i.executeCommand(En.id);
2638
2638
  break;
2639
2639
  }
2640
2640
  }
@@ -2646,6 +2646,83 @@ var Gi = Object.getOwnPropertyDescriptor, Zi = (t, e, r, n) => {
2646
2646
  (o = t[s]) && (i = o(i) || i);
2647
2647
  return i;
2648
2648
  }, Ge = (t, e) => (r, n) => e(r, n, t);
2649
+ let bt = class extends ue {
2650
+ constructor(t, e, r, n, i) {
2651
+ super(), this._injector = t, this._univerInstanceService = e, this._sheetInterceptorService = r, this._selectionManagerService = n, this._conditionalFormattingRuleModel = i, this._init();
2652
+ }
2653
+ _init() {
2654
+ this.disposeWithMe(this._sheetInterceptorService.interceptCommand({
2655
+ getMutations: (t) => {
2656
+ var i;
2657
+ const e = [], r = [], n = { redos: e, undos: r };
2658
+ if ([yr.id, br.id].includes(t.id)) {
2659
+ const s = (i = this._selectionManagerService.getCurrentSelections()) == null ? void 0 : i.map((p) => p.range);
2660
+ if (!s)
2661
+ return n;
2662
+ const o = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET), u = o.getActiveSheet();
2663
+ if (!u)
2664
+ return n;
2665
+ const a = o.getUnitId(), h = u.getSheetId(), l = this._conditionalFormattingRuleModel.getSubunitRules(a, h);
2666
+ if (!l || !l.length)
2667
+ return n;
2668
+ const { redos: d, undos: v } = dn(this._injector, l, s, a, h);
2669
+ e.push(...d), r.push(...v);
2670
+ }
2671
+ return n;
2672
+ }
2673
+ })), this.disposeWithMe(this._sheetInterceptorService.interceptRanges({
2674
+ getMutations: ({ unitId: t, subUnitId: e, ranges: r }) => {
2675
+ const n = [], i = [], s = { redos: n, undos: i };
2676
+ if (!r || !r.length)
2677
+ return s;
2678
+ const o = this._conditionalFormattingRuleModel.getSubunitRules(t, e);
2679
+ if (!o || !o.length)
2680
+ return s;
2681
+ const { redos: u, undos: a } = dn(this._injector, o, r, t, e);
2682
+ return n.push(...u), i.push(...a), s;
2683
+ }
2684
+ }));
2685
+ }
2686
+ };
2687
+ bt = Zi([
2688
+ Ge(0, P(fe)),
2689
+ Ge(1, P(Z)),
2690
+ Ge(2, P(qt)),
2691
+ Ge(3, P(je)),
2692
+ Ge(4, P(Q))
2693
+ ], bt);
2694
+ function dn(t, e, r, n, i) {
2695
+ const s = [], o = [];
2696
+ return e.filter((u) => r.some((a) => u.ranges.some((h) => ye.getIntersects(h, a)))).forEach((u) => {
2697
+ const h = new Ir().add(...u.ranges).subtract(...r).merge();
2698
+ if (h.length) {
2699
+ const l = {
2700
+ id: _e.id,
2701
+ params: {
2702
+ unitId: n,
2703
+ subUnitId: i,
2704
+ rule: { ...u, ranges: h }
2705
+ }
2706
+ }, d = $e(t, l.params);
2707
+ s.push(l), o.push(...d);
2708
+ } else {
2709
+ const l = {
2710
+ id: we.id,
2711
+ params: {
2712
+ unitId: n,
2713
+ subUnitId: i,
2714
+ cfId: u.cfId
2715
+ }
2716
+ }, d = Ae(t, l.params);
2717
+ s.push(l), o.push(...d);
2718
+ }
2719
+ }), { redos: s, undos: o };
2720
+ }
2721
+ var zi = Object.getOwnPropertyDescriptor, Yi = (t, e, r, n) => {
2722
+ for (var i = n > 1 ? void 0 : n ? zi(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2723
+ (o = t[s]) && (i = o(i) || i);
2724
+ return i;
2725
+ }, Ze = (t, e) => (r, n) => e(r, n, t);
2649
2726
  let et = class extends ue {
2650
2727
  constructor(e, r, n, i, s) {
2651
2728
  super();
@@ -2674,7 +2751,7 @@ let et = class extends ue {
2674
2751
  cfMap: s
2675
2752
  }
2676
2753
  };
2677
- const o = this._injector.invoke((l) => Fr(n, l, e, r));
2754
+ const o = this._injector.invoke((l) => Sr(n, l, e, r));
2678
2755
  if (!o)
2679
2756
  return;
2680
2757
  const { rows: u, cols: a } = o, h = /* @__PURE__ */ new Set();
@@ -2766,14 +2843,14 @@ let et = class extends ue {
2766
2843
  });
2767
2844
  const x = [], T = [];
2768
2845
  for (const g in v) {
2769
- const b = v[g], S = pt(Ct(b));
2846
+ const b = v[g], S = ft(pt(b));
2770
2847
  if (!S.length) {
2771
2848
  const C = {
2772
2849
  unitId: s,
2773
2850
  subUnitId: o,
2774
2851
  cfId: g
2775
2852
  };
2776
- x.push({ id: we.id, params: C }), T.push(...$e(this._injector, C));
2853
+ x.push({ id: we.id, params: C }), T.push(...Ae(this._injector, C));
2777
2854
  }
2778
2855
  if (f.some((C) => C.cfId === g)) {
2779
2856
  const C = R(g), M = {
@@ -2781,7 +2858,7 @@ let et = class extends ue {
2781
2858
  subUnitId: o,
2782
2859
  rule: { ...C, ranges: S }
2783
2860
  };
2784
- x.push({ id: se.id, params: M }), T.push(Rn(this._injector, M));
2861
+ x.push({ id: se.id, params: M }), T.push(Nn(this._injector, M));
2785
2862
  } else {
2786
2863
  const C = this._conditionalFormattingRuleModel.getRule(s, o, g);
2787
2864
  if (!C)
@@ -2791,7 +2868,7 @@ let et = class extends ue {
2791
2868
  subUnitId: o,
2792
2869
  rule: { ...C, ranges: S }
2793
2870
  };
2794
- x.push({ id: _e.id, params: M }), T.push(...Ae(this._injector, M));
2871
+ x.push({ id: _e.id, params: M }), T.push(...$e(this._injector, M));
2795
2872
  }
2796
2873
  }
2797
2874
  return {
@@ -2800,15 +2877,15 @@ let et = class extends ue {
2800
2877
  };
2801
2878
  }
2802
2879
  };
2803
- et = Zi([
2804
- Ge(0, P(ri)),
2805
- Ge(1, P(Q)),
2806
- Ge(2, P(fe)),
2807
- Ge(3, P(it)),
2808
- Ge(4, P(Z))
2880
+ et = Yi([
2881
+ Ze(0, P(ri)),
2882
+ Ze(1, P(Q)),
2883
+ Ze(2, P(fe)),
2884
+ Ze(3, P(it)),
2885
+ Ze(4, P(Z))
2809
2886
  ], et);
2810
- var zi = Object.getOwnPropertyDescriptor, Yi = (t, e, r, n) => {
2811
- for (var i = n > 1 ? void 0 : n ? zi(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2887
+ var Ki = Object.getOwnPropertyDescriptor, Xi = (t, e, r, n) => {
2888
+ for (var i = n > 1 ? void 0 : n ? Ki(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2812
2889
  (o = t[s]) && (i = o(i) || i);
2813
2890
  return i;
2814
2891
  }, Ot = (t, e) => (r, n) => e(r, n, t);
@@ -2819,22 +2896,22 @@ let tt = class extends ue {
2819
2896
  _commandExecutedListener() {
2820
2897
  this.disposeWithMe(
2821
2898
  this._commandService.beforeCommandExecuted((t) => {
2822
- t.id === Sn.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
2823
- workbookTypes: [Vn],
2824
- rangeTypes: [Mn],
2825
- worksheetTypes: [En, Nn]
2899
+ t.id === Tn.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
2900
+ workbookTypes: [Rn],
2901
+ rangeTypes: [wn],
2902
+ worksheetTypes: [Sn, _n]
2826
2903
  }, t.params.rule.ranges) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr")));
2827
2904
  })
2828
2905
  );
2829
2906
  }
2830
2907
  };
2831
- tt = Yi([
2908
+ tt = Xi([
2832
2909
  Ot(0, P(re)),
2833
2910
  Ot(1, te),
2834
- Ot(2, P(Lr))
2911
+ Ot(2, P(_r))
2835
2912
  ], tt);
2836
- var Ki = Object.getOwnPropertyDescriptor, Xi = (t, e, r, n) => {
2837
- for (var i = n > 1 ? void 0 : n ? Ki(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2913
+ var Ji = Object.getOwnPropertyDescriptor, Qi = (t, e, r, n) => {
2914
+ for (var i = n > 1 ? void 0 : n ? Ji(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2838
2915
  (o = t[s]) && (i = o(i) || i);
2839
2916
  return i;
2840
2917
  }, vt = (t, e) => (r, n) => e(r, n, t);
@@ -2845,14 +2922,14 @@ let nt = class extends ue {
2845
2922
  _initRefRange() {
2846
2923
  const t = /* @__PURE__ */ new Map(), e = (n, i, s) => `${n}_${i}_${s}`, r = (n, i, s) => {
2847
2924
  const o = (a) => {
2848
- const h = [...s.ranges], l = h.map((v) => Pr(v, a)).filter((v) => !!v);
2849
- if (Tr(l, h))
2925
+ const h = [...s.ranges], l = h.map((v) => Rr(v, a)).filter((v) => !!v);
2926
+ if (Dr(l, h))
2850
2927
  return { redos: [], undos: [] };
2851
2928
  if (l.length) {
2852
- const v = { unitId: n, subUnitId: i, rule: { ...s, ranges: l } }, p = [{ id: _e.id, params: v }], y = Ae(this._injector, v);
2929
+ const v = { unitId: n, subUnitId: i, rule: { ...s, ranges: l } }, p = [{ id: _e.id, params: v }], y = $e(this._injector, v);
2853
2930
  return { redos: p, undos: y };
2854
2931
  } else {
2855
- const v = { unitId: n, subUnitId: i, cfId: s.cfId }, p = [{ id: we.id, params: v }], y = $e(this._injector, v);
2932
+ const v = { unitId: n, subUnitId: i, cfId: s.cfId }, p = [{ id: we.id, params: v }], y = Ae(this._injector, v);
2856
2933
  return { redos: p, undos: y };
2857
2934
  }
2858
2935
  }, u = [];
@@ -2886,14 +2963,14 @@ let nt = class extends ue {
2886
2963
  }));
2887
2964
  }
2888
2965
  };
2889
- nt = Xi([
2966
+ nt = Qi([
2890
2967
  vt(0, P(Q)),
2891
2968
  vt(1, P(Z)),
2892
2969
  vt(2, P(fe)),
2893
- vt(3, P(Ur))
2970
+ vt(3, P(wr))
2894
2971
  ], nt);
2895
- var Ji = Object.getOwnPropertyDescriptor, Qi = (t, e, r, n) => {
2896
- for (var i = n > 1 ? void 0 : n ? Ji(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2972
+ var es = Object.getOwnPropertyDescriptor, ts = (t, e, r, n) => {
2973
+ for (var i = n > 1 ? void 0 : n ? es(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2897
2974
  (o = t[s]) && (i = o(i) || i);
2898
2975
  return i;
2899
2976
  }, Oe = (t, e) => (r, n) => e(r, n, t);
@@ -2927,7 +3004,7 @@ let rt = class extends ue {
2927
3004
  ).subscribe(() => this._markDirtySkeleton()));
2928
3005
  }
2929
3006
  _initViewModelInterceptor() {
2930
- this.disposeWithMe(this._sheetInterceptorService.intercept(Or.CELL_CONTENT, {
3007
+ this.disposeWithMe(this._sheetInterceptorService.intercept(Tr.CELL_CONTENT, {
2931
3008
  effect: gr.Style,
2932
3009
  handler: (e, r, n) => {
2933
3010
  const i = this._conditionalFormattingService.composeStyle(r.unitId, r.subUnitId, r.row, r.col);
@@ -2941,32 +3018,32 @@ let rt = class extends ue {
2941
3018
  };
2942
3019
  Object.assign(u, { s: a });
2943
3020
  }
2944
- return u.fontRenderExtension || (u.fontRenderExtension = {}, i.isShowValue !== void 0 && (u.fontRenderExtension.isSkip = !i.isShowValue)), i.dataBar && (u.dataBar = i.dataBar), i.iconSet && (u.iconSet = i.iconSet, u.fontRenderExtension.leftOffset = xr + Er), n(u);
3021
+ return u.fontRenderExtension || (u.fontRenderExtension = {}, i.isShowValue !== void 0 && (u.fontRenderExtension.isSkip = !i.isShowValue)), i.dataBar && (u.dataBar = i.dataBar), i.iconSet && (u.iconSet = i.iconSet, u.fontRenderExtension.leftOffset = $r + Ar), n(u);
2945
3022
  },
2946
3023
  priority: 10
2947
3024
  }));
2948
3025
  }
2949
3026
  };
2950
- rt = Qi([
3027
+ rt = ts([
2951
3028
  Oe(0, P(qt)),
2952
- Oe(1, P(Tn)),
3029
+ Oe(1, P(Mn)),
2953
3030
  Oe(2, P(Z)),
2954
3031
  Oe(3, P(On)),
2955
3032
  Oe(4, P(it)),
2956
3033
  Oe(5, P(Q))
2957
3034
  ], rt);
2958
- const rr = "sheets-conditional-formatting-ui.config", bt = {};
2959
- var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, ns = (t, e, r) => e in t ? es(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, rs = (t, e, r, n) => {
2960
- for (var i = n > 1 ? void 0 : n ? ts(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3035
+ const rr = "sheets-conditional-formatting-ui.config", It = {};
3036
+ 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) => {
3037
+ for (var i = n > 1 ? void 0 : n ? rs(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2961
3038
  (o = t[s]) && (i = o(i) || i);
2962
3039
  return i;
2963
- }, Dt = (t, e) => (r, n) => e(r, n, t), ir = (t, e, r) => ns(t, typeof e != "symbol" ? e + "" : e, r);
2964
- let It = class extends bn {
2965
- constructor(t = bt, e, r, n) {
3040
+ }, Dt = (t, e) => (r, n) => e(r, n, t), ir = (t, e, r) => is(t, typeof e != "symbol" ? e + "" : e, r);
3041
+ let St = class extends bn {
3042
+ constructor(t = It, e, r, n) {
2966
3043
  super(), this._config = t, this._injector = e, this._commandService = r, this._configService = n;
2967
3044
  const { menu: i, ...s } = In(
2968
3045
  {},
2969
- bt,
3046
+ It,
2970
3047
  this._config
2971
3048
  );
2972
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]);
@@ -2988,20 +3065,20 @@ let It = class extends bn {
2988
3065
  });
2989
3066
  }
2990
3067
  };
2991
- ir(It, "pluginName", `${st}_MOBILE_UI_PLUGIN`);
2992
- ir(It, "type", A.UNIVER_SHEET);
2993
- It = rs([
2994
- Cn(xn),
3068
+ ir(St, "pluginName", `${st}_MOBILE_UI_PLUGIN`);
3069
+ ir(St, "type", A.UNIVER_SHEET);
3070
+ St = ss([
3071
+ Cn(Vn),
2995
3072
  Dt(1, P(fe)),
2996
3073
  Dt(2, P(te)),
2997
3074
  Dt(3, yn)
2998
- ], It);
2999
- var is = Object.getOwnPropertyDescriptor, ss = (t, e, r, n) => {
3000
- for (var i = n > 1 ? void 0 : n ? is(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3075
+ ], St);
3076
+ var os = Object.getOwnPropertyDescriptor, as = (t, e, r, n) => {
3077
+ for (var i = n > 1 ? void 0 : n ? os(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3001
3078
  (o = t[s]) && (i = o(i) || i);
3002
3079
  return i;
3003
- }, Ze = (t, e) => (r, n) => e(r, n, t);
3004
- let St = class extends ue {
3080
+ }, ze = (t, e) => (r, n) => e(r, n, t);
3081
+ let _t = class extends ue {
3005
3082
  constructor(t, e, r, n, i) {
3006
3083
  super(), this._injector = t, this._univerInstanceService = e, this._autoFillService = r, this._conditionalFormattingRuleModel = n, this._conditionalFormattingViewModel = i, this._initAutoFill();
3007
3084
  }
@@ -3094,21 +3171,21 @@ let St = class extends ue {
3094
3171
  const b = this._conditionalFormattingRuleModel.getRule(o, u, g);
3095
3172
  if (!b)
3096
3173
  return;
3097
- const S = pt(Ct(T));
3174
+ const S = ft(pt(T));
3098
3175
  if (S.length) {
3099
3176
  const C = {
3100
3177
  unitId: o,
3101
3178
  subUnitId: u,
3102
3179
  rule: { ...b, ranges: S }
3103
3180
  };
3104
- h.push({ id: _e.id, params: C }), l.push(...Ae(this._injector, C));
3181
+ h.push({ id: _e.id, params: C }), l.push(...$e(this._injector, C));
3105
3182
  } else {
3106
3183
  const C = {
3107
3184
  unitId: o,
3108
3185
  subUnitId: u,
3109
3186
  cfId: b.cfId
3110
3187
  };
3111
- h.push({ id: we.id, params: C }), l.push(...$e(this._injector, C));
3188
+ h.push({ id: we.id, params: C }), l.push(...Ae(this._injector, C));
3112
3189
  }
3113
3190
  }), {
3114
3191
  undos: l,
@@ -3127,90 +3204,13 @@ let St = class extends ue {
3127
3204
  this.disposeWithMe(this._autoFillService.addHook(n));
3128
3205
  }
3129
3206
  };
3130
- St = ss([
3131
- Ze(0, P(fe)),
3132
- Ze(1, P(Z)),
3133
- Ze(2, P(si)),
3134
- Ze(3, P(Q)),
3135
- Ze(4, P(it))
3136
- ], St);
3137
- var os = Object.getOwnPropertyDescriptor, as = (t, e, r, n) => {
3138
- for (var i = n > 1 ? void 0 : n ? os(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3139
- (o = t[s]) && (i = o(i) || i);
3140
- return i;
3141
- }, ze = (t, e) => (r, n) => e(r, n, t);
3142
- let _t = class extends ue {
3143
- constructor(t, e, r, n, i) {
3144
- super(), this._injector = t, this._univerInstanceService = e, this._sheetInterceptorService = r, this._selectionManagerService = n, this._conditionalFormattingRuleModel = i, this._init();
3145
- }
3146
- _init() {
3147
- this.disposeWithMe(this._sheetInterceptorService.interceptCommand({
3148
- getMutations: (t) => {
3149
- var i;
3150
- const e = [], r = [], n = { redos: e, undos: r };
3151
- if ([Dr.id, $r.id].includes(t.id)) {
3152
- const s = (i = this._selectionManagerService.getCurrentSelections()) == null ? void 0 : i.map((p) => p.range);
3153
- if (!s)
3154
- return n;
3155
- const o = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET), u = o.getActiveSheet();
3156
- if (!u)
3157
- return n;
3158
- const a = o.getUnitId(), h = u.getSheetId(), l = this._conditionalFormattingRuleModel.getSubunitRules(a, h);
3159
- if (!l || !l.length)
3160
- return n;
3161
- const { redos: d, undos: v } = dn(this._injector, l, s, a, h);
3162
- e.push(...d), r.push(...v);
3163
- }
3164
- return n;
3165
- }
3166
- })), this.disposeWithMe(this._sheetInterceptorService.interceptRanges({
3167
- getMutations: ({ unitId: t, subUnitId: e, ranges: r }) => {
3168
- const n = [], i = [], s = { redos: n, undos: i };
3169
- if (!r || !r.length)
3170
- return s;
3171
- const o = this._conditionalFormattingRuleModel.getSubunitRules(t, e);
3172
- if (!o || !o.length)
3173
- return s;
3174
- const { redos: u, undos: a } = dn(this._injector, o, r, t, e);
3175
- return n.push(...u), i.push(...a), s;
3176
- }
3177
- }));
3178
- }
3179
- };
3180
3207
  _t = as([
3181
3208
  ze(0, P(fe)),
3182
3209
  ze(1, P(Z)),
3183
- ze(2, P(qt)),
3184
- ze(3, P(je)),
3185
- ze(4, P(Q))
3210
+ ze(2, P(si)),
3211
+ ze(3, P(Q)),
3212
+ ze(4, P(it))
3186
3213
  ], _t);
3187
- function dn(t, e, r, n, i) {
3188
- const s = [], o = [];
3189
- return e.filter((u) => r.some((a) => u.ranges.some((h) => ye.getIntersects(h, a)))).forEach((u) => {
3190
- const h = new Ar().add(...u.ranges).subtract(...r).merge();
3191
- if (h.length) {
3192
- const l = {
3193
- id: _e.id,
3194
- params: {
3195
- unitId: n,
3196
- subUnitId: i,
3197
- rule: { ...u, ranges: h }
3198
- }
3199
- }, d = Ae(t, l.params);
3200
- s.push(l), o.push(...d);
3201
- } else {
3202
- const l = {
3203
- id: we.id,
3204
- params: {
3205
- unitId: n,
3206
- subUnitId: i,
3207
- cfId: u.cfId
3208
- }
3209
- }, d = $e(t, l.params);
3210
- s.push(l), o.push(...d);
3211
- }
3212
- }), { redos: s, undos: o };
3213
- }
3214
3214
  var ls = Object.getOwnPropertyDescriptor, cs = (t, e, r, n) => {
3215
3215
  for (var i = n > 1 ? void 0 : n ? ls(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3216
3216
  (o = t[s]) && (i = o(i) || i);
@@ -3229,7 +3229,7 @@ let wt = class extends ue {
3229
3229
  this.disposeWithMe(
3230
3230
  pn(
3231
3231
  this._sheetInterceptorService.writeCellInterceptor.intercept(
3232
- Hr,
3232
+ xr,
3233
3233
  {
3234
3234
  handler: (t, e, r) => {
3235
3235
  var o, u, a;
@@ -3259,14 +3259,14 @@ let wt = class extends ue {
3259
3259
  };
3260
3260
  wt = cs([
3261
3261
  hn(0, P(qt)),
3262
- hn(1, P(Tn))
3262
+ hn(1, P(Mn))
3263
3263
  ], wt);
3264
3264
  const vn = [
3265
3265
  Wt.id,
3266
3266
  se.id,
3267
3267
  _e.id,
3268
3268
  we.id,
3269
- _n.id
3269
+ xn.id
3270
3270
  ], Ye = [
3271
3271
  {
3272
3272
  label: {
@@ -3357,7 +3357,7 @@ const vn = [
3357
3357
  if (!l) return;
3358
3358
  const d = l.getActiveSheet();
3359
3359
  if (!d) return;
3360
- const y = (i.getSubunitRules(l.getUnitId(), d.getSheetId()) || []).filter((w) => w.ranges.some((I) => h.some((R) => ye.intersects(R, I)))).map((w) => w.ranges).every((w) => ft(t, l.getUnitId(), d.getSheetId(), w));
3360
+ const y = (i.getSubunitRules(l.getUnitId(), d.getSheetId()) || []).filter((w) => w.ranges.some((I) => h.some((R) => ye.intersects(R, I)))).map((w) => w.ranges).every((w) => mt(t, l.getUnitId(), d.getSheetId(), w));
3361
3361
  a.next(y);
3362
3362
  })), o = new Ne(
3363
3363
  (a) => new Ne((h) => {
@@ -3375,7 +3375,7 @@ const vn = [
3375
3375
  const d = i.getSubunitRules(h.getUnitId(), l.getSheetId()) || [];
3376
3376
  if (!d.length)
3377
3377
  return a.next(!1), !1;
3378
- const v = d.map((p) => p.ranges).every((p) => ft(t, h.getUnitId(), l.getSheetId(), p));
3378
+ const v = d.map((p) => p.ranges).every((p) => mt(t, h.getUnitId(), l.getSheetId(), p));
3379
3379
  a.next(v);
3380
3380
  })
3381
3381
  ), u = new Ne((a) => {
@@ -3394,7 +3394,7 @@ const vn = [
3394
3394
  tooltip: "sheet.cf.title",
3395
3395
  selections: u,
3396
3396
  hidden$: Gr(t, A.UNIVER_SHEET),
3397
- disabled$: ai(t, { workbookTypes: [Vn], worksheetTypes: [Nn, En], rangeTypes: [Mn] })
3397
+ disabled$: ai(t, { workbookTypes: [Rn], worksheetTypes: [_n, Sn], rangeTypes: [wn] })
3398
3398
  };
3399
3399
  }, ds = {
3400
3400
  [zr.RULES]: {
@@ -3545,7 +3545,7 @@ let Tt = class extends ue {
3545
3545
  r(w, { row: x.startRange.startRow, col: x.startRange.startColumn }, x.repeatRelativeRange, v, { targetUnitId: s, targetSubUnitId: o });
3546
3546
  }), v.forEach((x, T) => {
3547
3547
  if (d) {
3548
- const g = this._conditionalFormattingRuleModel.getRule(s, o, T), b = pt(Ct(x));
3548
+ const g = this._conditionalFormattingRuleModel.getRule(s, o, T), b = ft(pt(x));
3549
3549
  if (g)
3550
3550
  if (b.length) {
3551
3551
  const S = {
@@ -3553,14 +3553,14 @@ let Tt = class extends ue {
3553
3553
  subUnitId: o,
3554
3554
  rule: { ...g, ranges: b }
3555
3555
  };
3556
- p.push({ id: _e.id, params: S }), y.push(...Ae(this._injector, S));
3556
+ p.push({ id: _e.id, params: S }), y.push(...$e(this._injector, S));
3557
3557
  } else {
3558
3558
  const S = {
3559
3559
  unitId: s,
3560
3560
  subUnitId: o,
3561
3561
  cfId: g.cfId
3562
3562
  };
3563
- p.push({ id: we.id, params: S }), y.push(...$e(this._injector, S));
3563
+ p.push({ id: we.id, params: S }), y.push(...Ae(this._injector, S));
3564
3564
  }
3565
3565
  else if (b.length) {
3566
3566
  const S = this._conditionalFormattingRuleModel.getRule(h, l, T);
@@ -3574,28 +3574,28 @@ let Tt = class extends ue {
3574
3574
  ranges: b
3575
3575
  }
3576
3576
  };
3577
- p.push({ id: se.id, params: C }), y.push(Rn(this._injector, C));
3577
+ p.push({ id: se.id, params: C }), y.push(Nn(this._injector, C));
3578
3578
  }
3579
3579
  }
3580
3580
  } else {
3581
3581
  const g = this._conditionalFormattingRuleModel.getRule(h, l, T);
3582
3582
  if (!g)
3583
3583
  return;
3584
- const b = pt(Ct(x));
3584
+ const b = ft(pt(x));
3585
3585
  if (b.length) {
3586
3586
  const S = {
3587
3587
  unitId: h,
3588
3588
  subUnitId: l,
3589
3589
  rule: { ...g, ranges: b }
3590
3590
  };
3591
- p.push({ id: _e.id, params: S }), y.push(...Ae(this._injector, S));
3591
+ p.push({ id: _e.id, params: S }), y.push(...$e(this._injector, S));
3592
3592
  } else {
3593
3593
  const S = {
3594
3594
  unitId: h,
3595
3595
  subUnitId: l,
3596
3596
  cfId: g.cfId
3597
3597
  };
3598
- p.push({ id: we.id, params: S }), y.push(...$e(this._injector, S));
3598
+ p.push({ id: we.id, params: S }), y.push(...Ae(this._injector, S));
3599
3599
  }
3600
3600
  }
3601
3601
  }), {
@@ -3652,7 +3652,7 @@ let xt = class extends ue {
3652
3652
  const s = i.with(Un);
3653
3653
  this.disposeWithMe(s.currentSkeleton$.subscribe((o) => {
3654
3654
  if (o) {
3655
- const u = o.skeleton.rowColumnSegment, a = u.endColumn - u.startColumn + 1, l = (u.endRow - u.startRow + 1) * a * 9, d = Math.max(Nr, l);
3655
+ const u = o.skeleton.rowColumnSegment, a = u.endColumn - u.startColumn + 1, l = (u.endRow - u.startRow + 1) * a * 9, d = Math.max(Hr, l);
3656
3656
  this._conditionalFormattingViewModel.setCacheLength(d);
3657
3657
  }
3658
3658
  }));
@@ -3673,11 +3673,11 @@ var ys = Object.defineProperty, bs = Object.getOwnPropertyDescriptor, Is = (t, e
3673
3673
  return i;
3674
3674
  }, At = (t, e) => (r, n) => e(r, n, t), sr = (t, e, r) => Is(t, typeof e != "symbol" ? e + "" : e, r);
3675
3675
  let Et = class extends bn {
3676
- constructor(t = bt, e, r, n) {
3676
+ constructor(t = It, e, r, n) {
3677
3677
  super(), this._config = t, this._injector = e, this._commandService = r, this._configService = n;
3678
3678
  const { menu: i, ...s } = In(
3679
3679
  {},
3680
- bt,
3680
+ It,
3681
3681
  this._config
3682
3682
  );
3683
3683
  i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(rr, s), this._initCommand();
@@ -3687,13 +3687,13 @@ let Et = class extends bn {
3687
3687
  [rt],
3688
3688
  [nt],
3689
3689
  [et],
3690
- [St],
3690
+ [_t],
3691
3691
  [tt],
3692
3692
  [Qe],
3693
3693
  [Rt],
3694
3694
  [He],
3695
3695
  [wt],
3696
- [_t],
3696
+ [bt],
3697
3697
  [Tt],
3698
3698
  [xt]
3699
3699
  ]), kt(this._injector, [
@@ -3708,8 +3708,8 @@ let Et = class extends bn {
3708
3708
  }
3709
3709
  onRendered() {
3710
3710
  kt(this._injector, [
3711
- [St],
3712
3711
  [_t],
3712
+ [bt],
3713
3713
  [et],
3714
3714
  [wt],
3715
3715
  [He],
@@ -3739,7 +3739,7 @@ let Et = class extends bn {
3739
3739
  sr(Et, "pluginName", `${st}_UI_PLUGIN`);
3740
3740
  sr(Et, "type", A.UNIVER_SHEET);
3741
3741
  Et = Ss([
3742
- Cn(xn),
3742
+ Cn(Vn),
3743
3743
  At(1, P(fe)),
3744
3744
  At(2, P(te)),
3745
3745
  At(3, yn)
@@ -3754,8 +3754,8 @@ export {
3754
3754
  Wn as AddTextCfCommand,
3755
3755
  qn as AddTimePeriodCfCommand,
3756
3756
  Gn as AddUniqueValuesCfCommand,
3757
- _t as ConditionalFormattingClearController,
3757
+ bt as ConditionalFormattingClearController,
3758
3758
  Vt as OpenConditionalFormattingOperator,
3759
- It as UniverSheetsConditionalFormattingMobileUIPlugin,
3759
+ St as UniverSheetsConditionalFormattingMobileUIPlugin,
3760
3760
  Et as UniverSheetsConditionalFormattingUIPlugin
3761
3761
  };