@univerjs/sheets-table-ui 0.15.3-insiders.20260131-b9b8805 → 0.15.3

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,20 +1,20 @@
1
1
  var En = Object.defineProperty;
2
2
  var $n = (r, e, t) => e in r ? En(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var U = (r, e, t) => $n(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { Inject as N, IUniverInstanceService as pe, LocaleService as te, Disposable as Le, ObjectMatrix as Ln, cellToRange as Zt, Rectangle as be, ICommandService as ne, Injector as ke, IPermissionService as jt, IContextService as wt, CommandType as qt, IConfigService as Yt, ThemeService as kn, RxDisposable as Qt, VerticalAlign as rt, InterceptorEffectEnum as Pn, ErrorService as On, ColorKit as he, UniverInstanceType as Ye, DependentOn as Dn, Plugin as Bn, merge as Fn, registerDependencies as Vn, touchDependencies as Hn } from "@univerjs/core";
5
- import { SHEET_VIEWPORT_KEY as An, convertTransformToOffsetX as Un, convertTransformToOffsetY as Wn, IRenderManagerService as zt, Rect as Et, Shape as Zn } from "@univerjs/engine-render";
6
- import { TableManager as re, SheetTableService as jn, SetSheetTableFilterCommand as $t, isConditionFilter as qn, isManualFilter as Yn, TableDateCompareTypeEnum as o, TableStringCompareTypeEnum as Z, TableConditionTypeEnum as F, TableNumberCompareTypeEnum as k, SheetsTableSortStateEnum as Xe, TableColumnFilterTypeEnum as Lt, AddSheetTableCommand as Qn, SHEET_TABLE_CUSTOM_THEME_PREFIX as zn, DeleteSheetTableCommand as Gn, SetSheetTableCommand as ft, SheetsTableButtonStateEnum as Re, processStyleWithBorderStyle as kt, customEmptyThemeWithBorderStyle as Xn, AddTableThemeCommand as Kn, RemoveTableThemeCommand as Jn, SheetTableRemoveColCommand as Gt, SheetTableRemoveRowCommand as Xt, SheetTableInsertColCommand as Kt, SheetTableInsertRowCommand as Jt, SheetsTableController as en, UniverSheetsTablePlugin as er } from "@univerjs/sheets-table";
4
+ import { Inject as N, IUniverInstanceService as pe, ICommandService as te, LocaleService as ne, Disposable as Le, ObjectMatrix as Ln, cellToRange as Zt, Rectangle as be, Injector as ke, IPermissionService as jt, IContextService as wt, CommandType as qt, IConfigService as Yt, ThemeService as kn, RxDisposable as Qt, VerticalAlign as rt, InterceptorEffectEnum as Pn, ErrorService as On, ColorKit as he, UniverInstanceType as Ye, DependentOn as Dn, Plugin as Bn, merge as Fn, registerDependencies as Vn, touchDependencies as Hn } from "@univerjs/core";
5
+ import { IRenderManagerService as Gt, SHEET_VIEWPORT_KEY as An, convertTransformToOffsetX as Un, convertTransformToOffsetY as Wn, Rect as Et, Shape as Zn } from "@univerjs/engine-render";
6
+ import { TableManager as re, SheetTableService as jn, SetSheetTableFilterCommand as $t, isConditionFilter as qn, isManualFilter as Yn, TableDateCompareTypeEnum as o, TableStringCompareTypeEnum as Z, TableConditionTypeEnum as F, TableNumberCompareTypeEnum as k, SheetsTableSortStateEnum as ze, TableColumnFilterTypeEnum as Lt, AddSheetTableCommand as Qn, SHEET_TABLE_CUSTOM_THEME_PREFIX as Gn, DeleteSheetTableCommand as Xn, SetSheetTableCommand as ft, SheetsTableButtonStateEnum as Re, processStyleWithBorderStyle as kt, customEmptyThemeWithBorderStyle as zn, AddTableThemeCommand as Kn, RemoveTableThemeCommand as Jn, SheetTableRemoveColCommand as Xt, SheetTableRemoveRowCommand as zt, SheetTableInsertColCommand as Kt, SheetTableInsertRowCommand as Jt, SheetsTableController as en, UniverSheetsTablePlugin as er } from "@univerjs/sheets-table";
7
7
  import { SheetCanvasPopManagerService as tr, SheetSkeletonManagerService as lt, SheetScrollManagerService as nr, SetZoomRatioOperation as rr, SetScrollOperation as ir, getSheetObject as ar, getCoordByCell as sr, getCurrentRangeDisable$ as or, SelectAllCommand as lr } from "@univerjs/sheets-ui";
8
- import { useDependency as M, ComponentManager as tn, IDialogService as nn, ISidebarService as cr, useObservable as Te, BuiltInUIPart as ur, connectInjector as dr, IUIPartsService as hr, MenuItemType as ye, getMenuHiddenObservable as vr, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
8
+ import { useDependency as M, ComponentManager as tn, IDialogService as nn, ISidebarService as cr, useObservable as Te, IUIPartsService as ur, BuiltInUIPart as dr, connectInjector as hr, MenuItemType as ye, getMenuHiddenObservable as vr, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
9
9
  import { startWith as rn, distinctUntilChanged as fr, Subject as Cr, BehaviorSubject as Pt, merge as It, filter as Sr, debounceTime as _r, switchMap as we, of as J, map as Tr, takeUntil as wr } from "rxjs";
10
10
  import { jsxs as T, jsx as l, Fragment as yt } from "react/jsx-runtime";
11
11
  import { Dropdown as Ne, clsx as D, borderClassName as H, CascaderList as Ir, Input as Rt, InputNumber as gt, DatePicker as yr, DateRangePicker as Rr, Select as Mr, Checkbox as Ot, scrollbarClassName as xr, ButtonGroup as Nr, Button as _e, Segmented as Er, ColorPicker as Ke } from "@univerjs/design";
12
12
  import { useRef as $r, createElement as ie, forwardRef as le, useState as q, useMemo as an, useCallback as Dt, useEffect as sn } from "react";
13
- import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as on, getSheetCommandTarget as ct, SheetsSelectionsService as ut, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as cn, SheetRangeThemeModel as un, SheetInterceptorService as dn, SetVerticalTextAlignCommand as Or, INTERCEPTOR_POINT as Dr, RangeThemeStyle as Br, SetSelectionsOperation as Bt, getPrimaryForRange as Ft } from "@univerjs/sheets";
13
+ import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as on, getSheetCommandTarget as ct, SheetsSelectionsService as ut, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as cn, SheetRangeThemeModel as un, SheetInterceptorService as dn, SetVerticalTextAlignCommand as Or, INTERCEPTOR_POINT as Dr, RangeThemeStyle as Br, getPrimaryForRange as Bt, SetSelectionsOperation as Ft } from "@univerjs/sheets";
14
14
  import { SortRangeCommand as Fr, SortType as Vt } from "@univerjs/sheets-sort";
15
15
  import { serializeRange as Ht, deserializeRangeWithSheet as Vr } from "@univerjs/engine-formula";
16
16
  import { RangeSelector as Hr } from "@univerjs/sheets-formula-ui";
17
- const Ar = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Ur = "UNIVER_SHEET_Table_FILTER_PANEL_ID", hn = "TABLE_TOOLBAR_BUTTON", xe = "TABLE_SELECTOR_DIALOG", Wr = "SHEET_TABLE_THEME_PANEL_ID", vn = "SHEET_TABLE_THEME_PANEL", bt = "table-custom-", Zr = "table-default-", ve = "rgb(255, 255, 255)", G = "none", Je = "1px solid rgb(var(--grey-200))";
17
+ const Ar = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Ur = "UNIVER_SHEET_Table_FILTER_PANEL_ID", hn = "TABLE_TOOLBAR_BUTTON", xe = "TABLE_SELECTOR_DIALOG", Wr = "SHEET_TABLE_THEME_PANEL_ID", vn = "SHEET_TABLE_THEME_PANEL", bt = "table-custom-", Zr = "table-default-", ve = "rgb(255, 255, 255)", X = "none", Je = "1px solid rgb(var(--grey-200))";
18
18
  function ae({ ref: r, ...e }) {
19
19
  const { icon: t, id: n, className: i, extend: a, ...s } = e, c = `univerjs-icon univerjs-icon-${n} ${i || ""}`.trim(), u = $r(`_${Yr()}`);
20
20
  return gn(t, `${n}`, {
@@ -105,7 +105,7 @@ const Qr = {
105
105
  }));
106
106
  });
107
107
  bn.displayName = "AscendingIcon";
108
- const zr = {
108
+ const Gr = {
109
109
  tag: "svg",
110
110
  attrs: {
111
111
  xmlns: "http://www.w3.org/2000/svg",
@@ -150,11 +150,11 @@ const zr = {
150
150
  return ie(ae, Object.assign({}, e, {
151
151
  id: "delete-icon",
152
152
  ref: t,
153
- icon: zr
153
+ icon: Gr
154
154
  }));
155
155
  });
156
156
  mn.displayName = "DeleteIcon";
157
- const Gr = {
157
+ const Xr = {
158
158
  tag: "svg",
159
159
  attrs: {
160
160
  xmlns: "http://www.w3.org/2000/svg",
@@ -194,11 +194,11 @@ const Gr = {
194
194
  return ie(ae, Object.assign({}, e, {
195
195
  id: "descending-icon",
196
196
  ref: t,
197
- icon: Gr
197
+ icon: Xr
198
198
  }));
199
199
  });
200
200
  pn.displayName = "DescendingIcon";
201
- const Xr = {
201
+ const zr = {
202
202
  tag: "svg",
203
203
  attrs: {
204
204
  xmlns: "http://www.w3.org/2000/svg",
@@ -218,7 +218,7 @@ const Xr = {
218
218
  return ie(ae, Object.assign({}, e, {
219
219
  id: "dropdown-icon",
220
220
  ref: t,
221
- icon: Xr
221
+ icon: zr
222
222
  }));
223
223
  });
224
224
  je.displayName = "DropdownIcon";
@@ -473,12 +473,12 @@ Ee = ii([
473
473
  We(0, N(re)),
474
474
  We(1, N(jn)),
475
475
  We(2, N(pe)),
476
- We(3, ne),
477
- We(4, N(te))
476
+ We(3, te),
477
+ We(4, N(ne))
478
478
  ], Ee);
479
479
  var j = /* @__PURE__ */ ((r) => (r.DatePicker = "DatePicker", r.DateRange = "DateRange", r.Input = "Input", r.Inputs = "Inputs", r.Select = "Select", r.None = "None", r))(j || {});
480
480
  function ai(r) {
481
- const t = r.get(te).t;
481
+ const t = r.get(ne).t;
482
482
  return [
483
483
  {
484
484
  value: F.String,
@@ -659,7 +659,7 @@ function ai(r) {
659
659
  function si(r, e) {
660
660
  if (!e)
661
661
  return [];
662
- const n = r.get(te).t;
662
+ const n = r.get(ne).t;
663
663
  switch (e) {
664
664
  case o.Quarter:
665
665
  return [
@@ -832,7 +832,7 @@ function li(r) {
832
832
  }
833
833
  const ci = (r) => {
834
834
  var w, S, E, C, $, I, B, R;
835
- const { conditionInfo: e, onChange: t } = r, n = M(te), [i, a] = q(!1), s = M(ke), c = ai(s), u = (g, x, y) => {
835
+ const { conditionInfo: e, onChange: t } = r, n = M(ne), [i, a] = q(!1), s = M(ke), c = ai(s), u = (g, x, y) => {
836
836
  t({
837
837
  type: x != null ? x : e.type,
838
838
  compare: y != null ? y : e.compare,
@@ -960,7 +960,7 @@ const ci = (r) => {
960
960
  }), e;
961
961
  };
962
962
  function di(r) {
963
- const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, u = M(te), h = M(Ee), { data: d, itemsCountMap: v, allItemsCount: f } = h.getTableFilterItems(e, n, t, i), [w, S] = q(c === void 0 ? !0 : a.size === v.size), [E, C] = q(w ? f : ui(v)), $ = !w && a.size > 0, [I, B] = q(""), R = an(() => I ? d.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : d, [I, d]), g = Dt(() => {
963
+ const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, u = M(ne), h = M(Ee), { data: d, itemsCountMap: v, allItemsCount: f } = h.getTableFilterItems(e, n, t, i), [w, S] = q(c === void 0 ? !0 : a.size === v.size), [E, C] = q(w ? f : ui(v)), $ = !w && a.size > 0, [I, B] = q(""), R = an(() => I ? d.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : d, [I, d]), g = Dt(() => {
964
964
  w ? (a.clear(), s(new Set(a)), S(!1)) : (R.forEach((m) => {
965
965
  a.add(m.title);
966
966
  }), s(new Set(a)), S(!0));
@@ -1031,13 +1031,13 @@ function di(r) {
1031
1031
  }
1032
1032
  function hi() {
1033
1033
  var de;
1034
- const r = M(te), e = vi(r), t = M(Ee), n = M(re), i = M(ne), a = M(jt), s = M($e), c = s.getCurrentTableFilterInfo(), u = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: d, tableId: v, tableFilter: f, currentFilterBy: w, columnIndex: S } = u, { data: E } = t.getTableFilterItems(h, d, v, S), C = t.getTableFilterCheckedItems(h, v, S), [$, I] = q(new Set(C)), [B, R] = q(w || me.Items), [g, x] = q(() => {
1034
+ const r = M(ne), e = vi(r), t = M(Ee), n = M(re), i = M(te), a = M(jt), s = M($e), c = s.getCurrentTableFilterInfo(), u = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: d, tableId: v, tableFilter: f, currentFilterBy: w, columnIndex: S } = u, { data: E } = t.getTableFilterItems(h, d, v, S), C = t.getTableFilterCheckedItems(h, v, S), [$, I] = q(new Set(C)), [B, R] = q(w || me.Items), [g, x] = q(() => {
1035
1035
  const b = u.tableFilter;
1036
1036
  return li(b);
1037
1037
  }), y = n.getTable(h, v);
1038
1038
  if (!y) return null;
1039
1039
  const m = y.getTableFilters(), O = m.getSortState();
1040
- O.columnIndex === S && (O.sortState, Xe.Asc), O.columnIndex === S && (O.sortState, Xe.Desc);
1040
+ O.columnIndex === S && (O.sortState, ze.Asc), O.columnIndex === S && (O.sortState, ze.Desc);
1041
1041
  const L = () => {
1042
1042
  s.closeFilterPanel();
1043
1043
  }, Y = () => {
@@ -1050,8 +1050,8 @@ function hi() {
1050
1050
  range: P,
1051
1051
  orderRules: [{ colIndex: S + P.startColumn, type: b ? Vt.ASC : Vt.DESC }],
1052
1052
  hasTitle: !1
1053
- }), m.setSortState(S, b ? Xe.Asc : Xe.Desc), L();
1054
- }, z = () => {
1053
+ }), m.setSortState(S, b ? ze.Asc : ze.Desc), L();
1054
+ }, G = () => {
1055
1055
  if (B === me.Items) {
1056
1056
  const b = [];
1057
1057
  for (const Q of E)
@@ -1115,7 +1115,7 @@ function hi() {
1115
1115
  onChange: (b) => R(b)
1116
1116
  }
1117
1117
  ) }),
1118
- /* @__PURE__ */ l("div", { className: "univer-z-10 univer-h-60", children: /* @__PURE__ */ l("div", { className: "univer-mt-3 univer-size-full", children: B === me.Items ? /* @__PURE__ */ l(
1118
+ /* @__PURE__ */ l("div", { className: "univer-z-10 univer-h-60", children: /* @__PURE__ */ l("div", { className: "univer-mt-3 univer-h-full univer-w-full", children: B === me.Items ? /* @__PURE__ */ l(
1119
1119
  di,
1120
1120
  {
1121
1121
  tableFilter: f,
@@ -1153,7 +1153,7 @@ function hi() {
1153
1153
  ),
1154
1154
  /* @__PURE__ */ T("div", { children: [
1155
1155
  /* @__PURE__ */ l(_e, { className: "univer-mr-2", onClick: Y, children: r.t("sheets-table.filter.cancel") }),
1156
- /* @__PURE__ */ l(_e, { variant: "primary", onClick: z, children: r.t("sheets-table.filter.confirm") })
1156
+ /* @__PURE__ */ l(_e, { variant: "primary", onClick: G, children: r.t("sheets-table.filter.confirm") })
1157
1157
  ] })
1158
1158
  ]
1159
1159
  }
@@ -1245,7 +1245,7 @@ const Ct = {
1245
1245
  id: "sheet.operation.open-table-selector",
1246
1246
  async handler(r) {
1247
1247
  var w;
1248
- const e = r.get(pe), t = r.get(ne), n = ct(e);
1248
+ const e = r.get(pe), t = r.get(te), n = ct(e);
1249
1249
  if (!n)
1250
1250
  return !1;
1251
1251
  const { unitId: i, subUnitId: a, worksheet: s } = n, u = r.get(ut).getCurrentLastSelection(), h = (w = u == null ? void 0 : u.range) != null ? w : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, v = kr(u) ? Pr(h, { up: !0, left: !0, right: !0, down: !0 }, s) : h, f = await Tn(r, i, a, v);
@@ -1253,7 +1253,7 @@ const Ct = {
1253
1253
  }
1254
1254
  };
1255
1255
  async function Tn(r, e, t, n, i) {
1256
- const a = r.get(nn), s = r.get(te);
1256
+ const a = r.get(nn), s = r.get(ne);
1257
1257
  return new Promise((c) => {
1258
1258
  const u = {
1259
1259
  unitId: e,
@@ -1308,18 +1308,18 @@ let Ie = class extends Le {
1308
1308
  this._commandService.onCommandExecuted((e) => {
1309
1309
  if (e.id === ln.id) {
1310
1310
  const t = e.params, { styleName: n } = t;
1311
- n.startsWith(zn) && this._refreshTable.next(Math.random());
1311
+ n.startsWith(Gn) && this._refreshTable.next(Math.random());
1312
1312
  }
1313
1313
  })
1314
1314
  );
1315
1315
  }
1316
1316
  };
1317
1317
  Ie = pi([
1318
- fi(0, N(ne))
1318
+ fi(0, N(te))
1319
1319
  ], Ie);
1320
1320
  const Ci = () => {
1321
1321
  var fe, de;
1322
- const [r, e] = q(""), [t, n] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), u = M(it), h = Te(u.anchorPosition$), d = M(ne), v = M(pe), f = M(cn), w = Te(f.unitPermissionInitStateChange$, !1), S = M(re), E = M(un), C = M(Ie), $ = Te(C.refreshTable$), I = M(te), B = M(ut), R = Te(B.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, g] = q(Math.random()), y = M(Yt).getConfig(wn), m = (fe = y == null ? void 0 : y.anchorHeight) != null ? fe : 24, O = (de = y == null ? void 0 : y.anchorBackgroundColor) != null ? de : "rgb(53,91,183)", L = (b, P) => {
1322
+ const [r, e] = q(""), [t, n] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), u = M(it), h = Te(u.anchorPosition$), d = M(te), v = M(pe), f = M(cn), w = Te(f.unitPermissionInitStateChange$, !1), S = M(re), E = M(un), C = M(Ie), $ = Te(C.refreshTable$), I = M(ne), B = M(ut), R = Te(B.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, g] = q(Math.random()), y = M(Yt).getConfig(wn), m = (fe = y == null ? void 0 : y.anchorHeight) != null ? fe : 24, O = (de = y == null ? void 0 : y.anchorBackgroundColor) != null ? de : "rgb(53,91,183)", L = (b, P) => {
1323
1323
  s((A) => ({
1324
1324
  ...A,
1325
1325
  [b]: P
@@ -1331,7 +1331,7 @@ const Ci = () => {
1331
1331
  return null;
1332
1332
  const Y = ct(v);
1333
1333
  if (!Y) return null;
1334
- const { unitId: V, subUnitId: z } = Y, ce = (b, P) => {
1334
+ const { unitId: V, subUnitId: G } = Y, ce = (b, P) => {
1335
1335
  var Q;
1336
1336
  if (((Q = S.getTableById(V, b)) == null ? void 0 : Q.getDisplayName()) === P) {
1337
1337
  e(""), n("");
@@ -1345,7 +1345,7 @@ const Ci = () => {
1345
1345
  }, ue = async (b) => {
1346
1346
  const P = S.getTableById(V, b);
1347
1347
  if (!P) return;
1348
- const A = P.getRange(), Q = await Tn(c, V, z, A, b);
1348
+ const A = P.getRange(), Q = await Tn(c, V, G, A, b);
1349
1349
  Q && d.executeCommand(ft.id, {
1350
1350
  tableId: b,
1351
1351
  unitId: V,
@@ -1354,18 +1354,18 @@ const Ci = () => {
1354
1354
  }
1355
1355
  });
1356
1356
  };
1357
- return w ? /* @__PURE__ */ l("div", { className: "univer-absolute univer-z-50 univer-size-0", children: h.map((b) => {
1358
- var Oe, De, p, _, X, K, se;
1357
+ return w ? /* @__PURE__ */ l("div", { className: "univer-absolute univer-z-50 univer-h-0 univer-w-0", children: h.map((b) => {
1358
+ var Oe, De, p, _, z, K, se;
1359
1359
  const P = S.getTableById(V, b.tableId);
1360
1360
  if (!P) return null;
1361
- const A = E.getRangeThemeStyle(V, P.getTableStyleId()), Q = (p = (De = (Oe = A == null ? void 0 : A.getHeaderRowStyle()) == null ? void 0 : Oe.bg) == null ? void 0 : De.rgb) != null ? p : O, Qe = (K = (X = (_ = A == null ? void 0 : A.getHeaderRowStyle()) == null ? void 0 : _.cl) == null ? void 0 : X.rgb) != null ? K : "rgb(255, 255, 255)", ze = P.getRange();
1361
+ const A = E.getRangeThemeStyle(V, P.getTableStyleId()), Q = (p = (De = (Oe = A == null ? void 0 : A.getHeaderRowStyle()) == null ? void 0 : Oe.bg) == null ? void 0 : De.rgb) != null ? p : O, Qe = (K = (z = (_ = A == null ? void 0 : A.getHeaderRowStyle()) == null ? void 0 : _.cl) == null ? void 0 : z.rgb) != null ? K : "rgb(255, 255, 255)", Ge = P.getRange();
1362
1362
  if (!(R != null && R.length))
1363
1363
  return null;
1364
- const Ge = R[R.length - 1].range, Pe = !be.intersects(ze, Ge) && b.y <= 20;
1364
+ const Xe = R[R.length - 1].range, Pe = !be.intersects(Ge, Xe) && b.y <= 20;
1365
1365
  return /* @__PURE__ */ T(
1366
1366
  "div",
1367
1367
  {
1368
- className: D("univer-shadow-xs univer-absolute univer-box-border univer-cursor-pointer univer-items-center univer-rounded-xl univer-px-2", H, {
1368
+ className: D("univer-shadow-xs univer-absolute univer-box-border univer-cursor-pointer univer-items-center univer-rounded-xl univer-pl-2 univer-pr-2", H, {
1369
1369
  "univer-flex": !Pe,
1370
1370
  "univer-hidden": Pe
1371
1371
  }),
@@ -1396,11 +1396,11 @@ const Ci = () => {
1396
1396
  Ne,
1397
1397
  {
1398
1398
  align: "start",
1399
- overlay: /* @__PURE__ */ T("div", { className: "univer-py-2", children: [
1399
+ overlay: /* @__PURE__ */ T("div", { className: "univer-pb-2 univer-pt-2", children: [
1400
1400
  /* @__PURE__ */ T(
1401
1401
  "div",
1402
1402
  {
1403
- className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-gap-2 univer-px-2 univer-py-1 univer-text-sm hover:univer-bg-gray-200",
1403
+ className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-gap-2 univer-pb-1 univer-pl-2 univer-pr-2 univer-pt-1 univer-text-sm hover:univer-bg-gray-200",
1404
1404
  onClick: () => {
1405
1405
  e(b.tableId), n(b.tableName);
1406
1406
  },
@@ -1413,14 +1413,14 @@ const Ci = () => {
1413
1413
  /* @__PURE__ */ l(
1414
1414
  "div",
1415
1415
  {
1416
- className: "univer-my-1 univer-h-px univer-w-full univer-bg-gray-200"
1416
+ className: "univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200"
1417
1417
  }
1418
1418
  ),
1419
1419
  /* @__PURE__ */ T(
1420
1420
  "div",
1421
1421
  {
1422
1422
  onClick: () => ue(b.tableId),
1423
- className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-gap-2 univer-px-2 univer-py-1 univer-text-sm hover:univer-bg-gray-200",
1423
+ className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-gap-2 univer-pb-1 univer-pl-2 univer-pr-2 univer-pt-1 univer-text-sm hover:univer-bg-gray-200",
1424
1424
  children: [
1425
1425
  /* @__PURE__ */ l(fn, {}),
1426
1426
  I.t("sheets-table.updateRange")
@@ -1430,7 +1430,7 @@ const Ci = () => {
1430
1430
  /* @__PURE__ */ T(
1431
1431
  "div",
1432
1432
  {
1433
- className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-gap-2 univer-px-2 univer-py-1 univer-text-sm hover:univer-bg-gray-200",
1433
+ className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-gap-2 univer-pb-1 univer-pl-2 univer-pr-2 univer-pt-1 univer-text-sm hover:univer-bg-gray-200",
1434
1434
  onClick: () => {
1435
1435
  L(b.tableId, !1);
1436
1436
  const W = S.getTableById(V, b.tableId);
@@ -1442,7 +1442,7 @@ const Ci = () => {
1442
1442
  label: vn,
1443
1443
  oldConfig: Ce,
1444
1444
  unitId: V,
1445
- subUnitId: z,
1445
+ subUnitId: G,
1446
1446
  tableId: b.tableId
1447
1447
  },
1448
1448
  width: 330
@@ -1463,17 +1463,17 @@ const Ci = () => {
1463
1463
  /* @__PURE__ */ l(
1464
1464
  "div",
1465
1465
  {
1466
- className: "univer-my-1 univer-h-px univer-w-full univer-bg-gray-200"
1466
+ className: "univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200"
1467
1467
  }
1468
1468
  ),
1469
1469
  /* @__PURE__ */ T(
1470
1470
  "div",
1471
1471
  {
1472
- className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-px-2 univer-py-1 univer-text-sm hover:univer-bg-gray-200",
1472
+ className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-pb-1 univer-pl-2 univer-pr-2 univer-pt-1 univer-text-sm hover:univer-bg-gray-200",
1473
1473
  onClick: () => {
1474
- L(b.tableId, !1), d.executeCommand(Gn.id, {
1474
+ L(b.tableId, !1), d.executeCommand(Xn.id, {
1475
1475
  tableId: b.tableId,
1476
- subUnitId: z,
1476
+ subUnitId: G,
1477
1477
  unitId: V
1478
1478
  });
1479
1479
  },
@@ -1514,7 +1514,7 @@ let it = class extends Le {
1514
1514
  }
1515
1515
  _initUI() {
1516
1516
  this.disposeWithMe(
1517
- this._uiPartsService.registerComponent(ur.CONTENT, () => dr(Ci, this._injector))
1517
+ this._uiPartsService.registerComponent(dr.CONTENT, () => hr(Ci, this._injector))
1518
1518
  );
1519
1519
  }
1520
1520
  _initListener() {
@@ -1580,10 +1580,10 @@ let it = class extends Le {
1580
1580
  it = _i([
1581
1581
  ee(1, N(ke)),
1582
1582
  ee(2, N(lt)),
1583
- ee(3, zt),
1584
- ee(4, ne),
1583
+ ee(3, Gt),
1584
+ ee(4, te),
1585
1585
  ee(5, pe),
1586
- ee(6, hr),
1586
+ ee(6, ur),
1587
1587
  ee(7, N(re)),
1588
1588
  ee(8, N(nr)),
1589
1589
  ee(9, N(cn)),
@@ -1702,7 +1702,7 @@ let St = class extends Zn {
1702
1702
  };
1703
1703
  St = xi([
1704
1704
  mt(2, wt),
1705
- mt(3, ne),
1705
+ mt(3, te),
1706
1706
  mt(4, N(kn))
1707
1707
  ], St);
1708
1708
  var Ni = Object.getOwnPropertyDescriptor, Ei = (r, e, t, n) => {
@@ -1789,7 +1789,7 @@ let _t = class extends Qt {
1789
1789
  const C = `sheets-table-filter-button-${f}-${E}`, $ = sr(f, E, c, i), I = u.getCellStyle(f, E), B = (I == null ? void 0 : I.vt) || rt.BOTTOM, { startX: R, startY: g, endX: x, endY: y } = $, m = x - R, O = y - g;
1790
1790
  if (O <= qe || m <= qe)
1791
1791
  continue;
1792
- const L = d[E - w], Y = x - oe - qe, V = Li(g, y, O, B), z = {
1792
+ const L = d[E - w], Y = x - oe - qe, V = Li(g, y, O, B), G = {
1793
1793
  left: Y,
1794
1794
  top: V,
1795
1795
  height: oe,
@@ -1798,7 +1798,7 @@ let _t = class extends Qt {
1798
1798
  cellHeight: O,
1799
1799
  cellWidth: m,
1800
1800
  filterParams: { unitId: n, subUnitId: a, row: f, col: E, buttonState: L, tableId: v }
1801
- }, ce = this._injector.createInstance(St, C, z);
1801
+ }, ce = this._injector.createInstance(St, C, G);
1802
1802
  this._tableFilterButtonShapes.push(ce);
1803
1803
  }
1804
1804
  }
@@ -1829,10 +1829,10 @@ _t = Ei([
1829
1829
  Ze(2, N(lt)),
1830
1830
  Ze(3, N(dn)),
1831
1831
  Ze(4, N(re)),
1832
- Ze(5, ne)
1832
+ Ze(5, te)
1833
1833
  ], _t);
1834
1834
  const ki = (r) => {
1835
- const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = M(re), [u, h] = q(n), [d, v] = q(""), f = M(te), w = M(pe);
1835
+ const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = M(re), [u, h] = q(n), [d, v] = q(""), f = M(ne), w = M(pe);
1836
1836
  return /* @__PURE__ */ T(yt, { children: [
1837
1837
  /* @__PURE__ */ l(
1838
1838
  Hr,
@@ -1908,14 +1908,14 @@ const ki = (r) => {
1908
1908
  ] })
1909
1909
  ] });
1910
1910
  }, Pi = (r) => {
1911
- var P, A, Q, dt, Qe, ze, ht, Ge, vt, Pe, Oe, De;
1912
- const { unitId: e, subUnitId: t, tableId: n } = r, i = M(ne), a = M(te), s = M(re), c = s.getTableById(e, n), u = M(un), h = M(Ie), d = Te(u.rangeThemeMapChange$), v = Te(h.refreshTable$), f = M(On), [, w] = q(Math.random()), S = Te(s.tableThemeChanged$, {
1911
+ var P, A, Q, dt, Qe, Ge, ht, Xe, vt, Pe, Oe, De;
1912
+ const { unitId: e, subUnitId: t, tableId: n } = r, i = M(te), a = M(ne), s = M(re), c = s.getTableById(e, n), u = M(un), h = M(Ie), d = Te(u.rangeThemeMapChange$), v = Te(h.refreshTable$), f = M(On), [, w] = q(Math.random()), S = Te(s.tableThemeChanged$, {
1913
1913
  theme: c == null ? void 0 : c.getTableStyleId(),
1914
1914
  oldTheme: c == null ? void 0 : c.getTableStyleId(),
1915
1915
  unitId: e,
1916
1916
  subUnitId: t,
1917
1917
  tableId: n
1918
- }), E = u.getRegisteredRangeThemes().filter((p) => p == null ? void 0 : p.startsWith(Zr)), C = u.getALLRegisteredTheme(e).filter((p) => p == null ? void 0 : p.startsWith(bt)), $ = c == null ? void 0 : c.getTableStyleId(), I = C.find((p) => p === $), B = I || C[0], R = u.getCustomRangeThemeStyle(e, B), g = (Q = (A = (P = R == null ? void 0 : R.getHeaderRowStyle()) == null ? void 0 : P.bg) == null ? void 0 : A.rgb) != null ? Q : ve, x = (ze = (Qe = (dt = R == null ? void 0 : R.getFirstRowStyle()) == null ? void 0 : dt.bg) == null ? void 0 : Qe.rgb) != null ? ze : ve, y = (vt = (Ge = (ht = R == null ? void 0 : R.getSecondRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : Ge.rgb) != null ? vt : ve, m = (De = (Oe = (Pe = R == null ? void 0 : R.getLastRowStyle()) == null ? void 0 : Pe.bg) == null ? void 0 : Oe.rgb) != null ? De : ve, [O, L] = q(null), Y = (p) => {
1918
+ }), E = u.getRegisteredRangeThemes().filter((p) => p == null ? void 0 : p.startsWith(Zr)), C = u.getALLRegisteredTheme(e).filter((p) => p == null ? void 0 : p.startsWith(bt)), $ = c == null ? void 0 : c.getTableStyleId(), I = C.find((p) => p === $), B = I || C[0], R = u.getCustomRangeThemeStyle(e, B), g = (Q = (A = (P = R == null ? void 0 : R.getHeaderRowStyle()) == null ? void 0 : P.bg) == null ? void 0 : A.rgb) != null ? Q : ve, x = (Ge = (Qe = (dt = R == null ? void 0 : R.getFirstRowStyle()) == null ? void 0 : dt.bg) == null ? void 0 : Qe.rgb) != null ? Ge : ve, y = (vt = (Xe = (ht = R == null ? void 0 : R.getSecondRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : Xe.rgb) != null ? vt : ve, m = (De = (Oe = (Pe = R == null ? void 0 : R.getLastRowStyle()) == null ? void 0 : Pe.bg) == null ? void 0 : Oe.rgb) != null ? De : ve, [O, L] = q(null), Y = (p) => {
1919
1919
  i.executeCommand(ft.id, {
1920
1920
  unitId: e,
1921
1921
  tableId: n,
@@ -1932,13 +1932,13 @@ const ki = (r) => {
1932
1932
  const K = Number(p.split("-")[2]);
1933
1933
  _ = `${bt}${K + 1}`;
1934
1934
  }
1935
- const X = new Br(_, { ...Xn });
1935
+ const z = new Br(_, { ...zn });
1936
1936
  i.executeCommand(Kn.id, {
1937
1937
  unitId: e,
1938
1938
  tableId: n,
1939
- themeStyle: X
1939
+ themeStyle: z
1940
1940
  });
1941
- }, z = (p, _) => {
1941
+ }, G = (p, _) => {
1942
1942
  i.executeCommand(ln.id, {
1943
1943
  unitId: e,
1944
1944
  subUnitId: t,
@@ -1960,7 +1960,7 @@ const ki = (r) => {
1960
1960
  /* @__PURE__ */ l("h5", { children: a.t("sheets-table.defaultStyle") }),
1961
1961
  /* @__PURE__ */ l("div", { className: "univer-flex univer-gap-2", children: E.map((p) => {
1962
1962
  var Ce, Se, Be, Fe, Ve, He, Ae, Ue;
1963
- const _ = u.getDefaultRangeThemeStyle(p), X = ((Se = (Ce = _ == null ? void 0 : _.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb) || ve, K = ((Fe = (Be = _ == null ? void 0 : _.getFirstRowStyle()) == null ? void 0 : Be.bg) == null ? void 0 : Fe.rgb) || ve, se = ((He = (Ve = _ == null ? void 0 : _.getSecondRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : He.rgb) || ve, W = ((Ue = (Ae = _ == null ? void 0 : _.getLastRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb) || ve;
1963
+ const _ = u.getDefaultRangeThemeStyle(p), z = ((Se = (Ce = _ == null ? void 0 : _.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb) || ve, K = ((Fe = (Be = _ == null ? void 0 : _.getFirstRowStyle()) == null ? void 0 : Be.bg) == null ? void 0 : Fe.rgb) || ve, se = ((He = (Ve = _ == null ? void 0 : _.getSecondRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : He.rgb) || ve, W = ((Ue = (Ae = _ == null ? void 0 : _.getLastRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb) || ve;
1964
1964
  return /* @__PURE__ */ T(
1965
1965
  "div",
1966
1966
  {
@@ -1969,10 +1969,10 @@ const ki = (r) => {
1969
1969
  }),
1970
1970
  onClick: () => Y(p),
1971
1971
  children: [
1972
- /* @__PURE__ */ l("div", { style: { background: X, border: `${G}` } }),
1973
- /* @__PURE__ */ l("div", { style: { background: K, border: `${G}` } }),
1974
- /* @__PURE__ */ l("div", { style: { background: se, border: `${G}` } }),
1975
- /* @__PURE__ */ l("div", { style: { background: W, border: `${G}` } })
1972
+ /* @__PURE__ */ l("div", { style: { background: z, border: `${X}` } }),
1973
+ /* @__PURE__ */ l("div", { style: { background: K, border: `${X}` } }),
1974
+ /* @__PURE__ */ l("div", { style: { background: se, border: `${X}` } }),
1975
+ /* @__PURE__ */ l("div", { style: { background: W, border: `${X}` } })
1976
1976
  ]
1977
1977
  },
1978
1978
  p
@@ -1991,7 +1991,7 @@ const ki = (r) => {
1991
1991
  ),
1992
1992
  C.map((p) => {
1993
1993
  var Ce, Se, Be, Fe, Ve, He, Ae, Ue;
1994
- const _ = u.getCustomRangeThemeStyle(e, p), X = (Se = (Ce = _ == null ? void 0 : _.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb, K = (Fe = (Be = _ == null ? void 0 : _.getFirstRowStyle()) == null ? void 0 : Be.bg) == null ? void 0 : Fe.rgb, se = (He = (Ve = _ == null ? void 0 : _.getSecondRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : He.rgb, W = (Ue = (Ae = _ == null ? void 0 : _.getLastRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb;
1994
+ const _ = u.getCustomRangeThemeStyle(e, p), z = (Se = (Ce = _ == null ? void 0 : _.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb, K = (Fe = (Be = _ == null ? void 0 : _.getFirstRowStyle()) == null ? void 0 : Be.bg) == null ? void 0 : Fe.rgb, se = (He = (Ve = _ == null ? void 0 : _.getSecondRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : He.rgb, W = (Ue = (Ae = _ == null ? void 0 : _.getLastRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb;
1995
1995
  return /* @__PURE__ */ T(
1996
1996
  "div",
1997
1997
  {
@@ -2002,14 +2002,14 @@ const ki = (r) => {
2002
2002
  onMouseEnter: () => L(p),
2003
2003
  onMouseLeave: () => L(null),
2004
2004
  children: [
2005
- /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: X != null ? X : G, border: `${X ? G : Je}` } }),
2006
- /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : G, border: `${K ? G : Je}` } }),
2007
- /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : G, border: `${se ? G : Je}` } }),
2008
- /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: W != null ? W : G, border: `${W ? G : Je}` } }),
2005
+ /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: z != null ? z : X, border: `${z ? X : Je}` } }),
2006
+ /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : X, border: `${K ? X : Je}` } }),
2007
+ /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : X, border: `${se ? X : Je}` } }),
2008
+ /* @__PURE__ */ l("div", { className: "univer-box-border univer-h-2.5", style: { background: W != null ? W : X, border: `${W ? X : Je}` } }),
2009
2009
  /* @__PURE__ */ l(
2010
2010
  "div",
2011
2011
  {
2012
- className: "univer-absolute univer-right-[-3px] univer-top-[-3px] univer-size-3 univer-rounded-md univer-bg-gray-200 univer-text-center univer-text-xs univer-leading-[10px]",
2012
+ className: "univer-absolute univer-right-[-3px] univer-top-[-3px] univer-h-3 univer-w-3 univer-rounded-md univer-bg-gray-200 univer-text-center univer-text-xs univer-leading-[10px]",
2013
2013
  style: { display: O === p ? "block" : "none" },
2014
2014
  onClick: (Nn) => {
2015
2015
  Nn.stopPropagation(), ce(p);
@@ -2056,7 +2056,7 @@ const ki = (r) => {
2056
2056
  rgb: new he(p).isDark() ? "#fff" : "#000"
2057
2057
  }
2058
2058
  });
2059
- z(c.getTableStyleId(), { headerRowStyle: _ });
2059
+ G(c.getTableStyleId(), { headerRowStyle: _ });
2060
2060
  }
2061
2061
  }
2062
2062
  ) }),
@@ -2068,7 +2068,7 @@ const ki = (r) => {
2068
2068
  /* @__PURE__ */ l(
2069
2069
  "div",
2070
2070
  {
2071
- className: D("univer-size-4 univer-rounded-lg univer-bg-gray-400", H, {
2071
+ className: D("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H, {
2072
2072
  "univer-text-white": ue,
2073
2073
  "univer-text-gray-900": !ue
2074
2074
  }),
@@ -2077,7 +2077,7 @@ const ki = (r) => {
2077
2077
  }
2078
2078
  }
2079
2079
  ),
2080
- /* @__PURE__ */ l(je, { className: "univer-size-2" })
2080
+ /* @__PURE__ */ l(je, { className: "univer-h-2 univer-w-2" })
2081
2081
  ]
2082
2082
  }
2083
2083
  )
@@ -2106,7 +2106,7 @@ const ki = (r) => {
2106
2106
  {
2107
2107
  value: x,
2108
2108
  onChange: (p) => {
2109
- z(c.getTableStyleId(), {
2109
+ G(c.getTableStyleId(), {
2110
2110
  firstRowStyle: {
2111
2111
  bg: {
2112
2112
  rgb: p
@@ -2127,11 +2127,11 @@ const ki = (r) => {
2127
2127
  /* @__PURE__ */ l(
2128
2128
  "div",
2129
2129
  {
2130
- className: D("univer-size-4 univer-rounded-lg univer-bg-gray-400", H),
2130
+ className: D("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
2131
2131
  style: { background: x }
2132
2132
  }
2133
2133
  ),
2134
- /* @__PURE__ */ l(je, { className: "univer-size-2" })
2134
+ /* @__PURE__ */ l(je, { className: "univer-h-2 univer-w-2" })
2135
2135
  ]
2136
2136
  }
2137
2137
  )
@@ -2159,7 +2159,7 @@ const ki = (r) => {
2159
2159
  Ke,
2160
2160
  {
2161
2161
  value: y,
2162
- onChange: (p) => z(c.getTableStyleId(), {
2162
+ onChange: (p) => G(c.getTableStyleId(), {
2163
2163
  secondRowStyle: {
2164
2164
  bg: {
2165
2165
  rgb: p
@@ -2179,11 +2179,11 @@ const ki = (r) => {
2179
2179
  /* @__PURE__ */ l(
2180
2180
  "div",
2181
2181
  {
2182
- className: D("univer-size-4 univer-rounded-lg univer-bg-gray-400", H),
2182
+ className: D("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
2183
2183
  style: { background: y }
2184
2184
  }
2185
2185
  ),
2186
- /* @__PURE__ */ l(je, { className: "univer-size-2" })
2186
+ /* @__PURE__ */ l(je, { className: "univer-h-2 univer-w-2" })
2187
2187
  ]
2188
2188
  }
2189
2189
  )
@@ -2220,7 +2220,7 @@ const ki = (r) => {
2220
2220
  rgb: new he(p).isDark() ? "#fff" : "#000"
2221
2221
  }
2222
2222
  });
2223
- z(c.getTableStyleId(), { lastRowStyle: _ });
2223
+ G(c.getTableStyleId(), { lastRowStyle: _ });
2224
2224
  }
2225
2225
  }
2226
2226
  ) }),
@@ -2232,11 +2232,11 @@ const ki = (r) => {
2232
2232
  /* @__PURE__ */ l(
2233
2233
  "div",
2234
2234
  {
2235
- className: D("univer-size-4 univer-rounded-lg univer-bg-gray-400", H),
2235
+ className: D("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
2236
2236
  style: { background: m }
2237
2237
  }
2238
2238
  ),
2239
- /* @__PURE__ */ l(je, { className: "univer-size-2" })
2239
+ /* @__PURE__ */ l(je, { className: "univer-h-2 univer-w-2" })
2240
2240
  ]
2241
2241
  }
2242
2242
  )
@@ -2294,7 +2294,7 @@ function Vi(r) {
2294
2294
  }
2295
2295
  function Hi(r) {
2296
2296
  return {
2297
- id: Xt.id,
2297
+ id: zt.id,
2298
2298
  type: ye.BUTTON,
2299
2299
  title: "sheets-table.remove.row",
2300
2300
  hidden$: Mn(r)
@@ -2302,7 +2302,7 @@ function Hi(r) {
2302
2302
  }
2303
2303
  function Ai(r) {
2304
2304
  return {
2305
- id: Gt.id,
2305
+ id: Xt.id,
2306
2306
  title: "sheets-table.remove.col",
2307
2307
  type: ye.BUTTON
2308
2308
  };
@@ -2362,11 +2362,11 @@ const Ui = {
2362
2362
  [yn]: {
2363
2363
  order: 6,
2364
2364
  menuItemFactory: Bi,
2365
- [Xt.id]: {
2365
+ [zt.id]: {
2366
2366
  order: 1,
2367
2367
  menuItemFactory: Hi
2368
2368
  },
2369
- [Gt.id]: {
2369
+ [Xt.id]: {
2370
2370
  order: 2,
2371
2371
  menuItemFactory: Ai
2372
2372
  }
@@ -2472,14 +2472,14 @@ let st = class extends Le {
2472
2472
  undos: [],
2473
2473
  redos: [
2474
2474
  {
2475
- id: Bt.id,
2475
+ id: Ft.id,
2476
2476
  params: {
2477
2477
  unitId: i,
2478
2478
  subUnitId: a,
2479
2479
  selections: [
2480
2480
  {
2481
2481
  range: h,
2482
- primary: Ft(h, s)
2482
+ primary: Bt(h, s)
2483
2483
  }
2484
2484
  ]
2485
2485
  }
@@ -2489,14 +2489,14 @@ let st = class extends Le {
2489
2489
  undos: [],
2490
2490
  redos: [
2491
2491
  {
2492
- id: Bt.id,
2492
+ id: Ft.id,
2493
2493
  params: {
2494
2494
  unitId: i,
2495
2495
  subUnitId: a,
2496
2496
  selections: [
2497
2497
  {
2498
2498
  range: d,
2499
- primary: Ft(d, s)
2499
+ primary: Bt(d, s)
2500
2500
  }
2501
2501
  ]
2502
2502
  }
@@ -2516,11 +2516,11 @@ st = Qi([
2516
2516
  pt(1, N(pe)),
2517
2517
  pt(2, N(re))
2518
2518
  ], st);
2519
- var zi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, Xi = (r, e, t) => e in r ? zi(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ki = (r, e, t, n) => {
2520
- for (var i = n > 1 ? void 0 : n ? Gi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2519
+ var Gi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, zi = (r, e, t) => e in r ? Gi(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ki = (r, e, t, n) => {
2520
+ for (var i = n > 1 ? void 0 : n ? Xi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2521
2521
  (s = r[a]) && (i = s(i) || i);
2522
2522
  return i;
2523
- }, nt = (r, e) => (t, n) => e(t, n, r), xn = (r, e, t) => Xi(r, typeof e != "symbol" ? e + "" : e, t);
2523
+ }, nt = (r, e) => (t, n) => e(t, n, r), xn = (r, e, t) => zi(r, typeof e != "symbol" ? e + "" : e, t);
2524
2524
  let ot = class extends Bn {
2525
2525
  constructor(r = At, e, t, n, i) {
2526
2526
  super(), this._config = r, this._injector = e, this._commandService = t, this._configService = n, this._renderManagerService = i;
@@ -2573,9 +2573,9 @@ xn(ot, "type", Ye.UNIVER_SHEET);
2573
2573
  ot = Ki([
2574
2574
  Dn(er),
2575
2575
  nt(1, N(ke)),
2576
- nt(2, N(ne)),
2576
+ nt(2, N(te)),
2577
2577
  nt(3, Yt),
2578
- nt(4, zt)
2578
+ nt(4, Gt)
2579
2579
  ], ot);
2580
2580
  export {
2581
2581
  ot as UniverSheetsTableUIPlugin