@univerjs/sheets-data-validation-ui 0.5.1-nightly.202412241606 → 0.5.1-nightly.202412261606

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,21 +1,21 @@
1
1
  var $o = Object.defineProperty;
2
2
  var ko = (e, t, o) => t in e ? $o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var M = (e, t, o) => ko(e, typeof t != "symbol" ? t + "" : t, o);
4
- import Kt, { useState as W, forwardRef as we, useRef as We, createElement as Re, useMemo as Te, useEffect as Ce } from "react";
5
- import { Inject as b, LocaleService as J, Disposable as De, DataValidationErrorStyle as at, useDependency as P, ICommandService as Q, dayjs as Gt, numfmt as Zt, CellValueType as Wo, UniverInstanceType as Y, toDisposable as Ho, IUniverInstanceService as ge, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Yo, DisposableCollection as Xo, CommandType as qe, BuildTextUtils as zo, DataValidationRenderMode as de, DataValidationType as Z, IConfigService as cn, UndoCommand as Ko, RedoCommand as Go, isUnitRangesEqual as Zo, debounce as qo, shallowEqual as yn, Injector as Fe, DataValidationStatus as it, ObjectMatrix as _t, Range as Jo, Rectangle as St, queryObjectMatrix as qt, Optional as Qo, RxDisposable as un, InterceptorEffectEnum as Xn, sequenceExecute as zn, bufferDebounceTime as ea, isFormulaString as Pe, Tools as Jt, ThemeService as ta, VerticalAlign as ue, HorizontalAlign as He, DEFAULT_STYLES as le, WrapStrategy as Se, DocumentDataModel as na, DEFAULT_EMPTY_DOCUMENT_VALUE as oa, BooleanNumber as Je, Plugin as Kn } from "@univerjs/core";
6
- import { Button as je, DatePanel as aa, Scrollbar as ia, FormLayout as G, RadioGroup as hn, Radio as Ae, Checkbox as bt, Input as xe, Select as Qt, DraggableList as ra } from "@univerjs/design";
7
- import { DeviceInputEventType as en, IRenderManagerService as Ve, fixLineWidthByScale as Mn, Transform as sa, CheckboxShape as la, CURSOR_TYPE as Ye, FontCache as da, Shape as ca, Rect as Gn, getFontStyleString as At, getDocsSkeletonPageSize as Qe, DocumentViewModel as ua, DocumentSkeleton as ha, Documents as pa } from "@univerjs/engine-render";
8
- import { SheetInterceptorService as pn, AFTER_CELL_EDIT_ASYNC as ma, SetRangeValuesCommand as mn, SheetsSelectionsService as Zn, getSheetCommandTarget as qn, WorkbookEditablePermission as Ct, RangeProtectionPermissionEditPoint as It, WorksheetEditPermission as wt, checkRangesEditablePermission as fa, WorksheetSetCellStylePermission as tn, INTERCEPTOR_POINT as Jn, InterceptCellContentPriority as Qn } from "@univerjs/sheets";
9
- import { SheetDataValidationModel as oe, getCellValueOrigin as ie, getDataValidationCellValue as ga, deserializeListOptions as eo, serializeListOptions as to, UpdateSheetDataValidationRangeCommand as no, UpdateSheetDataValidationSettingCommand as bn, RemoveSheetDataValidationCommand as oo, UpdateSheetDataValidationOptionsCommand as va, createDefaultNewRule as ao, AddSheetDataValidationCommand as fn, RemoveSheetAllDataValidationCommand as _a, DATA_VALIDATION_PLUGIN_NAME as io, getDataValidationDiffMutations as nn, DataValidationCacheService as ro, DataValidationFormulaController as Sa, DataValidationFormulaService as Ca, getFormulaResult as xt, isLegalFormulaResult as En, transformCheckboxValue as Ia, CHECKBOX_FORMULA_1 as wa, CHECKBOX_FORMULA_2 as Ra } from "@univerjs/sheets-data-validation";
4
+ import qt, { useState as W, forwardRef as we, useRef as We, createElement as Re, useMemo as Te, useEffect as Ce } from "react";
5
+ import { Inject as b, LocaleService as J, Disposable as De, DataValidationErrorStyle as at, useDependency as P, ICommandService as Q, dayjs as Jt, numfmt as Qt, CellValueType as Wo, UniverInstanceType as Y, toDisposable as Ho, IUniverInstanceService as ge, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Yo, DisposableCollection as Xo, CommandType as qe, BuildTextUtils as zo, DataValidationRenderMode as de, DataValidationType as Z, IConfigService as hn, UndoCommand as Ko, RedoCommand as Go, isUnitRangesEqual as Zo, debounce as qo, shallowEqual as Mn, Injector as Fe, DataValidationStatus as it, ObjectMatrix as St, Range as Jo, Rectangle as Ct, queryObjectMatrix as en, Optional as Qo, RxDisposable as pn, InterceptorEffectEnum as zn, sequenceExecute as Kn, bufferDebounceTime as ea, isFormulaString as Pe, Tools as rt, ThemeService as ta, VerticalAlign as ue, HorizontalAlign as He, DEFAULT_STYLES as le, WrapStrategy as Se, DocumentDataModel as na, DEFAULT_EMPTY_DOCUMENT_VALUE as oa, BooleanNumber as Je, Plugin as Gn } from "@univerjs/core";
6
+ import { Button as je, DatePanel as aa, Scrollbar as ia, FormLayout as G, RadioGroup as mn, Radio as Ae, Checkbox as Pt, Input as xe, Select as tn, DraggableList as ra } from "@univerjs/design";
7
+ import { DeviceInputEventType as nn, IRenderManagerService as Ve, fixLineWidthByScale as bn, Transform as sa, CheckboxShape as la, CURSOR_TYPE as Ye, FontCache as da, Shape as ca, Rect as Zn, getFontStyleString as Ft, getDocsSkeletonPageSize as Qe, DocumentViewModel as ua, DocumentSkeleton as ha, Documents as pa } from "@univerjs/engine-render";
8
+ import { SheetInterceptorService as fn, AFTER_CELL_EDIT_ASYNC as ma, SetRangeValuesCommand as gn, SheetsSelectionsService as qn, getSheetCommandTarget as Jn, WorkbookEditablePermission as It, RangeProtectionPermissionEditPoint as wt, WorksheetEditPermission as Rt, checkRangesEditablePermission as fa, WorksheetSetCellStylePermission as on, INTERCEPTOR_POINT as Qn, InterceptCellContentPriority as eo } from "@univerjs/sheets";
9
+ import { SheetDataValidationModel as oe, getCellValueOrigin as ie, getDataValidationCellValue as ga, deserializeListOptions as to, serializeListOptions as no, UpdateSheetDataValidationRangeCommand as oo, UpdateSheetDataValidationSettingCommand as En, RemoveSheetDataValidationCommand as ao, UpdateSheetDataValidationOptionsCommand as va, createDefaultNewRule as io, AddSheetDataValidationCommand as vn, RemoveSheetAllDataValidationCommand as _a, DATA_VALIDATION_PLUGIN_NAME as ro, getDataValidationDiffMutations as an, DataValidationCacheService as so, DataValidationFormulaController as Sa, DataValidationFormulaService as Ca, getFormulaResult as Nt, isLegalFormulaResult as On, transformCheckboxValue as Ia, CHECKBOX_FORMULA_1 as wa, CHECKBOX_FORMULA_2 as Ra } from "@univerjs/sheets-data-validation";
10
10
  import { getPatternType as Da } from "@univerjs/sheets-numfmt";
11
- import { SetCellEditVisibleOperation as so, SheetCanvasPopManagerService as Va, IEditorBridgeService as lo, SheetPermissionInterceptorBaseController as co, IMarkSelectionService as ya, HoverManagerService as Ma, CellAlertManagerService as ba, CellAlertType as Ea, IAutoFillService as Oa, APPLY_TYPE as et, virtualizeDiscreteRanges as on, getAutoFillRepeatRange as Pa, COPY_TYPE as On, rangeToDiscreteRange as La, PREDEFINED_HOOK_NAME as lt, getRepeatRange as Pn, ISheetClipboardService as Ta, getCurrentRangeDisable$ as Aa, AutoHeightController as uo, SheetSkeletonManagerService as Rt } from "@univerjs/sheets-ui";
12
- import { IDialogService as xa, KeyCode as an, ISidebarService as ho, useObservable as Ne, ComponentManager as Et, IZenZoneService as po, RectPopup as ja, useEvent as mo, useSidebarClick as gn, MenuItemType as vn, getMenuHiddenObservable as Fa, RibbonStartGroup as Na, IMenuManagerService as Ua } from "@univerjs/ui";
13
- import { DataValidatorRegistryService as ye, DataValidationModel as Ot, DataValidatorRegistryScope as Ba, TWO_FORMULA_OPERATOR_COUNT as $a, getRuleOptions as Ln, getRuleSetting as Tn } from "@univerjs/data-validation";
11
+ import { SetCellEditVisibleOperation as lo, SheetCanvasPopManagerService as Va, IEditorBridgeService as co, SheetPermissionInterceptorBaseController as uo, IMarkSelectionService as ya, HoverManagerService as Ma, CellAlertManagerService as ba, CellAlertType as Ea, IAutoFillService as Oa, APPLY_TYPE as et, virtualizeDiscreteRanges as rn, getAutoFillRepeatRange as Pa, COPY_TYPE as Pn, rangeToDiscreteRange as La, PREDEFINED_HOOK_NAME as dt, getRepeatRange as Ln, ISheetClipboardService as Ta, getCurrentRangeDisable$ as Aa, AutoHeightController as ho, SheetSkeletonManagerService as Dt } from "@univerjs/sheets-ui";
12
+ import { IDialogService as xa, KeyCode as sn, ISidebarService as po, useObservable as Ne, ComponentManager as Lt, IZenZoneService as mo, RectPopup as ja, useEvent as fo, useSidebarClick as _n, MenuItemType as Sn, getMenuHiddenObservable as Fa, RibbonStartGroup as Na, IMenuManagerService as Ua } from "@univerjs/ui";
13
+ import { DataValidatorRegistryService as ye, DataValidationModel as Tt, DataValidatorRegistryScope as Ba, TWO_FORMULA_OPERATOR_COUNT as $a, getRuleOptions as Tn, getRuleSetting as An } from "@univerjs/data-validation";
14
14
  import { RichTextEditingMutation as ka } from "@univerjs/docs";
15
- import { filter as _n, BehaviorSubject as An, distinctUntilChanged as Wa, Subject as Ha, debounceTime as Sn, bufferTime as fo } from "rxjs";
16
- import { deserializeRangeWithSheet as Ya, serializeRange as go } from "@univerjs/engine-formula";
17
- import { RangeSelector as Xa, FormulaEditor as vo } from "@univerjs/sheets-formula-ui";
18
- var jt = { exports: {} }, tt = {};
15
+ import { filter as Cn, BehaviorSubject as xn, distinctUntilChanged as Wa, Subject as Ha, debounceTime as In, bufferTime as go } from "rxjs";
16
+ import { deserializeRangeWithSheet as Ya, serializeRange as vo } from "@univerjs/engine-formula";
17
+ import { RangeSelector as Xa, FormulaEditor as _o } from "@univerjs/sheets-formula-ui";
18
+ var Ut = { exports: {} }, tt = {};
19
19
  /**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
@@ -25,11 +25,11 @@ var jt = { exports: {} }, tt = {};
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
27
  */
28
- var xn;
28
+ var jn;
29
29
  function za() {
30
- if (xn) return tt;
31
- xn = 1;
32
- var e = Kt, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
30
+ if (jn) return tt;
31
+ jn = 1;
32
+ var e = qt, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
33
33
  function r(l, s, c) {
34
34
  var u, p = {}, d = null, f = null;
35
35
  c !== void 0 && (d = "" + c), s.key !== void 0 && (d = "" + s.key), s.ref !== void 0 && (f = s.ref);
@@ -39,16 +39,16 @@ function za() {
39
39
  }
40
40
  return tt.Fragment = o, tt.jsx = r, tt.jsxs = r, tt;
41
41
  }
42
- var jn;
42
+ var Fn;
43
43
  function Ka() {
44
- return jn || (jn = 1, jt.exports = za()), jt.exports;
44
+ return Fn || (Fn = 1, Ut.exports = za()), Ut.exports;
45
45
  }
46
46
  var h = Ka(), Ga = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, qa = (e, t, o, n) => {
47
47
  for (var a = n > 1 ? void 0 : n ? Za(t, o) : t, i = e.length - 1, r; i >= 0; i--)
48
48
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
49
49
  return n && a && Ga(t, o, a), a;
50
50
  }, nt = (e, t) => (o, n) => t(o, n, e);
51
- let rt = class extends De {
51
+ let st = class extends De {
52
52
  constructor(e, t, o, n, a) {
53
53
  super(), this._sheetInterceptorService = e, this._dataValidationModel = t, this._dataValidatorRegistryService = o, this._dialogService = n, this._localeService = a, this._initEditorBridgeInterceptor();
54
54
  }
@@ -88,7 +88,7 @@ let rt = class extends De {
88
88
  title: d.getRuleFinalError(p, { row: i, col: r, unitId: l, subUnitId: s })
89
89
  },
90
90
  footer: {
91
- title: Kt.createElement(
91
+ title: qt.createElement(
92
92
  je,
93
93
  {
94
94
  type: "primary",
@@ -116,7 +116,7 @@ let rt = class extends De {
116
116
  title: e
117
117
  },
118
118
  footer: {
119
- title: Kt.createElement(
119
+ title: qt.createElement(
120
120
  je,
121
121
  {
122
122
  type: "primary",
@@ -131,28 +131,28 @@ let rt = class extends De {
131
131
  });
132
132
  }
133
133
  };
134
- rt = qa([
135
- nt(0, b(pn)),
134
+ st = qa([
135
+ nt(0, b(fn)),
136
136
  nt(1, b(oe)),
137
137
  nt(2, b(ye)),
138
138
  nt(3, xa),
139
139
  nt(4, b(J))
140
- ], rt);
141
- const Ja = "univer-dv-date-dropdown", Qa = "univer-dv-date-dropdown-btns", Fn = {
140
+ ], st);
141
+ const Ja = "univer-dv-date-dropdown", Qa = "univer-dv-date-dropdown-btns", Nn = {
142
142
  dvDateDropdown: Ja,
143
143
  dvDateDropdownBtns: Qa
144
144
  }, ei = (e) => {
145
145
  if (e == null || typeof e == "boolean")
146
146
  return;
147
147
  if (typeof e == "number" || !Number.isNaN(+e))
148
- return Gt(Zt.format("yyyy-MM-dd HH:mm:ss", Number(e)));
149
- const t = Gt(e);
148
+ return Jt(Qt.format("yyyy-MM-dd HH:mm:ss", Number(e)));
149
+ const t = Jt(e);
150
150
  if (t.isValid())
151
151
  return t;
152
152
  };
153
153
  function ti(e) {
154
154
  var v;
155
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = P(Q), u = P(rt), p = n.getCell(a, i), d = ie(n.getCellRaw(a, i)), f = ei(d), [m, _] = W(f), w = m && m.isValid() ? m : Gt(), S = P(J), R = P(oe), I = R.getRuleByLocation(r, l, a, i);
155
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = P(Q), u = P(st), p = n.getCell(a, i), d = ie(n.getCellRaw(a, i)), f = ei(d), [m, _] = W(f), w = m && m.isValid() ? m : Jt(), S = P(J), R = P(oe), I = R.getRuleByLocation(r, l, a, i);
156
156
  if (!I)
157
157
  return null;
158
158
  const V = R.getValidator(I.type);
@@ -162,7 +162,7 @@ function ti(e) {
162
162
  var x, j, F;
163
163
  if (!w)
164
164
  return;
165
- const L = w.format(C ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), U = (x = Zt.parseDate(L)) == null ? void 0 : x.v, T = s.getStyles().getStyleByCell(p), E = (F = (j = T == null ? void 0 : T.n) == null ? void 0 : j.pattern) != null ? F : "", A = Da(E);
165
+ const L = w.format(C ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), U = (x = Qt.parseDate(L)) == null ? void 0 : x.v, T = s.getStyles().getStyleByCell(p), E = (F = (j = T == null ? void 0 : T.n) == null ? void 0 : j.pattern) != null ? F : "", A = Da(E);
166
166
  I.errorStyle !== at.STOP || await V.validator({
167
167
  value: U,
168
168
  unitId: r,
@@ -173,12 +173,12 @@ function ti(e) {
173
173
  workbook: s,
174
174
  interceptValue: L.replace("Z", "").replace("T", " "),
175
175
  t: Wo.NUMBER
176
- }, I) ? (o(), await c.executeCommand(so.id, {
176
+ }, I) ? (o(), await c.executeCommand(lo.id, {
177
177
  visible: !1,
178
- eventType: en.Keyboard,
178
+ eventType: nn.Keyboard,
179
179
  unitId: r,
180
- keycode: an.ESC
181
- }), await c.executeCommand(mn.id, {
180
+ keycode: sn.ESC
181
+ }), await c.executeCommand(gn.id, {
182
182
  unitId: r,
183
183
  subUnitId: l,
184
184
  range: {
@@ -201,7 +201,7 @@ function ti(e) {
201
201
  }
202
202
  })) : u.showReject(V.getRuleFinalError(I, { row: a, col: i, unitId: r, subUnitId: l }));
203
203
  };
204
- return /* @__PURE__ */ h.jsxs("div", { className: Fn.dvDateDropdown, children: [
204
+ return /* @__PURE__ */ h.jsxs("div", { className: Nn.dvDateDropdown, children: [
205
205
  /* @__PURE__ */ h.jsx(
206
206
  aa,
207
207
  {
@@ -214,10 +214,10 @@ function ti(e) {
214
214
  onPanelChange: (y) => {
215
215
  _(y);
216
216
  },
217
- disabledDate: (y) => !Zt.parseDate(y.format("YYYY-MM-DD"))
217
+ disabledDate: (y) => !Qt.parseDate(y.format("YYYY-MM-DD"))
218
218
  }
219
219
  ),
220
- /* @__PURE__ */ h.jsx("div", { className: Fn.dvDateDropdownBtns, children: /* @__PURE__ */ h.jsx(je, { size: "small", type: "primary", onClick: g, disabled: !w.isValid(), children: S.t("dataValidation.alert.ok") }) })
220
+ /* @__PURE__ */ h.jsx("div", { className: Nn.dvDateDropdownBtns, children: /* @__PURE__ */ h.jsx(je, { size: "small", type: "primary", onClick: g, disabled: !w.isValid(), children: S.t("dataValidation.alert.ok") }) })
221
221
  ] });
222
222
  }
223
223
  var ce = function() {
@@ -237,11 +237,11 @@ var ce = function() {
237
237
  return o;
238
238
  }, Me = we(function(e, t) {
239
239
  var o = e.icon, n = e.id, a = e.className, i = e.extend, r = ni(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(a || "").trim(), s = We("_".concat(ii()));
240
- return _o(o, "".concat(n), { defIds: o.defIds, idSuffix: s.current }, ce({ ref: t, className: l }, r), i);
240
+ return So(o, "".concat(n), { defIds: o.defIds, idSuffix: s.current }, ce({ ref: t, className: l }, r), i);
241
241
  });
242
- function _o(e, t, o, n, a) {
242
+ function So(e, t, o, n, a) {
243
243
  return Re(e.tag, ce(ce({ key: t }, oi(e, o, a)), n), (ai(e, o).children || []).map(function(i, r) {
244
- return _o(i, "".concat(t, "-").concat(e.tag, "-").concat(r), o, void 0, a);
244
+ return So(i, "".concat(t, "-").concat(e.tag, "-").concat(r), o, void 0, a);
245
245
  }));
246
246
  }
247
247
  function oi(e, t, o) {
@@ -263,82 +263,82 @@ function ii() {
263
263
  return Math.random().toString(36).substring(2, 8);
264
264
  }
265
265
  Me.displayName = "UniverIcon";
266
- var ri = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, So = we(function(e, t) {
266
+ var ri = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Co = we(function(e, t) {
267
267
  return Re(Me, Object.assign({}, e, {
268
268
  id: "check-mark-single",
269
269
  ref: t,
270
270
  icon: ri
271
271
  }));
272
272
  });
273
- So.displayName = "CheckMarkSingle";
274
- var si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.4917 3.07803C1.4917 2.19437 2.20804 1.47803 3.0917 1.47803H5.6917C6.57536 1.47803 7.2917 2.19437 7.2917 3.07803V5.67803C7.2917 6.56168 6.57535 7.27803 5.6917 7.27803H3.0917C2.20804 7.27803 1.4917 6.56168 1.4917 5.67803V3.07803ZM3.0917 2.67803C2.87078 2.67803 2.6917 2.85711 2.6917 3.07803V5.67803C2.6917 5.89894 2.87079 6.07803 3.0917 6.07803H5.6917C5.91261 6.07803 6.0917 5.89894 6.0917 5.67803V3.07803C6.0917 2.85711 5.91261 2.67803 5.6917 2.67803H3.0917Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.6175 2.45279C14.8518 2.68711 14.8518 3.06701 14.6175 3.30132L11.6151 6.30365C11.3957 6.52307 11.0451 6.53897 10.8067 6.34031L8.80915 4.67566C8.55458 4.46352 8.52019 4.08518 8.73233 3.83062 8.94447 3.57605 9.32281 3.54166 9.57737 3.7538L11.154 5.06767 13.769 2.45278C14.0033 2.21847 14.3832 2.21848 14.6175 2.45279zM14.1175 9.19746C14.3518 9.43178 14.3518 9.81168 14.1175 10.046L12.5418 11.6217 14.1175 13.1975C14.3518 13.4318 14.3518 13.8117 14.1175 14.046 13.8832 14.2803 13.5033 14.2803 13.269 14.046L11.6933 12.4703 10.1175 14.046C9.88321 14.2803 9.50331 14.2803 9.269 14.046 9.03468 13.8117 9.03468 13.4318 9.269 13.1975L10.8447 11.6217 9.269 10.046C9.03468 9.81168 9.03468 9.43178 9.269 9.19746 9.50331 8.96315 9.88321 8.96315 10.1175 9.19746L11.6933 10.7732 13.269 9.19746C13.5033 8.96315 13.8832 8.96315 14.1175 9.19746z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.0917 8.72168C2.20804 8.72168 1.4917 9.43802 1.4917 10.3217V12.9217C1.4917 13.8053 2.20804 14.5217 3.0917 14.5217H5.6917C6.57535 14.5217 7.2917 13.8053 7.2917 12.9217V10.3217C7.2917 9.43802 6.57536 8.72168 5.6917 8.72168H3.0917ZM2.6917 10.3217C2.6917 10.1008 2.87078 9.92168 3.0917 9.92168H5.6917C5.91261 9.92168 6.0917 10.1008 6.0917 10.3217V12.9217C6.0917 13.1426 5.91261 13.3217 5.6917 13.3217H3.0917C2.87079 13.3217 2.6917 13.1426 2.6917 12.9217V10.3217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Co = we(function(e, t) {
273
+ Co.displayName = "CheckMarkSingle";
274
+ var si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.4917 3.07803C1.4917 2.19437 2.20804 1.47803 3.0917 1.47803H5.6917C6.57536 1.47803 7.2917 2.19437 7.2917 3.07803V5.67803C7.2917 6.56168 6.57535 7.27803 5.6917 7.27803H3.0917C2.20804 7.27803 1.4917 6.56168 1.4917 5.67803V3.07803ZM3.0917 2.67803C2.87078 2.67803 2.6917 2.85711 2.6917 3.07803V5.67803C2.6917 5.89894 2.87079 6.07803 3.0917 6.07803H5.6917C5.91261 6.07803 6.0917 5.89894 6.0917 5.67803V3.07803C6.0917 2.85711 5.91261 2.67803 5.6917 2.67803H3.0917Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.6175 2.45279C14.8518 2.68711 14.8518 3.06701 14.6175 3.30132L11.6151 6.30365C11.3957 6.52307 11.0451 6.53897 10.8067 6.34031L8.80915 4.67566C8.55458 4.46352 8.52019 4.08518 8.73233 3.83062 8.94447 3.57605 9.32281 3.54166 9.57737 3.7538L11.154 5.06767 13.769 2.45278C14.0033 2.21847 14.3832 2.21848 14.6175 2.45279zM14.1175 9.19746C14.3518 9.43178 14.3518 9.81168 14.1175 10.046L12.5418 11.6217 14.1175 13.1975C14.3518 13.4318 14.3518 13.8117 14.1175 14.046 13.8832 14.2803 13.5033 14.2803 13.269 14.046L11.6933 12.4703 10.1175 14.046C9.88321 14.2803 9.50331 14.2803 9.269 14.046 9.03468 13.8117 9.03468 13.4318 9.269 13.1975L10.8447 11.6217 9.269 10.046C9.03468 9.81168 9.03468 9.43178 9.269 9.19746 9.50331 8.96315 9.88321 8.96315 10.1175 9.19746L11.6933 10.7732 13.269 9.19746C13.5033 8.96315 13.8832 8.96315 14.1175 9.19746z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.0917 8.72168C2.20804 8.72168 1.4917 9.43802 1.4917 10.3217V12.9217C1.4917 13.8053 2.20804 14.5217 3.0917 14.5217H5.6917C6.57535 14.5217 7.2917 13.8053 7.2917 12.9217V10.3217C7.2917 9.43802 6.57536 8.72168 5.6917 8.72168H3.0917ZM2.6917 10.3217C2.6917 10.1008 2.87078 9.92168 3.0917 9.92168H5.6917C5.91261 9.92168 6.0917 10.1008 6.0917 10.3217V12.9217C6.0917 13.1426 5.91261 13.3217 5.6917 13.3217H3.0917C2.87079 13.3217 2.6917 13.1426 2.6917 12.9217V10.3217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Io = we(function(e, t) {
275
275
  return Re(Me, Object.assign({}, e, {
276
276
  id: "data-validation-single",
277
277
  ref: t,
278
278
  icon: si
279
279
  }));
280
280
  });
281
- Co.displayName = "DataValidationSingle";
282
- var li = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Cn = we(function(e, t) {
281
+ Io.displayName = "DataValidationSingle";
282
+ var li = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, wn = we(function(e, t) {
283
283
  return Re(Me, Object.assign({}, e, {
284
284
  id: "delete-single",
285
285
  ref: t,
286
286
  icon: li
287
287
  }));
288
288
  });
289
- Cn.displayName = "DeleteSingle";
290
- var di = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, Io = we(function(e, t) {
289
+ wn.displayName = "DeleteSingle";
290
+ var di = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, wo = we(function(e, t) {
291
291
  return Re(Me, Object.assign({}, e, {
292
292
  id: "increase-single",
293
293
  ref: t,
294
294
  icon: di
295
295
  }));
296
296
  });
297
- Io.displayName = "IncreaseSingle";
298
- var ci = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, wo = we(function(e, t) {
297
+ wo.displayName = "IncreaseSingle";
298
+ var ci = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ro = we(function(e, t) {
299
299
  return Re(Me, Object.assign({}, e, {
300
300
  id: "more-down-single",
301
301
  ref: t,
302
302
  icon: ci
303
303
  }));
304
304
  });
305
- wo.displayName = "MoreDownSingle";
306
- var ui = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.64645 9.85355C4.45118 9.65829 4.45118 9.34171 4.64645 9.14645L7.64645 6.14645C7.84171 5.95118 8.15829 5.95118 8.35355 6.14645L11.3536 9.14645C11.5488 9.34171 11.5488 9.65829 11.3536 9.85355C11.1583 10.0488 10.8417 10.0488 10.6464 9.85355L8 7.20711L5.35355 9.85355C5.15829 10.0488 4.84171 10.0488 4.64645 9.85355Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ro = we(function(e, t) {
305
+ Ro.displayName = "MoreDownSingle";
306
+ var ui = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.64645 9.85355C4.45118 9.65829 4.45118 9.34171 4.64645 9.14645L7.64645 6.14645C7.84171 5.95118 8.15829 5.95118 8.35355 6.14645L11.3536 9.14645C11.5488 9.34171 11.5488 9.65829 11.3536 9.85355C11.1583 10.0488 10.8417 10.0488 10.6464 9.85355L8 7.20711L5.35355 9.85355C5.15829 10.0488 4.84171 10.0488 4.64645 9.85355Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Do = we(function(e, t) {
307
307
  return Re(Me, Object.assign({}, e, {
308
308
  id: "more-up-single",
309
309
  ref: t,
310
310
  icon: ui
311
311
  }));
312
312
  });
313
- Ro.displayName = "MoreUpSingle";
314
- var hi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { d: "M6 5C6.55228 5 7 4.55228 7 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z" } }] }] }, Do = we(function(e, t) {
313
+ Do.displayName = "MoreUpSingle";
314
+ var hi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { d: "M6 5C6.55228 5 7 4.55228 7 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z" } }] }] }, Vo = we(function(e, t) {
315
315
  return Re(Me, Object.assign({}, e, {
316
316
  id: "sequence-single",
317
317
  ref: t,
318
318
  icon: hi
319
319
  }));
320
320
  });
321
- Do.displayName = "SequenceSingle";
321
+ Vo.displayName = "SequenceSingle";
322
322
  var pi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, fi = (e, t, o, n) => {
323
323
  for (var a = n > 1 ? void 0 : n ? mi(t, o) : t, i = e.length - 1, r; i >= 0; i--)
324
324
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
325
325
  return n && a && pi(t, o, a), a;
326
- }, Nn = (e, t) => (o, n) => t(o, n, e);
326
+ }, Un = (e, t) => (o, n) => t(o, n, e);
327
327
  let me = class extends De {
328
328
  constructor(t, o) {
329
329
  super();
330
- M(this, "_open$", new An(!1));
330
+ M(this, "_open$", new xn(!1));
331
331
  M(this, "open$", this._open$.pipe(Wa()));
332
332
  M(this, "_activeRule");
333
- M(this, "_activeRule$", new An(void 0));
333
+ M(this, "_activeRule$", new xn(void 0));
334
334
  M(this, "activeRule$", this._activeRule$.asObservable());
335
335
  M(this, "_closeDisposable", null);
336
336
  this._univerInstanceService = t, this._sidebarService = o, this.disposeWithMe(
337
- this._univerInstanceService.getCurrentTypeOfUnit$(Y.UNIVER_SHEET).pipe(_n((n) => !n)).subscribe(() => {
337
+ this._univerInstanceService.getCurrentTypeOfUnit$(Y.UNIVER_SHEET).pipe(Cn((n) => !n)).subscribe(() => {
338
338
  this.close();
339
339
  })
340
340
  ), this.disposeWithMe(this._sidebarService.sidebarOptions$.subscribe((n) => {
341
- n.id === In && (n.visible || setTimeout(() => {
341
+ n.id === Vt && (n.visible || setTimeout(() => {
342
342
  this._sidebarService.sidebarOptions$.next({ visible: !1 });
343
343
  }));
344
344
  }));
@@ -370,11 +370,11 @@ let me = class extends De {
370
370
  }
371
371
  };
372
372
  me = fi([
373
- Nn(0, ge),
374
- Nn(1, ho)
373
+ Un(0, ge),
374
+ Un(1, po)
375
375
  ], me);
376
376
  function gi() {
377
- const e = P(Ie), t = Ne(e.activeDropdown$, e.activeDropdown), o = P(Et);
377
+ const e = P(Ie), t = Ne(e.activeDropdown$, e.activeDropdown), o = P(Lt);
378
378
  if (!t)
379
379
  return null;
380
380
  const { location: n, componentKey: a } = t, i = o.get(a), r = `${n.unitId}-${n.subUnitId}-${n.row}-${n.col}`;
@@ -392,7 +392,7 @@ function gi() {
392
392
  r
393
393
  );
394
394
  }
395
- const Vo = "sheet.ui.dropdown";
395
+ const yo = "sheet.ui.dropdown";
396
396
  var vi = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, Si = (e, t, o, n) => {
397
397
  for (var a = n > 1 ? void 0 : n ? _i(t, o) : t, i = e.length - 1, r; i >= 0; i--)
398
398
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
@@ -445,7 +445,7 @@ let Ie = class extends De {
445
445
  a,
446
446
  i,
447
447
  {
448
- componentKey: Vo,
448
+ componentKey: yo,
449
449
  onClickOutside: () => {
450
450
  o && this.hideDropdown();
451
451
  },
@@ -501,18 +501,18 @@ Ie = Si([
501
501
  be(0, b(Va)),
502
502
  be(1, ge),
503
503
  be(2, b(ye)),
504
- be(3, po),
504
+ be(3, mo),
505
505
  be(4, Ve),
506
506
  be(5, b(oe)),
507
- be(6, b(Zn))
507
+ be(6, b(qn))
508
508
  ], Ie);
509
- const In = "DataValidationPanel", Ue = {
509
+ const Vt = "DataValidationPanel", Ue = {
510
510
  id: "data-validation.operation.open-validation-panel",
511
511
  type: qe.OPERATION,
512
512
  handler(e, t) {
513
513
  if (!t)
514
514
  return !1;
515
- const { ruleId: o, isAdd: n } = t, a = e.get(me), i = e.get(Ot), r = e.get(ge), l = e.get(ho), s = qn(r);
515
+ const { ruleId: o, isAdd: n } = t, a = e.get(me), i = e.get(Tt), r = e.get(ge), l = e.get(po), s = Jn(r);
516
516
  if (!s) return !1;
517
517
  const { unitId: c, subUnitId: u } = s, p = o ? i.getRuleById(c, u, o) : void 0;
518
518
  a.open(), a.setActiveRule(p && {
@@ -521,27 +521,28 @@ const In = "DataValidationPanel", Ue = {
521
521
  rule: p
522
522
  });
523
523
  const d = l.open({
524
+ id: Vt,
524
525
  header: { title: n ? "dataValidation.panel.addTitle" : "dataValidation.panel.title" },
525
- children: { label: In },
526
+ children: { label: Vt },
526
527
  width: 312,
527
528
  onClose: () => a.close()
528
529
  });
529
530
  return a.setCloseDisposable(d), !0;
530
531
  }
531
- }, wn = {
532
+ }, Rn = {
532
533
  id: "data-validation.operation.close-validation-panel",
533
534
  type: qe.OPERATION,
534
535
  handler(e) {
535
536
  return e.get(me).close(), !0;
536
537
  }
537
- }, yo = {
538
+ }, Mo = {
538
539
  id: "data-validation.operation.toggle-validation-panel",
539
540
  type: qe.OPERATION,
540
541
  handler(e) {
541
542
  const t = e.get(Q), o = e.get(me);
542
- return o.open(), o.isOpen ? t.executeCommand(wn.id) : t.executeCommand(Ue.id), !0;
543
+ return o.open(), o.isOpen ? t.executeCommand(Rn.id) : t.executeCommand(Ue.id), !0;
543
544
  }
544
- }, Pt = {
545
+ }, At = {
545
546
  type: qe.OPERATION,
546
547
  id: "sheet.operation.show-data-validation-dropdown",
547
548
  handler(e, t) {
@@ -555,13 +556,13 @@ const In = "DataValidationPanel", Ue = {
555
556
  r
556
557
  ), !0;
557
558
  }
558
- }, Mo = {
559
+ }, bo = {
559
560
  type: qe.OPERATION,
560
561
  id: "sheet.operation.hide-data-validation-dropdown",
561
562
  handler(e, t) {
562
563
  return t ? (e.get(Ie).hideDropdown(), !0) : !1;
563
564
  }
564
- }, Le = "#ECECEC", Rn = "sheets-data-validation-ui.config", bo = {}, Ci = "univer-dv-list-dropdown", Ii = "univer-dv-list-dropdown-title", wi = "univer-dv-list-dropdown-list", Ri = "univer-dv-list-dropdown-list-container", Di = "univer-dv-list-dropdown-selected-icon", Vi = "univer-dv-list-dropdown-item-container", yi = "univer-dv-list-dropdown-item", Mi = "univer-dv-list-dropdown-split", bi = "univer-dv-list-dropdown-edit", ve = {
565
+ }, Le = "#ECECEC", Dn = "sheets-data-validation-ui.config", yt = {}, Ci = "univer-dv-list-dropdown", Ii = "univer-dv-list-dropdown-title", wi = "univer-dv-list-dropdown-list", Ri = "univer-dv-list-dropdown-list-container", Di = "univer-dv-list-dropdown-selected-icon", Vi = "univer-dv-list-dropdown-item-container", yi = "univer-dv-list-dropdown-item", Mi = "univer-dv-list-dropdown-split", bi = "univer-dv-list-dropdown-edit", ve = {
565
566
  dvListDropdown: Ci,
566
567
  dvListDropdownTitle: Ii,
567
568
  dvListDropdownList: wi,
@@ -573,11 +574,11 @@ const In = "DataValidationPanel", Ue = {
573
574
  dvListDropdownEdit: bi
574
575
  }, Ei = (e) => {
575
576
  var C, g;
576
- const { value: t, onChange: o, multiple: n, options: a, title: i, onEdit: r, style: l, filter: s, location: c } = e, u = P(J), p = P(cn), d = s == null ? void 0 : s.toLowerCase(), { row: f, col: m, unitId: _, subUnitId: w } = c, S = a.filter((v) => d ? v.label.toLowerCase().includes(d) : !0), R = (g = (C = p.getConfig(Rn)) == null ? void 0 : C.showEditOnDropdown) != null ? g : !0, I = P(co), V = Te(() => I.permissionCheckWithRanges(
577
+ const { value: t, onChange: o, multiple: n, options: a, title: i, onEdit: r, style: l, filter: s, location: c } = e, u = P(J), p = P(hn), d = s == null ? void 0 : s.toLowerCase(), { row: f, col: m, unitId: _, subUnitId: w } = c, S = a.filter((v) => d ? v.label.toLowerCase().includes(d) : !0), R = (g = (C = p.getConfig(Dn)) == null ? void 0 : C.showEditOnDropdown) != null ? g : !0, I = P(uo), V = Te(() => I.permissionCheckWithRanges(
577
578
  {
578
- workbookTypes: [Ct],
579
- rangeTypes: [It],
580
- worksheetTypes: [wt]
579
+ workbookTypes: [It],
580
+ rangeTypes: [wt],
581
+ worksheetTypes: [Rt]
581
582
  },
582
583
  [{ startColumn: m, startRow: f, endColumn: m, endRow: f }],
583
584
  _,
@@ -600,7 +601,7 @@ const In = "DataValidationPanel", Ue = {
600
601
  /* @__PURE__ */ h.jsx("span", { style: { fontWeight: "bold" }, children: v.label.substring(T, T + d.length) }),
601
602
  /* @__PURE__ */ h.jsx("span", { children: v.label.substring(T + d.length) })
602
603
  ] }) : v.label }),
603
- /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownSelectedIcon, children: L ? /* @__PURE__ */ h.jsx(So, {}) : null })
604
+ /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownSelectedIcon, children: L ? /* @__PURE__ */ h.jsx(Co, {}) : null })
604
605
  ] }, y);
605
606
  }) }) }, s) }),
606
607
  R && V ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
@@ -611,7 +612,7 @@ const In = "DataValidationPanel", Ue = {
611
612
  };
612
613
  function Oi(e) {
613
614
  var j, F, H, X;
614
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = P(Ot), [c, u] = W(""), p = P(Q), d = P(J), [f, m] = W(""), _ = P(lo), w = P(ge), S = Te(() => s.ruleChange$.pipe(Sn(16)), []), R = P(oe);
615
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = P(Tt), [c, u] = W(""), p = P(Q), d = P(J), [f, m] = W(""), _ = P(co), w = P(ge), S = Te(() => s.ruleChange$.pipe(In(16)), []), R = P(oe);
615
616
  Ne(S);
616
617
  const I = ja.useContext(), V = ((F = (j = I.current) == null ? void 0 : j.right) != null ? F : 0) - ((X = (H = I.current) == null ? void 0 : H.left) != null ? X : 0);
617
618
  if (Ce(() => {
@@ -639,7 +640,7 @@ function Oi(e) {
639
640
  const v = n.getCell(a, i), y = (C == null ? void 0 : C.renderMode) === de.CUSTOM || (C == null ? void 0 : C.renderMode) === void 0;
640
641
  if (!v || !C || !g || g.id.indexOf(Z.LIST) !== 0)
641
642
  return;
642
- const L = C.type === Z.LIST_MULTIPLE, U = g.getListWithColor(C, r, l), T = f || ga(n.getCellRaw(a, i)), E = eo(T), A = () => {
643
+ const L = C.type === Z.LIST_MULTIPLE, U = g.getListWithColor(C, r, l), T = f || ga(n.getCellRaw(a, i)), E = to(T), A = () => {
643
644
  p.executeCommand(Ue.id, {
644
645
  ruleId: C.uid
645
646
  }), o();
@@ -656,7 +657,7 @@ function Oi(e) {
656
657
  value: E,
657
658
  multiple: L,
658
659
  onChange: async (k) => {
659
- const z = to(k), q = {
660
+ const z = no(k), q = {
660
661
  unitId: r,
661
662
  subUnitId: l,
662
663
  range: {
@@ -674,15 +675,15 @@ function Oi(e) {
674
675
  };
675
676
  _.isVisible() && _.changeVisible({
676
677
  visible: !1,
677
- keycode: an.ESC,
678
- eventType: en.Keyboard,
678
+ keycode: sn.ESC,
679
+ eventType: nn.Keyboard,
679
680
  unitId: r
680
- }), m(z), L || o(), _.isVisible().visible && await p.executeCommand(so.id, {
681
+ }), m(z), L || o(), _.isVisible().visible && await p.executeCommand(lo.id, {
681
682
  visible: !1,
682
- eventType: en.Keyboard,
683
+ eventType: nn.Keyboard,
683
684
  unitId: r,
684
- keycode: an.ESC
685
- }), p.executeCommand(mn.id, q);
685
+ keycode: sn.ESC
686
+ }), p.executeCommand(gn.id, q);
686
687
  },
687
688
  options: x,
688
689
  onEdit: A,
@@ -691,17 +692,17 @@ function Oi(e) {
691
692
  }
692
693
  );
693
694
  }
694
- const Pi = "univer-data-validation-options-button", Li = "univer-data-validation-options-button-icon", Ft = {
695
+ const Pi = "univer-data-validation-options-button", Li = "univer-data-validation-options-button-icon", Bt = {
695
696
  dataValidationOptionsButton: Pi,
696
697
  dataValidationOptionsButtonIcon: Li
697
698
  };
698
699
  function Ti(e) {
699
700
  var c;
700
- const t = P(J), o = P(Et), { value: n, onChange: a, extraComponent: i } = e, [r, l] = W(!1), s = i ? o.get(i) : null;
701
+ const t = P(J), o = P(Lt), { value: n, onChange: a, extraComponent: i } = e, [r, l] = W(!1), s = i ? o.get(i) : null;
701
702
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
702
- /* @__PURE__ */ h.jsxs("div", { className: Ft.dataValidationOptionsButton, onClick: () => l(!r), children: [
703
+ /* @__PURE__ */ h.jsxs("div", { className: Bt.dataValidationOptionsButton, onClick: () => l(!r), children: [
703
704
  t.t("dataValidation.panel.options"),
704
- r ? /* @__PURE__ */ h.jsx(Ro, { className: Ft.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ h.jsx(wo, { className: Ft.dataValidationOptionsButtonIcon })
705
+ r ? /* @__PURE__ */ h.jsx(Do, { className: Bt.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ h.jsx(Ro, { className: Bt.dataValidationOptionsButtonIcon })
705
706
  ] }),
706
707
  r && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
707
708
  s ? /* @__PURE__ */ h.jsx(s, { value: n, onChange: a }) : null,
@@ -710,7 +711,7 @@ function Ti(e) {
710
711
  {
711
712
  label: t.t("dataValidation.panel.invalid"),
712
713
  children: /* @__PURE__ */ h.jsxs(
713
- hn,
714
+ mn,
714
715
  {
715
716
  value: `${(c = n.errorStyle) != null ? c : at.WARNING}`,
716
717
  onChange: (u) => a({ ...n, errorStyle: +u }),
@@ -727,7 +728,7 @@ function Ti(e) {
727
728
  {
728
729
  label: t.t("dataValidation.panel.messageInfo"),
729
730
  children: /* @__PURE__ */ h.jsx(
730
- bt,
731
+ Pt,
731
732
  {
732
733
  checked: n.showErrorMessage,
733
734
  onChange: () => a({
@@ -761,7 +762,7 @@ function Ui(e, t, o) {
761
762
  }
762
763
  function Bi() {
763
764
  var se;
764
- const [e, t] = W(0), o = P(me), n = Ne(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = P(ye), c = P(ge), u = P(Et), p = P(Q), d = P(Ot), f = P(J), [m, _] = W(r), w = s.getValidatorItem(m.type), [S, R] = W(!1), I = s.getValidatorsByScope(Ba.SHEET), [V, C] = W(() => m.ranges.map((O) => ({ unitId: "", sheetId: "", range: O }))), g = Te(() => Ni(p), [p]), [v, y] = W(!1), L = We({}), [U, T] = W(!1), E = P(Zn);
765
+ const [e, t] = W(0), o = P(me), n = Ne(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = P(ye), c = P(ge), u = P(Lt), p = P(Q), d = P(Tt), f = P(J), [m, _] = W(r), w = s.getValidatorItem(m.type), [S, R] = W(!1), I = s.getValidatorsByScope(Ba.SHEET), [V, C] = W(() => m.ranges.map((O) => ({ unitId: "", sheetId: "", range: O }))), g = Te(() => Ni(p), [p]), [v, y] = W(!1), L = We({}), [U, T] = W(!1), E = P(qn);
765
766
  if (Ce(() => () => {
766
767
  const O = E.getCurrentLastSelection();
767
768
  O && E.setSelections([O]);
@@ -776,7 +777,7 @@ function Bi() {
776
777
  return null;
777
778
  const A = w.operators, x = w.operatorNames, j = m.operator ? $a.includes(m.operator) : !1, F = () => {
778
779
  !m.ranges.length || v || (w.validatorFormula(m, a, i).success ? o.setActiveRule(null) : R(!0));
779
- }, H = mo((O) => {
780
+ }, H = fo((O) => {
780
781
  const D = O.split(",").map(Ya).map(($) => {
781
782
  const _e = $.sheetName;
782
783
  if (_e) {
@@ -803,9 +804,9 @@ function Bi() {
803
804
  ruleId: l,
804
805
  ranges: N
805
806
  };
806
- g(no.id, B);
807
+ g(oo.id, B);
807
808
  }), X = (O) => {
808
- if (yn(O, Tn(m)))
809
+ if (Mn(O, An(m)))
809
810
  return;
810
811
  _({
811
812
  ...m,
@@ -818,12 +819,12 @@ function Bi() {
818
819
  setting: O
819
820
  };
820
821
  g(
821
- bn.id,
822
+ En.id,
822
823
  D,
823
824
  void 0
824
825
  );
825
826
  }, k = async () => {
826
- await p.executeCommand(oo.id, {
827
+ await p.executeCommand(ao.id, {
827
828
  ruleId: l,
828
829
  unitId: a,
829
830
  subUnitId: i
@@ -848,14 +849,14 @@ function Bi() {
848
849
  formula1: void 0,
849
850
  formula2: void 0
850
851
  };
851
- _($), p.executeCommand(bn.id, {
852
+ _($), p.executeCommand(En.id, {
852
853
  unitId: a,
853
854
  subUnitId: i,
854
855
  ruleId: m.uid,
855
- setting: Tn($)
856
+ setting: An($)
856
857
  });
857
- }, ee = u.get(w.formulaInput), te = Te(() => V.map((O) => go(O.range)).join(","), []), re = Ln(m), ae = (O) => {
858
- yn(O, Ln(m)) || (_({
858
+ }, ee = u.get(w.formulaInput), te = Te(() => V.map((O) => vo(O.range)).join(","), []), re = Tn(m), ae = (O) => {
859
+ Mn(O, Tn(m)) || (_({
859
860
  ...m,
860
861
  ...O
861
862
  }), g(
@@ -868,7 +869,7 @@ function Bi() {
868
869
  }
869
870
  ));
870
871
  };
871
- return gn((O) => {
872
+ return _n((O) => {
872
873
  var N;
873
874
  const D = (N = L.current) == null ? void 0 : N.handleOutClick;
874
875
  D && D(O, () => T(!1));
@@ -894,7 +895,7 @@ function Bi() {
894
895
  }
895
896
  ),
896
897
  /* @__PURE__ */ h.jsx(G, { label: f.t("dataValidation.panel.type"), children: /* @__PURE__ */ h.jsx(
897
- Qt,
898
+ tn,
898
899
  {
899
900
  options: I == null ? void 0 : I.map((O) => ({
900
901
  label: f.t(O.title),
@@ -906,7 +907,7 @@ function Bi() {
906
907
  }
907
908
  ) }),
908
909
  A != null && A.length ? /* @__PURE__ */ h.jsx(G, { label: f.t("dataValidation.panel.operator"), children: /* @__PURE__ */ h.jsx(
909
- Qt,
910
+ tn,
910
911
  {
911
912
  options: A.map((O, D) => ({
912
913
  value: `${O}`,
@@ -945,7 +946,7 @@ function Bi() {
945
946
  e + m.type
946
947
  ) : null,
947
948
  /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(
948
- bt,
949
+ Pt,
949
950
  {
950
951
  checked: (se = m.allowBlank) != null ? se : !0,
951
952
  onChange: () => {
@@ -965,14 +966,14 @@ function Bi() {
965
966
  ] })
966
967
  ] });
967
968
  }
968
- const $i = "univer-data-validation-item-container", ki = "univer-data-validation-item-title", Wi = "univer-data-validation-item-content", Hi = "univer-data-validation-item-icon", dt = {
969
+ const $i = "univer-data-validation-item-container", ki = "univer-data-validation-item-title", Wi = "univer-data-validation-item-content", Hi = "univer-data-validation-item-icon", ct = {
969
970
  dataValidationItemContainer: $i,
970
971
  dataValidationItemTitle: ki,
971
972
  dataValidationItemContent: Wi,
972
973
  dataValidationItemIcon: Hi
973
974
  }, Yi = (e) => {
974
975
  const { rule: t, onClick: o, unitId: n, subUnitId: a, disable: i } = e, r = P(ye), l = P(Q), s = P(ya), c = r.getValidatorItem(t.type), u = We(), [p, d] = W(!1), f = (m) => {
975
- l.executeCommand(oo.id, {
976
+ l.executeCommand(ao.id, {
976
977
  ruleId: t.uid,
977
978
  unitId: n,
978
979
  subUnitId: a
@@ -986,7 +987,7 @@ const $i = "univer-data-validation-item-container", ki = "univer-data-validation
986
987
  }, [s]), /* @__PURE__ */ h.jsxs(
987
988
  "div",
988
989
  {
989
- className: dt.dataValidationItemContainer,
990
+ className: ct.dataValidationItemContainer,
990
991
  onClick: o,
991
992
  onMouseEnter: () => {
992
993
  i || (d(!0), u.current = t.ranges.map((m) => s.addShape({
@@ -1008,13 +1009,13 @@ const $i = "univer-data-validation-item-container", ki = "univer-data-validation
1008
1009
  }), u.current = void 0;
1009
1010
  },
1010
1011
  children: [
1011
- /* @__PURE__ */ h.jsx("div", { className: dt.dataValidationItemTitle, children: c == null ? void 0 : c.generateRuleName(t) }),
1012
- /* @__PURE__ */ h.jsx("div", { className: dt.dataValidationItemContent, children: t.ranges.map((m) => go(m)).join(",") }),
1013
- p ? /* @__PURE__ */ h.jsx("div", { className: dt.dataValidationItemIcon, onClick: f, children: /* @__PURE__ */ h.jsx(Cn, {}) }) : null
1012
+ /* @__PURE__ */ h.jsx("div", { className: ct.dataValidationItemTitle, children: c == null ? void 0 : c.generateRuleName(t) }),
1013
+ /* @__PURE__ */ h.jsx("div", { className: ct.dataValidationItemContent, children: t.ranges.map((m) => vo(m)).join(",") }),
1014
+ p ? /* @__PURE__ */ h.jsx("div", { className: ct.dataValidationItemIcon, onClick: f, children: /* @__PURE__ */ h.jsx(wn, {}) }) : null
1014
1015
  ]
1015
1016
  }
1016
1017
  );
1017
- }, Xi = "univer-data-validation-list", zi = "univer-data-validation-list-buttons", Ki = "univer-data-validation-list-button", ct = {
1018
+ }, Xi = "univer-data-validation-list", zi = "univer-data-validation-list-buttons", Ki = "univer-data-validation-list-button", ut = {
1018
1019
  dataValidationList: Xi,
1019
1020
  dataValidationListButtons: zi,
1020
1021
  dataValidationListButton: Ki
@@ -1040,12 +1041,12 @@ function Zi(e) {
1040
1041
  };
1041
1042
  }, [p, d, t]);
1042
1043
  const f = async () => {
1043
- const R = ao(a), I = {
1044
+ const R = io(a), I = {
1044
1045
  unitId: p,
1045
1046
  subUnitId: d,
1046
1047
  rule: R
1047
1048
  };
1048
- await n.executeCommand(fn.id, I), i.setActiveRule({
1049
+ await n.executeCommand(vn.id, I), i.setActiveRule({
1049
1050
  unitId: p,
1050
1051
  subUnitId: d,
1051
1052
  rule: R
@@ -1059,7 +1060,7 @@ function Zi(e) {
1059
1060
  const I = o.getCurrentUnitForType(Y.UNIVER_SHEET), V = I.getActiveSheet(), C = I.getUnitId(), g = V.getSheetId();
1060
1061
  return R.map((y) => fa(a, C, g, y.ranges) ? { ...y } : { ...y, disable: !0 });
1061
1062
  })(l), S = w == null ? void 0 : w.some((R) => R.disable);
1062
- return /* @__PURE__ */ h.jsxs("div", { className: ct.dataValidationList, children: [
1063
+ return /* @__PURE__ */ h.jsxs("div", { className: ut.dataValidationList, children: [
1063
1064
  w == null ? void 0 : w.map((R) => {
1064
1065
  var I;
1065
1066
  return /* @__PURE__ */ h.jsx(
@@ -1080,27 +1081,27 @@ function Zi(e) {
1080
1081
  R.uid
1081
1082
  );
1082
1083
  }),
1083
- /* @__PURE__ */ h.jsxs("div", { className: ct.dataValidationListButtons, children: [
1084
- l.length && !S ? /* @__PURE__ */ h.jsx(je, { className: ct.dataValidationListButton, onClick: m, children: r.t("dataValidation.panel.removeAll") }) : null,
1085
- /* @__PURE__ */ h.jsx(je, { className: ct.dataValidationListButton, type: "primary", onClick: f, children: r.t("dataValidation.panel.add") })
1084
+ /* @__PURE__ */ h.jsxs("div", { className: ut.dataValidationListButtons, children: [
1085
+ l.length && !S ? /* @__PURE__ */ h.jsx(je, { className: ut.dataValidationListButton, onClick: m, children: r.t("dataValidation.panel.removeAll") }) : null,
1086
+ /* @__PURE__ */ h.jsx(je, { className: ut.dataValidationListButton, type: "primary", onClick: f, children: r.t("dataValidation.panel.add") })
1086
1087
  ] })
1087
1088
  ] });
1088
1089
  }
1089
1090
  const qi = () => {
1090
1091
  const e = P(me), t = Ne(e.activeRule$, e.activeRule);
1091
1092
  return t ? /* @__PURE__ */ h.jsx(Bi, {}, t.rule.uid) : /* @__PURE__ */ h.jsx(Gi, {});
1092
- }, Dn = "data-validation.list.dropdown", Eo = "data-validation.date.dropdown", Lt = {
1093
+ }, Vn = "data-validation.list.dropdown", Eo = "data-validation.date.dropdown", xt = {
1093
1094
  type: qe.COMMAND,
1094
1095
  id: "data-validation.command.addRuleAndOpen",
1095
1096
  handler(e) {
1096
- const t = e.get(ge), o = qn(t);
1097
+ const t = e.get(ge), o = Jn(t);
1097
1098
  if (!o) return !1;
1098
- const { workbook: n, worksheet: a } = o, i = ao(e), r = e.get(Q), l = n.getUnitId(), s = a.getSheetId(), c = {
1099
+ const { workbook: n, worksheet: a } = o, i = io(e), r = e.get(Q), l = n.getUnitId(), s = a.getSheetId(), c = {
1099
1100
  rule: i,
1100
1101
  unitId: l,
1101
1102
  subUnitId: s
1102
1103
  };
1103
- return r.syncExecuteCommand(fn.id, c) ? (r.syncExecuteCommand(Ue.id, {
1104
+ return r.syncExecuteCommand(vn.id, c) ? (r.syncExecuteCommand(Ue.id, {
1104
1105
  ruleId: i.uid,
1105
1106
  isAdd: !0
1106
1107
  }), !0) : !1;
@@ -1111,8 +1112,8 @@ var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, er = (e, t
1111
1112
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1112
1113
  return n && a && Ji(t, o, a), a;
1113
1114
  }, $e = (e, t) => (o, n) => t(o, n, e);
1114
- const ut = "SHEET_DATA_VALIDATION_ALERT";
1115
- let st = class extends De {
1115
+ const ht = "SHEET_DATA_VALIDATION_ALERT";
1116
+ let lt = class extends De {
1116
1117
  constructor(e, t, o, n, a, i) {
1117
1118
  super(), this._hoverManagerService = e, this._cellAlertManagerService = t, this._univerInstanceService = o, this._localeService = n, this._zenZoneService = a, this._dataValidationModel = i, this._init();
1118
1119
  }
@@ -1120,7 +1121,7 @@ let st = class extends De {
1120
1121
  this._initCellAlertPopup(), this._initZenService();
1121
1122
  }
1122
1123
  _initCellAlertPopup() {
1123
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(Sn(100)).subscribe((e) => {
1124
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(In(100)).subscribe((e) => {
1124
1125
  var t;
1125
1126
  if (e) {
1126
1127
  const o = this._univerInstanceService.getUnit(e.location.unitId, Y.UNIVER_SHEET), n = o.getSheetBySheetId(e.location.subUnitId);
@@ -1128,7 +1129,7 @@ let st = class extends De {
1128
1129
  const a = this._dataValidationModel.getRuleByLocation(e.location.unitId, e.location.subUnitId, e.location.row, e.location.col);
1129
1130
  if (!a) return;
1130
1131
  if (this._dataValidationModel.validator(a, { ...e.location, workbook: o, worksheet: n }) === it.INVALID) {
1131
- const r = this._cellAlertManagerService.currentAlert.get(ut), l = (t = r == null ? void 0 : r.alert) == null ? void 0 : t.location;
1132
+ const r = this._cellAlertManagerService.currentAlert.get(ht), l = (t = r == null ? void 0 : r.alert) == null ? void 0 : t.location;
1132
1133
  if (l && l.row === e.location.row && l.col === e.location.col && l.subUnitId === e.location.subUnitId && l.unitId === e.location.unitId)
1133
1134
  return;
1134
1135
  const s = this._dataValidationModel.getValidator(a.type);
@@ -1141,33 +1142,33 @@ let st = class extends De {
1141
1142
  location: e.location,
1142
1143
  width: 200,
1143
1144
  height: 74,
1144
- key: ut
1145
+ key: ht
1145
1146
  });
1146
1147
  return;
1147
1148
  }
1148
1149
  }
1149
- this._cellAlertManagerService.removeAlert(ut);
1150
+ this._cellAlertManagerService.removeAlert(ht);
1150
1151
  }));
1151
1152
  }
1152
1153
  _initZenService() {
1153
1154
  this.disposeWithMe(this._zenZoneService.visible$.subscribe((e) => {
1154
- e && this._cellAlertManagerService.removeAlert(ut);
1155
+ e && this._cellAlertManagerService.removeAlert(ht);
1155
1156
  }));
1156
1157
  }
1157
1158
  };
1158
- st = er([
1159
+ lt = er([
1159
1160
  $e(0, b(Ma)),
1160
1161
  $e(1, b(ba)),
1161
1162
  $e(2, ge),
1162
1163
  $e(3, b(J)),
1163
- $e(4, po),
1164
+ $e(4, mo),
1164
1165
  $e(5, b(oe))
1165
- ], st);
1166
+ ], lt);
1166
1167
  var tr = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, or = (e, t, o, n) => {
1167
1168
  for (var a = n > 1 ? void 0 : n ? nr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1168
1169
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1169
1170
  return n && a && tr(t, o, a), a;
1170
- }, Nt = (e, t) => (o, n) => t(o, n, e);
1171
+ }, $t = (e, t) => (o, n) => t(o, n, e);
1171
1172
  let Xe = class extends De {
1172
1173
  constructor(e, t, o) {
1173
1174
  super(), this._autoFillService = e, this._sheetDataValidationModel = t, this._injector = o, this._initAutoFill();
@@ -1175,10 +1176,10 @@ let Xe = class extends De {
1175
1176
  // eslint-disable-next-line max-lines-per-function
1176
1177
  _initAutoFill() {
1177
1178
  const e = () => ({ redos: [], undos: [] }), t = (n, a) => {
1178
- const { source: i, target: r, unitId: l, subUnitId: s } = n, c = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = on([i, r]), [p, d] = u.ranges, { mapFunc: f } = u, m = {
1179
+ const { source: i, target: r, unitId: l, subUnitId: s } = n, c = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = rn([i, r]), [p, d] = u.ranges, { mapFunc: f } = u, m = {
1179
1180
  row: p.startRow,
1180
1181
  col: p.startColumn
1181
- }, _ = Pa(p, d), w = new _t(), S = /* @__PURE__ */ new Set();
1182
+ }, _ = Pa(p, d), w = new St(), S = /* @__PURE__ */ new Set();
1182
1183
  _.forEach((g) => {
1183
1184
  const v = g.repeatStartCell, y = g.relativeRange, L = {
1184
1185
  startRow: m.row,
@@ -1192,7 +1193,7 @@ let Xe = class extends De {
1192
1193
  endRow: v.row
1193
1194
  };
1194
1195
  Jo.foreach(y, (T, E) => {
1195
- const A = St.getPositionRange(
1196
+ const A = Ct.getPositionRange(
1196
1197
  {
1197
1198
  startRow: T,
1198
1199
  startColumn: E,
@@ -1200,7 +1201,7 @@ let Xe = class extends De {
1200
1201
  endRow: T
1201
1202
  },
1202
1203
  L
1203
- ), { row: x, col: j } = f(A.startRow, A.startColumn), F = this._sheetDataValidationModel.getRuleIdByLocation(l, s, x, j) || "", H = St.getPositionRange(
1204
+ ), { row: x, col: j } = f(A.startRow, A.startColumn), F = this._sheetDataValidationModel.getRuleIdByLocation(l, s, x, j) || "", H = Ct.getPositionRange(
1204
1205
  {
1205
1206
  startRow: T,
1206
1207
  startColumn: E,
@@ -1212,15 +1213,15 @@ let Xe = class extends De {
1212
1213
  w.setValue(X, k, F), S.add(F);
1213
1214
  });
1214
1215
  });
1215
- const R = Array.from(S).map((g) => ({ id: g, ranges: qt(w, (v) => v === g) }));
1216
+ const R = Array.from(S).map((g) => ({ id: g, ranges: en(w, (v) => v === g) }));
1216
1217
  c.addRangeRules(R);
1217
- const I = c.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: V, undoMutations: C } = nn(l, s, I, this._injector, "patched", a === et.ONLY_FORMAT);
1218
+ const I = c.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: V, undoMutations: C } = an(l, s, I, this._injector, "patched", a === et.ONLY_FORMAT);
1218
1219
  return {
1219
1220
  undos: C,
1220
1221
  redos: V
1221
1222
  };
1222
1223
  }, o = {
1223
- id: io,
1224
+ id: ro,
1224
1225
  onBeforeFillData: (n) => {
1225
1226
  const { source: a, unitId: i, subUnitId: r } = n;
1226
1227
  for (const l of a.rows)
@@ -1240,15 +1241,15 @@ let Xe = class extends De {
1240
1241
  }
1241
1242
  };
1242
1243
  Xe = or([
1243
- Nt(0, Oa),
1244
- Nt(1, b(oe)),
1245
- Nt(2, b(Fe))
1244
+ $t(0, Oa),
1245
+ $t(1, b(oe)),
1246
+ $t(2, b(Fe))
1246
1247
  ], Xe);
1247
1248
  var ar = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, rr = (e, t, o, n) => {
1248
1249
  for (var a = n > 1 ? void 0 : n ? ir(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1249
1250
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1250
1251
  return n && a && ar(t, o, a), a;
1251
- }, Ut = (e, t) => (o, n) => t(o, n, e);
1252
+ }, kt = (e, t) => (o, n) => t(o, n, e);
1252
1253
  let ze = class extends De {
1253
1254
  constructor(t, o, n) {
1254
1255
  super();
@@ -1257,16 +1258,16 @@ let ze = class extends De {
1257
1258
  }
1258
1259
  _initCopyPaste() {
1259
1260
  this._sheetClipboardService.addClipboardHook({
1260
- id: io,
1261
+ id: ro,
1261
1262
  onBeforeCopy: (t, o, n) => this._collect(t, o, n),
1262
1263
  onPasteCells: (t, o, n, a) => {
1263
- const { copyType: i = On.COPY, pasteType: r } = a, { range: l } = t || {}, { range: s, unitId: c, subUnitId: u } = o;
1264
+ const { copyType: i = Pn.COPY, pasteType: r } = a, { range: l } = t || {}, { range: s, unitId: c, subUnitId: u } = o;
1264
1265
  return this._generateMutations(s, { copyType: i, pasteType: r, copyRange: l, unitId: c, subUnitId: u });
1265
1266
  }
1266
1267
  });
1267
1268
  }
1268
1269
  _collect(t, o, n) {
1269
- const a = new _t();
1270
+ const a = new St();
1270
1271
  this._copyInfo = {
1271
1272
  unitId: t,
1272
1273
  subUnitId: o,
@@ -1287,26 +1288,26 @@ let ze = class extends De {
1287
1288
  _generateMutations(t, o) {
1288
1289
  if (!this._copyInfo)
1289
1290
  return { redos: [], undos: [] };
1290
- if (o.copyType === On.CUT)
1291
+ if (o.copyType === Pn.CUT)
1291
1292
  return this._copyInfo = null, { redos: [], undos: [] };
1292
1293
  if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !o.copyRange)
1293
1294
  return { redos: [], undos: [] };
1294
1295
  if ([
1295
- lt.SPECIAL_PASTE_COL_WIDTH,
1296
- lt.SPECIAL_PASTE_VALUE,
1297
- lt.SPECIAL_PASTE_FORMAT,
1298
- lt.SPECIAL_PASTE_FORMULA
1296
+ dt.SPECIAL_PASTE_COL_WIDTH,
1297
+ dt.SPECIAL_PASTE_VALUE,
1298
+ dt.SPECIAL_PASTE_FORMAT,
1299
+ dt.SPECIAL_PASTE_FORMULA
1299
1300
  ].includes(
1300
1301
  o.pasteType
1301
1302
  ))
1302
1303
  return { redos: [], undos: [] };
1303
1304
  const { unitId: n, subUnitId: a } = this._copyInfo;
1304
1305
  if (o.unitId !== n || a !== o.subUnitId) {
1305
- const i = this._sheetDataValidationModel.getRuleObjectMatrix(o.unitId, o.subUnitId).clone(), r = new _t(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = on([o.copyRange, t]), p = Pn(s, c, !0), d = /* @__PURE__ */ new Map();
1306
+ const i = this._sheetDataValidationModel.getRuleObjectMatrix(o.unitId, o.subUnitId).clone(), r = new St(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = rn([o.copyRange, t]), p = Ln(s, c, !0), d = /* @__PURE__ */ new Map();
1306
1307
  p.forEach(({ startRange: w }) => {
1307
1308
  var S;
1308
1309
  (S = this._copyInfo) == null || S.matrix.forValue((R, I, V) => {
1309
- const C = St.getPositionRange(
1310
+ const C = Ct.getPositionRange(
1310
1311
  {
1311
1312
  startRow: R,
1312
1313
  endRow: R,
@@ -1320,9 +1321,9 @@ let ze = class extends De {
1320
1321
  l.add(g), r.setValue(y, L, g);
1321
1322
  });
1322
1323
  });
1323
- const f = Array.from(l).map((w) => ({ id: w, ranges: qt(r, (S) => S === w) }));
1324
+ const f = Array.from(l).map((w) => ({ id: w, ranges: en(r, (S) => S === w) }));
1324
1325
  i.addRangeRules(f);
1325
- const { redoMutations: m, undoMutations: _ } = nn(
1326
+ const { redoMutations: m, undoMutations: _ } = an(
1326
1327
  o.unitId,
1327
1328
  o.subUnitId,
1328
1329
  i.diffWithAddition(this._sheetDataValidationModel.getRules(o.unitId, o.subUnitId), d.values()),
@@ -1335,11 +1336,11 @@ let ze = class extends De {
1335
1336
  undos: _
1336
1337
  };
1337
1338
  } else {
1338
- const i = this._sheetDataValidationModel.getRuleObjectMatrix(n, a).clone(), r = new _t(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = on([o.copyRange, t]);
1339
- Pn(s, c, !0).forEach(({ startRange: _ }) => {
1339
+ const i = this._sheetDataValidationModel.getRuleObjectMatrix(n, a).clone(), r = new St(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = rn([o.copyRange, t]);
1340
+ Ln(s, c, !0).forEach(({ startRange: _ }) => {
1340
1341
  var w;
1341
1342
  (w = this._copyInfo) == null || w.matrix.forValue((S, R, I) => {
1342
- const V = St.getPositionRange(
1343
+ const V = Ct.getPositionRange(
1343
1344
  {
1344
1345
  startRow: S,
1345
1346
  endRow: S,
@@ -1351,9 +1352,9 @@ let ze = class extends De {
1351
1352
  r.setValue(C, g, I), l.add(I);
1352
1353
  });
1353
1354
  });
1354
- const d = Array.from(l).map((_) => ({ id: _, ranges: qt(r, (w) => w === _) }));
1355
+ const d = Array.from(l).map((_) => ({ id: _, ranges: en(r, (w) => w === _) }));
1355
1356
  i.addRangeRules(d);
1356
- const { redoMutations: f, undoMutations: m } = nn(
1357
+ const { redoMutations: f, undoMutations: m } = an(
1357
1358
  n,
1358
1359
  a,
1359
1360
  i.diff(this._sheetDataValidationModel.getRules(n, a)),
@@ -1369,15 +1370,15 @@ let ze = class extends De {
1369
1370
  }
1370
1371
  };
1371
1372
  ze = rr([
1372
- Ut(0, Ta),
1373
- Ut(1, b(oe)),
1374
- Ut(2, b(Fe))
1373
+ kt(0, Ta),
1374
+ kt(1, b(oe)),
1375
+ kt(2, b(Fe))
1375
1376
  ], ze);
1376
1377
  var sr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, dr = (e, t, o, n) => {
1377
1378
  for (var a = n > 1 ? void 0 : n ? lr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1378
1379
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1379
1380
  return n && a && sr(t, o, a), a;
1380
- }, Bt = (e, t) => (o, n) => t(o, n, e);
1381
+ }, Wt = (e, t) => (o, n) => t(o, n, e);
1381
1382
  let Ke = class extends De {
1382
1383
  constructor(e, t, o) {
1383
1384
  super(), this._localeService = e, this._commandService = t, this._sheetPermissionInterceptorBaseController = o, this._commandExecutedListener();
@@ -1385,47 +1386,47 @@ let Ke = class extends De {
1385
1386
  _commandExecutedListener() {
1386
1387
  this.disposeWithMe(
1387
1388
  this._commandService.beforeCommandExecuted((e) => {
1388
- e.id === fn.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1389
- workbookTypes: [Ct],
1390
- rangeTypes: [It],
1391
- worksheetTypes: [wt, tn]
1392
- }) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr"))), e.id === no.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1393
- workbookTypes: [Ct],
1394
- rangeTypes: [It],
1395
- worksheetTypes: [wt, tn]
1389
+ e.id === vn.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1390
+ workbookTypes: [It],
1391
+ rangeTypes: [wt],
1392
+ worksheetTypes: [Rt, on]
1393
+ }) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr"))), e.id === oo.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1394
+ workbookTypes: [It],
1395
+ rangeTypes: [wt],
1396
+ worksheetTypes: [Rt, on]
1396
1397
  }, e.params.ranges) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr")));
1397
1398
  })
1398
1399
  );
1399
1400
  }
1400
1401
  };
1401
1402
  Ke = dr([
1402
- Bt(0, b(J)),
1403
- Bt(1, Q),
1404
- Bt(2, b(co))
1403
+ Wt(0, b(J)),
1404
+ Wt(1, Q),
1405
+ Wt(2, b(uo))
1405
1406
  ], Ke);
1406
1407
  const Oo = "data-validation-single", Po = "sheet.menu.data-validation";
1407
1408
  function cr(e) {
1408
1409
  return {
1409
1410
  id: Po,
1410
- type: vn.SUBITEMS,
1411
+ type: Sn.SUBITEMS,
1411
1412
  icon: Oo,
1412
1413
  tooltip: "dataValidation.title",
1413
1414
  hidden$: Fa(e, Y.UNIVER_SHEET),
1414
- disabled$: Aa(e, { workbookTypes: [Ct], worksheetTypes: [tn, wt], rangeTypes: [It] })
1415
+ disabled$: Aa(e, { workbookTypes: [It], worksheetTypes: [on, Rt], rangeTypes: [wt] })
1415
1416
  };
1416
1417
  }
1417
1418
  function ur(e) {
1418
1419
  return {
1419
1420
  id: Ue.id,
1420
1421
  title: "dataValidation.panel.title",
1421
- type: vn.BUTTON
1422
+ type: Sn.BUTTON
1422
1423
  };
1423
1424
  }
1424
1425
  function hr(e) {
1425
1426
  return {
1426
- id: Lt.id,
1427
+ id: xt.id,
1427
1428
  title: "dataValidation.panel.add",
1428
- type: vn.BUTTON
1429
+ type: Sn.BUTTON
1429
1430
  };
1430
1431
  }
1431
1432
  const pr = {
@@ -1437,7 +1438,7 @@ const pr = {
1437
1438
  order: 0,
1438
1439
  menuItemFactory: ur
1439
1440
  },
1440
- [Lt.id]: {
1441
+ [xt.id]: {
1441
1442
  order: 1,
1442
1443
  menuItemFactory: hr
1443
1444
  }
@@ -1455,7 +1456,7 @@ const To = {
1455
1456
  color: "#fe4b4b"
1456
1457
  }
1457
1458
  };
1458
- let Ge = class extends un {
1459
+ let Ge = class extends pn {
1459
1460
  constructor(e, t, o, n, a, i, r, l, s, c, u) {
1460
1461
  super(), this._commandService = e, this._menuManagerService = t, this._renderManagerService = o, this._univerInstanceService = n, this._autoHeightController = a, this._dropdownManagerService = i, this._sheetDataValidationModel = r, this._dataValidatorRegistryService = l, this._sheetInterceptorService = s, this._dataValidationCacheService = c, this._editorBridgeService = u, this._initMenu(), this._initDropdown(), this._initViewModelIntercept(), this._initAutoHeight();
1461
1462
  }
@@ -1509,11 +1510,11 @@ let Ge = class extends un {
1509
1510
  _initViewModelIntercept() {
1510
1511
  this.disposeWithMe(
1511
1512
  this._sheetInterceptorService.intercept(
1512
- Jn.CELL_CONTENT,
1513
+ Qn.CELL_CONTENT,
1513
1514
  {
1514
- effect: Xn.Style,
1515
+ effect: zn.Style,
1515
1516
  // must be after numfmt
1516
- priority: Qn.DATA_VALIDATION,
1517
+ priority: eo.DATA_VALIDATION,
1517
1518
  // eslint-disable-next-line max-lines-per-function, complexity
1518
1519
  handler: (e, t, o) => {
1519
1520
  var S, R, I, V, C;
@@ -1561,7 +1562,7 @@ let Ge = class extends un {
1561
1562
  },
1562
1563
  interceptorAutoHeight: () => {
1563
1564
  var L, U, T, E, A, x;
1564
- const g = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1565
+ const g = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Dt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1565
1566
  if (!g)
1566
1567
  return;
1567
1568
  const v = g.worksheet.getMergedCell(n, a), y = {
@@ -1579,7 +1580,7 @@ let Ge = class extends un {
1579
1580
  },
1580
1581
  interceptorAutoWidth: () => {
1581
1582
  var L, U, T, E, A, x;
1582
- const g = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1583
+ const g = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Dt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1583
1584
  if (!g)
1584
1585
  return;
1585
1586
  const v = g.worksheet.getMergedCell(n, a), y = {
@@ -1606,8 +1607,8 @@ let Ge = class extends un {
1606
1607
  this._sheetDataValidationModel.ruleChange$.pipe(
1607
1608
  // patched data-validation change don't need to re-calc row height
1608
1609
  // re-calc of row height will be triggered precisely by the origin command
1609
- _n((e) => e.source === "command"),
1610
- fo(16)
1610
+ Cn((e) => e.source === "command"),
1611
+ go(16)
1611
1612
  ).subscribe((e) => {
1612
1613
  const t = [];
1613
1614
  if (e.forEach((o) => {
@@ -1615,7 +1616,7 @@ let Ge = class extends un {
1615
1616
  (n = o.rule) != null && n.ranges && t.push(...o.rule.ranges);
1616
1617
  }), t.length) {
1617
1618
  const o = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1618
- zn(o.redos, this._commandService);
1619
+ Kn(o.redos, this._commandService);
1619
1620
  }
1620
1621
  });
1621
1622
  }
@@ -1625,26 +1626,26 @@ Ge = Lo([
1625
1626
  K(1, Ua),
1626
1627
  K(2, Ve),
1627
1628
  K(3, ge),
1628
- K(4, b(uo)),
1629
+ K(4, b(ho)),
1629
1630
  K(5, b(Ie)),
1630
1631
  K(6, b(oe)),
1631
1632
  K(7, b(ye)),
1632
- K(8, b(pn)),
1633
- K(9, b(ro)),
1634
- K(10, Qo(lo))
1633
+ K(8, b(fn)),
1634
+ K(9, b(so)),
1635
+ K(10, Qo(co))
1635
1636
  ], Ge);
1636
- let Un = class extends un {
1637
+ let Bn = class extends pn {
1637
1638
  constructor(e, t, o, n, a, i, r) {
1638
1639
  super(), this._commandService = e, this._renderManagerService = t, this._autoHeightController = o, this._dataValidatorRegistryService = n, this._sheetInterceptorService = a, this._sheetDataValidationModel = i, this._dataValidationCacheService = r, this._initViewModelIntercept(), this._initAutoHeight();
1639
1640
  }
1640
1641
  _initViewModelIntercept() {
1641
1642
  this.disposeWithMe(
1642
1643
  this._sheetInterceptorService.intercept(
1643
- Jn.CELL_CONTENT,
1644
+ Qn.CELL_CONTENT,
1644
1645
  {
1645
- effect: Xn.Style,
1646
+ effect: zn.Style,
1646
1647
  // must be after numfmt
1647
- priority: Qn.DATA_VALIDATION,
1648
+ priority: eo.DATA_VALIDATION,
1648
1649
  // eslint-disable-next-line complexity
1649
1650
  handler: (e, t, o) => {
1650
1651
  var w, S, R, I, V;
@@ -1680,7 +1681,7 @@ let Un = class extends un {
1680
1681
  },
1681
1682
  interceptorAutoHeight: () => {
1682
1683
  var y, L, U, T, E, A;
1683
- const C = (L = (y = this._renderManagerService.getRenderById(i)) == null ? void 0 : y.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : L.skeleton;
1684
+ const C = (L = (y = this._renderManagerService.getRenderById(i)) == null ? void 0 : y.with(Dt).getWorksheetSkeleton(r)) == null ? void 0 : L.skeleton;
1684
1685
  if (!C)
1685
1686
  return;
1686
1687
  const g = C.worksheet.getMergedCell(n, a), v = {
@@ -1705,8 +1706,8 @@ let Un = class extends un {
1705
1706
  }
1706
1707
  _initAutoHeight() {
1707
1708
  this._sheetDataValidationModel.ruleChange$.pipe(
1708
- _n((e) => e.source === "command"),
1709
- fo(16)
1709
+ Cn((e) => e.source === "command"),
1710
+ go(16)
1710
1711
  ).subscribe((e) => {
1711
1712
  const t = [];
1712
1713
  if (e.forEach((o) => {
@@ -1714,26 +1715,26 @@ let Un = class extends un {
1714
1715
  (n = o.rule) != null && n.ranges && t.push(...o.rule.ranges);
1715
1716
  }), t.length) {
1716
1717
  const o = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1717
- zn(o.redos, this._commandService);
1718
+ Kn(o.redos, this._commandService);
1718
1719
  }
1719
1720
  });
1720
1721
  }
1721
1722
  };
1722
- Un = Lo([
1723
+ Bn = Lo([
1723
1724
  K(0, Q),
1724
1725
  K(1, Ve),
1725
- K(2, b(uo)),
1726
+ K(2, b(ho)),
1726
1727
  K(3, b(ye)),
1727
- K(4, b(pn)),
1728
+ K(4, b(fn)),
1728
1729
  K(5, b(oe)),
1729
- K(6, b(ro))
1730
- ], Un);
1730
+ K(6, b(so))
1731
+ ], Bn);
1731
1732
  var gr = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, _r = (e, t, o, n) => {
1732
1733
  for (var a = n > 1 ? void 0 : n ? vr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1733
1734
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1734
1735
  return n && a && gr(t, o, a), a;
1735
- }, Bn = (e, t) => (o, n) => t(o, n, e);
1736
- let Dt = class extends De {
1736
+ }, $n = (e, t) => (o, n) => t(o, n, e);
1737
+ let Mt = class extends De {
1737
1738
  constructor(e, t, o) {
1738
1739
  super(), this._context = e, this._sheetDataValidationModel = t, this._sheetSkeletonManagerService = o, this._initSkeletonChange();
1739
1740
  }
@@ -1753,10 +1754,10 @@ let Dt = class extends De {
1753
1754
  this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(ea(16)).subscribe(e));
1754
1755
  }
1755
1756
  };
1756
- Dt = _r([
1757
- Bn(1, b(oe)),
1758
- Bn(2, b(Rt))
1759
- ], Dt);
1757
+ Mt = _r([
1758
+ $n(1, b(oe)),
1759
+ $n(2, b(Dt))
1760
+ ], Mt);
1760
1761
  const Sr = "univer-data-validation-formula", Cr = "univer-data-validation-formula-and", Ir = "univer-data-validation-formula-list-item", wr = "univer-data-validation-formula-list-item-icon", Rr = "univer-data-validation-formula-list-item-drag", Dr = "univer-data-validation-formula-list-add", Vr = "univer-data-validation-formula-color-select", yr = "univer-data-validation-formula-color-select-panel", Mr = "univer-data-validation-formula-color-item", ne = {
1761
1762
  dataValidationFormula: Sr,
1762
1763
  dataValidationFormulaAnd: Cr,
@@ -1815,7 +1816,7 @@ function Er(e) {
1815
1816
  const { value: t, onChange: o, showError: n, validResult: a } = e, i = P(J), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = W(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
1816
1817
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
1817
1818
  /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(
1818
- bt,
1819
+ Pt,
1819
1820
  {
1820
1821
  checked: s,
1821
1822
  onChange: (u) => {
@@ -1861,12 +1862,12 @@ function Er(e) {
1861
1862
  function Or(e) {
1862
1863
  var p;
1863
1864
  const { unitId: t, subUnitId: o, value: n, onChange: a, showError: i, validResult: r } = e, l = i ? r == null ? void 0 : r.formula1 : void 0, s = We({}), [c, u] = W(!1);
1864
- return gn((d) => {
1865
+ return _n((d) => {
1865
1866
  var m;
1866
1867
  const f = (m = s.current) == null ? void 0 : m.handleOutClick;
1867
1868
  f && f(d, () => u(!1));
1868
1869
  }), /* @__PURE__ */ h.jsx(
1869
- vo,
1870
+ _o,
1870
1871
  {
1871
1872
  initValue: (p = n == null ? void 0 : n.formula1) != null ? p : "",
1872
1873
  unitId: t,
@@ -1927,7 +1928,7 @@ const Lr = [
1927
1928
  ], Tr = (e) => {
1928
1929
  const { value: t, onChange: o, disabled: n } = e, [a, i] = W(!1);
1929
1930
  return /* @__PURE__ */ h.jsx(
1930
- Qt,
1931
+ tn,
1931
1932
  {
1932
1933
  disabled: n,
1933
1934
  open: a,
@@ -1959,10 +1960,10 @@ const Lr = [
1959
1960
  ) })
1960
1961
  }
1961
1962
  );
1962
- }, $n = (e) => {
1963
+ }, kn = (e) => {
1963
1964
  const { item: t, commonProps: o, style: n } = e, { onItemChange: a, onItemDelete: i } = o;
1964
1965
  return /* @__PURE__ */ h.jsxs("div", { className: ne.dataValidationFormulaListItem, style: n, children: [
1965
- t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: Pr(ne.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ h.jsx(Do, {}) }),
1966
+ t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: Pr(ne.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ h.jsx(Vo, {}) }),
1966
1967
  /* @__PURE__ */ h.jsx(
1967
1968
  Tr,
1968
1969
  {
@@ -1982,12 +1983,12 @@ const Lr = [
1982
1983
  }
1983
1984
  }
1984
1985
  ),
1985
- t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: ne.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ h.jsx(Cn, { onClick: () => i(t.id) }) })
1986
+ t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: ne.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ h.jsx(wn, { onClick: () => i(t.id) }) })
1986
1987
  ] });
1987
1988
  };
1988
1989
  function Ar(e) {
1989
1990
  const { value: t, onChange: o = () => {
1990
- }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = We(null), [p, d] = W(() => Pe(s) ? "1" : "0"), [f, m] = W(p === "1" ? s : "="), [_, w] = W(p === "1" ? s : "="), S = P(J), R = P(ye), I = P(Ot), V = P(Sa), [C, g] = W(() => c.split(",")), v = R.getValidatorItem(Z.LIST), [y, L] = W([]), [U, T] = W(""), E = r ? i == null ? void 0 : i.formula1 : "", A = Te(() => I.ruleChange$.pipe(Sn(16)), []), x = Ne(A), j = mo(o);
1991
+ }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = We(null), [p, d] = W(() => Pe(s) ? "1" : "0"), [f, m] = W(p === "1" ? s : "="), [_, w] = W(p === "1" ? s : "="), S = P(J), R = P(ye), I = P(Tt), V = P(Sa), [C, g] = W(() => c.split(",")), v = R.getValidatorItem(Z.LIST), [y, L] = W([]), [U, T] = W(""), E = r ? i == null ? void 0 : i.formula1 : "", A = Te(() => I.ruleChange$.pipe(In(16)), []), x = Ne(A), j = fo(o);
1991
1992
  Ce(() => {
1992
1993
  (async () => {
1993
1994
  await new Promise((B) => {
@@ -2003,12 +2004,12 @@ function Ar(e) {
2003
2004
  Pe(s) && s !== _ && (m(s), w(_));
2004
2005
  }, [_, s]);
2005
2006
  const [F, H] = W(() => {
2006
- const D = p !== "1" ? eo(s) : [], N = c.split(",");
2007
+ const D = p !== "1" ? to(s) : [], N = c.split(",");
2007
2008
  return D.map((B, $) => ({
2008
2009
  label: B,
2009
2010
  color: N[$] || Le,
2010
2011
  isRef: !1,
2011
- id: Jt.generateRandomId(4)
2012
+ id: rt.generateRandomId(4)
2012
2013
  }));
2013
2014
  }), X = (D, N, B) => {
2014
2015
  const $ = F.find((_e) => _e.id === D);
@@ -2034,7 +2035,7 @@ function Ar(e) {
2034
2035
  label: "",
2035
2036
  color: Le,
2036
2037
  isRef: !1,
2037
- id: Jt.generateRandomId(4)
2038
+ id: rt.generateRandomId(4)
2038
2039
  }
2039
2040
  ]);
2040
2041
  };
@@ -2053,7 +2054,7 @@ function Ar(e) {
2053
2054
  }));
2054
2055
  });
2055
2056
  }), j({
2056
- formula1: to(N.map((B) => B.label)),
2057
+ formula1: no(N.map((B) => B.label)),
2057
2058
  formula2: N.map((B) => B.color === Le ? "" : B.color).join(",")
2058
2059
  });
2059
2060
  }, [F, j, p, _, C]);
@@ -2076,13 +2077,13 @@ function Ar(e) {
2076
2077
  },
2077
2078
  [c, j]
2078
2079
  ), ae = We({}), [se, O] = W(!1);
2079
- return gn((D) => {
2080
+ return _n((D) => {
2080
2081
  var B;
2081
2082
  const N = (B = ae.current) == null ? void 0 : B.handleOutClick;
2082
2083
  N && N(D, () => O(!1));
2083
2084
  }), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
2084
2085
  /* @__PURE__ */ h.jsx(G, { label: S.t("dataValidation.list.options"), children: /* @__PURE__ */ h.jsxs(
2085
- hn,
2086
+ mn,
2086
2087
  {
2087
2088
  value: p,
2088
2089
  onChange: (D) => {
@@ -2099,7 +2100,7 @@ function Ar(e) {
2099
2100
  ) }),
2100
2101
  p === "1" ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
2101
2102
  /* @__PURE__ */ h.jsx(
2102
- vo,
2103
+ _o,
2103
2104
  {
2104
2105
  initValue: f,
2105
2106
  unitId: n,
@@ -2115,7 +2116,7 @@ function Ar(e) {
2115
2116
  isSupportAcrossSheet: !0
2116
2117
  }
2117
2118
  ),
2118
- /* @__PURE__ */ h.jsx("div", { ref: u, style: { marginTop: "12px" }, children: q.map((D) => /* @__PURE__ */ h.jsx($n, { item: D, commonProps: { onItemChange: ee }, style: { marginBottom: 12 } }, D.id)) })
2119
+ /* @__PURE__ */ h.jsx("div", { ref: u, style: { marginTop: "12px" }, children: q.map((D) => /* @__PURE__ */ h.jsx(kn, { item: D, commonProps: { onItemChange: ee }, style: { marginBottom: 12 } }, D.id)) })
2119
2120
  ] }) : /* @__PURE__ */ h.jsx(G, { error: E, children: /* @__PURE__ */ h.jsxs("div", { ref: u, style: { marginTop: "-12px" }, children: [
2120
2121
  /* @__PURE__ */ h.jsx(
2121
2122
  ra,
@@ -2126,7 +2127,7 @@ function Ar(e) {
2126
2127
  margin: [0, 12],
2127
2128
  draggableHandle: ".draggableHandle",
2128
2129
  itemRender: (D) => /* @__PURE__ */ h.jsx(
2129
- $n,
2130
+ kn,
2130
2131
  {
2131
2132
  item: D,
2132
2133
  commonProps: {
@@ -2140,23 +2141,23 @@ function Ar(e) {
2140
2141
  }
2141
2142
  ),
2142
2143
  /* @__PURE__ */ h.jsxs("a", { className: ne.dataValidationFormulaListAdd, onClick: te, children: [
2143
- /* @__PURE__ */ h.jsx(Io, {}),
2144
+ /* @__PURE__ */ h.jsx(wo, {}),
2144
2145
  S.t("dataValidation.list.add")
2145
2146
  ] })
2146
2147
  ] }) })
2147
2148
  ] });
2148
2149
  }
2149
- const xo = "data-validation.custom-formula-input", Tt = "data-validation.formula-input", Vn = "data-validation.list-formula-input", jo = "data-validation.checkbox-formula-input", xr = [
2150
+ const xo = "data-validation.custom-formula-input", jt = "data-validation.formula-input", yn = "data-validation.list-formula-input", jo = "data-validation.checkbox-formula-input", xr = [
2150
2151
  [
2151
2152
  xo,
2152
2153
  Or
2153
2154
  ],
2154
2155
  [
2155
- Tt,
2156
+ jt,
2156
2157
  br
2157
2158
  ],
2158
2159
  [
2159
- Vn,
2160
+ yn,
2160
2161
  Ar
2161
2162
  ],
2162
2163
  [
@@ -2164,22 +2165,22 @@ const xo = "data-validation.custom-formula-input", Tt = "data-validation.formula
2164
2165
  Er
2165
2166
  ]
2166
2167
  ], jr = "LIST_RENDER_MODE_OPTION_INPUT";
2167
- function Vt(e) {
2168
+ function bt(e) {
2168
2169
  var a;
2169
2170
  const { value: t, onChange: o } = e, n = P(J);
2170
- return /* @__PURE__ */ h.jsx(G, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ h.jsxs(hn, { value: `${(a = t.renderMode) != null ? a : de.CUSTOM}`, onChange: (i) => o({ ...t, renderMode: +i }), children: [
2171
+ return /* @__PURE__ */ h.jsx(G, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ h.jsxs(mn, { value: `${(a = t.renderMode) != null ? a : de.CUSTOM}`, onChange: (i) => o({ ...t, renderMode: +i }), children: [
2171
2172
  /* @__PURE__ */ h.jsx(Ae, { value: `${de.CUSTOM}`, children: n.t("dataValidation.renderMode.chip") }),
2172
2173
  /* @__PURE__ */ h.jsx(Ae, { value: `${de.ARROW}`, children: n.t("dataValidation.renderMode.arrow") }),
2173
2174
  /* @__PURE__ */ h.jsx(Ae, { value: `${de.TEXT}`, children: n.t("dataValidation.renderMode.text") })
2174
2175
  ] }) });
2175
2176
  }
2176
- Vt.componentKey = jr;
2177
+ bt.componentKey = jr;
2177
2178
  const Fr = "DATE_SHOW_TIME_OPTION";
2178
- function yt(e) {
2179
+ function Et(e) {
2179
2180
  var a;
2180
2181
  const { value: t, onChange: o } = e, n = P(J);
2181
2182
  return /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(
2182
- bt,
2183
+ Pt,
2183
2184
  {
2184
2185
  checked: (a = t.bizInfo) == null ? void 0 : a.showTime,
2185
2186
  onChange: (i) => {
@@ -2195,20 +2196,20 @@ function yt(e) {
2195
2196
  }
2196
2197
  ) });
2197
2198
  }
2198
- yt.componentKey = Fr;
2199
+ Et.componentKey = Fr;
2199
2200
  var Nr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, Br = (e, t, o, n) => {
2200
2201
  for (var a = n > 1 ? void 0 : n ? Ur(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2201
2202
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2202
2203
  return n && a && Nr(t, o, a), a;
2203
2204
  }, ot = (e, t) => (o, n) => t(o, n, e);
2204
- const ht = 6;
2205
- let rn = class {
2205
+ const pt = 6;
2206
+ let ln = class {
2206
2207
  constructor(e, t, o, n, a) {
2207
2208
  this._commandService = e, this._formulaService = t, this._themeService = o, this._renderManagerService = n, this._dataValidationModel = a;
2208
2209
  }
2209
2210
  _calc(e, t) {
2210
2211
  var c, u, p;
2211
- const { vt: o, ht: n } = t || {}, a = e.endX - e.startX - ht * 2, i = e.endY - e.startY, r = ((c = t == null ? void 0 : t.fs) != null ? c : 10) * 1.6;
2212
+ const { vt: o, ht: n } = t || {}, a = e.endX - e.startX - pt * 2, i = e.endY - e.startY, r = ((c = t == null ? void 0 : t.fs) != null ? c : 10) * 1.6;
2212
2213
  let l = 0, s = 0;
2213
2214
  switch (o) {
2214
2215
  case ue.TOP:
@@ -2223,13 +2224,13 @@ let rn = class {
2223
2224
  }
2224
2225
  switch (n) {
2225
2226
  case He.LEFT:
2226
- l = ht;
2227
+ l = pt;
2227
2228
  break;
2228
2229
  case He.RIGHT:
2229
- l = ht + (a - r);
2230
+ l = pt + (a - r);
2230
2231
  break;
2231
2232
  default:
2232
- l = ht + (a - r) / 2;
2233
+ l = pt + (a - r) / 2;
2233
2234
  break;
2234
2235
  }
2235
2236
  return {
@@ -2251,9 +2252,9 @@ let rn = class {
2251
2252
  }
2252
2253
  async _parseFormula(e, t, o) {
2253
2254
  var c, u, p, d, f, m, _, w, S;
2254
- const { formula1: n = wa, formula2: a = Ra } = e, i = await this._formulaService.getRuleFormulaResult(t, o, e.uid), r = xt((p = (u = (c = i == null ? void 0 : i[0]) == null ? void 0 : c.result) == null ? void 0 : u[0]) == null ? void 0 : p[0]), l = xt((m = (f = (d = i == null ? void 0 : i[1]) == null ? void 0 : d.result) == null ? void 0 : f[0]) == null ? void 0 : m[0]), s = En(String(r)) && En(String(l));
2255
+ const { formula1: n = wa, formula2: a = Ra } = e, i = await this._formulaService.getRuleFormulaResult(t, o, e.uid), r = Nt((p = (u = (c = i == null ? void 0 : i[0]) == null ? void 0 : c.result) == null ? void 0 : u[0]) == null ? void 0 : p[0]), l = Nt((m = (f = (d = i == null ? void 0 : i[1]) == null ? void 0 : d.result) == null ? void 0 : f[0]) == null ? void 0 : m[0]), s = On(String(r)) && On(String(l));
2255
2256
  return {
2256
- formula1: Pe(n) ? xt((S = (w = (_ = i == null ? void 0 : i[0]) == null ? void 0 : _.result) == null ? void 0 : w[0]) == null ? void 0 : S[0]) : n,
2257
+ formula1: Pe(n) ? Nt((S = (w = (_ = i == null ? void 0 : i[0]) == null ? void 0 : _.result) == null ? void 0 : w[0]) == null ? void 0 : S[0]) : n,
2257
2258
  formula2: Pe(a) ? l : a,
2258
2259
  isFormulaValid: s
2259
2260
  };
@@ -2269,7 +2270,7 @@ let rn = class {
2269
2270
  const f = this._themeService.getCurrentTheme();
2270
2271
  if (!((E = d.skipDefaultFontRender) != null && E.call(d, p, u, { unitId: a, subUnitId: i, row: l, column: s })))
2271
2272
  return;
2272
- const m = d.parseFormulaSync(p, a, i), { formula1: _ } = m, w = this._calc(c, o), { a: S, d: R } = e.getTransform(), I = Mn(w.left, S), V = Mn(w.top, R), C = sa.create().composeMatrix({
2273
+ const m = d.parseFormulaSync(p, a, i), { formula1: _ } = m, w = this._calc(c, o), { a: S, d: R } = e.getTransform(), I = bn(w.left, S), V = bn(w.top, R), C = sa.create().composeMatrix({
2273
2274
  left: I,
2274
2275
  top: V,
2275
2276
  scaleX: 1,
@@ -2318,7 +2319,7 @@ let rn = class {
2318
2319
  }
2319
2320
  };
2320
2321
  this._commandService.executeCommand(
2321
- mn.id,
2322
+ gn.id,
2322
2323
  f
2323
2324
  );
2324
2325
  }
@@ -2331,13 +2332,13 @@ let rn = class {
2331
2332
  (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.DEFAULT);
2332
2333
  }
2333
2334
  };
2334
- rn = Br([
2335
+ ln = Br([
2335
2336
  ot(0, Q),
2336
2337
  ot(1, b(Ca)),
2337
2338
  ot(2, b(ta)),
2338
2339
  ot(3, b(Ve)),
2339
2340
  ot(4, b(oe))
2340
- ], rn);
2341
+ ], ln);
2341
2342
  var $r = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, Wr = (e, t, o, n) => {
2342
2343
  for (var a = n > 1 ? void 0 : n ? kr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2343
2344
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
@@ -2348,7 +2349,7 @@ let fe = class {
2348
2349
  M(this, "canvasRender", null);
2349
2350
  M(this, "dropdown");
2350
2351
  M(this, "optionsInput");
2351
- M(this, "formulaInput", Vn);
2352
+ M(this, "formulaInput", yn);
2352
2353
  this.injector = e;
2353
2354
  }
2354
2355
  };
@@ -2359,7 +2360,7 @@ class Yr extends fe {
2359
2360
  constructor() {
2360
2361
  super(...arguments);
2361
2362
  M(this, "id", Z.CHECKBOX);
2362
- M(this, "canvasRender", this.injector.createInstance(rn));
2363
+ M(this, "canvasRender", this.injector.createInstance(ln));
2363
2364
  M(this, "formulaInput", jo);
2364
2365
  }
2365
2366
  }
@@ -2376,7 +2377,7 @@ class Kr extends fe {
2376
2377
  super(...arguments);
2377
2378
  M(this, "id", Z.DATE);
2378
2379
  M(this, "formulaInput", zr);
2379
- M(this, "optionsInput", yt.componentKey);
2380
+ M(this, "optionsInput", Et.componentKey);
2380
2381
  M(this, "dropdown", Eo);
2381
2382
  }
2382
2383
  }
@@ -2384,10 +2385,10 @@ class Gr extends fe {
2384
2385
  constructor() {
2385
2386
  super(...arguments);
2386
2387
  M(this, "id", Z.DECIMAL);
2387
- M(this, "formulaInput", Tt);
2388
+ M(this, "formulaInput", jt);
2388
2389
  }
2389
2390
  }
2390
- const Fo = 4, Zr = 0, $t = 4, No = 4, sn = 6, Mt = 6, Oe = 14;
2391
+ const Fo = 4, Zr = 0, Ht = 4, No = 4, dn = 6, Ot = 6, Oe = 14;
2391
2392
  function qr(e, t) {
2392
2393
  const o = da.getTextSize(e, t), n = o.width + Fo * 2, { ba: a, bd: i } = o, r = a + i;
2393
2394
  return {
@@ -2396,8 +2397,8 @@ function qr(e, t) {
2396
2397
  ba: a
2397
2398
  };
2398
2399
  }
2399
- function kt(e, t, o, n) {
2400
- const a = Oe + sn * 2, i = o - a, r = n - Mt * 2, l = e.map((d) => ({
2400
+ function Yt(e, t, o, n) {
2401
+ const a = Oe + dn * 2, i = o - a, r = n - Ot * 2, l = e.map((d) => ({
2401
2402
  layout: qr(d, t),
2402
2403
  text: d
2403
2404
  }));
@@ -2405,7 +2406,7 @@ function kt(e, t, o, n) {
2405
2406
  const c = [];
2406
2407
  l.forEach((d) => {
2407
2408
  const { layout: f } = d, { width: m, height: _ } = f;
2408
- !s || s.width + m + $t > i ? (s = {
2409
+ !s || s.width + m + Ht > i ? (s = {
2409
2410
  width: m,
2410
2411
  height: _,
2411
2412
  items: [{
@@ -2414,8 +2415,8 @@ function kt(e, t, o, n) {
2414
2415
  }]
2415
2416
  }, c.push(s)) : (s.items.push({
2416
2417
  ...d,
2417
- left: s.width + $t
2418
- }), s.width = s.width + m + $t);
2418
+ left: s.width + Ht
2419
+ }), s.width = s.width + m + Ht);
2419
2420
  });
2420
2421
  let u = 0, p = 0;
2421
2422
  return c.forEach((d, f) => {
@@ -2425,7 +2426,7 @@ function kt(e, t, o, n) {
2425
2426
  totalHeight: u,
2426
2427
  contentWidth: i,
2427
2428
  contentHeight: r,
2428
- cellAutoHeight: u + Mt * 2,
2429
+ cellAutoHeight: u + Ot * 2,
2429
2430
  calcAutoWidth: p + a
2430
2431
  };
2431
2432
  }
@@ -2433,7 +2434,7 @@ const Jr = 8;
2433
2434
  class Qr extends ca {
2434
2435
  static drawWith(t, o) {
2435
2436
  const { fontString: n, info: a, fill: i, color: r } = o, { layout: l, text: s } = a;
2436
- t.save(), Gn.drawWith(t, {
2437
+ t.save(), Zn.drawWith(t, {
2437
2438
  width: l.width,
2438
2439
  height: l.height,
2439
2440
  radius: Jr,
@@ -2445,9 +2446,9 @@ var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, ns = (e, t
2445
2446
  for (var a = n > 1 ? void 0 : n ? ts(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2446
2447
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2447
2448
  return n && a && es(t, o, a), a;
2448
- }, Wt = (e, t) => (o, n) => t(o, n, e);
2449
+ }, Xt = (e, t) => (o, n) => t(o, n, e);
2449
2450
  const os = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
2450
- let ln = class {
2451
+ let cn = class {
2451
2452
  constructor(e, t, o) {
2452
2453
  M(this, "zIndex");
2453
2454
  M(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
@@ -2487,8 +2488,8 @@ let ln = class {
2487
2488
  endX: u.endX - f,
2488
2489
  startY: u.startY + m,
2489
2490
  endY: u.endY - _
2490
- }, C = V.endX - V.startX, g = V.endY - V.startY, { cl: v } = l || {}, y = (X = typeof v == "object" ? v == null ? void 0 : v.rgb : v) != null ? X : "#000", L = At(l != null ? l : void 0), { vt: U, ht: T } = l || {}, E = U != null ? U : ue.MIDDLE, A = (k = ie(s)) != null ? k : "", x = I.parseCellValue(A), j = I.getListWithColorMap(R), F = kt(x, L, C, g);
2491
- this._drawDownIcon(e, V, C, g, E), e.save(), e.translateWithPrecision(V.startX, V.startY), e.beginPath(), e.rect(0, 0, C - Oe, g), e.clip(), e.translateWithPrecision(sn, Mt);
2491
+ }, C = V.endX - V.startX, g = V.endY - V.startY, { cl: v } = l || {}, y = (X = typeof v == "object" ? v == null ? void 0 : v.rgb : v) != null ? X : "#000", L = Ft(l != null ? l : void 0), { vt: U, ht: T } = l || {}, E = U != null ? U : ue.MIDDLE, A = (k = ie(s)) != null ? k : "", x = I.parseCellValue(A), j = I.getListWithColorMap(R), F = Yt(x, L, C, g);
2492
+ this._drawDownIcon(e, V, C, g, E), e.save(), e.translateWithPrecision(V.startX, V.startY), e.beginPath(), e.rect(0, 0, C - Oe, g), e.clip(), e.translateWithPrecision(dn, Ot);
2492
2493
  let H = 0;
2493
2494
  switch (E) {
2494
2495
  case ue.MIDDLE:
@@ -2521,8 +2522,8 @@ let ln = class {
2521
2522
  }), e.restore(), w.set(S, {
2522
2523
  left: V.startX,
2523
2524
  top: V.startY,
2524
- width: F.contentWidth + sn + Oe,
2525
- height: F.contentHeight + Mt * 2
2525
+ width: F.contentWidth + dn + Oe,
2526
+ height: F.contentHeight + Ot * 2
2526
2527
  });
2527
2528
  }
2528
2529
  calcCellAutoHeight(e) {
@@ -2538,8 +2539,8 @@ let ln = class {
2538
2539
  const m = this._dataValidationModel.getValidator(f.type);
2539
2540
  if (!m)
2540
2541
  return;
2541
- const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = At(o != null ? o : void 0);
2542
- return kt(R, I, _, w).cellAutoHeight;
2542
+ const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = Ft(o != null ? o : void 0);
2543
+ return Yt(R, I, _, w).cellAutoHeight;
2543
2544
  }
2544
2545
  calcCellAutoWidth(e) {
2545
2546
  var C;
@@ -2554,8 +2555,8 @@ let ln = class {
2554
2555
  const m = this._dataValidationModel.getValidator(f.type);
2555
2556
  if (!m)
2556
2557
  return;
2557
- const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = At(o != null ? o : void 0);
2558
- return kt(R, I, _, w).calcAutoWidth;
2558
+ const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = Ft(o != null ? o : void 0);
2559
+ return Yt(R, I, _, w).calcAutoWidth;
2559
2560
  }
2560
2561
  isHit(e, t) {
2561
2562
  const { primaryWithCoord: o } = t, n = o.isMergedMainCell ? o.mergeInfo : o, { endX: a } = n, { x: i } = e;
@@ -2570,7 +2571,7 @@ let ln = class {
2570
2571
  row: a,
2571
2572
  column: i
2572
2573
  };
2573
- this._commandService.executeCommand(Pt.id, r);
2574
+ this._commandService.executeCommand(At.id, r);
2574
2575
  }
2575
2576
  onPointerEnter(e, t) {
2576
2577
  var o, n;
@@ -2581,25 +2582,25 @@ let ln = class {
2581
2582
  (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.DEFAULT);
2582
2583
  }
2583
2584
  };
2584
- ln = ns([
2585
- Wt(0, Q),
2586
- Wt(1, b(Ve)),
2587
- Wt(2, b(oe))
2588
- ], ln);
2585
+ cn = ns([
2586
+ Xt(0, Q),
2587
+ Xt(1, b(Ve)),
2588
+ Xt(2, b(oe))
2589
+ ], cn);
2589
2590
  class as extends fe {
2590
2591
  constructor() {
2591
2592
  super(...arguments);
2592
2593
  M(this, "id", Z.LIST_MULTIPLE);
2593
- M(this, "canvasRender", this.injector.createInstance(ln));
2594
- M(this, "dropdown", Dn);
2594
+ M(this, "canvasRender", this.injector.createInstance(cn));
2595
+ M(this, "dropdown", Vn);
2595
2596
  }
2596
2597
  }
2597
2598
  var is = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, ss = (e, t, o, n) => {
2598
2599
  for (var a = n > 1 ? void 0 : n ? rs(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2599
2600
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2600
2601
  return n && a && is(t, o, a), a;
2601
- }, pt = (e, t) => (o, n) => t(o, n, e);
2602
- const Ee = 4, mt = 4, he = 14, pe = 6, ke = 4, Ht = 8, ls = "#565656", kn = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
2602
+ }, mt = (e, t) => (o, n) => t(o, n, e);
2603
+ const Ee = 4, ft = 4, he = 14, pe = 6, ke = 4, zt = 8, ls = "#565656", Wn = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
2603
2604
  function ds(e, t) {
2604
2605
  const o = e.length;
2605
2606
  return {
@@ -2648,14 +2649,14 @@ function Uo(e, t, o) {
2648
2649
  docViewModel: i
2649
2650
  };
2650
2651
  }
2651
- function ft(e, t, o) {
2652
+ function gt(e, t, o) {
2652
2653
  const {
2653
2654
  documentSkeleton: n,
2654
2655
  docModel: a,
2655
2656
  docViewModel: i
2656
2657
  } = Uo(e, t, o);
2657
2658
  return {
2658
- documents: new pa(`DOCUMENTS_${Jt.generateRandomId()}`, n, {
2659
+ documents: new pa(`DOCUMENTS_${rt.generateRandomId()}`, n, {
2659
2660
  pageMarginLeft: 0,
2660
2661
  pageMarginTop: 0
2661
2662
  }),
@@ -2664,7 +2665,7 @@ function ft(e, t, o) {
2664
2665
  docViewModel: i
2665
2666
  };
2666
2667
  }
2667
- function Wn(e, t, o, n, a, i, r = !0) {
2668
+ function Hn(e, t, o, n, a, i, r = !0) {
2668
2669
  let l = 0;
2669
2670
  const s = r ? ke : 0;
2670
2671
  switch (a) {
@@ -2693,7 +2694,7 @@ function Wn(e, t, o, n, a, i, r = !0) {
2693
2694
  paddingTop: l
2694
2695
  };
2695
2696
  }
2696
- let dn = class {
2697
+ let un = class {
2697
2698
  constructor(e, t, o, n) {
2698
2699
  M(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2699
2700
  M(this, "zIndex");
@@ -2711,16 +2712,16 @@ let dn = class {
2711
2712
  let u;
2712
2713
  switch (i) {
2713
2714
  case ue.MIDDLE:
2714
- u = (n - mt) / 2;
2715
+ u = (n - ft) / 2;
2715
2716
  break;
2716
2717
  case ue.BOTTOM:
2717
- u = n - s - a - ke + (a / 2 - mt / 2);
2718
+ u = n - s - a - ke + (a / 2 - ft / 2);
2718
2719
  break;
2719
2720
  default:
2720
- u = l + ke + (a / 2 - mt / 2);
2721
+ u = l + ke + (a / 2 - ft / 2);
2721
2722
  break;
2722
2723
  }
2723
- e.save(), e.translateWithPrecision(t.startX + c, t.startY + u), e.fillStyle = "#565656", e.fill(kn), e.restore();
2724
+ e.save(), e.translateWithPrecision(t.startX + c, t.startY + u), e.fillStyle = "#565656", e.fill(Wn), e.restore();
2724
2725
  }
2725
2726
  // eslint-disable-next-line max-lines-per-function, complexity
2726
2727
  drawWith(e, t, o) {
@@ -2741,9 +2742,9 @@ let dn = class {
2741
2742
  }, R = S.endX - S.startX, I = S.endY - S.startY, V = this._ensureMap(s), C = this._generateKey(a, i), g = p.getListWithColor(u), v = ie(l), y = `${v != null ? v : ""}`, L = g.find((x) => x.label === y);
2742
2743
  let { tb: U, vt: T, ht: E, pd: A } = r || {};
2743
2744
  if (U = U != null ? U : Se.WRAP, T = T != null ? T : ue.BOTTOM, E = E != null ? E : le.ht, A = A != null ? A : le.pd, u.renderMode === de.ARROW) {
2744
- const { l: x = le.pd.l, t: j = le.pd.t, r: F = le.pd.r, b: H = le.pd.b } = A, X = R - x - F - he - 4, { documentSkeleton: k, documents: z, docModel: q } = ft(y, this._localeService, r);
2745
+ const { l: x = le.pd.l, t: j = le.pd.t, r: F = le.pd.r, b: H = le.pd.b } = A, X = R - x - F - he - 4, { documentSkeleton: k, documents: z, docModel: q } = gt(y, this._localeService, r);
2745
2746
  U === Se.WRAP && q.updateDocumentDataPageSize(Math.max(X, 1)), k.calculate(), k.getActualSize();
2746
- const ee = Qe(k), { height: te, width: re } = ee, { paddingTop: ae, paddingLeft: se } = Wn(X, I - j - H, re, te, T, E, !0);
2747
+ const ee = Qe(k), { height: te, width: re } = ee, { paddingTop: ae, paddingLeft: se } = Hn(X, I - j - H, re, te, T, E, !0);
2747
2748
  this._drawDownIcon(e, S, R, I, te, T, A), e.save(), e.translateWithPrecision(S.startX + x, S.startY + j), e.beginPath(), e.rect(0, 0, R - x - F, I - j - H), e.clip(), e.translateWithPrecision(0, ae), e.save(), e.translateWithPrecision(Ee, 0), e.beginPath(), e.rect(0, 0, X, te), e.clip(), z.render(e), e.translateWithPrecision(se, 0), e.restore(), e.restore(), V.set(C, {
2748
2749
  left: S.endX + x + o.rowHeaderWidth - he,
2749
2750
  top: S.startY + j + o.columnHeaderHeight,
@@ -2752,17 +2753,17 @@ let dn = class {
2752
2753
  });
2753
2754
  } else {
2754
2755
  e.save(), e.translateWithPrecision(S.startX, S.startY), e.beginPath(), e.rect(0, 0, R, I), e.clip();
2755
- const x = R - pe * 2 - Ee - he - 4, { documentSkeleton: j, documents: F, docModel: H } = ft(y, this._localeService, r);
2756
+ const x = R - pe * 2 - Ee - he - 4, { documentSkeleton: j, documents: F, docModel: H } = gt(y, this._localeService, r);
2756
2757
  U === Se.WRAP && H.updateDocumentDataPageSize(Math.max(x, 1)), j.calculate();
2757
- const X = Qe(j), { height: k, width: z } = X, { paddingTop: q, paddingLeft: ee } = Wn(x, I, z, k, T, E);
2758
+ const X = Qe(j), { height: k, width: z } = X, { paddingTop: q, paddingLeft: ee } = Hn(x, I, z, k, T, E);
2758
2759
  e.translateWithPrecision(pe, q);
2759
2760
  const te = Math.max(R - pe * 2, 1), re = k;
2760
- Gn.drawWith(e, {
2761
+ Zn.drawWith(e, {
2761
2762
  width: te,
2762
2763
  height: re,
2763
2764
  fill: (L == null ? void 0 : L.color) || Le,
2764
- radius: Ht
2765
- }), e.save(), e.translateWithPrecision(Ee, 0), e.beginPath(), e.rect(0, 0, x, k), e.clip(), e.translateWithPrecision(ee, 0), F.render(e), e.restore(), e.translateWithPrecision(x + Ee + 4, (k - mt) / 2), e.fillStyle = ls, e.fill(kn), e.restore(), V.set(C, {
2765
+ radius: zt
2766
+ }), e.save(), e.translateWithPrecision(Ee, 0), e.beginPath(), e.rect(0, 0, x, k), e.clip(), e.translateWithPrecision(ee, 0), F.render(e), e.restore(), e.translateWithPrecision(x + Ee + 4, (k - ft) / 2), e.fillStyle = ls, e.fill(Wn), e.restore(), V.set(C, {
2766
2767
  left: S.startX + pe + o.rowHeaderWidth,
2767
2768
  top: S.startY + q + o.columnHeaderHeight,
2768
2769
  width: te,
@@ -2783,7 +2784,7 @@ let dn = class {
2783
2784
  let { tb: S, pd: R } = o || {};
2784
2785
  const { t: I = le.pd.t, b: V = le.pd.b } = R != null ? R : {};
2785
2786
  if (S = S != null ? S : Se.WRAP, d.renderMode === de.ARROW) {
2786
- const C = m - he, { documentSkeleton: g, docModel: v } = ft(w, this._localeService, o);
2787
+ const C = m - he, { documentSkeleton: g, docModel: v } = gt(w, this._localeService, o);
2787
2788
  S === Se.WRAP && v.updateDocumentDataPageSize(Math.max(C, 1)), g.calculate(), g.getActualSize();
2788
2789
  const y = Qe(g), { height: L } = y;
2789
2790
  return L + I + V + ke * 2;
@@ -2815,13 +2816,13 @@ let dn = class {
2815
2816
  C = he + pe * 2 + V + I;
2816
2817
  break;
2817
2818
  case de.CUSTOM:
2818
- C = he + pe * 2 + Ee * 2 + V + I + Ht / 2 + 1;
2819
+ C = he + pe * 2 + Ee * 2 + V + I + zt / 2 + 1;
2819
2820
  break;
2820
2821
  // default is CUSTOM
2821
2822
  default:
2822
- C = he + pe * 2 + Ee * 2 + V + I + Ht / 2 + 1;
2823
+ C = he + pe * 2 + Ee * 2 + V + I + zt / 2 + 1;
2823
2824
  }
2824
- const g = m - C, { documentSkeleton: v, docModel: y } = ft(w, this._localeService, o);
2825
+ const g = m - C, { documentSkeleton: v, docModel: y } = gt(w, this._localeService, o);
2825
2826
  return S === Se.WRAP && y.updateDocumentDataPageSize(Math.max(g, 1)), v.calculate(), v.getActualSize(), Qe(v).width + C;
2826
2827
  }
2827
2828
  isHit(e, t) {
@@ -2840,7 +2841,7 @@ let dn = class {
2840
2841
  row: a,
2841
2842
  column: i
2842
2843
  };
2843
- this._commandService.executeCommand(Pt.id, r);
2844
+ this._commandService.executeCommand(At.id, r);
2844
2845
  }
2845
2846
  onPointerEnter(e, t) {
2846
2847
  var o, n;
@@ -2851,54 +2852,54 @@ let dn = class {
2851
2852
  (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.DEFAULT);
2852
2853
  }
2853
2854
  };
2854
- dn = ss([
2855
- pt(0, b(J)),
2856
- pt(1, Q),
2857
- pt(2, b(Ve)),
2858
- pt(3, b(oe))
2859
- ], dn);
2855
+ un = ss([
2856
+ mt(0, b(J)),
2857
+ mt(1, Q),
2858
+ mt(2, b(Ve)),
2859
+ mt(3, b(oe))
2860
+ ], un);
2860
2861
  class cs extends fe {
2861
2862
  constructor() {
2862
2863
  super(...arguments);
2863
2864
  M(this, "id", Z.LIST);
2864
- M(this, "canvasRender", this.injector.createInstance(dn));
2865
- M(this, "dropdown", Dn);
2866
- M(this, "optionsInput", Vt.componentKey);
2867
- M(this, "formulaInput", Vn);
2865
+ M(this, "canvasRender", this.injector.createInstance(un));
2866
+ M(this, "dropdown", Vn);
2867
+ M(this, "optionsInput", bt.componentKey);
2868
+ M(this, "formulaInput", yn);
2868
2869
  }
2869
2870
  }
2870
2871
  class us extends fe {
2871
2872
  constructor() {
2872
2873
  super(...arguments);
2873
2874
  M(this, "id", Z.TEXT_LENGTH);
2874
- M(this, "formulaInput", Tt);
2875
+ M(this, "formulaInput", jt);
2875
2876
  }
2876
2877
  }
2877
2878
  class hs extends fe {
2878
2879
  constructor() {
2879
2880
  super(...arguments);
2880
2881
  M(this, "id", Z.WHOLE);
2881
- M(this, "formulaInput", Tt);
2882
+ M(this, "formulaInput", jt);
2882
2883
  }
2883
2884
  }
2884
2885
  var ps = Object.defineProperty, ms = Object.getOwnPropertyDescriptor, fs = (e, t, o, n) => {
2885
2886
  for (var a = n > 1 ? void 0 : n ? ms(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2886
2887
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2887
2888
  return n && a && ps(t, o, a), a;
2888
- }, Yt = (e, t) => (o, n) => t(o, n, e);
2889
- let Ze = class extends un {
2889
+ }, Kt = (e, t) => (o, n) => t(o, n, e);
2890
+ let Ze = class extends pn {
2890
2891
  constructor(e, t, o) {
2891
2892
  super(), this._injector = e, this._componentManger = t, this._dataValidatorRegistryService = o, this._initComponents(), this._registerValidatorViews();
2892
2893
  }
2893
2894
  _initComponents() {
2894
2895
  [
2895
- [Oo, Co],
2896
- [In, qi],
2897
- [Vo, gi],
2898
- [Dn, Oi],
2896
+ [Oo, Io],
2897
+ [Vt, qi],
2898
+ [yo, gi],
2899
+ [Vn, Oi],
2899
2900
  [Eo, ti],
2900
- [Vt.componentKey, Vt],
2901
- [yt.componentKey, yt],
2901
+ [bt.componentKey, bt],
2902
+ [Et.componentKey, Et],
2902
2903
  ...xr
2903
2904
  ].forEach(([e, t]) => {
2904
2905
  this.disposeWithMe(this._componentManger.register(
@@ -2924,51 +2925,54 @@ let Ze = class extends un {
2924
2925
  }
2925
2926
  };
2926
2927
  Ze = fs([
2927
- Yt(0, b(Fe)),
2928
- Yt(1, b(Et)),
2929
- Yt(2, b(ye))
2928
+ Kt(0, b(Fe)),
2929
+ Kt(1, b(Lt)),
2930
+ Kt(2, b(ye))
2930
2931
  ], Ze);
2931
2932
  var gs = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, _s = (e, t, o, n) => {
2932
2933
  for (var a = n > 1 ? void 0 : n ? vs(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2933
2934
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2934
2935
  return n && a && gs(t, o, a), a;
2935
- }, Xt = (e, t) => (o, n) => t(o, n, e);
2936
+ }, Gt = (e, t) => (o, n) => t(o, n, e);
2936
2937
  const Ss = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2937
- var gt;
2938
- let Hn = (gt = class extends Kn {
2939
- constructor(e = bo, t, o, n) {
2938
+ var vt;
2939
+ let Yn = (vt = class extends Gn {
2940
+ constructor(e = yt, t, o, n) {
2940
2941
  super(), this._config = e, this._injector = t, this._commandService = o, this._configService = n;
2941
- const { menu: a, ...i } = this._config;
2942
- a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Rn, i);
2942
+ const { menu: a, ...i } = rt.deepMerge(
2943
+ yt,
2944
+ this._config
2945
+ );
2946
+ a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Dn, i);
2943
2947
  }
2944
2948
  onStarting() {
2945
2949
  [
2946
2950
  [me],
2947
2951
  [Ie],
2948
- [st],
2952
+ [lt],
2949
2953
  [Xe],
2950
2954
  [Ge],
2951
2955
  [Ke],
2952
2956
  [ze],
2953
- [rt],
2957
+ [st],
2954
2958
  [Ze]
2955
2959
  ].forEach((e) => {
2956
2960
  this._injector.add(e);
2957
2961
  }), [
2958
- Lt,
2959
- Pt,
2960
- Mo,
2961
- wn,
2962
+ xt,
2963
+ At,
2964
+ bo,
2965
+ Rn,
2962
2966
  Ue,
2963
- yo
2967
+ Mo
2964
2968
  ].forEach((e) => {
2965
2969
  this._commandService.registerCommand(e);
2966
2970
  });
2967
2971
  }
2968
2972
  onReady() {
2969
- this._injector.get(ze), this._injector.get(Ke), this._injector.get(rt), this._injector.get(st), this._injector.get(Ve).registerRenderModule(
2973
+ this._injector.get(ze), this._injector.get(Ke), this._injector.get(st), this._injector.get(lt), this._injector.get(Ve).registerRenderModule(
2970
2974
  Y.UNIVER_SHEET,
2971
- [Dt]
2975
+ [Mt]
2972
2976
  );
2973
2977
  }
2974
2978
  onRendered() {
@@ -2977,30 +2981,33 @@ let Hn = (gt = class extends Kn {
2977
2981
  onSteady() {
2978
2982
  this._injector.get(Xe);
2979
2983
  }
2980
- }, M(gt, "pluginName", Ss), M(gt, "type", Y.UNIVER_SHEET), gt);
2981
- Hn = _s([
2982
- Xt(1, b(Fe)),
2983
- Xt(2, Q),
2984
- Xt(3, cn)
2985
- ], Hn);
2984
+ }, M(vt, "pluginName", Ss), M(vt, "type", Y.UNIVER_SHEET), vt);
2985
+ Yn = _s([
2986
+ Gt(1, b(Fe)),
2987
+ Gt(2, Q),
2988
+ Gt(3, hn)
2989
+ ], Yn);
2986
2990
  var Cs = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, ws = (e, t, o, n) => {
2987
2991
  for (var a = n > 1 ? void 0 : n ? Is(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2988
2992
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2989
2993
  return n && a && Cs(t, o, a), a;
2990
- }, zt = (e, t) => (o, n) => t(o, n, e);
2994
+ }, Zt = (e, t) => (o, n) => t(o, n, e);
2991
2995
  const Rs = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2992
- var vt;
2993
- let Yn = (vt = class extends Kn {
2994
- constructor(e = bo, t, o, n) {
2996
+ var _t;
2997
+ let Xn = (_t = class extends Gn {
2998
+ constructor(e = yt, t, o, n) {
2995
2999
  super(), this._config = e, this._injector = t, this._commandService = o, this._configService = n;
2996
- const { menu: a, ...i } = this._config;
2997
- a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Rn, i);
3000
+ const { menu: a, ...i } = rt.deepMerge(
3001
+ yt,
3002
+ this._config
3003
+ );
3004
+ a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Dn, i);
2998
3005
  }
2999
3006
  onStarting() {
3000
3007
  [
3001
3008
  [me],
3002
3009
  [Ie],
3003
- [st],
3010
+ [lt],
3004
3011
  [Xe],
3005
3012
  [Ge],
3006
3013
  [Ke],
@@ -3009,12 +3016,12 @@ let Yn = (vt = class extends Kn {
3009
3016
  ].forEach((e) => {
3010
3017
  this._injector.add(e);
3011
3018
  }), [
3012
- Lt,
3013
- Pt,
3014
- Mo,
3015
- wn,
3019
+ xt,
3020
+ At,
3021
+ bo,
3022
+ Rn,
3016
3023
  Ue,
3017
- yo
3024
+ Mo
3018
3025
  ].forEach((e) => {
3019
3026
  this._commandService.registerCommand(e);
3020
3027
  });
@@ -3022,7 +3029,7 @@ let Yn = (vt = class extends Kn {
3022
3029
  onReady() {
3023
3030
  this._injector.get(ze), this._injector.get(Ke), this._injector.get(Ve).registerRenderModule(
3024
3031
  Y.UNIVER_SHEET,
3025
- [Dt]
3032
+ [Mt]
3026
3033
  );
3027
3034
  }
3028
3035
  onRendered() {
@@ -3031,15 +3038,15 @@ let Yn = (vt = class extends Kn {
3031
3038
  onSteady() {
3032
3039
  this._injector.get(Xe);
3033
3040
  }
3034
- }, M(vt, "pluginName", Rs), M(vt, "type", Y.UNIVER_SHEET), vt);
3035
- Yn = ws([
3036
- zt(1, b(Fe)),
3037
- zt(2, Q),
3038
- zt(3, cn)
3039
- ], Yn);
3041
+ }, M(_t, "pluginName", Rs), M(_t, "type", Y.UNIVER_SHEET), _t);
3042
+ Xn = ws([
3043
+ Zt(1, b(Fe)),
3044
+ Zt(2, Q),
3045
+ Zt(3, hn)
3046
+ ], Xn);
3040
3047
  export {
3041
3048
  Eo as DATE_DROPDOWN_KEY,
3042
- Dn as LIST_DROPDOWN_KEY,
3043
- Yn as UniverSheetsDataValidationMobileUIPlugin,
3044
- Hn as UniverSheetsDataValidationUIPlugin
3049
+ Vn as LIST_DROPDOWN_KEY,
3050
+ Xn as UniverSheetsDataValidationMobileUIPlugin,
3051
+ Yn as UniverSheetsDataValidationUIPlugin
3045
3052
  };