@univerjs/sheets-conditional-formatting-ui 0.3.0 → 0.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
3
3
  var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
5
- import { CommandType, ICommandService, IUniverInstanceService, IUndoRedoService, ObjectMatrix, Range, sequenceExecute, ColorKit, BooleanNumber, OnLifecycle, LifecycleStages, Inject, LocaleService, Disposable, useDependency, Injector, UniverInstanceType, Rectangle, createInternalEditorID, Tools, get, set, createInterceptorKey, InterceptorManager, generateRandomId, InterceptorEffectEnum, toDisposable, DependentOn, Plugin, IConfigService, BuildTextUtils } from "@univerjs/core";
5
+ import { CommandType, ICommandService, IUniverInstanceService, IUndoRedoService, ObjectMatrix, Range, sequenceExecute, ColorKit, BooleanNumber, Inject, LocaleService, Disposable, useDependency, Injector, UniverInstanceType, Rectangle, createInternalEditorID, Tools, get, set, createInterceptorKey, InterceptorManager, generateRandomId, InterceptorEffectEnum, toDisposable, DependentOn, Plugin, IConfigService, BuildTextUtils, registerDependencies, touchDependencies } from "@univerjs/core";
6
6
  import { ConditionalFormattingRuleModel, CFRuleType, CFSubRuleType, AddConditionalRuleMutation, CFNumberOperator, setConditionalRuleMutationUndoFactory, SetConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory, DeleteConditionalRuleMutation, transformSupportSymmetryAnchor, MoveConditionalRuleMutationUndoFactory, MoveConditionalRuleMutation, getColorScaleFromValue, iconMap, DEFAULT_BG_COLOR, DEFAULT_FONT_COLOR, defaultDataBarPositiveColor, defaultDataBarNativeColor, AddConditionalRuleMutationUndoFactory, CFValueType, createDefaultValueByValueType, SHEET_CONDITIONAL_FORMATTING_PLUGIN, removeUndefinedAttr, createDefaultValue, CFTextOperator, CFTimePeriodOperator, iconGroup, getOppositeOperator, compareWithNumber, EMPTY_ICON_TYPE, createDefaultRule, ConditionalFormattingService, ConditionalFormattingViewModel, DEFAULT_PADDING, DEFAULT_WIDTH, isRangesEqual, UniverSheetsConditionalFormattingPlugin } from "@univerjs/sheets-conditional-formatting";
7
7
  import { getSheetCommandTarget, SheetsSelectionsService, findAllRectangle, createTopMatrixFromMatrix, SetWorksheetActiveOperation, SetSelectionsOperation, checkRangesEditablePermission, RemoveSheetMutation, setEndForRange, SheetInterceptorService, INTERCEPTOR_POINT, RefRangeService, handleDefaultRangeChangeWithEffectRefCommands, WorkbookEditablePermission, RangeProtectionPermissionEditPoint, WorksheetEditPermission, WorksheetSetCellStylePermission, ClearSelectionFormatCommand, ClearSelectionAllCommand, RangeMergeUtil } from "@univerjs/sheets";
8
8
  import { useObservable, ComponentManager, ILayoutService, useScrollYOverContainer, ISidebarService, MenuItemType, getMenuHiddenObservable, RibbonStartGroup, IMenuManagerService } from "@univerjs/ui";
@@ -10,7 +10,6 @@ import require$$0, { forwardRef, useRef, createElement, useMemo, useState, useEf
10
10
  import { Select, Tooltip, Dropdown, ColorPicker as ColorPicker$1, InputNumber, RadioGroup, Radio, Checkbox, Input, Button } from "@univerjs/design";
11
11
  import { useHighlightRange, SheetSkeletonManagerService, ISheetClipboardService, COPY_TYPE, rangeToDiscreteRange, PREDEFINED_HOOK_NAME, virtualizeDiscreteRanges, getRepeatRange, SheetPermissionInterceptorBaseController, IAutoFillService, APPLY_TYPE, getAutoFillRepeatRange, IEditorBridgeService, getCurrentRangeDisable$, IFormatPainterService, FormatPainterStatus } from "@univerjs/sheets-ui";
12
12
  import { serializeRange } from "@univerjs/engine-formula";
13
- import cl from "clsx";
14
13
  import require$$2$1 from "react-dom";
15
14
  import { Observable, debounceTime, merge } from "rxjs";
16
15
  import { TextEditor, RangeSelector } from "@univerjs/docs-ui";
@@ -327,11 +326,11 @@ var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
327
326
  */
328
327
  var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
329
328
  function q(c, a, g) {
330
- var b, d = {}, e = null, h = null;
331
- g !== void 0 && (e = "" + g), a.key !== void 0 && (e = "" + a.key), a.ref !== void 0 && (h = a.ref);
329
+ var b, d = {}, e2 = null, h = null;
330
+ g !== void 0 && (e2 = "" + g), a.key !== void 0 && (e2 = "" + a.key), a.ref !== void 0 && (h = a.ref);
332
331
  for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
333
332
  if (c && c.defaultProps) for (b in a = c.defaultProps, a) d[b] === void 0 && (d[b] = a[b]);
334
- return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
333
+ return { $$typeof: k, type: c, key: e2, ref: h, props: d, _owner: n.current };
335
334
  }
336
335
  __name(q, "q");
337
336
  reactJsxRuntime_production_min.Fragment = l;
@@ -366,12 +365,12 @@ var __assign = function() {
366
365
  }
367
366
  return t;
368
367
  }, __assign.apply(this, arguments);
369
- }, __rest = function(s, e) {
368
+ }, __rest = function(s, e2) {
370
369
  var t = {};
371
- for (var p2 in s) Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0 && (t[p2] = s[p2]);
370
+ for (var p2 in s) Object.prototype.hasOwnProperty.call(s, p2) && e2.indexOf(p2) < 0 && (t[p2] = s[p2]);
372
371
  if (s != null && typeof Object.getOwnPropertySymbols == "function")
373
372
  for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++)
374
- e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]) && (t[p2[i]] = s[p2[i]]);
373
+ e2.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]) && (t[p2[i]] = s[p2[i]]);
375
374
  return t;
376
375
  }, IconBase = forwardRef(function(props, ref) {
377
376
  var icon2 = props.icon, id = props.id, className = props.className, extend = props.extend, restProps = __rest(props, ["icon", "id", "className", "extend"]), cls = "univerjs-icon univerjs-icon-".concat(id, " ").concat(className || "").trim(), idSuffix = useRef("_".concat(generateShortUuid()));
@@ -635,7 +634,24 @@ var reactGridLayout = { exports: {} }, ReactGridLayout$1 = {}, fastEquals = { ex
635
634
  __name(createCustomCircularEqual, "createCustomCircularEqual"), exports2.circularDeepEqual = circularDeepEqual, exports2.circularShallowEqual = circularShallowEqual, exports2.createCustomCircularEqual = createCustomCircularEqual, exports2.createCustomEqual = createCustomEqual, exports2.deepEqual = deepEqual, exports2.sameValueZeroEqual = sameValueZeroEqual, exports2.shallowEqual = shallowEqual, Object.defineProperty(exports2, "__esModule", { value: !0 });
636
635
  });
637
636
  })(fastEquals, fastEquals.exports);
638
- var fastEqualsExports = fastEquals.exports, utils$1 = {}, fastRGLPropsEqual = /* @__PURE__ */ __name(function(a, b, isEqualImpl) {
637
+ var fastEqualsExports = fastEquals.exports, clsx$2 = { exports: {} };
638
+ function r$2(e2) {
639
+ var o, t, f2 = "";
640
+ if (typeof e2 == "string" || typeof e2 == "number") f2 += e2;
641
+ else if (typeof e2 == "object") if (Array.isArray(e2)) {
642
+ var n2 = e2.length;
643
+ for (o = 0; o < n2; o++) e2[o] && (t = r$2(e2[o])) && (f2 && (f2 += " "), f2 += t);
644
+ } else for (t in e2) e2[t] && (f2 && (f2 += " "), f2 += t);
645
+ return f2;
646
+ }
647
+ __name(r$2, "r$2");
648
+ function e() {
649
+ for (var e2, o, t = 0, f2 = "", n2 = arguments.length; t < n2; t++) (e2 = arguments[t]) && (o = r$2(e2)) && (f2 && (f2 += " "), f2 += o);
650
+ return f2;
651
+ }
652
+ __name(e, "e");
653
+ clsx$2.exports = e, clsx$2.exports.clsx = e;
654
+ var clsxExports = clsx$2.exports, utils$1 = {}, fastRGLPropsEqual = /* @__PURE__ */ __name(function(a, b, isEqualImpl) {
639
655
  return a === b ? !0 : a.className === b.className && isEqualImpl(a.style, b.style) && a.width === b.width && a.autoSize === b.autoSize && a.cols === b.cols && a.draggableCancel === b.draggableCancel && a.draggableHandle === b.draggableHandle && isEqualImpl(a.verticalCompact, b.verticalCompact) && isEqualImpl(a.compactType, b.compactType) && isEqualImpl(a.layout, b.layout) && isEqualImpl(a.margin, b.margin) && isEqualImpl(a.containerPadding, b.containerPadding) && a.rowHeight === b.rowHeight && a.maxRows === b.maxRows && a.isBounded === b.isBounded && a.isDraggable === b.isDraggable && a.isResizable === b.isResizable && a.allowOverlap === b.allowOverlap && a.preventCollision === b.preventCollision && a.useCSSTransforms === b.useCSSTransforms && a.transformScale === b.transformScale && a.isDroppable === b.isDroppable && isEqualImpl(a.resizeHandles, b.resizeHandles) && isEqualImpl(a.resizeHandle, b.resizeHandle) && a.onLayoutChange === b.onLayoutChange && a.onDragStart === b.onDragStart && a.onDrag === b.onDrag && a.onDragStop === b.onDragStop && a.onResizeStart === b.onResizeStart && a.onResize === b.onResize && a.onResizeStop === b.onResizeStop && a.onDrop === b.onDrop && isEqualImpl(a.droppingItem, b.droppingItem) && isEqualImpl(a.innerRef, b.innerRef);
640
656
  }, "fastRGLPropsEqual");
641
657
  Object.defineProperty(utils$1, "__esModule", {
@@ -1144,7 +1160,26 @@ var factoryWithThrowingShims = /* @__PURE__ */ __name(function() {
1144
1160
  return ReactPropTypes.PropTypes = ReactPropTypes, ReactPropTypes;
1145
1161
  }, "factoryWithThrowingShims");
1146
1162
  propTypes$1.exports = factoryWithThrowingShims();
1147
- var propTypesExports = propTypes$1.exports, cjs = { exports: {} }, Draggable$1 = {}, domFns = {}, shims = {};
1163
+ var propTypesExports = propTypes$1.exports, cjs = { exports: {} }, Draggable$1 = {};
1164
+ function r$1(e2) {
1165
+ var t, f2, n2 = "";
1166
+ if (typeof e2 == "string" || typeof e2 == "number") n2 += e2;
1167
+ else if (typeof e2 == "object") if (Array.isArray(e2)) for (t = 0; t < e2.length; t++) e2[t] && (f2 = r$1(e2[t])) && (n2 && (n2 += " "), n2 += f2);
1168
+ else for (t in e2) e2[t] && (n2 && (n2 += " "), n2 += t);
1169
+ return n2;
1170
+ }
1171
+ __name(r$1, "r$1");
1172
+ function clsx$1() {
1173
+ for (var e2, t, f2 = 0, n2 = ""; f2 < arguments.length; ) (e2 = arguments[f2++]) && (t = r$1(e2)) && (n2 && (n2 += " "), n2 += t);
1174
+ return n2;
1175
+ }
1176
+ __name(clsx$1, "clsx$1");
1177
+ const clsx_m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1178
+ __proto__: null,
1179
+ clsx: clsx$1,
1180
+ default: clsx$1
1181
+ }, Symbol.toStringTag, { value: "Module" })), require$$3 = /* @__PURE__ */ getAugmentedNamespace(clsx_m);
1182
+ var domFns = {}, shims = {};
1148
1183
  Object.defineProperty(shims, "__esModule", {
1149
1184
  value: !0
1150
1185
  });
@@ -1351,13 +1386,13 @@ function getTranslation(_ref, positionOffset, unitSuffix) {
1351
1386
  return translation;
1352
1387
  }
1353
1388
  __name(getTranslation, "getTranslation");
1354
- function getTouch(e, identifier) {
1355
- return e.targetTouches && (0, _shims$2.findInArray)(e.targetTouches, (t) => identifier === t.identifier) || e.changedTouches && (0, _shims$2.findInArray)(e.changedTouches, (t) => identifier === t.identifier);
1389
+ function getTouch(e2, identifier) {
1390
+ return e2.targetTouches && (0, _shims$2.findInArray)(e2.targetTouches, (t) => identifier === t.identifier) || e2.changedTouches && (0, _shims$2.findInArray)(e2.changedTouches, (t) => identifier === t.identifier);
1356
1391
  }
1357
1392
  __name(getTouch, "getTouch");
1358
- function getTouchIdentifier(e) {
1359
- if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
1360
- if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
1393
+ function getTouchIdentifier(e2) {
1394
+ if (e2.targetTouches && e2.targetTouches[0]) return e2.targetTouches[0].identifier;
1395
+ if (e2.changedTouches && e2.changedTouches[0]) return e2.changedTouches[0].identifier;
1361
1396
  }
1362
1397
  __name(getTouchIdentifier, "getTouchIdentifier");
1363
1398
  function addUserSelectStyles(doc) {
@@ -1439,11 +1474,11 @@ function canDragY(draggable) {
1439
1474
  return draggable.props.axis === "both" || draggable.props.axis === "y";
1440
1475
  }
1441
1476
  __name(canDragY, "canDragY");
1442
- function getControlPosition(e, touchIdentifier, draggableCore) {
1443
- const touchObj = typeof touchIdentifier == "number" ? (0, _domFns$1.getTouch)(e, touchIdentifier) : null;
1477
+ function getControlPosition(e2, touchIdentifier, draggableCore) {
1478
+ const touchObj = typeof touchIdentifier == "number" ? (0, _domFns$1.getTouch)(e2, touchIdentifier) : null;
1444
1479
  if (typeof touchIdentifier == "number" && !touchObj) return null;
1445
1480
  const node = findDOMNode(draggableCore), offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
1446
- return (0, _domFns$1.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);
1481
+ return (0, _domFns$1.offsetXYFromParent)(touchObj || e2, offsetParent, draggableCore.props.scale);
1447
1482
  }
1448
1483
  __name(getControlPosition, "getControlPosition");
1449
1484
  function createCoreData(draggable, x, y) {
@@ -1574,28 +1609,28 @@ let dragEventFor = eventsFor.mouse;
1574
1609
  var _a;
1575
1610
  let DraggableCore$1 = (_a = class extends React$5.Component {
1576
1611
  constructor() {
1577
- super(...arguments), _defineProperty$7(this, "dragging", !1), _defineProperty$7(this, "lastX", NaN), _defineProperty$7(this, "lastY", NaN), _defineProperty$7(this, "touchIdentifier", null), _defineProperty$7(this, "mounted", !1), _defineProperty$7(this, "handleDragStart", (e) => {
1578
- if (this.props.onMouseDown(e), !this.props.allowAnyClick && typeof e.button == "number" && e.button !== 0) return !1;
1612
+ super(...arguments), _defineProperty$7(this, "dragging", !1), _defineProperty$7(this, "lastX", NaN), _defineProperty$7(this, "lastY", NaN), _defineProperty$7(this, "touchIdentifier", null), _defineProperty$7(this, "mounted", !1), _defineProperty$7(this, "handleDragStart", (e2) => {
1613
+ if (this.props.onMouseDown(e2), !this.props.allowAnyClick && typeof e2.button == "number" && e2.button !== 0) return !1;
1579
1614
  const thisNode = this.findDOMNode();
1580
1615
  if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body)
1581
1616
  throw new Error("<DraggableCore> not mounted on DragStart!");
1582
1617
  const {
1583
1618
  ownerDocument
1584
1619
  } = thisNode;
1585
- if (this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.handle, thisNode) || this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.cancel, thisNode))
1620
+ if (this.props.disabled || !(e2.target instanceof ownerDocument.defaultView.Node) || this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e2.target, this.props.handle, thisNode) || this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e2.target, this.props.cancel, thisNode))
1586
1621
  return;
1587
- e.type === "touchstart" && e.preventDefault();
1588
- const touchIdentifier = (0, _domFns.getTouchIdentifier)(e);
1622
+ e2.type === "touchstart" && e2.preventDefault();
1623
+ const touchIdentifier = (0, _domFns.getTouchIdentifier)(e2);
1589
1624
  this.touchIdentifier = touchIdentifier;
1590
- const position = (0, _positionFns.getControlPosition)(e, touchIdentifier, this);
1625
+ const position = (0, _positionFns.getControlPosition)(e2, touchIdentifier, this);
1591
1626
  if (position == null) return;
1592
1627
  const {
1593
1628
  x,
1594
1629
  y
1595
1630
  } = position, coreEvent = (0, _positionFns.createCoreData)(this, x, y);
1596
- (0, _log.default)("DraggableCore: handleDragStart: %j", coreEvent), (0, _log.default)("calling", this.props.onStart), !(this.props.onStart(e, coreEvent) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, _domFns.addUserSelectStyles)(ownerDocument), this.dragging = !0, this.lastX = x, this.lastY = y, (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, this.handleDrag), (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, this.handleDragStop));
1597
- }), _defineProperty$7(this, "handleDrag", (e) => {
1598
- const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);
1631
+ (0, _log.default)("DraggableCore: handleDragStart: %j", coreEvent), (0, _log.default)("calling", this.props.onStart), !(this.props.onStart(e2, coreEvent) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, _domFns.addUserSelectStyles)(ownerDocument), this.dragging = !0, this.lastX = x, this.lastY = y, (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, this.handleDrag), (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, this.handleDragStop));
1632
+ }), _defineProperty$7(this, "handleDrag", (e2) => {
1633
+ const position = (0, _positionFns.getControlPosition)(e2, this.touchIdentifier, this);
1599
1634
  if (position == null) return;
1600
1635
  let {
1601
1636
  x,
@@ -1607,7 +1642,7 @@ let DraggableCore$1 = (_a = class extends React$5.Component {
1607
1642
  x = this.lastX + deltaX, y = this.lastY + deltaY;
1608
1643
  }
1609
1644
  const coreEvent = (0, _positionFns.createCoreData)(this, x, y);
1610
- if ((0, _log.default)("DraggableCore: handleDrag: %j", coreEvent), this.props.onDrag(e, coreEvent) === !1 || this.mounted === !1) {
1645
+ if ((0, _log.default)("DraggableCore: handleDrag: %j", coreEvent), this.props.onDrag(e2, coreEvent) === !1 || this.mounted === !1) {
1611
1646
  try {
1612
1647
  this.handleDragStop(new MouseEvent("mouseup"));
1613
1648
  } catch {
@@ -1617,9 +1652,9 @@ let DraggableCore$1 = (_a = class extends React$5.Component {
1617
1652
  return;
1618
1653
  }
1619
1654
  this.lastX = x, this.lastY = y;
1620
- }), _defineProperty$7(this, "handleDragStop", (e) => {
1655
+ }), _defineProperty$7(this, "handleDragStop", (e2) => {
1621
1656
  if (!this.dragging) return;
1622
- const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);
1657
+ const position = (0, _positionFns.getControlPosition)(e2, this.touchIdentifier, this);
1623
1658
  if (position == null) return;
1624
1659
  let {
1625
1660
  x,
@@ -1630,10 +1665,10 @@ let DraggableCore$1 = (_a = class extends React$5.Component {
1630
1665
  [deltaX, deltaY] = (0, _positionFns.snapToGrid)(this.props.grid, deltaX, deltaY), x = this.lastX + deltaX, y = this.lastY + deltaY;
1631
1666
  }
1632
1667
  const coreEvent = (0, _positionFns.createCoreData)(this, x, y);
1633
- if (this.props.onStop(e, coreEvent) === !1 || this.mounted === !1) return !1;
1668
+ if (this.props.onStop(e2, coreEvent) === !1 || this.mounted === !1) return !1;
1634
1669
  const thisNode = this.findDOMNode();
1635
1670
  thisNode && this.props.enableUserSelectHack && (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument), (0, _log.default)("DraggableCore: handleDragStop: %j", coreEvent), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, thisNode && ((0, _log.default)("DraggableCore: Removing handlers"), (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, this.handleDrag), (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, this.handleDragStop));
1636
- }), _defineProperty$7(this, "onMouseDown", (e) => (dragEventFor = eventsFor.mouse, this.handleDragStart(e))), _defineProperty$7(this, "onMouseUp", (e) => (dragEventFor = eventsFor.mouse, this.handleDragStop(e))), _defineProperty$7(this, "onTouchStart", (e) => (dragEventFor = eventsFor.touch, this.handleDragStart(e))), _defineProperty$7(this, "onTouchEnd", (e) => (dragEventFor = eventsFor.touch, this.handleDragStop(e)));
1671
+ }), _defineProperty$7(this, "onMouseDown", (e2) => (dragEventFor = eventsFor.mouse, this.handleDragStart(e2))), _defineProperty$7(this, "onMouseUp", (e2) => (dragEventFor = eventsFor.mouse, this.handleDragStop(e2))), _defineProperty$7(this, "onTouchStart", (e2) => (dragEventFor = eventsFor.touch, this.handleDragStart(e2))), _defineProperty$7(this, "onTouchEnd", (e2) => (dragEventFor = eventsFor.touch, this.handleDragStop(e2)));
1637
1672
  }
1638
1673
  componentDidMount() {
1639
1674
  this.mounted = !0;
@@ -1822,7 +1857,7 @@ _defineProperty$7(DraggableCore$1, "defaultProps", {
1822
1857
  return _DraggableCore.default;
1823
1858
  }, "get")
1824
1859
  }), exports.default = void 0;
1825
- var React2 = _interopRequireWildcard2(require$$0), _propTypes3 = _interopRequireDefault2(propTypesExports), _reactDom2 = _interopRequireDefault2(require$$2$1), _clsx2 = _interopRequireDefault2(cl), _domFns2 = domFns, _positionFns2 = positionFns, _shims2 = shims, _DraggableCore = _interopRequireDefault2(DraggableCore$2), _log2 = _interopRequireDefault2(log$1);
1860
+ var React2 = _interopRequireWildcard2(require$$0), _propTypes3 = _interopRequireDefault2(propTypesExports), _reactDom2 = _interopRequireDefault2(require$$2$1), _clsx2 = _interopRequireDefault2(require$$3), _domFns2 = domFns, _positionFns2 = positionFns, _shims2 = shims, _DraggableCore = _interopRequireDefault2(DraggableCore$2), _log2 = _interopRequireDefault2(log$1);
1826
1861
  function _interopRequireDefault2(obj) {
1827
1862
  return obj && obj.__esModule ? obj : { default: obj };
1828
1863
  }
@@ -1904,13 +1939,13 @@ _defineProperty$7(DraggableCore$1, "defaultProps", {
1904
1939
  }) : null;
1905
1940
  }
1906
1941
  constructor(props) {
1907
- super(props), _defineProperty2(this, "onDragStart", (e, coreData) => {
1908
- if ((0, _log2.default)("Draggable: onDragStart: %j", coreData), this.props.onStart(e, (0, _positionFns2.createDraggableData)(this, coreData)) === !1) return !1;
1942
+ super(props), _defineProperty2(this, "onDragStart", (e2, coreData) => {
1943
+ if ((0, _log2.default)("Draggable: onDragStart: %j", coreData), this.props.onStart(e2, (0, _positionFns2.createDraggableData)(this, coreData)) === !1) return !1;
1909
1944
  this.setState({
1910
1945
  dragging: !0,
1911
1946
  dragged: !0
1912
1947
  });
1913
- }), _defineProperty2(this, "onDrag", (e, coreData) => {
1948
+ }), _defineProperty2(this, "onDrag", (e2, coreData) => {
1914
1949
  if (!this.state.dragging) return !1;
1915
1950
  (0, _log2.default)("Draggable: onDrag: %j", coreData);
1916
1951
  const uiData = (0, _positionFns2.createDraggableData)(this, coreData), newState = {
@@ -1928,10 +1963,10 @@ _defineProperty$7(DraggableCore$1, "defaultProps", {
1928
1963
  const [newStateX, newStateY] = (0, _positionFns2.getBoundPosition)(this, newState.x, newState.y);
1929
1964
  newState.x = newStateX, newState.y = newStateY, newState.slackX = this.state.slackX + (x - newState.x), newState.slackY = this.state.slackY + (y - newState.y), uiData.x = newState.x, uiData.y = newState.y, uiData.deltaX = newState.x - this.state.x, uiData.deltaY = newState.y - this.state.y;
1930
1965
  }
1931
- if (this.props.onDrag(e, uiData) === !1) return !1;
1966
+ if (this.props.onDrag(e2, uiData) === !1) return !1;
1932
1967
  this.setState(newState);
1933
- }), _defineProperty2(this, "onDragStop", (e, coreData) => {
1934
- if (!this.state.dragging || this.props.onStop(e, (0, _positionFns2.createDraggableData)(this, coreData)) === !1) return !1;
1968
+ }), _defineProperty2(this, "onDragStop", (e2, coreData) => {
1969
+ if (!this.state.dragging || this.props.onStop(e2, (0, _positionFns2.createDraggableData)(this, coreData)) === !1) return !1;
1935
1970
  (0, _log2.default)("Draggable: onDragStop: %j", coreData);
1936
1971
  const newState = {
1937
1972
  dragging: !1,
@@ -2443,7 +2478,7 @@ var Resizable = /* @__PURE__ */ function(_React$Component) {
2443
2478
  return width2 += slackW, height2 += slackH, minConstraints && (width2 = Math.max(minConstraints[0], width2), height2 = Math.max(minConstraints[1], height2)), maxConstraints && (width2 = Math.min(maxConstraints[0], width2), height2 = Math.min(maxConstraints[1], height2)), this.slack = [slackW + (oldW - width2), slackH + (oldH - height2)], [width2, height2];
2444
2479
  }, "runConstraints"), _proto.resizeHandler = /* @__PURE__ */ __name(function(handlerName, axis) {
2445
2480
  var _this2 = this;
2446
- return function(e, _ref2) {
2481
+ return function(e2, _ref2) {
2447
2482
  var node = _ref2.node, deltaX = _ref2.deltaX, deltaY = _ref2.deltaY;
2448
2483
  handlerName === "onResizeStart" && _this2.resetData();
2449
2484
  var canDragX2 = (_this2.props.axis === "both" || _this2.props.axis === "x") && axis !== "n" && axis !== "s", canDragY2 = (_this2.props.axis === "both" || _this2.props.axis === "y") && axis !== "e" && axis !== "w";
@@ -2463,7 +2498,7 @@ var Resizable = /* @__PURE__ */ function(_React$Component) {
2463
2498
  var width2 = _this2.props.width + (canDragX2 ? deltaX / _this2.props.transformScale : 0), height2 = _this2.props.height + (canDragY2 ? deltaY / _this2.props.transformScale : 0), _this2$runConstraints = _this2.runConstraints(width2, height2);
2464
2499
  width2 = _this2$runConstraints[0], height2 = _this2$runConstraints[1];
2465
2500
  var dimensionsChanged = width2 !== _this2.props.width || height2 !== _this2.props.height, cb = typeof _this2.props[handlerName] == "function" ? _this2.props[handlerName] : null, shouldSkipCb = handlerName === "onResize" && !dimensionsChanged;
2466
- cb && !shouldSkipCb && (e.persist == null || e.persist(), cb(e, {
2501
+ cb && !shouldSkipCb && (e2.persist == null || e2.persist(), cb(e2, {
2467
2502
  node,
2468
2503
  size: {
2469
2504
  width: width2,
@@ -2635,10 +2670,10 @@ var ResizableBox = /* @__PURE__ */ function(_React$Component) {
2635
2670
  height: _this.props.height,
2636
2671
  propsWidth: _this.props.width,
2637
2672
  propsHeight: _this.props.height
2638
- }, _this.onResize = function(e, data) {
2673
+ }, _this.onResize = function(e2, data) {
2639
2674
  var size = data.size;
2640
- _this.props.onResize ? (e.persist == null || e.persist(), _this.setState(size, function() {
2641
- return _this.props.onResize && _this.props.onResize(e, data);
2675
+ _this.props.onResize ? (e2.persist == null || e2.persist(), _this.setState(size, function() {
2676
+ return _this.props.onResize && _this.props.onResize(e2, data);
2642
2677
  })) : _this.setState(size);
2643
2678
  }, _this;
2644
2679
  }
@@ -2810,7 +2845,7 @@ Object.defineProperty(GridItem$1, "__esModule", {
2810
2845
  value: !0
2811
2846
  });
2812
2847
  GridItem$1.default = void 0;
2813
- var _react = _interopRequireDefault$3(require$$0), _propTypes$2 = _interopRequireDefault$3(propTypesExports), _reactDraggable = cjsExports, _reactResizable = reactResizableExports, _utils$3 = utils$1, _calculateUtils$1 = calculateUtils, _ReactGridLayoutPropTypes$1 = ReactGridLayoutPropTypes, _clsx$2 = _interopRequireDefault$3(cl);
2848
+ var _react = _interopRequireDefault$3(require$$0), _propTypes$2 = _interopRequireDefault$3(propTypesExports), _reactDraggable = cjsExports, _reactResizable = reactResizableExports, _utils$3 = utils$1, _calculateUtils$1 = calculateUtils, _ReactGridLayoutPropTypes$1 = ReactGridLayoutPropTypes, _clsx$2 = _interopRequireDefault$3(clsxExports);
2814
2849
  function _interopRequireDefault$3(obj) {
2815
2850
  return obj && obj.__esModule ? obj : { default: obj };
2816
2851
  }
@@ -2841,7 +2876,7 @@ const _GridItem = class _GridItem extends _react.default.Component {
2841
2876
  resizing: null,
2842
2877
  dragging: null,
2843
2878
  className: ""
2844
- }), _defineProperty$3(this, "elementRef", /* @__PURE__ */ _react.default.createRef()), _defineProperty$3(this, "onDragStart", (e, _ref) => {
2879
+ }), _defineProperty$3(this, "elementRef", /* @__PURE__ */ _react.default.createRef()), _defineProperty$3(this, "onDragStart", (e2, _ref) => {
2845
2880
  let {
2846
2881
  node
2847
2882
  } = _ref;
@@ -2866,11 +2901,11 @@ const _GridItem = class _GridItem extends _react.default.Component {
2866
2901
  y
2867
2902
  } = (0, _calculateUtils$1.calcXY)(this.getPositionParams(), newPosition.top, newPosition.left, this.props.w, this.props.h);
2868
2903
  return onDragStart.call(this, this.props.i, x, y, {
2869
- e,
2904
+ e: e2,
2870
2905
  node,
2871
2906
  newPosition
2872
2907
  });
2873
- }), _defineProperty$3(this, "onDrag", (e, _ref2) => {
2908
+ }), _defineProperty$3(this, "onDrag", (e2, _ref2) => {
2874
2909
  let {
2875
2910
  node,
2876
2911
  deltaX,
@@ -2919,11 +2954,11 @@ const _GridItem = class _GridItem extends _react.default.Component {
2919
2954
  y
2920
2955
  } = (0, _calculateUtils$1.calcXY)(positionParams, top - containerPadding[1], left - containerPadding[0], w, h);
2921
2956
  return onDrag.call(this, i, x, y, {
2922
- e,
2957
+ e: e2,
2923
2958
  node,
2924
2959
  newPosition
2925
2960
  });
2926
- }), _defineProperty$3(this, "onDragStop", (e, _ref3) => {
2961
+ }), _defineProperty$3(this, "onDragStop", (e2, _ref3) => {
2927
2962
  let {
2928
2963
  node
2929
2964
  } = _ref3;
@@ -2953,11 +2988,11 @@ const _GridItem = class _GridItem extends _react.default.Component {
2953
2988
  y
2954
2989
  } = (0, _calculateUtils$1.calcXY)(this.getPositionParams(), top - containerPadding[1], left - containerPadding[0], w, h);
2955
2990
  return onDragStop.call(this, i, x, y, {
2956
- e,
2991
+ e: e2,
2957
2992
  node,
2958
2993
  newPosition
2959
2994
  });
2960
- }), _defineProperty$3(this, "onResizeStop", (e, callbackData, position) => this.onResizeHandler(e, callbackData, position, "onResizeStop")), _defineProperty$3(this, "onResizeStart", (e, callbackData, position) => this.onResizeHandler(e, callbackData, position, "onResizeStart")), _defineProperty$3(this, "onResize", (e, callbackData, position) => this.onResizeHandler(e, callbackData, position, "onResize"));
2995
+ }), _defineProperty$3(this, "onResizeStop", (e2, callbackData, position) => this.onResizeHandler(e2, callbackData, position, "onResizeStop")), _defineProperty$3(this, "onResizeStart", (e2, callbackData, position) => this.onResizeHandler(e2, callbackData, position, "onResizeStart")), _defineProperty$3(this, "onResize", (e2, callbackData, position) => this.onResizeHandler(e2, callbackData, position, "onResize"));
2961
2996
  }
2962
2997
  shouldComponentUpdate(nextProps, nextState) {
2963
2998
  if (this.props.children !== nextProps.children || this.props.droppingPosition !== nextProps.droppingPosition) return !0;
@@ -3052,9 +3087,9 @@ const _GridItem = class _GridItem extends _react.default.Component {
3052
3087
  * similarily structured resize events.
3053
3088
  */
3054
3089
  curryResizeHandler(position, handler) {
3055
- return (e, data) => (
3090
+ return (e2, data) => (
3056
3091
  /*: Function*/
3057
- handler(e, data, position)
3092
+ handler(e2, data, position)
3058
3093
  );
3059
3094
  }
3060
3095
  /**
@@ -3098,7 +3133,7 @@ const _GridItem = class _GridItem extends _react.default.Component {
3098
3133
  /**
3099
3134
  * Wrapper around resize events to provide more useful data.
3100
3135
  */
3101
- onResizeHandler(e, _ref4, position, handlerName) {
3136
+ onResizeHandler(e2, _ref4, position, handlerName) {
3102
3137
  let {
3103
3138
  node,
3104
3139
  size,
@@ -3126,7 +3161,7 @@ const _GridItem = class _GridItem extends _react.default.Component {
3126
3161
  h
3127
3162
  } = (0, _calculateUtils$1.calcWH)(this.getPositionParams(), updatedSize.width, updatedSize.height, x, y, handle);
3128
3163
  w = (0, _calculateUtils$1.clamp)(w, Math.max(minW, 1), maxW), h = (0, _calculateUtils$1.clamp)(h, minH, maxH), handler.call(this, i, w, h, {
3129
- e,
3164
+ e: e2,
3130
3165
  node,
3131
3166
  size: updatedSize,
3132
3167
  handle
@@ -3249,30 +3284,30 @@ Object.defineProperty(ReactGridLayout$1, "__esModule", {
3249
3284
  value: !0
3250
3285
  });
3251
3286
  ReactGridLayout$1.default = void 0;
3252
- var React$2 = _interopRequireWildcard$2(require$$0), _fastEquals$1 = fastEqualsExports, _clsx$1 = _interopRequireDefault$2(cl), _utils$2 = utils$1, _calculateUtils = calculateUtils, _GridItem2 = _interopRequireDefault$2(GridItem$1), _ReactGridLayoutPropTypes = _interopRequireDefault$2(ReactGridLayoutPropTypes);
3287
+ var React$2 = _interopRequireWildcard$2(require$$0), _fastEquals$1 = fastEqualsExports, _clsx$1 = _interopRequireDefault$2(clsxExports), _utils$2 = utils$1, _calculateUtils = calculateUtils, _GridItem2 = _interopRequireDefault$2(GridItem$1), _ReactGridLayoutPropTypes = _interopRequireDefault$2(ReactGridLayoutPropTypes);
3253
3288
  function _interopRequireDefault$2(obj) {
3254
3289
  return obj && obj.__esModule ? obj : { default: obj };
3255
3290
  }
3256
3291
  __name(_interopRequireDefault$2, "_interopRequireDefault$2");
3257
- function _getRequireWildcardCache$2(e) {
3292
+ function _getRequireWildcardCache$2(e2) {
3258
3293
  if (typeof WeakMap != "function") return null;
3259
- var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
3260
- return (_getRequireWildcardCache$2 = /* @__PURE__ */ __name(function(e2) {
3261
- return e2 ? t : r;
3262
- }, "_getRequireWildcardCache$2"))(e);
3294
+ var r2 = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
3295
+ return (_getRequireWildcardCache$2 = /* @__PURE__ */ __name(function(e3) {
3296
+ return e3 ? t : r2;
3297
+ }, "_getRequireWildcardCache$2"))(e2);
3263
3298
  }
3264
3299
  __name(_getRequireWildcardCache$2, "_getRequireWildcardCache$2");
3265
- function _interopRequireWildcard$2(e, r) {
3266
- if (e && e.__esModule) return e;
3267
- if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
3268
- var t = _getRequireWildcardCache$2(r);
3269
- if (t && t.has(e)) return t.get(e);
3300
+ function _interopRequireWildcard$2(e2, r2) {
3301
+ if (e2 && e2.__esModule) return e2;
3302
+ if (e2 === null || typeof e2 != "object" && typeof e2 != "function") return { default: e2 };
3303
+ var t = _getRequireWildcardCache$2(r2);
3304
+ if (t && t.has(e2)) return t.get(e2);
3270
3305
  var n2 = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
3271
- for (var u in e) if (u !== "default" && Object.prototype.hasOwnProperty.call(e, u)) {
3272
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
3273
- i && (i.get || i.set) ? Object.defineProperty(n2, u, i) : n2[u] = e[u];
3306
+ for (var u in e2) if (u !== "default" && Object.prototype.hasOwnProperty.call(e2, u)) {
3307
+ var i = a ? Object.getOwnPropertyDescriptor(e2, u) : null;
3308
+ i && (i.get || i.set) ? Object.defineProperty(n2, u, i) : n2[u] = e2[u];
3274
3309
  }
3275
- return n2.default = e, t && t.set(e, n2), n2;
3310
+ return n2.default = e2, t && t.set(e2, n2), n2;
3276
3311
  }
3277
3312
  __name(_interopRequireWildcard$2, "_interopRequireWildcard$2");
3278
3313
  function _defineProperty$2(obj, key, value) {
@@ -3322,7 +3357,7 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3322
3357
  children: []
3323
3358
  }), _defineProperty$2(this, "dragEnterCounter", 0), _defineProperty$2(this, "onDragStart", (i, x, y, _ref) => {
3324
3359
  let {
3325
- e,
3360
+ e: e2,
3326
3361
  node
3327
3362
  } = _ref;
3328
3363
  const {
@@ -3341,10 +3376,10 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3341
3376
  oldDragItem: (0, _utils$2.cloneLayoutItem)(l2),
3342
3377
  oldLayout: layout,
3343
3378
  activeDrag: placeholder
3344
- }), this.props.onDragStart(layout, l2, l2, null, e, node);
3379
+ }), this.props.onDragStart(layout, l2, l2, null, e2, node);
3345
3380
  }), _defineProperty$2(this, "onDrag", (i, x, y, _ref2) => {
3346
3381
  let {
3347
- e,
3382
+ e: e2,
3348
3383
  node
3349
3384
  } = _ref2;
3350
3385
  const {
@@ -3367,13 +3402,13 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3367
3402
  placeholder: !0,
3368
3403
  i
3369
3404
  };
3370
- layout = (0, _utils$2.moveElement)(layout, l2, x, y, !0, preventCollision, (0, _utils$2.compactType)(this.props), cols, allowOverlap), this.props.onDrag(layout, oldDragItem, l2, placeholder, e, node), this.setState({
3405
+ layout = (0, _utils$2.moveElement)(layout, l2, x, y, !0, preventCollision, (0, _utils$2.compactType)(this.props), cols, allowOverlap), this.props.onDrag(layout, oldDragItem, l2, placeholder, e2, node), this.setState({
3371
3406
  layout: allowOverlap ? layout : (0, _utils$2.compact)(layout, (0, _utils$2.compactType)(this.props), cols),
3372
3407
  activeDrag: placeholder
3373
3408
  });
3374
3409
  }), _defineProperty$2(this, "onDragStop", (i, x, y, _ref3) => {
3375
3410
  let {
3376
- e,
3411
+ e: e2,
3377
3412
  node
3378
3413
  } = _ref3;
3379
3414
  if (!this.state.activeDrag) return;
@@ -3391,7 +3426,7 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3391
3426
  if (!l2) return;
3392
3427
  layout = (0, _utils$2.moveElement)(layout, l2, x, y, !0, preventCollision, (0, _utils$2.compactType)(this.props), cols, allowOverlap);
3393
3428
  const newLayout = allowOverlap ? layout : (0, _utils$2.compact)(layout, (0, _utils$2.compactType)(this.props), cols);
3394
- this.props.onDragStop(newLayout, oldDragItem, l2, null, e, node);
3429
+ this.props.onDragStop(newLayout, oldDragItem, l2, null, e2, node);
3395
3430
  const {
3396
3431
  oldLayout
3397
3432
  } = this.state;
@@ -3403,7 +3438,7 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3403
3438
  }), this.onLayoutMaybeChanged(newLayout, oldLayout);
3404
3439
  }), _defineProperty$2(this, "onResizeStart", (i, w, h, _ref4) => {
3405
3440
  let {
3406
- e,
3441
+ e: e2,
3407
3442
  node
3408
3443
  } = _ref4;
3409
3444
  const {
@@ -3413,10 +3448,10 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3413
3448
  oldResizeItem: (0, _utils$2.cloneLayoutItem)(l2),
3414
3449
  oldLayout: this.state.layout,
3415
3450
  resizing: !0
3416
- }), this.props.onResizeStart(layout, l2, l2, null, e, node));
3451
+ }), this.props.onResizeStart(layout, l2, l2, null, e2, node));
3417
3452
  }), _defineProperty$2(this, "onResize", (i, w, h, _ref5) => {
3418
3453
  let {
3419
- e,
3454
+ e: e2,
3420
3455
  node,
3421
3456
  size,
3422
3457
  handle
@@ -3451,13 +3486,13 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3451
3486
  static: !0,
3452
3487
  i
3453
3488
  };
3454
- this.props.onResize(finalLayout, oldResizeItem, l2, placeholder, e, node), this.setState({
3489
+ this.props.onResize(finalLayout, oldResizeItem, l2, placeholder, e2, node), this.setState({
3455
3490
  layout: allowOverlap ? finalLayout : (0, _utils$2.compact)(finalLayout, (0, _utils$2.compactType)(this.props), cols),
3456
3491
  activeDrag: placeholder
3457
3492
  });
3458
3493
  }), _defineProperty$2(this, "onResizeStop", (i, w, h, _ref6) => {
3459
3494
  let {
3460
- e,
3495
+ e: e2,
3461
3496
  node
3462
3497
  } = _ref6;
3463
3498
  const {
@@ -3467,7 +3502,7 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3467
3502
  cols,
3468
3503
  allowOverlap
3469
3504
  } = this.props, l2 = (0, _utils$2.getLayoutItem)(layout, i), newLayout = allowOverlap ? layout : (0, _utils$2.compact)(layout, (0, _utils$2.compactType)(this.props), cols);
3470
- this.props.onResizeStop(newLayout, oldResizeItem, l2, null, e, node);
3505
+ this.props.onResizeStop(newLayout, oldResizeItem, l2, null, e2, node);
3471
3506
  const {
3472
3507
  oldLayout
3473
3508
  } = this.state;
@@ -3478,10 +3513,10 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3478
3513
  oldLayout: null,
3479
3514
  resizing: !1
3480
3515
  }), this.onLayoutMaybeChanged(newLayout, oldLayout);
3481
- }), _defineProperty$2(this, "onDragOver", (e) => {
3516
+ }), _defineProperty$2(this, "onDragOver", (e2) => {
3482
3517
  var _a15;
3483
- if (e.preventDefault(), e.stopPropagation(), isFirefox && // $FlowIgnore can't figure this out
3484
- !((_a15 = e.nativeEvent.target) != null && _a15.classList.contains(layoutClassName$1)))
3518
+ if (e2.preventDefault(), e2.stopPropagation(), isFirefox && // $FlowIgnore can't figure this out
3519
+ !((_a15 = e2.nativeEvent.target) != null && _a15.classList.contains(layoutClassName$1)))
3485
3520
  return !1;
3486
3521
  const {
3487
3522
  droppingItem,
@@ -3493,7 +3528,7 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3493
3528
  width: width2,
3494
3529
  containerPadding,
3495
3530
  transformScale
3496
- } = this.props, onDragOverResult = onDropDragOver == null ? void 0 : onDropDragOver(e);
3531
+ } = this.props, onDragOverResult = onDropDragOver == null ? void 0 : onDropDragOver(e2);
3497
3532
  if (onDragOverResult === !1)
3498
3533
  return this.state.droppingDOMNode && this.removeDroppingPlaceholder(), !1;
3499
3534
  const finalDroppingItem = {
@@ -3501,10 +3536,10 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3501
3536
  ...onDragOverResult
3502
3537
  }, {
3503
3538
  layout
3504
- } = this.state, gridRect = e.currentTarget.getBoundingClientRect(), layerX = e.clientX - gridRect.left, layerY = e.clientY - gridRect.top, droppingPosition = {
3539
+ } = this.state, gridRect = e2.currentTarget.getBoundingClientRect(), layerX = e2.clientX - gridRect.left, layerY = e2.clientY - gridRect.top, droppingPosition = {
3505
3540
  left: layerX / transformScale,
3506
3541
  top: layerY / transformScale,
3507
- e
3542
+ e: e2
3508
3543
  };
3509
3544
  if (this.state.droppingDOMNode) {
3510
3545
  if (this.state.droppingPosition) {
@@ -3552,18 +3587,18 @@ const _ReactGridLayout = class _ReactGridLayout extends React$2.Component {
3552
3587
  activeDrag: null,
3553
3588
  droppingPosition: void 0
3554
3589
  });
3555
- }), _defineProperty$2(this, "onDragLeave", (e) => {
3556
- e.preventDefault(), e.stopPropagation(), this.dragEnterCounter--, this.dragEnterCounter === 0 && this.removeDroppingPlaceholder();
3557
- }), _defineProperty$2(this, "onDragEnter", (e) => {
3558
- e.preventDefault(), e.stopPropagation(), this.dragEnterCounter++;
3559
- }), _defineProperty$2(this, "onDrop", (e) => {
3560
- e.preventDefault(), e.stopPropagation();
3590
+ }), _defineProperty$2(this, "onDragLeave", (e2) => {
3591
+ e2.preventDefault(), e2.stopPropagation(), this.dragEnterCounter--, this.dragEnterCounter === 0 && this.removeDroppingPlaceholder();
3592
+ }), _defineProperty$2(this, "onDragEnter", (e2) => {
3593
+ e2.preventDefault(), e2.stopPropagation(), this.dragEnterCounter++;
3594
+ }), _defineProperty$2(this, "onDrop", (e2) => {
3595
+ e2.preventDefault(), e2.stopPropagation();
3561
3596
  const {
3562
3597
  droppingItem
3563
3598
  } = this.props, {
3564
3599
  layout
3565
3600
  } = this.state, item2 = layout.find((l2) => l2.i === droppingItem.i);
3566
- this.dragEnterCounter = 0, this.removeDroppingPlaceholder(), this.props.onDrop(layout, item2, e);
3601
+ this.dragEnterCounter = 0, this.removeDroppingPlaceholder(), this.props.onDrop(layout, item2, e2);
3567
3602
  });
3568
3603
  }
3569
3604
  componentDidMount() {
@@ -3833,25 +3868,25 @@ function _interopRequireDefault$1(obj) {
3833
3868
  return obj && obj.__esModule ? obj : { default: obj };
3834
3869
  }
3835
3870
  __name(_interopRequireDefault$1, "_interopRequireDefault$1");
3836
- function _getRequireWildcardCache$1(e) {
3871
+ function _getRequireWildcardCache$1(e2) {
3837
3872
  if (typeof WeakMap != "function") return null;
3838
- var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
3839
- return (_getRequireWildcardCache$1 = /* @__PURE__ */ __name(function(e2) {
3840
- return e2 ? t : r;
3841
- }, "_getRequireWildcardCache$1"))(e);
3873
+ var r2 = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
3874
+ return (_getRequireWildcardCache$1 = /* @__PURE__ */ __name(function(e3) {
3875
+ return e3 ? t : r2;
3876
+ }, "_getRequireWildcardCache$1"))(e2);
3842
3877
  }
3843
3878
  __name(_getRequireWildcardCache$1, "_getRequireWildcardCache$1");
3844
- function _interopRequireWildcard$1(e, r) {
3845
- if (e && e.__esModule) return e;
3846
- if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
3847
- var t = _getRequireWildcardCache$1(r);
3848
- if (t && t.has(e)) return t.get(e);
3879
+ function _interopRequireWildcard$1(e2, r2) {
3880
+ if (e2 && e2.__esModule) return e2;
3881
+ if (e2 === null || typeof e2 != "object" && typeof e2 != "function") return { default: e2 };
3882
+ var t = _getRequireWildcardCache$1(r2);
3883
+ if (t && t.has(e2)) return t.get(e2);
3849
3884
  var n2 = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
3850
- for (var u in e) if (u !== "default" && Object.prototype.hasOwnProperty.call(e, u)) {
3851
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
3852
- i && (i.get || i.set) ? Object.defineProperty(n2, u, i) : n2[u] = e[u];
3885
+ for (var u in e2) if (u !== "default" && Object.prototype.hasOwnProperty.call(e2, u)) {
3886
+ var i = a ? Object.getOwnPropertyDescriptor(e2, u) : null;
3887
+ i && (i.get || i.set) ? Object.defineProperty(n2, u, i) : n2[u] = e2[u];
3853
3888
  }
3854
- return n2.default = e, t && t.set(e, n2), n2;
3889
+ return n2.default = e2, t && t.set(e2, n2), n2;
3855
3890
  }
3856
3891
  __name(_interopRequireWildcard$1, "_interopRequireWildcard$1");
3857
3892
  function _extends$1() {
@@ -4360,30 +4395,30 @@ Object.defineProperty(WidthProvider, "__esModule", {
4360
4395
  value: !0
4361
4396
  });
4362
4397
  WidthProvider.default = WidthProvideRGL;
4363
- var React = _interopRequireWildcard(require$$0), _propTypes = _interopRequireDefault(propTypesExports), _resizeObserverPolyfill = _interopRequireDefault(require$$2), _clsx = _interopRequireDefault(cl);
4398
+ var React = _interopRequireWildcard(require$$0), _propTypes = _interopRequireDefault(propTypesExports), _resizeObserverPolyfill = _interopRequireDefault(require$$2), _clsx = _interopRequireDefault(clsxExports);
4364
4399
  function _interopRequireDefault(obj) {
4365
4400
  return obj && obj.__esModule ? obj : { default: obj };
4366
4401
  }
4367
4402
  __name(_interopRequireDefault, "_interopRequireDefault");
4368
- function _getRequireWildcardCache(e) {
4403
+ function _getRequireWildcardCache(e2) {
4369
4404
  if (typeof WeakMap != "function") return null;
4370
- var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
4371
- return (_getRequireWildcardCache = /* @__PURE__ */ __name(function(e2) {
4372
- return e2 ? t : r;
4373
- }, "_getRequireWildcardCache"))(e);
4405
+ var r2 = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
4406
+ return (_getRequireWildcardCache = /* @__PURE__ */ __name(function(e3) {
4407
+ return e3 ? t : r2;
4408
+ }, "_getRequireWildcardCache"))(e2);
4374
4409
  }
4375
4410
  __name(_getRequireWildcardCache, "_getRequireWildcardCache");
4376
- function _interopRequireWildcard(e, r) {
4377
- if (e && e.__esModule) return e;
4378
- if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
4379
- var t = _getRequireWildcardCache(r);
4380
- if (t && t.has(e)) return t.get(e);
4411
+ function _interopRequireWildcard(e2, r2) {
4412
+ if (e2 && e2.__esModule) return e2;
4413
+ if (e2 === null || typeof e2 != "object" && typeof e2 != "function") return { default: e2 };
4414
+ var t = _getRequireWildcardCache(r2);
4415
+ if (t && t.has(e2)) return t.get(e2);
4381
4416
  var n2 = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
4382
- for (var u in e) if (u !== "default" && Object.prototype.hasOwnProperty.call(e, u)) {
4383
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
4384
- i && (i.get || i.set) ? Object.defineProperty(n2, u, i) : n2[u] = e[u];
4417
+ for (var u in e2) if (u !== "default" && Object.prototype.hasOwnProperty.call(e2, u)) {
4418
+ var i = a ? Object.getOwnPropertyDescriptor(e2, u) : null;
4419
+ i && (i.get || i.set) ? Object.defineProperty(n2, u, i) : n2[u] = e2[u];
4385
4420
  }
4386
- return n2.default = e, t && t.set(e, n2), n2;
4421
+ return n2.default = e2, t && t.set(e2, n2), n2;
4387
4422
  }
4388
4423
  __name(_interopRequireWildcard, "_interopRequireWildcard");
4389
4424
  function _extends() {
@@ -4532,7 +4567,7 @@ const GridLayout = /* @__PURE__ */ getDefaultExportFromCjs(reactGridLayoutExport
4532
4567
  case CFRuleType.iconSet:
4533
4568
  return iconSet2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.cfPreview, children: iconSet2.map((base64, index2) => base64 ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { style: { height: "100%" }, src: base64 }, index2) : /* @__PURE__ */ jsxRuntimeExports.jsx(SlashSingle, {}, index2)) });
4534
4569
  case CFRuleType.highlightCell: {
4535
- const { ul, st, it, bl, bg, cl: cl2 } = rule.style, isUnderline = (ul == null ? void 0 : ul.s) === BooleanNumber.TRUE, isStrikethrough = (st == null ? void 0 : st.s) === BooleanNumber.TRUE, isItalic = it === BooleanNumber.TRUE, isBold = bl === BooleanNumber.TRUE, bgColor = (_a15 = bg == null ? void 0 : bg.rgb) != null ? _a15 : DEFAULT_BG_COLOR, fontColor = (_b = cl2 == null ? void 0 : cl2.rgb) != null ? _b : DEFAULT_FONT_COLOR, style = {
4570
+ const { ul, st, it, bl, bg, cl } = rule.style, isUnderline = (ul == null ? void 0 : ul.s) === BooleanNumber.TRUE, isStrikethrough = (st == null ? void 0 : st.s) === BooleanNumber.TRUE, isItalic = it === BooleanNumber.TRUE, isBold = bl === BooleanNumber.TRUE, bgColor = (_a15 = bg == null ? void 0 : bg.rgb) != null ? _a15 : DEFAULT_BG_COLOR, fontColor = (_b = cl == null ? void 0 : cl.rgb) != null ? _b : DEFAULT_FONT_COLOR, style = {
4536
4571
  fontWeight: isBold ? "bold" : void 0,
4537
4572
  fontStyle: isItalic ? "italic" : void 0,
4538
4573
  textDecoration: `${isUnderline ? "underline" : ""} ${isStrikethrough ? "line-through" : ""}`.replace(/^ /, "") || void 0,
@@ -4587,7 +4622,6 @@ let ConditionalFormattingI18nController = (_a2 = class extends Disposable {
4587
4622
  }
4588
4623
  }, __name(_a2, "ConditionalFormattingI18nController"), _a2);
4589
4624
  ConditionalFormattingI18nController = __decorateClass$c([
4590
- OnLifecycle(LifecycleStages.Rendered, ConditionalFormattingI18nController),
4591
4625
  __decorateParam$c(0, Inject(LocaleService))
4592
4626
  ], ConditionalFormattingI18nController);
4593
4627
  const cfRuleList = "univer-cf-rule-list", ruleSelector = "univer-rule-selector", select = "univer-select", selectSelector = "univer-select-selector", selectSelectionItem = "univer-select-selection-item", selectSelectionSearchInput = "univer-select-selection-search-input", btnList$1 = "univer-btn-list", gap = "univer-gap", icon$1 = "univer-icon", disabled = "univer-disabled", ruleItem = "univer-rule-item", ruleDescribe = "univer-rule-describe", ruleType = "univer-rule-type", ruleRange = "univer-rule-range", active = "univer-active", draggableHandle = "univer-draggableHandle", deleteItem = "univer-delete-item", gridLayoutWrap = "univer-grid-layout-wrap", reactGridItem = "univer-react-grid-item", styles$3 = {
@@ -4631,7 +4665,7 @@ const cfRuleList = "univer-cf-rule-list", ruleSelector = "univer-rule-selector",
4631
4665
  return localeService.t("sheet.cf.subRuleType.uniqueValues");
4632
4666
  case CFSubRuleType.number: {
4633
4667
  const operator = ruleConfig.operator;
4634
- return localeService.t(`sheet.cf.preview.describe.${operator}`, ...Array.isArray(ruleConfig.value) ? ruleConfig.value.map((e) => String(e)) : [String(ruleConfig.value || "")]);
4668
+ return localeService.t(`sheet.cf.preview.describe.${operator}`, ...Array.isArray(ruleConfig.value) ? ruleConfig.value.map((e2) => String(e2)) : [String(ruleConfig.value || "")]);
4635
4669
  }
4636
4670
  case CFSubRuleType.text: {
4637
4671
  const operator = ruleConfig.operator;
@@ -4710,8 +4744,8 @@ const RuleList = /* @__PURE__ */ __name((props) => {
4710
4744
  }, 150);
4711
4745
  const clearTime = /* @__PURE__ */ __name(() => {
4712
4746
  time && clearTimeout(time), time = null;
4713
- }, "clearTime"), handle = /* @__PURE__ */ __name((e) => {
4714
- e.propertyName === "width" && (clearTime(), subscribe.next());
4747
+ }, "clearTime"), handle = /* @__PURE__ */ __name((e2) => {
4748
+ e2.propertyName === "width" && (clearTime(), subscribe.next());
4715
4749
  }, "handle");
4716
4750
  return targetElement.addEventListener("transitionend", handle), () => {
4717
4751
  clearTime(), targetElement.removeEventListener("transitionend", handle);
@@ -4802,7 +4836,7 @@ const RuleList = /* @__PURE__ */ __name((props) => {
4802
4836
  "div",
4803
4837
  {
4804
4838
  className: `${styles$3.draggableHandle} draggableHandle`,
4805
- onClick: /* @__PURE__ */ __name((e) => e.stopPropagation(), "onClick"),
4839
+ onClick: /* @__PURE__ */ __name((e2) => e2.stopPropagation(), "onClick"),
4806
4840
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(SequenceSingle, {})
4807
4841
  }
4808
4842
  ),
@@ -4815,8 +4849,8 @@ const RuleList = /* @__PURE__ */ __name((props) => {
4815
4849
  "div",
4816
4850
  {
4817
4851
  className: `${styles$3.deleteItem} ${draggingId === index2 ? styles$3.active : ""}`,
4818
- onClick: /* @__PURE__ */ __name((e) => {
4819
- e.stopPropagation(), handleDelete(rule), currentRuleRangesSet([]);
4852
+ onClick: /* @__PURE__ */ __name((e2) => {
4853
+ e2.stopPropagation(), handleDelete(rule), currentRuleRangesSet([]);
4820
4854
  }, "onClick"),
4821
4855
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteSingle, {})
4822
4856
  }
@@ -5307,7 +5341,23 @@ const RuleList = /* @__PURE__ */ __name((props) => {
5307
5341
  ] })
5308
5342
  ] })
5309
5343
  ] });
5310
- }, "DataBarStyleEditor"), cfStyleEdit = "univer-cf-style-edit", buttonItem = "univer-button-item", isActive = "univer-isActive", styles = {
5344
+ }, "DataBarStyleEditor");
5345
+ function r(e2) {
5346
+ var t, f2, n2 = "";
5347
+ if (typeof e2 == "string" || typeof e2 == "number") n2 += e2;
5348
+ else if (typeof e2 == "object") if (Array.isArray(e2)) {
5349
+ var o = e2.length;
5350
+ for (t = 0; t < o; t++) e2[t] && (f2 = r(e2[t])) && (n2 && (n2 += " "), n2 += f2);
5351
+ } else for (f2 in e2) e2[f2] && (n2 && (n2 += " "), n2 += f2);
5352
+ return n2;
5353
+ }
5354
+ __name(r, "r");
5355
+ function clsx() {
5356
+ for (var e2, t, f2 = 0, n2 = "", o = arguments.length; f2 < o; f2++) (e2 = arguments[f2]) && (t = r(e2)) && (n2 && (n2 += " "), n2 += t);
5357
+ return n2;
5358
+ }
5359
+ __name(clsx, "clsx");
5360
+ const cfStyleEdit = "univer-cf-style-edit", buttonItem = "univer-button-item", isActive = "univer-isActive", styles = {
5311
5361
  cfStyleEdit,
5312
5362
  buttonItem,
5313
5363
  isActive
@@ -5340,10 +5390,10 @@ const RuleList = /* @__PURE__ */ __name((props) => {
5340
5390
  };
5341
5391
  fontColor !== void 0 && (resultStyle.cl = { rgb: fontColor }), bgColor !== void 0 && (resultStyle.bg = { rgb: bgColor }), isStrikethrough !== void 0 && (resultStyle.st = { s: isStrikethrough }), isUnderline !== void 0 && (resultStyle.ul = { s: isUnderline }), onChange(removeUndefinedAttr(resultStyle));
5342
5392
  }, [isBold, isItalic, isUnderline, isStrikethrough, fontColor, bgColor]), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles.cfStyleEdit} ${className}`, children: [
5343
- BoldSingleIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cl({ [styles.isActive]: getBooleanFromNumber(isBold || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isBoldSet(getAnotherBooleanNumber(isBold)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(BoldSingleIcon, {}) }),
5344
- ItalicSingleIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cl({ [styles.isActive]: getBooleanFromNumber(isItalic || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isItalicSet(getAnotherBooleanNumber(isItalic)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItalicSingleIcon, {}) }),
5345
- UnderlineSingleIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cl({ [styles.isActive]: getBooleanFromNumber(isUnderline || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isUnderlineSet(getAnotherBooleanNumber(isUnderline)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(UnderlineSingleIcon, {}) }),
5346
- StrikethroughSingle && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cl({ [styles.isActive]: getBooleanFromNumber(isStrikethrough || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isStrikethroughSet(getAnotherBooleanNumber(isStrikethrough)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(StrikethroughSingle, {}) }),
5393
+ BoldSingleIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx({ [styles.isActive]: getBooleanFromNumber(isBold || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isBoldSet(getAnotherBooleanNumber(isBold)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(BoldSingleIcon, {}) }),
5394
+ ItalicSingleIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx({ [styles.isActive]: getBooleanFromNumber(isItalic || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isItalicSet(getAnotherBooleanNumber(isItalic)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItalicSingleIcon, {}) }),
5395
+ UnderlineSingleIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx({ [styles.isActive]: getBooleanFromNumber(isUnderline || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isUnderlineSet(getAnotherBooleanNumber(isUnderline)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(UnderlineSingleIcon, {}) }),
5396
+ StrikethroughSingle && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx({ [styles.isActive]: getBooleanFromNumber(isStrikethrough || BooleanNumber.FALSE) }, styles.buttonItem), onClick: /* @__PURE__ */ __name(() => isStrikethroughSet(getAnotherBooleanNumber(isStrikethrough)), "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(StrikethroughSingle, {}) }),
5347
5397
  /* @__PURE__ */ jsxRuntimeExports.jsx(ColorPicker, { color: fontColor, onChange: fontColorSet, iconId: "FontColor" }),
5348
5398
  /* @__PURE__ */ jsxRuntimeExports.jsx(ColorPicker, { color: bgColor, onChange: bgColorSet, iconId: "PaintBucket" })
5349
5399
  ] });
@@ -6024,7 +6074,7 @@ const RuleList = /* @__PURE__ */ __name((props) => {
6024
6074
  return ranges != null && ranges.length || (ranges = (_c2 = (_b2 = selectionManagerService.getCurrentSelections()) == null ? void 0 : _b2.map((s) => s.range)) != null ? _c2 : []), rangeResult.current = ranges, ranges != null && ranges.length ? ranges.map((range) => {
6025
6075
  const v = serializeRange(range);
6026
6076
  return v === "NaN" ? "" : v;
6027
- }).filter((r) => !!r).join(",") : "";
6077
+ }).filter((r2) => !!r2).join(",") : "";
6028
6078
  }, [props.rule]), options = [
6029
6079
  { label: localeService.t("sheet.cf.ruleType.highlightCell"), value: "1" },
6030
6080
  { label: localeService.t("sheet.cf.panel.rankAndAverage"), value: "2" },
@@ -6093,7 +6143,7 @@ const RuleList = /* @__PURE__ */ __name((props) => {
6093
6143
  const onStyleChange = /* @__PURE__ */ __name((config) => {
6094
6144
  result.current = config;
6095
6145
  }, "onStyleChange"), onRangeSelectorChange = /* @__PURE__ */ __name((ranges) => {
6096
- rangeResult.current = ranges.map((r) => r.range);
6146
+ rangeResult.current = ranges.map((r2) => r2.range);
6097
6147
  }, "onRangeSelectorChange"), handleSubmit = /* @__PURE__ */ __name(() => {
6098
6148
  const ranges = (/* @__PURE__ */ __name(() => {
6099
6149
  const worksheet = univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET).getActiveSheet();
@@ -6129,7 +6179,7 @@ const RuleList = /* @__PURE__ */ __name((props) => {
6129
6179
  }
6130
6180
  ) }),
6131
6181
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.title, children: localeService.t("sheet.cf.panel.styleType") }),
6132
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.mTBase, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { className: styles$1.width100, value: ruleType2, options, onChange: /* @__PURE__ */ __name((e) => ruleTypeSet(e), "onChange") }) }),
6182
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.mTBase, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { className: styles$1.width100, value: ruleType2, options, onChange: /* @__PURE__ */ __name((e2) => ruleTypeSet(e2), "onChange") }) }),
6133
6183
  /* @__PURE__ */ jsxRuntimeExports.jsx(StyleEditor, { interceptorManager, rule: (_c = props.rule) == null ? void 0 : _c.rule, onChange: onStyleChange }),
6134
6184
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles$5.mTBase} ${styles$1.btnList}`, children: [
6135
6185
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", onClick: handleCancel, children: localeService.t("sheet.cf.panel.cancel") }),
@@ -6181,7 +6231,6 @@ let ConditionalFormattingPanelController = (_a3 = class extends Disposable {
6181
6231
  }
6182
6232
  }, __name(_a3, "ConditionalFormattingPanelController"), _a3);
6183
6233
  ConditionalFormattingPanelController = __decorateClass$b([
6184
- OnLifecycle(LifecycleStages.Ready, ConditionalFormattingPanelController),
6185
6234
  __decorateParam$b(0, IUniverInstanceService),
6186
6235
  __decorateParam$b(1, Inject(Injector)),
6187
6236
  __decorateParam$b(2, Inject(ComponentManager)),
@@ -6421,7 +6470,6 @@ let SheetsCfRenderController = (_a4 = class extends Disposable {
6421
6470
  }
6422
6471
  }, __name(_a4, "SheetsCfRenderController"), _a4);
6423
6472
  SheetsCfRenderController = __decorateClass$a([
6424
- OnLifecycle(LifecycleStages.Starting, SheetsCfRenderController),
6425
6473
  __decorateParam$a(0, Inject(SheetInterceptorService)),
6426
6474
  __decorateParam$a(1, Inject(ConditionalFormattingService)),
6427
6475
  __decorateParam$a(2, Inject(IUniverInstanceService)),
@@ -6588,7 +6636,6 @@ let ConditionalFormattingCopyPasteController = (_a5 = class extends Disposable {
6588
6636
  }
6589
6637
  }, __name(_a5, "ConditionalFormattingCopyPasteController"), _a5);
6590
6638
  ConditionalFormattingCopyPasteController = __decorateClass$9([
6591
- OnLifecycle(LifecycleStages.Rendered, ConditionalFormattingCopyPasteController),
6592
6639
  __decorateParam$9(0, Inject(ISheetClipboardService)),
6593
6640
  __decorateParam$9(1, Inject(ConditionalFormattingRuleModel)),
6594
6641
  __decorateParam$9(2, Inject(Injector)),
@@ -6649,7 +6696,6 @@ let SheetsCfRefRangeController = (_a6 = class extends Disposable {
6649
6696
  }
6650
6697
  }, __name(_a6, "SheetsCfRefRangeController"), _a6);
6651
6698
  SheetsCfRefRangeController = __decorateClass$8([
6652
- OnLifecycle(LifecycleStages.Rendered, SheetsCfRefRangeController),
6653
6699
  __decorateParam$8(0, Inject(ConditionalFormattingRuleModel)),
6654
6700
  __decorateParam$8(1, Inject(IUniverInstanceService)),
6655
6701
  __decorateParam$8(2, Inject(Injector)),
@@ -6677,7 +6723,6 @@ let ConditionalFormattingPermissionController = (_a7 = class extends Disposable
6677
6723
  }
6678
6724
  }, __name(_a7, "ConditionalFormattingPermissionController"), _a7);
6679
6725
  ConditionalFormattingPermissionController = __decorateClass$7([
6680
- OnLifecycle(LifecycleStages.Rendered, ConditionalFormattingPermissionController),
6681
6726
  __decorateParam$7(0, Inject(LocaleService)),
6682
6727
  __decorateParam$7(1, ICommandService),
6683
6728
  __decorateParam$7(2, Inject(SheetPermissionInterceptorBaseController))
@@ -6857,7 +6902,6 @@ let ConditionalFormattingAutoFillController = (_a9 = class extends Disposable {
6857
6902
  }
6858
6903
  }, __name(_a9, "ConditionalFormattingAutoFillController"), _a9);
6859
6904
  ConditionalFormattingAutoFillController = __decorateClass$5([
6860
- OnLifecycle(LifecycleStages.Rendered, ConditionalFormattingAutoFillController),
6861
6905
  __decorateParam$5(0, Inject(Injector)),
6862
6906
  __decorateParam$5(1, Inject(IUniverInstanceService)),
6863
6907
  __decorateParam$5(2, Inject(IAutoFillService)),
@@ -6908,7 +6952,6 @@ let ConditionalFormattingClearController = (_a10 = class extends Disposable {
6908
6952
  }
6909
6953
  }, __name(_a10, "ConditionalFormattingClearController"), _a10);
6910
6954
  ConditionalFormattingClearController = __decorateClass$4([
6911
- OnLifecycle(LifecycleStages.Rendered, ConditionalFormattingClearController),
6912
6955
  __decorateParam$4(0, Inject(Injector)),
6913
6956
  __decorateParam$4(1, Inject(IUniverInstanceService)),
6914
6957
  __decorateParam$4(2, Inject(SheetInterceptorService)),
@@ -6986,7 +7029,6 @@ let ConditionalFormattingEditorController = (_a11 = class extends Disposable {
6986
7029
  }
6987
7030
  }, __name(_a11, "ConditionalFormattingEditorController"), _a11);
6988
7031
  ConditionalFormattingEditorController = __decorateClass$3([
6989
- OnLifecycle(LifecycleStages.Rendered, ConditionalFormattingEditorController),
6990
7032
  __decorateParam$3(0, Inject(IEditorBridgeService)),
6991
7033
  __decorateParam$3(1, Inject(ConditionalFormattingService))
6992
7034
  ], ConditionalFormattingEditorController);
@@ -7115,7 +7157,6 @@ let ConditionalFormattingMenuController = (_a12 = class extends Disposable {
7115
7157
  }
7116
7158
  }, __name(_a12, "ConditionalFormattingMenuController"), _a12);
7117
7159
  ConditionalFormattingMenuController = __decorateClass$2([
7118
- OnLifecycle(LifecycleStages.Ready, ConditionalFormattingMenuController),
7119
7160
  __decorateParam$2(0, Inject(Injector)),
7120
7161
  __decorateParam$2(1, IMenuManagerService)
7121
7162
  ], ConditionalFormattingMenuController);
@@ -7328,7 +7369,6 @@ let ConditionalFormattingPainterController = (_a13 = class extends Disposable {
7328
7369
  }
7329
7370
  }, __name(_a13, "ConditionalFormattingPainterController"), _a13);
7330
7371
  ConditionalFormattingPainterController = __decorateClass$1([
7331
- OnLifecycle(LifecycleStages.Rendered, ConditionalFormattingPainterController),
7332
7372
  __decorateParam$1(0, Inject(Injector)),
7333
7373
  __decorateParam$1(1, Inject(IUniverInstanceService)),
7334
7374
  __decorateParam$1(2, Inject(IFormatPainterService)),
@@ -7345,7 +7385,42 @@ let UniverSheetsConditionalFormattingUIPlugin = (_a14 = class extends Plugin {
7345
7385
  constructor(_config = defaultPluginConfig, _injector, _commandService, _configService) {
7346
7386
  super(), this._config = _config, this._injector = _injector, this._commandService = _commandService, this._configService = _configService;
7347
7387
  const { menu, ...rest } = this._config;
7348
- menu && this._configService.setConfig("menu", menu, { merge: !0 }), this._configService.setConfig(PLUGIN_CONFIG_KEY, rest), this._initCommand(), this._injector.add([SheetsCfRenderController]), this._injector.add([SheetsCfRefRangeController]), this._injector.add([ConditionalFormattingCopyPasteController]), this._injector.add([ConditionalFormattingAutoFillController]), this._injector.add([ConditionalFormattingPermissionController]), this._injector.add([ConditionalFormattingPanelController]), this._injector.add([ConditionalFormattingMenuController]), this._injector.add([ConditionalFormattingI18nController]), this._injector.add([ConditionalFormattingEditorController]), this._injector.add([ConditionalFormattingClearController]), this._injector.add([ConditionalFormattingPainterController]);
7388
+ menu && this._configService.setConfig("menu", menu, { merge: !0 }), this._configService.setConfig(PLUGIN_CONFIG_KEY, rest), this._initCommand();
7389
+ }
7390
+ onStarting() {
7391
+ registerDependencies(this._injector, [
7392
+ [SheetsCfRenderController],
7393
+ [SheetsCfRefRangeController],
7394
+ [ConditionalFormattingCopyPasteController],
7395
+ [ConditionalFormattingAutoFillController],
7396
+ [ConditionalFormattingPermissionController],
7397
+ [ConditionalFormattingPanelController],
7398
+ [ConditionalFormattingMenuController],
7399
+ [ConditionalFormattingI18nController],
7400
+ [ConditionalFormattingEditorController],
7401
+ [ConditionalFormattingClearController],
7402
+ [ConditionalFormattingPainterController]
7403
+ ]), touchDependencies(this._injector, [
7404
+ [SheetsCfRenderController]
7405
+ ]);
7406
+ }
7407
+ onReady() {
7408
+ touchDependencies(this._injector, [
7409
+ [ConditionalFormattingMenuController],
7410
+ [ConditionalFormattingPanelController]
7411
+ ]);
7412
+ }
7413
+ onRendered() {
7414
+ touchDependencies(this._injector, [
7415
+ [ConditionalFormattingAutoFillController],
7416
+ [ConditionalFormattingClearController],
7417
+ [ConditionalFormattingCopyPasteController],
7418
+ [ConditionalFormattingEditorController],
7419
+ [ConditionalFormattingI18nController],
7420
+ [ConditionalFormattingPainterController],
7421
+ [ConditionalFormattingPermissionController],
7422
+ [SheetsCfRefRangeController]
7423
+ ]);
7349
7424
  }
7350
7425
  _initCommand() {
7351
7426
  [