@univerjs/sheets-data-validation-ui 0.5.0-nightly.202411231605 → 0.5.0-nightly.202411251606

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,7 +1,7 @@
1
1
  var Bo = Object.defineProperty;
2
2
  var $o = (e, t, o) => t in e ? Bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var M = (e, t, o) => $o(e, typeof t != "symbol" ? t + "" : t, o);
4
- import zt, { useState as H, forwardRef as we, useRef as We, createElement as Re, useMemo as Te, useEffect as Ce } from "react";
4
+ import zt, { useState as W, forwardRef as we, useRef as We, createElement as Re, useMemo as Te, useEffect as Ce } from "react";
5
5
  import { Inject as b, LocaleService as J, Disposable as De, DataValidationErrorStyle as ot, useDependency as L, ICommandService as Q, dayjs as Kt, numfmt as Gt, CellValueType as ko, UniverInstanceType as z, toDisposable as Wo, IUniverInstanceService as ge, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Ho, DisposableCollection as Yo, CommandType as qe, BuildTextUtils as Xo, DataValidationRenderMode as de, DataValidationType as Z, IConfigService as dn, UndoCommand as zo, RedoCommand as Ko, isUnitRangesEqual as Go, debounce as Zo, shallowEqual as Vn, Injector as Fe, DataValidationStatus as at, ObjectMatrix as vt, Range as qo, Rectangle as _t, queryObjectMatrix as Zt, Optional as Jo, RxDisposable as cn, InterceptorEffectEnum as Wn, sequenceExecute as Hn, bufferDebounceTime as Qo, isFormulaString as Pe, Tools as qt, ThemeService as ea, VerticalAlign as ue, HorizontalAlign as He, DEFAULT_STYLES as le, WrapStrategy as Se, DocumentDataModel as ta, DEFAULT_EMPTY_DOCUMENT_VALUE as na, BooleanNumber as Je, Plugin as Yn } from "@univerjs/core";
6
6
  import { Button as je, DatePanel as oa, Scrollbar as aa, FormLayout as G, RadioGroup as un, Radio as Ae, Checkbox as Mt, Input as xe, Select as Jt, DraggableList as ia } from "@univerjs/design";
7
7
  import { DeviceInputEventType as Qt, IRenderManagerService as Ve, fixLineWidthByScale as yn, Transform as ra, Checkbox as sa, CURSOR_TYPE as Ye, FontCache as la, Shape as da, Rect as Xn, getFontStyleString as At, getDocsSkeletonPageSize as Qe, DocumentViewModel as ca, DocumentSkeleton as ua, Documents as ha } from "@univerjs/engine-render";
@@ -146,7 +146,7 @@ const ti = "univer-dv-date-dropdown", ni = "univer-dv-date-dropdown-btns", An =
146
146
  };
147
147
  function ai(e) {
148
148
  var g;
149
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = L(Q), u = L(it), p = n.getCell(a, i), d = ie(n.getCellRaw(a, i)), S = oi(d), [m, f] = H(S), R = m && m.isValid() ? m : Kt(), v = L(J), w = L(oe), I = w.getRuleByLocation(r, l, a, i);
149
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = L(Q), u = L(it), p = n.getCell(a, i), d = ie(n.getCellRaw(a, i)), S = oi(d), [m, f] = W(S), R = m && m.isValid() ? m : Kt(), v = L(J), w = L(oe), I = w.getRuleByLocation(r, l, a, i);
150
150
  if (!I)
151
151
  return null;
152
152
  const y = w.getValidator(I.type);
@@ -604,10 +604,10 @@ const Cn = "DataValidationPanel", Ue = {
604
604
  ] });
605
605
  };
606
606
  function Ti(e) {
607
- var j, U, W, Y;
608
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = L(Et), [c, u] = H(""), p = L(Q), d = L(J), [S, m] = H(""), f = L(io), R = L(ge), v = Te(() => s.ruleChange$.pipe(_n(16)), []), w = L(oe);
607
+ var j, U, H, Y;
608
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = L(Et), [c, u] = W(""), p = L(Q), d = L(J), [S, m] = W(""), f = L(io), R = L(ge), v = Te(() => s.ruleChange$.pipe(_n(16)), []), w = L(oe);
609
609
  Ne(v);
610
- const I = xa.useContext(), y = ((U = (j = I.current) == null ? void 0 : j.right) != null ? U : 0) - ((Y = (W = I.current) == null ? void 0 : W.left) != null ? Y : 0);
610
+ const I = xa.useContext(), y = ((U = (j = I.current) == null ? void 0 : j.right) != null ? U : 0) - ((Y = (H = I.current) == null ? void 0 : H.left) != null ? Y : 0);
611
611
  if (Ce(() => {
612
612
  const k = p.onCommandExecuted((X) => {
613
613
  var q, ee;
@@ -691,7 +691,7 @@ const Ai = "univer-data-validation-options-button", xi = "univer-data-validation
691
691
  };
692
692
  function ji(e) {
693
693
  var c;
694
- const t = L(J), o = L(bt), { value: n, onChange: a, extraComponent: i } = e, [r, l] = H(!1), s = i ? o.get(i) : null;
694
+ const t = L(J), o = L(bt), { value: n, onChange: a, extraComponent: i } = e, [r, l] = W(!1), s = i ? o.get(i) : null;
695
695
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
696
696
  /* @__PURE__ */ h.jsxs("div", { className: jt.dataValidationOptionsButton, onClick: () => l(!r), children: [
697
697
  t.t("dataValidation.panel.options"),
@@ -755,7 +755,7 @@ function ki(e, t, o) {
755
755
  }
756
756
  function Wi() {
757
757
  var se;
758
- const [e, t] = H(0), o = L(me), n = Ne(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = L(ye), c = L(ge), u = L(bt), p = L(Q), d = L(Et), S = L(J), [m, f] = H(r), R = s.getValidatorItem(m.type), [v, w] = H(!1), I = s.getValidatorsByScope(Ua.SHEET), [y, _] = H(() => m.ranges.map((P) => ({ unitId: "", sheetId: "", range: P }))), C = Te(() => $i(p), [p]), [g, V] = H(!1), T = We({}), [N, A] = H(!1), E = L(zn);
758
+ const [e, t] = W(0), o = L(me), n = Ne(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = L(ye), c = L(ge), u = L(bt), p = L(Q), d = L(Et), S = L(J), [m, f] = W(r), R = s.getValidatorItem(m.type), [v, w] = W(!1), I = s.getValidatorsByScope(Ua.SHEET), [y, _] = W(() => m.ranges.map((P) => ({ unitId: "", sheetId: "", range: P }))), C = Te(() => $i(p), [p]), [g, V] = W(!1), T = We({}), [N, A] = W(!1), E = L(zn);
759
759
  if (Ce(() => () => {
760
760
  const P = E.getCurrentLastSelection();
761
761
  P && E.setSelections([P]);
@@ -770,7 +770,7 @@ function Wi() {
770
770
  return null;
771
771
  const O = R.operators, x = R.operatorNames, j = m.operator ? Ba.includes(m.operator) : !1, U = () => {
772
772
  !m.ranges.length || g || (R.validatorFormula(m, a, i).success ? o.setActiveRule(null) : w(!0));
773
- }, W = uo((P) => {
773
+ }, H = uo((P) => {
774
774
  const D = P.split(",").map(Ha).map(($) => {
775
775
  const _e = $.sheetName;
776
776
  if (_e) {
@@ -878,7 +878,7 @@ function Wi() {
878
878
  unitId: a,
879
879
  subUnitId: i,
880
880
  initValue: te,
881
- onChange: W,
881
+ onChange: H,
882
882
  onFocus: () => A(!0),
883
883
  isFocus: N,
884
884
  actions: T.current,
@@ -965,7 +965,7 @@ const Hi = "univer-data-validation-item-container", Yi = "univer-data-validation
965
965
  dataValidationItemContent: Xi,
966
966
  dataValidationItemIcon: zi
967
967
  }, Ki = (e) => {
968
- const { rule: t, onClick: o, unitId: n, subUnitId: a, disable: i } = e, r = L(ye), l = L(Q), s = L(Va), c = r.getValidatorItem(t.type), u = We(), [p, d] = H(!1), S = (m) => {
968
+ const { rule: t, onClick: o, unitId: n, subUnitId: a, disable: i } = e, r = L(ye), l = L(Q), s = L(Va), c = r.getValidatorItem(t.type), u = We(), [p, d] = W(!1), S = (m) => {
969
969
  l.executeCommand(eo.id, {
970
970
  ruleId: t.uid,
971
971
  unitId: n,
@@ -1023,7 +1023,7 @@ function Ji() {
1023
1023
  return t ? /* @__PURE__ */ h.jsx(Qi, { workbook: t }) : null;
1024
1024
  }
1025
1025
  function Qi(e) {
1026
- const t = L(oe), o = L(ge), n = L(Q), a = L(Fe), i = L(me), r = L(J), [l, s] = H([]), { workbook: c } = e, u = Ne(c.activeSheet$, void 0, !0), p = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1026
+ const t = L(oe), o = L(ge), n = L(Q), a = L(Fe), i = L(me), r = L(J), [l, s] = W([]), { workbook: c } = e, u = Ne(c.activeSheet$, void 0, !0), p = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1027
1027
  Ce(() => {
1028
1028
  s(t.getRules(p, d));
1029
1029
  const w = t.ruleChange$.subscribe((I) => {
@@ -1163,12 +1163,12 @@ var ar = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, rr = (e, t
1163
1163
  }, Ft = (e, t) => (o, n) => t(o, n, e);
1164
1164
  let Xe = class extends De {
1165
1165
  constructor(e, t, o) {
1166
- super(), this._autoFillService = e, this._dataValidationModel = t, this._injector = o, this._initAutoFill();
1166
+ super(), this._autoFillService = e, this._sheetDataValidationModel = t, this._injector = o, this._initAutoFill();
1167
1167
  }
1168
1168
  // eslint-disable-next-line max-lines-per-function
1169
1169
  _initAutoFill() {
1170
1170
  const e = () => ({ redos: [], undos: [] }), t = (a, i) => {
1171
- const { source: r, target: l, unitId: s, subUnitId: c } = a, u = this._dataValidationModel.getRuleObjectMatrix(s, c).clone(), p = nn([r, l]), [d, S] = p.ranges, { mapFunc: m } = p, f = {
1171
+ const { source: r, target: l, unitId: s, subUnitId: c } = a, u = this._sheetDataValidationModel.getRuleObjectMatrix(s, c).clone(), p = nn([r, l]), [d, S] = p.ranges, { mapFunc: m } = p, f = {
1172
1172
  row: d.startRow,
1173
1173
  col: d.startColumn
1174
1174
  }, R = Oa(d, S), v = new vt(), w = /* @__PURE__ */ new Set();
@@ -1193,24 +1193,21 @@ let Xe = class extends De {
1193
1193
  endRow: E
1194
1194
  },
1195
1195
  N
1196
- ), { row: j, col: U } = m(x.startRow, x.startColumn), W = this._dataValidationModel.getRuleIdByLocation(s, c, j, U);
1197
- if (W) {
1198
- const Y = _t.getPositionRange(
1199
- {
1200
- startRow: E,
1201
- startColumn: O,
1202
- endColumn: O,
1203
- endRow: E
1204
- },
1205
- A
1206
- ), { row: k, col: X } = m(Y.startRow, Y.startColumn);
1207
- v.setValue(k, X, W), w.add(W);
1208
- }
1196
+ ), { row: j, col: U } = m(x.startRow, x.startColumn), H = this._sheetDataValidationModel.getRuleIdByLocation(s, c, j, U) || "", Y = _t.getPositionRange(
1197
+ {
1198
+ startRow: E,
1199
+ startColumn: O,
1200
+ endColumn: O,
1201
+ endRow: E
1202
+ },
1203
+ A
1204
+ ), { row: k, col: X } = m(Y.startRow, Y.startColumn);
1205
+ v.setValue(k, X, H), w.add(H);
1209
1206
  });
1210
1207
  });
1211
1208
  const I = Array.from(w).map((g) => ({ id: g, ranges: Zt(v, (V) => V === g) }));
1212
1209
  u.addRangeRules(I);
1213
- const y = u.diff(this._dataValidationModel.getRules(s, c)), { redoMutations: _, undoMutations: C } = tn(s, c, y, this._injector, "patched", i === et.ONLY_FORMAT);
1210
+ const y = u.diff(this._sheetDataValidationModel.getRules(s, c)), { redoMutations: _, undoMutations: C } = tn(s, c, y, this._injector, "patched", i === et.ONLY_FORMAT);
1214
1211
  return {
1215
1212
  undos: C,
1216
1213
  redos: _
@@ -1223,7 +1220,7 @@ let Xe = class extends De {
1223
1220
  const { source: i, unitId: r, subUnitId: l } = a;
1224
1221
  for (const s of i.rows)
1225
1222
  for (const c of i.cols) {
1226
- const u = this._dataValidationModel.getRuleByLocation(r, l, s, c);
1223
+ const u = this._sheetDataValidationModel.getRuleByLocation(r, l, s, c);
1227
1224
  if (u && o.indexOf(u.type) > -1) {
1228
1225
  this._autoFillService.setDisableApplyType(et.SERIES, !0);
1229
1226
  return;
@@ -1810,7 +1807,7 @@ const wr = "univer-data-validation-formula", Rr = "univer-data-validation-formul
1810
1807
  ) });
1811
1808
  };
1812
1809
  function Lr(e) {
1813
- const { value: t, onChange: o, showError: n, validResult: a } = e, i = L(J), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = H(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
1810
+ const { value: t, onChange: o, showError: n, validResult: a } = e, i = L(J), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = W(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
1814
1811
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
1815
1812
  /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(
1816
1813
  Mt,
@@ -1858,7 +1855,7 @@ function Lr(e) {
1858
1855
  }
1859
1856
  function Tr(e) {
1860
1857
  var p;
1861
- const { unitId: t, subUnitId: o, value: n, onChange: a, showError: i, validResult: r } = e, l = i ? r == null ? void 0 : r.formula1 : void 0, s = We({}), [c, u] = H(!1);
1858
+ const { unitId: t, subUnitId: o, value: n, onChange: a, showError: i, validResult: r } = e, l = i ? r == null ? void 0 : r.formula1 : void 0, s = We({}), [c, u] = W(!1);
1862
1859
  return fn((d) => {
1863
1860
  var m;
1864
1861
  const S = (m = s.current) == null ? void 0 : m.handleOutClick;
@@ -1923,7 +1920,7 @@ const xr = [
1923
1920
  "#9E6DE3",
1924
1921
  "#F248A6"
1925
1922
  ], jr = (e) => {
1926
- const { value: t, onChange: o, disabled: n } = e, [a, i] = H(!1);
1923
+ const { value: t, onChange: o, disabled: n } = e, [a, i] = W(!1);
1927
1924
  return /* @__PURE__ */ h.jsx(
1928
1925
  Jt,
1929
1926
  {
@@ -1985,7 +1982,7 @@ const xr = [
1985
1982
  };
1986
1983
  function Fr(e) {
1987
1984
  const { value: t, onChange: o = () => {
1988
- }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = We(null), [p, d] = H(() => Pe(s) ? "1" : "0"), [S, m] = H(p === "1" ? s : "="), [f, R] = H(p === "1" ? s : "="), v = L(J), w = L(ye), I = L(Et), y = L(_a), [_, C] = H(() => c.split(",")), g = w.getValidatorItem(Z.LIST), [V, T] = H([]), [N, A] = H(""), E = r ? i == null ? void 0 : i.formula1 : "", O = Te(() => I.ruleChange$.pipe(_n(16)), []), x = Ne(O), j = uo(o);
1985
+ }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = We(null), [p, d] = W(() => Pe(s) ? "1" : "0"), [S, m] = W(p === "1" ? s : "="), [f, R] = W(p === "1" ? s : "="), v = L(J), w = L(ye), I = L(Et), y = L(_a), [_, C] = W(() => c.split(",")), g = w.getValidatorItem(Z.LIST), [V, T] = W([]), [N, A] = W(""), E = r ? i == null ? void 0 : i.formula1 : "", O = Te(() => I.ruleChange$.pipe(_n(16)), []), x = Ne(O), j = uo(o);
1989
1986
  Ce(() => {
1990
1987
  (async () => {
1991
1988
  await new Promise((B) => {
@@ -2000,7 +1997,7 @@ function Fr(e) {
2000
1997
  }, [I, x, g, l, a, n]), Ce(() => {
2001
1998
  Pe(s) && s !== f && (m(s), R(f));
2002
1999
  }, [f, s]);
2003
- const [U, W] = H(() => {
2000
+ const [U, H] = W(() => {
2004
2001
  const D = p !== "1" ? qn(s) : [], F = c.split(",");
2005
2002
  return D.map((B, $) => ({
2006
2003
  label: B,
@@ -2010,10 +2007,10 @@ function Fr(e) {
2010
2007
  }));
2011
2008
  }), Y = (D, F, B) => {
2012
2009
  const $ = U.find((_e) => _e.id === D);
2013
- $ && ($.label = F, $.color = B, W([...U]));
2010
+ $ && ($.label = F, $.color = B, H([...U]));
2014
2011
  }, k = (D) => {
2015
2012
  const F = U.findIndex((B) => B.id === D);
2016
- F !== -1 && (U.splice(F, 1), W([...U]));
2013
+ F !== -1 && (U.splice(F, 1), H([...U]));
2017
2014
  }, X = c.split(","), q = Te(() => V.map((D, F) => ({
2018
2015
  label: D,
2019
2016
  color: X[F] || Le,
@@ -2026,7 +2023,7 @@ function Fr(e) {
2026
2023
  formula2: $.join(",")
2027
2024
  });
2028
2025
  }, te = () => {
2029
- W([
2026
+ H([
2030
2027
  ...U,
2031
2028
  {
2032
2029
  label: "",
@@ -2073,7 +2070,7 @@ function Fr(e) {
2073
2070
  }), m("="), A(v.t("dataValidation.validFail.formulaError")));
2074
2071
  },
2075
2072
  [c, j]
2076
- ), ae = We({}), [se, P] = H(!1);
2073
+ ), ae = We({}), [se, P] = W(!1);
2077
2074
  return fn((D) => {
2078
2075
  var B;
2079
2076
  const F = (B = ae.current) == null ? void 0 : B.handleOutClick;
@@ -2119,7 +2116,7 @@ function Fr(e) {
2119
2116
  ia,
2120
2117
  {
2121
2118
  list: U,
2122
- onListChange: W,
2119
+ onListChange: H,
2123
2120
  rowHeight: 32,
2124
2121
  margin: [0, 12],
2125
2122
  draggableHandle: ".draggableHandle",
@@ -2487,16 +2484,16 @@ let sn = class {
2487
2484
  endY: u.endY - f
2488
2485
  }, _ = y.endX - y.startX, C = y.endY - y.startY, { cl: g } = l || {}, V = (Y = typeof g == "object" ? g == null ? void 0 : g.rgb : g) != null ? Y : "#000", T = At(l != null ? l : void 0), { vt: N, ht: A } = l || {}, E = N != null ? N : ue.MIDDLE, O = (k = ie(s)) != null ? k : "", x = I.parseCellValue(O), j = I.getListWithColorMap(w), U = $t(x, T, _, C);
2489
2486
  this._drawDownIcon(e, y, _, C, E), e.save(), e.translateWithPrecision(y.startX, y.startY), e.beginPath(), e.rect(0, 0, _ - Oe, C), e.clip(), e.translateWithPrecision(rn, yt);
2490
- let W = 0;
2487
+ let H = 0;
2491
2488
  switch (E) {
2492
2489
  case ue.MIDDLE:
2493
- W = (U.contentHeight - U.totalHeight) / 2;
2490
+ H = (U.contentHeight - U.totalHeight) / 2;
2494
2491
  break;
2495
2492
  case ue.BOTTOM:
2496
- W = U.contentHeight - U.totalHeight;
2493
+ H = U.contentHeight - U.totalHeight;
2497
2494
  break;
2498
2495
  }
2499
- e.translateWithPrecision(0, W), U.lines.forEach((X, q) => {
2496
+ e.translateWithPrecision(0, H), U.lines.forEach((X, q) => {
2500
2497
  e.save();
2501
2498
  const { width: ee, height: te, items: re } = X;
2502
2499
  let ae = 0;
@@ -2739,19 +2736,19 @@ let ln = class {
2739
2736
  }, w = v.endX - v.startX, I = v.endY - v.startY, y = this._ensureMap(s), _ = this._generateKey(a, i), C = p.getListWithColor(u), g = ie(l), V = `${g != null ? g : ""}`, T = C.find((x) => x.label === V);
2740
2737
  let { tb: N, vt: A, ht: E, pd: O } = r || {};
2741
2738
  if (N = N != null ? N : Se.WRAP, A = A != null ? A : ue.BOTTOM, E = E != null ? E : le.ht, O = O != null ? O : le.pd, u.renderMode === de.ARROW) {
2742
- const { l: x = le.pd.l, t: j = le.pd.t, r: U = le.pd.r, b: W = le.pd.b } = O, Y = w - x - U - he - 4, { documentSkeleton: k, documents: X, docModel: q } = mt(V, this._localeService, r);
2739
+ const { l: x = le.pd.l, t: j = le.pd.t, r: U = le.pd.r, b: H = le.pd.b } = O, Y = w - x - U - he - 4, { documentSkeleton: k, documents: X, docModel: q } = mt(V, this._localeService, r);
2743
2740
  N === Se.WRAP && q.updateDocumentDataPageSize(Math.max(Y, 1)), k.calculate(), k.getActualSize();
2744
- const ee = Qe(k), { height: te, width: re } = ee, { paddingTop: ae, paddingLeft: se } = Bn(Y, I - j - W, re, te, A, E, !0);
2745
- this._drawDownIcon(e, v, w, I, te, A, O), e.save(), e.translateWithPrecision(v.startX + x, v.startY + j), e.beginPath(), e.rect(0, 0, w - x - U, I - j - W), e.clip(), e.translateWithPrecision(0, ae), e.save(), e.translateWithPrecision(Ee, 0), e.beginPath(), e.rect(0, 0, Y, te), e.clip(), X.render(e), e.translateWithPrecision(se, 0), e.restore(), e.restore(), y.set(_, {
2741
+ const ee = Qe(k), { height: te, width: re } = ee, { paddingTop: ae, paddingLeft: se } = Bn(Y, I - j - H, re, te, A, E, !0);
2742
+ this._drawDownIcon(e, v, w, I, te, A, O), e.save(), e.translateWithPrecision(v.startX + x, v.startY + j), e.beginPath(), e.rect(0, 0, w - x - U, I - j - H), e.clip(), e.translateWithPrecision(0, ae), e.save(), e.translateWithPrecision(Ee, 0), e.beginPath(), e.rect(0, 0, Y, te), e.clip(), X.render(e), e.translateWithPrecision(se, 0), e.restore(), e.restore(), y.set(_, {
2746
2743
  left: v.endX + x + o.rowHeaderWidth - he,
2747
2744
  top: v.startY + j + o.columnHeaderHeight,
2748
2745
  width: he,
2749
- height: I - j - W
2746
+ height: I - j - H
2750
2747
  });
2751
2748
  } else {
2752
2749
  e.save(), e.translateWithPrecision(v.startX, v.startY), e.beginPath(), e.rect(0, 0, w, I), e.clip();
2753
- const x = w - pe * 2 - Ee - he - 4, { documentSkeleton: j, documents: U, docModel: W } = mt(V, this._localeService, r);
2754
- N === Se.WRAP && W.updateDocumentDataPageSize(Math.max(x, 1)), j.calculate();
2750
+ const x = w - pe * 2 - Ee - he - 4, { documentSkeleton: j, documents: U, docModel: H } = mt(V, this._localeService, r);
2751
+ N === Se.WRAP && H.updateDocumentDataPageSize(Math.max(x, 1)), j.calculate();
2755
2752
  const Y = Qe(j), { height: k, width: X } = Y, { paddingTop: q, paddingLeft: ee } = Bn(x, I, X, k, A, E);
2756
2753
  e.translateWithPrecision(pe, q);
2757
2754
  const te = Math.max(w - pe * 2, 1), re = k;
@@ -3,8 +3,8 @@ import { SheetDataValidationModel } from '@univerjs/sheets-data-validation';
3
3
  import { IAutoFillService } from '@univerjs/sheets-ui';
4
4
  export declare class DataValidationAutoFillController extends Disposable {
5
5
  private readonly _autoFillService;
6
- private readonly _dataValidationModel;
6
+ private readonly _sheetDataValidationModel;
7
7
  private readonly _injector;
8
- constructor(_autoFillService: IAutoFillService, _dataValidationModel: SheetDataValidationModel, _injector: Injector);
8
+ constructor(_autoFillService: IAutoFillService, _sheetDataValidationModel: SheetDataValidationModel, _injector: Injector);
9
9
  private _initAutoFill;
10
10
  }