@univerjs/sheets-data-validation-ui 0.6.0-nightly.202502041606 → 0.6.0-nightly.202502061605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -2,14 +2,14 @@ var ko = Object.defineProperty;
2
2
  var Wo = (e, t, o) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var y = (e, t, o) => Wo(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import { jsxs as x, jsx as f, Fragment as we } from "react/jsx-runtime";
5
- import { Inject as b, LocaleService as Q, Disposable as De, DataValidationErrorStyle as rt, useDependency as L, ICommandService as ee, dayjs as Zt, numfmt as qt, CellValueType as Ho, UniverInstanceType as X, toDisposable as jo, IUniverInstanceService as ve, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as xo, DisposableCollection as Yo, CommandType as et, BuildTextUtils as Xo, DataValidationRenderMode as ce, DataValidationType as K, IConfigService as hn, UndoCommand as zo, RedoCommand as Ko, isUnitRangesEqual as Go, debounce as Zo, shallowEqual as yn, Injector as $e, DataValidationStatus as st, ObjectMatrix as St, Range as qo, Rectangle as Ct, queryObjectMatrix as Jt, Optional as Jo, RxDisposable as pn, InterceptorEffectEnum as Xn, sequenceExecute as zn, bufferDebounceTime as Qo, isFormulaString as Ae, Tools as Qt, ThemeService as ea, VerticalAlign as he, HorizontalAlign as Ye, DEFAULT_STYLES as de, WrapStrategy as Ce, DocumentDataModel as ta, DEFAULT_EMPTY_DOCUMENT_VALUE as na, BooleanNumber as tt, Plugin as Kn, merge as Gn } from "@univerjs/core";
6
- import { Button as Be, DatePanel as oa, Scrollbar as aa, FormLayout as q, RadioGroup as fn, Radio as Ne, Checkbox as Lt, Input as Ue, Select as en, DraggableList as ia } from "@univerjs/design";
5
+ import { Inject as b, LocaleService as Q, Disposable as De, DataValidationErrorStyle as rt, useDependency as P, ICommandService as ee, dayjs as Zt, numfmt as qt, CellValueType as Ho, UniverInstanceType as X, toDisposable as jo, IUniverInstanceService as ve, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as xo, DisposableCollection as Yo, CommandType as et, BuildTextUtils as Xo, DataValidationRenderMode as ce, DataValidationType as K, IConfigService as hn, UndoCommand as zo, RedoCommand as Ko, isUnitRangesEqual as Go, debounce as Zo, shallowEqual as yn, Injector as $e, DataValidationStatus as st, ObjectMatrix as St, Range as qo, Rectangle as Ct, queryObjectMatrix as Jt, Optional as Jo, RxDisposable as pn, InterceptorEffectEnum as Xn, sequenceExecute as zn, bufferDebounceTime as Qo, isFormulaString as Ae, Tools as Qt, ThemeService as ea, VerticalAlign as he, HorizontalAlign as Ye, DEFAULT_STYLES as de, WrapStrategy as Ce, DocumentDataModel as ta, DEFAULT_EMPTY_DOCUMENT_VALUE as na, BooleanNumber as tt, Plugin as Kn, merge as Gn } from "@univerjs/core";
6
+ import { Button as Be, DatePanel as oa, Scrollbar as aa, FormLayout as q, RadioGroup as fn, Radio as Ne, Checkbox as Pt, Input as Ue, Select as en, DraggableList as ia } from "@univerjs/design";
7
7
  import { DeviceInputEventType as tn, IRenderManagerService as Ve, fixLineWidthByScale as bn, Transform as ra, CheckboxShape as sa, CURSOR_TYPE as Xe, FontCache as la, Shape as da, Rect as Zn, getFontStyleString as Ut, getDocsSkeletonPageSize as nt, DocumentViewModel as ca, DocumentSkeleton as ua, Documents as ha } from "@univerjs/engine-render";
8
8
  import { SheetInterceptorService as mn, AFTER_CELL_EDIT_ASYNC as pa, SetRangeValuesCommand as gn, SheetsSelectionsService as qn, getSheetCommandTarget as Jn, SheetPermissionCheckController as Qn, WorkbookEditablePermission as It, RangeProtectionPermissionEditPoint as wt, WorksheetEditPermission as Rt, checkRangesEditablePermission as fa, WorksheetSetCellStylePermission as nn, INTERCEPTOR_POINT as eo, InterceptCellContentPriority as to } from "@univerjs/sheets";
9
9
  import { SheetDataValidationModel as ae, getCellValueOrigin as re, getDataValidationCellValue as ma, deserializeListOptions as no, serializeListOptions as oo, UpdateSheetDataValidationRangeCommand as ao, UpdateSheetDataValidationSettingCommand as En, RemoveSheetDataValidationCommand as io, UpdateSheetDataValidationOptionsCommand as ga, createDefaultNewRule as ro, AddSheetDataValidationCommand as vn, RemoveSheetAllDataValidationCommand as va, DATA_VALIDATION_PLUGIN_NAME as so, getDataValidationDiffMutations as on, DataValidationCacheService as lo, DataValidationFormulaController as _a, DataValidationFormulaService as Sa, getFormulaResult as Bt, isLegalFormulaResult as On, transformCheckboxValue as Ca, CHECKBOX_FORMULA_1 as Ia, CHECKBOX_FORMULA_2 as wa } from "@univerjs/sheets-data-validation";
10
10
  import { getPatternType as Ra } from "@univerjs/sheets-numfmt";
11
- import { SetCellEditVisibleOperation as co, SheetCanvasPopManagerService as Da, IEditorBridgeService as uo, IMarkSelectionService as Va, HoverManagerService as Ma, CellAlertManagerService as ya, CellAlertType as ba, IAutoFillService as Ea, APPLY_TYPE as ot, virtualizeDiscreteRanges as an, getAutoFillRepeatRange as Oa, COPY_TYPE as Ln, rangeToDiscreteRange as La, PREDEFINED_HOOK_NAME as ct, getRepeatRange as Pn, ISheetClipboardService as Pa, getCurrentRangeDisable$ as Ta, AutoHeightController as ho, SheetSkeletonManagerService as Dt } from "@univerjs/sheets-ui";
12
- import { IDialogService as Aa, KeyCode as rn, ISidebarService as po, useObservable as ke, ComponentManager as Pt, IZenZoneService as fo, RectPopup as Fa, useEvent as sn, useSidebarClick as _n, MenuItemType as Sn, getMenuHiddenObservable as Na, RibbonStartGroup as Ua, IMenuManagerService as Ba } from "@univerjs/ui";
11
+ import { SetCellEditVisibleOperation as co, SheetCanvasPopManagerService as Da, IEditorBridgeService as uo, IMarkSelectionService as Va, HoverManagerService as Ma, CellAlertManagerService as ya, CellAlertType as ba, IAutoFillService as Ea, APPLY_TYPE as ot, virtualizeDiscreteRanges as an, getAutoFillRepeatRange as Oa, COPY_TYPE as Pn, rangeToDiscreteRange as Pa, PREDEFINED_HOOK_NAME as ct, getRepeatRange as Ln, ISheetClipboardService as La, getCurrentRangeDisable$ as Ta, AutoHeightController as ho, SheetSkeletonManagerService as Dt } from "@univerjs/sheets-ui";
12
+ import { IDialogService as Aa, KeyCode as rn, ISidebarService as po, useObservable as ke, ComponentManager as Lt, IZenZoneService as fo, RectPopup as Fa, useEvent as sn, useSidebarClick as _n, MenuItemType as Sn, getMenuHiddenObservable as Na, RibbonStartGroup as Ua, IMenuManagerService as Ba } from "@univerjs/ui";
13
13
  import Tn, { useState as j, forwardRef as Me, useRef as ze, createElement as ye, useMemo as Ke, useEffect as Ie } from "react";
14
14
  import { DataValidatorRegistryService as be, DataValidationModel as Tt, DataValidatorRegistryScope as $a, TWO_FORMULA_OPERATOR_COUNT as ka, getRuleOptions as An, getRuleSetting as Fn } from "@univerjs/data-validation";
15
15
  import { RichTextEditingMutation as Wa } from "@univerjs/docs";
@@ -125,7 +125,7 @@ const Ga = "univer-dv-date-dropdown", Za = "univer-dv-date-dropdown-btns", Un =
125
125
  };
126
126
  function Ja(e) {
127
127
  var m;
128
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = L(ee), u = L(lt), h = n.getCell(a, i), d = re(n.getCellRaw(a, i)), v = qa(d), [p, C] = j(v), R = p && p.isValid() ? p : Zt(), g = L(Q), w = L(ae), I = w.getRuleByLocation(r, l, a, i);
128
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = P(ee), u = P(lt), h = n.getCell(a, i), d = re(n.getCellRaw(a, i)), v = qa(d), [p, C] = j(v), R = p && p.isValid() ? p : Zt(), g = P(Q), w = P(ae), I = w.getRuleByLocation(r, l, a, i);
129
129
  if (!I)
130
130
  return null;
131
131
  const V = w.getValidator(I.type);
@@ -135,7 +135,7 @@ function Ja(e) {
135
135
  var F, N, B;
136
136
  if (!R)
137
137
  return;
138
- const P = R.format(_ ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), U = (F = qt.parseDate(P)) == null ? void 0 : F.v, T = s.getStyles().getStyleByCell(h), E = (B = (N = T == null ? void 0 : T.n) == null ? void 0 : N.pattern) != null ? B : "", A = Ra(E);
138
+ const L = R.format(_ ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), U = (F = qt.parseDate(L)) == null ? void 0 : F.v, T = s.getStyles().getStyleByCell(h), E = (B = (N = T == null ? void 0 : T.n) == null ? void 0 : N.pattern) != null ? B : "", A = Ra(E);
139
139
  I.errorStyle !== rt.STOP || await V.validator({
140
140
  value: U,
141
141
  unitId: r,
@@ -144,7 +144,7 @@ function Ja(e) {
144
144
  column: i,
145
145
  worksheet: n,
146
146
  workbook: s,
147
- interceptValue: P.replace("Z", "").replace("T", " "),
147
+ interceptValue: L.replace("Z", "").replace("T", " "),
148
148
  t: Ho.NUMBER
149
149
  }, I) ? (o(), await c.executeCommand(co.id, {
150
150
  visible: !1,
@@ -347,7 +347,7 @@ me = hi([
347
347
  Bn(1, po)
348
348
  ], me);
349
349
  function pi() {
350
- const e = L(Re), t = ke(e.activeDropdown$, e.activeDropdown), o = L(Pt);
350
+ const e = P(Re), t = ke(e.activeDropdown$, e.activeDropdown), o = P(Lt);
351
351
  if (!t)
352
352
  return null;
353
353
  const { location: n, componentKey: a } = t, i = o.get(a), r = `${n.unitId}-${n.subUnitId}-${n.row}-${n.col}`;
@@ -544,7 +544,7 @@ const Vt = "DataValidationPanel", We = {
544
544
  dvListDropdownEdit: Vi
545
545
  }, Mi = (e) => {
546
546
  var _, S;
547
- const { value: t, onChange: o, multiple: n, options: a, title: i, onEdit: r, style: l, filter: s, location: c } = e, u = L(Q), h = L(hn), d = s == null ? void 0 : s.toLowerCase(), { row: v, col: p, unitId: C, subUnitId: R } = c, g = a.filter((m) => d ? m.label.toLowerCase().includes(d) : !0), w = (S = (_ = h.getConfig(Dn)) == null ? void 0 : _.showEditOnDropdown) != null ? S : !0, I = L(Qn), V = Ke(() => I.permissionCheckWithRanges(
547
+ const { value: t, onChange: o, multiple: n, options: a, title: i, onEdit: r, style: l, filter: s, location: c } = e, u = P(Q), h = P(hn), d = s == null ? void 0 : s.toLowerCase(), { row: v, col: p, unitId: C, subUnitId: R } = c, g = a.filter((m) => d ? m.label.toLowerCase().includes(d) : !0), w = (S = (_ = h.getConfig(Dn)) == null ? void 0 : _.showEditOnDropdown) != null ? S : !0, I = P(Qn), V = Ke(() => I.permissionCheckWithRanges(
548
548
  {
549
549
  workbookTypes: [It],
550
550
  rangeTypes: [wt],
@@ -557,9 +557,9 @@ const Vt = "DataValidationPanel", We = {
557
557
  return /* @__PURE__ */ x("div", { className: _e.dvListDropdown, style: l, children: [
558
558
  /* @__PURE__ */ f("div", { className: _e.dvListDropdownTitle, children: i }),
559
559
  /* @__PURE__ */ f("div", { className: _e.dvListDropdownList, children: /* @__PURE__ */ f(aa, { children: /* @__PURE__ */ f("div", { className: _e.dvListDropdownListContainer, children: g.map((m, M) => {
560
- const P = t.indexOf(m.value) > -1, U = () => {
560
+ const L = t.indexOf(m.value) > -1, U = () => {
561
561
  let E;
562
- P ? E = new Set(t.filter((F) => F !== m.value)) : E = new Set(n ? [...t, m.value] : [m.value]);
562
+ L ? E = new Set(t.filter((F) => F !== m.value)) : E = new Set(n ? [...t, m.value] : [m.value]);
563
563
  const A = [];
564
564
  a.forEach((F) => {
565
565
  E.has(F.value) && A.push(F.value);
@@ -571,7 +571,7 @@ const Vt = "DataValidationPanel", We = {
571
571
  /* @__PURE__ */ f("span", { style: { fontWeight: "bold" }, children: m.label.substring(T, T + d.length) }),
572
572
  /* @__PURE__ */ f("span", { children: m.label.substring(T + d.length) })
573
573
  ] }) : m.label }),
574
- /* @__PURE__ */ f("div", { className: _e.dvListDropdownSelectedIcon, children: P ? /* @__PURE__ */ f(So, {}) : null })
574
+ /* @__PURE__ */ f("div", { className: _e.dvListDropdownSelectedIcon, children: L ? /* @__PURE__ */ f(So, {}) : null })
575
575
  ] }, M);
576
576
  }) }) }, s) }),
577
577
  w && V ? /* @__PURE__ */ x(we, { children: [
@@ -582,7 +582,7 @@ const Vt = "DataValidationPanel", We = {
582
582
  };
583
583
  function yi(e) {
584
584
  var N, B, Y, z;
585
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = L(Tt), [c, u] = j(""), h = L(ee), d = L(Q), [v, p] = j(""), C = L(uo), R = L(ve), g = Ke(() => s.ruleChange$.pipe(In(16)), []), w = L(ae);
585
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = P(Tt), [c, u] = j(""), h = P(ee), d = P(Q), [v, p] = j(""), C = P(uo), R = P(ve), g = Ke(() => s.ruleChange$.pipe(In(16)), []), w = P(ae);
586
586
  ke(g);
587
587
  const I = Fa.useContext(), V = ((B = (N = I.current) == null ? void 0 : N.right) != null ? B : 0) - ((z = (Y = I.current) == null ? void 0 : Y.left) != null ? z : 0);
588
588
  if (Ie(() => {
@@ -609,7 +609,7 @@ function yi(e) {
609
609
  const m = n.getCell(a, i), M = (_ == null ? void 0 : _.renderMode) === ce.CUSTOM || (_ == null ? void 0 : _.renderMode) === void 0;
610
610
  if (!m || !_ || !S || S.id.indexOf(K.LIST) !== 0)
611
611
  return;
612
- const P = _.type === K.LIST_MULTIPLE, U = S.getListWithColor(_, r, l), T = v || ma(n.getCellRaw(a, i)), E = no(T), A = () => {
612
+ const L = _.type === K.LIST_MULTIPLE, U = S.getListWithColor(_, r, l), T = v || ma(n.getCellRaw(a, i)), E = no(T), A = () => {
613
613
  h.executeCommand(We.id, {
614
614
  ruleId: _.uid
615
615
  }), o();
@@ -622,9 +622,9 @@ function yi(e) {
622
622
  Mi,
623
623
  {
624
624
  style: { minWidth: V, maxWidth: Math.max(V, 200) },
625
- title: P ? d.t("dataValidation.listMultiple.dropdown") : d.t("dataValidation.list.dropdown"),
625
+ title: L ? d.t("dataValidation.listMultiple.dropdown") : d.t("dataValidation.list.dropdown"),
626
626
  value: E,
627
- multiple: P,
627
+ multiple: L,
628
628
  onChange: async (H) => {
629
629
  const G = oo(H), J = {
630
630
  unitId: r,
@@ -647,7 +647,7 @@ function yi(e) {
647
647
  keycode: rn.ESC,
648
648
  eventType: tn.Keyboard,
649
649
  unitId: r
650
- }), p(G), P || o(), C.isVisible().visible && await h.executeCommand(co.id, {
650
+ }), p(G), L || o(), C.isVisible().visible && await h.executeCommand(co.id, {
651
651
  visible: !1,
652
652
  eventType: tn.Keyboard,
653
653
  unitId: r,
@@ -667,7 +667,7 @@ const bi = "univer-data-validation-options-button", Ei = "univer-data-validation
667
667
  };
668
668
  function Oi(e) {
669
669
  var c;
670
- const t = L(Q), o = L(Pt), { value: n, onChange: a, extraComponent: i } = e, [r, l] = j(!1), s = i ? o.get(i) : null;
670
+ const t = P(Q), o = P(Lt), { value: n, onChange: a, extraComponent: i } = e, [r, l] = j(!1), s = i ? o.get(i) : null;
671
671
  return /* @__PURE__ */ x(we, { children: [
672
672
  /* @__PURE__ */ x("div", { className: $t.dataValidationOptionsButton, onClick: () => l(!r), children: [
673
673
  t.t("dataValidation.panel.options"),
@@ -697,7 +697,7 @@ function Oi(e) {
697
697
  {
698
698
  label: t.t("dataValidation.panel.messageInfo"),
699
699
  children: /* @__PURE__ */ f(
700
- Lt,
700
+ Pt,
701
701
  {
702
702
  checked: n.showErrorMessage,
703
703
  onChange: () => a({
@@ -713,9 +713,9 @@ function Oi(e) {
713
713
  ] })
714
714
  ] });
715
715
  }
716
- const Li = "univer-data-validation-detail", Pi = "univer-data-validation-detail-form-item", Ti = "univer-data-validation-detail-buttons", Ai = "univer-data-validation-detail-button", He = {
717
- dataValidationDetail: Li,
718
- dataValidationDetailFormItem: Pi,
716
+ const Pi = "univer-data-validation-detail", Li = "univer-data-validation-detail-form-item", Ti = "univer-data-validation-detail-buttons", Ai = "univer-data-validation-detail-button", He = {
717
+ dataValidationDetail: Pi,
718
+ dataValidationDetailFormItem: Li,
719
719
  dataValidationDetailButtons: Ti,
720
720
  dataValidationDetailButton: Ai
721
721
  }, Fi = (e) => Zo(
@@ -731,7 +731,7 @@ function Ni(e, t, o) {
731
731
  }
732
732
  function Ui() {
733
733
  var le;
734
- const [e, t] = j(0), o = L(me), n = ke(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = L(be), c = L(ve), u = L(Pt), h = L(ee), d = L(Tt), v = L(Q), [p, C] = j(r), R = s.getValidatorItem(p.type), [g, w] = j(!1), I = s.getValidatorsByScope($a.SHEET), [V, _] = j(() => p.ranges.map((O) => ({ unitId: "", sheetId: "", range: O }))), S = Ke(() => Fi(h), [h]), [m, M] = j(!1), P = ze({}), [U, T] = j(!1), E = L(qn);
734
+ const [e, t] = j(0), o = P(me), n = ke(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = P(be), c = P(ve), u = P(Lt), h = P(ee), d = P(Tt), v = P(Q), [p, C] = j(r), R = s.getValidatorItem(p.type), [g, w] = j(!1), I = s.getValidatorsByScope($a.SHEET), [V, _] = j(() => p.ranges.map((O) => ({ unitId: "", sheetId: "", range: O }))), S = Ke(() => Fi(h), [h]), [m, M] = j(!1), L = ze({}), [U, T] = j(!1), E = P(qn);
735
735
  if (Ie(() => () => {
736
736
  const O = E.getCurrentLastSelection();
737
737
  O && E.setSelections([O]);
@@ -840,7 +840,7 @@ function Ui() {
840
840
  };
841
841
  return _n((O) => {
842
842
  var $;
843
- const D = ($ = P.current) == null ? void 0 : $.handleOutClick;
843
+ const D = ($ = L.current) == null ? void 0 : $.handleOutClick;
844
844
  D && D(O, () => T(!1));
845
845
  }), /* @__PURE__ */ x("div", { className: He.dataValidationDetail, children: [
846
846
  /* @__PURE__ */ f(
@@ -857,7 +857,7 @@ function Ui() {
857
857
  onChange: Y,
858
858
  onFocus: () => T(!0),
859
859
  isFocus: U,
860
- actions: P.current,
860
+ actions: L.current,
861
861
  onVerify: (O) => M(!O)
862
862
  }
863
863
  )
@@ -915,7 +915,7 @@ function Ui() {
915
915
  e + p.type
916
916
  ) : null,
917
917
  /* @__PURE__ */ f(q, { children: /* @__PURE__ */ f(
918
- Lt,
918
+ Pt,
919
919
  {
920
920
  checked: (le = p.allowBlank) != null ? le : !0,
921
921
  onChange: () => {
@@ -941,7 +941,7 @@ const Bi = "univer-data-validation-item-container", $i = "univer-data-validation
941
941
  dataValidationItemContent: ki,
942
942
  dataValidationItemIcon: Wi
943
943
  }, Hi = (e) => {
944
- const { rule: t, onClick: o, unitId: n, subUnitId: a, disable: i } = e, r = L(be), l = L(ee), s = L(Va), c = r.getValidatorItem(t.type), u = ze(void 0), [h, d] = j(!1), v = (p) => {
944
+ const { rule: t, onClick: o, unitId: n, subUnitId: a, disable: i } = e, r = P(be), l = P(ee), s = P(Va), c = r.getValidatorItem(t.type), u = ze(void 0), [h, d] = j(!1), v = (p) => {
945
945
  l.executeCommand(io.id, {
946
946
  ruleId: t.uid,
947
947
  unitId: n,
@@ -990,7 +990,7 @@ const Bi = "univer-data-validation-item-container", $i = "univer-data-validation
990
990
  dataValidationListButton: Yi
991
991
  };
992
992
  function Xi() {
993
- const e = L(ve), t = ke(
993
+ const e = P(ve), t = ke(
994
994
  () => e.getCurrentTypeOfUnit$(X.UNIVER_SHEET),
995
995
  void 0,
996
996
  void 0,
@@ -999,7 +999,7 @@ function Xi() {
999
999
  return t ? /* @__PURE__ */ f(zi, { workbook: t }) : null;
1000
1000
  }
1001
1001
  function zi(e) {
1002
- const t = L(ae), o = L(ve), n = L(ee), a = L($e), i = L(me), r = L(Q), [l, s] = j([]), { workbook: c } = e, u = ke(c.activeSheet$, void 0, !0), h = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1002
+ const t = P(ae), o = P(ve), n = P(ee), a = P($e), i = P(me), r = P(Q), [l, s] = j([]), { workbook: c } = e, u = ke(c.activeSheet$, void 0, !0), h = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1003
1003
  Ie(() => {
1004
1004
  s(t.getRules(h, d));
1005
1005
  const w = t.ruleChange$.subscribe((I) => {
@@ -1057,7 +1057,7 @@ function zi(e) {
1057
1057
  ] });
1058
1058
  }
1059
1059
  const Ki = () => {
1060
- const e = L(me), t = ke(e.activeRule$, e.activeRule);
1060
+ const e = P(me), t = ke(e.activeRule$, e.activeRule);
1061
1061
  return t ? /* @__PURE__ */ f(Ui, {}, t.rule.uid) : /* @__PURE__ */ f(Xi, {});
1062
1062
  }, Vn = "data-validation.list.dropdown", bo = "data-validation.date.dropdown", Ft = {
1063
1063
  type: et.COMMAND,
@@ -1081,7 +1081,7 @@ var Gi = Object.defineProperty, Zi = Object.getOwnPropertyDescriptor, qi = (e, t
1081
1081
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1082
1082
  return n && a && Gi(t, o, a), a;
1083
1083
  }, je = (e, t) => (o, n) => t(o, n, e);
1084
- const Le = "SHEET_DATA_VALIDATION_ALERT";
1084
+ const Pe = "SHEET_DATA_VALIDATION_ALERT";
1085
1085
  let dt = class extends De {
1086
1086
  constructor(e, t, o, n, a, i) {
1087
1087
  super(), this._hoverManagerService = e, this._cellAlertManagerService = t, this._univerInstanceService = o, this._localeService = n, this._zenZoneService = a, this._dataValidationModel = i, this._init();
@@ -1097,18 +1097,18 @@ let dt = class extends De {
1097
1097
  if (!n) return;
1098
1098
  const a = this._dataValidationModel.getRuleByLocation(e.location.unitId, e.location.subUnitId, e.location.row, e.location.col);
1099
1099
  if (!a) {
1100
- this._cellAlertManagerService.removeAlert(Le);
1100
+ this._cellAlertManagerService.removeAlert(Pe);
1101
1101
  return;
1102
1102
  }
1103
1103
  if (this._dataValidationModel.validator(a, { ...e.location, workbook: o, worksheet: n }) === st.INVALID) {
1104
- const r = this._cellAlertManagerService.currentAlert.get(Le), l = (t = r == null ? void 0 : r.alert) == null ? void 0 : t.location;
1104
+ const r = this._cellAlertManagerService.currentAlert.get(Pe), l = (t = r == null ? void 0 : r.alert) == null ? void 0 : t.location;
1105
1105
  if (l && l.row === e.location.row && l.col === e.location.col && l.subUnitId === e.location.subUnitId && l.unitId === e.location.unitId) {
1106
- this._cellAlertManagerService.removeAlert(Le);
1106
+ this._cellAlertManagerService.removeAlert(Pe);
1107
1107
  return;
1108
1108
  }
1109
1109
  const s = this._dataValidationModel.getValidator(a.type);
1110
1110
  if (!s) {
1111
- this._cellAlertManagerService.removeAlert(Le);
1111
+ this._cellAlertManagerService.removeAlert(Pe);
1112
1112
  return;
1113
1113
  }
1114
1114
  this._cellAlertManagerService.showAlert({
@@ -1118,17 +1118,17 @@ let dt = class extends De {
1118
1118
  location: e.location,
1119
1119
  width: 200,
1120
1120
  height: 74,
1121
- key: Le
1121
+ key: Pe
1122
1122
  });
1123
1123
  return;
1124
1124
  }
1125
1125
  }
1126
- this._cellAlertManagerService.removeAlert(Le);
1126
+ this._cellAlertManagerService.removeAlert(Pe);
1127
1127
  }));
1128
1128
  }
1129
1129
  _initZenService() {
1130
1130
  this.disposeWithMe(this._zenZoneService.visible$.subscribe((e) => {
1131
- e && this._cellAlertManagerService.removeAlert(Le);
1131
+ e && this._cellAlertManagerService.removeAlert(Pe);
1132
1132
  }));
1133
1133
  }
1134
1134
  };
@@ -1157,7 +1157,7 @@ let Ge = class extends De {
1157
1157
  col: h.startColumn
1158
1158
  }, C = Oa(h, d), R = new St(), g = /* @__PURE__ */ new Set();
1159
1159
  C.forEach((S) => {
1160
- const m = S.repeatStartCell, M = S.relativeRange, P = {
1160
+ const m = S.repeatStartCell, M = S.relativeRange, L = {
1161
1161
  startRow: p.row,
1162
1162
  startColumn: p.col,
1163
1163
  endColumn: p.col,
@@ -1176,7 +1176,7 @@ let Ge = class extends De {
1176
1176
  endColumn: E,
1177
1177
  endRow: T
1178
1178
  },
1179
- P
1179
+ L
1180
1180
  ), { row: F, col: N } = v(A.startRow, A.startColumn), B = this._sheetDataValidationModel.getRuleIdByLocation(l, s, F, N) || "", Y = Ct.getPositionRange(
1181
1181
  {
1182
1182
  startRow: T,
@@ -1237,7 +1237,7 @@ let Ze = class extends De {
1237
1237
  id: so,
1238
1238
  onBeforeCopy: (t, o, n) => this._collect(t, o, n),
1239
1239
  onPasteCells: (t, o, n, a) => {
1240
- const { copyType: i = Ln.COPY, pasteType: r } = a, { range: l } = t || {}, { range: s, unitId: c, subUnitId: u } = o;
1240
+ const { copyType: i = Pn.COPY, pasteType: r } = a, { range: l } = t || {}, { range: s, unitId: c, subUnitId: u } = o;
1241
1241
  return this._generateMutations(s, { copyType: i, pasteType: r, copyRange: l, unitId: c, subUnitId: u });
1242
1242
  }
1243
1243
  });
@@ -1249,7 +1249,7 @@ let Ze = class extends De {
1249
1249
  subUnitId: o,
1250
1250
  matrix: a
1251
1251
  };
1252
- const i = this._injector.invoke((s) => La(n, s, t, o));
1252
+ const i = this._injector.invoke((s) => Pa(n, s, t, o));
1253
1253
  if (!i)
1254
1254
  return;
1255
1255
  const { rows: r, cols: l } = i;
@@ -1264,7 +1264,7 @@ let Ze = class extends De {
1264
1264
  _generateMutations(t, o) {
1265
1265
  if (!this._copyInfo)
1266
1266
  return { redos: [], undos: [] };
1267
- if (o.copyType === Ln.CUT)
1267
+ if (o.copyType === Pn.CUT)
1268
1268
  return this._copyInfo = null, { redos: [], undos: [] };
1269
1269
  if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !o.copyRange)
1270
1270
  return { redos: [], undos: [] };
@@ -1277,7 +1277,7 @@ let Ze = class extends De {
1277
1277
  return { redos: [], undos: [] };
1278
1278
  const { unitId: a, subUnitId: i } = this._copyInfo;
1279
1279
  if (o.unitId !== a || i !== o.subUnitId) {
1280
- const r = this._sheetDataValidationModel.getRuleObjectMatrix(o.unitId, o.subUnitId).clone(), l = new St(), s = /* @__PURE__ */ new Set(), { ranges: [c, u], mapFunc: h } = an([o.copyRange, t]), d = Pn(c, u, !0), v = /* @__PURE__ */ new Map();
1280
+ const r = this._sheetDataValidationModel.getRuleObjectMatrix(o.unitId, o.subUnitId).clone(), l = new St(), s = /* @__PURE__ */ new Set(), { ranges: [c, u], mapFunc: h } = an([o.copyRange, t]), d = Ln(c, u, !0), v = /* @__PURE__ */ new Map();
1281
1281
  d.forEach(({ startRange: g }) => {
1282
1282
  var w;
1283
1283
  (w = this._copyInfo) == null || w.matrix.forValue((I, V, _) => {
@@ -1291,8 +1291,8 @@ let Ze = class extends De {
1291
1291
  g
1292
1292
  ), m = `${i}-${_}`, M = this._sheetDataValidationModel.getRuleById(a, i, _);
1293
1293
  !this._sheetDataValidationModel.getRuleById(o.unitId, o.subUnitId, m) && M && v.set(m, { ...M, uid: m });
1294
- const { row: P, col: U } = h(S.startRow, S.startColumn);
1295
- s.add(m), l.setValue(P, U, m);
1294
+ const { row: L, col: U } = h(S.startRow, S.startColumn);
1295
+ s.add(m), l.setValue(L, U, m);
1296
1296
  });
1297
1297
  });
1298
1298
  const p = Array.from(s).map((g) => ({ id: g, ranges: Jt(l, (w) => w === g) }));
@@ -1311,7 +1311,7 @@ let Ze = class extends De {
1311
1311
  };
1312
1312
  } else {
1313
1313
  const r = this._sheetDataValidationModel.getRuleObjectMatrix(a, i).clone(), l = new St(), s = /* @__PURE__ */ new Set(), { ranges: [c, u], mapFunc: h } = an([o.copyRange, t]);
1314
- Pn(c, u, !0).forEach(({ startRange: R }) => {
1314
+ Ln(c, u, !0).forEach(({ startRange: R }) => {
1315
1315
  var g;
1316
1316
  (g = this._copyInfo) == null || g.matrix.forValue((w, I, V) => {
1317
1317
  const _ = Ct.getPositionRange(
@@ -1344,7 +1344,7 @@ let Ze = class extends De {
1344
1344
  }
1345
1345
  };
1346
1346
  Ze = or([
1347
- Wt(0, Pa),
1347
+ Wt(0, La),
1348
1348
  Wt(1, b(ae)),
1349
1349
  Wt(2, b($e))
1350
1350
  ], Ze);
@@ -1419,12 +1419,12 @@ const cr = {
1419
1419
  }
1420
1420
  }
1421
1421
  };
1422
- var ur = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Lo = (e, t, o, n) => {
1422
+ var ur = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Po = (e, t, o, n) => {
1423
1423
  for (var a = n > 1 ? void 0 : n ? hr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1424
1424
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1425
1425
  return n && a && ur(t, o, a), a;
1426
1426
  }, Z = (e, t) => (o, n) => t(o, n, e);
1427
- const Po = {
1427
+ const Lo = {
1428
1428
  tr: {
1429
1429
  size: 6,
1430
1430
  color: "#fe4b4b"
@@ -1515,7 +1515,7 @@ let Je = class extends pn {
1515
1515
  ...e,
1516
1516
  markers: {
1517
1517
  ...e == null ? void 0 : e.markers,
1518
- ...h === st.INVALID ? Po : null
1518
+ ...h === st.INVALID ? Lo : null
1519
1519
  },
1520
1520
  customRender: [
1521
1521
  ...(w = e == null ? void 0 : e.customRender) != null ? w : [],
@@ -1535,13 +1535,13 @@ let Je = class extends pn {
1535
1535
  }, n, a)
1536
1536
  },
1537
1537
  interceptorAutoHeight: () => {
1538
- var P, U, T, E, A, F;
1539
- const S = (U = (P = this._renderManagerService.getRenderById(i)) == null ? void 0 : P.with(Dt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1538
+ var L, U, T, E, A, F;
1539
+ const S = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Dt).getSkeletonParam(r)) == null ? void 0 : U.skeleton;
1540
1540
  if (!S)
1541
1541
  return;
1542
1542
  const m = S.worksheet.getMergedCell(n, a), M = {
1543
1543
  data: e,
1544
- style: S.getsStyles().getStyleByCell(e),
1544
+ style: S.getStyles().getStyleByCell(e),
1545
1545
  primaryWithCoord: S.getCellWithCoordByIndex((T = m == null ? void 0 : m.startRow) != null ? T : n, (E = m == null ? void 0 : m.startColumn) != null ? E : a),
1546
1546
  unitId: i,
1547
1547
  subUnitId: r,
@@ -1553,13 +1553,13 @@ let Je = class extends pn {
1553
1553
  return (F = (A = d == null ? void 0 : d.canvasRender) == null ? void 0 : A.calcCellAutoHeight) == null ? void 0 : F.call(A, M);
1554
1554
  },
1555
1555
  interceptorAutoWidth: () => {
1556
- var P, U, T, E, A, F;
1557
- const S = (U = (P = this._renderManagerService.getRenderById(i)) == null ? void 0 : P.with(Dt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1556
+ var L, U, T, E, A, F;
1557
+ const S = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Dt).getSkeletonParam(r)) == null ? void 0 : U.skeleton;
1558
1558
  if (!S)
1559
1559
  return;
1560
1560
  const m = S.worksheet.getMergedCell(n, a), M = {
1561
1561
  data: e,
1562
- style: S.getsStyles().getStyleByCell(e),
1562
+ style: S.getStyles().getStyleByCell(e),
1563
1563
  primaryWithCoord: S.getCellWithCoordByIndex((T = m == null ? void 0 : m.startRow) != null ? T : n, (E = m == null ? void 0 : m.startColumn) != null ? E : a),
1564
1564
  unitId: i,
1565
1565
  subUnitId: r,
@@ -1597,7 +1597,7 @@ let Je = class extends pn {
1597
1597
  });
1598
1598
  }
1599
1599
  };
1600
- Je = Lo([
1600
+ Je = Po([
1601
1601
  Z(0, ee),
1602
1602
  Z(1, Ba),
1603
1603
  Z(2, Ve),
@@ -1636,7 +1636,7 @@ let $n = class extends pn {
1636
1636
  ...e,
1637
1637
  markers: {
1638
1638
  ...e == null ? void 0 : e.markers,
1639
- ...h === st.INVALID ? Po : null
1639
+ ...h === st.INVALID ? Lo : null
1640
1640
  },
1641
1641
  customRender: [
1642
1642
  ...(g = e == null ? void 0 : e.customRender) != null ? g : [],
@@ -1656,13 +1656,13 @@ let $n = class extends pn {
1656
1656
  }, n, a)
1657
1657
  },
1658
1658
  interceptorAutoHeight: () => {
1659
- var M, P, U, T, E, A;
1660
- const _ = (P = (M = this._renderManagerService.getRenderById(i)) == null ? void 0 : M.with(Dt).getWorksheetSkeleton(r)) == null ? void 0 : P.skeleton;
1659
+ var M, L, U, T, E, A;
1660
+ const _ = (L = (M = this._renderManagerService.getRenderById(i)) == null ? void 0 : M.with(Dt).getSkeletonParam(r)) == null ? void 0 : L.skeleton;
1661
1661
  if (!_)
1662
1662
  return;
1663
1663
  const S = _.worksheet.getMergedCell(n, a), m = {
1664
1664
  data: e,
1665
- style: _.getsStyles().getStyleByCell(e),
1665
+ style: _.getStyles().getStyleByCell(e),
1666
1666
  primaryWithCoord: _.getCellWithCoordByIndex((U = S == null ? void 0 : S.startRow) != null ? U : n, (T = S == null ? void 0 : S.startColumn) != null ? T : a),
1667
1667
  unitId: i,
1668
1668
  subUnitId: r,
@@ -1696,7 +1696,7 @@ let $n = class extends pn {
1696
1696
  });
1697
1697
  }
1698
1698
  };
1699
- $n = Lo([
1699
+ $n = Po([
1700
1700
  Z(0, ee),
1701
1701
  Z(1, Ve),
1702
1702
  Z(2, b(ho)),
@@ -1724,7 +1724,7 @@ let yt = class extends De {
1724
1724
  o.add(a.subUnitId);
1725
1725
  }), o.forEach((a) => {
1726
1726
  var i;
1727
- (i = this._sheetSkeletonManagerService.getWorksheetSkeleton(a)) == null || i.skeleton.makeDirty(!0);
1727
+ (i = this._sheetSkeletonManagerService.getSkeletonParam(a)) == null || i.skeleton.makeDirty(!0);
1728
1728
  }), (n = this._context.mainComponent) == null || n.makeForceDirty();
1729
1729
  };
1730
1730
  this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(Qo(16)).subscribe(e));
@@ -1745,7 +1745,7 @@ const gr = "univer-data-validation-formula", vr = "univer-data-validation-formul
1745
1745
  dataValidationFormulaColorSelectPanel: Rr,
1746
1746
  dataValidationFormulaColorItem: Dr
1747
1747
  }, Vr = (e) => {
1748
- const { isTwoFormula: t = !1, value: o, onChange: n, showError: a, validResult: i } = e, r = L(Q), l = a ? i == null ? void 0 : i.formula1 : "", s = a ? i == null ? void 0 : i.formula2 : "";
1748
+ const { isTwoFormula: t = !1, value: o, onChange: n, showError: a, validResult: i } = e, r = P(Q), l = a ? i == null ? void 0 : i.formula1 : "", s = a ? i == null ? void 0 : i.formula2 : "";
1749
1749
  return t ? /* @__PURE__ */ x(we, { children: [
1750
1750
  /* @__PURE__ */ f(q, { error: l, children: /* @__PURE__ */ f(
1751
1751
  Ue,
@@ -1789,10 +1789,10 @@ const gr = "univer-data-validation-formula", vr = "univer-data-validation-formul
1789
1789
  ) });
1790
1790
  };
1791
1791
  function Mr(e) {
1792
- const { value: t, onChange: o, showError: n, validResult: a } = e, i = L(Q), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = j(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
1792
+ const { value: t, onChange: o, showError: n, validResult: a } = e, i = P(Q), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = j(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
1793
1793
  return /* @__PURE__ */ x(we, { children: [
1794
1794
  /* @__PURE__ */ f(q, { children: /* @__PURE__ */ f(
1795
- Lt,
1795
+ Pt,
1796
1796
  {
1797
1797
  checked: s,
1798
1798
  onChange: (u) => {
@@ -1962,9 +1962,9 @@ const Er = [
1962
1962
  t.isRef ? null : /* @__PURE__ */ f("div", { className: oe.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ f(wn, { onClick: () => i(t.id) }) })
1963
1963
  ] });
1964
1964
  };
1965
- function Lr(e) {
1965
+ function Pr(e) {
1966
1966
  const { value: t, onChange: o = () => {
1967
- }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = ze(null), [h, d] = j(() => Ae(s) ? "1" : "0"), [v, p] = j(h === "1" ? s : "="), [C, R] = j(h === "1" ? s : "="), g = L(Q), w = L(be), I = L(Tt), V = L(_a), [_, S] = j(() => c.split(",")), m = w.getValidatorItem(K.LIST), [M, P] = j([]), [U, T] = j(""), E = r ? i == null ? void 0 : i.formula1 : "", A = Ke(() => I.ruleChange$.pipe(In(16)), []), F = ke(A), N = sn(o);
1967
+ }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = ze(null), [h, d] = j(() => Ae(s) ? "1" : "0"), [v, p] = j(h === "1" ? s : "="), [C, R] = j(h === "1" ? s : "="), g = P(Q), w = P(be), I = P(Tt), V = P(_a), [_, S] = j(() => c.split(",")), m = w.getValidatorItem(K.LIST), [M, L] = j([]), [U, T] = j(""), E = r ? i == null ? void 0 : i.formula1 : "", A = Ke(() => I.ruleChange$.pipe(In(16)), []), F = ke(A), N = sn(o);
1968
1968
  Ie(() => {
1969
1969
  (async () => {
1970
1970
  await new Promise((k) => {
@@ -1973,7 +1973,7 @@ function Lr(e) {
1973
1973
  const D = I.getRuleById(n, a, l), $ = D == null ? void 0 : D.formula1;
1974
1974
  if (Ae($) && m && D) {
1975
1975
  const k = await m.getListAsync(D, n, a);
1976
- P(k);
1976
+ L(k);
1977
1977
  }
1978
1978
  })();
1979
1979
  }, [I, F, m, l, a, n]), Ie(() => {
@@ -2120,7 +2120,7 @@ function Lr(e) {
2120
2120
  ] }) })
2121
2121
  ] });
2122
2122
  }
2123
- const Ao = "data-validation.custom-formula-input", Nt = "data-validation.formula-input", Mn = "data-validation.list-formula-input", Fo = "data-validation.checkbox-formula-input", Pr = [
2123
+ const Ao = "data-validation.custom-formula-input", Nt = "data-validation.formula-input", Mn = "data-validation.list-formula-input", Fo = "data-validation.checkbox-formula-input", Lr = [
2124
2124
  [
2125
2125
  Ao,
2126
2126
  yr
@@ -2131,7 +2131,7 @@ const Ao = "data-validation.custom-formula-input", Nt = "data-validation.formula
2131
2131
  ],
2132
2132
  [
2133
2133
  Mn,
2134
- Lr
2134
+ Pr
2135
2135
  ],
2136
2136
  [
2137
2137
  Fo,
@@ -2140,7 +2140,7 @@ const Ao = "data-validation.custom-formula-input", Nt = "data-validation.formula
2140
2140
  ], Tr = "LIST_RENDER_MODE_OPTION_INPUT";
2141
2141
  function bt(e) {
2142
2142
  var a;
2143
- const { value: t, onChange: o } = e, n = L(Q);
2143
+ const { value: t, onChange: o } = e, n = P(Q);
2144
2144
  return /* @__PURE__ */ f(q, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ x(fn, { value: `${(a = t.renderMode) != null ? a : ce.CUSTOM}`, onChange: (i) => o({ ...t, renderMode: +i }), children: [
2145
2145
  /* @__PURE__ */ f(Ne, { value: `${ce.CUSTOM}`, children: n.t("dataValidation.renderMode.chip") }),
2146
2146
  /* @__PURE__ */ f(Ne, { value: `${ce.ARROW}`, children: n.t("dataValidation.renderMode.arrow") }),
@@ -2151,9 +2151,9 @@ bt.componentKey = Tr;
2151
2151
  const Ar = "DATE_SHOW_TIME_OPTION";
2152
2152
  function Et(e) {
2153
2153
  var a;
2154
- const { value: t, onChange: o } = e, n = L(Q);
2154
+ const { value: t, onChange: o } = e, n = P(Q);
2155
2155
  return /* @__PURE__ */ f(q, { children: /* @__PURE__ */ f(
2156
- Lt,
2156
+ Pt,
2157
2157
  {
2158
2158
  checked: (a = t.bizInfo) == null ? void 0 : a.showTime,
2159
2159
  onChange: (i) => {
@@ -2257,11 +2257,11 @@ let ln = class {
2257
2257
  e.save(), e.beginPath(), e.rect(c.startX, c.startY, S, m), e.clip();
2258
2258
  const M = _.getMatrix();
2259
2259
  e.transform(M[0], M[1], M[2], M[3], M[4], M[5]);
2260
- const P = ((A = o == null ? void 0 : o.fs) != null ? A : 10) * 1.6, U = String(u) === String(C), T = v.hyacinth500;
2260
+ const L = ((A = o == null ? void 0 : o.fs) != null ? A : 10) * 1.6, U = String(u) === String(C), T = v.hyacinth500;
2261
2261
  sa.drawWith(e, {
2262
2262
  checked: U,
2263
- width: P,
2264
- height: P,
2263
+ width: L,
2264
+ height: L,
2265
2265
  fill: (N = (F = o == null ? void 0 : o.cl) == null ? void 0 : F.rgb) != null ? N : T
2266
2266
  }), e.restore();
2267
2267
  }
@@ -2461,7 +2461,7 @@ let cn = class {
2461
2461
  endX: u.endX - v,
2462
2462
  startY: u.startY + p,
2463
2463
  endY: u.endY - C
2464
- }, _ = V.endX - V.startX, S = V.endY - V.startY, { cl: m } = l || {}, M = (z = typeof m == "object" ? m == null ? void 0 : m.rgb : m) != null ? z : "#000", P = Ut(l != null ? l : void 0), { vt: U, ht: T } = l || {}, E = U != null ? U : he.MIDDLE, A = (H = re(s)) != null ? H : "", F = I.parseCellValue(A), N = I.getListWithColorMap(w), B = xt(F, P, _, S);
2464
+ }, _ = V.endX - V.startX, S = V.endY - V.startY, { cl: m } = l || {}, M = (z = typeof m == "object" ? m == null ? void 0 : m.rgb : m) != null ? z : "#000", L = Ut(l != null ? l : void 0), { vt: U, ht: T } = l || {}, E = U != null ? U : he.MIDDLE, A = (H = re(s)) != null ? H : "", F = I.parseCellValue(A), N = I.getListWithColorMap(w), B = xt(F, L, _, S);
2465
2465
  this._drawDownIcon(e, V, _, S, E), e.save(), e.translateWithPrecision(V.startX, V.startY), e.beginPath(), e.rect(0, 0, _ - Te, S), e.clip(), e.translateWithPrecision(dn, Ot);
2466
2466
  let Y = 0;
2467
2467
  switch (E) {
@@ -2486,7 +2486,7 @@ let cn = class {
2486
2486
  }
2487
2487
  e.translate(ie, J * (ne + Uo)), se.forEach((le) => {
2488
2488
  e.save(), e.translateWithPrecision(le.left, 0), Zr.drawWith(e, {
2489
- ...P,
2489
+ ...L,
2490
2490
  info: le,
2491
2491
  color: M,
2492
2492
  fill: N[le.text]
@@ -2573,7 +2573,7 @@ var ns = Object.defineProperty, os = Object.getOwnPropertyDescriptor, as = (e, t
2573
2573
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2574
2574
  return n && a && ns(t, o, a), a;
2575
2575
  }, ft = (e, t) => (o, n) => t(o, n, e);
2576
- const Pe = 4, mt = 4, pe = 14, fe = 6, xe = 4, Xt = 8, is = "#565656", Hn = 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");
2576
+ const Le = 4, mt = 4, pe = 14, fe = 6, xe = 4, Xt = 8, is = "#565656", Hn = 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");
2577
2577
  function rs(e, t) {
2578
2578
  const o = e.length;
2579
2579
  return {
@@ -2712,13 +2712,13 @@ let un = class {
2712
2712
  endX: c.endX - p,
2713
2713
  startY: c.startY + C,
2714
2714
  endY: c.endY - R
2715
- }, w = g.endX - g.startX, I = g.endY - g.startY, V = this._ensureMap(s), _ = this._generateKey(a, i), S = h.getListWithColor(u), m = re(l), M = `${m != null ? m : ""}`, P = S.find((F) => F.label === M);
2715
+ }, w = g.endX - g.startX, I = g.endY - g.startY, V = this._ensureMap(s), _ = this._generateKey(a, i), S = h.getListWithColor(u), m = re(l), M = `${m != null ? m : ""}`, L = S.find((F) => F.label === M);
2716
2716
  let { tb: U, vt: T, ht: E, pd: A } = r || {};
2717
2717
  if (U = U != null ? U : Ce.WRAP, T = T != null ? T : he.BOTTOM, E = E != null ? E : de.ht, A = A != null ? A : de.pd, u.renderMode === ce.ARROW) {
2718
2718
  const { l: F = de.pd.l, t: N = de.pd.t, r: B = de.pd.r, b: Y = de.pd.b } = A, z = w - F - B - pe - 4, { documentSkeleton: H, documents: G, docModel: J } = gt(M, this._localeService, r);
2719
2719
  U === Ce.WRAP && J.updateDocumentDataPageSize(Math.max(z, 1)), H.calculate(), H.getActualSize();
2720
2720
  const te = nt(H), { height: ne, width: se } = te, { paddingTop: ie, paddingLeft: le } = jn(z, I - N - Y, se, ne, T, E, !0);
2721
- this._drawDownIcon(e, g, w, I, ne, T, A), e.save(), e.translateWithPrecision(g.startX + F, g.startY + N), e.beginPath(), e.rect(0, 0, w - F - B, I - N - Y), e.clip(), e.translateWithPrecision(0, ie), e.save(), e.translateWithPrecision(Pe, 0), e.beginPath(), e.rect(0, 0, z, ne), e.clip(), G.render(e), e.translateWithPrecision(le, 0), e.restore(), e.restore(), V.set(_, {
2721
+ this._drawDownIcon(e, g, w, I, ne, T, A), e.save(), e.translateWithPrecision(g.startX + F, g.startY + N), e.beginPath(), e.rect(0, 0, w - F - B, I - N - Y), e.clip(), e.translateWithPrecision(0, ie), e.save(), e.translateWithPrecision(Le, 0), e.beginPath(), e.rect(0, 0, z, ne), e.clip(), G.render(e), e.translateWithPrecision(le, 0), e.restore(), e.restore(), V.set(_, {
2722
2722
  left: g.endX + F + o.rowHeaderWidth - pe,
2723
2723
  top: g.startY + N + o.columnHeaderHeight,
2724
2724
  width: pe,
@@ -2726,7 +2726,7 @@ let un = class {
2726
2726
  });
2727
2727
  } else {
2728
2728
  e.save(), e.translateWithPrecision(g.startX, g.startY), e.beginPath(), e.rect(0, 0, w, I), e.clip();
2729
- const F = w - fe * 2 - Pe - pe - 4, { documentSkeleton: N, documents: B, docModel: Y } = gt(M, this._localeService, r);
2729
+ const F = w - fe * 2 - Le - pe - 4, { documentSkeleton: N, documents: B, docModel: Y } = gt(M, this._localeService, r);
2730
2730
  U === Ce.WRAP && Y.updateDocumentDataPageSize(Math.max(F, 1)), N.calculate();
2731
2731
  const z = nt(N), { height: H, width: G } = z, { paddingTop: J, paddingLeft: te } = jn(F, I, G, H, T, E);
2732
2732
  e.translateWithPrecision(fe, J);
@@ -2734,9 +2734,9 @@ let un = class {
2734
2734
  Zn.drawWith(e, {
2735
2735
  width: ne,
2736
2736
  height: se,
2737
- fill: (P == null ? void 0 : P.color) || Fe,
2737
+ fill: (L == null ? void 0 : L.color) || Fe,
2738
2738
  radius: Xt
2739
- }), e.save(), e.translateWithPrecision(Pe, 0), e.beginPath(), e.rect(0, 0, F, H), e.clip(), e.translateWithPrecision(te, 0), B.render(e), e.restore(), e.translateWithPrecision(F + Pe + 4, (H - mt) / 2), e.fillStyle = is, e.fill(Hn), e.restore(), V.set(_, {
2739
+ }), e.save(), e.translateWithPrecision(Le, 0), e.beginPath(), e.rect(0, 0, F, H), e.clip(), e.translateWithPrecision(te, 0), B.render(e), e.restore(), e.translateWithPrecision(F + Le + 4, (H - mt) / 2), e.fillStyle = is, e.fill(Hn), e.restore(), V.set(_, {
2740
2740
  left: g.startX + fe + o.rowHeaderWidth,
2741
2741
  top: g.startY + J + o.columnHeaderHeight,
2742
2742
  width: ne,
@@ -2759,15 +2759,15 @@ let un = class {
2759
2759
  if (g = g != null ? g : Ce.WRAP, d.renderMode === ce.ARROW) {
2760
2760
  const _ = p - pe, { documentSkeleton: S, docModel: m } = gt(R, this._localeService, o);
2761
2761
  g === Ce.WRAP && m.updateDocumentDataPageSize(Math.max(_, 1)), S.calculate(), S.getActualSize();
2762
- const M = nt(S), { height: P } = M;
2763
- return P + I + V + xe * 2;
2762
+ const M = nt(S), { height: L } = M;
2763
+ return L + I + V + xe * 2;
2764
2764
  } else {
2765
- const _ = p - fe * 2 - Pe - pe, { documentSkeleton: S, docModel: m } = Bo(R, this._localeService, o);
2765
+ const _ = p - fe * 2 - Le - pe, { documentSkeleton: S, docModel: m } = Bo(R, this._localeService, o);
2766
2766
  g === Ce.WRAP && m.updateDocumentDataPageSize(Math.max(_, 1)), S.calculate();
2767
2767
  const M = nt(S), {
2768
- height: P
2768
+ height: L
2769
2769
  } = M;
2770
- return P + xe * 2;
2770
+ return L + xe * 2;
2771
2771
  }
2772
2772
  }
2773
2773
  calcCellAutoWidth(e) {
@@ -2789,11 +2789,11 @@ let un = class {
2789
2789
  _ = pe + fe * 2 + V + I;
2790
2790
  break;
2791
2791
  case ce.CUSTOM:
2792
- _ = pe + fe * 2 + Pe * 2 + V + I + Xt / 2 + 1;
2792
+ _ = pe + fe * 2 + Le * 2 + V + I + Xt / 2 + 1;
2793
2793
  break;
2794
2794
  // default is CUSTOM
2795
2795
  default:
2796
- _ = pe + fe * 2 + Pe * 2 + V + I + Xt / 2 + 1;
2796
+ _ = pe + fe * 2 + Le * 2 + V + I + Xt / 2 + 1;
2797
2797
  }
2798
2798
  const S = p - _, { documentSkeleton: m, docModel: M } = gt(R, this._localeService, o);
2799
2799
  return g === Ce.WRAP && M.updateDocumentDataPageSize(Math.max(S, 1)), m.calculate(), m.getActualSize(), nt(m).width + _;
@@ -2873,7 +2873,7 @@ let Qe = class extends pn {
2873
2873
  [bo, Ja],
2874
2874
  [bt.componentKey, bt],
2875
2875
  [Et.componentKey, Et],
2876
- ...Pr
2876
+ ...Lr
2877
2877
  ].forEach(([e, t]) => {
2878
2878
  this.disposeWithMe(this._componentManger.register(
2879
2879
  e,
@@ -2899,7 +2899,7 @@ let Qe = class extends pn {
2899
2899
  };
2900
2900
  Qe = hs([
2901
2901
  zt(0, b($e)),
2902
- zt(1, b(Pt)),
2902
+ zt(1, b(Lt)),
2903
2903
  zt(2, b(be))
2904
2904
  ], Qe);
2905
2905
  var ps = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, ms = (e, t, o, n) => {