@univerjs/sheets-data-validation-ui 0.5.0-nightly.202411121606 → 0.5.0-nightly.202411141606

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,25 +1,25 @@
1
- var ka = Object.defineProperty;
2
- var Ba = (t, e, a) => e in t ? ka(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var F = (t, e, a) => Ba(t, typeof e != "symbol" ? e + "" : e, a);
4
- import Xe, { useState as q, forwardRef as wt, useRef as Bt, createElement as It, useMemo as Pt, useEffect as St } from "react";
5
- import { Inject as Y, LocaleService as nt, Disposable as Dt, DataValidationErrorStyle as ee, useDependency as H, ICommandService as at, numfmt as ze, CellValueType as Wa, UniverInstanceType as rt, toDisposable as Ha, IUniverInstanceService as gt, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Ya, DisposableCollection as Xa, CommandType as Gt, BuildTextUtils as za, DataValidationRenderMode as dt, DataValidationType as et, IConfigService as sn, UndoCommand as Ka, RedoCommand as Ga, isUnitRangesEqual as Za, debounce as qa, shallowEqual as Dn, Injector as At, DataValidationStatus as ne, ObjectMatrix as me, Range as Ja, Rectangle as ge, queryObjectMatrix as Ke, Optional as Qa, RxDisposable as ln, InterceptorEffectEnum as Bn, sequenceExecute as Wn, bufferDebounceTime as to, isFormulaString as Et, Tools as Ge, ThemeService as eo, VerticalAlign as ut, HorizontalAlign as Wt, DEFAULT_STYLES as lt, WrapStrategy as _t, DocumentDataModel as no, DEFAULT_EMPTY_DOCUMENT_VALUE as ao, BooleanNumber as Zt, Plugin as Hn } from "@univerjs/core";
6
- import { Button as xt, DatePanel as oo, Scrollbar as io, FormLayout as tt, RadioGroup as dn, Radio as Lt, Checkbox as Ve, Input as Tt, Select as Ze, DraggableList as ro } from "@univerjs/design";
7
- import { DeviceInputEventType as qe, IRenderManagerService as ie, fixLineWidthByScale as Rn, Transform as so, Checkbox as lo, FontCache as co, Shape as uo, Rect as Yn, getFontStyleString as Le, getDocsSkeletonPageSize as qt, DocumentViewModel as ho, DocumentSkeleton as fo, Documents as po } from "@univerjs/engine-render";
8
- import { SheetInterceptorService as cn, AFTER_CELL_EDIT_ASYNC as mo, SetRangeValuesCommand as un, SheetsSelectionsService as Xn, getSheetCommandTarget as zn, WorkbookEditablePermission as ve, RangeProtectionPermissionEditPoint as _e, WorksheetEditPermission as Se, checkRangesEditablePermission as go, WorksheetSetCellStylePermission as Je, INTERCEPTOR_POINT as Kn, InterceptCellContentPriority as Gn } from "@univerjs/sheets";
9
- import { SheetDataValidationModel as Rt, getCellValueOrigin as st, getDataValidationCellValue as vo, deserializeListOptions as Zn, serializeListOptions as qn, UpdateSheetDataValidationRangeCommand as Jn, UpdateSheetDataValidationSettingCommand as yn, RemoveSheetDataValidationCommand as Qn, UpdateSheetDataValidationOptionsCommand as _o, createDefaultNewRule as ta, AddSheetDataValidationCommand as hn, RemoveSheetAllDataValidationCommand as So, DATA_VALIDATION_PLUGIN_NAME as ea, getDataValidationDiffMutations as Qe, DataValidationCacheService as na, DataValidationFormulaController as Co, DataValidationFormulaService as wo, getFormulaResult as Te, isLegalFormulaResult as Vn, transformCheckboxValue as Io, CHECKBOX_FORMULA_1 as Do, CHECKBOX_FORMULA_2 as Ro } from "@univerjs/sheets-data-validation";
10
- import { getPatternType as yo } from "@univerjs/sheets-numfmt";
11
- import { SetCellEditVisibleOperation as aa, SheetCanvasPopManagerService as Vo, IEditorBridgeService as oa, SheetPermissionInterceptorBaseController as ia, IMarkSelectionService as Mo, HoverManagerService as bo, CellAlertManagerService as Oo, CellAlertType as Eo, IAutoFillService as $o, APPLY_TYPE as Jt, virtualizeDiscreteRanges as tn, getAutoFillRepeatRange as Po, COPY_TYPE as Mn, rangeToDiscreteRange as Lo, PREDEFINED_HOOK_NAME as re, getRepeatRange as bn, ISheetClipboardService as To, getCurrentRangeDisable$ as xo, AutoHeightController as ra, SheetSkeletonManagerService as Ce } from "@univerjs/sheets-ui";
12
- import { IDialogService as Ao, KeyCode as en, ISidebarService as sa, useObservable as jt, ComponentManager as Me, IZenZoneService as la, RectPopup as jo, useEvent as da, useSidebarClick as fn, MenuItemType as pn, getMenuHiddenObservable as Fo, RibbonStartGroup as No, IMenuManagerService as Uo } from "@univerjs/ui";
13
- import { DataValidatorRegistryService as yt, DataValidationModel as be, DataValidatorRegistryScope as ko, TWO_FORMULA_OPERATOR_COUNT as Bo, getRuleOptions as On, getRuleSetting as En } from "@univerjs/data-validation";
14
- import { RichTextEditingMutation as Wo } from "@univerjs/docs";
15
- import { filter as mn, BehaviorSubject as $n, distinctUntilChanged as Ho, Subject as Yo, debounceTime as gn, bufferTime as ca } from "rxjs";
16
- import { deserializeRangeWithSheet as Xo, serializeRange as ua } from "@univerjs/engine-formula";
17
- import { RangeSelector as zo, FormulaEditor as ha } from "@univerjs/sheets-formula-ui";
18
- var fa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
- function pa(t) {
1
+ var Wo = Object.defineProperty;
2
+ var Yo = (t, e, o) => e in t ? Wo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
+ var k = (t, e, o) => Yo(t, typeof e != "symbol" ? e + "" : e, o);
4
+ import Ke, { useState as q, forwardRef as wt, useRef as Ht, createElement as It, useMemo as $t, useEffect as St } from "react";
5
+ import { Inject as Y, LocaleService as ot, Disposable as Dt, DataValidationErrorStyle as oe, useDependency as W, ICommandService as at, numfmt as Ge, CellValueType as Xo, UniverInstanceType as Q, toDisposable as zo, IUniverInstanceService as gt, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Ko, DisposableCollection as Go, CommandType as qt, BuildTextUtils as Zo, DataValidationRenderMode as dt, DataValidationType as nt, IConfigService as dn, UndoCommand as qo, RedoCommand as Jo, isUnitRangesEqual as Qo, debounce as ta, shallowEqual as yn, Injector as jt, DataValidationStatus as ae, ObjectMatrix as ve, Range as ea, Rectangle as _e, queryObjectMatrix as Ze, Optional as na, RxDisposable as cn, InterceptorEffectEnum as Wn, sequenceExecute as Yn, bufferDebounceTime as oa, isFormulaString as Tt, Tools as qe, ThemeService as aa, VerticalAlign as ut, HorizontalAlign as Wt, DEFAULT_STYLES as lt, WrapStrategy as _t, DocumentDataModel as ia, DEFAULT_EMPTY_DOCUMENT_VALUE as ra, BooleanNumber as Jt, Plugin as Xn } from "@univerjs/core";
6
+ import { Button as At, DatePanel as sa, Scrollbar as la, FormLayout as et, RadioGroup as un, Radio as Lt, Checkbox as be, Input as xt, Select as Je, DraggableList as da } from "@univerjs/design";
7
+ import { DeviceInputEventType as Qe, IRenderManagerService as Rt, fixLineWidthByScale as Vn, Transform as ca, Checkbox as ua, CURSOR_TYPE as Yt, FontCache as ha, Shape as fa, Rect as zn, getFontStyleString as xe, getDocsSkeletonPageSize as Qt, DocumentViewModel as pa, DocumentSkeleton as ma, Documents as ga } from "@univerjs/engine-render";
8
+ import { SheetInterceptorService as hn, AFTER_CELL_EDIT_ASYNC as va, SetRangeValuesCommand as fn, SheetsSelectionsService as Kn, getSheetCommandTarget as Gn, WorkbookEditablePermission as Se, RangeProtectionPermissionEditPoint as Ce, WorksheetEditPermission as we, checkRangesEditablePermission as _a, WorksheetSetCellStylePermission as tn, INTERCEPTOR_POINT as Zn, InterceptCellContentPriority as qn } from "@univerjs/sheets";
9
+ import { SheetDataValidationModel as yt, getCellValueOrigin as st, getDataValidationCellValue as Sa, deserializeListOptions as Jn, serializeListOptions as Qn, UpdateSheetDataValidationRangeCommand as to, UpdateSheetDataValidationSettingCommand as Mn, RemoveSheetDataValidationCommand as eo, UpdateSheetDataValidationOptionsCommand as Ca, createDefaultNewRule as no, AddSheetDataValidationCommand as pn, RemoveSheetAllDataValidationCommand as wa, DATA_VALIDATION_PLUGIN_NAME as oo, getDataValidationDiffMutations as en, DataValidationCacheService as ao, DataValidationFormulaController as Ia, DataValidationFormulaService as Da, getFormulaResult as Ae, isLegalFormulaResult as bn, transformCheckboxValue as Ra, CHECKBOX_FORMULA_1 as ya, CHECKBOX_FORMULA_2 as Va } from "@univerjs/sheets-data-validation";
10
+ import { getPatternType as Ma } from "@univerjs/sheets-numfmt";
11
+ import { SetCellEditVisibleOperation as io, SheetCanvasPopManagerService as ba, IEditorBridgeService as ro, SheetPermissionInterceptorBaseController as so, IMarkSelectionService as Ea, HoverManagerService as Oa, CellAlertManagerService as Ta, CellAlertType as Pa, IAutoFillService as $a, APPLY_TYPE as te, virtualizeDiscreteRanges as nn, getAutoFillRepeatRange as La, COPY_TYPE as En, rangeToDiscreteRange as xa, PREDEFINED_HOOK_NAME as se, getRepeatRange as On, ISheetClipboardService as Aa, getCurrentRangeDisable$ as ja, AutoHeightController as lo, SheetSkeletonManagerService as Ie } from "@univerjs/sheets-ui";
12
+ import { IDialogService as Fa, KeyCode as on, ISidebarService as co, useObservable as Ft, ComponentManager as Ee, IZenZoneService as uo, RectPopup as Na, useEvent as ho, useSidebarClick as mn, MenuItemType as gn, getMenuHiddenObservable as Ua, RibbonStartGroup as ka, IMenuManagerService as Ba } from "@univerjs/ui";
13
+ import { DataValidatorRegistryService as Vt, DataValidationModel as Oe, DataValidatorRegistryScope as Ha, TWO_FORMULA_OPERATOR_COUNT as Wa, getRuleOptions as Tn, getRuleSetting as Pn } from "@univerjs/data-validation";
14
+ import { RichTextEditingMutation as Ya } from "@univerjs/docs";
15
+ import { filter as vn, BehaviorSubject as $n, distinctUntilChanged as Xa, Subject as za, debounceTime as _n, bufferTime as fo } from "rxjs";
16
+ import { deserializeRangeWithSheet as Ka, serializeRange as po } from "@univerjs/engine-formula";
17
+ import { RangeSelector as Ga, FormulaEditor as mo } from "@univerjs/sheets-formula-ui";
18
+ var go = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
+ function vo(t) {
20
20
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
21
21
  }
22
- var ma = { exports: {} }, Oe = {};
22
+ var _o = { exports: {} }, Te = {};
23
23
  /**
24
24
  * @license React
25
25
  * react-jsx-runtime.production.min.js
@@ -29,24 +29,24 @@ var ma = { exports: {} }, Oe = {};
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
31
  */
32
- var Ko = Xe, Go = Symbol.for("react.element"), Zo = Symbol.for("react.fragment"), qo = Object.prototype.hasOwnProperty, Jo = Ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Qo = { key: !0, ref: !0, __self: !0, __source: !0 };
33
- function ga(t, e, a) {
34
- var n, o = {}, i = null, r = null;
35
- a !== void 0 && (i = "" + a), e.key !== void 0 && (i = "" + e.key), e.ref !== void 0 && (r = e.ref);
36
- for (n in e) qo.call(e, n) && !Qo.hasOwnProperty(n) && (o[n] = e[n]);
37
- if (t && t.defaultProps) for (n in e = t.defaultProps, e) o[n] === void 0 && (o[n] = e[n]);
38
- return { $$typeof: Go, type: t, key: i, ref: r, props: o, _owner: Jo.current };
32
+ var Za = Ke, qa = Symbol.for("react.element"), Ja = Symbol.for("react.fragment"), Qa = Object.prototype.hasOwnProperty, ti = Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, ei = { key: !0, ref: !0, __self: !0, __source: !0 };
33
+ function So(t, e, o) {
34
+ var n, a = {}, i = null, r = null;
35
+ o !== void 0 && (i = "" + o), e.key !== void 0 && (i = "" + e.key), e.ref !== void 0 && (r = e.ref);
36
+ for (n in e) Qa.call(e, n) && !ei.hasOwnProperty(n) && (a[n] = e[n]);
37
+ if (t && t.defaultProps) for (n in e = t.defaultProps, e) a[n] === void 0 && (a[n] = e[n]);
38
+ return { $$typeof: qa, type: t, key: i, ref: r, props: a, _owner: ti.current };
39
39
  }
40
- Oe.Fragment = Zo;
41
- Oe.jsx = ga;
42
- Oe.jsxs = ga;
43
- ma.exports = Oe;
44
- var p = ma.exports, va = { exports: {} };
40
+ Te.Fragment = Ja;
41
+ Te.jsx = So;
42
+ Te.jsxs = So;
43
+ _o.exports = Te;
44
+ var p = _o.exports, Co = { exports: {} };
45
45
  (function(t, e) {
46
- (function(a, n) {
46
+ (function(o, n) {
47
47
  t.exports = n();
48
- })(fa, function() {
49
- var a = 1e3, n = 6e4, o = 36e5, i = "millisecond", r = "second", l = "minute", s = "hour", c = "day", u = "week", h = "month", d = "quarter", C = "year", m = "date", f = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, V = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
48
+ })(go, function() {
49
+ var o = 1e3, n = 6e4, a = 36e5, i = "millisecond", r = "second", l = "minute", s = "hour", c = "day", u = "week", h = "month", d = "quarter", C = "year", m = "date", f = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, V = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
50
50
  var v = ["th", "st", "nd", "rd"], g = w % 100;
51
51
  return "[" + w + (v[(g - 20) % 10] || v[g] || v[0]) + "]";
52
52
  } }, S = function(w, v, g) {
@@ -57,55 +57,55 @@ var p = ma.exports, va = { exports: {} };
57
57
  return (v <= 0 ? "+" : "-") + S(I, 2, "0") + ":" + S(_, 2, "0");
58
58
  }, m: function w(v, g) {
59
59
  if (v.date() < g.date()) return -w(g, v);
60
- var I = 12 * (g.year() - v.year()) + (g.month() - v.month()), _ = v.clone().add(I, h), L = g - _ < 0, b = v.clone().add(I + (L ? -1 : 1), h);
61
- return +(-(I + (g - _) / (L ? _ - b : b - _)) || 0);
60
+ var I = 12 * (g.year() - v.year()) + (g.month() - v.month()), _ = v.clone().add(I, h), $ = g - _ < 0, b = v.clone().add(I + ($ ? -1 : 1), h);
61
+ return +(-(I + (g - _) / ($ ? _ - b : b - _)) || 0);
62
62
  }, a: function(w) {
63
63
  return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
64
64
  }, p: function(w) {
65
65
  return { M: h, y: C, w: u, d: c, D: m, h: s, m: l, s: r, ms: i, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
66
66
  }, u: function(w) {
67
67
  return w === void 0;
68
- } }, E = "en", $ = {};
69
- $[E] = V;
68
+ } }, O = "en", T = {};
69
+ T[O] = V;
70
70
  var R = "$isDayjsObject", P = function(w) {
71
- return w instanceof U || !(!w || !w[R]);
71
+ return w instanceof N || !(!w || !w[R]);
72
72
  }, j = function w(v, g, I) {
73
73
  var _;
74
- if (!v) return E;
74
+ if (!v) return O;
75
75
  if (typeof v == "string") {
76
- var L = v.toLowerCase();
77
- $[L] && (_ = L), g && ($[L] = g, _ = L);
76
+ var $ = v.toLowerCase();
77
+ T[$] && (_ = $), g && (T[$] = g, _ = $);
78
78
  var b = v.split("-");
79
79
  if (!_ && b.length > 1) return w(b[0]);
80
80
  } else {
81
- var k = v.name;
82
- $[k] = v, _ = k;
81
+ var U = v.name;
82
+ T[U] = v, _ = U;
83
83
  }
84
- return !I && _ && (E = _), _ || !I && E;
84
+ return !I && _ && (O = _), _ || !I && O;
85
85
  }, A = function(w, v) {
86
86
  if (P(w)) return w.clone();
87
87
  var g = typeof v == "object" ? v : {};
88
- return g.date = w, g.args = arguments, new U(g);
88
+ return g.date = w, g.args = arguments, new N(g);
89
89
  }, M = x;
90
90
  M.l = j, M.i = P, M.w = function(w, v) {
91
91
  return A(w, { locale: v.$L, utc: v.$u, x: v.$x, $offset: v.$offset });
92
92
  };
93
- var U = function() {
93
+ var N = function() {
94
94
  function w(g) {
95
95
  this.$L = j(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[R] = !0;
96
96
  }
97
97
  var v = w.prototype;
98
98
  return v.parse = function(g) {
99
99
  this.$d = function(I) {
100
- var _ = I.date, L = I.utc;
100
+ var _ = I.date, $ = I.utc;
101
101
  if (_ === null) return /* @__PURE__ */ new Date(NaN);
102
102
  if (M.u(_)) return /* @__PURE__ */ new Date();
103
103
  if (_ instanceof Date) return new Date(_);
104
104
  if (typeof _ == "string" && !/Z$/i.test(_)) {
105
105
  var b = _.match(D);
106
106
  if (b) {
107
- var k = b[2] - 1 || 0, X = (b[7] || "0").substring(0, 3);
108
- return L ? new Date(Date.UTC(b[1], k, b[3] || 1, b[4] || 0, b[5] || 0, b[6] || 0, X)) : new Date(b[1], k, b[3] || 1, b[4] || 0, b[5] || 0, b[6] || 0, X);
107
+ var U = b[2] - 1 || 0, X = (b[7] || "0").substring(0, 3);
108
+ return $ ? new Date(Date.UTC(b[1], U, b[3] || 1, b[4] || 0, b[5] || 0, b[6] || 0, X)) : new Date(b[1], U, b[3] || 1, b[4] || 0, b[5] || 0, b[6] || 0, X);
109
109
  }
110
110
  }
111
111
  return new Date(_);
@@ -131,20 +131,20 @@ var p = ma.exports, va = { exports: {} };
131
131
  }, v.valueOf = function() {
132
132
  return this.$d.getTime();
133
133
  }, v.startOf = function(g, I) {
134
- var _ = this, L = !!M.u(I) || I, b = M.p(g), k = function(W, N) {
135
- var z = M.w(_.$u ? Date.UTC(_.$y, N, W) : new Date(_.$y, N, W), _);
136
- return L ? z : z.endOf(c);
137
- }, X = function(W, N) {
138
- return M.w(_.toDate()[W].apply(_.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(N)), _);
134
+ var _ = this, $ = !!M.u(I) || I, b = M.p(g), U = function(H, F) {
135
+ var z = M.w(_.$u ? Date.UTC(_.$y, F, H) : new Date(_.$y, F, H), _);
136
+ return $ ? z : z.endOf(c);
137
+ }, X = function(H, F) {
138
+ return M.w(_.toDate()[H].apply(_.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), _);
139
139
  }, K = this.$W, G = this.$M, Z = this.$D, J = "set" + (this.$u ? "UTC" : "");
140
140
  switch (b) {
141
141
  case C:
142
- return L ? k(1, 0) : k(31, 11);
142
+ return $ ? U(1, 0) : U(31, 11);
143
143
  case h:
144
- return L ? k(1, G) : k(0, G + 1);
144
+ return $ ? U(1, G) : U(0, G + 1);
145
145
  case u:
146
- var T = this.$locale().weekStart || 0, O = (K < T ? K + 7 : K) - T;
147
- return k(L ? Z - O : Z + (6 - O), G);
146
+ var L = this.$locale().weekStart || 0, E = (K < L ? K + 7 : K) - L;
147
+ return U($ ? Z - E : Z + (6 - E), G);
148
148
  case c:
149
149
  case m:
150
150
  return X(J + "Hours", 0);
@@ -160,45 +160,45 @@ var p = ma.exports, va = { exports: {} };
160
160
  }, v.endOf = function(g) {
161
161
  return this.startOf(g, !1);
162
162
  }, v.$set = function(g, I) {
163
- var _, L = M.p(g), b = "set" + (this.$u ? "UTC" : ""), k = (_ = {}, _[c] = b + "Date", _[m] = b + "Date", _[h] = b + "Month", _[C] = b + "FullYear", _[s] = b + "Hours", _[l] = b + "Minutes", _[r] = b + "Seconds", _[i] = b + "Milliseconds", _)[L], X = L === c ? this.$D + (I - this.$W) : I;
164
- if (L === h || L === C) {
163
+ var _, $ = M.p(g), b = "set" + (this.$u ? "UTC" : ""), U = (_ = {}, _[c] = b + "Date", _[m] = b + "Date", _[h] = b + "Month", _[C] = b + "FullYear", _[s] = b + "Hours", _[l] = b + "Minutes", _[r] = b + "Seconds", _[i] = b + "Milliseconds", _)[$], X = $ === c ? this.$D + (I - this.$W) : I;
164
+ if ($ === h || $ === C) {
165
165
  var K = this.clone().set(m, 1);
166
- K.$d[k](X), K.init(), this.$d = K.set(m, Math.min(this.$D, K.daysInMonth())).$d;
167
- } else k && this.$d[k](X);
166
+ K.$d[U](X), K.init(), this.$d = K.set(m, Math.min(this.$D, K.daysInMonth())).$d;
167
+ } else U && this.$d[U](X);
168
168
  return this.init(), this;
169
169
  }, v.set = function(g, I) {
170
170
  return this.clone().$set(g, I);
171
171
  }, v.get = function(g) {
172
172
  return this[M.p(g)]();
173
173
  }, v.add = function(g, I) {
174
- var _, L = this;
174
+ var _, $ = this;
175
175
  g = Number(g);
176
- var b = M.p(I), k = function(G) {
177
- var Z = A(L);
178
- return M.w(Z.date(Z.date() + Math.round(G * g)), L);
176
+ var b = M.p(I), U = function(G) {
177
+ var Z = A($);
178
+ return M.w(Z.date(Z.date() + Math.round(G * g)), $);
179
179
  };
180
180
  if (b === h) return this.set(h, this.$M + g);
181
181
  if (b === C) return this.set(C, this.$y + g);
182
- if (b === c) return k(1);
183
- if (b === u) return k(7);
184
- var X = (_ = {}, _[l] = n, _[s] = o, _[r] = a, _)[b] || 1, K = this.$d.getTime() + g * X;
182
+ if (b === c) return U(1);
183
+ if (b === u) return U(7);
184
+ var X = (_ = {}, _[l] = n, _[s] = a, _[r] = o, _)[b] || 1, K = this.$d.getTime() + g * X;
185
185
  return M.w(K, this);
186
186
  }, v.subtract = function(g, I) {
187
187
  return this.add(-1 * g, I);
188
188
  }, v.format = function(g) {
189
189
  var I = this, _ = this.$locale();
190
190
  if (!this.isValid()) return _.invalidDate || f;
191
- var L = g || "YYYY-MM-DDTHH:mm:ssZ", b = M.z(this), k = this.$H, X = this.$m, K = this.$M, G = _.weekdays, Z = _.months, J = _.meridiem, T = function(N, z, ot, Nt) {
192
- return N && (N[z] || N(I, L)) || ot[z].slice(0, Nt);
193
- }, O = function(N) {
194
- return M.s(k % 12 || 12, N, "0");
195
- }, W = J || function(N, z, ot) {
196
- var Nt = N < 12 ? "AM" : "PM";
197
- return ot ? Nt.toLowerCase() : Nt;
191
+ var $ = g || "YYYY-MM-DDTHH:mm:ssZ", b = M.z(this), U = this.$H, X = this.$m, K = this.$M, G = _.weekdays, Z = _.months, J = _.meridiem, L = function(F, z, it, Ut) {
192
+ return F && (F[z] || F(I, $)) || it[z].slice(0, Ut);
193
+ }, E = function(F) {
194
+ return M.s(U % 12 || 12, F, "0");
195
+ }, H = J || function(F, z, it) {
196
+ var Ut = F < 12 ? "AM" : "PM";
197
+ return it ? Ut.toLowerCase() : Ut;
198
198
  };
199
- return L.replace(y, function(N, z) {
200
- return z || function(ot) {
201
- switch (ot) {
199
+ return $.replace(y, function(F, z) {
200
+ return z || function(it) {
201
+ switch (it) {
202
202
  case "YY":
203
203
  return String(I.$y).slice(-2);
204
204
  case "YYYY":
@@ -208,9 +208,9 @@ var p = ma.exports, va = { exports: {} };
208
208
  case "MM":
209
209
  return M.s(K + 1, 2, "0");
210
210
  case "MMM":
211
- return T(_.monthsShort, K, Z, 3);
211
+ return L(_.monthsShort, K, Z, 3);
212
212
  case "MMMM":
213
- return T(Z, K);
213
+ return L(Z, K);
214
214
  case "D":
215
215
  return I.$D;
216
216
  case "DD":
@@ -218,23 +218,23 @@ var p = ma.exports, va = { exports: {} };
218
218
  case "d":
219
219
  return String(I.$W);
220
220
  case "dd":
221
- return T(_.weekdaysMin, I.$W, G, 2);
221
+ return L(_.weekdaysMin, I.$W, G, 2);
222
222
  case "ddd":
223
- return T(_.weekdaysShort, I.$W, G, 3);
223
+ return L(_.weekdaysShort, I.$W, G, 3);
224
224
  case "dddd":
225
225
  return G[I.$W];
226
226
  case "H":
227
- return String(k);
227
+ return String(U);
228
228
  case "HH":
229
- return M.s(k, 2, "0");
229
+ return M.s(U, 2, "0");
230
230
  case "h":
231
- return O(1);
231
+ return E(1);
232
232
  case "hh":
233
- return O(2);
233
+ return E(2);
234
234
  case "a":
235
- return W(k, X, !0);
235
+ return H(U, X, !0);
236
236
  case "A":
237
- return W(k, X, !1);
237
+ return H(U, X, !1);
238
238
  case "m":
239
239
  return String(X);
240
240
  case "mm":
@@ -249,51 +249,51 @@ var p = ma.exports, va = { exports: {} };
249
249
  return b;
250
250
  }
251
251
  return null;
252
- }(N) || b.replace(":", "");
252
+ }(F) || b.replace(":", "");
253
253
  });
254
254
  }, v.utcOffset = function() {
255
255
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
256
256
  }, v.diff = function(g, I, _) {
257
- var L, b = this, k = M.p(I), X = A(g), K = (X.utcOffset() - this.utcOffset()) * n, G = this - X, Z = function() {
257
+ var $, b = this, U = M.p(I), X = A(g), K = (X.utcOffset() - this.utcOffset()) * n, G = this - X, Z = function() {
258
258
  return M.m(b, X);
259
259
  };
260
- switch (k) {
260
+ switch (U) {
261
261
  case C:
262
- L = Z() / 12;
262
+ $ = Z() / 12;
263
263
  break;
264
264
  case h:
265
- L = Z();
265
+ $ = Z();
266
266
  break;
267
267
  case d:
268
- L = Z() / 3;
268
+ $ = Z() / 3;
269
269
  break;
270
270
  case u:
271
- L = (G - K) / 6048e5;
271
+ $ = (G - K) / 6048e5;
272
272
  break;
273
273
  case c:
274
- L = (G - K) / 864e5;
274
+ $ = (G - K) / 864e5;
275
275
  break;
276
276
  case s:
277
- L = G / o;
277
+ $ = G / a;
278
278
  break;
279
279
  case l:
280
- L = G / n;
280
+ $ = G / n;
281
281
  break;
282
282
  case r:
283
- L = G / a;
283
+ $ = G / o;
284
284
  break;
285
285
  default:
286
- L = G;
286
+ $ = G;
287
287
  }
288
- return _ ? L : M.a(L);
288
+ return _ ? $ : M.a($);
289
289
  }, v.daysInMonth = function() {
290
290
  return this.endOf(h).$D;
291
291
  }, v.$locale = function() {
292
- return $[this.$L];
292
+ return T[this.$L];
293
293
  }, v.locale = function(g, I) {
294
294
  if (!g) return this.$L;
295
- var _ = this.clone(), L = j(g, I, !0);
296
- return L && (_.$L = L), _;
295
+ var _ = this.clone(), $ = j(g, I, !0);
296
+ return $ && (_.$L = $), _;
297
297
  }, v.clone = function() {
298
298
  return M.w(this.$d, this);
299
299
  }, v.toDate = function() {
@@ -305,26 +305,26 @@ var p = ma.exports, va = { exports: {} };
305
305
  }, v.toString = function() {
306
306
  return this.$d.toUTCString();
307
307
  }, w;
308
- }(), B = U.prototype;
308
+ }(), B = N.prototype;
309
309
  return A.prototype = B, [["$ms", i], ["$s", r], ["$m", l], ["$H", s], ["$W", c], ["$M", h], ["$y", C], ["$D", m]].forEach(function(w) {
310
310
  B[w[1]] = function(v) {
311
311
  return this.$g(v, w[0], w[1]);
312
312
  };
313
313
  }), A.extend = function(w, v) {
314
- return w.$i || (w(v, U, A), w.$i = !0), A;
314
+ return w.$i || (w(v, N, A), w.$i = !0), A;
315
315
  }, A.locale = j, A.isDayjs = P, A.unix = function(w) {
316
316
  return A(1e3 * w);
317
- }, A.en = $[E], A.Ls = $, A.p = {}, A;
317
+ }, A.en = T[O], A.Ls = T, A.p = {}, A;
318
318
  });
319
- })(va);
320
- var ti = va.exports;
321
- const we = /* @__PURE__ */ pa(ti);
322
- var _a = { exports: {} };
319
+ })(Co);
320
+ var ni = Co.exports;
321
+ const De = /* @__PURE__ */ vo(ni);
322
+ var wo = { exports: {} };
323
323
  (function(t, e) {
324
- (function(a, n) {
324
+ (function(o, n) {
325
325
  t.exports = n();
326
- })(fa, function() {
327
- var a = "minute", n = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
326
+ })(go, function() {
327
+ var o = "minute", n = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
328
328
  return function(i, r, l) {
329
329
  var s = r.prototype;
330
330
  l.utc = function(f) {
@@ -332,7 +332,7 @@ var _a = { exports: {} };
332
332
  return new r(D);
333
333
  }, s.utc = function(f) {
334
334
  var D = l(this.toDate(), { locale: this.$L, utc: !0 });
335
- return f ? D.add(this.utcOffset(), a) : D;
335
+ return f ? D.add(this.utcOffset(), o) : D;
336
336
  }, s.local = function() {
337
337
  return l(this.toDate(), { locale: this.$L, utc: !1 });
338
338
  };
@@ -351,18 +351,18 @@ var _a = { exports: {} };
351
351
  s.utcOffset = function(f, D) {
352
352
  var y = this.$utils().u;
353
353
  if (y(f)) return this.$u ? 0 : y(this.$offset) ? h.call(this) : this.$offset;
354
- if (typeof f == "string" && (f = function(E) {
355
- E === void 0 && (E = "");
356
- var $ = E.match(n);
357
- if (!$) return null;
358
- var R = ("" + $[0]).match(o) || ["-", 0, 0], P = R[0], j = 60 * +R[1] + +R[2];
354
+ if (typeof f == "string" && (f = function(O) {
355
+ O === void 0 && (O = "");
356
+ var T = O.match(n);
357
+ if (!T) return null;
358
+ var R = ("" + T[0]).match(a) || ["-", 0, 0], P = R[0], j = 60 * +R[1] + +R[2];
359
359
  return j === 0 ? 0 : P === "+" ? j : -j;
360
360
  }(f), f === null)) return this;
361
361
  var V = Math.abs(f) <= 16 ? 60 * f : f, S = this;
362
362
  if (D) return S.$offset = V, S.$u = f === 0, S;
363
363
  if (f !== 0) {
364
364
  var x = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
365
- (S = this.local().add(V + x, a)).$offset = V, S.$x.$localOffset = x;
365
+ (S = this.local().add(V + x, o)).$offset = V, S.$x.$localOffset = x;
366
366
  } else S = this.utc();
367
367
  return S;
368
368
  };
@@ -392,27 +392,27 @@ var _a = { exports: {} };
392
392
  };
393
393
  };
394
394
  });
395
- })(_a);
396
- var ei = _a.exports;
397
- const ni = /* @__PURE__ */ pa(ei);
398
- var ai = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, ii = (t, e, a, n) => {
399
- for (var o = n > 1 ? void 0 : n ? oi(e, a) : e, i = t.length - 1, r; i >= 0; i--)
400
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
401
- return n && o && ai(e, a, o), o;
402
- }, Qt = (t, e) => (a, n) => e(a, n, t);
403
- let ae = class extends Dt {
404
- constructor(t, e, a, n, o) {
405
- super(), this._sheetInterceptorService = t, this._dataValidationModel = e, this._dataValidatorRegistryService = a, this._dialogService = n, this._localeService = o, this._initEditorBridgeInterceptor();
395
+ })(wo);
396
+ var oi = wo.exports;
397
+ const ai = /* @__PURE__ */ vo(oi);
398
+ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, si = (t, e, o, n) => {
399
+ for (var a = n > 1 ? void 0 : n ? ri(e, o) : e, i = t.length - 1, r; i >= 0; i--)
400
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
401
+ return n && a && ii(e, o, a), a;
402
+ }, ee = (t, e) => (o, n) => e(o, n, t);
403
+ let ie = class extends Dt {
404
+ constructor(t, e, o, n, a) {
405
+ super(), this._sheetInterceptorService = t, this._dataValidationModel = e, this._dataValidatorRegistryService = o, this._dialogService = n, this._localeService = a, this._initEditorBridgeInterceptor();
406
406
  }
407
407
  _initEditorBridgeInterceptor() {
408
408
  this._sheetInterceptorService.writeCellInterceptor.intercept(
409
- mo,
409
+ va,
410
410
  {
411
- handler: async (t, e, a) => {
411
+ handler: async (t, e, o) => {
412
412
  var f;
413
- const n = await t, { worksheet: o, row: i, col: r, unitId: l, subUnitId: s, workbook: c } = e, u = this._dataValidationModel.getRuleIdByLocation(l, s, i, r), h = u ? this._dataValidationModel.getRuleById(l, s, u) : void 0;
414
- if (!h || h.errorStyle !== ee.STOP)
415
- return a(Promise.resolve(n));
413
+ const n = await t, { worksheet: a, row: i, col: r, unitId: l, subUnitId: s, workbook: c } = e, u = this._dataValidationModel.getRuleIdByLocation(l, s, i, r), h = u ? this._dataValidationModel.getRuleById(l, s, u) : void 0;
414
+ if (!h || h.errorStyle !== oe.STOP)
415
+ return o(Promise.resolve(n));
416
416
  const d = await this._dataValidatorRegistryService.getValidatorItem(h.type);
417
417
  if (!d || await d.validator(
418
418
  {
@@ -422,14 +422,14 @@ let ae = class extends Dt {
422
422
  column: r,
423
423
  unitId: l,
424
424
  subUnitId: s,
425
- worksheet: o,
425
+ worksheet: a,
426
426
  workbook: c,
427
427
  t: n == null ? void 0 : n.t
428
428
  },
429
429
  h
430
430
  ))
431
- return a(Promise.resolve(n));
432
- const m = o.getCellRaw(i, r);
431
+ return o(Promise.resolve(n));
432
+ const m = a.getCellRaw(i, r);
433
433
  return this._dialogService.open({
434
434
  width: 368,
435
435
  title: {
@@ -437,11 +437,11 @@ let ae = class extends Dt {
437
437
  },
438
438
  id: "reject-input-dialog",
439
439
  children: {
440
- title: d.getRuleFinalError(h)
440
+ title: d.getRuleFinalError(h, { row: i, col: r, unitId: l, subUnitId: s })
441
441
  },
442
442
  footer: {
443
- title: Xe.createElement(
444
- xt,
443
+ title: Ke.createElement(
444
+ At,
445
445
  {
446
446
  type: "primary",
447
447
  onClick: () => this._dialogService.close("reject-input-dialog")
@@ -452,7 +452,7 @@ let ae = class extends Dt {
452
452
  onClose: () => {
453
453
  this._dialogService.close("reject-input-dialog");
454
454
  }
455
- }), a(Promise.resolve(m));
455
+ }), o(Promise.resolve(m));
456
456
  }
457
457
  }
458
458
  );
@@ -468,8 +468,8 @@ let ae = class extends Dt {
468
468
  title: t
469
469
  },
470
470
  footer: {
471
- title: Xe.createElement(
472
- xt,
471
+ title: Ke.createElement(
472
+ At,
473
473
  {
474
474
  type: "primary",
475
475
  onClick: () => this._dialogService.close("reject-input-dialog")
@@ -483,60 +483,60 @@ let ae = class extends Dt {
483
483
  });
484
484
  }
485
485
  };
486
- ae = ii([
487
- Qt(0, Y(cn)),
488
- Qt(1, Y(Rt)),
489
- Qt(2, Y(yt)),
490
- Qt(3, Ao),
491
- Qt(4, Y(nt))
492
- ], ae);
493
- const ri = "univer-dv-date-dropdown", si = "univer-dv-date-dropdown-btns", Pn = {
494
- dvDateDropdown: ri,
495
- dvDateDropdownBtns: si
486
+ ie = si([
487
+ ee(0, Y(hn)),
488
+ ee(1, Y(yt)),
489
+ ee(2, Y(Vt)),
490
+ ee(3, Fa),
491
+ ee(4, Y(ot))
492
+ ], ie);
493
+ const li = "univer-dv-date-dropdown", di = "univer-dv-date-dropdown-btns", Ln = {
494
+ dvDateDropdown: li,
495
+ dvDateDropdownBtns: di
496
496
  };
497
- we.extend(ni);
498
- const li = (t) => {
497
+ De.extend(ai);
498
+ const ci = (t) => {
499
499
  if (t == null || typeof t == "boolean")
500
500
  return;
501
501
  if (typeof t == "number" || !Number.isNaN(+t))
502
- return we(ze.format("yyyy-MM-dd HH:mm:ss", Number(t)));
503
- const e = we(t);
502
+ return De(Ge.format("yyyy-MM-dd HH:mm:ss", Number(t)));
503
+ const e = De(t);
504
504
  if (e.isValid())
505
505
  return e;
506
506
  };
507
- function di(t) {
508
- var $, R, P;
509
- const { location: e, hideFn: a } = t, { worksheet: n, row: o, col: i, unitId: r, subUnitId: l, workbook: s } = e, c = H(at), u = H(ae), h = n.getCell(o, i), d = ($ = h == null ? void 0 : h.dataValidation) == null ? void 0 : $.rule, C = (R = h == null ? void 0 : h.dataValidation) == null ? void 0 : R.validator, m = st(n.getCellRaw(o, i)), f = li(m), [D, y] = q(f), V = !!((P = d == null ? void 0 : d.bizInfo) != null && P.showTime), S = D && D.isValid() ? D : we(), x = H(nt);
507
+ function ui(t) {
508
+ var T, R, P;
509
+ const { location: e, hideFn: o } = t, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = e, c = W(at), u = W(ie), h = n.getCell(a, i), d = (T = h == null ? void 0 : h.dataValidation) == null ? void 0 : T.rule, C = (R = h == null ? void 0 : h.dataValidation) == null ? void 0 : R.validator, m = st(n.getCellRaw(a, i)), f = ci(m), [D, y] = q(f), V = !!((P = d == null ? void 0 : d.bizInfo) != null && P.showTime), S = D && D.isValid() ? D : De(), x = W(ot);
510
510
  if (!h || !d || !C)
511
511
  return;
512
- const E = async () => {
512
+ const O = async () => {
513
513
  var v, g, I;
514
514
  if (!S)
515
515
  return;
516
- const A = S.format(V ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), M = (v = ze.parseDate(A)) == null ? void 0 : v.v, U = s.getStyles().getStyleByCell(h), B = (I = (g = U == null ? void 0 : U.n) == null ? void 0 : g.pattern) != null ? I : "", w = yo(B);
517
- d.errorStyle !== ee.STOP || await C.validator({
516
+ const A = S.format(V ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), M = (v = Ge.parseDate(A)) == null ? void 0 : v.v, N = s.getStyles().getStyleByCell(h), B = (I = (g = N == null ? void 0 : N.n) == null ? void 0 : g.pattern) != null ? I : "", w = Ma(B);
517
+ d.errorStyle !== oe.STOP || await C.validator({
518
518
  value: M,
519
519
  unitId: r,
520
520
  subUnitId: l,
521
- row: o,
521
+ row: a,
522
522
  column: i,
523
523
  worksheet: n,
524
524
  workbook: s,
525
525
  interceptValue: A.replace("Z", "").replace("T", " "),
526
- t: Wa.NUMBER
527
- }, d) ? (a(), await c.executeCommand(aa.id, {
526
+ t: Xo.NUMBER
527
+ }, d) ? (o(), await c.executeCommand(io.id, {
528
528
  visible: !1,
529
- eventType: qe.Keyboard,
529
+ eventType: Qe.Keyboard,
530
530
  unitId: r,
531
- keycode: en.ESC
532
- }), await c.executeCommand(un.id, {
531
+ keycode: on.ESC
532
+ }), await c.executeCommand(fn.id, {
533
533
  unitId: r,
534
534
  subUnitId: l,
535
535
  range: {
536
536
  startColumn: i,
537
537
  endColumn: i,
538
- startRow: o,
539
- endRow: o
538
+ startRow: a,
539
+ endRow: a
540
540
  },
541
541
  value: {
542
542
  v: M,
@@ -550,11 +550,11 @@ function di(t) {
550
550
  }
551
551
  }
552
552
  }
553
- })) : u.showReject(C.getRuleFinalError(d));
553
+ })) : u.showReject(C.getRuleFinalError(d, { row: a, col: i, unitId: r, subUnitId: l }));
554
554
  };
555
- return /* @__PURE__ */ p.jsxs("div", { className: Pn.dvDateDropdown, children: [
555
+ return /* @__PURE__ */ p.jsxs("div", { className: Ln.dvDateDropdown, children: [
556
556
  /* @__PURE__ */ p.jsx(
557
- oo,
557
+ sa,
558
558
  {
559
559
  defaultValue: S,
560
560
  pickerValue: S,
@@ -565,131 +565,131 @@ function di(t) {
565
565
  onPanelChange: (j) => {
566
566
  y(j);
567
567
  },
568
- disabledDate: (j) => !ze.parseDate(j.format("YYYY-MM-DD"))
568
+ disabledDate: (j) => !Ge.parseDate(j.format("YYYY-MM-DD"))
569
569
  }
570
570
  ),
571
- /* @__PURE__ */ p.jsx("div", { className: Pn.dvDateDropdownBtns, children: /* @__PURE__ */ p.jsx(xt, { size: "small", type: "primary", onClick: E, disabled: !S.isValid(), children: x.t("dataValidation.alert.ok") }) })
571
+ /* @__PURE__ */ p.jsx("div", { className: Ln.dvDateDropdownBtns, children: /* @__PURE__ */ p.jsx(At, { size: "small", type: "primary", onClick: O, disabled: !S.isValid(), children: x.t("dataValidation.alert.ok") }) })
572
572
  ] });
573
573
  }
574
574
  var ct = function() {
575
575
  return ct = Object.assign || function(t) {
576
- for (var e, a = 1, n = arguments.length; a < n; a++) {
577
- e = arguments[a];
578
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
576
+ for (var e, o = 1, n = arguments.length; o < n; o++) {
577
+ e = arguments[o];
578
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
579
579
  }
580
580
  return t;
581
581
  }, ct.apply(this, arguments);
582
- }, ci = function(t, e) {
583
- var a = {};
584
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (a[n] = t[n]);
582
+ }, hi = function(t, e) {
583
+ var o = {};
584
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (o[n] = t[n]);
585
585
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
586
- for (var o = 0, n = Object.getOwnPropertySymbols(t); o < n.length; o++)
587
- e.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (a[n[o]] = t[n[o]]);
588
- return a;
589
- }, Vt = wt(function(t, e) {
590
- var a = t.icon, n = t.id, o = t.className, i = t.extend, r = ci(t, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(o || "").trim(), s = Bt("_".concat(fi()));
591
- return Sa(a, "".concat(n), { defIds: a.defIds, idSuffix: s.current }, ct({ ref: e, className: l }, r), i);
586
+ for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
587
+ e.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[a]) && (o[n[a]] = t[n[a]]);
588
+ return o;
589
+ }, Mt = wt(function(t, e) {
590
+ var o = t.icon, n = t.id, a = t.className, i = t.extend, r = hi(t, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(a || "").trim(), s = Ht("_".concat(mi()));
591
+ return Io(o, "".concat(n), { defIds: o.defIds, idSuffix: s.current }, ct({ ref: e, className: l }, r), i);
592
592
  });
593
- function Sa(t, e, a, n, o) {
594
- return It(t.tag, ct(ct({ key: e }, ui(t, a, o)), n), (hi(t, a).children || []).map(function(i, r) {
595
- return Sa(i, "".concat(e, "-").concat(t.tag, "-").concat(r), a, void 0, o);
593
+ function Io(t, e, o, n, a) {
594
+ return It(t.tag, ct(ct({ key: e }, fi(t, o, a)), n), (pi(t, o).children || []).map(function(i, r) {
595
+ return Io(i, "".concat(e, "-").concat(t.tag, "-").concat(r), o, void 0, a);
596
596
  }));
597
597
  }
598
- function ui(t, e, a) {
598
+ function fi(t, e, o) {
599
599
  var n = ct({}, t.attrs);
600
- a != null && a.colorChannel1 && n.fill === "colorChannel1" && (n.fill = a.colorChannel1);
601
- var o = e.defIds;
602
- return !o || o.length === 0 || (t.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + e.idSuffix), Object.entries(n).forEach(function(i) {
600
+ o != null && o.colorChannel1 && n.fill === "colorChannel1" && (n.fill = o.colorChannel1);
601
+ var a = e.defIds;
602
+ return !a || a.length === 0 || (t.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + e.idSuffix), Object.entries(n).forEach(function(i) {
603
603
  var r = i[0], l = i[1];
604
604
  typeof l == "string" && (n[r] = l.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
605
605
  })), n;
606
606
  }
607
- function hi(t, e) {
608
- var a, n = e.defIds;
609
- return !n || n.length === 0 ? t : t.tag === "defs" && (!((a = t.children) === null || a === void 0) && a.length) ? ct(ct({}, t), { children: t.children.map(function(o) {
610
- return typeof o.attrs.id == "string" && n && n.indexOf(o.attrs.id) > -1 ? ct(ct({}, o), { attrs: ct(ct({}, o.attrs), { id: o.attrs.id + e.idSuffix }) }) : o;
607
+ function pi(t, e) {
608
+ var o, n = e.defIds;
609
+ return !n || n.length === 0 ? t : t.tag === "defs" && (!((o = t.children) === null || o === void 0) && o.length) ? ct(ct({}, t), { children: t.children.map(function(a) {
610
+ return typeof a.attrs.id == "string" && n && n.indexOf(a.attrs.id) > -1 ? ct(ct({}, a), { attrs: ct(ct({}, a.attrs), { id: a.attrs.id + e.idSuffix }) }) : a;
611
611
  }) }) : t;
612
612
  }
613
- function fi() {
613
+ function mi() {
614
614
  return Math.random().toString(36).substring(2, 8);
615
615
  }
616
- Vt.displayName = "UniverIcon";
617
- var pi = { 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" } }] }, Ca = wt(function(t, e) {
618
- return It(Vt, Object.assign({}, t, {
616
+ Mt.displayName = "UniverIcon";
617
+ var gi = { 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" } }] }, Do = wt(function(t, e) {
618
+ return It(Mt, Object.assign({}, t, {
619
619
  id: "check-mark-single",
620
620
  ref: e,
621
- icon: pi
621
+ icon: gi
622
622
  }));
623
623
  });
624
- Ca.displayName = "CheckMarkSingle";
625
- var mi = { 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" } }] }, wa = wt(function(t, e) {
626
- return It(Vt, Object.assign({}, t, {
624
+ Do.displayName = "CheckMarkSingle";
625
+ var vi = { 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" } }] }, Ro = wt(function(t, e) {
626
+ return It(Mt, Object.assign({}, t, {
627
627
  id: "data-validation-single",
628
628
  ref: e,
629
- icon: mi
629
+ icon: vi
630
630
  }));
631
631
  });
632
- wa.displayName = "DataValidationSingle";
633
- var gi = { 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" } }] }, vn = wt(function(t, e) {
634
- return It(Vt, Object.assign({}, t, {
632
+ Ro.displayName = "DataValidationSingle";
633
+ var _i = { 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" } }] }, Sn = wt(function(t, e) {
634
+ return It(Mt, Object.assign({}, t, {
635
635
  id: "delete-single",
636
636
  ref: e,
637
- icon: gi
637
+ icon: _i
638
638
  }));
639
639
  });
640
- vn.displayName = "DeleteSingle";
641
- var vi = { 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" } }] }, Ia = wt(function(t, e) {
642
- return It(Vt, Object.assign({}, t, {
640
+ Sn.displayName = "DeleteSingle";
641
+ var Si = { 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" } }] }, yo = wt(function(t, e) {
642
+ return It(Mt, Object.assign({}, t, {
643
643
  id: "increase-single",
644
644
  ref: e,
645
- icon: vi
645
+ icon: Si
646
646
  }));
647
647
  });
648
- Ia.displayName = "IncreaseSingle";
649
- var _i = { 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" } }] }, Da = wt(function(t, e) {
650
- return It(Vt, Object.assign({}, t, {
648
+ yo.displayName = "IncreaseSingle";
649
+ 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" } }] }, Vo = wt(function(t, e) {
650
+ return It(Mt, Object.assign({}, t, {
651
651
  id: "more-down-single",
652
652
  ref: e,
653
- icon: _i
653
+ icon: Ci
654
654
  }));
655
655
  });
656
- Da.displayName = "MoreDownSingle";
657
- var Si = { 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" } }] }, Ra = wt(function(t, e) {
658
- return It(Vt, Object.assign({}, t, {
656
+ Vo.displayName = "MoreDownSingle";
657
+ var wi = { 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" } }] }, Mo = wt(function(t, e) {
658
+ return It(Mt, Object.assign({}, t, {
659
659
  id: "more-up-single",
660
660
  ref: e,
661
- icon: Si
661
+ icon: wi
662
662
  }));
663
663
  });
664
- Ra.displayName = "MoreUpSingle";
665
- var Ci = { 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" } }] }] }, ya = wt(function(t, e) {
666
- return It(Vt, Object.assign({}, t, {
664
+ Mo.displayName = "MoreUpSingle";
665
+ var Ii = { 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" } }] }] }, bo = wt(function(t, e) {
666
+ return It(Mt, Object.assign({}, t, {
667
667
  id: "sequence-single",
668
668
  ref: e,
669
- icon: Ci
669
+ icon: Ii
670
670
  }));
671
671
  });
672
- ya.displayName = "SequenceSingle";
673
- var wi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Di = (t, e, a, n) => {
674
- for (var o = n > 1 ? void 0 : n ? Ii(e, a) : e, i = t.length - 1, r; i >= 0; i--)
675
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
676
- return n && o && wi(e, a, o), o;
677
- }, Ln = (t, e) => (a, n) => e(a, n, t);
672
+ bo.displayName = "SequenceSingle";
673
+ var Di = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, yi = (t, e, o, n) => {
674
+ for (var a = n > 1 ? void 0 : n ? Ri(e, o) : e, i = t.length - 1, r; i >= 0; i--)
675
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
676
+ return n && a && Di(e, o, a), a;
677
+ }, xn = (t, e) => (o, n) => e(o, n, t);
678
678
  let pt = class extends Dt {
679
- constructor(e, a) {
679
+ constructor(e, o) {
680
680
  super();
681
- F(this, "_open$", new $n(!1));
682
- F(this, "open$", this._open$.pipe(Ho()));
683
- F(this, "_activeRule");
684
- F(this, "_activeRule$", new $n(void 0));
685
- F(this, "activeRule$", this._activeRule$.asObservable());
686
- F(this, "_closeDisposable", null);
687
- this._univerInstanceService = e, this._sidebarService = a, this.disposeWithMe(
688
- this._univerInstanceService.getCurrentTypeOfUnit$(rt.UNIVER_SHEET).pipe(mn((n) => !n)).subscribe(() => {
681
+ k(this, "_open$", new $n(!1));
682
+ k(this, "open$", this._open$.pipe(Xa()));
683
+ k(this, "_activeRule");
684
+ k(this, "_activeRule$", new $n(void 0));
685
+ k(this, "activeRule$", this._activeRule$.asObservable());
686
+ k(this, "_closeDisposable", null);
687
+ this._univerInstanceService = e, this._sidebarService = o, this.disposeWithMe(
688
+ this._univerInstanceService.getCurrentTypeOfUnit$(Q.UNIVER_SHEET).pipe(vn((n) => !n)).subscribe(() => {
689
689
  this.close();
690
690
  })
691
691
  ), this.disposeWithMe(this._sidebarService.sidebarOptions$.subscribe((n) => {
692
- n.id === _n && (n.visible || setTimeout(() => {
692
+ n.id === Cn && (n.visible || setTimeout(() => {
693
693
  this._sidebarService.sidebarOptions$.next({ visible: !1 });
694
694
  }));
695
695
  }));
@@ -712,7 +712,7 @@ let pt = class extends Dt {
712
712
  this._open$.next(!1), (e = this._closeDisposable) == null || e.dispose();
713
713
  }
714
714
  setCloseDisposable(e) {
715
- this._closeDisposable = Ha(() => {
715
+ this._closeDisposable = zo(() => {
716
716
  e.dispose(), this._closeDisposable = null;
717
717
  });
718
718
  }
@@ -720,15 +720,15 @@ let pt = class extends Dt {
720
720
  this._activeRule = e, this._activeRule$.next(e);
721
721
  }
722
722
  };
723
- pt = Di([
724
- Ln(0, gt),
725
- Ln(1, sa)
723
+ pt = yi([
724
+ xn(0, gt),
725
+ xn(1, co)
726
726
  ], pt);
727
- function Ri() {
728
- const t = H(Ct), e = jt(t.activeDropdown$, t.activeDropdown), a = H(Me);
727
+ function Vi() {
728
+ const t = W(Ct), e = Ft(t.activeDropdown$, t.activeDropdown), o = W(Ee);
729
729
  if (!e)
730
730
  return null;
731
- const { location: n, componentKey: o } = e, i = a.get(o), r = `${n.unitId}-${n.subUnitId}-${n.row}-${n.col}`;
731
+ const { location: n, componentKey: a } = e, i = o.get(a), r = `${n.unitId}-${n.subUnitId}-${n.row}-${n.col}`;
732
732
  if (!i)
733
733
  return null;
734
734
  const l = () => {
@@ -743,21 +743,21 @@ function Ri() {
743
743
  r
744
744
  );
745
745
  }
746
- const Va = "sheet.ui.dropdown";
747
- var yi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, Mi = (t, e, a, n) => {
748
- for (var o = n > 1 ? void 0 : n ? Vi(e, a) : e, i = t.length - 1, r; i >= 0; i--)
749
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
750
- return n && o && yi(e, a, o), o;
751
- }, Mt = (t, e) => (a, n) => e(a, n, t);
746
+ const Eo = "sheet.ui.dropdown";
747
+ var Mi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, Ei = (t, e, o, n) => {
748
+ for (var a = n > 1 ? void 0 : n ? bi(e, o) : e, i = t.length - 1, r; i >= 0; i--)
749
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
750
+ return n && a && Mi(e, o, a), a;
751
+ }, bt = (t, e) => (o, n) => e(o, n, t);
752
752
  let Ct = class extends Dt {
753
- constructor(e, a, n, o, i, r, l) {
753
+ constructor(e, o, n, a, i, r, l) {
754
754
  super();
755
- F(this, "_activeDropdown");
756
- F(this, "_activeDropdown$", new Yo());
757
- F(this, "_currentPopup", null);
758
- F(this, "activeDropdown$", this._activeDropdown$.asObservable());
759
- F(this, "_zenVisible", !1);
760
- this._canvasPopupManagerService = e, this._univerInstanceService = a, this._dataValidatorRegistryService = n, this._zenZoneService = o, this._renderManagerService = i, this._dataValidationModel = r, this._sheetsSelectionsService = l, this._init(), this._initSelectionChange(), this.disposeWithMe(() => {
755
+ k(this, "_activeDropdown");
756
+ k(this, "_activeDropdown$", new za());
757
+ k(this, "_currentPopup", null);
758
+ k(this, "activeDropdown$", this._activeDropdown$.asObservable());
759
+ k(this, "_zenVisible", !1);
760
+ this._canvasPopupManagerService = e, this._univerInstanceService = o, this._dataValidatorRegistryService = n, this._zenZoneService = a, this._renderManagerService = i, this._dataValidationModel = r, this._sheetsSelectionsService = l, this._init(), this._initSelectionChange(), this.disposeWithMe(() => {
761
761
  this._activeDropdown$.complete();
762
762
  });
763
763
  }
@@ -769,14 +769,14 @@ let Ct = class extends Dt {
769
769
  this._zenVisible = e, e && this.hideDropdown();
770
770
  }));
771
771
  }
772
- _getDropdownByCell(e, a, n, o) {
773
- const i = e ? this._univerInstanceService.getUnit(e, rt.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitForType(rt.UNIVER_SHEET);
772
+ _getDropdownByCell(e, o, n, a) {
773
+ const i = e ? this._univerInstanceService.getUnit(e, Q.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitForType(Q.UNIVER_SHEET);
774
774
  if (!i)
775
775
  return;
776
- const r = a ? i.getSheetBySheetId(a) : i.getActiveSheet();
776
+ const r = o ? i.getSheetBySheetId(o) : i.getActiveSheet();
777
777
  if (!r)
778
778
  return;
779
- const l = this._dataValidationModel.getRuleByLocation(i.getUnitId(), r.getSheetId(), n, o);
779
+ const l = this._dataValidationModel.getRuleByLocation(i.getUnitId(), r.getSheetId(), n, a);
780
780
  if (!l)
781
781
  return;
782
782
  const s = this._dataValidatorRegistryService.getValidatorItem(l.type);
@@ -784,21 +784,21 @@ let Ct = class extends Dt {
784
784
  }
785
785
  _initSelectionChange() {
786
786
  this.disposeWithMe(this._sheetsSelectionsService.selectionMoveEnd$.subscribe((e) => {
787
- e && e.every((a) => !(a.primary && this._getDropdownByCell(a.primary.unitId, a.primary.sheetId, a.primary.actualRow, a.primary.actualColumn))) && this.hideDropdown();
787
+ e && e.every((o) => !(o.primary && this._getDropdownByCell(o.primary.unitId, o.primary.sheetId, o.primary.actualRow, o.primary.actualColumn))) && this.hideDropdown();
788
788
  }));
789
789
  }
790
- showDropdown(e, a = !0) {
791
- const { location: n } = e, { row: o, col: i, unitId: r, subUnitId: l } = n;
790
+ showDropdown(e, o = !0) {
791
+ const { location: n } = e, { row: a, col: i, unitId: r, subUnitId: l } = n;
792
792
  if (this._currentPopup && this._currentPopup.dispose(), this._zenVisible)
793
793
  return;
794
794
  this._activeDropdown = e, this._activeDropdown$.next(this._activeDropdown);
795
- const s = this._renderManagerService.getRenderById(Ya), c = this._canvasPopupManagerService.attachPopupToCell(
796
- o,
795
+ const s = this._renderManagerService.getRenderById(Ko), c = this._canvasPopupManagerService.attachPopupToCell(
796
+ a,
797
797
  i,
798
798
  {
799
- componentKey: Va,
799
+ componentKey: Eo,
800
800
  onClickOutside: () => {
801
- a && this.hideDropdown();
801
+ o && this.hideDropdown();
802
802
  },
803
803
  offset: [0, 3],
804
804
  excludeOutside: [s == null ? void 0 : s.engine.getCanvasElement()].filter(Boolean)
@@ -808,7 +808,7 @@ let Ct = class extends Dt {
808
808
  );
809
809
  if (!c)
810
810
  throw new Error("[DataValidationDropdownManagerService]: cannot show dropdown!");
811
- const u = new Xa();
811
+ const u = new Go();
812
812
  u.add(c), u.add({
813
813
  dispose: () => {
814
814
  var h, d;
@@ -819,14 +819,14 @@ let Ct = class extends Dt {
819
819
  hideDropdown() {
820
820
  this._activeDropdown && (this._currentPopup && this._currentPopup.dispose(), this._currentPopup = null, this._activeDropdown = null, this._activeDropdown$.next(null));
821
821
  }
822
- showDataValidationDropdown(e, a, n, o, i) {
823
- const r = this._univerInstanceService.getUnit(e, rt.UNIVER_SHEET);
822
+ showDataValidationDropdown(e, o, n, a, i) {
823
+ const r = this._univerInstanceService.getUnit(e, Q.UNIVER_SHEET);
824
824
  if (!r)
825
825
  return;
826
- const l = r.getSheetBySheetId(a);
826
+ const l = r.getSheetBySheetId(o);
827
827
  if (!l)
828
828
  return;
829
- const s = this._dataValidationModel.getRuleByLocation(r.getUnitId(), l.getSheetId(), n, o);
829
+ const s = this._dataValidationModel.getRuleByLocation(r.getUnitId(), l.getSheetId(), n, a);
830
830
  if (!s)
831
831
  return;
832
832
  const c = this._dataValidatorRegistryService.getValidatorItem(s.type);
@@ -839,96 +839,96 @@ let Ct = class extends Dt {
839
839
  workbook: r,
840
840
  worksheet: l,
841
841
  row: n,
842
- col: o,
842
+ col: a,
843
843
  unitId: e,
844
- subUnitId: a
844
+ subUnitId: o
845
845
  },
846
846
  componentKey: c.dropdown,
847
847
  onHide: i
848
848
  });
849
849
  }
850
850
  };
851
- Ct = Mi([
852
- Mt(0, Y(Vo)),
853
- Mt(1, gt),
854
- Mt(2, Y(yt)),
855
- Mt(3, la),
856
- Mt(4, ie),
857
- Mt(5, Y(Rt)),
858
- Mt(6, Y(Xn))
851
+ Ct = Ei([
852
+ bt(0, Y(ba)),
853
+ bt(1, gt),
854
+ bt(2, Y(Vt)),
855
+ bt(3, uo),
856
+ bt(4, Rt),
857
+ bt(5, Y(yt)),
858
+ bt(6, Y(Kn))
859
859
  ], Ct);
860
- const _n = "DataValidationPanel", Ft = {
860
+ const Cn = "DataValidationPanel", Nt = {
861
861
  id: "data-validation.operation.open-validation-panel",
862
- type: Gt.OPERATION,
862
+ type: qt.OPERATION,
863
863
  handler(t, e) {
864
864
  if (!e)
865
865
  return !1;
866
- const { ruleId: a, isAdd: n } = e, o = t.get(pt), i = t.get(be), r = t.get(gt), l = t.get(sa), s = zn(r);
866
+ const { ruleId: o, isAdd: n } = e, a = t.get(pt), i = t.get(Oe), r = t.get(gt), l = t.get(co), s = Gn(r);
867
867
  if (!s) return !1;
868
- const { unitId: c, subUnitId: u } = s, h = a ? i.getRuleById(c, u, a) : void 0;
869
- o.open(), o.setActiveRule(h && {
868
+ const { unitId: c, subUnitId: u } = s, h = o ? i.getRuleById(c, u, o) : void 0;
869
+ a.open(), a.setActiveRule(h && {
870
870
  unitId: c,
871
871
  subUnitId: u,
872
872
  rule: h
873
873
  });
874
874
  const d = l.open({
875
875
  header: { title: n ? "dataValidation.panel.addTitle" : "dataValidation.panel.title" },
876
- children: { label: _n },
876
+ children: { label: Cn },
877
877
  width: 312,
878
- onClose: () => o.close()
878
+ onClose: () => a.close()
879
879
  });
880
- return o.setCloseDisposable(d), !0;
880
+ return a.setCloseDisposable(d), !0;
881
881
  }
882
- }, Sn = {
882
+ }, wn = {
883
883
  id: "data-validation.operation.close-validation-panel",
884
- type: Gt.OPERATION,
884
+ type: qt.OPERATION,
885
885
  handler(t) {
886
886
  return t.get(pt).close(), !0;
887
887
  }
888
- }, Ma = {
888
+ }, Oo = {
889
889
  id: "data-validation.operation.toggle-validation-panel",
890
- type: Gt.OPERATION,
890
+ type: qt.OPERATION,
891
891
  handler(t) {
892
- const e = t.get(at), a = t.get(pt);
893
- return a.open(), a.isOpen ? e.executeCommand(Sn.id) : e.executeCommand(Ft.id), !0;
892
+ const e = t.get(at), o = t.get(pt);
893
+ return o.open(), o.isOpen ? e.executeCommand(wn.id) : e.executeCommand(Nt.id), !0;
894
894
  }
895
- }, Ee = {
896
- type: Gt.OPERATION,
895
+ }, Pe = {
896
+ type: qt.OPERATION,
897
897
  id: "sheet.operation.show-data-validation-dropdown",
898
898
  handler(t, e) {
899
899
  if (!e)
900
900
  return !1;
901
- const a = t.get(Ct), { unitId: n, subUnitId: o, row: i, column: r } = e, l = a.activeDropdown, s = l == null ? void 0 : l.location;
902
- return s && s.unitId === n && s.subUnitId === o && s.row === i && s.col === r || a.showDataValidationDropdown(
901
+ const o = t.get(Ct), { unitId: n, subUnitId: a, row: i, column: r } = e, l = o.activeDropdown, s = l == null ? void 0 : l.location;
902
+ return s && s.unitId === n && s.subUnitId === a && s.row === i && s.col === r || o.showDataValidationDropdown(
903
903
  n,
904
- o,
904
+ a,
905
905
  i,
906
906
  r
907
907
  ), !0;
908
908
  }
909
- }, ba = {
910
- type: Gt.OPERATION,
909
+ }, To = {
910
+ type: qt.OPERATION,
911
911
  id: "sheet.operation.hide-data-validation-dropdown",
912
912
  handler(t, e) {
913
913
  return e ? (t.get(Ct).hideDropdown(), !0) : !1;
914
914
  }
915
- }, $t = "#ECECEC", Cn = "sheets-data-validation-ui.config", Oa = {}, bi = "univer-dv-list-dropdown", Oi = "univer-dv-list-dropdown-title", Ei = "univer-dv-list-dropdown-list", $i = "univer-dv-list-dropdown-list-container", Pi = "univer-dv-list-dropdown-selected-icon", Li = "univer-dv-list-dropdown-item-container", Ti = "univer-dv-list-dropdown-item", xi = "univer-dv-list-dropdown-split", Ai = "univer-dv-list-dropdown-edit", vt = {
916
- dvListDropdown: bi,
917
- dvListDropdownTitle: Oi,
918
- dvListDropdownList: Ei,
915
+ }, Pt = "#ECECEC", In = "sheets-data-validation-ui.config", Po = {}, Oi = "univer-dv-list-dropdown", Ti = "univer-dv-list-dropdown-title", Pi = "univer-dv-list-dropdown-list", $i = "univer-dv-list-dropdown-list-container", Li = "univer-dv-list-dropdown-selected-icon", xi = "univer-dv-list-dropdown-item-container", Ai = "univer-dv-list-dropdown-item", ji = "univer-dv-list-dropdown-split", Fi = "univer-dv-list-dropdown-edit", vt = {
916
+ dvListDropdown: Oi,
917
+ dvListDropdownTitle: Ti,
918
+ dvListDropdownList: Pi,
919
919
  dvListDropdownListContainer: $i,
920
- dvListDropdownSelectedIcon: Pi,
921
- dvListDropdownItemContainer: Li,
922
- dvListDropdownItem: Ti,
923
- dvListDropdownSplit: xi,
924
- dvListDropdownEdit: Ai
925
- }, ji = (t) => {
926
- var E, $;
927
- const { value: e, onChange: a, multiple: n, options: o, title: i, onEdit: r, style: l, filter: s, location: c } = t, u = H(nt), h = H(sn), d = s == null ? void 0 : s.toLowerCase(), { row: C, col: m, unitId: f, subUnitId: D } = c, y = o.filter((R) => d ? R.label.toLowerCase().includes(d) : !0), V = ($ = (E = h.getConfig(Cn)) == null ? void 0 : E.showEditOnDropdown) != null ? $ : !0, S = H(ia), x = Pt(() => S.permissionCheckWithRanges(
920
+ dvListDropdownSelectedIcon: Li,
921
+ dvListDropdownItemContainer: xi,
922
+ dvListDropdownItem: Ai,
923
+ dvListDropdownSplit: ji,
924
+ dvListDropdownEdit: Fi
925
+ }, Ni = (t) => {
926
+ var O, T;
927
+ const { value: e, onChange: o, multiple: n, options: a, title: i, onEdit: r, style: l, filter: s, location: c } = t, u = W(ot), h = W(dn), d = s == null ? void 0 : s.toLowerCase(), { row: C, col: m, unitId: f, subUnitId: D } = c, y = a.filter((R) => d ? R.label.toLowerCase().includes(d) : !0), V = (T = (O = h.getConfig(In)) == null ? void 0 : O.showEditOnDropdown) != null ? T : !0, S = W(so), x = $t(() => S.permissionCheckWithRanges(
928
928
  {
929
- workbookTypes: [ve],
930
- rangeTypes: [_e],
931
- worksheetTypes: [Se]
929
+ workbookTypes: [Se],
930
+ rangeTypes: [Ce],
931
+ worksheetTypes: [we]
932
932
  },
933
933
  [{ startColumn: m, startRow: C, endColumn: m, endRow: C }],
934
934
  f,
@@ -936,22 +936,22 @@ const _n = "DataValidationPanel", Ft = {
936
936
  ), [S, m, C, f, D]);
937
937
  return /* @__PURE__ */ p.jsxs("div", { className: vt.dvListDropdown, style: l, children: [
938
938
  /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownTitle, children: i }),
939
- /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownList, children: /* @__PURE__ */ p.jsx(io, { children: /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownListContainer, children: y.map((R, P) => {
939
+ /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownList, children: /* @__PURE__ */ p.jsx(la, { children: /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownListContainer, children: y.map((R, P) => {
940
940
  const j = e.indexOf(R.value) > -1, A = () => {
941
- let U;
942
- j ? U = new Set(e.filter((w) => w !== R.value)) : U = new Set(n ? [...e, R.value] : [R.value]);
941
+ let N;
942
+ j ? N = new Set(e.filter((w) => w !== R.value)) : N = new Set(n ? [...e, R.value] : [R.value]);
943
943
  const B = [];
944
- o.forEach((w) => {
945
- U.has(w.value) && B.push(w.value);
946
- }), a(B);
944
+ a.forEach((w) => {
945
+ N.has(w.value) && B.push(w.value);
946
+ }), o(B);
947
947
  }, M = R.label.toLocaleLowerCase().indexOf(d);
948
948
  return /* @__PURE__ */ p.jsxs("div", { className: vt.dvListDropdownItemContainer, onClick: A, children: [
949
- /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownItem, style: { background: R.color || $t }, children: d && R.label.toLowerCase().includes(d) ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
949
+ /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownItem, style: { background: R.color || Pt }, children: d && R.label.toLowerCase().includes(d) ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
950
950
  /* @__PURE__ */ p.jsx("span", { children: R.label.substring(0, M) }),
951
951
  /* @__PURE__ */ p.jsx("span", { style: { fontWeight: "bold" }, children: R.label.substring(M, M + d.length) }),
952
952
  /* @__PURE__ */ p.jsx("span", { children: R.label.substring(M + d.length) })
953
953
  ] }) : R.label }),
954
- /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownSelectedIcon, children: j ? /* @__PURE__ */ p.jsx(Ca, {}) : null })
954
+ /* @__PURE__ */ p.jsx("div", { className: vt.dvListDropdownSelectedIcon, children: j ? /* @__PURE__ */ p.jsx(Do, {}) : null })
955
955
  ] }, P);
956
956
  }) }) }, s) }),
957
957
  V && x ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
@@ -960,20 +960,20 @@ const _n = "DataValidationPanel", Ft = {
960
960
  ] }) : null
961
961
  ] });
962
962
  };
963
- function Fi(t) {
964
- var w, v, g, I, _, L;
965
- const { location: e, hideFn: a } = t, { worksheet: n, row: o, col: i, unitId: r, subUnitId: l } = e, s = H(be), [c, u] = q(""), h = H(at), d = H(nt), [C, m] = q(""), f = H(oa), D = H(gt), y = Pt(() => s.ruleChange$.pipe(gn(16)), []);
966
- jt(y);
967
- const V = jo.useContext(), S = ((v = (w = V.current) == null ? void 0 : w.right) != null ? v : 0) - ((I = (g = V.current) == null ? void 0 : g.left) != null ? I : 0);
963
+ function Ui(t) {
964
+ var w, v, g, I, _, $;
965
+ const { location: e, hideFn: o } = t, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = e, s = W(Oe), [c, u] = q(""), h = W(at), d = W(ot), [C, m] = q(""), f = W(ro), D = W(gt), y = $t(() => s.ruleChange$.pipe(_n(16)), []);
966
+ Ft(y);
967
+ const V = Na.useContext(), S = ((v = (w = V.current) == null ? void 0 : w.right) != null ? v : 0) - ((I = (g = V.current) == null ? void 0 : g.left) != null ? I : 0);
968
968
  if (St(() => {
969
- const b = h.onCommandExecuted((k) => {
969
+ const b = h.onCommandExecuted((U) => {
970
970
  var X, K;
971
- if (k.id === Wo.id) {
972
- const G = k.params, { unitId: Z } = G, J = D.getUnit(Z, rt.UNIVER_DOC);
971
+ if (U.id === Ya.id) {
972
+ const G = U.params, { unitId: Z } = G, J = D.getUnit(Z, Q.UNIVER_DOC);
973
973
  if (!J)
974
974
  return;
975
- const T = za.transform.getPlainText((K = (X = J.getSnapshot().body) == null ? void 0 : X.dataStream) != null ? K : "");
976
- u(T);
975
+ const L = Zo.transform.getPlainText((K = (X = J.getSnapshot().body) == null ? void 0 : X.dataStream) != null ? K : "");
976
+ u(L);
977
977
  }
978
978
  });
979
979
  return () => {
@@ -981,37 +981,37 @@ function Fi(t) {
981
981
  };
982
982
  }, [h, D]), !n)
983
983
  return null;
984
- const x = n.getCell(o, i), E = (_ = x == null ? void 0 : x.dataValidation) == null ? void 0 : _.rule, $ = (L = x == null ? void 0 : x.dataValidation) == null ? void 0 : L.validator, R = (E == null ? void 0 : E.renderMode) === dt.CUSTOM || (E == null ? void 0 : E.renderMode) === void 0;
985
- if (!x || !E || !$ || $.id.indexOf(et.LIST) !== 0)
984
+ const x = n.getCell(a, i), O = (_ = x == null ? void 0 : x.dataValidation) == null ? void 0 : _.rule, T = ($ = x == null ? void 0 : x.dataValidation) == null ? void 0 : $.validator, R = (O == null ? void 0 : O.renderMode) === dt.CUSTOM || (O == null ? void 0 : O.renderMode) === void 0;
985
+ if (!x || !O || !T || T.id.indexOf(nt.LIST) !== 0)
986
986
  return;
987
- const P = E.type === et.LIST_MULTIPLE, j = $.getListWithColor(E, r, l), A = C || vo(n.getCellRaw(o, i)), M = Zn(A), U = () => {
988
- h.executeCommand(Ft.id, {
989
- ruleId: E.uid
990
- }), a();
987
+ const P = O.type === nt.LIST_MULTIPLE, j = T.getListWithColor(O, r, l), A = C || Sa(n.getCellRaw(a, i)), M = Jn(A), N = () => {
988
+ h.executeCommand(Nt.id, {
989
+ ruleId: O.uid
990
+ }), o();
991
991
  }, B = j.map((b) => ({
992
992
  label: b.label,
993
993
  value: b.label,
994
994
  color: R || b.color ? b.color : "transparent"
995
995
  }));
996
996
  return /* @__PURE__ */ p.jsx(
997
- ji,
997
+ Ni,
998
998
  {
999
999
  style: { minWidth: S, maxWidth: Math.max(S, 200) },
1000
1000
  title: P ? d.t("dataValidation.listMultiple.dropdown") : d.t("dataValidation.list.dropdown"),
1001
1001
  value: M,
1002
1002
  multiple: P,
1003
1003
  onChange: async (b) => {
1004
- const k = qn(b), X = {
1004
+ const U = Qn(b), X = {
1005
1005
  unitId: r,
1006
1006
  subUnitId: l,
1007
1007
  range: {
1008
1008
  startColumn: i,
1009
1009
  endColumn: i,
1010
- startRow: o,
1011
- endRow: o
1010
+ startRow: a,
1011
+ endRow: a
1012
1012
  },
1013
1013
  value: {
1014
- v: k,
1014
+ v: U,
1015
1015
  p: null,
1016
1016
  f: null,
1017
1017
  si: null
@@ -1019,63 +1019,63 @@ function Fi(t) {
1019
1019
  };
1020
1020
  f.isVisible() && f.changeVisible({
1021
1021
  visible: !1,
1022
- keycode: en.ESC,
1023
- eventType: qe.Keyboard,
1022
+ keycode: on.ESC,
1023
+ eventType: Qe.Keyboard,
1024
1024
  unitId: r
1025
- }), m(k), P || a(), f.isVisible().visible && await h.executeCommand(aa.id, {
1025
+ }), m(U), P || o(), f.isVisible().visible && await h.executeCommand(io.id, {
1026
1026
  visible: !1,
1027
- eventType: qe.Keyboard,
1027
+ eventType: Qe.Keyboard,
1028
1028
  unitId: r,
1029
- keycode: en.ESC
1030
- }), h.executeCommand(un.id, X);
1029
+ keycode: on.ESC
1030
+ }), h.executeCommand(fn.id, X);
1031
1031
  },
1032
1032
  options: B,
1033
- onEdit: U,
1033
+ onEdit: N,
1034
1034
  filter: c,
1035
1035
  location: e
1036
1036
  }
1037
1037
  );
1038
1038
  }
1039
- const Ni = "univer-data-validation-options-button", Ui = "univer-data-validation-options-button-icon", xe = {
1040
- dataValidationOptionsButton: Ni,
1041
- dataValidationOptionsButtonIcon: Ui
1039
+ const ki = "univer-data-validation-options-button", Bi = "univer-data-validation-options-button-icon", je = {
1040
+ dataValidationOptionsButton: ki,
1041
+ dataValidationOptionsButtonIcon: Bi
1042
1042
  };
1043
- function ki(t) {
1043
+ function Hi(t) {
1044
1044
  var c;
1045
- const e = H(nt), a = H(Me), { value: n, onChange: o, extraComponent: i } = t, [r, l] = q(!1), s = i ? a.get(i) : null;
1045
+ const e = W(ot), o = W(Ee), { value: n, onChange: a, extraComponent: i } = t, [r, l] = q(!1), s = i ? o.get(i) : null;
1046
1046
  return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
1047
- /* @__PURE__ */ p.jsxs("div", { className: xe.dataValidationOptionsButton, onClick: () => l(!r), children: [
1047
+ /* @__PURE__ */ p.jsxs("div", { className: je.dataValidationOptionsButton, onClick: () => l(!r), children: [
1048
1048
  e.t("dataValidation.panel.options"),
1049
- r ? /* @__PURE__ */ p.jsx(Ra, { className: xe.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ p.jsx(Da, { className: xe.dataValidationOptionsButtonIcon })
1049
+ r ? /* @__PURE__ */ p.jsx(Mo, { className: je.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ p.jsx(Vo, { className: je.dataValidationOptionsButtonIcon })
1050
1050
  ] }),
1051
1051
  r && /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
1052
- s ? /* @__PURE__ */ p.jsx(s, { value: n, onChange: o }) : null,
1052
+ s ? /* @__PURE__ */ p.jsx(s, { value: n, onChange: a }) : null,
1053
1053
  /* @__PURE__ */ p.jsx(
1054
- tt,
1054
+ et,
1055
1055
  {
1056
1056
  label: e.t("dataValidation.panel.invalid"),
1057
1057
  children: /* @__PURE__ */ p.jsxs(
1058
- dn,
1058
+ un,
1059
1059
  {
1060
- value: `${(c = n.errorStyle) != null ? c : ee.WARNING}`,
1061
- onChange: (u) => o({ ...n, errorStyle: +u }),
1060
+ value: `${(c = n.errorStyle) != null ? c : oe.WARNING}`,
1061
+ onChange: (u) => a({ ...n, errorStyle: +u }),
1062
1062
  children: [
1063
- /* @__PURE__ */ p.jsx(Lt, { value: `${ee.WARNING}`, children: e.t("dataValidation.panel.showWarning") }),
1064
- /* @__PURE__ */ p.jsx(Lt, { value: `${ee.STOP}`, children: e.t("dataValidation.panel.rejectInput") })
1063
+ /* @__PURE__ */ p.jsx(Lt, { value: `${oe.WARNING}`, children: e.t("dataValidation.panel.showWarning") }),
1064
+ /* @__PURE__ */ p.jsx(Lt, { value: `${oe.STOP}`, children: e.t("dataValidation.panel.rejectInput") })
1065
1065
  ]
1066
1066
  }
1067
1067
  )
1068
1068
  }
1069
1069
  ),
1070
1070
  /* @__PURE__ */ p.jsx(
1071
- tt,
1071
+ et,
1072
1072
  {
1073
1073
  label: e.t("dataValidation.panel.messageInfo"),
1074
1074
  children: /* @__PURE__ */ p.jsx(
1075
- Ve,
1075
+ be,
1076
1076
  {
1077
1077
  checked: n.showErrorMessage,
1078
- onChange: () => o({
1078
+ onChange: () => a({
1079
1079
  ...n,
1080
1080
  showErrorMessage: !n.showErrorMessage
1081
1081
  }),
@@ -1084,187 +1084,187 @@ function ki(t) {
1084
1084
  )
1085
1085
  }
1086
1086
  ),
1087
- n.showErrorMessage ? /* @__PURE__ */ p.jsx(tt, { children: /* @__PURE__ */ p.jsx(Tt, { value: n.error, onChange: (u) => o({ ...n, error: u }) }) }) : null
1087
+ n.showErrorMessage ? /* @__PURE__ */ p.jsx(et, { children: /* @__PURE__ */ p.jsx(xt, { value: n.error, onChange: (u) => a({ ...n, error: u }) }) }) : null
1088
1088
  ] })
1089
1089
  ] });
1090
1090
  }
1091
- const Bi = "univer-data-validation-detail", Wi = "univer-data-validation-detail-form-item", Hi = "univer-data-validation-detail-buttons", Yi = "univer-data-validation-detail-button", Ut = {
1092
- dataValidationDetail: Bi,
1093
- dataValidationDetailFormItem: Wi,
1094
- dataValidationDetailButtons: Hi,
1095
- dataValidationDetailButton: Yi
1096
- }, Xi = (t) => qa(
1097
- async (e, a, n, o) => {
1098
- const i = await t.executeCommand(e, a, n);
1099
- o == null || o(i);
1091
+ const Wi = "univer-data-validation-detail", Yi = "univer-data-validation-detail-form-item", Xi = "univer-data-validation-detail-buttons", zi = "univer-data-validation-detail-button", kt = {
1092
+ dataValidationDetail: Wi,
1093
+ dataValidationDetailFormItem: Yi,
1094
+ dataValidationDetailButtons: Xi,
1095
+ dataValidationDetailButton: zi
1096
+ }, Ki = (t) => ta(
1097
+ async (e, o, n, a) => {
1098
+ const i = await t.executeCommand(e, o, n);
1099
+ a == null || a(i);
1100
1100
  },
1101
1101
  1e3
1102
1102
  );
1103
- function zi(t, e, a) {
1104
- var n, o, i, r;
1105
- return e ? ((o = (n = t.getUnit(e)) == null ? void 0 : n.getSheetBySheetName(a)) == null ? void 0 : o.getSheetId()) || "" : ((r = (i = t.getCurrentUnitForType(rt.UNIVER_SHEET)) == null ? void 0 : i.getSheetBySheetName(a)) == null ? void 0 : r.getSheetId()) || "";
1103
+ function Gi(t, e, o) {
1104
+ var n, a, i, r;
1105
+ return e ? ((a = (n = t.getUnit(e)) == null ? void 0 : n.getSheetBySheetName(o)) == null ? void 0 : a.getSheetId()) || "" : ((r = (i = t.getCurrentUnitForType(Q.UNIVER_SHEET)) == null ? void 0 : i.getSheetBySheetName(o)) == null ? void 0 : r.getSheetId()) || "";
1106
1106
  }
1107
- function Ki() {
1107
+ function Zi() {
1108
1108
  var J;
1109
- const [t, e] = q(0), a = H(pt), n = jt(a.activeRule$, a.activeRule), { unitId: o, subUnitId: i, rule: r } = n || {}, l = r.uid, s = H(yt), c = H(gt), u = H(Me), h = H(at), d = H(be), C = H(nt), [m, f] = q(r), D = s.getValidatorItem(m.type), [y, V] = q(!1), S = s.getValidatorsByScope(ko.SHEET), [x, E] = q(() => m.ranges.map((T) => ({ unitId: "", sheetId: "", range: T }))), $ = Pt(() => Xi(h), [h]), [R, P] = q(!1), j = Bt({}), [A, M] = q(!1), U = H(Xn);
1109
+ const [t, e] = q(0), o = W(pt), n = Ft(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = W(Vt), c = W(gt), u = W(Ee), h = W(at), d = W(Oe), C = W(ot), [m, f] = q(r), D = s.getValidatorItem(m.type), [y, V] = q(!1), S = s.getValidatorsByScope(Ha.SHEET), [x, O] = q(() => m.ranges.map((L) => ({ unitId: "", sheetId: "", range: L }))), T = $t(() => Ki(h), [h]), [R, P] = q(!1), j = Ht({}), [A, M] = q(!1), N = W(Kn);
1110
1110
  if (St(() => () => {
1111
- const T = U.getCurrentLastSelection();
1112
- T && U.setSelections([T]);
1113
- }, [U]), St(() => {
1114
- h.onCommandExecuted((T) => {
1115
- (T.id === Ka.id || T.id === Ga.id) && setTimeout(() => {
1116
- const O = d.getRuleById(o, i, l);
1117
- e((W) => W + 1), O && (f(O), E(O.ranges.map((W) => ({ unitId: "", sheetId: "", range: W }))));
1111
+ const L = N.getCurrentLastSelection();
1112
+ L && N.setSelections([L]);
1113
+ }, [N]), St(() => {
1114
+ h.onCommandExecuted((L) => {
1115
+ (L.id === qo.id || L.id === Jo.id) && setTimeout(() => {
1116
+ const E = d.getRuleById(a, i, l);
1117
+ e((H) => H + 1), E && (f(E), O(E.ranges.map((H) => ({ unitId: "", sheetId: "", range: H }))));
1118
1118
  }, 20);
1119
1119
  });
1120
- }, [h, d, l, i, o]), !D)
1120
+ }, [h, d, l, i, a]), !D)
1121
1121
  return null;
1122
- const B = D.operators, w = D.operatorNames, v = m.operator ? Bo.includes(m.operator) : !1, g = () => {
1123
- !m.ranges.length || R || (D.validatorFormula(m, o, i).success ? a.setActiveRule(null) : V(!0));
1124
- }, I = da((T) => {
1125
- const O = T.split(",").map(Xo).map((z) => {
1126
- const ot = z.sheetName;
1127
- if (ot) {
1128
- const Nt = zi(c, z.unitId, ot);
1129
- return { ...z, sheetId: Nt };
1122
+ const B = D.operators, w = D.operatorNames, v = m.operator ? Wa.includes(m.operator) : !1, g = () => {
1123
+ !m.ranges.length || R || (D.validatorFormula(m, a, i).success ? o.setActiveRule(null) : V(!0));
1124
+ }, I = ho((L) => {
1125
+ const E = L.split(",").map(Ka).map((z) => {
1126
+ const it = z.sheetName;
1127
+ if (it) {
1128
+ const Ut = Gi(c, z.unitId, it);
1129
+ return { ...z, sheetId: Ut };
1130
1130
  }
1131
1131
  return {
1132
1132
  ...z,
1133
1133
  sheetId: ""
1134
1134
  };
1135
1135
  });
1136
- if (Za(O, x))
1136
+ if (Qo(E, x))
1137
1137
  return;
1138
- E(O);
1139
- const W = O.filter((z) => (!z.unitId || z.unitId === o) && (!z.sheetId || z.sheetId === i)).map((z) => z.range);
1138
+ O(E);
1139
+ const H = E.filter((z) => (!z.unitId || z.unitId === a) && (!z.sheetId || z.sheetId === i)).map((z) => z.range);
1140
1140
  if (f({
1141
1141
  ...m,
1142
- ranges: W
1143
- }), W.length === 0)
1142
+ ranges: H
1143
+ }), H.length === 0)
1144
1144
  return;
1145
- const N = {
1146
- unitId: o,
1145
+ const F = {
1146
+ unitId: a,
1147
1147
  subUnitId: i,
1148
1148
  ruleId: l,
1149
- ranges: W
1149
+ ranges: H
1150
1150
  };
1151
- $(Jn.id, N);
1152
- }), _ = (T) => {
1153
- if (Dn(T, En(m)))
1151
+ T(to.id, F);
1152
+ }), _ = (L) => {
1153
+ if (yn(L, Pn(m)))
1154
1154
  return;
1155
1155
  f({
1156
1156
  ...m,
1157
- ...T
1157
+ ...L
1158
1158
  });
1159
- const O = {
1160
- unitId: o,
1159
+ const E = {
1160
+ unitId: a,
1161
1161
  subUnitId: i,
1162
1162
  ruleId: l,
1163
- setting: T
1163
+ setting: L
1164
1164
  };
1165
- $(
1166
- yn.id,
1167
- O,
1165
+ T(
1166
+ Mn.id,
1167
+ E,
1168
1168
  void 0
1169
1169
  );
1170
- }, L = async () => {
1171
- await h.executeCommand(Qn.id, {
1170
+ }, $ = async () => {
1171
+ await h.executeCommand(eo.id, {
1172
1172
  ruleId: l,
1173
- unitId: o,
1173
+ unitId: a,
1174
1174
  subUnitId: i
1175
- }), a.setActiveRule(null);
1175
+ }), o.setActiveRule(null);
1176
1176
  }, b = {
1177
1177
  type: m.type,
1178
1178
  operator: m.operator,
1179
1179
  formula1: m.formula1,
1180
1180
  formula2: m.formula2,
1181
1181
  allowBlank: m.allowBlank
1182
- }, k = (T) => {
1183
- const O = s.getValidatorItem(T);
1184
- if (!O)
1182
+ }, U = (L) => {
1183
+ const E = s.getValidatorItem(L);
1184
+ if (!E)
1185
1185
  return;
1186
- const W = O.operators, N = d.getRuleById(o, i, l), z = T === (N == null ? void 0 : N.type) || T.includes("list") && (N != null && N.type.includes("list")) ? {
1187
- ...N,
1188
- type: T
1186
+ const H = E.operators, F = d.getRuleById(a, i, l), z = L === (F == null ? void 0 : F.type) || L.includes("list") && (F != null && F.type.includes("list")) ? {
1187
+ ...F,
1188
+ type: L
1189
1189
  } : {
1190
1190
  ...m,
1191
- type: T,
1192
- operator: W[0],
1191
+ type: L,
1192
+ operator: H[0],
1193
1193
  formula1: void 0,
1194
1194
  formula2: void 0
1195
1195
  };
1196
- f(z), h.executeCommand(yn.id, {
1197
- unitId: o,
1196
+ f(z), h.executeCommand(Mn.id, {
1197
+ unitId: a,
1198
1198
  subUnitId: i,
1199
1199
  ruleId: m.uid,
1200
- setting: En(z)
1200
+ setting: Pn(z)
1201
1201
  });
1202
- }, X = u.get(D.formulaInput), K = Pt(() => x.map((T) => ua(T.range)).join(","), []), G = On(m), Z = (T) => {
1203
- Dn(T, On(m)) || (f({
1202
+ }, X = u.get(D.formulaInput), K = $t(() => x.map((L) => po(L.range)).join(","), []), G = Tn(m), Z = (L) => {
1203
+ yn(L, Tn(m)) || (f({
1204
1204
  ...m,
1205
- ...T
1206
- }), $(
1207
- _o.id,
1205
+ ...L
1206
+ }), T(
1207
+ Ca.id,
1208
1208
  {
1209
- unitId: o,
1209
+ unitId: a,
1210
1210
  subUnitId: i,
1211
1211
  ruleId: l,
1212
- options: T
1212
+ options: L
1213
1213
  }
1214
1214
  ));
1215
1215
  };
1216
- return fn((T) => {
1217
- var W;
1218
- const O = (W = j.current) == null ? void 0 : W.handleOutClick;
1219
- O && O(T, () => M(!1));
1220
- }), /* @__PURE__ */ p.jsxs("div", { className: Ut.dataValidationDetail, children: [
1216
+ return mn((L) => {
1217
+ var H;
1218
+ const E = (H = j.current) == null ? void 0 : H.handleOutClick;
1219
+ E && E(L, () => M(!1));
1220
+ }), /* @__PURE__ */ p.jsxs("div", { className: kt.dataValidationDetail, children: [
1221
1221
  /* @__PURE__ */ p.jsx(
1222
- tt,
1222
+ et,
1223
1223
  {
1224
1224
  label: C.t("dataValidation.panel.range"),
1225
1225
  error: !m.ranges.length || R ? C.t("dataValidation.panel.rangeError") : "",
1226
1226
  children: /* @__PURE__ */ p.jsx(
1227
- zo,
1227
+ Ga,
1228
1228
  {
1229
- unitId: o,
1229
+ unitId: a,
1230
1230
  subUnitId: i,
1231
1231
  initValue: K,
1232
1232
  onChange: I,
1233
1233
  onFocus: () => M(!0),
1234
1234
  isFocus: A,
1235
1235
  actions: j.current,
1236
- onVerify: (T) => P(!T)
1236
+ onVerify: (L) => P(!L)
1237
1237
  }
1238
1238
  )
1239
1239
  }
1240
1240
  ),
1241
- /* @__PURE__ */ p.jsx(tt, { label: C.t("dataValidation.panel.type"), children: /* @__PURE__ */ p.jsx(
1242
- Ze,
1241
+ /* @__PURE__ */ p.jsx(et, { label: C.t("dataValidation.panel.type"), children: /* @__PURE__ */ p.jsx(
1242
+ Je,
1243
1243
  {
1244
- options: S == null ? void 0 : S.map((T) => ({
1245
- label: C.t(T.title),
1246
- value: T.id
1244
+ options: S == null ? void 0 : S.map((L) => ({
1245
+ label: C.t(L.title),
1246
+ value: L.id
1247
1247
  })),
1248
1248
  value: m.type,
1249
- onChange: k,
1250
- className: Ut.dataValidationDetailFormItem
1249
+ onChange: U,
1250
+ className: kt.dataValidationDetailFormItem
1251
1251
  }
1252
1252
  ) }),
1253
- B != null && B.length ? /* @__PURE__ */ p.jsx(tt, { label: C.t("dataValidation.panel.operator"), children: /* @__PURE__ */ p.jsx(
1254
- Ze,
1253
+ B != null && B.length ? /* @__PURE__ */ p.jsx(et, { label: C.t("dataValidation.panel.operator"), children: /* @__PURE__ */ p.jsx(
1254
+ Je,
1255
1255
  {
1256
- options: B.map((T, O) => ({
1257
- value: `${T}`,
1258
- label: w[O]
1256
+ options: B.map((L, E) => ({
1257
+ value: `${L}`,
1258
+ label: w[E]
1259
1259
  })),
1260
1260
  value: `${m.operator}`,
1261
- onChange: (T) => {
1261
+ onChange: (L) => {
1262
1262
  _({
1263
1263
  ...b,
1264
- operator: T
1264
+ operator: L
1265
1265
  });
1266
1266
  },
1267
- className: Ut.dataValidationDetailFormItem
1267
+ className: kt.dataValidationDetailFormItem
1268
1268
  }
1269
1269
  ) }) : null,
1270
1270
  X ? /* @__PURE__ */ p.jsx(
@@ -1275,52 +1275,52 @@ function Ki() {
1275
1275
  formula1: m.formula1,
1276
1276
  formula2: m.formula2
1277
1277
  },
1278
- onChange: (T) => {
1278
+ onChange: (L) => {
1279
1279
  _({
1280
1280
  ...b,
1281
- ...T
1281
+ ...L
1282
1282
  });
1283
1283
  },
1284
1284
  showError: y,
1285
- validResult: D.validatorFormula(m, o, i),
1286
- unitId: o,
1285
+ validResult: D.validatorFormula(m, a, i),
1286
+ unitId: a,
1287
1287
  subUnitId: i,
1288
1288
  ruleId: l
1289
1289
  },
1290
1290
  t + m.type
1291
1291
  ) : null,
1292
- /* @__PURE__ */ p.jsx(tt, { children: /* @__PURE__ */ p.jsx(
1293
- Ve,
1292
+ /* @__PURE__ */ p.jsx(et, { children: /* @__PURE__ */ p.jsx(
1293
+ be,
1294
1294
  {
1295
1295
  checked: (J = m.allowBlank) != null ? J : !0,
1296
1296
  onChange: () => {
1297
- var T;
1297
+ var L;
1298
1298
  return _({
1299
1299
  ...b,
1300
- allowBlank: !((T = m.allowBlank) == null || T)
1300
+ allowBlank: !((L = m.allowBlank) == null || L)
1301
1301
  });
1302
1302
  },
1303
1303
  children: C.t("dataValidation.panel.allowBlank")
1304
1304
  }
1305
1305
  ) }),
1306
- /* @__PURE__ */ p.jsx(ki, { value: G, onChange: Z, extraComponent: D.optionsInput }),
1307
- /* @__PURE__ */ p.jsxs("div", { className: Ut.dataValidationDetailButtons, children: [
1308
- /* @__PURE__ */ p.jsx(xt, { className: Ut.dataValidationDetailButton, onClick: L, children: C.t("dataValidation.panel.removeRule") }),
1309
- /* @__PURE__ */ p.jsx(xt, { className: Ut.dataValidationDetailButton, type: "primary", onClick: g, children: C.t("dataValidation.panel.done") })
1306
+ /* @__PURE__ */ p.jsx(Hi, { value: G, onChange: Z, extraComponent: D.optionsInput }),
1307
+ /* @__PURE__ */ p.jsxs("div", { className: kt.dataValidationDetailButtons, children: [
1308
+ /* @__PURE__ */ p.jsx(At, { className: kt.dataValidationDetailButton, onClick: $, children: C.t("dataValidation.panel.removeRule") }),
1309
+ /* @__PURE__ */ p.jsx(At, { className: kt.dataValidationDetailButton, type: "primary", onClick: g, children: C.t("dataValidation.panel.done") })
1310
1310
  ] })
1311
1311
  ] });
1312
1312
  }
1313
- const Gi = "univer-data-validation-item-container", Zi = "univer-data-validation-item-title", qi = "univer-data-validation-item-content", Ji = "univer-data-validation-item-icon", se = {
1314
- dataValidationItemContainer: Gi,
1315
- dataValidationItemTitle: Zi,
1316
- dataValidationItemContent: qi,
1317
- dataValidationItemIcon: Ji
1318
- }, Qi = (t) => {
1319
- const { rule: e, onClick: a, unitId: n, subUnitId: o, disable: i } = t, r = H(yt), l = H(at), s = H(Mo), c = r.getValidatorItem(e.type), u = Bt(), [h, d] = q(!1), C = (m) => {
1320
- l.executeCommand(Qn.id, {
1313
+ const qi = "univer-data-validation-item-container", Ji = "univer-data-validation-item-title", Qi = "univer-data-validation-item-content", tr = "univer-data-validation-item-icon", le = {
1314
+ dataValidationItemContainer: qi,
1315
+ dataValidationItemTitle: Ji,
1316
+ dataValidationItemContent: Qi,
1317
+ dataValidationItemIcon: tr
1318
+ }, er = (t) => {
1319
+ const { rule: e, onClick: o, unitId: n, subUnitId: a, disable: i } = t, r = W(Vt), l = W(at), s = W(Ea), c = r.getValidatorItem(e.type), u = Ht(), [h, d] = q(!1), C = (m) => {
1320
+ l.executeCommand(eo.id, {
1321
1321
  ruleId: e.uid,
1322
1322
  unitId: n,
1323
- subUnitId: o
1323
+ subUnitId: a
1324
1324
  }), m.stopPropagation();
1325
1325
  };
1326
1326
  return St(() => () => {
@@ -1331,8 +1331,8 @@ const Gi = "univer-data-validation-item-container", Zi = "univer-data-validation
1331
1331
  }, [s]), /* @__PURE__ */ p.jsxs(
1332
1332
  "div",
1333
1333
  {
1334
- className: se.dataValidationItemContainer,
1335
- onClick: a,
1334
+ className: le.dataValidationItemContainer,
1335
+ onClick: o,
1336
1336
  onMouseEnter: () => {
1337
1337
  i || (d(!0), u.current = e.ranges.map((m) => s.addShape({
1338
1338
  range: m,
@@ -1353,28 +1353,28 @@ const Gi = "univer-data-validation-item-container", Zi = "univer-data-validation
1353
1353
  }), u.current = void 0;
1354
1354
  },
1355
1355
  children: [
1356
- /* @__PURE__ */ p.jsx("div", { className: se.dataValidationItemTitle, children: c == null ? void 0 : c.generateRuleName(e) }),
1357
- /* @__PURE__ */ p.jsx("div", { className: se.dataValidationItemContent, children: e.ranges.map((m) => ua(m)).join(",") }),
1358
- h ? /* @__PURE__ */ p.jsx("div", { className: se.dataValidationItemIcon, onClick: C, children: /* @__PURE__ */ p.jsx(vn, {}) }) : null
1356
+ /* @__PURE__ */ p.jsx("div", { className: le.dataValidationItemTitle, children: c == null ? void 0 : c.generateRuleName(e) }),
1357
+ /* @__PURE__ */ p.jsx("div", { className: le.dataValidationItemContent, children: e.ranges.map((m) => po(m)).join(",") }),
1358
+ h ? /* @__PURE__ */ p.jsx("div", { className: le.dataValidationItemIcon, onClick: C, children: /* @__PURE__ */ p.jsx(Sn, {}) }) : null
1359
1359
  ]
1360
1360
  }
1361
1361
  );
1362
- }, tr = "univer-data-validation-list", er = "univer-data-validation-list-buttons", nr = "univer-data-validation-list-button", le = {
1363
- dataValidationList: tr,
1364
- dataValidationListButtons: er,
1365
- dataValidationListButton: nr
1362
+ }, nr = "univer-data-validation-list", or = "univer-data-validation-list-buttons", ar = "univer-data-validation-list-button", de = {
1363
+ dataValidationList: nr,
1364
+ dataValidationListButtons: or,
1365
+ dataValidationListButton: ar
1366
1366
  };
1367
- function ar() {
1368
- const t = H(gt), e = jt(
1369
- () => t.getCurrentTypeOfUnit$(rt.UNIVER_SHEET),
1367
+ function ir() {
1368
+ const t = W(gt), e = Ft(
1369
+ () => t.getCurrentTypeOfUnit$(Q.UNIVER_SHEET),
1370
1370
  void 0,
1371
1371
  void 0,
1372
1372
  []
1373
1373
  );
1374
- return e ? /* @__PURE__ */ p.jsx(or, { workbook: e }) : null;
1374
+ return e ? /* @__PURE__ */ p.jsx(rr, { workbook: e }) : null;
1375
1375
  }
1376
- function or(t) {
1377
- const e = H(Rt), a = H(gt), n = H(at), o = H(At), i = H(pt), r = H(nt), [l, s] = q([]), { workbook: c } = t, u = jt(c.activeSheet$, void 0, !0), h = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1376
+ function rr(t) {
1377
+ const e = W(yt), o = W(gt), n = W(at), a = W(jt), i = W(pt), r = W(ot), [l, s] = q([]), { workbook: c } = t, u = Ft(c.activeSheet$, void 0, !0), h = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1378
1378
  St(() => {
1379
1379
  s(e.getRules(h, d));
1380
1380
  const V = e.ruleChange$.subscribe((S) => {
@@ -1385,30 +1385,30 @@ function or(t) {
1385
1385
  };
1386
1386
  }, [h, d, e]);
1387
1387
  const C = async () => {
1388
- const V = ta(o), S = {
1388
+ const V = no(a), S = {
1389
1389
  unitId: h,
1390
1390
  subUnitId: d,
1391
1391
  rule: V
1392
1392
  };
1393
- await n.executeCommand(hn.id, S), i.setActiveRule({
1393
+ await n.executeCommand(pn.id, S), i.setActiveRule({
1394
1394
  unitId: h,
1395
1395
  subUnitId: d,
1396
1396
  rule: V
1397
1397
  });
1398
1398
  }, m = () => {
1399
- n.executeCommand(So.id, {
1399
+ n.executeCommand(wa.id, {
1400
1400
  unitId: h,
1401
1401
  subUnitId: d
1402
1402
  });
1403
1403
  }, D = ((V) => {
1404
- const S = a.getCurrentUnitForType(rt.UNIVER_SHEET), x = S.getActiveSheet(), E = S.getUnitId(), $ = x.getSheetId();
1405
- return V.map((P) => go(o, E, $, P.ranges) ? { ...P } : { ...P, disable: !0 });
1404
+ const S = o.getCurrentUnitForType(Q.UNIVER_SHEET), x = S.getActiveSheet(), O = S.getUnitId(), T = x.getSheetId();
1405
+ return V.map((P) => _a(a, O, T, P.ranges) ? { ...P } : { ...P, disable: !0 });
1406
1406
  })(l), y = D == null ? void 0 : D.some((V) => V.disable);
1407
- return /* @__PURE__ */ p.jsxs("div", { className: le.dataValidationList, children: [
1407
+ return /* @__PURE__ */ p.jsxs("div", { className: de.dataValidationList, children: [
1408
1408
  D == null ? void 0 : D.map((V) => {
1409
1409
  var S;
1410
1410
  return /* @__PURE__ */ p.jsx(
1411
- Qi,
1411
+ er,
1412
1412
  {
1413
1413
  unitId: h,
1414
1414
  subUnitId: d,
@@ -1425,103 +1425,103 @@ function or(t) {
1425
1425
  V.uid
1426
1426
  );
1427
1427
  }),
1428
- /* @__PURE__ */ p.jsxs("div", { className: le.dataValidationListButtons, children: [
1429
- l.length && !y ? /* @__PURE__ */ p.jsx(xt, { className: le.dataValidationListButton, onClick: m, children: r.t("dataValidation.panel.removeAll") }) : null,
1430
- /* @__PURE__ */ p.jsx(xt, { className: le.dataValidationListButton, type: "primary", onClick: C, children: r.t("dataValidation.panel.add") })
1428
+ /* @__PURE__ */ p.jsxs("div", { className: de.dataValidationListButtons, children: [
1429
+ l.length && !y ? /* @__PURE__ */ p.jsx(At, { className: de.dataValidationListButton, onClick: m, children: r.t("dataValidation.panel.removeAll") }) : null,
1430
+ /* @__PURE__ */ p.jsx(At, { className: de.dataValidationListButton, type: "primary", onClick: C, children: r.t("dataValidation.panel.add") })
1431
1431
  ] })
1432
1432
  ] });
1433
1433
  }
1434
- const ir = () => {
1435
- const t = H(pt), e = jt(t.activeRule$, t.activeRule);
1436
- return e ? /* @__PURE__ */ p.jsx(Ki, {}, e.rule.uid) : /* @__PURE__ */ p.jsx(ar, {});
1437
- }, wn = "data-validation.list.dropdown", Ea = "data-validation.date.dropdown", $e = {
1438
- type: Gt.COMMAND,
1434
+ const sr = () => {
1435
+ const t = W(pt), e = Ft(t.activeRule$, t.activeRule);
1436
+ return e ? /* @__PURE__ */ p.jsx(Zi, {}, e.rule.uid) : /* @__PURE__ */ p.jsx(ir, {});
1437
+ }, Dn = "data-validation.list.dropdown", $o = "data-validation.date.dropdown", $e = {
1438
+ type: qt.COMMAND,
1439
1439
  id: "data-validation.command.addRuleAndOpen",
1440
1440
  handler(t) {
1441
- const e = t.get(gt), a = zn(e);
1442
- if (!a) return !1;
1443
- const { workbook: n, worksheet: o } = a, i = ta(t), r = t.get(at), l = n.getUnitId(), s = o.getSheetId(), c = {
1441
+ const e = t.get(gt), o = Gn(e);
1442
+ if (!o) return !1;
1443
+ const { workbook: n, worksheet: a } = o, i = no(t), r = t.get(at), l = n.getUnitId(), s = a.getSheetId(), c = {
1444
1444
  rule: i,
1445
1445
  unitId: l,
1446
1446
  subUnitId: s
1447
1447
  };
1448
- return r.syncExecuteCommand(hn.id, c) ? (r.syncExecuteCommand(Ft.id, {
1448
+ return r.syncExecuteCommand(pn.id, c) ? (r.syncExecuteCommand(Nt.id, {
1449
1449
  ruleId: i.uid,
1450
1450
  isAdd: !0
1451
1451
  }), !0) : !1;
1452
1452
  }
1453
1453
  };
1454
- var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, lr = (t, e, a, n) => {
1455
- for (var o = n > 1 ? void 0 : n ? sr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
1456
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
1457
- return n && o && rr(e, a, o), o;
1458
- }, te = (t, e) => (a, n) => e(a, n, t);
1459
- const de = "SHEET_DATA_VALIDATION_ALERT";
1460
- let oe = class extends Dt {
1461
- constructor(t, e, a, n, o) {
1462
- super(), this._hoverManagerService = t, this._cellAlertManagerService = e, this._univerInstanceService = a, this._localeService = n, this._zenZoneService = o, this._init();
1454
+ var lr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, cr = (t, e, o, n) => {
1455
+ for (var a = n > 1 ? void 0 : n ? dr(e, o) : e, i = t.length - 1, r; i >= 0; i--)
1456
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
1457
+ return n && a && lr(e, o, a), a;
1458
+ }, ne = (t, e) => (o, n) => e(o, n, t);
1459
+ const ce = "SHEET_DATA_VALIDATION_ALERT";
1460
+ let re = class extends Dt {
1461
+ constructor(t, e, o, n, a) {
1462
+ super(), this._hoverManagerService = t, this._cellAlertManagerService = e, this._univerInstanceService = o, this._localeService = n, this._zenZoneService = a, this._init();
1463
1463
  }
1464
1464
  _init() {
1465
1465
  this._initCellAlertPopup(), this._initZenService();
1466
1466
  }
1467
1467
  _initCellAlertPopup() {
1468
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(gn(100)).subscribe((t) => {
1469
- var e, a;
1468
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(_n(100)).subscribe((t) => {
1469
+ var e, o;
1470
1470
  if (t) {
1471
- const o = this._univerInstanceService.getCurrentUnitForType(rt.UNIVER_SHEET).getActiveSheet();
1472
- if (!o) return;
1473
- const i = o.getCell(t.location.row, t.location.col);
1474
- if (((e = i == null ? void 0 : i.dataValidation) == null ? void 0 : e.validStatus) === ne.INVALID) {
1475
- const r = this._cellAlertManagerService.currentAlert.get(de), l = (a = r == null ? void 0 : r.alert) == null ? void 0 : a.location;
1471
+ const a = this._univerInstanceService.getCurrentUnitForType(Q.UNIVER_SHEET).getActiveSheet();
1472
+ if (!a) return;
1473
+ const i = a.getCell(t.location.row, t.location.col);
1474
+ if (((e = i == null ? void 0 : i.dataValidation) == null ? void 0 : e.validStatus) === ae.INVALID) {
1475
+ const r = this._cellAlertManagerService.currentAlert.get(ce), l = (o = r == null ? void 0 : r.alert) == null ? void 0 : o.location;
1476
1476
  if (l && l.row === t.location.row && l.col === t.location.col && l.subUnitId === t.location.subUnitId && l.unitId === t.location.unitId)
1477
1477
  return;
1478
1478
  const s = i.dataValidation.validator, c = i.dataValidation.rule;
1479
1479
  if (!s)
1480
1480
  return;
1481
1481
  this._cellAlertManagerService.showAlert({
1482
- type: Eo.ERROR,
1482
+ type: Pa.ERROR,
1483
1483
  title: this._localeService.t("dataValidation.error.title"),
1484
- message: s == null ? void 0 : s.getRuleFinalError(c),
1484
+ message: s == null ? void 0 : s.getRuleFinalError(c, t.location),
1485
1485
  location: t.location,
1486
1486
  width: 200,
1487
1487
  height: 74,
1488
- key: de
1488
+ key: ce
1489
1489
  });
1490
1490
  return;
1491
1491
  }
1492
1492
  }
1493
- this._cellAlertManagerService.removeAlert(de);
1493
+ this._cellAlertManagerService.removeAlert(ce);
1494
1494
  }));
1495
1495
  }
1496
1496
  _initZenService() {
1497
1497
  this.disposeWithMe(this._zenZoneService.visible$.subscribe((t) => {
1498
- t && this._cellAlertManagerService.removeAlert(de);
1498
+ t && this._cellAlertManagerService.removeAlert(ce);
1499
1499
  }));
1500
1500
  }
1501
1501
  };
1502
- oe = lr([
1503
- te(0, Y(bo)),
1504
- te(1, Y(Oo)),
1505
- te(2, gt),
1506
- te(3, Y(nt)),
1507
- te(4, la)
1508
- ], oe);
1509
- var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, ur = (t, e, a, n) => {
1510
- for (var o = n > 1 ? void 0 : n ? cr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
1511
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
1512
- return n && o && dr(e, a, o), o;
1513
- }, Ae = (t, e) => (a, n) => e(a, n, t);
1514
- let Ht = class extends Dt {
1515
- constructor(t, e, a) {
1516
- super(), this._autoFillService = t, this._dataValidationModel = e, this._injector = a, this._initAutoFill();
1502
+ re = cr([
1503
+ ne(0, Y(Oa)),
1504
+ ne(1, Y(Ta)),
1505
+ ne(2, gt),
1506
+ ne(3, Y(ot)),
1507
+ ne(4, uo)
1508
+ ], re);
1509
+ var ur = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, fr = (t, e, o, n) => {
1510
+ for (var a = n > 1 ? void 0 : n ? hr(e, o) : e, i = t.length - 1, r; i >= 0; i--)
1511
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
1512
+ return n && a && ur(e, o, a), a;
1513
+ }, Fe = (t, e) => (o, n) => e(o, n, t);
1514
+ let Xt = class extends Dt {
1515
+ constructor(t, e, o) {
1516
+ super(), this._autoFillService = t, this._dataValidationModel = e, this._injector = o, this._initAutoFill();
1517
1517
  }
1518
1518
  // eslint-disable-next-line max-lines-per-function
1519
1519
  _initAutoFill() {
1520
- const t = () => ({ redos: [], undos: [] }), e = (o, i) => {
1521
- const { source: r, target: l, unitId: s, subUnitId: c } = o, u = this._dataValidationModel.getRuleObjectMatrix(s, c).clone(), h = tn([r, l]), [d, C] = h.ranges, { mapFunc: m } = h, f = {
1520
+ const t = () => ({ redos: [], undos: [] }), e = (a, i) => {
1521
+ const { source: r, target: l, unitId: s, subUnitId: c } = a, u = this._dataValidationModel.getRuleObjectMatrix(s, c).clone(), h = nn([r, l]), [d, C] = h.ranges, { mapFunc: m } = h, f = {
1522
1522
  row: d.startRow,
1523
1523
  col: d.startColumn
1524
- }, D = Po(d, C), y = new me(), V = /* @__PURE__ */ new Set();
1524
+ }, D = La(d, C), y = new ve(), V = /* @__PURE__ */ new Set();
1525
1525
  D.forEach((R) => {
1526
1526
  const P = R.repeatStartCell, j = R.relativeRange, A = {
1527
1527
  startRow: f.row,
@@ -1534,127 +1534,127 @@ let Ht = class extends Dt {
1534
1534
  endColumn: P.col,
1535
1535
  endRow: P.row
1536
1536
  };
1537
- Ja.foreach(j, (U, B) => {
1538
- const w = ge.getPositionRange(
1537
+ ea.foreach(j, (N, B) => {
1538
+ const w = _e.getPositionRange(
1539
1539
  {
1540
- startRow: U,
1540
+ startRow: N,
1541
1541
  startColumn: B,
1542
1542
  endColumn: B,
1543
- endRow: U
1543
+ endRow: N
1544
1544
  },
1545
1545
  A
1546
1546
  ), { row: v, col: g } = m(w.startRow, w.startColumn), I = this._dataValidationModel.getRuleIdByLocation(s, c, v, g);
1547
1547
  if (I) {
1548
- const _ = ge.getPositionRange(
1548
+ const _ = _e.getPositionRange(
1549
1549
  {
1550
- startRow: U,
1550
+ startRow: N,
1551
1551
  startColumn: B,
1552
1552
  endColumn: B,
1553
- endRow: U
1553
+ endRow: N
1554
1554
  },
1555
1555
  M
1556
- ), { row: L, col: b } = m(_.startRow, _.startColumn);
1557
- y.setValue(L, b, I), V.add(I);
1556
+ ), { row: $, col: b } = m(_.startRow, _.startColumn);
1557
+ y.setValue($, b, I), V.add(I);
1558
1558
  }
1559
1559
  });
1560
1560
  });
1561
- const S = Array.from(V).map((R) => ({ id: R, ranges: Ke(y, (P) => P === R) }));
1561
+ const S = Array.from(V).map((R) => ({ id: R, ranges: Ze(y, (P) => P === R) }));
1562
1562
  u.addRangeRules(S);
1563
- const x = u.diff(this._dataValidationModel.getRules(s, c)), { redoMutations: E, undoMutations: $ } = Qe(s, c, x, this._injector, "patched", i === Jt.ONLY_FORMAT);
1563
+ const x = u.diff(this._dataValidationModel.getRules(s, c)), { redoMutations: O, undoMutations: T } = en(s, c, x, this._injector, "patched", i === te.ONLY_FORMAT);
1564
1564
  return {
1565
- undos: $,
1566
- redos: E
1565
+ undos: T,
1566
+ redos: O
1567
1567
  };
1568
- }, a = [
1569
- et.CHECKBOX
1568
+ }, o = [
1569
+ nt.CHECKBOX
1570
1570
  ], n = {
1571
- id: ea,
1572
- onBeforeFillData: (o) => {
1573
- const { source: i, unitId: r, subUnitId: l } = o;
1571
+ id: oo,
1572
+ onBeforeFillData: (a) => {
1573
+ const { source: i, unitId: r, subUnitId: l } = a;
1574
1574
  for (const s of i.rows)
1575
1575
  for (const c of i.cols) {
1576
1576
  const u = this._dataValidationModel.getRuleByLocation(r, l, s, c);
1577
- if (u && a.indexOf(u.type) > -1) {
1578
- this._autoFillService.setDisableApplyType(Jt.SERIES, !0);
1577
+ if (u && o.indexOf(u.type) > -1) {
1578
+ this._autoFillService.setDisableApplyType(te.SERIES, !0);
1579
1579
  return;
1580
1580
  }
1581
1581
  }
1582
1582
  },
1583
- onFillData: (o, i, r) => r === Jt.COPY || r === Jt.ONLY_FORMAT || r === Jt.SERIES ? e(o, r) : t(),
1583
+ onFillData: (a, i, r) => r === te.COPY || r === te.ONLY_FORMAT || r === te.SERIES ? e(a, r) : t(),
1584
1584
  onAfterFillData: () => {
1585
1585
  }
1586
1586
  };
1587
1587
  this.disposeWithMe(this._autoFillService.addHook(n));
1588
1588
  }
1589
1589
  };
1590
- Ht = ur([
1591
- Ae(0, $o),
1592
- Ae(1, Y(Rt)),
1593
- Ae(2, Y(At))
1594
- ], Ht);
1595
- var hr = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, pr = (t, e, a, n) => {
1596
- for (var o = n > 1 ? void 0 : n ? fr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
1597
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
1598
- return n && o && hr(e, a, o), o;
1599
- }, je = (t, e) => (a, n) => e(a, n, t);
1600
- let Yt = class extends Dt {
1601
- constructor(e, a, n) {
1590
+ Xt = fr([
1591
+ Fe(0, $a),
1592
+ Fe(1, Y(yt)),
1593
+ Fe(2, Y(jt))
1594
+ ], Xt);
1595
+ var pr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, gr = (t, e, o, n) => {
1596
+ for (var a = n > 1 ? void 0 : n ? mr(e, o) : e, i = t.length - 1, r; i >= 0; i--)
1597
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
1598
+ return n && a && pr(e, o, a), a;
1599
+ }, Ne = (t, e) => (o, n) => e(o, n, t);
1600
+ let zt = class extends Dt {
1601
+ constructor(e, o, n) {
1602
1602
  super();
1603
- F(this, "_copyInfo");
1604
- this._sheetClipboardService = e, this._sheetDataValidationModel = a, this._injector = n, this._initCopyPaste();
1603
+ k(this, "_copyInfo");
1604
+ this._sheetClipboardService = e, this._sheetDataValidationModel = o, this._injector = n, this._initCopyPaste();
1605
1605
  }
1606
1606
  _initCopyPaste() {
1607
1607
  this._sheetClipboardService.addClipboardHook({
1608
- id: ea,
1609
- onBeforeCopy: (e, a, n) => this._collect(e, a, n),
1610
- onPasteCells: (e, a, n, o) => {
1611
- const { copyType: i = Mn.COPY, pasteType: r } = o, { range: l } = e || {}, { range: s, unitId: c, subUnitId: u } = a;
1608
+ id: oo,
1609
+ onBeforeCopy: (e, o, n) => this._collect(e, o, n),
1610
+ onPasteCells: (e, o, n, a) => {
1611
+ const { copyType: i = En.COPY, pasteType: r } = a, { range: l } = e || {}, { range: s, unitId: c, subUnitId: u } = o;
1612
1612
  return this._generateMutations(s, { copyType: i, pasteType: r, copyRange: l, unitId: c, subUnitId: u });
1613
1613
  }
1614
1614
  });
1615
1615
  }
1616
- _collect(e, a, n) {
1617
- const o = new me();
1616
+ _collect(e, o, n) {
1617
+ const a = new ve();
1618
1618
  this._copyInfo = {
1619
1619
  unitId: e,
1620
- subUnitId: a,
1621
- matrix: o
1620
+ subUnitId: o,
1621
+ matrix: a
1622
1622
  };
1623
- const i = this._injector.invoke((s) => Lo(n, s, e, a));
1623
+ const i = this._injector.invoke((s) => xa(n, s, e, o));
1624
1624
  if (!i)
1625
1625
  return;
1626
1626
  const { rows: r, cols: l } = i;
1627
1627
  r.forEach((s, c) => {
1628
1628
  l.forEach((u, h) => {
1629
- const d = this._sheetDataValidationModel.getRuleIdByLocation(e, a, s, u);
1630
- o.setValue(c, h, d != null ? d : "");
1629
+ const d = this._sheetDataValidationModel.getRuleIdByLocation(e, o, s, u);
1630
+ a.setValue(c, h, d != null ? d : "");
1631
1631
  });
1632
1632
  });
1633
1633
  }
1634
1634
  // eslint-disable-next-line max-lines-per-function
1635
- _generateMutations(e, a) {
1635
+ _generateMutations(e, o) {
1636
1636
  if (!this._copyInfo)
1637
1637
  return { redos: [], undos: [] };
1638
- if (a.copyType === Mn.CUT)
1638
+ if (o.copyType === En.CUT)
1639
1639
  return this._copyInfo = null, { redos: [], undos: [] };
1640
- if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !a.copyRange)
1640
+ if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !o.copyRange)
1641
1641
  return { redos: [], undos: [] };
1642
1642
  if ([
1643
- re.SPECIAL_PASTE_COL_WIDTH,
1644
- re.SPECIAL_PASTE_VALUE,
1645
- re.SPECIAL_PASTE_FORMAT,
1646
- re.SPECIAL_PASTE_FORMULA
1643
+ se.SPECIAL_PASTE_COL_WIDTH,
1644
+ se.SPECIAL_PASTE_VALUE,
1645
+ se.SPECIAL_PASTE_FORMAT,
1646
+ se.SPECIAL_PASTE_FORMULA
1647
1647
  ].includes(
1648
- a.pasteType
1648
+ o.pasteType
1649
1649
  ))
1650
1650
  return { redos: [], undos: [] };
1651
- const { unitId: n, subUnitId: o } = this._copyInfo;
1652
- if (a.unitId !== n || o !== a.subUnitId) {
1653
- const i = this._sheetDataValidationModel.getRuleObjectMatrix(a.unitId, a.subUnitId).clone(), r = new me(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = tn([a.copyRange, e]), h = bn(s, c, !0), d = /* @__PURE__ */ new Map();
1651
+ const { unitId: n, subUnitId: a } = this._copyInfo;
1652
+ if (o.unitId !== n || a !== o.subUnitId) {
1653
+ const i = this._sheetDataValidationModel.getRuleObjectMatrix(o.unitId, o.subUnitId).clone(), r = new ve(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = nn([o.copyRange, e]), h = On(s, c, !0), d = /* @__PURE__ */ new Map();
1654
1654
  h.forEach(({ startRange: D }) => {
1655
1655
  var y;
1656
1656
  (y = this._copyInfo) == null || y.matrix.forValue((V, S, x) => {
1657
- const E = ge.getPositionRange(
1657
+ const O = _e.getPositionRange(
1658
1658
  {
1659
1659
  startRow: V,
1660
1660
  endRow: V,
@@ -1662,18 +1662,18 @@ let Yt = class extends Dt {
1662
1662
  endColumn: S
1663
1663
  },
1664
1664
  D
1665
- ), $ = `${o}-${x}`, R = this._sheetDataValidationModel.getRuleById(n, o, x);
1666
- !this._sheetDataValidationModel.getRuleById(a.unitId, a.subUnitId, $) && R && d.set($, { ...R, uid: $ });
1667
- const { row: P, col: j } = u(E.startRow, E.startColumn);
1668
- l.add($), r.setValue(P, j, $);
1665
+ ), T = `${a}-${x}`, R = this._sheetDataValidationModel.getRuleById(n, a, x);
1666
+ !this._sheetDataValidationModel.getRuleById(o.unitId, o.subUnitId, T) && R && d.set(T, { ...R, uid: T });
1667
+ const { row: P, col: j } = u(O.startRow, O.startColumn);
1668
+ l.add(T), r.setValue(P, j, T);
1669
1669
  });
1670
1670
  });
1671
- const C = Array.from(l).map((D) => ({ id: D, ranges: Ke(r, (y) => y === D) }));
1671
+ const C = Array.from(l).map((D) => ({ id: D, ranges: Ze(r, (y) => y === D) }));
1672
1672
  i.addRangeRules(C);
1673
- const { redoMutations: m, undoMutations: f } = Qe(
1674
- a.unitId,
1675
- a.subUnitId,
1676
- i.diffWithAddition(this._sheetDataValidationModel.getRules(a.unitId, a.subUnitId), d.values()),
1673
+ const { redoMutations: m, undoMutations: f } = en(
1674
+ o.unitId,
1675
+ o.subUnitId,
1676
+ i.diffWithAddition(this._sheetDataValidationModel.getRules(o.unitId, o.subUnitId), d.values()),
1677
1677
  this._injector,
1678
1678
  "patched",
1679
1679
  !1
@@ -1683,11 +1683,11 @@ let Yt = class extends Dt {
1683
1683
  undos: f
1684
1684
  };
1685
1685
  } else {
1686
- const i = this._sheetDataValidationModel.getRuleObjectMatrix(n, o).clone(), r = new me(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = tn([a.copyRange, e]);
1687
- bn(s, c, !0).forEach(({ startRange: f }) => {
1686
+ const i = this._sheetDataValidationModel.getRuleObjectMatrix(n, a).clone(), r = new ve(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = nn([o.copyRange, e]);
1687
+ On(s, c, !0).forEach(({ startRange: f }) => {
1688
1688
  var D;
1689
1689
  (D = this._copyInfo) == null || D.matrix.forValue((y, V, S) => {
1690
- const x = ge.getPositionRange(
1690
+ const x = _e.getPositionRange(
1691
1691
  {
1692
1692
  startRow: y,
1693
1693
  endRow: y,
@@ -1695,16 +1695,16 @@ let Yt = class extends Dt {
1695
1695
  endColumn: V
1696
1696
  },
1697
1697
  f
1698
- ), { row: E, col: $ } = u(x.startRow, x.startColumn);
1699
- r.setValue(E, $, S), l.add(S);
1698
+ ), { row: O, col: T } = u(x.startRow, x.startColumn);
1699
+ r.setValue(O, T, S), l.add(S);
1700
1700
  });
1701
1701
  });
1702
- const d = Array.from(l).map((f) => ({ id: f, ranges: Ke(r, (D) => D === f) }));
1702
+ const d = Array.from(l).map((f) => ({ id: f, ranges: Ze(r, (D) => D === f) }));
1703
1703
  i.addRangeRules(d);
1704
- const { redoMutations: C, undoMutations: m } = Qe(
1704
+ const { redoMutations: C, undoMutations: m } = en(
1705
1705
  n,
1706
- o,
1707
- i.diff(this._sheetDataValidationModel.getRules(n, o)),
1706
+ a,
1707
+ i.diff(this._sheetDataValidationModel.getRules(n, a)),
1708
1708
  this._injector,
1709
1709
  "patched",
1710
1710
  !1
@@ -1716,113 +1716,113 @@ let Yt = class extends Dt {
1716
1716
  }
1717
1717
  }
1718
1718
  };
1719
- Yt = pr([
1720
- je(0, To),
1721
- je(1, Y(Rt)),
1722
- je(2, Y(At))
1723
- ], Yt);
1724
- var mr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, vr = (t, e, a, n) => {
1725
- for (var o = n > 1 ? void 0 : n ? gr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
1726
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
1727
- return n && o && mr(e, a, o), o;
1728
- }, Fe = (t, e) => (a, n) => e(a, n, t);
1729
- let Xt = class extends Dt {
1730
- constructor(t, e, a) {
1731
- super(), this._localeService = t, this._commandService = e, this._sheetPermissionInterceptorBaseController = a, this._commandExecutedListener();
1719
+ zt = gr([
1720
+ Ne(0, Aa),
1721
+ Ne(1, Y(yt)),
1722
+ Ne(2, Y(jt))
1723
+ ], zt);
1724
+ var vr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Sr = (t, e, o, n) => {
1725
+ for (var a = n > 1 ? void 0 : n ? _r(e, o) : e, i = t.length - 1, r; i >= 0; i--)
1726
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
1727
+ return n && a && vr(e, o, a), a;
1728
+ }, Ue = (t, e) => (o, n) => e(o, n, t);
1729
+ let Kt = class extends Dt {
1730
+ constructor(t, e, o) {
1731
+ super(), this._localeService = t, this._commandService = e, this._sheetPermissionInterceptorBaseController = o, this._commandExecutedListener();
1732
1732
  }
1733
1733
  _commandExecutedListener() {
1734
1734
  this.disposeWithMe(
1735
1735
  this._commandService.beforeCommandExecuted((t) => {
1736
- t.id === hn.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1737
- workbookTypes: [ve],
1738
- rangeTypes: [_e],
1739
- worksheetTypes: [Se, Je]
1740
- }) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr"))), t.id === Jn.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1741
- workbookTypes: [ve],
1742
- rangeTypes: [_e],
1743
- worksheetTypes: [Se, Je]
1736
+ t.id === pn.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1737
+ workbookTypes: [Se],
1738
+ rangeTypes: [Ce],
1739
+ worksheetTypes: [we, tn]
1740
+ }) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr"))), t.id === to.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1741
+ workbookTypes: [Se],
1742
+ rangeTypes: [Ce],
1743
+ worksheetTypes: [we, tn]
1744
1744
  }, t.params.ranges) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr")));
1745
1745
  })
1746
1746
  );
1747
1747
  }
1748
1748
  };
1749
- Xt = vr([
1750
- Fe(0, Y(nt)),
1751
- Fe(1, at),
1752
- Fe(2, Y(ia))
1753
- ], Xt);
1754
- const $a = "data-validation-single", Pa = "sheet.menu.data-validation";
1755
- function _r(t) {
1749
+ Kt = Sr([
1750
+ Ue(0, Y(ot)),
1751
+ Ue(1, at),
1752
+ Ue(2, Y(so))
1753
+ ], Kt);
1754
+ const Lo = "data-validation-single", xo = "sheet.menu.data-validation";
1755
+ function Cr(t) {
1756
1756
  return {
1757
- id: Pa,
1758
- type: pn.SUBITEMS,
1759
- icon: $a,
1757
+ id: xo,
1758
+ type: gn.SUBITEMS,
1759
+ icon: Lo,
1760
1760
  tooltip: "dataValidation.title",
1761
- hidden$: Fo(t, rt.UNIVER_SHEET),
1762
- disabled$: xo(t, { workbookTypes: [ve], worksheetTypes: [Je, Se], rangeTypes: [_e] })
1761
+ hidden$: Ua(t, Q.UNIVER_SHEET),
1762
+ disabled$: ja(t, { workbookTypes: [Se], worksheetTypes: [tn, we], rangeTypes: [Ce] })
1763
1763
  };
1764
1764
  }
1765
- function Sr(t) {
1765
+ function wr(t) {
1766
1766
  return {
1767
- id: Ft.id,
1767
+ id: Nt.id,
1768
1768
  title: "dataValidation.panel.title",
1769
- type: pn.BUTTON
1769
+ type: gn.BUTTON
1770
1770
  };
1771
1771
  }
1772
- function Cr(t) {
1772
+ function Ir(t) {
1773
1773
  return {
1774
1774
  id: $e.id,
1775
1775
  title: "dataValidation.panel.add",
1776
- type: pn.BUTTON
1776
+ type: gn.BUTTON
1777
1777
  };
1778
1778
  }
1779
- const wr = {
1780
- [No.FORMULAS_INSERT]: {
1781
- [Pa]: {
1779
+ const Dr = {
1780
+ [ka.FORMULAS_INSERT]: {
1781
+ [xo]: {
1782
1782
  order: 9,
1783
- menuItemFactory: _r,
1784
- [Ft.id]: {
1783
+ menuItemFactory: Cr,
1784
+ [Nt.id]: {
1785
1785
  order: 0,
1786
- menuItemFactory: Sr
1786
+ menuItemFactory: wr
1787
1787
  },
1788
1788
  [$e.id]: {
1789
1789
  order: 1,
1790
- menuItemFactory: Cr
1790
+ menuItemFactory: Ir
1791
1791
  }
1792
1792
  }
1793
1793
  }
1794
1794
  };
1795
- var Ir = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, La = (t, e, a, n) => {
1796
- for (var o = n > 1 ? void 0 : n ? Dr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
1797
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
1798
- return n && o && Ir(e, a, o), o;
1799
- }, Q = (t, e) => (a, n) => e(a, n, t);
1800
- const Ta = {
1795
+ var Rr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, Ao = (t, e, o, n) => {
1796
+ for (var a = n > 1 ? void 0 : n ? yr(e, o) : e, i = t.length - 1, r; i >= 0; i--)
1797
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
1798
+ return n && a && Rr(e, o, a), a;
1799
+ }, tt = (t, e) => (o, n) => e(o, n, t);
1800
+ const jo = {
1801
1801
  tr: {
1802
1802
  size: 6,
1803
1803
  color: "#fe4b4b"
1804
1804
  }
1805
1805
  };
1806
- let zt = class extends ln {
1807
- constructor(t, e, a, n, o, i, r, l, s, c, u) {
1808
- super(), this._commandService = t, this._menuManagerService = e, this._renderManagerService = a, this._univerInstanceService = n, this._autoHeightController = o, 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();
1806
+ let Gt = class extends cn {
1807
+ constructor(t, e, o, n, a, i, r, l, s, c, u) {
1808
+ super(), this._commandService = t, this._menuManagerService = e, 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();
1809
1809
  }
1810
1810
  _initMenu() {
1811
- this._menuManagerService.mergeMenu(wr);
1811
+ this._menuManagerService.mergeMenu(Dr);
1812
1812
  }
1813
1813
  _initDropdown() {
1814
1814
  this._editorBridgeService && this.disposeWithMe(this._editorBridgeService.visible$.subscribe((t) => {
1815
- var a;
1815
+ var o;
1816
1816
  if (!t.visible) {
1817
- ((a = this._dropdownManagerService.activeDropdown) == null ? void 0 : a.trigger) === "editor-bridge" && this._dropdownManagerService.hideDropdown();
1817
+ ((o = this._dropdownManagerService.activeDropdown) == null ? void 0 : o.trigger) === "editor-bridge" && this._dropdownManagerService.hideDropdown();
1818
1818
  return;
1819
1819
  }
1820
1820
  const e = this._editorBridgeService.getEditCellState();
1821
1821
  if (e) {
1822
- const { unitId: n, sheetId: o, row: i, column: r } = e, l = this._univerInstanceService.getUniverSheetInstance(n);
1822
+ const { unitId: n, sheetId: a, row: i, column: r } = e, l = this._univerInstanceService.getUniverSheetInstance(n);
1823
1823
  if (!l)
1824
1824
  return;
1825
- const s = this._sheetDataValidationModel.getRuleByLocation(n, o, i, r);
1825
+ const s = this._sheetDataValidationModel.getRuleByLocation(n, a, i, r);
1826
1826
  if (!s)
1827
1827
  return;
1828
1828
  const c = this._dataValidatorRegistryService.getValidatorItem(s.type);
@@ -1831,13 +1831,13 @@ let zt = class extends ln {
1831
1831
  const u = l.getActiveSheet();
1832
1832
  if (!u) return;
1833
1833
  const h = this._dropdownManagerService.activeDropdown, d = h == null ? void 0 : h.location;
1834
- if (d && d.unitId === n && d.subUnitId === o && d.row === i && d.col === r)
1834
+ if (d && d.unitId === n && d.subUnitId === a && d.row === i && d.col === r)
1835
1835
  return;
1836
1836
  this._dropdownManagerService.showDropdown(
1837
1837
  {
1838
1838
  location: {
1839
1839
  unitId: n,
1840
- subUnitId: o,
1840
+ subUnitId: a,
1841
1841
  row: i,
1842
1842
  col: r,
1843
1843
  workbook: l,
@@ -1857,21 +1857,21 @@ let zt = class extends ln {
1857
1857
  _initViewModelIntercept() {
1858
1858
  this.disposeWithMe(
1859
1859
  this._sheetInterceptorService.intercept(
1860
- Kn.CELL_CONTENT,
1860
+ Zn.CELL_CONTENT,
1861
1861
  {
1862
- effect: Bn.Style,
1862
+ effect: Wn.Style,
1863
1863
  // must be after numfmt
1864
- priority: Gn.DATA_VALIDATION,
1864
+ priority: qn.DATA_VALIDATION,
1865
1865
  // eslint-disable-next-line max-lines-per-function, complexity
1866
- handler: (t, e, a) => {
1867
- var y, V, S, x, E, $;
1868
- const { row: n, col: o, unitId: i, subUnitId: r, workbook: l, worksheet: s } = e, c = this._sheetDataValidationModel.getRuleIdByLocation(i, r, n, o);
1866
+ handler: (t, e, o) => {
1867
+ var y, V, S, x, O, T;
1868
+ const { row: n, col: a, unitId: i, subUnitId: r, workbook: l, worksheet: s } = e, c = this._sheetDataValidationModel.getRuleIdByLocation(i, r, n, a);
1869
1869
  if (!c)
1870
- return a(t);
1870
+ return o(t);
1871
1871
  const u = this._sheetDataValidationModel.getRuleById(i, r, c);
1872
1872
  if (!u)
1873
- return a(t);
1874
- const h = (V = (y = this._dataValidationCacheService.getValue(i, r, n, o)) == null ? void 0 : y.status) != null ? V : ne.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), C = e.rawData;
1873
+ return o(t);
1874
+ const h = (V = (y = this._dataValidationCacheService.getValue(i, r, n, a)) == null ? void 0 : y.status) != null ? V : ae.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), C = e.rawData;
1875
1875
  let m;
1876
1876
  const f = {
1877
1877
  get value() {
@@ -1884,7 +1884,7 @@ let zt = class extends ln {
1884
1884
  return `${(R = f.value) != null ? R : ""}`;
1885
1885
  }
1886
1886
  };
1887
- return a({
1887
+ return o({
1888
1888
  ...t,
1889
1889
  dataValidation: {
1890
1890
  ruleId: c,
@@ -1894,7 +1894,7 @@ let zt = class extends ln {
1894
1894
  },
1895
1895
  markers: {
1896
1896
  ...t == null ? void 0 : t.markers,
1897
- ...h === ne.INVALID ? Ta : null
1897
+ ...h === ae.INVALID ? jo : null
1898
1898
  },
1899
1899
  customRender: [
1900
1900
  ...(S = t == null ? void 0 : t.customRender) != null ? S : [],
@@ -1902,7 +1902,7 @@ let zt = class extends ln {
1902
1902
  ],
1903
1903
  fontRenderExtension: {
1904
1904
  ...t == null ? void 0 : t.fontRenderExtension,
1905
- isSkip: ((x = t == null ? void 0 : t.fontRenderExtension) == null ? void 0 : x.isSkip) || ((E = d == null ? void 0 : d.skipDefaultFontRender) == null ? void 0 : E.call(d, u, f.value, e))
1905
+ isSkip: ((x = t == null ? void 0 : t.fontRenderExtension) == null ? void 0 : x.isSkip) || ((O = d == null ? void 0 : d.skipDefaultFontRender) == null ? void 0 : O.call(d, u, f.value, e))
1906
1906
  },
1907
1907
  interceptorStyle: {
1908
1908
  ...t == null ? void 0 : t.interceptorStyle,
@@ -1911,14 +1911,14 @@ let zt = class extends ln {
1911
1911
  const R = l.getStyles();
1912
1912
  return (typeof (t == null ? void 0 : t.s) == "string" ? R.get(t == null ? void 0 : t.s) : t == null ? void 0 : t.s) || {};
1913
1913
  }
1914
- }, n, o)
1914
+ }, n, a)
1915
1915
  },
1916
1916
  interceptorAutoHeight: () => {
1917
- var A, M, U, B, w, v;
1918
- const R = (M = (A = this._renderManagerService.getRenderById(i)) == null ? void 0 : A.with(Ce).getWorksheetSkeleton(r)) == null ? void 0 : M.skeleton;
1917
+ var A, M, N, B, w, v;
1918
+ const R = (M = (A = this._renderManagerService.getRenderById(i)) == null ? void 0 : A.with(Ie).getWorksheetSkeleton(r)) == null ? void 0 : M.skeleton;
1919
1919
  if (!R)
1920
1920
  return;
1921
- const P = R.worksheet.getMergedCell(n, o), j = {
1921
+ const P = R.worksheet.getMergedCell(n, a), j = {
1922
1922
  data: {
1923
1923
  ...t,
1924
1924
  dataValidation: {
@@ -1929,22 +1929,22 @@ let zt = class extends ln {
1929
1929
  }
1930
1930
  },
1931
1931
  style: R.getsStyles().getStyleByCell(t),
1932
- primaryWithCoord: R.getCellByIndex((U = P == null ? void 0 : P.startRow) != null ? U : n, (B = P == null ? void 0 : P.startColumn) != null ? B : o),
1932
+ primaryWithCoord: R.getCellByIndex((N = P == null ? void 0 : P.startRow) != null ? N : n, (B = P == null ? void 0 : P.startColumn) != null ? B : a),
1933
1933
  unitId: i,
1934
1934
  subUnitId: r,
1935
1935
  row: n,
1936
- col: o,
1936
+ col: a,
1937
1937
  workbook: l,
1938
1938
  worksheet: s
1939
1939
  };
1940
1940
  return (v = (w = d == null ? void 0 : d.canvasRender) == null ? void 0 : w.calcCellAutoHeight) == null ? void 0 : v.call(w, j);
1941
1941
  },
1942
1942
  interceptorAutoWidth: () => {
1943
- var A, M, U, B, w, v;
1944
- const R = (M = (A = this._renderManagerService.getRenderById(i)) == null ? void 0 : A.with(Ce).getWorksheetSkeleton(r)) == null ? void 0 : M.skeleton;
1943
+ var A, M, N, B, w, v;
1944
+ const R = (M = (A = this._renderManagerService.getRenderById(i)) == null ? void 0 : A.with(Ie).getWorksheetSkeleton(r)) == null ? void 0 : M.skeleton;
1945
1945
  if (!R)
1946
1946
  return;
1947
- const P = R.worksheet.getMergedCell(n, o), j = {
1947
+ const P = R.worksheet.getMergedCell(n, a), j = {
1948
1948
  data: {
1949
1949
  ...t,
1950
1950
  dataValidation: {
@@ -1955,17 +1955,17 @@ let zt = class extends ln {
1955
1955
  }
1956
1956
  },
1957
1957
  style: R.getsStyles().getStyleByCell(t),
1958
- primaryWithCoord: R.getCellByIndex((U = P == null ? void 0 : P.startRow) != null ? U : n, (B = P == null ? void 0 : P.startColumn) != null ? B : o),
1958
+ primaryWithCoord: R.getCellByIndex((N = P == null ? void 0 : P.startRow) != null ? N : n, (B = P == null ? void 0 : P.startColumn) != null ? B : a),
1959
1959
  unitId: i,
1960
1960
  subUnitId: r,
1961
1961
  row: n,
1962
- col: o,
1962
+ col: a,
1963
1963
  workbook: l,
1964
1964
  worksheet: s
1965
1965
  };
1966
1966
  return (v = (w = d == null ? void 0 : d.canvasRender) == null ? void 0 : w.calcCellAutoWidth) == null ? void 0 : v.call(w, j);
1967
1967
  },
1968
- coverable: (($ = t == null ? void 0 : t.coverable) != null ? $ : !0) && !(u.type === et.LIST || u.type === et.LIST_MULTIPLE)
1968
+ coverable: ((T = t == null ? void 0 : t.coverable) != null ? T : !0) && !(u.type === nt.LIST || u.type === nt.LIST_MULTIPLE)
1969
1969
  });
1970
1970
  }
1971
1971
  }
@@ -1976,57 +1976,57 @@ let zt = class extends ln {
1976
1976
  this._sheetDataValidationModel.ruleChange$.pipe(
1977
1977
  // patched data-validation change don't need to re-calc row height
1978
1978
  // re-calc of row height will be triggered precisely by the origin command
1979
- mn((t) => t.source === "command"),
1980
- ca(16)
1979
+ vn((t) => t.source === "command"),
1980
+ fo(16)
1981
1981
  ).subscribe((t) => {
1982
1982
  const e = [];
1983
- if (t.forEach((a) => {
1983
+ if (t.forEach((o) => {
1984
1984
  var n;
1985
- (n = a.rule) != null && n.ranges && e.push(...a.rule.ranges);
1985
+ (n = o.rule) != null && n.ranges && e.push(...o.rule.ranges);
1986
1986
  }), e.length) {
1987
- const a = this._autoHeightController.getUndoRedoParamsOfAutoHeight(e);
1988
- Wn(a.redos, this._commandService);
1987
+ const o = this._autoHeightController.getUndoRedoParamsOfAutoHeight(e);
1988
+ Yn(o.redos, this._commandService);
1989
1989
  }
1990
1990
  });
1991
1991
  }
1992
1992
  };
1993
- zt = La([
1994
- Q(0, at),
1995
- Q(1, Uo),
1996
- Q(2, ie),
1997
- Q(3, gt),
1998
- Q(4, Y(ra)),
1999
- Q(5, Y(Ct)),
2000
- Q(6, Y(Rt)),
2001
- Q(7, Y(yt)),
2002
- Q(8, Y(cn)),
2003
- Q(9, Y(na)),
2004
- Q(10, Qa(oa))
2005
- ], zt);
2006
- let Tn = class extends ln {
2007
- constructor(t, e, a, n, o, i, r) {
2008
- super(), this._commandService = t, this._renderManagerService = e, this._autoHeightController = a, this._dataValidatorRegistryService = n, this._sheetInterceptorService = o, this._sheetDataValidationModel = i, this._dataValidationCacheService = r, this._initViewModelIntercept(), this._initAutoHeight();
1993
+ Gt = Ao([
1994
+ tt(0, at),
1995
+ tt(1, Ba),
1996
+ tt(2, Rt),
1997
+ tt(3, gt),
1998
+ tt(4, Y(lo)),
1999
+ tt(5, Y(Ct)),
2000
+ tt(6, Y(yt)),
2001
+ tt(7, Y(Vt)),
2002
+ tt(8, Y(hn)),
2003
+ tt(9, Y(ao)),
2004
+ tt(10, na(ro))
2005
+ ], Gt);
2006
+ let An = class extends cn {
2007
+ constructor(t, e, o, n, a, i, r) {
2008
+ super(), this._commandService = t, this._renderManagerService = e, this._autoHeightController = o, this._dataValidatorRegistryService = n, this._sheetInterceptorService = a, this._sheetDataValidationModel = i, this._dataValidationCacheService = r, this._initViewModelIntercept(), this._initAutoHeight();
2009
2009
  }
2010
2010
  // eslint-disable-next-line max-lines-per-function
2011
2011
  _initViewModelIntercept() {
2012
2012
  this.disposeWithMe(
2013
2013
  this._sheetInterceptorService.intercept(
2014
- Kn.CELL_CONTENT,
2014
+ Zn.CELL_CONTENT,
2015
2015
  {
2016
- effect: Bn.Style,
2016
+ effect: Wn.Style,
2017
2017
  // must be after numfmt
2018
- priority: Gn.DATA_VALIDATION,
2018
+ priority: qn.DATA_VALIDATION,
2019
2019
  // eslint-disable-next-line complexity
2020
- handler: (t, e, a) => {
2021
- var D, y, V, S, x, E;
2022
- const { row: n, col: o, unitId: i, subUnitId: r, workbook: l, worksheet: s } = e, c = this._sheetDataValidationModel.getRuleIdByLocation(i, r, n, o);
2020
+ handler: (t, e, o) => {
2021
+ var D, y, V, S, x, O;
2022
+ const { row: n, col: a, unitId: i, subUnitId: r, workbook: l, worksheet: s } = e, c = this._sheetDataValidationModel.getRuleIdByLocation(i, r, n, a);
2023
2023
  if (!c)
2024
- return a(t);
2024
+ return o(t);
2025
2025
  const u = this._sheetDataValidationModel.getRuleById(i, r, c);
2026
2026
  if (!u)
2027
- return a(t);
2028
- const h = (y = (D = this._dataValidationCacheService.getValue(i, r, n, o)) == null ? void 0 : D.status) != null ? y : ne.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), C = s.getCellRaw(n, o), m = st(C), f = `${m != null ? m : ""}`;
2029
- return a({
2027
+ return o(t);
2028
+ const h = (y = (D = this._dataValidationCacheService.getValue(i, r, n, a)) == null ? void 0 : D.status) != null ? y : ae.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), C = s.getCellRaw(n, a), m = st(C), f = `${m != null ? m : ""}`;
2029
+ return o({
2030
2030
  ...t,
2031
2031
  dataValidation: {
2032
2032
  ruleId: c,
@@ -2036,7 +2036,7 @@ let Tn = class extends ln {
2036
2036
  },
2037
2037
  markers: {
2038
2038
  ...t == null ? void 0 : t.markers,
2039
- ...h === ne.INVALID ? Ta : null
2039
+ ...h === ae.INVALID ? jo : null
2040
2040
  },
2041
2041
  customRender: [
2042
2042
  ...(V = t == null ? void 0 : t.customRender) != null ? V : [],
@@ -2050,17 +2050,17 @@ let Tn = class extends ln {
2050
2050
  ...t == null ? void 0 : t.interceptorStyle,
2051
2051
  ...d == null ? void 0 : d.getExtraStyle(u, f, {
2052
2052
  get style() {
2053
- const $ = l.getStyles();
2054
- return (typeof (t == null ? void 0 : t.s) == "string" ? $.get(t == null ? void 0 : t.s) : t == null ? void 0 : t.s) || {};
2053
+ const T = l.getStyles();
2054
+ return (typeof (t == null ? void 0 : t.s) == "string" ? T.get(t == null ? void 0 : t.s) : t == null ? void 0 : t.s) || {};
2055
2055
  }
2056
- }, n, o)
2056
+ }, n, a)
2057
2057
  },
2058
2058
  interceptorAutoHeight: () => {
2059
- var j, A, M, U, B, w;
2060
- const $ = (A = (j = this._renderManagerService.getRenderById(i)) == null ? void 0 : j.with(Ce).getWorksheetSkeleton(r)) == null ? void 0 : A.skeleton;
2061
- if (!$)
2059
+ var j, A, M, N, B, w;
2060
+ const T = (A = (j = this._renderManagerService.getRenderById(i)) == null ? void 0 : j.with(Ie).getWorksheetSkeleton(r)) == null ? void 0 : A.skeleton;
2061
+ if (!T)
2062
2062
  return;
2063
- const R = $.worksheet.getMergedCell(n, o), P = {
2063
+ const R = T.worksheet.getMergedCell(n, a), P = {
2064
2064
  data: {
2065
2065
  ...t,
2066
2066
  dataValidation: {
@@ -2070,18 +2070,18 @@ let Tn = class extends ln {
2070
2070
  validator: d
2071
2071
  }
2072
2072
  },
2073
- style: $.getsStyles().getStyleByCell(t),
2074
- primaryWithCoord: $.getCellByIndex((M = R == null ? void 0 : R.startRow) != null ? M : n, (U = R == null ? void 0 : R.startColumn) != null ? U : o),
2073
+ style: T.getsStyles().getStyleByCell(t),
2074
+ primaryWithCoord: T.getCellByIndex((M = R == null ? void 0 : R.startRow) != null ? M : n, (N = R == null ? void 0 : R.startColumn) != null ? N : a),
2075
2075
  unitId: i,
2076
2076
  subUnitId: r,
2077
2077
  row: n,
2078
- col: o,
2078
+ col: a,
2079
2079
  workbook: l,
2080
2080
  worksheet: s
2081
2081
  };
2082
2082
  return (w = (B = d == null ? void 0 : d.canvasRender) == null ? void 0 : B.calcCellAutoHeight) == null ? void 0 : w.call(B, P);
2083
2083
  },
2084
- coverable: ((E = t == null ? void 0 : t.coverable) != null ? E : !0) && !(u.type === et.LIST || u.type === et.LIST_MULTIPLE)
2084
+ coverable: ((O = t == null ? void 0 : t.coverable) != null ? O : !0) && !(u.type === nt.LIST || u.type === nt.LIST_MULTIPLE)
2085
2085
  });
2086
2086
  }
2087
2087
  }
@@ -2090,121 +2090,121 @@ let Tn = class extends ln {
2090
2090
  }
2091
2091
  _initAutoHeight() {
2092
2092
  this._sheetDataValidationModel.ruleChange$.pipe(
2093
- mn((t) => t.source === "command"),
2094
- ca(16)
2093
+ vn((t) => t.source === "command"),
2094
+ fo(16)
2095
2095
  ).subscribe((t) => {
2096
2096
  const e = [];
2097
- if (t.forEach((a) => {
2097
+ if (t.forEach((o) => {
2098
2098
  var n;
2099
- (n = a.rule) != null && n.ranges && e.push(...a.rule.ranges);
2099
+ (n = o.rule) != null && n.ranges && e.push(...o.rule.ranges);
2100
2100
  }), e.length) {
2101
- const a = this._autoHeightController.getUndoRedoParamsOfAutoHeight(e);
2102
- Wn(a.redos, this._commandService);
2101
+ const o = this._autoHeightController.getUndoRedoParamsOfAutoHeight(e);
2102
+ Yn(o.redos, this._commandService);
2103
2103
  }
2104
2104
  });
2105
2105
  }
2106
2106
  };
2107
- Tn = La([
2108
- Q(0, at),
2109
- Q(1, ie),
2110
- Q(2, Y(ra)),
2111
- Q(3, Y(yt)),
2112
- Q(4, Y(cn)),
2113
- Q(5, Y(Rt)),
2114
- Q(6, Y(na))
2115
- ], Tn);
2116
- var Rr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, Vr = (t, e, a, n) => {
2117
- for (var o = n > 1 ? void 0 : n ? yr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
2118
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
2119
- return n && o && Rr(e, a, o), o;
2120
- }, xn = (t, e) => (a, n) => e(a, n, t);
2121
- let Ie = class extends Dt {
2122
- constructor(t, e, a) {
2123
- super(), this._context = t, this._sheetDataValidationModel = e, this._sheetSkeletonManagerService = a, this._initSkeletonChange();
2107
+ An = Ao([
2108
+ tt(0, at),
2109
+ tt(1, Rt),
2110
+ tt(2, Y(lo)),
2111
+ tt(3, Y(Vt)),
2112
+ tt(4, Y(hn)),
2113
+ tt(5, Y(yt)),
2114
+ tt(6, Y(ao))
2115
+ ], An);
2116
+ var Vr = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, br = (t, e, o, n) => {
2117
+ for (var a = n > 1 ? void 0 : n ? Mr(e, o) : e, i = t.length - 1, r; i >= 0; i--)
2118
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
2119
+ return n && a && Vr(e, o, a), a;
2120
+ }, jn = (t, e) => (o, n) => e(o, n, t);
2121
+ let Re = class extends Dt {
2122
+ constructor(t, e, o) {
2123
+ super(), this._context = t, this._sheetDataValidationModel = e, this._sheetSkeletonManagerService = o, this._initSkeletonChange();
2124
2124
  }
2125
2125
  _initSkeletonChange() {
2126
2126
  const t = (e) => {
2127
2127
  var n;
2128
2128
  if (!e.length)
2129
2129
  return;
2130
- const a = /* @__PURE__ */ new Set();
2131
- e.forEach((o) => {
2132
- a.add(o.subUnitId);
2133
- }), a.forEach((o) => {
2130
+ const o = /* @__PURE__ */ new Set();
2131
+ e.forEach((a) => {
2132
+ o.add(a.subUnitId);
2133
+ }), o.forEach((a) => {
2134
2134
  var i;
2135
- (i = this._sheetSkeletonManagerService.getWorksheetSkeleton(o)) == null || i.skeleton.makeDirty(!0);
2135
+ (i = this._sheetSkeletonManagerService.getWorksheetSkeleton(a)) == null || i.skeleton.makeDirty(!0);
2136
2136
  }), (n = this._context.mainComponent) == null || n.makeForceDirty();
2137
2137
  };
2138
- this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(to(16)).subscribe(t));
2138
+ this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(oa(16)).subscribe(t));
2139
2139
  }
2140
2140
  };
2141
- Ie = Vr([
2142
- xn(1, Y(Rt)),
2143
- xn(2, Y(Ce))
2144
- ], Ie);
2145
- const Mr = "univer-data-validation-formula", br = "univer-data-validation-formula-and", Or = "univer-data-validation-formula-list-item", Er = "univer-data-validation-formula-list-item-icon", $r = "univer-data-validation-formula-list-item-drag", Pr = "univer-data-validation-formula-list-add", Lr = "univer-data-validation-formula-color-select", Tr = "univer-data-validation-formula-color-select-panel", xr = "univer-data-validation-formula-color-item", it = {
2146
- dataValidationFormula: Mr,
2147
- dataValidationFormulaAnd: br,
2148
- dataValidationFormulaListItem: Or,
2149
- dataValidationFormulaListItemIcon: Er,
2141
+ Re = br([
2142
+ jn(1, Y(yt)),
2143
+ jn(2, Y(Ie))
2144
+ ], Re);
2145
+ const Er = "univer-data-validation-formula", Or = "univer-data-validation-formula-and", Tr = "univer-data-validation-formula-list-item", Pr = "univer-data-validation-formula-list-item-icon", $r = "univer-data-validation-formula-list-item-drag", Lr = "univer-data-validation-formula-list-add", xr = "univer-data-validation-formula-color-select", Ar = "univer-data-validation-formula-color-select-panel", jr = "univer-data-validation-formula-color-item", rt = {
2146
+ dataValidationFormula: Er,
2147
+ dataValidationFormulaAnd: Or,
2148
+ dataValidationFormulaListItem: Tr,
2149
+ dataValidationFormulaListItemIcon: Pr,
2150
2150
  dataValidationFormulaListItemDrag: $r,
2151
- dataValidationFormulaListAdd: Pr,
2152
- dataValidationFormulaColorSelect: Lr,
2153
- dataValidationFormulaColorSelectPanel: Tr,
2154
- dataValidationFormulaColorItem: xr
2155
- }, Ar = (t) => {
2156
- const { isTwoFormula: e = !1, value: a, onChange: n, showError: o, validResult: i } = t, r = H(nt), l = o ? i == null ? void 0 : i.formula1 : "", s = o ? i == null ? void 0 : i.formula2 : "";
2151
+ dataValidationFormulaListAdd: Lr,
2152
+ dataValidationFormulaColorSelect: xr,
2153
+ dataValidationFormulaColorSelectPanel: Ar,
2154
+ dataValidationFormulaColorItem: jr
2155
+ }, Fr = (t) => {
2156
+ const { isTwoFormula: e = !1, value: o, onChange: n, showError: a, validResult: i } = t, r = W(ot), l = a ? i == null ? void 0 : i.formula1 : "", s = a ? i == null ? void 0 : i.formula2 : "";
2157
2157
  return e ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2158
- /* @__PURE__ */ p.jsx(tt, { error: l, children: /* @__PURE__ */ p.jsx(
2159
- Tt,
2158
+ /* @__PURE__ */ p.jsx(et, { error: l, children: /* @__PURE__ */ p.jsx(
2159
+ xt,
2160
2160
  {
2161
- className: it.dataValidationFormula,
2161
+ className: rt.dataValidationFormula,
2162
2162
  placeholder: r.t("dataValidation.panel.formulaPlaceholder"),
2163
- value: a == null ? void 0 : a.formula1,
2163
+ value: o == null ? void 0 : o.formula1,
2164
2164
  onChange: (c) => {
2165
2165
  n == null || n({
2166
- ...a,
2166
+ ...o,
2167
2167
  formula1: c
2168
2168
  });
2169
2169
  }
2170
2170
  }
2171
2171
  ) }),
2172
- /* @__PURE__ */ p.jsx("div", { className: it.dataValidationFormulaAnd, children: r.t("dataValidation.panel.formulaAnd") }),
2173
- /* @__PURE__ */ p.jsx(tt, { error: s, children: /* @__PURE__ */ p.jsx(
2174
- Tt,
2172
+ /* @__PURE__ */ p.jsx("div", { className: rt.dataValidationFormulaAnd, children: r.t("dataValidation.panel.formulaAnd") }),
2173
+ /* @__PURE__ */ p.jsx(et, { error: s, children: /* @__PURE__ */ p.jsx(
2174
+ xt,
2175
2175
  {
2176
- className: it.dataValidationFormula,
2176
+ className: rt.dataValidationFormula,
2177
2177
  placeholder: r.t("dataValidation.panel.formulaPlaceholder"),
2178
- value: a == null ? void 0 : a.formula2,
2178
+ value: o == null ? void 0 : o.formula2,
2179
2179
  onChange: (c) => {
2180
2180
  n == null || n({
2181
- ...a,
2181
+ ...o,
2182
2182
  formula2: c
2183
2183
  });
2184
2184
  }
2185
2185
  }
2186
2186
  ) })
2187
- ] }) : /* @__PURE__ */ p.jsx(tt, { error: l, children: /* @__PURE__ */ p.jsx(
2188
- Tt,
2187
+ ] }) : /* @__PURE__ */ p.jsx(et, { error: l, children: /* @__PURE__ */ p.jsx(
2188
+ xt,
2189
2189
  {
2190
- className: it.dataValidationFormula,
2190
+ className: rt.dataValidationFormula,
2191
2191
  placeholder: r.t("dataValidation.panel.formulaPlaceholder"),
2192
- value: a == null ? void 0 : a.formula1,
2192
+ value: o == null ? void 0 : o.formula1,
2193
2193
  onChange: (c) => {
2194
2194
  n == null || n({ formula1: c });
2195
2195
  }
2196
2196
  }
2197
2197
  ) });
2198
2198
  };
2199
- function jr(t) {
2200
- const { value: e, onChange: a, showError: n, validResult: o } = t, i = H(nt), r = n ? o == null ? void 0 : o.formula1 : "", l = n ? o == null ? void 0 : o.formula2 : "", [s, c] = q(!((e == null ? void 0 : e.formula1) === void 0 && (e == null ? void 0 : e.formula2) === void 0));
2199
+ function Nr(t) {
2200
+ const { value: e, onChange: o, showError: n, validResult: a } = t, i = W(ot), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = q(!((e == null ? void 0 : e.formula1) === void 0 && (e == null ? void 0 : e.formula2) === void 0));
2201
2201
  return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2202
- /* @__PURE__ */ p.jsx(tt, { children: /* @__PURE__ */ p.jsx(
2203
- Ve,
2202
+ /* @__PURE__ */ p.jsx(et, { children: /* @__PURE__ */ p.jsx(
2203
+ be,
2204
2204
  {
2205
2205
  checked: s,
2206
2206
  onChange: (u) => {
2207
- u ? c(!0) : (c(!1), a == null || a({
2207
+ u ? c(!0) : (c(!1), o == null || o({
2208
2208
  ...e,
2209
2209
  formula1: void 0,
2210
2210
  formula2: void 0
@@ -2213,28 +2213,28 @@ function jr(t) {
2213
2213
  children: i.t("dataValidation.checkbox.tips")
2214
2214
  }
2215
2215
  ) }),
2216
- s ? /* @__PURE__ */ p.jsx(tt, { label: i.t("dataValidation.checkbox.checked"), error: r, children: /* @__PURE__ */ p.jsx(
2217
- Tt,
2216
+ s ? /* @__PURE__ */ p.jsx(et, { label: i.t("dataValidation.checkbox.checked"), error: r, children: /* @__PURE__ */ p.jsx(
2217
+ xt,
2218
2218
  {
2219
- className: it.dataValidationFormula,
2219
+ className: rt.dataValidationFormula,
2220
2220
  placeholder: i.t("dataValidation.panel.valuePlaceholder"),
2221
2221
  value: e == null ? void 0 : e.formula1,
2222
2222
  onChange: (u) => {
2223
- a == null || a({
2223
+ o == null || o({
2224
2224
  ...e,
2225
2225
  formula1: u || void 0
2226
2226
  });
2227
2227
  }
2228
2228
  }
2229
2229
  ) }) : null,
2230
- s ? /* @__PURE__ */ p.jsx(tt, { label: i.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ p.jsx(
2231
- Tt,
2230
+ s ? /* @__PURE__ */ p.jsx(et, { label: i.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ p.jsx(
2231
+ xt,
2232
2232
  {
2233
- className: it.dataValidationFormula,
2233
+ className: rt.dataValidationFormula,
2234
2234
  placeholder: i.t("dataValidation.panel.valuePlaceholder"),
2235
2235
  value: e == null ? void 0 : e.formula2,
2236
2236
  onChange: (u) => {
2237
- a == null || a({
2237
+ o == null || o({
2238
2238
  ...e,
2239
2239
  formula2: u || void 0
2240
2240
  });
@@ -2243,47 +2243,48 @@ function jr(t) {
2243
2243
  ) }) : null
2244
2244
  ] });
2245
2245
  }
2246
- function Fr(t) {
2246
+ function Ur(t) {
2247
2247
  var h;
2248
- const { unitId: e, subUnitId: a, value: n, onChange: o, showError: i, validResult: r } = t, l = i ? r == null ? void 0 : r.formula1 : void 0, s = Bt({}), [c, u] = q(!1);
2249
- return fn((d) => {
2248
+ const { unitId: e, subUnitId: o, value: n, onChange: a, showError: i, validResult: r } = t, l = i ? r == null ? void 0 : r.formula1 : void 0, s = Ht({}), [c, u] = q(!1);
2249
+ return mn((d) => {
2250
2250
  var m;
2251
2251
  const C = (m = s.current) == null ? void 0 : m.handleOutClick;
2252
2252
  C && C(d, () => u(!1));
2253
2253
  }), /* @__PURE__ */ p.jsx(
2254
- ha,
2254
+ mo,
2255
2255
  {
2256
2256
  initValue: (h = n == null ? void 0 : n.formula1) != null ? h : "",
2257
2257
  unitId: e,
2258
- subUnitId: a,
2258
+ subUnitId: o,
2259
2259
  isFocus: c,
2260
2260
  onChange: (d) => {
2261
2261
  const C = (d != null ? d : "").trim();
2262
- C !== (n == null ? void 0 : n.formula1) && (o == null || o({
2262
+ C !== (n == null ? void 0 : n.formula1) && (a == null || a({
2263
2263
  ...n,
2264
2264
  formula1: C
2265
2265
  }));
2266
2266
  },
2267
2267
  errorText: l,
2268
2268
  onFocus: () => u(!0),
2269
- actions: s.current
2269
+ actions: s.current,
2270
+ isSupportAcrossSheet: !0
2270
2271
  }
2271
2272
  );
2272
2273
  }
2273
- function xa(t) {
2274
- var e, a, n = "";
2274
+ function Fo(t) {
2275
+ var e, o, n = "";
2275
2276
  if (typeof t == "string" || typeof t == "number") n += t;
2276
2277
  else if (typeof t == "object") if (Array.isArray(t)) {
2277
- var o = t.length;
2278
- for (e = 0; e < o; e++) t[e] && (a = xa(t[e])) && (n && (n += " "), n += a);
2279
- } else for (a in t) t[a] && (n && (n += " "), n += a);
2278
+ var a = t.length;
2279
+ for (e = 0; e < a; e++) t[e] && (o = Fo(t[e])) && (n && (n += " "), n += o);
2280
+ } else for (o in t) t[o] && (n && (n += " "), n += o);
2280
2281
  return n;
2281
2282
  }
2282
- function Nr() {
2283
- for (var t, e, a = 0, n = "", o = arguments.length; a < o; a++) (t = arguments[a]) && (e = xa(t)) && (n && (n += " "), n += e);
2283
+ function kr() {
2284
+ for (var t, e, o = 0, n = "", a = arguments.length; o < a; o++) (t = arguments[o]) && (e = Fo(t)) && (n && (n += " "), n += e);
2284
2285
  return n;
2285
2286
  }
2286
- const Ur = [
2287
+ const Br = [
2287
2288
  "#FFFFFF",
2288
2289
  "#FEE7E7",
2289
2290
  "#FEF0E6",
@@ -2308,34 +2309,34 @@ const Ur = [
2308
2309
  "#3A60F7",
2309
2310
  "#9E6DE3",
2310
2311
  "#F248A6"
2311
- ], kr = (t) => {
2312
- const { value: e, onChange: a, disabled: n } = t, [o, i] = q(!1);
2312
+ ], Hr = (t) => {
2313
+ const { value: e, onChange: o, disabled: n } = t, [a, i] = q(!1);
2313
2314
  return /* @__PURE__ */ p.jsx(
2314
- Ze,
2315
+ Je,
2315
2316
  {
2316
2317
  disabled: n,
2317
- open: o,
2318
+ open: a,
2318
2319
  onDropdownVisibleChange: i,
2319
2320
  dropdownStyle: { width: 112 },
2320
2321
  style: { width: 96, cursor: "pointer" },
2321
- className: it.dataValidationFormulaColorSelect,
2322
+ className: rt.dataValidationFormulaColorSelect,
2322
2323
  value: e,
2323
- onChange: a,
2324
+ onChange: o,
2324
2325
  labelRender: (r) => /* @__PURE__ */ p.jsx(
2325
2326
  "div",
2326
2327
  {
2327
- className: it.dataValidationFormulaColorItem,
2328
+ className: rt.dataValidationFormulaColorItem,
2328
2329
  style: { background: r.value, marginTop: 5 }
2329
2330
  }
2330
2331
  ),
2331
- dropdownRender: () => /* @__PURE__ */ p.jsx("div", { className: it.dataValidationFormulaColorSelectPanel, children: Ur.map(
2332
+ dropdownRender: () => /* @__PURE__ */ p.jsx("div", { className: rt.dataValidationFormulaColorSelectPanel, children: Br.map(
2332
2333
  (r) => /* @__PURE__ */ p.jsx(
2333
2334
  "div",
2334
2335
  {
2335
2336
  onClick: () => {
2336
- a(r), i(!1);
2337
+ o(r), i(!1);
2337
2338
  },
2338
- className: it.dataValidationFormulaColorItem,
2339
+ className: rt.dataValidationFormulaColorItem,
2339
2340
  style: { background: r }
2340
2341
  },
2341
2342
  r
@@ -2343,71 +2344,71 @@ const Ur = [
2343
2344
  ) })
2344
2345
  }
2345
2346
  );
2346
- }, An = (t) => {
2347
- const { item: e, commonProps: a, style: n } = t, { onItemChange: o, onItemDelete: i } = a;
2348
- return /* @__PURE__ */ p.jsxs("div", { className: it.dataValidationFormulaListItem, style: n, children: [
2349
- e.isRef ? null : /* @__PURE__ */ p.jsx("div", { className: Nr(it.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ p.jsx(ya, {}) }),
2347
+ }, Fn = (t) => {
2348
+ const { item: e, commonProps: o, style: n } = t, { onItemChange: a, onItemDelete: i } = o;
2349
+ return /* @__PURE__ */ p.jsxs("div", { className: rt.dataValidationFormulaListItem, style: n, children: [
2350
+ e.isRef ? null : /* @__PURE__ */ p.jsx("div", { className: kr(rt.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ p.jsx(bo, {}) }),
2350
2351
  /* @__PURE__ */ p.jsx(
2351
- kr,
2352
+ Hr,
2352
2353
  {
2353
2354
  value: e.color,
2354
2355
  onChange: (r) => {
2355
- o(e.id, e.label, r);
2356
+ a(e.id, e.label, r);
2356
2357
  }
2357
2358
  }
2358
2359
  ),
2359
2360
  /* @__PURE__ */ p.jsx(
2360
- Tt,
2361
+ xt,
2361
2362
  {
2362
2363
  disabled: e.isRef,
2363
2364
  value: e.label,
2364
2365
  onChange: (r) => {
2365
- o(e.id, r, e.color);
2366
+ a(e.id, r, e.color);
2366
2367
  }
2367
2368
  }
2368
2369
  ),
2369
- e.isRef ? null : /* @__PURE__ */ p.jsx("div", { className: it.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ p.jsx(vn, { onClick: () => i(e.id) }) })
2370
+ e.isRef ? null : /* @__PURE__ */ p.jsx("div", { className: rt.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ p.jsx(Sn, { onClick: () => i(e.id) }) })
2370
2371
  ] });
2371
2372
  };
2372
- function Br(t) {
2373
- const { value: e, onChange: a = () => {
2374
- }, unitId: n, subUnitId: o, validResult: i, showError: r, ruleId: l } = t, { formula1: s = "", formula2: c = "" } = e || {}, u = Bt(null), [h, d] = q(() => Et(s) ? "1" : "0"), [C, m] = q(h === "1" ? s : "="), [f, D] = q(h === "1" ? s : "="), y = H(nt), V = H(yt), S = H(be), x = H(Co), [E, $] = q(() => c.split(",")), R = V.getValidatorItem(et.LIST), [P, j] = q([]), [A, M] = q(""), U = r ? i == null ? void 0 : i.formula1 : "", B = Pt(() => S.ruleChange$.pipe(gn(16)), []), w = jt(B), v = da(a);
2373
+ function Wr(t) {
2374
+ const { value: e, onChange: o = () => {
2375
+ }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = t, { formula1: s = "", formula2: c = "" } = e || {}, u = Ht(null), [h, d] = q(() => Tt(s) ? "1" : "0"), [C, m] = q(h === "1" ? s : "="), [f, D] = q(h === "1" ? s : "="), y = W(ot), V = W(Vt), S = W(Oe), x = W(Ia), [O, T] = q(() => c.split(",")), R = V.getValidatorItem(nt.LIST), [P, j] = q([]), [A, M] = q(""), N = r ? i == null ? void 0 : i.formula1 : "", B = $t(() => S.ruleChange$.pipe(_n(16)), []), w = Ft(B), v = ho(o);
2375
2376
  St(() => {
2376
2377
  (async () => {
2377
- await new Promise((N) => {
2378
- setTimeout(() => N(!0), 100);
2378
+ await new Promise((F) => {
2379
+ setTimeout(() => F(!0), 100);
2379
2380
  });
2380
- const O = S.getRuleById(n, o, l), W = O == null ? void 0 : O.formula1;
2381
- if (Et(W) && R && O) {
2382
- const N = await R.getListAsync(O, n, o);
2383
- j(N);
2381
+ const E = S.getRuleById(n, a, l), H = E == null ? void 0 : E.formula1;
2382
+ if (Tt(H) && R && E) {
2383
+ const F = await R.getListAsync(E, n, a);
2384
+ j(F);
2384
2385
  }
2385
2386
  })();
2386
- }, [S, w, R, l, o, n]), St(() => {
2387
- Et(s) && s !== f && (m(s), D(f));
2387
+ }, [S, w, R, l, a, n]), St(() => {
2388
+ Tt(s) && s !== f && (m(s), D(f));
2388
2389
  }, [f, s]);
2389
2390
  const [g, I] = q(() => {
2390
- const O = h !== "1" ? Zn(s) : [], W = c.split(",");
2391
- return O.map((N, z) => ({
2392
- label: N,
2393
- color: W[z] || $t,
2391
+ const E = h !== "1" ? Jn(s) : [], H = c.split(",");
2392
+ return E.map((F, z) => ({
2393
+ label: F,
2394
+ color: H[z] || Pt,
2394
2395
  isRef: !1,
2395
- id: Ge.generateRandomId(4)
2396
+ id: qe.generateRandomId(4)
2396
2397
  }));
2397
- }), _ = (O, W, N) => {
2398
- const z = g.find((ot) => ot.id === O);
2399
- z && (z.label = W, z.color = N, I([...g]));
2400
- }, L = (O) => {
2401
- const W = g.findIndex((N) => N.id === O);
2402
- W !== -1 && (g.splice(W, 1), I([...g]));
2403
- }, b = c.split(","), k = Pt(() => P.map((O, W) => ({
2404
- label: O,
2405
- color: b[W] || $t,
2406
- id: `${W}`,
2398
+ }), _ = (E, H, F) => {
2399
+ const z = g.find((it) => it.id === E);
2400
+ z && (z.label = H, z.color = F, I([...g]));
2401
+ }, $ = (E) => {
2402
+ const H = g.findIndex((F) => F.id === E);
2403
+ H !== -1 && (g.splice(H, 1), I([...g]));
2404
+ }, b = c.split(","), U = $t(() => P.map((E, H) => ({
2405
+ label: E,
2406
+ color: b[H] || Pt,
2407
+ id: `${H}`,
2407
2408
  isRef: !0
2408
- })), [b, P]), X = (O, W, N) => {
2409
- const z = [...E];
2410
- z[+O] = N, $(z), v({
2409
+ })), [b, P]), X = (E, H, F) => {
2410
+ const z = [...O];
2411
+ z[+E] = F, T(z), v({
2411
2412
  formula1: s,
2412
2413
  formula2: z.join(",")
2413
2414
  });
@@ -2416,42 +2417,42 @@ function Br(t) {
2416
2417
  ...g,
2417
2418
  {
2418
2419
  label: "",
2419
- color: $t,
2420
+ color: Pt,
2420
2421
  isRef: !1,
2421
- id: Ge.generateRandomId(4)
2422
+ id: qe.generateRandomId(4)
2422
2423
  }
2423
2424
  ]);
2424
2425
  };
2425
2426
  St(() => {
2426
2427
  if (h === "1")
2427
2428
  return;
2428
- const O = /* @__PURE__ */ new Set(), W = [];
2429
- g.map((N) => ({
2430
- labelList: N.label.split(","),
2431
- item: N
2432
- })).forEach(({ item: N, labelList: z }) => {
2433
- z.forEach((ot) => {
2434
- O.has(ot) || (O.add(ot), W.push({
2435
- label: ot,
2436
- color: N.color
2429
+ const E = /* @__PURE__ */ new Set(), H = [];
2430
+ g.map((F) => ({
2431
+ labelList: F.label.split(","),
2432
+ item: F
2433
+ })).forEach(({ item: F, labelList: z }) => {
2434
+ z.forEach((it) => {
2435
+ E.has(it) || (E.add(it), H.push({
2436
+ label: it,
2437
+ color: F.color
2437
2438
  }));
2438
2439
  });
2439
2440
  }), v({
2440
- formula1: qn(W.map((N) => N.label)),
2441
- formula2: W.map((N) => N.color === $t ? "" : N.color).join(",")
2441
+ formula1: Qn(H.map((F) => F.label)),
2442
+ formula2: H.map((F) => F.color === Pt ? "" : F.color).join(",")
2442
2443
  });
2443
- }, [g, v, h, f, E]);
2444
- const G = Pt(
2445
- () => async (O) => {
2446
- if (!Et(O)) {
2444
+ }, [g, v, h, f, O]);
2445
+ const G = $t(
2446
+ () => async (E) => {
2447
+ if (!Tt(E)) {
2447
2448
  v == null || v({
2448
2449
  formula1: "",
2449
2450
  formula2: c
2450
2451
  });
2451
2452
  return;
2452
2453
  }
2453
- x.getFormulaRefCheck(O) ? (v == null || v({
2454
- formula1: Et(O) ? O : "",
2454
+ x.getFormulaRefCheck(E) ? (v == null || v({
2455
+ formula1: Tt(E) ? E : "",
2455
2456
  formula2: c
2456
2457
  }), M("")) : (v == null || v({
2457
2458
  formula1: "",
@@ -2459,20 +2460,20 @@ function Br(t) {
2459
2460
  }), m("="), M(y.t("dataValidation.validFail.formulaError")));
2460
2461
  },
2461
2462
  [c, v]
2462
- ), Z = Bt({}), [J, T] = q(!1);
2463
- return fn((O) => {
2464
- var N;
2465
- const W = (N = Z.current) == null ? void 0 : N.handleOutClick;
2466
- W && W(O, () => T(!1));
2463
+ ), Z = Ht({}), [J, L] = q(!1);
2464
+ return mn((E) => {
2465
+ var F;
2466
+ const H = (F = Z.current) == null ? void 0 : F.handleOutClick;
2467
+ H && H(E, () => L(!1));
2467
2468
  }), /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2468
- /* @__PURE__ */ p.jsx(tt, { label: y.t("dataValidation.list.options"), children: /* @__PURE__ */ p.jsxs(
2469
- dn,
2469
+ /* @__PURE__ */ p.jsx(et, { label: y.t("dataValidation.list.options"), children: /* @__PURE__ */ p.jsxs(
2470
+ un,
2470
2471
  {
2471
2472
  value: h,
2472
- onChange: (O) => {
2473
- d(O), m(f), O === "1" && v({
2473
+ onChange: (E) => {
2474
+ d(E), m(f), E === "1" && v({
2474
2475
  formula1: f === "=" ? "" : f,
2475
- formula2: E.join(",")
2476
+ formula2: O.join(",")
2476
2477
  });
2477
2478
  },
2478
2479
  children: [
@@ -2483,90 +2484,91 @@ function Br(t) {
2483
2484
  ) }),
2484
2485
  h === "1" ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2485
2486
  /* @__PURE__ */ p.jsx(
2486
- ha,
2487
+ mo,
2487
2488
  {
2488
2489
  initValue: C,
2489
2490
  unitId: n,
2490
- subUnitId: o,
2491
+ subUnitId: a,
2491
2492
  isFocus: J,
2492
- onChange: (O = "") => {
2493
- const W = (O != null ? O : "").trim();
2494
- D(W), G(W);
2493
+ onChange: (E = "") => {
2494
+ const H = (E != null ? E : "").trim();
2495
+ D(H), G(H);
2495
2496
  },
2496
- errorText: U || A || void 0,
2497
- onFocus: () => T(!0),
2498
- actions: Z.current
2497
+ errorText: N || A || void 0,
2498
+ onFocus: () => L(!0),
2499
+ actions: Z.current,
2500
+ isSupportAcrossSheet: !0
2499
2501
  }
2500
2502
  ),
2501
- /* @__PURE__ */ p.jsx("div", { ref: u, style: { marginTop: "12px" }, children: k.map((O) => /* @__PURE__ */ p.jsx(An, { item: O, commonProps: { onItemChange: X }, style: { marginBottom: 12 } }, O.id)) })
2502
- ] }) : /* @__PURE__ */ p.jsx(tt, { error: U, children: /* @__PURE__ */ p.jsxs("div", { ref: u, style: { marginTop: "-12px" }, children: [
2503
+ /* @__PURE__ */ p.jsx("div", { ref: u, style: { marginTop: "12px" }, children: U.map((E) => /* @__PURE__ */ p.jsx(Fn, { item: E, commonProps: { onItemChange: X }, style: { marginBottom: 12 } }, E.id)) })
2504
+ ] }) : /* @__PURE__ */ p.jsx(et, { error: N, children: /* @__PURE__ */ p.jsxs("div", { ref: u, style: { marginTop: "-12px" }, children: [
2503
2505
  /* @__PURE__ */ p.jsx(
2504
- ro,
2506
+ da,
2505
2507
  {
2506
2508
  list: g,
2507
2509
  onListChange: I,
2508
2510
  rowHeight: 32,
2509
2511
  margin: [0, 12],
2510
2512
  draggableHandle: ".draggableHandle",
2511
- itemRender: (O) => /* @__PURE__ */ p.jsx(
2512
- An,
2513
+ itemRender: (E) => /* @__PURE__ */ p.jsx(
2514
+ Fn,
2513
2515
  {
2514
- item: O,
2516
+ item: E,
2515
2517
  commonProps: {
2516
2518
  onItemChange: _,
2517
- onItemDelete: L
2519
+ onItemDelete: $
2518
2520
  }
2519
2521
  },
2520
- O.id
2522
+ E.id
2521
2523
  ),
2522
2524
  idKey: "id"
2523
2525
  }
2524
2526
  ),
2525
- /* @__PURE__ */ p.jsxs("a", { className: it.dataValidationFormulaListAdd, onClick: K, children: [
2526
- /* @__PURE__ */ p.jsx(Ia, {}),
2527
+ /* @__PURE__ */ p.jsxs("a", { className: rt.dataValidationFormulaListAdd, onClick: K, children: [
2528
+ /* @__PURE__ */ p.jsx(yo, {}),
2527
2529
  y.t("dataValidation.list.add")
2528
2530
  ] })
2529
2531
  ] }) })
2530
2532
  ] });
2531
2533
  }
2532
- const Aa = "data-validation.custom-formula-input", Pe = "data-validation.formula-input", In = "data-validation.list-formula-input", ja = "data-validation.checkbox-formula-input", Wr = [
2534
+ const No = "data-validation.custom-formula-input", Le = "data-validation.formula-input", Rn = "data-validation.list-formula-input", Uo = "data-validation.checkbox-formula-input", Yr = [
2533
2535
  [
2534
- Aa,
2535
- Fr
2536
+ No,
2537
+ Ur
2536
2538
  ],
2537
2539
  [
2538
- Pe,
2539
- Ar
2540
+ Le,
2541
+ Fr
2540
2542
  ],
2541
2543
  [
2542
- In,
2543
- Br
2544
+ Rn,
2545
+ Wr
2544
2546
  ],
2545
2547
  [
2546
- ja,
2547
- jr
2548
+ Uo,
2549
+ Nr
2548
2550
  ]
2549
- ], Hr = "LIST_RENDER_MODE_OPTION_INPUT";
2550
- function De(t) {
2551
- var o;
2552
- const { value: e, onChange: a } = t, n = H(nt);
2553
- return /* @__PURE__ */ p.jsx(tt, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ p.jsxs(dn, { value: `${(o = e.renderMode) != null ? o : dt.CUSTOM}`, onChange: (i) => a({ ...e, renderMode: +i }), children: [
2551
+ ], Xr = "LIST_RENDER_MODE_OPTION_INPUT";
2552
+ function ye(t) {
2553
+ var a;
2554
+ const { value: e, onChange: o } = t, n = W(ot);
2555
+ return /* @__PURE__ */ p.jsx(et, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ p.jsxs(un, { value: `${(a = e.renderMode) != null ? a : dt.CUSTOM}`, onChange: (i) => o({ ...e, renderMode: +i }), children: [
2554
2556
  /* @__PURE__ */ p.jsx(Lt, { value: `${dt.CUSTOM}`, children: n.t("dataValidation.renderMode.chip") }),
2555
2557
  /* @__PURE__ */ p.jsx(Lt, { value: `${dt.ARROW}`, children: n.t("dataValidation.renderMode.arrow") }),
2556
2558
  /* @__PURE__ */ p.jsx(Lt, { value: `${dt.TEXT}`, children: n.t("dataValidation.renderMode.text") })
2557
2559
  ] }) });
2558
2560
  }
2559
- De.componentKey = Hr;
2560
- const Yr = "DATE_SHOW_TIME_OPTION";
2561
- function Re(t) {
2562
- var o;
2563
- const { value: e, onChange: a } = t, n = H(nt);
2564
- return /* @__PURE__ */ p.jsx(tt, { children: /* @__PURE__ */ p.jsx(
2565
- Ve,
2561
+ ye.componentKey = Xr;
2562
+ const zr = "DATE_SHOW_TIME_OPTION";
2563
+ function Ve(t) {
2564
+ var a;
2565
+ const { value: e, onChange: o } = t, n = W(ot);
2566
+ return /* @__PURE__ */ p.jsx(et, { children: /* @__PURE__ */ p.jsx(
2567
+ be,
2566
2568
  {
2567
- checked: (o = e.bizInfo) == null ? void 0 : o.showTime,
2569
+ checked: (a = e.bizInfo) == null ? void 0 : a.showTime,
2568
2570
  onChange: (i) => {
2569
- a({
2571
+ o({
2570
2572
  ...e,
2571
2573
  bizInfo: {
2572
2574
  ...e.bizInfo,
@@ -2578,22 +2580,22 @@ function Re(t) {
2578
2580
  }
2579
2581
  ) });
2580
2582
  }
2581
- Re.componentKey = Yr;
2582
- var Xr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Kr = (t, e, a, n) => {
2583
- for (var o = n > 1 ? void 0 : n ? zr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
2584
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
2585
- return n && o && Xr(e, a, o), o;
2586
- }, Ne = (t, e) => (a, n) => e(a, n, t);
2587
- const ce = 6;
2588
- let nn = class {
2589
- constructor(t, e, a) {
2590
- this._commandService = t, this._formulaService = e, this._themeService = a;
2583
+ Ve.componentKey = zr;
2584
+ var Kr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, Zr = (t, e, o, n) => {
2585
+ for (var a = n > 1 ? void 0 : n ? Gr(e, o) : e, i = t.length - 1, r; i >= 0; i--)
2586
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
2587
+ return n && a && Kr(e, o, a), a;
2588
+ }, ue = (t, e) => (o, n) => e(o, n, t);
2589
+ const he = 6;
2590
+ let an = class {
2591
+ constructor(t, e, o, n) {
2592
+ this._commandService = t, this._formulaService = e, this._themeService = o, this._renderManagerService = n;
2591
2593
  }
2592
2594
  _calc(t, e) {
2593
2595
  var c, u, h;
2594
- const { vt: a, ht: n } = e || {}, o = t.endX - t.startX - ce * 2, i = t.endY - t.startY, r = ((c = e == null ? void 0 : e.fs) != null ? c : 10) * 1.6;
2596
+ const { vt: o, ht: n } = e || {}, a = t.endX - t.startX - he * 2, i = t.endY - t.startY, r = ((c = e == null ? void 0 : e.fs) != null ? c : 10) * 1.6;
2595
2597
  let l = 0, s = 0;
2596
- switch (a) {
2598
+ switch (o) {
2597
2599
  case ut.TOP:
2598
2600
  s = 0;
2599
2601
  break;
@@ -2606,13 +2608,13 @@ let nn = class {
2606
2608
  }
2607
2609
  switch (n) {
2608
2610
  case Wt.LEFT:
2609
- l = ce;
2611
+ l = he;
2610
2612
  break;
2611
2613
  case Wt.RIGHT:
2612
- l = ce + (o - r);
2614
+ l = he + (a - r);
2613
2615
  break;
2614
2616
  default:
2615
- l = ce + (o - r) / 2;
2617
+ l = he + (a - r) / 2;
2616
2618
  break;
2617
2619
  }
2618
2620
  return {
@@ -2623,35 +2625,35 @@ let nn = class {
2623
2625
  };
2624
2626
  }
2625
2627
  calcCellAutoHeight(t) {
2626
- var a;
2628
+ var o;
2627
2629
  const { style: e } = t;
2628
- return ((a = e == null ? void 0 : e.fs) != null ? a : 10) * 1.6;
2630
+ return ((o = e == null ? void 0 : e.fs) != null ? o : 10) * 1.6;
2629
2631
  }
2630
2632
  calcCellAutoWidth(t) {
2631
- var a;
2633
+ var o;
2632
2634
  const { style: e } = t;
2633
- return ((a = e == null ? void 0 : e.fs) != null ? a : 10) * 1.6;
2635
+ return ((o = e == null ? void 0 : e.fs) != null ? o : 10) * 1.6;
2634
2636
  }
2635
- async _parseFormula(t, e, a) {
2637
+ async _parseFormula(t, e, o) {
2636
2638
  var c, u, h, d, C, m, f, D, y;
2637
- const { formula1: n = Do, formula2: o = Ro } = t, i = await this._formulaService.getRuleFormulaResult(e, a, t.uid), r = Te((h = (u = (c = i == null ? void 0 : i[0]) == null ? void 0 : c.result) == null ? void 0 : u[0]) == null ? void 0 : h[0]), l = Te((m = (C = (d = i == null ? void 0 : i[1]) == null ? void 0 : d.result) == null ? void 0 : C[0]) == null ? void 0 : m[0]), s = Vn(String(r)) && Vn(String(l));
2639
+ const { formula1: n = ya, formula2: a = Va } = t, i = await this._formulaService.getRuleFormulaResult(e, o, t.uid), r = Ae((h = (u = (c = i == null ? void 0 : i[0]) == null ? void 0 : c.result) == null ? void 0 : u[0]) == null ? void 0 : h[0]), l = Ae((m = (C = (d = i == null ? void 0 : i[1]) == null ? void 0 : d.result) == null ? void 0 : C[0]) == null ? void 0 : m[0]), s = bn(String(r)) && bn(String(l));
2638
2640
  return {
2639
- formula1: Et(n) ? Te((y = (D = (f = i == null ? void 0 : i[0]) == null ? void 0 : f.result) == null ? void 0 : D[0]) == null ? void 0 : y[0]) : n,
2640
- formula2: Et(o) ? l : o,
2641
+ formula1: Tt(n) ? Ae((y = (D = (f = i == null ? void 0 : i[0]) == null ? void 0 : f.result) == null ? void 0 : D[0]) == null ? void 0 : y[0]) : n,
2642
+ formula2: Tt(a) ? l : a,
2641
2643
  isFormulaValid: s
2642
2644
  };
2643
2645
  }
2644
2646
  drawWith(t, e) {
2645
2647
  var B, w, v, g, I, _;
2646
- const { style: a, data: n, primaryWithCoord: o, unitId: i, subUnitId: r, worksheet: l, row: s, col: c } = e, u = o.isMergedMainCell ? o.mergeInfo : o, h = st(l.getCellRaw(s, c)), d = (B = n.dataValidation) == null ? void 0 : B.rule, C = (w = n.dataValidation) == null ? void 0 : w.validator;
2648
+ const { style: o, data: n, primaryWithCoord: a, unitId: i, subUnitId: r, worksheet: l, row: s, col: c } = e, u = a.isMergedMainCell ? a.mergeInfo : a, h = st(l.getCellRaw(s, c)), d = (B = n.dataValidation) == null ? void 0 : B.rule, C = (w = n.dataValidation) == null ? void 0 : w.validator;
2647
2649
  if (!d || !C)
2648
2650
  return;
2649
2651
  const m = this._themeService.getCurrentTheme();
2650
2652
  if (!((v = C.skipDefaultFontRender) != null && v.call(C, d, h, { unitId: i, subUnitId: r, row: s, column: c })))
2651
2653
  return;
2652
- const f = C.parseFormulaSync(d, i, r), { formula1: D } = f, y = this._calc(u, a), { a: V, d: S } = t.getTransform(), x = Rn(y.left, V), E = Rn(y.top, S), $ = so.create().composeMatrix({
2654
+ const f = C.parseFormulaSync(d, i, r), { formula1: D } = f, y = this._calc(u, o), { a: V, d: S } = t.getTransform(), x = Vn(y.left, V), O = Vn(y.top, S), T = ca.create().composeMatrix({
2653
2655
  left: x,
2654
- top: E,
2656
+ top: O,
2655
2657
  scaleX: 1,
2656
2658
  scaleY: 1,
2657
2659
  angle: 0,
@@ -2661,118 +2663,127 @@ let nn = class {
2661
2663
  flipY: !1
2662
2664
  }), R = u.endX - u.startX, P = u.endY - u.startY;
2663
2665
  t.save(), t.beginPath(), t.rect(u.startX, u.startY, R, P), t.clip();
2664
- const j = $.getMatrix();
2666
+ const j = T.getMatrix();
2665
2667
  t.transform(j[0], j[1], j[2], j[3], j[4], j[5]);
2666
- const A = ((g = a == null ? void 0 : a.fs) != null ? g : 10) * 1.6, M = String(h) === String(D), U = m.hyacinth500;
2667
- lo.drawWith(t, {
2668
+ const A = ((g = o == null ? void 0 : o.fs) != null ? g : 10) * 1.6, M = String(h) === String(D), N = m.hyacinth500;
2669
+ ua.drawWith(t, {
2668
2670
  checked: M,
2669
2671
  width: A,
2670
2672
  height: A,
2671
- fill: (_ = (I = a == null ? void 0 : a.cl) == null ? void 0 : I.rgb) != null ? _ : U
2673
+ fill: (_ = (I = o == null ? void 0 : o.cl) == null ? void 0 : I.rgb) != null ? _ : N
2672
2674
  }), t.restore();
2673
2675
  }
2674
2676
  isHit(t, e) {
2675
- const a = e.primaryWithCoord.isMergedMainCell ? e.primaryWithCoord.mergeInfo : e.primaryWithCoord, n = this._calc(a, e.style), o = n.top, i = n.top + n.height, r = n.left, l = n.left + n.width, { x: s, y: c } = t;
2676
- return s <= l && s >= r && c <= i && c >= o;
2677
+ const o = e.primaryWithCoord.isMergedMainCell ? e.primaryWithCoord.mergeInfo : e.primaryWithCoord, n = this._calc(o, e.style), a = n.top, i = n.top + n.height, r = n.left, l = n.left + n.width, { x: s, y: c } = t;
2678
+ return s <= l && s >= r && c <= i && c >= a;
2677
2679
  }
2678
2680
  async onPointerDown(t, e) {
2679
2681
  var f, D, y;
2680
2682
  if (e.button === 2)
2681
2683
  return;
2682
- const { primaryWithCoord: a, unitId: n, subUnitId: o, data: i, worksheet: r, row: l, col: s } = t, c = st(r.getCellRaw(l, s)), u = (f = i.dataValidation) == null ? void 0 : f.rule, h = (D = i.dataValidation) == null ? void 0 : D.validator;
2683
- if (!u || !h || !((y = h.skipDefaultFontRender) != null && y.call(h, u, c, { unitId: n, subUnitId: o, row: l, column: s })))
2684
+ const { primaryWithCoord: o, unitId: n, subUnitId: a, data: i, worksheet: r, row: l, col: s } = t, c = st(r.getCellRaw(l, s)), u = (f = i.dataValidation) == null ? void 0 : f.rule, h = (D = i.dataValidation) == null ? void 0 : D.validator;
2685
+ if (!u || !h || !((y = h.skipDefaultFontRender) != null && y.call(h, u, c, { unitId: n, subUnitId: a, row: l, column: s })))
2684
2686
  return;
2685
- const { formula1: d, formula2: C } = await this._parseFormula(u, n, o), m = {
2687
+ const { formula1: d, formula2: C } = await this._parseFormula(u, n, a), m = {
2686
2688
  range: {
2687
- startColumn: a.actualColumn,
2688
- endColumn: a.actualColumn,
2689
- startRow: a.actualRow,
2690
- endRow: a.actualRow
2689
+ startColumn: o.actualColumn,
2690
+ endColumn: o.actualColumn,
2691
+ startRow: o.actualRow,
2692
+ endRow: o.actualRow
2691
2693
  },
2692
2694
  value: {
2693
- v: String(c) === Io(String(d)) ? C : d,
2695
+ v: String(c) === Ra(String(d)) ? C : d,
2694
2696
  p: null
2695
2697
  }
2696
2698
  };
2697
2699
  this._commandService.executeCommand(
2698
- un.id,
2700
+ fn.id,
2699
2701
  m
2700
2702
  );
2701
2703
  }
2704
+ onPointerEnter(t, e) {
2705
+ var o, n;
2706
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Q.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Yt.POINTER);
2707
+ }
2708
+ onPointerLeave(t, e) {
2709
+ var o, n;
2710
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Q.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Yt.DEFAULT);
2711
+ }
2702
2712
  };
2703
- nn = Kr([
2704
- Ne(0, at),
2705
- Ne(1, Y(wo)),
2706
- Ne(2, Y(eo))
2707
- ], nn);
2708
- var Gr = Object.defineProperty, Zr = Object.getOwnPropertyDescriptor, qr = (t, e, a, n) => {
2709
- for (var o = n > 1 ? void 0 : n ? Zr(e, a) : e, i = t.length - 1, r; i >= 0; i--)
2710
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
2711
- return n && o && Gr(e, a, o), o;
2712
- }, Jr = (t, e) => (a, n) => e(a, n, t);
2713
+ an = Zr([
2714
+ ue(0, at),
2715
+ ue(1, Y(Da)),
2716
+ ue(2, Y(aa)),
2717
+ ue(3, Y(Rt))
2718
+ ], an);
2719
+ var qr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, Qr = (t, e, o, n) => {
2720
+ for (var a = n > 1 ? void 0 : n ? Jr(e, o) : e, i = t.length - 1, r; i >= 0; i--)
2721
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
2722
+ return n && a && qr(e, o, a), a;
2723
+ }, ts = (t, e) => (o, n) => e(o, n, t);
2713
2724
  let mt = class {
2714
2725
  constructor(t) {
2715
- F(this, "canvasRender", null);
2716
- F(this, "dropdown");
2717
- F(this, "optionsInput");
2718
- F(this, "formulaInput", In);
2726
+ k(this, "canvasRender", null);
2727
+ k(this, "dropdown");
2728
+ k(this, "optionsInput");
2729
+ k(this, "formulaInput", Rn);
2719
2730
  this.injector = t;
2720
2731
  }
2721
2732
  };
2722
- mt = qr([
2723
- Jr(0, Y(At))
2733
+ mt = Qr([
2734
+ ts(0, Y(jt))
2724
2735
  ], mt);
2725
- class Qr extends mt {
2736
+ class es extends mt {
2726
2737
  constructor() {
2727
2738
  super(...arguments);
2728
- F(this, "id", et.CHECKBOX);
2729
- F(this, "canvasRender", this.injector.createInstance(nn));
2730
- F(this, "formulaInput", ja);
2739
+ k(this, "id", nt.CHECKBOX);
2740
+ k(this, "canvasRender", this.injector.createInstance(an));
2741
+ k(this, "formulaInput", Uo);
2731
2742
  }
2732
2743
  }
2733
- class ts extends mt {
2744
+ class ns extends mt {
2734
2745
  constructor() {
2735
2746
  super(...arguments);
2736
- F(this, "id", et.CUSTOM);
2737
- F(this, "formulaInput", Aa);
2747
+ k(this, "id", nt.CUSTOM);
2748
+ k(this, "formulaInput", No);
2738
2749
  }
2739
2750
  }
2740
- const es = "data-validation.formula-input";
2741
- class ns extends mt {
2751
+ const os = "data-validation.formula-input";
2752
+ class as extends mt {
2742
2753
  constructor() {
2743
2754
  super(...arguments);
2744
- F(this, "id", et.DATE);
2745
- F(this, "formulaInput", es);
2746
- F(this, "optionsInput", Re.componentKey);
2747
- F(this, "dropdown", Ea);
2755
+ k(this, "id", nt.DATE);
2756
+ k(this, "formulaInput", os);
2757
+ k(this, "optionsInput", Ve.componentKey);
2758
+ k(this, "dropdown", $o);
2748
2759
  }
2749
2760
  }
2750
- class as extends mt {
2761
+ class is extends mt {
2751
2762
  constructor() {
2752
2763
  super(...arguments);
2753
- F(this, "id", et.DECIMAL);
2754
- F(this, "formulaInput", Pe);
2764
+ k(this, "id", nt.DECIMAL);
2765
+ k(this, "formulaInput", Le);
2755
2766
  }
2756
2767
  }
2757
- const Fa = 4, os = 0, Ue = 4, Na = 4, an = 6, ye = 6, Ot = 14;
2758
- function is(t, e) {
2759
- const a = co.getTextSize(t, e), n = a.width + Fa * 2, { ba: o, bd: i } = a, r = o + i;
2768
+ const ko = 4, rs = 0, ke = 4, Bo = 4, rn = 6, Me = 6, Ot = 14;
2769
+ function ss(t, e) {
2770
+ const o = ha.getTextSize(t, e), n = o.width + ko * 2, { ba: a, bd: i } = o, r = a + i;
2760
2771
  return {
2761
2772
  width: n,
2762
- height: r + os * 2,
2763
- ba: o
2773
+ height: r + rs * 2,
2774
+ ba: a
2764
2775
  };
2765
2776
  }
2766
- function ke(t, e, a, n) {
2767
- const o = Ot + an * 2, i = a - o, r = n - ye * 2, l = t.map((d) => ({
2768
- layout: is(d, e),
2777
+ function Be(t, e, o, n) {
2778
+ const a = Ot + rn * 2, i = o - a, r = n - Me * 2, l = t.map((d) => ({
2779
+ layout: ss(d, e),
2769
2780
  text: d
2770
2781
  }));
2771
2782
  let s;
2772
2783
  const c = [];
2773
2784
  l.forEach((d) => {
2774
2785
  const { layout: C } = d, { width: m, height: f } = C;
2775
- !s || s.width + m + Ue > i ? (s = {
2786
+ !s || s.width + m + ke > i ? (s = {
2776
2787
  width: m,
2777
2788
  height: f,
2778
2789
  items: [{
@@ -2781,44 +2792,44 @@ function ke(t, e, a, n) {
2781
2792
  }]
2782
2793
  }, c.push(s)) : (s.items.push({
2783
2794
  ...d,
2784
- left: s.width + Ue
2785
- }), s.width = s.width + m + Ue);
2795
+ left: s.width + ke
2796
+ }), s.width = s.width + m + ke);
2786
2797
  });
2787
2798
  let u = 0, h = 0;
2788
2799
  return c.forEach((d, C) => {
2789
- h = Math.max(h, d.width), C === c.length - 1 ? u += d.height : u += d.height + Na;
2800
+ h = Math.max(h, d.width), C === c.length - 1 ? u += d.height : u += d.height + Bo;
2790
2801
  }), {
2791
2802
  lines: c,
2792
2803
  totalHeight: u,
2793
2804
  contentWidth: i,
2794
2805
  contentHeight: r,
2795
- cellAutoHeight: u + ye * 2,
2796
- calcAutoWidth: h + o
2806
+ cellAutoHeight: u + Me * 2,
2807
+ calcAutoWidth: h + a
2797
2808
  };
2798
2809
  }
2799
- const rs = 8;
2800
- class ss extends uo {
2801
- static drawWith(e, a) {
2802
- const { fontString: n, info: o, fill: i, color: r } = a, { layout: l, text: s } = o;
2803
- e.save(), Yn.drawWith(e, {
2810
+ const ls = 8;
2811
+ class ds extends fa {
2812
+ static drawWith(e, o) {
2813
+ const { fontString: n, info: a, fill: i, color: r } = o, { layout: l, text: s } = a;
2814
+ e.save(), zn.drawWith(e, {
2804
2815
  width: l.width,
2805
2816
  height: l.height,
2806
- radius: rs,
2807
- fill: i || $t
2808
- }), e.translateWithPrecision(Fa, l.ba), e.font = n, e.fillStyle = r, e.fillText(s, 0, 0), e.restore();
2817
+ radius: ls,
2818
+ fill: i || Pt
2819
+ }), e.translateWithPrecision(ko, l.ba), e.font = n, e.fillStyle = r, e.fillText(s, 0, 0), e.restore();
2809
2820
  }
2810
2821
  }
2811
- var ls = Object.defineProperty, ds = Object.getOwnPropertyDescriptor, cs = (t, e, a, n) => {
2812
- for (var o = n > 1 ? void 0 : n ? ds(e, a) : e, i = t.length - 1, r; i >= 0; i--)
2813
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
2814
- return n && o && ls(e, a, o), o;
2815
- }, us = (t, e) => (a, n) => e(a, n, t);
2816
- const hs = 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");
2817
- let on = class {
2818
- constructor(t) {
2819
- F(this, "zIndex");
2820
- F(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2821
- this._commandService = t;
2822
+ var cs = Object.defineProperty, us = Object.getOwnPropertyDescriptor, hs = (t, e, o, n) => {
2823
+ for (var a = n > 1 ? void 0 : n ? us(e, o) : e, i = t.length - 1, r; i >= 0; i--)
2824
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
2825
+ return n && a && cs(e, o, a), a;
2826
+ }, Nn = (t, e) => (o, n) => e(o, n, t);
2827
+ const fs = 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");
2828
+ let sn = class {
2829
+ constructor(t, e) {
2830
+ k(this, "zIndex");
2831
+ k(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2832
+ this._commandService = t, this._renderManagerService = e;
2822
2833
  }
2823
2834
  _ensureMap(t) {
2824
2835
  let e = this._dropdownInfoMap.get(t);
@@ -2827,10 +2838,10 @@ let on = class {
2827
2838
  _generateKey(t, e) {
2828
2839
  return `${t}.${e}`;
2829
2840
  }
2830
- _drawDownIcon(t, e, a, n, o) {
2831
- const i = a - Ot + 4;
2841
+ _drawDownIcon(t, e, o, n, a) {
2842
+ const i = o - Ot + 4;
2832
2843
  let r = 4;
2833
- switch (o) {
2844
+ switch (a) {
2834
2845
  case ut.MIDDLE:
2835
2846
  r = (n - Ot) / 2 + 4;
2836
2847
  break;
@@ -2838,12 +2849,12 @@ let on = class {
2838
2849
  r = n - Ot + 4;
2839
2850
  break;
2840
2851
  }
2841
- t.save(), t.translateWithPrecision(e.startX + i, e.startY + r), t.fillStyle = "#565656", t.fill(hs), t.restore();
2852
+ t.save(), t.translateWithPrecision(e.startX + i, e.startY + r), t.fillStyle = "#565656", t.fill(fs), t.restore();
2842
2853
  }
2843
2854
  // eslint-disable-next-line max-lines-per-function
2844
- drawWith(t, e, a, n) {
2845
- var b, k;
2846
- const { primaryWithCoord: o, row: i, col: r, style: l, data: s, subUnitId: c } = e, u = o.isMergedMainCell ? o.mergeInfo : o, h = s.fontRenderExtension, { leftOffset: d = 0, rightOffset: C = 0, topOffset: m = 0, downOffset: f = 0 } = h || {}, D = s.dataValidation, y = this._ensureMap(c), V = this._generateKey(i, r);
2855
+ drawWith(t, e, o, n) {
2856
+ var b, U;
2857
+ const { primaryWithCoord: a, row: i, col: r, style: l, data: s, subUnitId: c } = e, u = a.isMergedMainCell ? a.mergeInfo : a, h = s.fontRenderExtension, { leftOffset: d = 0, rightOffset: C = 0, topOffset: m = 0, downOffset: f = 0 } = h || {}, D = s.dataValidation, y = this._ensureMap(c), V = this._generateKey(i, r);
2847
2858
  if (!D)
2848
2859
  return;
2849
2860
  const S = {
@@ -2851,47 +2862,47 @@ let on = class {
2851
2862
  endX: u.endX - C,
2852
2863
  startY: u.startY + m,
2853
2864
  endY: u.endY - f
2854
- }, x = S.endX - S.startX, E = S.endY - S.startY, { cl: $ } = l || {}, R = (b = typeof $ == "object" ? $ == null ? void 0 : $.rgb : $) != null ? b : "#000", P = Le(l != null ? l : void 0), { rule: j, validator: A } = D, M = A, { vt: U, ht: B } = l || {}, w = U != null ? U : ut.MIDDLE, v = (k = st(s)) != null ? k : "", g = M.parseCellValue(v), I = M.getListWithColorMap(j), _ = ke(g, P, x, E);
2855
- this._drawDownIcon(t, S, x, E, w), t.save(), t.translateWithPrecision(S.startX, S.startY), t.beginPath(), t.rect(0, 0, x - Ot, E), t.clip(), t.translateWithPrecision(an, ye);
2856
- let L = 0;
2865
+ }, x = S.endX - S.startX, O = S.endY - S.startY, { cl: T } = l || {}, R = (b = typeof T == "object" ? T == null ? void 0 : T.rgb : T) != null ? b : "#000", P = xe(l != null ? l : void 0), { rule: j, validator: A } = D, M = A, { vt: N, ht: B } = l || {}, w = N != null ? N : ut.MIDDLE, v = (U = st(s)) != null ? U : "", g = M.parseCellValue(v), I = M.getListWithColorMap(j), _ = Be(g, P, x, O);
2866
+ this._drawDownIcon(t, S, x, O, w), t.save(), t.translateWithPrecision(S.startX, S.startY), t.beginPath(), t.rect(0, 0, x - Ot, O), t.clip(), t.translateWithPrecision(rn, Me);
2867
+ let $ = 0;
2857
2868
  switch (w) {
2858
2869
  case ut.MIDDLE:
2859
- L = (_.contentHeight - _.totalHeight) / 2;
2870
+ $ = (_.contentHeight - _.totalHeight) / 2;
2860
2871
  break;
2861
2872
  case ut.BOTTOM:
2862
- L = _.contentHeight - _.totalHeight;
2873
+ $ = _.contentHeight - _.totalHeight;
2863
2874
  break;
2864
2875
  }
2865
- t.translateWithPrecision(0, L), _.lines.forEach((X, K) => {
2876
+ t.translateWithPrecision(0, $), _.lines.forEach((X, K) => {
2866
2877
  t.save();
2867
2878
  const { width: G, height: Z, items: J } = X;
2868
- let T = 0;
2879
+ let L = 0;
2869
2880
  switch (B) {
2870
2881
  case Wt.RIGHT:
2871
- T = _.contentWidth - G;
2882
+ L = _.contentWidth - G;
2872
2883
  break;
2873
2884
  case Wt.CENTER:
2874
- T = (_.contentWidth - G) / 2;
2885
+ L = (_.contentWidth - G) / 2;
2875
2886
  break;
2876
2887
  }
2877
- t.translate(T, K * (Z + Na)), J.forEach((O) => {
2878
- t.save(), t.translateWithPrecision(O.left, 0), ss.drawWith(t, {
2888
+ t.translate(L, K * (Z + Bo)), J.forEach((E) => {
2889
+ t.save(), t.translateWithPrecision(E.left, 0), ds.drawWith(t, {
2879
2890
  ...P,
2880
- info: O,
2891
+ info: E,
2881
2892
  color: R,
2882
- fill: I[O.text]
2893
+ fill: I[E.text]
2883
2894
  }), t.restore();
2884
2895
  }), t.restore();
2885
2896
  }), t.restore(), y.set(V, {
2886
2897
  left: S.startX,
2887
2898
  top: S.startY,
2888
- width: _.contentWidth + an + Ot,
2889
- height: _.contentHeight + ye * 2
2899
+ width: _.contentWidth + rn + Ot,
2900
+ height: _.contentHeight + Me * 2
2890
2901
  });
2891
2902
  }
2892
2903
  calcCellAutoHeight(t) {
2893
2904
  var x;
2894
- const { primaryWithCoord: e, style: a, data: n } = t, o = n.fontRenderExtension, { leftOffset: i = 0, rightOffset: r = 0, topOffset: l = 0, downOffset: s = 0 } = o || {}, c = e.isMergedMainCell ? e.mergeInfo : e, u = {
2905
+ const { primaryWithCoord: e, style: o, data: n } = t, a = n.fontRenderExtension, { leftOffset: i = 0, rightOffset: r = 0, topOffset: l = 0, downOffset: s = 0 } = a || {}, c = e.isMergedMainCell ? e.mergeInfo : e, u = {
2895
2906
  startX: c.startX + i,
2896
2907
  endX: c.endX - r,
2897
2908
  startY: c.startY + l,
@@ -2899,12 +2910,12 @@ let on = class {
2899
2910
  }, h = n.dataValidation;
2900
2911
  if (!h)
2901
2912
  return;
2902
- const d = u.endX - u.startX, C = u.endY - u.startY, m = (x = st(n)) != null ? x : "", { validator: f } = h, y = f.parseCellValue(m), V = Le(a != null ? a : void 0);
2903
- return ke(y, V, d, C).cellAutoHeight;
2913
+ const d = u.endX - u.startX, C = u.endY - u.startY, m = (x = st(n)) != null ? x : "", { validator: f } = h, y = f.parseCellValue(m), V = xe(o != null ? o : void 0);
2914
+ return Be(y, V, d, C).cellAutoHeight;
2904
2915
  }
2905
2916
  calcCellAutoWidth(t) {
2906
2917
  var x;
2907
- const { primaryWithCoord: e, style: a, data: n } = t, o = n.fontRenderExtension, { leftOffset: i = 0, rightOffset: r = 0, topOffset: l = 0, downOffset: s = 0 } = o || {}, c = e.isMergedMainCell ? e.mergeInfo : e, u = {
2918
+ const { primaryWithCoord: e, style: o, data: n } = t, a = n.fontRenderExtension, { leftOffset: i = 0, rightOffset: r = 0, topOffset: l = 0, downOffset: s = 0 } = a || {}, c = e.isMergedMainCell ? e.mergeInfo : e, u = {
2908
2919
  startX: c.startX + i,
2909
2920
  endX: c.endX - r,
2910
2921
  startY: c.startY + l,
@@ -2912,63 +2923,72 @@ let on = class {
2912
2923
  }, h = n.dataValidation;
2913
2924
  if (!h)
2914
2925
  return;
2915
- const d = u.endX - u.startX, C = u.endY - u.startY, m = (x = st(n)) != null ? x : "", { validator: f } = h, y = f.parseCellValue(m), V = Le(a != null ? a : void 0);
2916
- return ke(y, V, d, C).calcAutoWidth;
2926
+ const d = u.endX - u.startX, C = u.endY - u.startY, m = (x = st(n)) != null ? x : "", { validator: f } = h, y = f.parseCellValue(m), V = xe(o != null ? o : void 0);
2927
+ return Be(y, V, d, C).calcAutoWidth;
2917
2928
  }
2918
2929
  isHit(t, e) {
2919
- const { primaryWithCoord: a } = e, n = a.isMergedMainCell ? a.mergeInfo : a, { endX: o } = n, { x: i } = t;
2920
- return i >= o - Ot && i <= o;
2930
+ const { primaryWithCoord: o } = e, n = o.isMergedMainCell ? o.mergeInfo : o, { endX: a } = n, { x: i } = t;
2931
+ return i >= a - Ot && i <= a;
2921
2932
  }
2922
2933
  onPointerDown(t, e) {
2923
2934
  if (e.button === 2)
2924
2935
  return;
2925
- const { unitId: a, subUnitId: n, row: o, col: i } = t, r = {
2926
- unitId: a,
2936
+ const { unitId: o, subUnitId: n, row: a, col: i } = t, r = {
2937
+ unitId: o,
2927
2938
  subUnitId: n,
2928
- row: o,
2939
+ row: a,
2929
2940
  column: i
2930
2941
  };
2931
- this._commandService.executeCommand(Ee.id, r);
2942
+ this._commandService.executeCommand(Pe.id, r);
2943
+ }
2944
+ onPointerEnter(t, e) {
2945
+ var o, n;
2946
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Q.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Yt.POINTER);
2947
+ }
2948
+ onPointerLeave(t, e) {
2949
+ var o, n;
2950
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Q.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Yt.DEFAULT);
2932
2951
  }
2933
2952
  };
2934
- on = cs([
2935
- us(0, at)
2936
- ], on);
2937
- class fs extends mt {
2953
+ sn = hs([
2954
+ Nn(0, at),
2955
+ Nn(1, Y(Rt))
2956
+ ], sn);
2957
+ class ps extends mt {
2938
2958
  constructor() {
2939
2959
  super(...arguments);
2940
- F(this, "id", et.LIST_MULTIPLE);
2941
- F(this, "canvasRender", this.injector.createInstance(on));
2942
- F(this, "dropdown", wn);
2960
+ k(this, "id", nt.LIST_MULTIPLE);
2961
+ k(this, "canvasRender", this.injector.createInstance(sn));
2962
+ k(this, "dropdown", Dn);
2943
2963
  }
2944
2964
  }
2945
- var ps = Object.defineProperty, ms = Object.getOwnPropertyDescriptor, gs = (t, e, a, n) => {
2946
- for (var o = n > 1 ? void 0 : n ? ms(e, a) : e, i = t.length - 1, r; i >= 0; i--)
2947
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
2948
- return n && o && ps(e, a, o), o;
2949
- }, jn = (t, e) => (a, n) => e(a, n, t);
2950
- const bt = 4, ue = 4, ht = 14, ft = 6, kt = 4, Be = 8, vs = "#565656", Fn = 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");
2951
- function _s(t, e) {
2952
- const a = t.length;
2965
+ var ms = Object.defineProperty, gs = Object.getOwnPropertyDescriptor, vs = (t, e, o, n) => {
2966
+ for (var a = n > 1 ? void 0 : n ? gs(e, o) : e, i = t.length - 1, r; i >= 0; i--)
2967
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
2968
+ return n && a && ms(e, o, a), a;
2969
+ }, He = (t, e) => (o, n) => e(o, n, t);
2970
+ const Et = 4, fe = 4, ht = 14, ft = 6, Bt = 4, We = 8, _s = "#565656", Un = 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");
2971
+ function Ss(t, e) {
2972
+ const o = t.length;
2953
2973
  return {
2954
2974
  id: "d",
2955
2975
  body: {
2956
- dataStream: `${t}${ao}`,
2976
+ dataStream: `${t}${ra}`,
2957
2977
  textRuns: [
2958
2978
  {
2959
2979
  ts: {
2960
2980
  fs: 11,
2961
2981
  ff: void 0,
2962
- it: Zt.FALSE,
2963
- bl: Zt.FALSE,
2982
+ it: Jt.FALSE,
2983
+ bl: Jt.FALSE,
2964
2984
  ul: {
2965
- s: Zt.FALSE
2985
+ s: Jt.FALSE
2966
2986
  },
2967
2987
  st: {
2968
- s: Zt.FALSE
2988
+ s: Jt.FALSE
2969
2989
  },
2970
2990
  ol: {
2971
- s: Zt.FALSE
2991
+ s: Jt.FALSE
2972
2992
  },
2973
2993
  cl: void 0,
2974
2994
  ...e,
@@ -2976,7 +2996,7 @@ function _s(t, e) {
2976
2996
  bd: void 0
2977
2997
  },
2978
2998
  st: 0,
2979
- ed: a
2999
+ ed: o
2980
3000
  }
2981
3001
  ]
2982
3002
  },
@@ -2988,34 +3008,34 @@ function _s(t, e) {
2988
3008
  }
2989
3009
  };
2990
3010
  }
2991
- function Ua(t, e, a) {
2992
- const n = _s(t, a), o = new no(n), i = new ho(o);
3011
+ function Ho(t, e, o) {
3012
+ const n = Ss(t, o), a = new ia(n), i = new pa(a);
2993
3013
  return {
2994
- documentSkeleton: fo.create(i, e),
2995
- docModel: o,
3014
+ documentSkeleton: ma.create(i, e),
3015
+ docModel: a,
2996
3016
  docViewModel: i
2997
3017
  };
2998
3018
  }
2999
- function he(t, e, a) {
3019
+ function pe(t, e, o) {
3000
3020
  const {
3001
3021
  documentSkeleton: n,
3002
- docModel: o,
3022
+ docModel: a,
3003
3023
  docViewModel: i
3004
- } = Ua(t, e, a);
3024
+ } = Ho(t, e, o);
3005
3025
  return {
3006
- documents: new po(`DOCUMENTS_${Ge.generateRandomId()}`, n, {
3026
+ documents: new ga(`DOCUMENTS_${qe.generateRandomId()}`, n, {
3007
3027
  pageMarginLeft: 0,
3008
3028
  pageMarginTop: 0
3009
3029
  }),
3010
3030
  documentSkeleton: n,
3011
- docModel: o,
3031
+ docModel: a,
3012
3032
  docViewModel: i
3013
3033
  };
3014
3034
  }
3015
- function Nn(t, e, a, n, o, i, r = !0) {
3035
+ function kn(t, e, o, n, a, i, r = !0) {
3016
3036
  let l = 0;
3017
- const s = r ? kt : 0;
3018
- switch (o) {
3037
+ const s = r ? Bt : 0;
3038
+ switch (a) {
3019
3039
  case ut.BOTTOM:
3020
3040
  l = e - n - s;
3021
3041
  break;
@@ -3026,14 +3046,14 @@ function Nn(t, e, a, n, o, i, r = !0) {
3026
3046
  l = s;
3027
3047
  break;
3028
3048
  }
3029
- l = Math.max(kt, l);
3049
+ l = Math.max(Bt, l);
3030
3050
  let c = 0;
3031
3051
  switch (i) {
3032
3052
  case Wt.CENTER:
3033
- c = (t - a) / 2;
3053
+ c = (t - o) / 2;
3034
3054
  break;
3035
3055
  case Wt.RIGHT:
3036
- c = t - a;
3056
+ c = t - o;
3037
3057
  break;
3038
3058
  }
3039
3059
  return c = Math.max(ft, c), {
@@ -3041,13 +3061,11 @@ function Nn(t, e, a, n, o, i, r = !0) {
3041
3061
  paddingTop: l
3042
3062
  };
3043
3063
  }
3044
- let rn = class {
3045
- constructor(t, e) {
3046
- F(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
3047
- F(this, "zIndex");
3048
- F(this, "onPointerEnter");
3049
- F(this, "onPointerLeave");
3050
- this._localeService = t, this._commandService = e;
3064
+ let ln = class {
3065
+ constructor(t, e, o) {
3066
+ k(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
3067
+ k(this, "zIndex");
3068
+ this._localeService = t, this._commandService = e, this._renderManagerService = o;
3051
3069
  }
3052
3070
  _ensureMap(t) {
3053
3071
  let e = this._dropdownInfoMap.get(t);
@@ -3056,60 +3074,60 @@ let rn = class {
3056
3074
  _generateKey(t, e) {
3057
3075
  return `${t}.${e}`;
3058
3076
  }
3059
- _drawDownIcon(t, e, a, n, o, i, r) {
3060
- const { t: l = lt.pd.t, b: s = lt.pd.b } = r, c = a - ht;
3077
+ _drawDownIcon(t, e, o, n, a, i, r) {
3078
+ const { t: l = lt.pd.t, b: s = lt.pd.b } = r, c = o - ht;
3061
3079
  let u;
3062
3080
  switch (i) {
3063
3081
  case ut.MIDDLE:
3064
- u = (n - ue) / 2;
3082
+ u = (n - fe) / 2;
3065
3083
  break;
3066
3084
  case ut.BOTTOM:
3067
- u = n - s - o - kt + (o / 2 - ue / 2);
3085
+ u = n - s - a - Bt + (a / 2 - fe / 2);
3068
3086
  break;
3069
3087
  default:
3070
- u = l + kt + (o / 2 - ue / 2);
3088
+ u = l + Bt + (a / 2 - fe / 2);
3071
3089
  break;
3072
3090
  }
3073
- t.save(), t.translateWithPrecision(e.startX + c, e.startY + u), t.fillStyle = "#565656", t.fill(Fn), t.restore();
3091
+ t.save(), t.translateWithPrecision(e.startX + c, e.startY + u), t.fillStyle = "#565656", t.fill(Un), t.restore();
3074
3092
  }
3075
3093
  // eslint-disable-next-line max-lines-per-function, complexity
3076
- drawWith(t, e, a) {
3094
+ drawWith(t, e, o) {
3077
3095
  var w, v;
3078
- const { primaryWithCoord: n, row: o, col: i, style: r, data: l, subUnitId: s } = e, c = n.isMergedMainCell ? n.mergeInfo : n, u = (w = l.dataValidation) == null ? void 0 : w.rule, h = (v = l.dataValidation) == null ? void 0 : v.validator, d = l.fontRenderExtension, { leftOffset: C = 0, rightOffset: m = 0, topOffset: f = 0, downOffset: D = 0 } = d || {};
3079
- if (!u || !h || !h || h.id.indexOf(et.LIST) !== 0 || !h.skipDefaultFontRender(u))
3096
+ const { primaryWithCoord: n, row: a, col: i, style: r, data: l, subUnitId: s } = e, c = n.isMergedMainCell ? n.mergeInfo : n, u = (w = l.dataValidation) == null ? void 0 : w.rule, h = (v = l.dataValidation) == null ? void 0 : v.validator, d = l.fontRenderExtension, { leftOffset: C = 0, rightOffset: m = 0, topOffset: f = 0, downOffset: D = 0 } = d || {};
3097
+ if (!u || !h || !h || h.id.indexOf(nt.LIST) !== 0 || !h.skipDefaultFontRender(u))
3080
3098
  return;
3081
3099
  const y = {
3082
3100
  startX: c.startX + C,
3083
3101
  endX: c.endX - m,
3084
3102
  startY: c.startY + f,
3085
3103
  endY: c.endY - D
3086
- }, V = y.endX - y.startX, S = y.endY - y.startY, x = this._ensureMap(s), E = this._generateKey(o, i), $ = h.getListWithColor(u), R = st(l), P = `${R != null ? R : ""}`, j = $.find((g) => g.label === P);
3087
- let { tb: A, vt: M, ht: U, pd: B } = r || {};
3088
- if (A = A != null ? A : _t.WRAP, M = M != null ? M : ut.BOTTOM, U = U != null ? U : lt.ht, B = B != null ? B : lt.pd, u.renderMode === dt.ARROW) {
3089
- const { l: g = lt.pd.l, t: I = lt.pd.t, r: _ = lt.pd.r, b: L = lt.pd.b } = B, b = V - g - _ - ht - 4, { documentSkeleton: k, documents: X, docModel: K } = he(P, this._localeService, r);
3090
- A === _t.WRAP && K.updateDocumentDataPageSize(Math.max(b, 1)), k.calculate(), k.getActualSize();
3091
- const G = qt(k), { height: Z, width: J } = G, { paddingTop: T, paddingLeft: O } = Nn(b, S - I - L, J, Z, M, U, !0);
3092
- this._drawDownIcon(t, y, V, S, Z, M, B), t.save(), t.translateWithPrecision(y.startX + g, y.startY + I), t.beginPath(), t.rect(0, 0, V - g - _, S - I - L), t.clip(), t.translateWithPrecision(0, T), t.save(), t.translateWithPrecision(bt, 0), t.beginPath(), t.rect(0, 0, b, Z), t.clip(), X.render(t), t.translateWithPrecision(O, 0), t.restore(), t.restore(), x.set(E, {
3093
- left: y.endX + g + a.rowHeaderWidth - ht,
3094
- top: y.startY + I + a.columnHeaderHeight,
3104
+ }, V = y.endX - y.startX, S = y.endY - y.startY, x = this._ensureMap(s), O = this._generateKey(a, i), T = h.getListWithColor(u), R = st(l), P = `${R != null ? R : ""}`, j = T.find((g) => g.label === P);
3105
+ let { tb: A, vt: M, ht: N, pd: B } = r || {};
3106
+ if (A = A != null ? A : _t.WRAP, M = M != null ? M : ut.BOTTOM, N = N != null ? N : lt.ht, B = B != null ? B : lt.pd, u.renderMode === dt.ARROW) {
3107
+ const { l: g = lt.pd.l, t: I = lt.pd.t, r: _ = lt.pd.r, b: $ = lt.pd.b } = B, b = V - g - _ - ht - 4, { documentSkeleton: U, documents: X, docModel: K } = pe(P, this._localeService, r);
3108
+ A === _t.WRAP && K.updateDocumentDataPageSize(Math.max(b, 1)), U.calculate(), U.getActualSize();
3109
+ const G = Qt(U), { height: Z, width: J } = G, { paddingTop: L, paddingLeft: E } = kn(b, S - I - $, J, Z, M, N, !0);
3110
+ this._drawDownIcon(t, y, V, S, Z, M, B), t.save(), t.translateWithPrecision(y.startX + g, y.startY + I), t.beginPath(), t.rect(0, 0, V - g - _, S - I - $), t.clip(), t.translateWithPrecision(0, L), t.save(), t.translateWithPrecision(Et, 0), t.beginPath(), t.rect(0, 0, b, Z), t.clip(), X.render(t), t.translateWithPrecision(E, 0), t.restore(), t.restore(), x.set(O, {
3111
+ left: y.endX + g + o.rowHeaderWidth - ht,
3112
+ top: y.startY + I + o.columnHeaderHeight,
3095
3113
  width: ht,
3096
- height: S - I - L
3114
+ height: S - I - $
3097
3115
  });
3098
3116
  } else {
3099
3117
  t.save(), t.translateWithPrecision(y.startX, y.startY), t.beginPath(), t.rect(0, 0, V, S), t.clip();
3100
- const g = V - ft * 2 - bt - ht - 4, { documentSkeleton: I, documents: _, docModel: L } = he(P, this._localeService, r);
3101
- A === _t.WRAP && L.updateDocumentDataPageSize(Math.max(g, 1)), I.calculate();
3102
- const b = qt(I), { height: k, width: X } = b, { paddingTop: K, paddingLeft: G } = Nn(g, S, X, k, M, U);
3118
+ const g = V - ft * 2 - Et - ht - 4, { documentSkeleton: I, documents: _, docModel: $ } = pe(P, this._localeService, r);
3119
+ A === _t.WRAP && $.updateDocumentDataPageSize(Math.max(g, 1)), I.calculate();
3120
+ const b = Qt(I), { height: U, width: X } = b, { paddingTop: K, paddingLeft: G } = kn(g, S, X, U, M, N);
3103
3121
  t.translateWithPrecision(ft, K);
3104
- const Z = Math.max(V - ft * 2, 1), J = k;
3105
- Yn.drawWith(t, {
3122
+ const Z = Math.max(V - ft * 2, 1), J = U;
3123
+ zn.drawWith(t, {
3106
3124
  width: Z,
3107
3125
  height: J,
3108
- fill: (j == null ? void 0 : j.color) || $t,
3109
- radius: Be
3110
- }), t.save(), t.translateWithPrecision(bt, 0), t.beginPath(), t.rect(0, 0, g, k), t.clip(), t.translateWithPrecision(G, 0), _.render(t), t.restore(), t.translateWithPrecision(g + bt + 4, (k - ue) / 2), t.fillStyle = vs, t.fill(Fn), t.restore(), x.set(E, {
3111
- left: y.startX + ft + a.rowHeaderWidth,
3112
- top: y.startY + K + a.columnHeaderHeight,
3126
+ fill: (j == null ? void 0 : j.color) || Pt,
3127
+ radius: We
3128
+ }), t.save(), t.translateWithPrecision(Et, 0), t.beginPath(), t.rect(0, 0, g, U), t.clip(), t.translateWithPrecision(G, 0), _.render(t), t.restore(), t.translateWithPrecision(g + Et + 4, (U - fe) / 2), t.fillStyle = _s, t.fill(Un), t.restore(), x.set(O, {
3129
+ left: y.startX + ft + o.rowHeaderWidth,
3130
+ top: y.startY + K + o.columnHeaderHeight,
3113
3131
  width: Z,
3114
3132
  height: J
3115
3133
  });
@@ -3117,42 +3135,42 @@ let rn = class {
3117
3135
  }
3118
3136
  calcCellAutoHeight(t) {
3119
3137
  var S;
3120
- const { primaryWithCoord: e, style: a, data: n } = t, o = e.isMergedMainCell ? e.mergeInfo : e, i = n.fontRenderExtension, { leftOffset: r = 0, rightOffset: l = 0, topOffset: s = 0, downOffset: c = 0 } = i || {}, u = (S = n.dataValidation) == null ? void 0 : S.rule;
3138
+ const { primaryWithCoord: e, style: o, data: n } = t, a = e.isMergedMainCell ? e.mergeInfo : e, i = n.fontRenderExtension, { leftOffset: r = 0, rightOffset: l = 0, topOffset: s = 0, downOffset: c = 0 } = i || {}, u = (S = n.dataValidation) == null ? void 0 : S.rule;
3121
3139
  if (!u || u.renderMode === dt.TEXT)
3122
3140
  return;
3123
3141
  const h = {
3124
- startX: o.startX + r,
3125
- endX: o.endX - l,
3126
- startY: o.startY + s,
3127
- endY: o.endY - c
3142
+ startX: a.startX + r,
3143
+ endX: a.endX - l,
3144
+ startY: a.startY + s,
3145
+ endY: a.endY - c
3128
3146
  }, d = h.endX - h.startX, C = st(n), m = `${C != null ? C : ""}`;
3129
- let { tb: f, pd: D } = a || {};
3147
+ let { tb: f, pd: D } = o || {};
3130
3148
  const { t: y = lt.pd.t, b: V = lt.pd.b } = D != null ? D : {};
3131
3149
  if (f = f != null ? f : _t.WRAP, u.renderMode === dt.ARROW) {
3132
- const x = d - ht, { documentSkeleton: E, docModel: $ } = he(m, this._localeService, a);
3133
- f === _t.WRAP && $.updateDocumentDataPageSize(Math.max(x, 1)), E.calculate(), E.getActualSize();
3134
- const R = qt(E), { height: P } = R;
3135
- return P + y + V + kt * 2;
3150
+ const x = d - ht, { documentSkeleton: O, docModel: T } = pe(m, this._localeService, o);
3151
+ f === _t.WRAP && T.updateDocumentDataPageSize(Math.max(x, 1)), O.calculate(), O.getActualSize();
3152
+ const R = Qt(O), { height: P } = R;
3153
+ return P + y + V + Bt * 2;
3136
3154
  } else {
3137
- const x = d - ft * 2 - bt - ht, { documentSkeleton: E, docModel: $ } = Ua(m, this._localeService, a);
3138
- f === _t.WRAP && $.updateDocumentDataPageSize(Math.max(x, 1)), E.calculate();
3139
- const R = qt(E), {
3155
+ const x = d - ft * 2 - Et - ht, { documentSkeleton: O, docModel: T } = Ho(m, this._localeService, o);
3156
+ f === _t.WRAP && T.updateDocumentDataPageSize(Math.max(x, 1)), O.calculate();
3157
+ const R = Qt(O), {
3140
3158
  height: P
3141
3159
  } = R;
3142
- return P + kt * 2;
3160
+ return P + Bt * 2;
3143
3161
  }
3144
3162
  }
3145
3163
  calcCellAutoWidth(t) {
3146
3164
  var P;
3147
- const { primaryWithCoord: e, style: a, data: n } = t, o = e.isMergedMainCell ? e.mergeInfo : e, i = n.fontRenderExtension, { leftOffset: r = 0, rightOffset: l = 0, topOffset: s = 0, downOffset: c = 0 } = i || {}, u = (P = n.dataValidation) == null ? void 0 : P.rule;
3165
+ const { primaryWithCoord: e, style: o, data: n } = t, a = e.isMergedMainCell ? e.mergeInfo : e, i = n.fontRenderExtension, { leftOffset: r = 0, rightOffset: l = 0, topOffset: s = 0, downOffset: c = 0 } = i || {}, u = (P = n.dataValidation) == null ? void 0 : P.rule;
3148
3166
  if (!u || u.renderMode === dt.TEXT) return;
3149
3167
  const h = {
3150
- startX: o.startX + r,
3151
- endX: o.endX - l,
3152
- startY: o.startY + s,
3153
- endY: o.endY - c
3168
+ startX: a.startX + r,
3169
+ endX: a.endX - l,
3170
+ startY: a.startY + s,
3171
+ endY: a.endY - c
3154
3172
  }, d = h.endX - h.startX, C = st(n), m = `${C != null ? C : ""}`;
3155
- let { tb: f, pd: D } = a || {};
3173
+ let { tb: f, pd: D } = o || {};
3156
3174
  const { l: y = lt.pd.l, r: V = lt.pd.r } = D != null ? D : {};
3157
3175
  f = f != null ? f : _t.WRAP;
3158
3176
  let S = ft * 2 + ht;
@@ -3161,16 +3179,16 @@ let rn = class {
3161
3179
  S = ht + ft * 2 + V + y;
3162
3180
  break;
3163
3181
  case dt.CUSTOM:
3164
- S = ht + ft * 2 + bt * 2 + V + y + Be / 2 + 1;
3182
+ S = ht + ft * 2 + Et * 2 + V + y + We / 2 + 1;
3165
3183
  break;
3166
3184
  default:
3167
- S = ht + ft * 2 + bt * 2 + V + y + Be / 2 + 1;
3185
+ S = ht + ft * 2 + Et * 2 + V + y + We / 2 + 1;
3168
3186
  }
3169
- const x = d - S, { documentSkeleton: E, docModel: $ } = he(m, this._localeService, a);
3170
- return f === _t.WRAP && $.updateDocumentDataPageSize(Math.max(x, 1)), E.calculate(), E.getActualSize(), qt(E).width + S;
3187
+ const x = d - S, { documentSkeleton: O, docModel: T } = pe(m, this._localeService, o);
3188
+ return f === _t.WRAP && T.updateDocumentDataPageSize(Math.max(x, 1)), O.calculate(), O.getActualSize(), Qt(O).width + S;
3171
3189
  }
3172
3190
  isHit(t, e) {
3173
- const { data: a, subUnitId: n, row: o, col: i } = e, l = this._ensureMap(n).get(this._generateKey(o, i)), s = a.dataValidation;
3191
+ const { data: o, subUnitId: n, row: a, col: i } = e, l = this._ensureMap(n).get(this._generateKey(a, i)), s = o.dataValidation;
3174
3192
  if (!s || !l || s.rule.renderMode === dt.TEXT)
3175
3193
  return !1;
3176
3194
  const { top: c, left: u, width: h, height: d } = l, { x: C, y: m } = t;
@@ -3179,62 +3197,71 @@ let rn = class {
3179
3197
  onPointerDown(t, e) {
3180
3198
  if (e.button === 2)
3181
3199
  return;
3182
- const { unitId: a, subUnitId: n, row: o, col: i } = t, r = {
3183
- unitId: a,
3200
+ const { unitId: o, subUnitId: n, row: a, col: i } = t, r = {
3201
+ unitId: o,
3184
3202
  subUnitId: n,
3185
- row: o,
3203
+ row: a,
3186
3204
  column: i
3187
3205
  };
3188
- this._commandService.executeCommand(Ee.id, r);
3206
+ this._commandService.executeCommand(Pe.id, r);
3207
+ }
3208
+ onPointerEnter(t, e) {
3209
+ var o, n;
3210
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Q.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Yt.POINTER);
3211
+ }
3212
+ onPointerLeave(t, e) {
3213
+ var o, n;
3214
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Q.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Yt.DEFAULT);
3189
3215
  }
3190
3216
  };
3191
- rn = gs([
3192
- jn(0, Y(nt)),
3193
- jn(1, at)
3194
- ], rn);
3195
- class Ss extends mt {
3217
+ ln = vs([
3218
+ He(0, Y(ot)),
3219
+ He(1, at),
3220
+ He(2, Y(Rt))
3221
+ ], ln);
3222
+ class Cs extends mt {
3196
3223
  constructor() {
3197
3224
  super(...arguments);
3198
- F(this, "id", et.LIST);
3199
- F(this, "canvasRender", this.injector.createInstance(rn));
3200
- F(this, "dropdown", wn);
3201
- F(this, "optionsInput", De.componentKey);
3202
- F(this, "formulaInput", In);
3225
+ k(this, "id", nt.LIST);
3226
+ k(this, "canvasRender", this.injector.createInstance(ln));
3227
+ k(this, "dropdown", Dn);
3228
+ k(this, "optionsInput", ye.componentKey);
3229
+ k(this, "formulaInput", Rn);
3203
3230
  }
3204
3231
  }
3205
- class Cs extends mt {
3232
+ class ws extends mt {
3206
3233
  constructor() {
3207
3234
  super(...arguments);
3208
- F(this, "id", et.TEXT_LENGTH);
3209
- F(this, "formulaInput", Pe);
3235
+ k(this, "id", nt.TEXT_LENGTH);
3236
+ k(this, "formulaInput", Le);
3210
3237
  }
3211
3238
  }
3212
- class ws extends mt {
3239
+ class Is extends mt {
3213
3240
  constructor() {
3214
3241
  super(...arguments);
3215
- F(this, "id", et.WHOLE);
3216
- F(this, "formulaInput", Pe);
3242
+ k(this, "id", nt.WHOLE);
3243
+ k(this, "formulaInput", Le);
3217
3244
  }
3218
3245
  }
3219
- var Is = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, Rs = (t, e, a, n) => {
3220
- for (var o = n > 1 ? void 0 : n ? Ds(e, a) : e, i = t.length - 1, r; i >= 0; i--)
3221
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
3222
- return n && o && Is(e, a, o), o;
3223
- }, We = (t, e) => (a, n) => e(a, n, t);
3224
- let Kt = class extends ln {
3225
- constructor(t, e, a) {
3226
- super(), this._injector = t, this._componentManger = e, this._dataValidatorRegistryService = a, this._initComponents(), this._registerValidatorViews();
3246
+ var Ds = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, ys = (t, e, o, n) => {
3247
+ for (var a = n > 1 ? void 0 : n ? Rs(e, o) : e, i = t.length - 1, r; i >= 0; i--)
3248
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
3249
+ return n && a && Ds(e, o, a), a;
3250
+ }, Ye = (t, e) => (o, n) => e(o, n, t);
3251
+ let Zt = class extends cn {
3252
+ constructor(t, e, o) {
3253
+ super(), this._injector = t, this._componentManger = e, this._dataValidatorRegistryService = o, this._initComponents(), this._registerValidatorViews();
3227
3254
  }
3228
3255
  _initComponents() {
3229
3256
  [
3230
- [$a, wa],
3231
- [_n, ir],
3232
- [Va, Ri],
3233
- [wn, Fi],
3234
- [Ea, di],
3235
- [De.componentKey, De],
3236
- [Re.componentKey, Re],
3237
- ...Wr
3257
+ [Lo, Ro],
3258
+ [Cn, sr],
3259
+ [Eo, Vi],
3260
+ [Dn, Ui],
3261
+ [$o, ui],
3262
+ [ye.componentKey, ye],
3263
+ [Ve.componentKey, Ve],
3264
+ ...Yr
3238
3265
  ].forEach(([t, e]) => {
3239
3266
  this.disposeWithMe(this._componentManger.register(
3240
3267
  t,
@@ -3244,137 +3271,137 @@ let Kt = class extends ln {
3244
3271
  }
3245
3272
  _registerValidatorViews() {
3246
3273
  [
3247
- as,
3274
+ is,
3275
+ Is,
3248
3276
  ws,
3277
+ as,
3278
+ es,
3249
3279
  Cs,
3250
- ns,
3251
- Qr,
3252
- Ss,
3253
- fs,
3254
- ts
3280
+ ps,
3281
+ ns
3255
3282
  ].forEach((t) => {
3256
- const e = this._injector.createInstance(t), a = this._dataValidatorRegistryService.getValidatorItem(e.id);
3257
- a && (a.formulaInput = e.formulaInput, a.canvasRender = e.canvasRender, a.dropdown = e.dropdown, a.optionsInput = e.optionsInput);
3283
+ const e = this._injector.createInstance(t), o = this._dataValidatorRegistryService.getValidatorItem(e.id);
3284
+ o && (o.formulaInput = e.formulaInput, o.canvasRender = e.canvasRender, o.dropdown = e.dropdown, o.optionsInput = e.optionsInput);
3258
3285
  });
3259
3286
  }
3260
3287
  };
3261
- Kt = Rs([
3262
- We(0, Y(At)),
3263
- We(1, Y(Me)),
3264
- We(2, Y(yt))
3265
- ], Kt);
3266
- var ys = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, Ms = (t, e, a, n) => {
3267
- for (var o = n > 1 ? void 0 : n ? Vs(e, a) : e, i = t.length - 1, r; i >= 0; i--)
3268
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
3269
- return n && o && ys(e, a, o), o;
3270
- }, He = (t, e) => (a, n) => e(a, n, t);
3271
- const bs = "SHEET_DATA_VALIDATION_UI_PLUGIN";
3272
- var fe;
3273
- let Un = (fe = class extends Hn {
3274
- constructor(t = Oa, e, a, n) {
3275
- super(), this._config = t, this._injector = e, this._commandService = a, this._configService = n;
3276
- const { menu: o, ...i } = this._config;
3277
- o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(Cn, i);
3288
+ Zt = ys([
3289
+ Ye(0, Y(jt)),
3290
+ Ye(1, Y(Ee)),
3291
+ Ye(2, Y(Vt))
3292
+ ], Zt);
3293
+ var Vs = Object.defineProperty, Ms = Object.getOwnPropertyDescriptor, bs = (t, e, o, n) => {
3294
+ for (var a = n > 1 ? void 0 : n ? Ms(e, o) : e, i = t.length - 1, r; i >= 0; i--)
3295
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
3296
+ return n && a && Vs(e, o, a), a;
3297
+ }, Xe = (t, e) => (o, n) => e(o, n, t);
3298
+ const Es = "SHEET_DATA_VALIDATION_UI_PLUGIN";
3299
+ var me;
3300
+ let Bn = (me = class extends Xn {
3301
+ constructor(t = Po, e, o, n) {
3302
+ super(), this._config = t, this._injector = e, this._commandService = o, this._configService = n;
3303
+ const { menu: a, ...i } = this._config;
3304
+ a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(In, i);
3278
3305
  }
3279
3306
  onStarting() {
3280
3307
  [
3281
3308
  [pt],
3282
3309
  [Ct],
3283
- [oe],
3284
- [Ht],
3285
- [zt],
3310
+ [re],
3286
3311
  [Xt],
3287
- [Yt],
3288
- [ae],
3289
- [Kt]
3312
+ [Gt],
3313
+ [Kt],
3314
+ [zt],
3315
+ [ie],
3316
+ [Zt]
3290
3317
  ].forEach((t) => {
3291
3318
  this._injector.add(t);
3292
3319
  }), [
3293
3320
  $e,
3294
- Ee,
3295
- ba,
3296
- Sn,
3297
- Ft,
3298
- Ma
3321
+ Pe,
3322
+ To,
3323
+ wn,
3324
+ Nt,
3325
+ Oo
3299
3326
  ].forEach((t) => {
3300
3327
  this._commandService.registerCommand(t);
3301
3328
  });
3302
3329
  }
3303
3330
  onReady() {
3304
- this._injector.get(Yt), this._injector.get(Xt), this._injector.get(ae), this._injector.get(oe), this._injector.get(ie).registerRenderModule(
3305
- rt.UNIVER_SHEET,
3306
- [Ie]
3331
+ this._injector.get(zt), this._injector.get(Kt), this._injector.get(ie), this._injector.get(re), this._injector.get(Rt).registerRenderModule(
3332
+ Q.UNIVER_SHEET,
3333
+ [Re]
3307
3334
  );
3308
3335
  }
3309
3336
  onRendered() {
3310
- this._injector.get(Kt), this._injector.get(zt);
3337
+ this._injector.get(Zt), this._injector.get(Gt);
3311
3338
  }
3312
3339
  onSteady() {
3313
- this._injector.get(Ht);
3314
- }
3315
- }, F(fe, "pluginName", bs), F(fe, "type", rt.UNIVER_SHEET), fe);
3316
- Un = Ms([
3317
- He(1, Y(At)),
3318
- He(2, at),
3319
- He(3, sn)
3320
- ], Un);
3321
- var Os = Object.defineProperty, Es = Object.getOwnPropertyDescriptor, $s = (t, e, a, n) => {
3322
- for (var o = n > 1 ? void 0 : n ? Es(e, a) : e, i = t.length - 1, r; i >= 0; i--)
3323
- (r = t[i]) && (o = (n ? r(e, a, o) : r(o)) || o);
3324
- return n && o && Os(e, a, o), o;
3325
- }, Ye = (t, e) => (a, n) => e(a, n, t);
3326
- const Ps = "SHEET_DATA_VALIDATION_UI_PLUGIN";
3327
- var pe;
3328
- let kn = (pe = class extends Hn {
3329
- constructor(t = Oa, e, a, n) {
3330
- super(), this._config = t, this._injector = e, this._commandService = a, this._configService = n;
3331
- const { menu: o, ...i } = this._config;
3332
- o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(Cn, i);
3340
+ this._injector.get(Xt);
3341
+ }
3342
+ }, k(me, "pluginName", Es), k(me, "type", Q.UNIVER_SHEET), me);
3343
+ Bn = bs([
3344
+ Xe(1, Y(jt)),
3345
+ Xe(2, at),
3346
+ Xe(3, dn)
3347
+ ], Bn);
3348
+ var Os = Object.defineProperty, Ts = Object.getOwnPropertyDescriptor, Ps = (t, e, o, n) => {
3349
+ for (var a = n > 1 ? void 0 : n ? Ts(e, o) : e, i = t.length - 1, r; i >= 0; i--)
3350
+ (r = t[i]) && (a = (n ? r(e, o, a) : r(a)) || a);
3351
+ return n && a && Os(e, o, a), a;
3352
+ }, ze = (t, e) => (o, n) => e(o, n, t);
3353
+ const $s = "SHEET_DATA_VALIDATION_UI_PLUGIN";
3354
+ var ge;
3355
+ let Hn = (ge = class extends Xn {
3356
+ constructor(t = Po, e, o, n) {
3357
+ super(), this._config = t, this._injector = e, this._commandService = o, this._configService = n;
3358
+ const { menu: a, ...i } = this._config;
3359
+ a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(In, i);
3333
3360
  }
3334
3361
  onStarting() {
3335
3362
  [
3336
3363
  [pt],
3337
3364
  [Ct],
3338
- [oe],
3339
- [Ht],
3340
- [zt],
3365
+ [re],
3341
3366
  [Xt],
3342
- [Yt],
3343
- [Kt]
3367
+ [Gt],
3368
+ [Kt],
3369
+ [zt],
3370
+ [Zt]
3344
3371
  ].forEach((t) => {
3345
3372
  this._injector.add(t);
3346
3373
  }), [
3347
3374
  $e,
3348
- Ee,
3349
- ba,
3350
- Sn,
3351
- Ft,
3352
- Ma
3375
+ Pe,
3376
+ To,
3377
+ wn,
3378
+ Nt,
3379
+ Oo
3353
3380
  ].forEach((t) => {
3354
3381
  this._commandService.registerCommand(t);
3355
3382
  });
3356
3383
  }
3357
3384
  onReady() {
3358
- this._injector.get(Yt), this._injector.get(Xt), this._injector.get(ie).registerRenderModule(
3359
- rt.UNIVER_SHEET,
3360
- [Ie]
3385
+ this._injector.get(zt), this._injector.get(Kt), this._injector.get(Rt).registerRenderModule(
3386
+ Q.UNIVER_SHEET,
3387
+ [Re]
3361
3388
  );
3362
3389
  }
3363
3390
  onRendered() {
3364
- this._injector.get(Kt), this._injector.get(zt);
3391
+ this._injector.get(Zt), this._injector.get(Gt);
3365
3392
  }
3366
3393
  onSteady() {
3367
- this._injector.get(Ht);
3368
- }
3369
- }, F(pe, "pluginName", Ps), F(pe, "type", rt.UNIVER_SHEET), pe);
3370
- kn = $s([
3371
- Ye(1, Y(At)),
3372
- Ye(2, at),
3373
- Ye(3, sn)
3374
- ], kn);
3394
+ this._injector.get(Xt);
3395
+ }
3396
+ }, k(ge, "pluginName", $s), k(ge, "type", Q.UNIVER_SHEET), ge);
3397
+ Hn = Ps([
3398
+ ze(1, Y(jt)),
3399
+ ze(2, at),
3400
+ ze(3, dn)
3401
+ ], Hn);
3375
3402
  export {
3376
- Ea as DATE_DROPDOWN_KEY,
3377
- wn as LIST_DROPDOWN_KEY,
3378
- kn as UniverSheetsDataValidationMobileUIPlugin,
3379
- Un as UniverSheetsDataValidationUIPlugin
3403
+ $o as DATE_DROPDOWN_KEY,
3404
+ Dn as LIST_DROPDOWN_KEY,
3405
+ Hn as UniverSheetsDataValidationMobileUIPlugin,
3406
+ Bn as UniverSheetsDataValidationUIPlugin
3380
3407
  };