@univerjs/sheets-conditional-formatting-ui 0.1.17 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  var ra = Object.defineProperty;
2
2
  var oa = (e, t, n) => t in e ? ra(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Qt = (e, t, n) => oa(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { CommandType as Re, ICommandService as ue, IUniverInstanceService as re, IUndoRedoService as qt, ObjectMatrix as Vt, Range as ut, sequenceExecute as yi, UniverInstanceType as G, Rectangle as Ut, ColorKit as bi, BooleanNumber as He, Disposable as rt, OnLifecycle as ot, LifecycleStages as it, LocaleService as $e, createInterceptorKey as Si, createInternalEditorID as yn, Tools as bn, InterceptorManager as ia, toDisposable as Ci, Plugin as _i, DependentOn as wi } from "@univerjs/core";
4
+ import { CommandType as Re, ICommandService as ue, IUniverInstanceService as re, IUndoRedoService as qt, ObjectMatrix as Vt, Range as ut, sequenceExecute as yi, UniverInstanceType as G, Rectangle as At, ColorKit as bi, BooleanNumber as He, Disposable as rt, OnLifecycle as ot, LifecycleStages as it, LocaleService as $e, createInterceptorKey as Si, createInternalEditorID as yn, Tools as bn, InterceptorManager as ia, toDisposable as Ci, Plugin as _i, DependentOn as wi } from "@univerjs/core";
5
5
  import { Inject as q, Injector as Rt } from "@wendellhu/redi";
6
- import { ConditionalFormattingRuleModel as he, CFRuleType as L, CFSubRuleType as j, AddConditionalRuleMutation as De, CFNumberOperator as F, setConditionalRuleMutationUndoFactory as Bt, SetConditionalRuleMutation as nt, DeleteConditionalRuleMutationUndoFactory as It, DeleteConditionalRuleMutation as Ye, MoveConditionalRuleMutation as Ln, transformSupportSymmetryAnchor as sa, MoveConditionalRuleMutationUndoFactory as aa, getColorScaleFromValue as la, iconMap as bt, DEFAULT_BG_COLOR as ca, DEFAULT_FONT_COLOR as ua, AddConditionalRuleMutationUndoFactory as xi, CFValueType as U, createDefaultValueByValueType as cn, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, removeUndefinedAttr as da, createDefaultValue as Pr, CFTextOperator as X, CFTimePeriodOperator as Ge, iconGroup as fa, getOppositeOperator as Dr, compareWithNumber as ha, EMPTY_ICON_TYPE as pa, createDefaultRule as ft, DEFAULT_PADDING as ga, DEFAULT_WIDTH as ma, ConditionalFormattingService as Ri, ConditionalFormattingViewModel as Ur, isRangesEqual as va, SheetsConditionalFormattingPlugin as Ii, getStringFromDataStream as ya } from "@univerjs/sheets-conditional-formatting";
6
+ import { ConditionalFormattingRuleModel as he, CFRuleType as L, CFSubRuleType as j, AddConditionalRuleMutation as De, CFNumberOperator as F, setConditionalRuleMutationUndoFactory as Bt, SetConditionalRuleMutation as nt, DeleteConditionalRuleMutationUndoFactory as It, DeleteConditionalRuleMutation as Ye, MoveConditionalRuleMutation as Ln, transformSupportSymmetryAnchor as sa, MoveConditionalRuleMutationUndoFactory as aa, getColorScaleFromValue as la, iconMap as bt, DEFAULT_BG_COLOR as ca, DEFAULT_FONT_COLOR as ua, AddConditionalRuleMutationUndoFactory as xi, CFValueType as A, createDefaultValueByValueType as cn, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, removeUndefinedAttr as da, createDefaultValue as Pr, CFTextOperator as X, CFTimePeriodOperator as Ge, iconGroup as fa, getOppositeOperator as Dr, compareWithNumber as ha, EMPTY_ICON_TYPE as pa, createDefaultRule as ft, DEFAULT_PADDING as ga, DEFAULT_WIDTH as ma, ConditionalFormattingService as Ri, ConditionalFormattingViewModel as Ar, isRangesEqual as va, UniverSheetsConditionalFormattingPlugin as Ii, getStringFromDataStream as ya } from "@univerjs/sheets-conditional-formatting";
7
7
  import { getSheetCommandTarget as Te, SelectionManagerService as Gt, findAllRectangle as kr, createTopMatrixFromMatrix as qr, SetWorksheetActiveOperation as Br, WorkbookEditablePermission as Ti, WorksheetSetCellStylePermission as Oi, WorksheetEditPermission as Ei, RangeProtectionPermissionEditPoint as Pi, SetSelectionsOperation as ba, RemoveSheetMutation as Sa, setEndForRange as Ca, INTERCEPTOR_POINT as _a, SheetInterceptorService as Di, RefRangeService as wa, handleDefaultRangeChangeWithEffectRefCommands as xa, ClearSelectionFormatCommand as Ra, ClearSelectionAllCommand as Ia, RangeMergeUtil as Ta } from "@univerjs/sheets";
8
8
  import { MenuItemType as Oa, MenuGroup as Ea, MenuPosition as Pa, getMenuHiddenObservable as Da, ComponentManager as Gr, TextEditor as Bn, ILayoutService as $a, useScrollYOverContainer as Ma, RangeSelector as Na, IMenuService as ja, ISidebarService as La } from "@univerjs/ui";
9
9
  import { Observable as mt, merge as Mo, debounceTime as No } from "rxjs";
10
10
  import { debounceTime as jo, bufferTime as pr, filter as gr } from "rxjs/operators";
11
- import { getCurrentRangeDisable$ as za, useHighlightRange as Ha, SheetSkeletonManagerService as Va, COPY_TYPE as Lo, rangeToDiscreteRange as Fa, PREDEFINED_HOOK_NAME as mr, virtualizeDiscreteRanges as $i, getRepeatRange as Wa, ISheetClipboardService as Aa, SheetPermissionInterceptorBaseController as Ua, IAutoFillService as ka, APPLY_TYPE as vr, getAutoFillRepeatRange as qa, IEditorBridgeService as Ba } from "@univerjs/sheets-ui";
11
+ import { getCurrentRangeDisable$ as za, useHighlightRange as Ha, SheetSkeletonManagerService as Va, COPY_TYPE as Lo, rangeToDiscreteRange as Fa, PREDEFINED_HOOK_NAME as mr, virtualizeDiscreteRanges as $i, getRepeatRange as Wa, ISheetClipboardService as Ua, SheetPermissionInterceptorBaseController as Aa, IAutoFillService as ka, APPLY_TYPE as vr, getAutoFillRepeatRange as qa, IEditorBridgeService as Ba } from "@univerjs/sheets-ui";
12
12
  import Fe, { forwardRef as Tt, useRef as pn, createElement as Xt, useMemo as be, useState as M, useEffect as ve } from "react";
13
13
  import { Select as Ve, Tooltip as zo, Dropdown as Xr, ColorPicker as Ga, InputNumber as St, RadioGroup as Xa, Radio as Ho, Checkbox as zn, Input as Ya, Button as Vo } from "@univerjs/design";
14
14
  import { useDependency as oe } from "@wendellhu/redi/react-bindings";
@@ -192,7 +192,7 @@ const ji = {
192
192
  };
193
193
  return f.executeCommand(De.id, { unitId: u, subUnitId: h, rule: m });
194
194
  }
195
- }, Ai = {
195
+ }, Ui = {
196
196
  type: Re.COMMAND,
197
197
  id: "sheet.command.add-time-period-conditional-rule",
198
198
  handler(e, t) {
@@ -213,7 +213,7 @@ const ji = {
213
213
  };
214
214
  return a.executeCommand(De.id, { unitId: u, subUnitId: h, rule: g });
215
215
  }
216
- }, Ui = {
216
+ }, Ai = {
217
217
  type: Re.COMMAND,
218
218
  id: "sheet.command.add-uniqueValues-conditional-rule",
219
219
  handler(e, t) {
@@ -350,7 +350,7 @@ const Fo = [Br.id, De.id, nt.id, Ye.id, Ln.id], Za = (e) => {
350
350
  if (!h) return;
351
351
  const f = h.getActiveSheet();
352
352
  if (!f) return;
353
- const m = (i.getSubunitRules(h.getUnitId(), f.getSheetId()) || []).filter((I) => I.ranges.some((v) => u.some((_) => Ut.intersects(_, v))));
353
+ const m = (i.getSubunitRules(h.getUnitId(), f.getSheetId()) || []).filter((I) => I.ranges.some((v) => u.some((_) => At.intersects(_, v))));
354
354
  c.next(!!m.length);
355
355
  })), l = new mt(
356
356
  (c) => Mo(
@@ -716,13 +716,13 @@ var Yi = { exports: {} }, Cn = {}, $r = { exports: {} };
716
716
  function Le(P) {
717
717
  return C(i(Oe, P(Oe)));
718
718
  }
719
- function Ae(P) {
719
+ function Ue(P) {
720
720
  var z = C(i(Se, P(Se)));
721
721
  return function(K, Z, Y) {
722
722
  return Y === void 0 && (Y = /* @__PURE__ */ new WeakMap()), z(K, Z, Y);
723
723
  };
724
724
  }
725
- n.circularDeepEqual = le, n.circularShallowEqual = me, n.createCustomCircularEqual = Ae, n.createCustomEqual = Le, n.deepEqual = We, n.sameValueZeroEqual = a, n.shallowEqual = J, Object.defineProperty(n, "__esModule", { value: !0 });
725
+ n.circularDeepEqual = le, n.circularShallowEqual = me, n.createCustomCircularEqual = Ue, n.createCustomEqual = Le, n.deepEqual = We, n.sameValueZeroEqual = a, n.shallowEqual = J, Object.defineProperty(n, "__esModule", { value: !0 });
726
726
  });
727
727
  })($r, $r.exports);
728
728
  var Zr = $r.exports, B = {}, Dl = function(t, n, r) {
@@ -751,7 +751,7 @@ B.moveElement = an;
751
751
  B.moveElementAwayFromCollision = Nr;
752
752
  B.noop = void 0;
753
753
  B.perc = zl;
754
- B.resizeItemInDirection = Ul;
754
+ B.resizeItemInDirection = Al;
755
755
  B.setTopLeft = ql;
756
756
  B.setTransform = kl;
757
757
  B.sortLayoutItems = so;
@@ -985,7 +985,7 @@ const ns = (e, t, n, r) => e + n > r ? t : n, rs = (e, t, n) => e < 0 ? t : n, o
985
985
  return io(arguments.length <= 0 ? void 0 : arguments[0], ro(...arguments));
986
986
  }, Wl = function() {
987
987
  return io(arguments.length <= 0 ? void 0 : arguments[0], oo(...arguments));
988
- }, Al = {
988
+ }, Ul = {
989
989
  n: no,
990
990
  ne: Hl,
991
991
  e: ro,
@@ -995,8 +995,8 @@ const ns = (e, t, n, r) => e + n > r ? t : n, rs = (e, t, n) => e < 0 ? t : n, o
995
995
  w: oo,
996
996
  nw: Vl
997
997
  };
998
- function Ul(e, t, n, r) {
999
- const o = Al[e];
998
+ function Al(e, t, n, r) {
999
+ const o = Ul[e];
1000
1000
  return o ? o(t, {
1001
1001
  ...t,
1002
1002
  ...n
@@ -1275,7 +1275,7 @@ de.outerWidth = gc;
1275
1275
  de.removeClassName = ms;
1276
1276
  de.removeEvent = hc;
1277
1277
  de.removeUserSelectStyles = xc;
1278
- var je = Ze, Ao = uc(Ot);
1278
+ var je = Ze, Uo = uc(Ot);
1279
1279
  function hs(e) {
1280
1280
  if (typeof WeakMap != "function") return null;
1281
1281
  var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
@@ -1363,7 +1363,7 @@ function yc(e, t, n) {
1363
1363
  function bc(e, t) {
1364
1364
  const n = ao(e, t, "px");
1365
1365
  return {
1366
- [(0, Ao.browserPrefixToKey)("transform", Ao.default)]: n
1366
+ [(0, Uo.browserPrefixToKey)("transform", Uo.default)]: n
1367
1367
  };
1368
1368
  }
1369
1369
  function Sc(e, t) {
@@ -1565,7 +1565,7 @@ function zc(e, t) {
1565
1565
  }
1566
1566
  return (t === "string" ? String : Number)(e);
1567
1567
  }
1568
- const Ue = {
1568
+ const Ae = {
1569
1569
  touch: {
1570
1570
  start: "touchstart",
1571
1571
  move: "touchmove",
@@ -1577,7 +1577,7 @@ const Ue = {
1577
1577
  stop: "mouseup"
1578
1578
  }
1579
1579
  };
1580
- let lt = Ue.mouse, nr = class extends br.Component {
1580
+ let lt = Ae.mouse, nr = class extends br.Component {
1581
1581
  constructor() {
1582
1582
  super(...arguments), Ie(this, "dragging", !1), Ie(this, "lastX", NaN), Ie(this, "lastY", NaN), Ie(this, "touchIdentifier", null), Ie(this, "mounted", !1), Ie(this, "handleDragStart", (t) => {
1583
1583
  if (this.props.onMouseDown(t), !this.props.allowAnyClick && typeof t.button == "number" && t.button !== 0) return !1;
@@ -1638,12 +1638,12 @@ let lt = Ue.mouse, nr = class extends br.Component {
1638
1638
  if (this.props.onStop(t, i) === !1 || this.mounted === !1) return !1;
1639
1639
  const l = this.findDOMNode();
1640
1640
  l && this.props.enableUserSelectHack && (0, we.removeUserSelectStyles)(l.ownerDocument), (0, en.default)("DraggableCore: handleDragStop: %j", i), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, l && ((0, en.default)("DraggableCore: Removing handlers"), (0, we.removeEvent)(l.ownerDocument, lt.move, this.handleDrag), (0, we.removeEvent)(l.ownerDocument, lt.stop, this.handleDragStop));
1641
- }), Ie(this, "onMouseDown", (t) => (lt = Ue.mouse, this.handleDragStart(t))), Ie(this, "onMouseUp", (t) => (lt = Ue.mouse, this.handleDragStop(t))), Ie(this, "onTouchStart", (t) => (lt = Ue.touch, this.handleDragStart(t))), Ie(this, "onTouchEnd", (t) => (lt = Ue.touch, this.handleDragStop(t)));
1641
+ }), Ie(this, "onMouseDown", (t) => (lt = Ae.mouse, this.handleDragStart(t))), Ie(this, "onMouseUp", (t) => (lt = Ae.mouse, this.handleDragStop(t))), Ie(this, "onTouchStart", (t) => (lt = Ae.touch, this.handleDragStart(t))), Ie(this, "onTouchEnd", (t) => (lt = Ae.touch, this.handleDragStop(t)));
1642
1642
  }
1643
1643
  componentDidMount() {
1644
1644
  this.mounted = !0;
1645
1645
  const t = this.findDOMNode();
1646
- t && (0, we.addEvent)(t, Ue.touch.start, this.onTouchStart, {
1646
+ t && (0, we.addEvent)(t, Ae.touch.start, this.onTouchStart, {
1647
1647
  passive: !1
1648
1648
  });
1649
1649
  }
@@ -1654,7 +1654,7 @@ let lt = Ue.mouse, nr = class extends br.Component {
1654
1654
  const {
1655
1655
  ownerDocument: n
1656
1656
  } = t;
1657
- (0, we.removeEvent)(n, Ue.mouse.move, this.handleDrag), (0, we.removeEvent)(n, Ue.touch.move, this.handleDrag), (0, we.removeEvent)(n, Ue.mouse.stop, this.handleDragStop), (0, we.removeEvent)(n, Ue.touch.stop, this.handleDragStop), (0, we.removeEvent)(t, Ue.touch.start, this.onTouchStart, {
1657
+ (0, we.removeEvent)(n, Ae.mouse.move, this.handleDrag), (0, we.removeEvent)(n, Ae.touch.move, this.handleDrag), (0, we.removeEvent)(n, Ae.mouse.stop, this.handleDragStop), (0, we.removeEvent)(n, Ae.touch.stop, this.handleDragStop), (0, we.removeEvent)(t, Ae.touch.start, this.onTouchStart, {
1658
1658
  passive: !1
1659
1659
  }), this.props.enableUserSelectHack && (0, we.removeUserSelectStyles)(n);
1660
1660
  }
@@ -2153,7 +2153,7 @@ var Vc = Fc(Fe);
2153
2153
  function Fc(e) {
2154
2154
  return e && e.__esModule ? e : { default: e };
2155
2155
  }
2156
- function Uo(e, t) {
2156
+ function Ao(e, t) {
2157
2157
  var n = Object.keys(e);
2158
2158
  if (Object.getOwnPropertySymbols) {
2159
2159
  var r = Object.getOwnPropertySymbols(e);
@@ -2166,22 +2166,22 @@ function Uo(e, t) {
2166
2166
  function ko(e) {
2167
2167
  for (var t = 1; t < arguments.length; t++) {
2168
2168
  var n = arguments[t] != null ? arguments[t] : {};
2169
- t % 2 ? Uo(Object(n), !0).forEach(function(r) {
2169
+ t % 2 ? Ao(Object(n), !0).forEach(function(r) {
2170
2170
  Wc(e, r, n[r]);
2171
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Uo(Object(n)).forEach(function(r) {
2171
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ao(Object(n)).forEach(function(r) {
2172
2172
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
2173
2173
  });
2174
2174
  }
2175
2175
  return e;
2176
2176
  }
2177
2177
  function Wc(e, t, n) {
2178
- return t = Ac(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
2178
+ return t = Uc(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
2179
2179
  }
2180
- function Ac(e) {
2181
- var t = Uc(e, "string");
2180
+ function Uc(e) {
2181
+ var t = Ac(e, "string");
2182
2182
  return typeof t == "symbol" ? t : String(t);
2183
2183
  }
2184
- function Uc(e, t) {
2184
+ function Ac(e, t) {
2185
2185
  if (typeof e != "object" || e === null) return e;
2186
2186
  var n = e[Symbol.toPrimitive];
2187
2187
  if (n !== void 0) {
@@ -2197,7 +2197,7 @@ function kc(e, t) {
2197
2197
  var wn = {};
2198
2198
  wn.__esModule = !0;
2199
2199
  wn.resizableProps = void 0;
2200
- var A = qc(dt);
2200
+ var U = qc(dt);
2201
2201
  function qc(e) {
2202
2202
  return e && e.__esModule ? e : { default: e };
2203
2203
  }
@@ -2209,30 +2209,30 @@ var Bc = {
2209
2209
  * 'y' - only allows the height to be changed
2210
2210
  * 'none' - disables resizing altogether
2211
2211
  * */
2212
- axis: A.default.oneOf(["both", "x", "y", "none"]),
2213
- className: A.default.string,
2212
+ axis: U.default.oneOf(["both", "x", "y", "none"]),
2213
+ className: U.default.string,
2214
2214
  /*
2215
2215
  * Require that one and only one child be present.
2216
2216
  * */
2217
- children: A.default.element.isRequired,
2217
+ children: U.default.element.isRequired,
2218
2218
  /*
2219
2219
  * These will be passed wholesale to react-draggable's DraggableCore
2220
2220
  * */
2221
- draggableOpts: A.default.shape({
2222
- allowAnyClick: A.default.bool,
2223
- cancel: A.default.string,
2224
- children: A.default.node,
2225
- disabled: A.default.bool,
2226
- enableUserSelectHack: A.default.bool,
2227
- offsetParent: A.default.node,
2228
- grid: A.default.arrayOf(A.default.number),
2229
- handle: A.default.string,
2230
- nodeRef: A.default.object,
2231
- onStart: A.default.func,
2232
- onDrag: A.default.func,
2233
- onStop: A.default.func,
2234
- onMouseDown: A.default.func,
2235
- scale: A.default.number
2221
+ draggableOpts: U.default.shape({
2222
+ allowAnyClick: U.default.bool,
2223
+ cancel: U.default.string,
2224
+ children: U.default.node,
2225
+ disabled: U.default.bool,
2226
+ enableUserSelectHack: U.default.bool,
2227
+ offsetParent: U.default.node,
2228
+ grid: U.default.arrayOf(U.default.number),
2229
+ handle: U.default.string,
2230
+ nodeRef: U.default.object,
2231
+ onStart: U.default.func,
2232
+ onDrag: U.default.func,
2233
+ onStop: U.default.func,
2234
+ onMouseDown: U.default.func,
2235
+ scale: U.default.number
2236
2236
  }),
2237
2237
  /*
2238
2238
  * Initial height
@@ -2243,39 +2243,39 @@ var Bc = {
2243
2243
  var o = n[0];
2244
2244
  if (o.axis === "both" || o.axis === "y") {
2245
2245
  var i;
2246
- return (i = A.default.number).isRequired.apply(i, n);
2246
+ return (i = U.default.number).isRequired.apply(i, n);
2247
2247
  }
2248
- return A.default.number.apply(A.default, n);
2248
+ return U.default.number.apply(U.default, n);
2249
2249
  },
2250
2250
  /*
2251
2251
  * Customize cursor resize handle
2252
2252
  * */
2253
- handle: A.default.oneOfType([A.default.node, A.default.func]),
2253
+ handle: U.default.oneOfType([U.default.node, U.default.func]),
2254
2254
  /*
2255
2255
  * If you change this, be sure to update your css
2256
2256
  * */
2257
- handleSize: A.default.arrayOf(A.default.number),
2258
- lockAspectRatio: A.default.bool,
2257
+ handleSize: U.default.arrayOf(U.default.number),
2258
+ lockAspectRatio: U.default.bool,
2259
2259
  /*
2260
2260
  * Max X & Y measure
2261
2261
  * */
2262
- maxConstraints: A.default.arrayOf(A.default.number),
2262
+ maxConstraints: U.default.arrayOf(U.default.number),
2263
2263
  /*
2264
2264
  * Min X & Y measure
2265
2265
  * */
2266
- minConstraints: A.default.arrayOf(A.default.number),
2266
+ minConstraints: U.default.arrayOf(U.default.number),
2267
2267
  /*
2268
2268
  * Called on stop resize event
2269
2269
  * */
2270
- onResizeStop: A.default.func,
2270
+ onResizeStop: U.default.func,
2271
2271
  /*
2272
2272
  * Called on start resize event
2273
2273
  * */
2274
- onResizeStart: A.default.func,
2274
+ onResizeStart: U.default.func,
2275
2275
  /*
2276
2276
  * Called on resize event
2277
2277
  * */
2278
- onResize: A.default.func,
2278
+ onResize: U.default.func,
2279
2279
  /*
2280
2280
  * Defines which resize handles should be rendered (default: 'se')
2281
2281
  * 's' - South handle (bottom-center)
@@ -2287,11 +2287,11 @@ var Bc = {
2287
2287
  * 'se' - Southeast handle (bottom-right)
2288
2288
  * 'ne' - Northeast handle (top-center)
2289
2289
  * */
2290
- resizeHandles: A.default.arrayOf(A.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
2290
+ resizeHandles: U.default.arrayOf(U.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
2291
2291
  /*
2292
2292
  * If `transform: scale(n)` is set on the parent, this should be set to `n`.
2293
2293
  * */
2294
- transformScale: A.default.number,
2294
+ transformScale: U.default.number,
2295
2295
  /*
2296
2296
  * Initial width
2297
2297
  */
@@ -2301,9 +2301,9 @@ var Bc = {
2301
2301
  var o = n[0];
2302
2302
  if (o.axis === "both" || o.axis === "x") {
2303
2303
  var i;
2304
- return (i = A.default.number).isRequired.apply(i, n);
2304
+ return (i = U.default.number).isRequired.apply(i, n);
2305
2305
  }
2306
- return A.default.number.apply(A.default, n);
2306
+ return U.default.number.apply(U.default, n);
2307
2307
  }
2308
2308
  };
2309
2309
  wn.resizableProps = Bc;
@@ -4130,14 +4130,14 @@ function Jo(e) {
4130
4130
  return r + Wn(i);
4131
4131
  }, 0);
4132
4132
  }
4133
- function Au(e) {
4133
+ function Uu(e) {
4134
4134
  for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, o = t; r < o.length; r++) {
4135
4135
  var i = o[r], s = e["padding-" + i];
4136
4136
  n[i] = Wn(s);
4137
4137
  }
4138
4138
  return n;
4139
4139
  }
4140
- function Uu(e) {
4140
+ function Au(e) {
4141
4141
  var t = e.getBBox();
4142
4142
  return ar(0, 0, t.width, t.height);
4143
4143
  }
@@ -4145,7 +4145,7 @@ function ku(e) {
4145
4145
  var t = e.clientWidth, n = e.clientHeight;
4146
4146
  if (!t && !n)
4147
4147
  return Ds;
4148
- var r = kt(e).getComputedStyle(e), o = Au(r), i = o.left + o.right, s = o.top + o.bottom, l = Wn(r.width), a = Wn(r.height);
4148
+ var r = kt(e).getComputedStyle(e), o = Uu(r), i = o.left + o.right, s = o.top + o.bottom, l = Wn(r.width), a = Wn(r.height);
4149
4149
  if (r.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= Jo(r, "left", "right") + i), Math.round(a + s) !== n && (a -= Jo(r, "top", "bottom") + s)), !Bu(e)) {
4150
4150
  var c = Math.round(l + i) - t, u = Math.round(a + s) - n;
4151
4151
  Math.abs(c) !== 1 && (l -= c), Math.abs(u) !== 1 && (a -= u);
@@ -4163,7 +4163,7 @@ function Bu(e) {
4163
4163
  return e === kt(e).document.documentElement;
4164
4164
  }
4165
4165
  function Gu(e) {
4166
- return Wr ? qu(e) ? Uu(e) : ku(e) : Ds;
4166
+ return Wr ? qu(e) ? Au(e) : ku(e) : Ds;
4167
4167
  }
4168
4168
  function Xu(e) {
4169
4169
  var t = e.x, n = e.y, r = e.width, o = e.height, i = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(i.prototype);
@@ -4308,15 +4308,15 @@ function od(e, t) {
4308
4308
  }
4309
4309
  return r.default = e, n && n.set(e, r), r;
4310
4310
  }
4311
- function Ar() {
4312
- return Ar = Object.assign ? Object.assign.bind() : function(e) {
4311
+ function Ur() {
4312
+ return Ur = Object.assign ? Object.assign.bind() : function(e) {
4313
4313
  for (var t = 1; t < arguments.length; t++) {
4314
4314
  var n = arguments[t];
4315
4315
  for (var r in n)
4316
4316
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
4317
4317
  }
4318
4318
  return e;
4319
- }, Ar.apply(this, arguments);
4319
+ }, Ur.apply(this, arguments);
4320
4320
  }
4321
4321
  function Nt(e, t, n) {
4322
4322
  return t = id(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
@@ -4370,7 +4370,7 @@ function ld(e) {
4370
4370
  className: (0, rd.default)(this.props.className, ad),
4371
4371
  style: this.props.style,
4372
4372
  ref: this.elementRef
4373
- }) : /* @__PURE__ */ Tn.createElement(e, Ar({
4373
+ }) : /* @__PURE__ */ Tn.createElement(e, Ur({
4374
4374
  innerRef: this.elementRef
4375
4375
  }, o, this.state));
4376
4376
  }
@@ -4386,7 +4386,7 @@ function ld(e) {
4386
4386
  e.exports = Cn.default, e.exports.utils = B, e.exports.calculateUtils = Ke, e.exports.Responsive = sr.default, e.exports.Responsive.utils = Et, e.exports.WidthProvider = yo.default;
4387
4387
  })(Yi);
4388
4388
  var cd = Yi.exports;
4389
- const ud = /* @__PURE__ */ Kr(cd), An = {
4389
+ const ud = /* @__PURE__ */ Kr(cd), Un = {
4390
4390
  type: Re.COMMAND,
4391
4391
  id: "sheet.command.delete-conditional-rule",
4392
4392
  handler(e, t) {
@@ -4581,7 +4581,7 @@ const Ld = (e) => {
4581
4581
  if (!J)
4582
4582
  return [];
4583
4583
  const ie = J.range;
4584
- return H.filter((pe) => pe.ranges.some((me) => Ut.intersects(me, ie)));
4584
+ return H.filter((pe) => pe.ranges.some((me) => At.intersects(me, ie)));
4585
4585
  } else if (m === "2")
4586
4586
  return H;
4587
4587
  return [];
@@ -4589,9 +4589,9 @@ const Ld = (e) => {
4589
4589
  const ie = r.getCurrentUnitForType(G.UNIVER_SHEET).getActiveSheet();
4590
4590
  return H.map((pe) => {
4591
4591
  const me = pe.ranges;
4592
- return (me == null ? void 0 : me.some((Ae) => {
4592
+ return (me == null ? void 0 : me.some((Ue) => {
4593
4593
  var Y, se;
4594
- const { startRow: P, startColumn: z, endRow: K, endColumn: Z } = Ae;
4594
+ const { startRow: P, startColumn: z, endRow: K, endColumn: Z } = Ue;
4595
4595
  for (let ce = P; ce <= K; ce++)
4596
4596
  for (let _e = z; _e <= Z; _e++) {
4597
4597
  const te = (se = (Y = ie == null ? void 0 : ie.getCell(ce, _e)) == null ? void 0 : Y.selectionProtection) == null ? void 0 : se[0];
@@ -4614,8 +4614,8 @@ const Ld = (e) => {
4614
4614
  return;
4615
4615
  const H = new mt((J) => {
4616
4616
  const ie = [ba.id, De.id, nt.id, Ye.id, Ln.id], le = i.onCommandExecuted((pe) => {
4617
- const { id: me, params: Le } = pe, Ae = r.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId();
4618
- ie.includes(me) && Le.unitId === Ae && J.next(null);
4617
+ const { id: me, params: Le } = pe, Ue = r.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId();
4618
+ ie.includes(me) && Le.unitId === Ue && J.next(null);
4619
4619
  });
4620
4620
  return () => le.dispose();
4621
4621
  }).pipe(No(16)).subscribe(() => {
@@ -4642,11 +4642,11 @@ const Ld = (e) => {
4642
4642
  }, 150);
4643
4643
  const Le = () => {
4644
4644
  me && clearTimeout(me), me = null;
4645
- }, Ae = (P) => {
4645
+ }, Ue = (P) => {
4646
4646
  P.propertyName === "width" && (Le(), le.next());
4647
4647
  };
4648
- return pe.addEventListener("transitionend", Ae), () => {
4649
- Le(), pe.removeEventListener("transitionend", Ae);
4648
+ return pe.addEventListener("transitionend", Ue), () => {
4649
+ Le(), pe.removeEventListener("transitionend", Ue);
4650
4650
  };
4651
4651
  }
4652
4652
  }).pipe(No(16)).subscribe(() => {
@@ -4661,7 +4661,7 @@ const Ld = (e) => {
4661
4661
  const J = r.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId(), ie = (le = r.getCurrentUnitForType(G.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : le.getSheetId();
4662
4662
  if (!J || !ie)
4663
4663
  throw new Error("No active sheet found");
4664
- i.executeCommand(An.id, { unitId: J, subUnitId: ie, cfId: H.cfId });
4664
+ i.executeCommand(Un.id, { unitId: J, subUnitId: ie, cfId: H.cfId });
4665
4665
  }, b = (H, J) => {
4666
4666
  C(J.y);
4667
4667
  }, T = (H, J, ie) => {
@@ -4673,13 +4673,13 @@ const Ld = (e) => {
4673
4673
  const me = (z) => {
4674
4674
  const K = $.length;
4675
4675
  return Math.min(K - 1, Math.max(0, z));
4676
- }, Le = $[me(J.y)].cfId, Ae = $[me(ie.y)].cfId;
4677
- Le !== Ae && i.executeCommand(So.id, { unitId: le, subUnitId: pe, start: { id: Le, type: "self" }, end: { id: Ae, type: ie.y > J.y ? "after" : "before" } });
4676
+ }, Le = $[me(J.y)].cfId, Ue = $[me(ie.y)].cfId;
4677
+ Le !== Ue && i.executeCommand(So.id, { unitId: le, subUnitId: pe, start: { id: Le, type: "self" }, end: { id: Ue, type: ie.y > J.y ? "after" : "before" } });
4678
4678
  }, ee = () => {
4679
4679
  e.onCreate();
4680
4680
  }, Oe = () => {
4681
4681
  m === "2" ? i.executeCommand(Gn.id) : m === "1" && $.map((J) => ({ unitId: c, subUnitId: h, cfId: J.cfId })).forEach((J) => {
4682
- i.executeCommand(An.id, J);
4682
+ i.executeCommand(Un.id, J);
4683
4683
  });
4684
4684
  }, Se = $.map((H, J) => ({ i: H.cfId, x: 0, w: 12, y: J, h: 1, isResizable: !1 })), Ce = E($), We = Ce == null ? void 0 : Ce.some((H) => H.disable);
4685
4685
  return /* @__PURE__ */ d.jsxs("div", { className: ge.cfRuleList, children: [
@@ -4789,9 +4789,9 @@ const Ld = (e) => {
4789
4789
  ] })
4790
4790
  }
4791
4791
  ));
4792
- }, Ad = "univer-cf-rule-style-editor", Ud = "univer-cf-preview-wrap", kd = "univer-text", qd = "univer-position-relative", Bd = "univer-btn-list", Gd = "univer-util-item", Xd = "univer-icon-set", Yd = "univer-render-config", Kd = "univer-flex", Zd = "univer-width45", Jd = "univer-icon-wrap", Qd = "univer-icon", ef = "univer-dropdown-icon", tf = "univer-error-input", nf = "univer-error-text", rf = "univer-icon-group-list", of = "univer-title", sf = "univer-group", af = "univer-item-content", lf = "univer-item-wrap", cf = "univer-item", uf = "univer-icon-item-list-wrap", df = "univer-none", ff = "univer-icon-item-list", hf = "univer-width100", pf = "univer-stress", D = {
4793
- cfRuleStyleEditor: Ad,
4794
- cfPreviewWrap: Ud,
4792
+ }, Ud = "univer-cf-rule-style-editor", Ad = "univer-cf-preview-wrap", kd = "univer-text", qd = "univer-position-relative", Bd = "univer-btn-list", Gd = "univer-util-item", Xd = "univer-icon-set", Yd = "univer-render-config", Kd = "univer-flex", Zd = "univer-width45", Jd = "univer-icon-wrap", Qd = "univer-icon", ef = "univer-dropdown-icon", tf = "univer-error-input", nf = "univer-error-text", rf = "univer-icon-group-list", of = "univer-title", sf = "univer-group", af = "univer-item-content", lf = "univer-item-wrap", cf = "univer-item", uf = "univer-icon-item-list-wrap", df = "univer-none", ff = "univer-icon-item-list", hf = "univer-width100", pf = "univer-stress", D = {
4793
+ cfRuleStyleEditor: Ud,
4794
+ cfPreviewWrap: Ad,
4795
4795
  text: kd,
4796
4796
  positionRelative: qd,
4797
4797
  btnList: Bd,
@@ -4818,14 +4818,14 @@ const Ld = (e) => {
4818
4818
  stress: pf
4819
4819
  }, gt = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), Ir = (e) => {
4820
4820
  var h;
4821
- const { type: t, className: n, onChange: r, id: o, value: i } = e, s = oe(re), l = s.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId(), a = (h = s.getCurrentUnitForType(G.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : h.getSheetId(), c = be(() => String(i).startsWith("=") ? String(i) : "=", [i]), u = be(() => [U.max, U.min, "none"].includes(t) ? { disabled: !0 } : [U.percent, U.percentile].includes(t) ? {
4821
+ const { type: t, className: n, onChange: r, id: o, value: i } = e, s = oe(re), l = s.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId(), a = (h = s.getCurrentUnitForType(G.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : h.getSheetId(), c = be(() => String(i).startsWith("=") ? String(i) : "=", [i]), u = be(() => [A.max, A.min, "none"].includes(t) ? { disabled: !0 } : [A.percent, A.percentile].includes(t) ? {
4822
4822
  min: 0,
4823
4823
  max: 100
4824
4824
  } : {
4825
4825
  min: Number.MIN_SAFE_INTEGER,
4826
4826
  max: Number.MAX_SAFE_INTEGER
4827
4827
  }, [t]);
4828
- return t === U.formula ? /* @__PURE__ */ d.jsx(
4828
+ return t === A.formula ? /* @__PURE__ */ d.jsx(
4829
4829
  Bn,
4830
4830
  {
4831
4831
  openForSheetSubUnitId: a,
@@ -4842,9 +4842,9 @@ const Ld = (e) => {
4842
4842
  ) : /* @__PURE__ */ d.jsx(St, { className: n, value: Number(e.value) || 0, onChange: (f) => e.onChange(f || 0), ...u });
4843
4843
  }, gf = (e) => {
4844
4844
  var W;
4845
- const { interceptorManager: t } = e, n = oe($e), r = ((W = e.rule) == null ? void 0 : W.type) === L.colorScale ? e.rule : void 0, o = [gt(U.num, n), gt(U.percent, n), gt(U.percentile, n), gt(U.formula, n)], i = [gt(U.min, n), ...o], s = [gt("none", n), ...o], l = [gt(U.max, n), ...o], [a, c] = M(() => {
4845
+ const { interceptorManager: t } = e, n = oe($e), r = ((W = e.rule) == null ? void 0 : W.type) === L.colorScale ? e.rule : void 0, o = [gt(A.num, n), gt(A.percent, n), gt(A.percentile, n), gt(A.formula, n)], i = [gt(A.min, n), ...o], s = [gt("none", n), ...o], l = [gt(A.max, n), ...o], [a, c] = M(() => {
4846
4846
  var T;
4847
- const b = U.min;
4847
+ const b = A.min;
4848
4848
  return r && ((T = r.config[0]) == null ? void 0 : T.value.type) || b;
4849
4849
  }), [u, h] = M(() => {
4850
4850
  var T;
@@ -4852,7 +4852,7 @@ const Ld = (e) => {
4852
4852
  return !r || r.config.length !== 3 ? b : ((T = r.config[1]) == null ? void 0 : T.value.type) || b;
4853
4853
  }), [f, g] = M(() => {
4854
4854
  var T;
4855
- const b = U.max;
4855
+ const b = A.max;
4856
4856
  return r && ((T = r.config[r.config.length - 1]) == null ? void 0 : T.value.type) || b;
4857
4857
  }), [m, S] = M(() => {
4858
4858
  if (!r)
@@ -5022,14 +5022,14 @@ const Ld = (e) => {
5022
5022
  ] });
5023
5023
  }, jt = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), ei = (e) => {
5024
5024
  var f;
5025
- const { onChange: t, className: n, value: r, type: o, id: i, disabled: s = !1 } = e, l = oe(re), a = l.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId(), c = (f = l.getCurrentUnitForType(G.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), u = pn(r), h = be(() => [U.percentile, U.percent].includes(o) ? {
5025
+ const { onChange: t, className: n, value: r, type: o, id: i, disabled: s = !1 } = e, l = oe(re), a = l.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId(), c = (f = l.getCurrentUnitForType(G.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), u = pn(r), h = be(() => [A.percentile, A.percent].includes(o) ? {
5026
5026
  max: 100,
5027
5027
  min: 0
5028
5028
  } : {
5029
5029
  min: Number.MIN_SAFE_INTEGER,
5030
5030
  max: Number.MAX_SAFE_INTEGER
5031
5031
  }, [o]);
5032
- if (o === U.formula) {
5032
+ if (o === A.formula) {
5033
5033
  const g = String(u.current).startsWith("=") ? String(u.current) || "" : "=";
5034
5034
  return /* @__PURE__ */ d.jsx(
5035
5035
  Bn,
@@ -5073,7 +5073,7 @@ const Ld = (e) => {
5073
5073
  var T;
5074
5074
  const b = "#ffbe38";
5075
5075
  return r && ((T = r.config) == null ? void 0 : T.nativeColor) || b;
5076
- }), u = [jt(U.num, n), jt(U.percent, n), jt(U.percentile, n), jt(U.formula, n)], h = [jt(U.min, n), ...u], f = [jt(U.max, n), ...u], [g, m] = M(() => {
5076
+ }), u = [jt(A.num, n), jt(A.percent, n), jt(A.percentile, n), jt(A.formula, n)], h = [jt(A.min, n), ...u], f = [jt(A.max, n), ...u], [g, m] = M(() => {
5077
5077
  var T;
5078
5078
  const b = h[0].value;
5079
5079
  return r && ((T = r.config) == null ? void 0 : T.min.type) || b;
@@ -5086,13 +5086,13 @@ const Ld = (e) => {
5086
5086
  if (!r)
5087
5087
  return 0;
5088
5088
  const T = ((ee = r.config) == null ? void 0 : ee.min) || {};
5089
- return T.type === U.formula ? T.value || "=" : T.value || 0;
5089
+ return T.type === A.formula ? T.value || "=" : T.value || 0;
5090
5090
  }), [C, w] = M(() => {
5091
5091
  var ee;
5092
5092
  if (!r)
5093
5093
  return 100;
5094
5094
  const T = ((ee = r.config) == null ? void 0 : ee.max) || {};
5095
- return T.type === U.formula ? T.value || "=" : T.value === void 0 ? 100 : T.value;
5095
+ return T.type === A.formula ? T.value || "=" : T.value === void 0 ? 100 : T.value;
5096
5096
  }), [p, x] = M(() => r ? r.isShowValue === void 0 ? !0 : !!r.isShowValue : !0), R = (b) => ({ config: {
5097
5097
  min: { type: b.minValueType, value: b.minValue },
5098
5098
  max: { type: b.maxValueType, value: b.maxValue },
@@ -5720,9 +5720,9 @@ function Vf(e) {
5720
5720
  var Ff = Array.prototype, Wf = Function.prototype, zs = Object.prototype, Tr = wo["__core-js_shared__"], ri = function() {
5721
5721
  var e = /[^.]+$/.exec(Tr && Tr.keys && Tr.keys.IE_PROTO || "");
5722
5722
  return e ? "Symbol(src)_1." + e : "";
5723
- }(), Hs = Wf.toString, cr = zs.hasOwnProperty, Vs = zs.toString, Af = RegExp(
5723
+ }(), Hs = Wf.toString, cr = zs.hasOwnProperty, Vs = zs.toString, Uf = RegExp(
5724
5724
  "^" + Hs.call(cr).replace($f, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5725
- ), oi = wo.Symbol, Uf = Ff.splice, kf = Fs(wo, "Map"), mn = Fs(Object, "create"), ii = oi ? oi.prototype : void 0, si = ii ? ii.toString : void 0;
5725
+ ), oi = wo.Symbol, Af = Ff.splice, kf = Fs(wo, "Map"), mn = Fs(Object, "create"), ii = oi ? oi.prototype : void 0, si = ii ? ii.toString : void 0;
5726
5726
  function wt(e) {
5727
5727
  var t = -1, n = e ? e.length : 0;
5728
5728
  for (this.clear(); ++t < n; ) {
@@ -5772,7 +5772,7 @@ function Zf(e) {
5772
5772
  if (n < 0)
5773
5773
  return !1;
5774
5774
  var r = t.length - 1;
5775
- return n == r ? t.pop() : Uf.call(t, n, 1), !0;
5775
+ return n == r ? t.pop() : Af.call(t, n, 1), !0;
5776
5776
  }
5777
5777
  function Jf(e) {
5778
5778
  var t = this.__data__, n = ur(t, e);
@@ -5832,20 +5832,20 @@ function ur(e, t) {
5832
5832
  return -1;
5833
5833
  }
5834
5834
  function ah(e) {
5835
- if (!Un(e) || ph(e))
5835
+ if (!An(e) || ph(e))
5836
5836
  return !1;
5837
- var t = yh(e) || Vf(e) ? Af : Nf;
5837
+ var t = yh(e) || Vf(e) ? Uf : Nf;
5838
5838
  return t.test(vh(e));
5839
5839
  }
5840
5840
  function lh(e, t, n, r) {
5841
- if (!Un(e))
5841
+ if (!An(e))
5842
5842
  return e;
5843
5843
  t = fh(t, e) ? [t] : uh(t);
5844
5844
  for (var o = -1, i = t.length, s = i - 1, l = e; l != null && ++o < i; ) {
5845
5845
  var a = mh(t[o]), c = n;
5846
5846
  if (o != s) {
5847
5847
  var u = l[a];
5848
- c = void 0, c === void 0 && (c = Un(u) ? u : dh(t[o + 1]) ? [] : {});
5848
+ c = void 0, c === void 0 && (c = An(u) ? u : dh(t[o + 1]) ? [] : {});
5849
5849
  }
5850
5850
  sh(l, a, c), l = l[a];
5851
5851
  }
@@ -5860,7 +5860,7 @@ function ch(e) {
5860
5860
  return t == "0" && 1 / e == -Ls ? "-0" : t;
5861
5861
  }
5862
5862
  function uh(e) {
5863
- return As(e) ? e : gh(e);
5863
+ return Us(e) ? e : gh(e);
5864
5864
  }
5865
5865
  function dr(e, t) {
5866
5866
  var n = e.__data__;
@@ -5874,7 +5874,7 @@ function dh(e, t) {
5874
5874
  return t = t == null ? xf : t, !!t && (typeof e == "number" || jf.test(e)) && e > -1 && e % 1 == 0 && e < t;
5875
5875
  }
5876
5876
  function fh(e, t) {
5877
- if (As(e))
5877
+ if (Us(e))
5878
5878
  return !1;
5879
5879
  var n = typeof e;
5880
5880
  return n == "number" || n == "symbol" || n == "boolean" || e == null || Ro(e) ? !0 : Ef.test(e) || !Of.test(e) || t != null && e in Object(t);
@@ -5928,12 +5928,12 @@ xo.Cache = Pt;
5928
5928
  function Ws(e, t) {
5929
5929
  return e === t || e !== e && t !== t;
5930
5930
  }
5931
- var As = Array.isArray;
5931
+ var Us = Array.isArray;
5932
5932
  function yh(e) {
5933
- var t = Un(e) ? Vs.call(e) : "";
5933
+ var t = An(e) ? Vs.call(e) : "";
5934
5934
  return t == Rf || t == If;
5935
5935
  }
5936
- function Un(e) {
5936
+ function An(e) {
5937
5937
  var t = typeof e;
5938
5938
  return !!e && (t == "object" || t == "function");
5939
5939
  }
@@ -5951,7 +5951,7 @@ function Ch(e, t, n) {
5951
5951
  }
5952
5952
  var _h = Ch;
5953
5953
  const wh = /* @__PURE__ */ Kr(_h);
5954
- var xh = "Expected a function", Us = "__lodash_hash_undefined__", ks = 1 / 0, Rh = "[object Function]", Ih = "[object GeneratorFunction]", Th = "[object Symbol]", Oh = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Eh = /^\w*$/, Ph = /^\./, Dh = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $h = /[\\^$.*+?()[\]{}|]/g, Mh = /\\(\\)?/g, Nh = /^\[object .+?Constructor\]$/, jh = typeof et == "object" && et && et.Object === Object && et, Lh = typeof self == "object" && self && self.Object === Object && self, Io = jh || Lh || Function("return this")();
5954
+ var xh = "Expected a function", As = "__lodash_hash_undefined__", ks = 1 / 0, Rh = "[object Function]", Ih = "[object GeneratorFunction]", Th = "[object Symbol]", Oh = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Eh = /^\w*$/, Ph = /^\./, Dh = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $h = /[\\^$.*+?()[\]{}|]/g, Mh = /\\(\\)?/g, Nh = /^\[object .+?Constructor\]$/, jh = typeof et == "object" && et && et.Object === Object && et, Lh = typeof self == "object" && self && self.Object === Object && self, Io = jh || Lh || Function("return this")();
5955
5955
  function zh(e, t) {
5956
5956
  return e == null ? void 0 : e[t];
5957
5957
  }
@@ -5969,7 +5969,7 @@ var Vh = Array.prototype, Fh = Function.prototype, qs = Object.prototype, Or = I
5969
5969
  return e ? "Symbol(src)_1." + e : "";
5970
5970
  }(), Bs = Fh.toString, To = qs.hasOwnProperty, Gs = qs.toString, Wh = RegExp(
5971
5971
  "^" + Bs.call(To).replace($h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5972
- ), li = Io.Symbol, Ah = Vh.splice, Uh = Xs(Io, "Map"), vn = Xs(Object, "create"), ci = li ? li.prototype : void 0, ui = ci ? ci.toString : void 0;
5972
+ ), li = Io.Symbol, Uh = Vh.splice, Ah = Xs(Io, "Map"), vn = Xs(Object, "create"), ci = li ? li.prototype : void 0, ui = ci ? ci.toString : void 0;
5973
5973
  function xt(e) {
5974
5974
  var t = -1, n = e ? e.length : 0;
5975
5975
  for (this.clear(); ++t < n; ) {
@@ -5987,7 +5987,7 @@ function Bh(e) {
5987
5987
  var t = this.__data__;
5988
5988
  if (vn) {
5989
5989
  var n = t[e];
5990
- return n === Us ? void 0 : n;
5990
+ return n === As ? void 0 : n;
5991
5991
  }
5992
5992
  return To.call(t, e) ? t[e] : void 0;
5993
5993
  }
@@ -5997,7 +5997,7 @@ function Gh(e) {
5997
5997
  }
5998
5998
  function Xh(e, t) {
5999
5999
  var n = this.__data__;
6000
- return n[e] = vn && t === void 0 ? Us : t, this;
6000
+ return n[e] = vn && t === void 0 ? As : t, this;
6001
6001
  }
6002
6002
  xt.prototype.clear = kh;
6003
6003
  xt.prototype.delete = qh;
@@ -6019,7 +6019,7 @@ function Kh(e) {
6019
6019
  if (n < 0)
6020
6020
  return !1;
6021
6021
  var r = t.length - 1;
6022
- return n == r ? t.pop() : Ah.call(t, n, 1), !0;
6022
+ return n == r ? t.pop() : Uh.call(t, n, 1), !0;
6023
6023
  }
6024
6024
  function Zh(e) {
6025
6025
  var t = this.__data__, n = fr(t, e);
@@ -6047,7 +6047,7 @@ function Dt(e) {
6047
6047
  function ep() {
6048
6048
  this.__data__ = {
6049
6049
  hash: new xt(),
6050
- map: new (Uh || Jt)(),
6050
+ map: new (Ah || Jt)(),
6051
6051
  string: new xt()
6052
6052
  };
6053
6053
  }
@@ -6186,7 +6186,7 @@ var Sp = bp;
6186
6186
  const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || "", _p = (e) => {
6187
6187
  var i;
6188
6188
  const t = oe(re), n = t.getCurrentUnitForType(G.UNIVER_SHEET).getUnitId(), r = (i = t.getCurrentUnitForType(G.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : i.getSheetId(), o = be(() => e.error ? D.errorInput : "", [e.error]);
6189
- return /* @__PURE__ */ d.jsx("div", { className: D.positionRelative, children: e.type !== U.formula ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
6189
+ return /* @__PURE__ */ d.jsx("div", { className: D.positionRelative, children: e.type !== A.formula ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
6190
6190
  /* @__PURE__ */ d.jsx(St, { className: o, value: Number(e.value) || 0, onChange: (s) => e.onChange(s != null ? s : 0) }),
6191
6191
  e.error && /* @__PURE__ */ d.jsx("div", { className: D.errorText, children: e.error })
6192
6192
  ] }) : /* @__PURE__ */ d.jsx(
@@ -6206,7 +6206,7 @@ const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || ""
6206
6206
  ) });
6207
6207
  }, di = (e, t, n) => ({
6208
6208
  operator: F.greaterThan,
6209
- value: { type: U.num, value: (n.length - 1 - t) * 10 },
6209
+ value: { type: A.num, value: (n.length - 1 - t) * 10 },
6210
6210
  iconType: e,
6211
6211
  iconId: String(t)
6212
6212
  }), wp = Tt((e, t) => {
@@ -6248,10 +6248,10 @@ const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || ""
6248
6248
  { label: o.t(`sheet.cf.symbol.${F.greaterThan}`), value: F.greaterThan },
6249
6249
  { label: o.t(`sheet.cf.symbol.${F.greaterThanOrEqual}`), value: F.greaterThanOrEqual }
6250
6250
  ], s = [
6251
- { label: o.t(`sheet.cf.valueType.${U.num}`), value: U.num },
6252
- { label: o.t(`sheet.cf.valueType.${U.percent}`), value: U.percent },
6253
- { label: o.t(`sheet.cf.valueType.${U.percentile}`), value: U.percentile },
6254
- { label: o.t(`sheet.cf.valueType.${U.formula}`), value: U.formula }
6251
+ { label: o.t(`sheet.cf.valueType.${A.num}`), value: A.num },
6252
+ { label: o.t(`sheet.cf.valueType.${A.percent}`), value: A.percent },
6253
+ { label: o.t(`sheet.cf.valueType.${A.percentile}`), value: A.percentile },
6254
+ { label: o.t(`sheet.cf.valueType.${A.formula}`), value: A.formula }
6255
6255
  ], l = (h, f) => {
6256
6256
  t([String(f), "value", "value"], h);
6257
6257
  }, a = (h, f) => {
@@ -6262,7 +6262,7 @@ const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || ""
6262
6262
  t([String(f), "value", "type"], h);
6263
6263
  };
6264
6264
  return be(() => n.map((h, f) => {
6265
- const g = r[f], m = Zs(h.iconType, h.iconId), S = f === n.length - 1, I = f === 0, v = n[f - 1], _ = (v == null ? void 0 : v.value.type) === U.formula ? o.t("sheet.cf.valueType.formula") : v == null ? void 0 : v.value.value, C = (w, p) => {
6265
+ const g = r[f], m = Zs(h.iconType, h.iconId), S = f === n.length - 1, I = f === 0, v = n[f - 1], _ = (v == null ? void 0 : v.value.type) === A.formula ? o.t("sheet.cf.valueType.formula") : v == null ? void 0 : v.value.value, C = (w, p) => {
6266
6266
  const x = { ...h, iconId: p, iconType: w };
6267
6267
  t([String(f)], x);
6268
6268
  };
@@ -6333,7 +6333,7 @@ const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || ""
6333
6333
  const p = bt[s] || [];
6334
6334
  return new Array(p.length).fill("").map((x, R, y) => R === y.length - 1 ? {
6335
6335
  operator: F.lessThanOrEqual,
6336
- value: { type: U.num, value: Number.MAX_SAFE_INTEGER },
6336
+ value: { type: A.num, value: Number.MAX_SAFE_INTEGER },
6337
6337
  iconType: s,
6338
6338
  iconId: String(R)
6339
6339
  } : di(s, R, y));
@@ -6341,8 +6341,8 @@ const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || ""
6341
6341
  const p = a.map((x) => Zs(x.iconType, x.iconId));
6342
6342
  return /* @__PURE__ */ d.jsx("div", { className: D.iconWrap, children: p.map((x, R) => x ? /* @__PURE__ */ d.jsx("img", { className: D.icon, src: x }, R) : /* @__PURE__ */ d.jsx(Sn, { className: D.icon }, R)) });
6343
6343
  }, [a]), g = (p) => {
6344
- if (p.reduce((R, y, E) => R.preType && !R.result || p.length - 1 === E ? R : y.value.type === U.formula ? {
6345
- preType: U.formula,
6344
+ if (p.reduce((R, y, E) => R.preType && !R.result || p.length - 1 === E ? R : y.value.type === A.formula ? {
6345
+ preType: A.formula,
6346
6346
  result: !1
6347
6347
  } : R.preType ? {
6348
6348
  result: R.preType === y.value.type,
@@ -6350,7 +6350,7 @@ const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || ""
6350
6350
  } : {
6351
6351
  result: !0,
6352
6352
  preType: y.value.type
6353
- }, { result: !0, preType: "" }).result && [U.num, U.percent, U.percentile].includes(p[0].value.type)) {
6353
+ }, { result: !0, preType: "" }).result && [A.num, A.percent, A.percentile].includes(p[0].value.type)) {
6354
6354
  const R = {};
6355
6355
  return p.forEach((y, E, $) => {
6356
6356
  if (E - 1 < 0 || E === $.length - 1)
@@ -6551,7 +6551,7 @@ var Ep = Object.defineProperty, Pp = Object.getOwnPropertyDescriptor, Dp = (e, t
6551
6551
  return r && o && Ep(t, n, o), o;
6552
6552
  }, Lt = (e, t) => (n, r) => t(n, r, e);
6553
6553
  const Js = {}, pi = "sheet.conditional.formatting.panel";
6554
- let At = class extends rt {
6554
+ let Ut = class extends rt {
6555
6555
  constructor(t, n, r, o, i, s, l) {
6556
6556
  super();
6557
6557
  Qt(this, "_sidebarDisposable", null);
@@ -6582,21 +6582,21 @@ let At = class extends rt {
6582
6582
  this._componentManager.register(pi, Op);
6583
6583
  }
6584
6584
  };
6585
- At = Dp([
6586
- ot(it.Ready, At),
6585
+ Ut = Dp([
6586
+ ot(it.Ready, Ut),
6587
6587
  Lt(1, re),
6588
6588
  Lt(2, q(Rt)),
6589
6589
  Lt(3, q(Gr)),
6590
6590
  Lt(4, q(ja)),
6591
6591
  Lt(5, q(La)),
6592
6592
  Lt(6, q($e))
6593
- ], At);
6593
+ ], Ut);
6594
6594
  var Ne = /* @__PURE__ */ ((e) => (e[e.createRule = 1] = "createRule", e[e.viewRule = 2] = "viewRule", e[e.highlightCell = 3] = "highlightCell", e[e.rank = 4] = "rank", e[e.formula = 5] = "formula", e[e.colorScale = 6] = "colorScale", e[e.dataBar = 7] = "dataBar", e[e.icon = 8] = "icon", e[e.clearRangeRules = 9] = "clearRangeRules", e[e.clearWorkSheetRules = 10] = "clearWorkSheetRules", e))(Ne || {});
6595
6595
  const Po = {
6596
6596
  id: "sheet.operation.open.conditional.formatting.panel",
6597
6597
  type: Re.OPERATION,
6598
6598
  handler: (e, t) => {
6599
- const n = e.get(At), r = e.get(Gt), o = e.get(ue), i = r.getSelectionRanges() || [];
6599
+ const n = e.get(Ut), r = e.get(Gt), o = e.get(ue), i = r.getSelectionRanges() || [];
6600
6600
  switch (t.value) {
6601
6601
  case 3: {
6602
6602
  n.openPanel({ ...ft(), ranges: i });
@@ -6735,7 +6735,7 @@ un = Np([
6735
6735
  zt(1, q(Ri)),
6736
6736
  zt(2, q(re)),
6737
6737
  zt(3, q(Ka)),
6738
- zt(4, q(Ur)),
6738
+ zt(4, q(Ar)),
6739
6739
  zt(5, q(he))
6740
6740
  ], un);
6741
6741
  var jp = Object.defineProperty, Lp = Object.getOwnPropertyDescriptor, zp = (e, t, n, r) => {
@@ -6840,7 +6840,7 @@ let dn = class extends rt {
6840
6840
  };
6841
6841
  u.forEach((p) => {
6842
6842
  g && g.forValue((x, R, y) => {
6843
- const E = Ut.getPositionRange(
6843
+ const E = At.getPositionRange(
6844
6844
  {
6845
6845
  startRow: x,
6846
6846
  endRow: x,
@@ -6900,10 +6900,10 @@ let dn = class extends rt {
6900
6900
  };
6901
6901
  dn = zp([
6902
6902
  ot(it.Rendered, dn),
6903
- nn(0, q(Aa)),
6903
+ nn(0, q(Ua)),
6904
6904
  nn(1, q(he)),
6905
6905
  nn(2, q(Rt)),
6906
- nn(3, q(Ur)),
6906
+ nn(3, q(Ar)),
6907
6907
  nn(4, q(re))
6908
6908
  ], dn);
6909
6909
  var Hp = Object.defineProperty, Vp = Object.getOwnPropertyDescriptor, Fp = (e, t, n, r) => {
@@ -6966,8 +6966,8 @@ fn = Fp([
6966
6966
  Dn(2, q(Rt)),
6967
6967
  Dn(3, q(wa))
6968
6968
  ], fn);
6969
- var Wp = Object.defineProperty, Ap = Object.getOwnPropertyDescriptor, Up = (e, t, n, r) => {
6970
- for (var o = r > 1 ? void 0 : r ? Ap(t, n) : t, i = e.length - 1, s; i >= 0; i--)
6969
+ var Wp = Object.defineProperty, Up = Object.getOwnPropertyDescriptor, Ap = (e, t, n, r) => {
6970
+ for (var o = r > 1 ? void 0 : r ? Up(t, n) : t, i = e.length - 1, s; i >= 0; i--)
6971
6971
  (s = e[i]) && (o = (r ? s(t, n, o) : s(o)) || o);
6972
6972
  return r && o && Wp(t, n, o), o;
6973
6973
  }, Er = (e, t) => (n, r) => t(n, r, e);
@@ -6987,11 +6987,11 @@ let hn = class extends rt {
6987
6987
  );
6988
6988
  }
6989
6989
  };
6990
- hn = Up([
6990
+ hn = Ap([
6991
6991
  ot(it.Rendered, hn),
6992
6992
  Er(0, q($e)),
6993
6993
  Er(1, ue),
6994
- Er(2, q(Ua))
6994
+ Er(2, q(Aa))
6995
6995
  ], hn);
6996
6996
  var Qs = Object.defineProperty, kp = Object.getOwnPropertyDescriptor, qp = (e, t, n) => t in e ? Qs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bp = (e, t, n, r) => {
6997
6997
  for (var o = r > 1 ? void 0 : r ? kp(t, n) : t, i = e.length - 1, s; i >= 0; i--)
@@ -7011,10 +7011,10 @@ let kn = class extends _i {
7011
7011
  Vi,
7012
7012
  Fi,
7013
7013
  Wi,
7014
- Ai,
7015
7014
  Ui,
7015
+ Ai,
7016
7016
  Po,
7017
- An,
7017
+ Un,
7018
7018
  Co,
7019
7019
  So,
7020
7020
  lr,
@@ -7060,7 +7060,7 @@ let Mn = class extends rt {
7060
7060
  endRow: i.row
7061
7061
  };
7062
7062
  ut.foreach(s, (m, S) => {
7063
- const I = Ut.getPositionRange(
7063
+ const I = At.getPositionRange(
7064
7064
  {
7065
7065
  startRow: m,
7066
7066
  startColumn: S,
@@ -7068,7 +7068,7 @@ let Mn = class extends rt {
7068
7068
  endRow: m
7069
7069
  },
7070
7070
  h
7071
- ), v = Ut.getPositionRange(
7071
+ ), v = At.getPositionRange(
7072
7072
  {
7073
7073
  startRow: m,
7074
7074
  startColumn: S,
@@ -7169,7 +7169,7 @@ Mn = Yp([
7169
7169
  rn(1, q(re)),
7170
7170
  rn(2, q(ka)),
7171
7171
  rn(3, q(he)),
7172
- rn(4, q(Ur))
7172
+ rn(4, q(Ar))
7173
7173
  ], Mn);
7174
7174
  var Kp = Object.defineProperty, Zp = Object.getOwnPropertyDescriptor, Jp = (e, t, n, r) => {
7175
7175
  for (var o = r > 1 ? void 0 : r ? Zp(t, n) : t, i = e.length - 1, s; i >= 0; i--)
@@ -7240,7 +7240,7 @@ let jn = class extends rt {
7240
7240
  const l = this._conditionalFormattingRuleModel.getSubunitRules(i.getUnitId(), s.getSheetId());
7241
7241
  if (!l || !l.length)
7242
7242
  return r;
7243
- l.filter((a) => o.some((c) => a.ranges.some((u) => Ut.getIntersects(u, c)))).forEach((a) => {
7243
+ l.filter((a) => o.some((c) => a.ranges.some((u) => At.getIntersects(u, c)))).forEach((a) => {
7244
7244
  const u = new Ta().add(...a.ranges).subtract(...o).merge();
7245
7245
  if (u.length) {
7246
7246
  const h = {
@@ -7286,9 +7286,9 @@ var ta = Object.defineProperty, ng = Object.getOwnPropertyDescriptor, rg = (e, t
7286
7286
  let qn = class extends _i {
7287
7287
  constructor(e = {}, t, n) {
7288
7288
  super(), this._config = e, this._injector = t, this._commandService = n, this._config = bn.deepMerge({}, Js, this._config), this._initCommand(), this._injector.add([un]), this._injector.add([fn]), this._injector.add([dn]), this._injector.add([Mn]), this._injector.add([hn]), this._injector.add([
7289
- At,
7289
+ Ut,
7290
7290
  {
7291
- useFactory: () => this._injector.createInstance(At, this._config)
7291
+ useFactory: () => this._injector.createInstance(Ut, this._config)
7292
7292
  }
7293
7293
  ]), this._injector.add([Wt]), this._injector.add([Nn]), this._injector.add([jn]);
7294
7294
  }
@@ -7301,10 +7301,10 @@ let qn = class extends _i {
7301
7301
  Vi,
7302
7302
  Fi,
7303
7303
  Wi,
7304
- Ai,
7305
7304
  Ui,
7305
+ Ai,
7306
7306
  Po,
7307
- An,
7307
+ Un,
7308
7308
  Co,
7309
7309
  So,
7310
7310
  lr,
@@ -7323,8 +7323,23 @@ qn = og([
7323
7323
  vi(2, q(ue))
7324
7324
  ], qn);
7325
7325
  export {
7326
+ ji as AddAverageCfCommand,
7326
7327
  lr as AddCfCommand,
7328
+ Li as AddColorScaleConditionalRuleCommand,
7329
+ zi as AddDataBarConditionalRuleCommand,
7330
+ Hi as AddDuplicateValuesCfCommand,
7331
+ Vi as AddNumberCfCommand,
7332
+ Fi as AddRankCfCommand,
7333
+ Wi as AddTextCfCommand,
7334
+ Ui as AddTimePeriodCfCommand,
7335
+ Ai as AddUniqueValuesCfCommand,
7336
+ Yr as ClearRangeCfCommand,
7337
+ Gn as ClearWorksheetCfCommand,
7327
7338
  jn as ConditionalFormattingClearController,
7339
+ Un as DeleteCfCommand,
7340
+ So as MoveCfCommand,
7341
+ Po as OpenConditionalFormattingOperator,
7342
+ Co as SetCfCommand,
7328
7343
  kn as UniverSheetsConditionalFormattingMobileUIPlugin,
7329
7344
  qn as UniverSheetsConditionalFormattingUIPlugin
7330
7345
  };