@univerjs/sheets-table-ui 0.7.0-nightly.202505051607 → 0.7.0-nightly.202505071607

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/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  var Ir = Object.defineProperty;
2
2
  var Mr = (r, e, t) => e in r ? Ir(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var F = (r, e, t) => Mr(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { Inject as N, IUniverInstanceService as Ce, ICommandService as ee, Disposable as Be, ObjectMatrix as Rr, cellToRange as Ht, Rectangle as pe, LocaleService as oe, Injector as Fe, dayjs as ve, IPermissionService as Vt, IContextService as ft, CommandType as At, IConfigService as Ut, ThemeService as jt, RxDisposable as Wt, InterceptorEffectEnum as xr, ErrorService as Nr, ColorKit as le, UniverInstanceType as tt, Plugin as Er, registerDependencies as Lr, touchDependencies as $r } from "@univerjs/core";
5
- import { IRenderManagerService as Zt, SHEET_VIEWPORT_KEY as kr, convertTransformToOffsetX as Or, convertTransformToOffsetY as Pr, Rect as wt, Shape as Dr } from "@univerjs/engine-render";
6
- import { TableManager as te, SheetTableService as Br, SetSheetTableFilterCommand as It, isConditionFilter as Fr, isManualFilter as Hr, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as U, TableConditionTypeEnum as H, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Ye, TableColumnFilterTypeEnum as Mt, AddSheetTableCommand as Vr, SHEET_TABLE_CUSTOM_THEME_PREFIX as Ar, DeleteSheetTableCommand as Ur, SetSheetTableCommand as vt, SheetsTableButtonStateEnum as Le, processStyleWithBorderStyle as Rt, customEmptyThemeWithBorderStyle as jr, AddTableThemeCommand as Wr, RemoveTableThemeCommand as Zr, SheetTableRemoveColCommand as qt, SheetTableRemoveRowCommand as Yt, SheetTableInsertColCommand as Qt, SheetTableInsertRowCommand as zt, SheetsTableController as Gt } from "@univerjs/sheets-table";
7
- import { SheetCanvasPopManagerService as qr, SheetSkeletonManagerService as at, SheetScrollManagerService as Yr, SetZoomRatioOperation as Qr, SetScrollOperation as zr, getSheetObject as Gr, ISheetSelectionRenderService as Xr, getCoordByCell as Kr, SelectAllCommand as Jr } from "@univerjs/sheets-ui";
8
- import { useDependency as R, ComponentManager as Xt, IDialogService as Kt, ISidebarService as en, useObservable as Me, IUIPartsService as tn, BuiltInUIPart as rn, connectInjector as nn, MenuItemType as Ne, ContextMenuPosition as an, ContextMenuGroup as sn, RibbonStartGroup as ln, IMenuManagerService as on } from "@univerjs/ui";
9
- import { startWith as Jt, distinctUntilChanged as cn, Subject as un, BehaviorSubject as xt, merge as Ct, filter as dn, debounceTime as hn, switchMap as Re, of as X, map as vn, takeUntil as bn } from "rxjs";
10
- import { jsxs as T, jsx as o, Fragment as St } from "react/jsx-runtime";
11
- import { LegacySelect as gn, CascaderList as mn, Input as _t, InputNumber as ct, DatePicker as pn, DateRangePicker as fn, Select as Cn, clsx as Sn, Checkbox as Nt, scrollbarClassName as _n, Segmented as Tn, Button as We, Dropdown as Ue, ColorPicker as Qe } from "@univerjs/design";
12
- import { SetRangeValuesMutation as yn, WorkbookEditablePermission as er, getSheetCommandTarget as st, SheetsSelectionsService as lt, isSingleCellSelection as wn, expandToContinuousRange as In, SetRangeThemeMutation as tr, WorkbookPermissionService as rr, SheetRangeThemeModel as nr, SheetInterceptorService as ir, INTERCEPTOR_POINT as Mn, RangeThemeStyle as Rn, getPrimaryForRange as Et, SetSelectionsOperation as Lt } from "@univerjs/sheets";
13
- import { SortRangeCommand as xn, SortType as $t } from "@univerjs/sheets-sort";
14
- import { forwardRef as re, useRef as Nn, createElement as ne, useState as W, useMemo as ar, useCallback as kt, useEffect as sr } from "react";
15
- import { serializeRange as Ot, deserializeRangeWithSheet as En } from "@univerjs/engine-formula";
16
- import { RangeSelector as Ln } from "@univerjs/sheets-formula-ui";
17
- const $n = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", kn = "UNIVER_SHEET_Table_FILTER_PANEL_ID", lr = "TABLE_TOOLBAR_BUTTON", Oe = "TABLE_SELECTOR_DIALOG", On = "SHEET_TABLE_THEME_PANEL_ID", or = "SHEET_TABLE_THEME_PANEL", ut = "table-custom-", Pn = "table-default-", be = "rgb(255, 255, 255)", Y = "none", $e = "1px solid rgb(var(--grey-200))", Pt = "1px solid rgb(var(--blue-500))";
3
+ var A = (r, e, t) => Mr(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { Inject as N, IUniverInstanceService as Ce, ICommandService as ee, Disposable as Fe, ObjectMatrix as Rr, cellToRange as Ht, Rectangle as pe, LocaleService as oe, Injector as He, dayjs as ve, IPermissionService as Vt, IContextService as ft, CommandType as At, IConfigService as Ut, ThemeService as jt, RxDisposable as Wt, InterceptorEffectEnum as xr, ErrorService as Nr, ColorKit as le, UniverInstanceType as it, DependentOn as Er, Plugin as Lr, registerDependencies as $r, touchDependencies as Or } from "@univerjs/core";
5
+ import { IRenderManagerService as Zt, SHEET_VIEWPORT_KEY as Pr, convertTransformToOffsetX as kr, convertTransformToOffsetY as Dr, Rect as It, Shape as Br } from "@univerjs/engine-render";
6
+ import { TableManager as te, SheetTableService as Fr, SetSheetTableFilterCommand as Mt, isConditionFilter as Hr, isManualFilter as Vr, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as U, TableConditionTypeEnum as F, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Ye, TableColumnFilterTypeEnum as Rt, AddSheetTableCommand as Ar, SHEET_TABLE_CUSTOM_THEME_PREFIX as Ur, DeleteSheetTableCommand as jr, SetSheetTableCommand as vt, SheetsTableButtonStateEnum as Le, processStyleWithBorderStyle as xt, customEmptyThemeWithBorderStyle as Wr, AddTableThemeCommand as Zr, RemoveTableThemeCommand as qr, SheetTableRemoveColCommand as qt, SheetTableRemoveRowCommand as Yt, SheetTableInsertColCommand as Qt, SheetTableInsertRowCommand as zt, SheetsTableController as Gt, UniverSheetTablePlugin as Yr } from "@univerjs/sheets-table";
7
+ import { SheetCanvasPopManagerService as Qr, SheetSkeletonManagerService as at, SheetScrollManagerService as zr, SetZoomRatioOperation as Gr, SetScrollOperation as Xr, getSheetObject as Kr, ISheetSelectionRenderService as Jr, getCoordByCell as en, SelectAllCommand as tn } from "@univerjs/sheets-ui";
8
+ import { useDependency as R, ComponentManager as Xt, IDialogService as Kt, ISidebarService as rn, useObservable as Me, IUIPartsService as nn, BuiltInUIPart as an, connectInjector as sn, MenuItemType as Ne, ContextMenuPosition as ln, ContextMenuGroup as on, RibbonStartGroup as cn, IMenuManagerService as un } from "@univerjs/ui";
9
+ import { startWith as Jt, distinctUntilChanged as dn, Subject as hn, BehaviorSubject as Nt, merge as Ct, filter as vn, debounceTime as bn, switchMap as Re, of as X, map as gn, takeUntil as mn } from "rxjs";
10
+ import { jsxs as _, jsx as o, Fragment as St } from "react/jsx-runtime";
11
+ import { Dropdown as ke, CascaderList as pn, Input as _t, InputNumber as ct, DatePicker as fn, DateRangePicker as Cn, Select as Sn, clsx as _n, Checkbox as Et, scrollbarClassName as Tn, Segmented as yn, Button as We, ColorPicker as Qe } from "@univerjs/design";
12
+ import { SetRangeValuesMutation as wn, WorkbookEditablePermission as er, getSheetCommandTarget as st, SheetsSelectionsService as lt, isSingleCellSelection as In, expandToContinuousRange as Mn, SetRangeThemeMutation as tr, WorkbookPermissionService as rr, SheetRangeThemeModel as nr, SheetInterceptorService as ir, INTERCEPTOR_POINT as Rn, RangeThemeStyle as xn, getPrimaryForRange as Lt, SetSelectionsOperation as $t } from "@univerjs/sheets";
13
+ import { SortRangeCommand as Nn, SortType as Ot } from "@univerjs/sheets-sort";
14
+ import { forwardRef as re, useRef as En, createElement as ne, useState as W, useMemo as ar, useCallback as Pt, useEffect as sr } from "react";
15
+ import { serializeRange as kt, deserializeRangeWithSheet as Ln } from "@univerjs/engine-formula";
16
+ import { RangeSelector as $n } from "@univerjs/sheets-formula-ui";
17
+ const On = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Pn = "UNIVER_SHEET_Table_FILTER_PANEL_ID", lr = "TABLE_TOOLBAR_BUTTON", Pe = "TABLE_SELECTOR_DIALOG", kn = "SHEET_TABLE_THEME_PANEL_ID", or = "SHEET_TABLE_THEME_PANEL", ut = "table-custom-", Dn = "table-default-", be = "rgb(255, 255, 255)", Y = "none", $e = "1px solid rgb(var(--grey-200))", Dt = "1px solid rgb(var(--blue-500))";
18
18
  var Q = function() {
19
19
  return Q = Object.assign || function(r) {
20
20
  for (var e, t = 1, n = arguments.length; t < n; t++) {
@@ -23,7 +23,7 @@ var Q = function() {
23
23
  }
24
24
  return r;
25
25
  }, Q.apply(this, arguments);
26
- }, Dn = function(r, e) {
26
+ }, Bn = function(r, e) {
27
27
  var t = {};
28
28
  for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]);
29
29
  if (r != null && typeof Object.getOwnPropertySymbols == "function")
@@ -31,15 +31,15 @@ var Q = function() {
31
31
  e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]);
32
32
  return t;
33
33
  }, ie = re(function(r, e) {
34
- var t = r.icon, n = r.id, i = r.className, a = r.extend, s = Dn(r, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), h = Nn("_".concat(Hn()));
35
- return cr(t, "".concat(n), { defIds: t.defIds, idSuffix: h.current }, Q({ ref: e, className: c }, s), a);
34
+ var t = r.icon, n = r.id, i = r.className, a = r.extend, s = Bn(r, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), d = En("_".concat(Vn()));
35
+ return cr(t, "".concat(n), { defIds: t.defIds, idSuffix: d.current }, Q({ ref: e, className: c }, s), a);
36
36
  });
37
37
  function cr(r, e, t, n, i) {
38
- return ne(r.tag, Q(Q({ key: e }, Bn(r, t, i)), n), (Fn(r, t).children || []).map(function(a, s) {
38
+ return ne(r.tag, Q(Q({ key: e }, Fn(r, t, i)), n), (Hn(r, t).children || []).map(function(a, s) {
39
39
  return cr(a, "".concat(e, "-").concat(r.tag, "-").concat(s), t, void 0, i);
40
40
  }));
41
41
  }
42
- function Bn(r, e, t) {
42
+ function Fn(r, e, t) {
43
43
  var n = Q({}, r.attrs);
44
44
  t != null && t.colorChannel1 && n.fill === "colorChannel1" && (n.fill = t.colorChannel1), r.tag === "mask" && n.id && (n.id = n.id + e.idSuffix), Object.entries(n).forEach(function(a) {
45
45
  var s = a[0], c = a[1];
@@ -51,124 +51,124 @@ function Bn(r, e, t) {
51
51
  typeof c == "string" && (n[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
52
52
  })), n;
53
53
  }
54
- function Fn(r, e) {
54
+ function Hn(r, e) {
55
55
  var t, n = e.defIds;
56
56
  return !n || n.length === 0 ? r : r.tag === "defs" && (!((t = r.children) === null || t === void 0) && t.length) ? Q(Q({}, r), { children: r.children.map(function(i) {
57
57
  return typeof i.attrs.id == "string" && n && n.indexOf(i.attrs.id) > -1 ? Q(Q({}, i), { attrs: Q(Q({}, i.attrs), { id: i.attrs.id + e.idSuffix }) }) : i;
58
58
  }) }) : r;
59
59
  }
60
- function Hn() {
60
+ function Vn() {
61
61
  return Math.random().toString(36).substring(2, 8);
62
62
  }
63
63
  ie.displayName = "UniverIcon";
64
- var Vn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ur = re(function(r, e) {
64
+ var An = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ur = re(function(r, e) {
65
65
  return ne(ie, Object.assign({}, r, {
66
66
  id: "ascending- single",
67
67
  ref: e,
68
- icon: Vn
68
+ icon: An
69
69
  }));
70
70
  });
71
71
  ur.displayName = "AscendingSingle";
72
- var An = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, dr = re(function(r, e) {
72
+ var Un = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, dr = re(function(r, e) {
73
73
  return ne(ie, Object.assign({}, r, {
74
74
  id: "delete-single",
75
75
  ref: e,
76
- icon: An
76
+ icon: Un
77
77
  }));
78
78
  });
79
79
  dr.displayName = "DeleteSingle";
80
- var Un = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, hr = re(function(r, e) {
80
+ var jn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, hr = re(function(r, e) {
81
81
  return ne(ie, Object.assign({}, r, {
82
82
  id: "descending-single",
83
83
  ref: e,
84
- icon: Un
84
+ icon: jn
85
85
  }));
86
86
  });
87
87
  hr.displayName = "DescendingSingle";
88
- var jn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z" } }] }, je = re(function(r, e) {
88
+ var Wn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z" } }] }, je = re(function(r, e) {
89
89
  return ne(ie, Object.assign({}, r, {
90
90
  id: "dropdown-single",
91
91
  ref: e,
92
- icon: jn
92
+ icon: Wn
93
93
  }));
94
94
  });
95
95
  je.displayName = "DropdownSingle";
96
- var Wn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.33333 3.33333V6H6V3.33333H3.33333ZM2 3.238C2 2.55427 2.55427 2 3.238 2H6.09533C6.77906 2 7.33333 2.55427 7.33333 3.238V6.09533C7.33333 6.77906 6.77906 7.33333 6.09533 7.33333H3.238C2.55427 7.33333 2 6.77906 2 6.09533V3.238ZM10 3.33333V6H12.6667V3.33333H10ZM8.66667 3.238C8.66667 2.55427 9.22094 2 9.90467 2H12.762C13.4457 2 14 2.55427 14 3.238V6.09533C14 6.77906 13.4457 7.33333 12.762 7.33333H9.90467C9.22094 7.33333 8.66667 6.77906 8.66667 6.09533V3.238ZM3.33333 10V12.6667H6V10H3.33333ZM2 9.90467C2 9.22094 2.55427 8.66667 3.238 8.66667H6.09533C6.77906 8.66667 7.33333 9.22094 7.33333 9.90467V12.762C7.33333 13.4457 6.77906 14 6.09533 14H3.238C2.55427 14 2 13.4457 2 12.762V9.90467ZM10 10V12.6667H12.6667V10H10ZM8.66667 9.90467C8.66667 9.22094 9.22094 8.66667 9.90467 8.66667H12.762C13.4457 8.66667 14 9.22094 14 9.90467V12.762C14 13.4457 13.4457 14 12.762 14H9.90467C9.22094 14 8.66667 13.4457 8.66667 12.762V9.90467Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, vr = re(function(r, e) {
96
+ var Zn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.33333 3.33333V6H6V3.33333H3.33333ZM2 3.238C2 2.55427 2.55427 2 3.238 2H6.09533C6.77906 2 7.33333 2.55427 7.33333 3.238V6.09533C7.33333 6.77906 6.77906 7.33333 6.09533 7.33333H3.238C2.55427 7.33333 2 6.77906 2 6.09533V3.238ZM10 3.33333V6H12.6667V3.33333H10ZM8.66667 3.238C8.66667 2.55427 9.22094 2 9.90467 2H12.762C13.4457 2 14 2.55427 14 3.238V6.09533C14 6.77906 13.4457 7.33333 12.762 7.33333H9.90467C9.22094 7.33333 8.66667 6.77906 8.66667 6.09533V3.238ZM3.33333 10V12.6667H6V10H3.33333ZM2 9.90467C2 9.22094 2.55427 8.66667 3.238 8.66667H6.09533C6.77906 8.66667 7.33333 9.22094 7.33333 9.90467V12.762C7.33333 13.4457 6.77906 14 6.09533 14H3.238C2.55427 14 2 13.4457 2 12.762V9.90467ZM10 10V12.6667H12.6667V10H10ZM8.66667 9.90467C8.66667 9.22094 9.22094 8.66667 9.90467 8.66667H12.762C13.4457 8.66667 14 9.22094 14 9.90467V12.762C14 13.4457 13.4457 14 12.762 14H9.90467C9.22094 14 8.66667 13.4457 8.66667 12.762V9.90467Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, vr = re(function(r, e) {
97
97
  return ne(ie, Object.assign({}, r, {
98
98
  id: "grid-outline-single",
99
99
  ref: e,
100
- icon: Wn
100
+ icon: Zn
101
101
  }));
102
102
  });
103
103
  vr.displayName = "GridOutlineSingle";
104
- var Zn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, br = re(function(r, e) {
104
+ var qn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Tt = re(function(r, e) {
105
105
  return ne(ie, Object.assign({}, r, {
106
106
  id: "more-down-single",
107
107
  ref: e,
108
- icon: Zn
108
+ icon: qn
109
109
  }));
110
110
  });
111
- br.displayName = "MoreDownSingle";
112
- var qn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, gr = re(function(r, e) {
111
+ Tt.displayName = "MoreDownSingle";
112
+ var Yn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, br = re(function(r, e) {
113
113
  return ne(ie, Object.assign({}, r, {
114
114
  id: "paint-bucket",
115
115
  ref: e,
116
- icon: qn
116
+ icon: Yn
117
117
  }));
118
118
  });
119
- gr.displayName = "PaintBucket";
120
- var Yn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.80068 2.57257L7.27955 2.57256C7.61092 2.57256 7.87954 2.30393 7.87954 1.97256C7.87954 1.64119 7.61091 1.37256 7.27954 1.37256L3.80068 1.37257C2.36473 1.37257 1.20067 2.53665 1.20068 3.97259L1.20074 12.3001C1.20075 13.736 2.36481 14.9 3.80074 14.9H12.1282C13.5641 14.9 14.7282 13.736 14.7282 12.3V8.82116C14.7282 8.48979 14.4595 8.22116 14.1282 8.22116C13.7968 8.22116 13.5282 8.48979 13.5282 8.82116V12.3C13.5282 13.0732 12.9014 13.7 12.1282 13.7H3.80074C3.02754 13.7 2.40074 13.0732 2.40074 12.3001L2.40068 3.97258C2.40068 3.19938 3.02748 2.57257 3.80068 2.57257Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.0072 2.0955C13.0997 1.18757 11.6278 1.18794 10.7207 2.09632L6.17749 6.646C6.10294 6.72065 6.04543 6.81056 6.00889 6.90954L4.59817 10.7315C4.51713 10.951 4.57116 11.1977 4.73657 11.3633C4.90198 11.5288 5.14858 11.5831 5.36823 11.5023L9.20237 10.0916C9.30186 10.055 9.3922 9.99722 9.46714 9.92224L14.0073 5.37972C14.9139 4.47266 14.9138 3.00252 14.0072 2.0955ZM11.5698 2.94424C12.0083 2.50513 12.7198 2.50496 13.1585 2.94384C13.5968 3.38229 13.5968 4.09294 13.1585 4.53141L8.69127 9.00102L6.1742 9.92713L7.09912 7.42132L11.5698 2.94424Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, mr = re(function(r, e) {
119
+ br.displayName = "PaintBucket";
120
+ var Qn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.80068 2.57257L7.27955 2.57256C7.61092 2.57256 7.87954 2.30393 7.87954 1.97256C7.87954 1.64119 7.61091 1.37256 7.27954 1.37256L3.80068 1.37257C2.36473 1.37257 1.20067 2.53665 1.20068 3.97259L1.20074 12.3001C1.20075 13.736 2.36481 14.9 3.80074 14.9H12.1282C13.5641 14.9 14.7282 13.736 14.7282 12.3V8.82116C14.7282 8.48979 14.4595 8.22116 14.1282 8.22116C13.7968 8.22116 13.5282 8.48979 13.5282 8.82116V12.3C13.5282 13.0732 12.9014 13.7 12.1282 13.7H3.80074C3.02754 13.7 2.40074 13.0732 2.40074 12.3001L2.40068 3.97258C2.40068 3.19938 3.02748 2.57257 3.80068 2.57257Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.0072 2.0955C13.0997 1.18757 11.6278 1.18794 10.7207 2.09632L6.17749 6.646C6.10294 6.72065 6.04543 6.81056 6.00889 6.90954L4.59817 10.7315C4.51713 10.951 4.57116 11.1977 4.73657 11.3633C4.90198 11.5288 5.14858 11.5831 5.36823 11.5023L9.20237 10.0916C9.30186 10.055 9.3922 9.99722 9.46714 9.92224L14.0073 5.37972C14.9139 4.47266 14.9138 3.00252 14.0072 2.0955ZM11.5698 2.94424C12.0083 2.50513 12.7198 2.50496 13.1585 2.94384C13.5968 3.38229 13.5968 4.09294 13.1585 4.53141L8.69127 9.00102L6.1742 9.92713L7.09912 7.42132L11.5698 2.94424Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, gr = re(function(r, e) {
121
121
  return ne(ie, Object.assign({}, r, {
122
122
  id: "rename-single",
123
123
  ref: e,
124
- icon: Yn
124
+ icon: Qn
125
125
  }));
126
126
  });
127
- mr.displayName = "RenameSingle";
128
- var Qn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.7643 4.13354C1.7643 2.82523 2.82488 1.76465 4.13319 1.76465H11.8665C13.1748 1.76465 14.2354 2.82524 14.2354 4.13354V11.8669C14.2354 13.1752 13.1748 14.2358 11.8665 14.2358H4.13318C2.82488 14.2358 1.7643 13.1752 1.7643 11.8669V6.1462C1.76388 6.13711 1.76367 6.12797 1.76367 6.11878C1.76367 6.10959 1.76388 6.10045 1.7643 6.09136V4.13354ZM2.94652 6.70989V11.8669C2.94652 12.5222 3.47781 13.0535 4.13318 13.0535H5.52732V6.70989H2.94652ZM5.52732 5.52767H2.94652V4.13354C2.94652 3.47816 3.47781 2.94687 4.13319 2.94687H5.52732V5.52767ZM6.70954 6.70989V13.0535H11.8665C12.5219 13.0535 13.0532 12.5222 13.0532 11.8669V6.70989L6.70954 6.70989ZM13.0532 5.52767L6.70954 5.52767V2.94687H11.8665C12.5219 2.94687 13.0532 3.47816 13.0532 4.13354V5.52767Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pr = re(function(r, e) {
127
+ gr.displayName = "RenameSingle";
128
+ var zn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.7643 4.13354C1.7643 2.82523 2.82488 1.76465 4.13319 1.76465H11.8665C13.1748 1.76465 14.2354 2.82524 14.2354 4.13354V11.8669C14.2354 13.1752 13.1748 14.2358 11.8665 14.2358H4.13318C2.82488 14.2358 1.7643 13.1752 1.7643 11.8669V6.1462C1.76388 6.13711 1.76367 6.12797 1.76367 6.11878C1.76367 6.10959 1.76388 6.10045 1.7643 6.09136V4.13354ZM2.94652 6.70989V11.8669C2.94652 12.5222 3.47781 13.0535 4.13318 13.0535H5.52732V6.70989H2.94652ZM5.52732 5.52767H2.94652V4.13354C2.94652 3.47816 3.47781 2.94687 4.13319 2.94687H5.52732V5.52767ZM6.70954 6.70989V13.0535H11.8665C12.5219 13.0535 13.0532 12.5222 13.0532 11.8669V6.70989L6.70954 6.70989ZM13.0532 5.52767L6.70954 5.52767V2.94687H11.8665C12.5219 2.94687 13.0532 3.47816 13.0532 4.13354V5.52767Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, mr = re(function(r, e) {
129
129
  return ne(ie, Object.assign({}, r, {
130
130
  id: "table-single",
131
131
  ref: e,
132
- icon: Qn
132
+ icon: zn
133
133
  }));
134
134
  });
135
- pr.displayName = "TableSingle";
136
- var fe = /* @__PURE__ */ ((r) => (r.Items = "items", r.Condition = "condition", r))(fe || {}), zn = Object.getOwnPropertyDescriptor, Gn = (r, e, t, n) => {
137
- for (var i = n > 1 ? void 0 : n ? zn(e, t) : e, a = r.length - 1, s; a >= 0; a--)
135
+ mr.displayName = "TableSingle";
136
+ var fe = /* @__PURE__ */ ((r) => (r.Items = "items", r.Condition = "condition", r))(fe || {}), Gn = Object.getOwnPropertyDescriptor, Xn = (r, e, t, n) => {
137
+ for (var i = n > 1 ? void 0 : n ? Gn(e, t) : e, a = r.length - 1, s; a >= 0; a--)
138
138
  (s = r[a]) && (i = s(i) || i);
139
139
  return i;
140
140
  }, ze = (r, e) => (t, n) => e(t, n, r);
141
- let Pe = class extends Be {
141
+ let De = class extends Fe {
142
142
  constructor(e, t, n, i) {
143
143
  super();
144
- F(this, "_itemsCache", /* @__PURE__ */ new Map());
144
+ A(this, "_itemsCache", /* @__PURE__ */ new Map());
145
145
  this._tableManager = e, this._sheetTableService = t, this._univerInstanceService = n, this._commandService = i, this._registerTableFilterChangeEvent();
146
146
  }
147
147
  _registerTableFilterChangeEvent() {
148
148
  this._commandService.onCommandExecuted((e) => {
149
- if (e.id === yn.id) {
149
+ if (e.id === wn.id) {
150
150
  const { unitId: t, subUnitId: n, cellValue: i } = e.params, a = this._tableManager.getTablesBySubunitId(t, n);
151
151
  if (!a.length)
152
152
  return;
153
- new Rr(i).forValue((c, h, d) => {
154
- const u = Ht(c, h), v = a.find((S) => {
153
+ new Rr(i).forValue((c, d, h) => {
154
+ const u = Ht(c, d), b = a.find((S) => {
155
155
  const C = S.getTableFilterRange();
156
156
  return pe.intersects(C, u);
157
157
  });
158
- if (v) {
159
- const S = h - v.getRange().startColumn;
160
- this._itemsCache.delete(v.getId() + S);
158
+ if (b) {
159
+ const S = d - b.getRange().startColumn;
160
+ this._itemsCache.delete(b.getId() + S);
161
161
  }
162
162
  });
163
- } else if (e.id === It.id) {
163
+ } else if (e.id === Mt.id) {
164
164
  const { unitId: t, tableId: n } = e.params, i = this._tableManager.getTable(t, n);
165
165
  if (!i)
166
166
  return;
167
167
  const a = i.getSubunitId();
168
168
  this._tableManager.getTablesBySubunitId(t, a).forEach((c) => {
169
- const h = c.getRange();
170
- for (let d = h.startColumn; d <= h.endColumn; d++)
171
- this._itemsCache.delete(c.getId() + d);
169
+ const d = c.getRange();
170
+ for (let h = d.startColumn; h <= d.endColumn; h++)
171
+ this._itemsCache.delete(c.getId() + h);
172
172
  });
173
173
  }
174
174
  });
@@ -179,7 +179,7 @@ let Pe = class extends Be {
179
179
  unitId: e,
180
180
  subUnitId: t,
181
181
  tableFilter: c,
182
- currentFilterBy: Fr(c) ? fe.Condition : fe.Items,
182
+ currentFilterBy: Hr(c) ? fe.Condition : fe.Items,
183
183
  tableId: n,
184
184
  columnIndex: i - s.startColumn
185
185
  };
@@ -188,7 +188,7 @@ let Pe = class extends Be {
188
188
  const i = this._tableManager.getTable(e, t), a = [];
189
189
  if (i) {
190
190
  const s = i.getTableFilterColumn(n);
191
- s && Hr(s) && a.push(...s.values);
191
+ s && Vr(s) && a.push(...s.values);
192
192
  }
193
193
  return a;
194
194
  }
@@ -201,46 +201,46 @@ let Pe = class extends Be {
201
201
  column: n,
202
202
  tableFilter: i
203
203
  };
204
- this._commandService.executeCommand(It.id, s);
204
+ this._commandService.executeCommand(Mt.id, s);
205
205
  }
206
206
  getTableFilterItems(e, t, n, i) {
207
- var k;
207
+ var O;
208
208
  if (this._itemsCache.has(n + i))
209
209
  return this._itemsCache.get(n + i) || { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
210
210
  const a = this._tableManager.getTable(e, n);
211
211
  if (!a)
212
212
  return { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
213
- const s = a.getTableFilterRange(), { startRow: c, endRow: h, startColumn: d } = s, u = d + i, v = (k = this._univerInstanceService.getUnit(e)) == null ? void 0 : k.getSheetBySheetId(t);
214
- if (!v)
213
+ const s = a.getTableFilterRange(), { startRow: c, endRow: d, startColumn: h } = s, u = h + i, b = (O = this._univerInstanceService.getUnit(e)) == null ? void 0 : O.getSheetBySheetId(t);
214
+ if (!b)
215
215
  return { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
216
216
  const S = [], C = /* @__PURE__ */ new Map();
217
- let _ = 0;
218
- for (let p = c; p <= h; p++) {
219
- if (v.isRowFiltered(p))
217
+ let T = 0;
218
+ for (let p = c; p <= d; p++) {
219
+ if (b.isRowFiltered(p))
220
220
  continue;
221
- const I = this._sheetTableService.getCellValueWithConditionType(v, p, u);
221
+ const I = this._sheetTableService.getCellValueWithConditionType(b, p, u);
222
222
  C.has(I) || S.push({
223
223
  title: I,
224
224
  key: `${u}_${p}`,
225
225
  leaf: !0
226
- }), _++, C.set(I, (C.get(I) || 0) + 1);
226
+ }), T++, C.set(I, (C.get(I) || 0) + 1);
227
227
  }
228
- return this._itemsCache.set(n + i, { data: S, itemsCountMap: C, allItemsCount: _ }), { data: S, itemsCountMap: C, allItemsCount: _ };
228
+ return this._itemsCache.set(n + i, { data: S, itemsCountMap: C, allItemsCount: T }), { data: S, itemsCountMap: C, allItemsCount: T };
229
229
  }
230
230
  };
231
- Pe = Gn([
231
+ De = Xn([
232
232
  ze(0, N(te)),
233
- ze(1, N(Br)),
233
+ ze(1, N(Fr)),
234
234
  ze(2, N(Ce)),
235
235
  ze(3, ee)
236
- ], Pe);
236
+ ], De);
237
237
  var j = /* @__PURE__ */ ((r) => (r.DatePicker = "DatePicker", r.DateRange = "DateRange", r.Input = "Input", r.Inputs = "Inputs", r.Select = "Select", r.None = "None", r))(j || {});
238
- function Xn(r) {
238
+ function Kn(r) {
239
239
  const t = r.get(oe).t;
240
240
  return [
241
241
  {
242
- value: H.String,
243
- label: t(`sheets-table.condition.${H.String}`),
242
+ value: F.String,
243
+ label: t(`sheets-table.condition.${F.String}`),
244
244
  children: [
245
245
  {
246
246
  value: U.Equal,
@@ -269,8 +269,8 @@ function Xn(r) {
269
269
  ]
270
270
  },
271
271
  {
272
- value: H.Number,
273
- label: t(`sheets-table.condition.${H.Number}`),
272
+ value: F.Number,
273
+ label: t(`sheets-table.condition.${F.Number}`),
274
274
  children: [
275
275
  {
276
276
  value: $.Equal,
@@ -319,8 +319,8 @@ function Xn(r) {
319
319
  ]
320
320
  },
321
321
  {
322
- value: H.Date,
323
- label: t(`sheets-table.condition.${H.Date}`),
322
+ value: F.Date,
323
+ label: t(`sheets-table.condition.${F.Date}`),
324
324
  children: [
325
325
  {
326
326
  value: l.Equal,
@@ -414,7 +414,7 @@ function Xn(r) {
414
414
  }
415
415
  ];
416
416
  }
417
- function Kn(r, e) {
417
+ function Jn(r, e) {
418
418
  if (!e)
419
419
  return [];
420
420
  const n = r.get(oe).t;
@@ -493,7 +493,7 @@ function Kn(r, e) {
493
493
  return [];
494
494
  }
495
495
  }
496
- const Tt = /* @__PURE__ */ new Set([
496
+ const yt = /* @__PURE__ */ new Set([
497
497
  l.Equal,
498
498
  l.NotEqual,
499
499
  l.After,
@@ -501,18 +501,18 @@ const Tt = /* @__PURE__ */ new Set([
501
501
  l.Before,
502
502
  l.BeforeOrEqual
503
503
  ]);
504
- function Jn(r, e) {
505
- return e ? r === H.String ? j.Input : r === H.Number ? e === $.Between || e === $.NotBetween ? j.Inputs : j.Input : r === H.Date ? e === l.Between || e === l.NotBetween ? j.DateRange : e === l.Quarter || e === l.Month ? j.Select : Tt.has(e) ? j.DatePicker : j.None : j.None : j.None;
504
+ function ei(r, e) {
505
+ return e ? r === F.String ? j.Input : r === F.Number ? e === $.Between || e === $.NotBetween ? j.Inputs : j.Input : r === F.Date ? e === l.Between || e === l.NotBetween ? j.DateRange : e === l.Quarter || e === l.Month ? j.Select : yt.has(e) ? j.DatePicker : j.None : j.None : j.None;
506
506
  }
507
- function ei(r) {
507
+ function ti(r) {
508
508
  if (!r || r.filterType !== "condition")
509
509
  return {
510
- type: H.String,
510
+ type: F.String,
511
511
  compareType: U.Equal,
512
512
  info: {}
513
513
  };
514
514
  const e = r.filterInfo, { conditionType: t, compareType: n } = e;
515
- return t === H.Date ? n === l.Between || n === l.NotBetween ? {
515
+ return t === F.Date ? n === l.Between || n === l.NotBetween ? {
516
516
  type: t,
517
517
  compare: n,
518
518
  info: {
@@ -522,7 +522,7 @@ function ei(r) {
522
522
  type: t,
523
523
  compare: n,
524
524
  info: {}
525
- } : Tt.has(n) ? {
525
+ } : yt.has(n) ? {
526
526
  type: t,
527
527
  compare: n,
528
528
  info: {
@@ -540,7 +540,7 @@ function ei(r) {
540
540
  info: {
541
541
  dateSelect: e.compareType
542
542
  }
543
- } : t === H.Number ? n === $.Between || n === $.NotBetween ? {
543
+ } : t === F.Number ? n === $.Between || n === $.NotBetween ? {
544
544
  type: t,
545
545
  compare: n,
546
546
  info: {
@@ -552,43 +552,45 @@ function ei(r) {
552
552
  info: {
553
553
  number: e.expectedValue
554
554
  }
555
- } : t === H.String ? {
555
+ } : t === F.String ? {
556
556
  type: t,
557
557
  compare: n,
558
558
  info: {
559
559
  string: e.expectedValue
560
560
  }
561
561
  } : {
562
- type: H.String,
562
+ type: F.String,
563
563
  compare: U.Equal,
564
564
  info: {}
565
565
  };
566
566
  }
567
- const ti = (r) => {
568
- var C, _, k, p, E, I, P;
569
- const { conditionInfo: e, onChange: t } = r, n = R(oe), [i, a] = W(Math.random()), s = R(Fe), c = Xn(s), h = (b) => {
570
- var f;
571
- const m = b[0], L = b[1];
572
- L && a(Math.random());
573
- const M = {};
574
- m === H.Date ? L === l.Quarter ? M.dateSelect = l.Q1 : L === l.Month ? M.dateSelect = l.M1 : Tt.has(L) ? M.date = /* @__PURE__ */ new Date() : M.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : m === H.Number ? M.number = 0 : m === H.String && (M.string = ""), v(M, b[0], (f = b[1]) != null ? f : U.Equal);
575
- }, d = Jn(e.type, e.compare);
576
- let u = "";
577
- e.compare ? u = `${n.t(`sheets-table.condition.${e.type}`)} - ${n.t(`sheets-table.${e.type}.compare.${e.compare}`)}` : u = n.t(`sheets-table.condition.${e.type}`);
578
- const v = (b, m, L) => {
567
+ const ri = (r) => {
568
+ var C, T, O, p, E, I, k;
569
+ const { conditionInfo: e, onChange: t } = r, n = R(oe), [i, a] = W(!1), s = R(He), c = Kn(s), d = (v, m, L) => {
579
570
  t({
580
571
  type: m != null ? m : e.type,
581
572
  compare: L != null ? L : e.compare,
582
- info: b
573
+ info: v
583
574
  });
584
- }, S = Kn(s, e.compare);
585
- return /* @__PURE__ */ T("div", { children: [
575
+ }, h = (v) => {
576
+ var f;
577
+ const m = v[0], L = v[1];
578
+ L && a(!1);
579
+ const M = {};
580
+ m === F.Date ? L === l.Quarter ? M.dateSelect = l.Q1 : L === l.Month ? M.dateSelect = l.M1 : yt.has(L) ? M.date = /* @__PURE__ */ new Date() : M.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : m === F.Number ? M.number = 0 : m === F.String && (M.string = ""), d(M, v[0], (f = v[1]) != null ? f : U.Equal);
581
+ }, u = ei(e.type, e.compare);
582
+ let b = "";
583
+ e.compare ? b = `${n.t(`sheets-table.condition.${e.type}`)} - ${n.t(`sheets-table.${e.type}.compare.${e.compare}`)}` : b = n.t(`sheets-table.condition.${e.type}`);
584
+ const S = Jn(s, e.compare);
585
+ return /* @__PURE__ */ _("div", { children: [
586
586
  /* @__PURE__ */ o(
587
- gn,
587
+ ke,
588
588
  {
589
- className: "univer-w-full",
590
- dropdownRender: () => /* @__PURE__ */ o(
591
- mn,
589
+ align: "start",
590
+ open: i,
591
+ onOpenChange: a,
592
+ overlay: /* @__PURE__ */ o(
593
+ pn,
592
594
  {
593
595
  value: [e.type, e.compare],
594
596
  options: c,
@@ -597,20 +599,33 @@ const ti = (r) => {
597
599
  wrapperClassName: "!univer-h-[150px]"
598
600
  }
599
601
  ),
600
- value: u,
601
- onChange: () => {
602
- }
603
- },
604
- i
602
+ children: /* @__PURE__ */ _(
603
+ "div",
604
+ {
605
+ className: `
606
+ univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-between
607
+ univer-rounded-md univer-border univer-border-solid univer-border-gray-200 univer-bg-white
608
+ univer-px-2 univer-text-sm univer-transition-colors univer-duration-200
609
+ dark:univer-border-gray-600 dark:univer-bg-gray-700 dark:univer-text-white
610
+ focus:univer-border-primary-600 focus:univer-outline-none focus:univer-ring-2
611
+ hover:univer-border-primary-600
612
+ `,
613
+ children: [
614
+ /* @__PURE__ */ o("span", { children: b }),
615
+ /* @__PURE__ */ o(Tt, { className: "univer-text-gray-400" })
616
+ ]
617
+ }
618
+ )
619
+ }
605
620
  ),
606
- /* @__PURE__ */ T("div", { className: "univer-mt-3 univer-w-full", children: [
607
- d === j.Input && /* @__PURE__ */ o(St, { children: e.type === H.String ? /* @__PURE__ */ o(
621
+ /* @__PURE__ */ _("div", { className: "univer-mt-3 univer-w-full", children: [
622
+ u === j.Input && /* @__PURE__ */ o(St, { children: e.type === F.String ? /* @__PURE__ */ o(
608
623
  _t,
609
624
  {
610
625
  className: "univer-w-full",
611
626
  placeholder: "请输入",
612
627
  value: e.info.string,
613
- onChange: (b) => v({ string: b })
628
+ onChange: (v) => d({ string: v })
614
629
  }
615
630
  ) : /* @__PURE__ */ o(
616
631
  ct,
@@ -618,44 +633,44 @@ const ti = (r) => {
618
633
  className: "univer-h-7 univer-w-full",
619
634
  value: e.info.number,
620
635
  controls: !1,
621
- onChange: (b) => {
622
- b !== null && v({ number: b });
636
+ onChange: (v) => {
637
+ v !== null && d({ number: v });
623
638
  }
624
639
  }
625
640
  ) }),
626
- d === j.DatePicker && /* @__PURE__ */ o("div", { id: "univer-table-date-picker-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
627
- pn,
641
+ u === j.DatePicker && /* @__PURE__ */ o("div", { id: "univer-table-date-picker-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
642
+ fn,
628
643
  {
629
644
  value: ve(e.info.date),
630
645
  defaultPickerValue: ve(),
631
- onChange: (b) => v({ date: b.toDate() }),
646
+ onChange: (v) => d({ date: v.toDate() }),
632
647
  getPopupContainer: () => document.getElementById("univer-table-date-picker-wrapper") || document.body,
633
648
  className: "univer-w-full",
634
649
  allowClear: !1
635
650
  }
636
651
  ) }),
637
- d === j.DateRange && /* @__PURE__ */ o("div", { id: "univer-table-date-range-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
638
- fn,
652
+ u === j.DateRange && /* @__PURE__ */ o("div", { id: "univer-table-date-range-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
653
+ Cn,
639
654
  {
640
- value: [(_ = ve((C = e.info.dateRange) == null ? void 0 : C[0])) != null ? _ : ve(), (p = ve((k = e.info.dateRange) == null ? void 0 : k[1])) != null ? p : ve()],
655
+ value: [(T = ve((C = e.info.dateRange) == null ? void 0 : C[0])) != null ? T : ve(), (p = ve((O = e.info.dateRange) == null ? void 0 : O[1])) != null ? p : ve()],
641
656
  defaultPickerValue: [ve(), ve()],
642
- onChange: (b) => {
643
- v(b ? { dateRange: b.map((m) => m == null ? void 0 : m.toDate()) } : {});
657
+ onChange: (v) => {
658
+ d(v ? { dateRange: v.map((m) => m == null ? void 0 : m.toDate()) } : {});
644
659
  },
645
660
  getPopupContainer: () => document.getElementById("univer-table-date-range-wrapper") || document.body,
646
661
  classNames: { popup: "univer-w-[400px]" },
647
662
  allowClear: !1
648
663
  }
649
664
  ) }),
650
- d === j.Inputs && /* @__PURE__ */ T("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
665
+ u === j.Inputs && /* @__PURE__ */ _("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
651
666
  /* @__PURE__ */ o(
652
667
  ct,
653
668
  {
654
669
  className: "univer-w-full",
655
670
  value: (E = e.info.numberRange) == null ? void 0 : E[0],
656
- onChange: (b) => {
671
+ onChange: (v) => {
657
672
  var m;
658
- b !== null && v({ numberRange: [b, (m = e.info.numberRange) == null ? void 0 : m[1]] });
673
+ v !== null && d({ numberRange: [v, (m = e.info.numberRange) == null ? void 0 : m[1]] });
659
674
  },
660
675
  controls: !1
661
676
  }
@@ -667,51 +682,51 @@ const ti = (r) => {
667
682
  className: "univer-w-full",
668
683
  value: (I = e.info.numberRange) == null ? void 0 : I[1],
669
684
  controls: !1,
670
- onChange: (b) => {
685
+ onChange: (v) => {
671
686
  var m;
672
- b !== null && v({ numberRange: [(m = e.info.numberRange) == null ? void 0 : m[0], b] });
687
+ v !== null && d({ numberRange: [(m = e.info.numberRange) == null ? void 0 : m[0], v] });
673
688
  }
674
689
  }
675
690
  )
676
691
  ] }),
677
- d === j.Select && /* @__PURE__ */ o(
678
- Cn,
692
+ u === j.Select && /* @__PURE__ */ o(
693
+ Sn,
679
694
  {
680
695
  className: "univer-w-full",
681
- value: (P = e.info.dateSelect) != null ? P : S[0].value,
696
+ value: (k = e.info.dateSelect) != null ? k : S[0].value,
682
697
  options: S,
683
- onChange: (b) => v({ dateSelect: b })
698
+ onChange: (v) => d({ dateSelect: v })
684
699
  }
685
700
  )
686
701
  ] })
687
702
  ] });
688
- }, ri = (r) => {
703
+ }, ni = (r) => {
689
704
  let e = 0;
690
705
  return r.forEach((t) => {
691
706
  e += t;
692
707
  }), e;
693
708
  };
694
- function ni(r) {
695
- const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, h = R(oe), d = R(Pe), { data: u, itemsCountMap: v, allItemsCount: S } = d.getTableFilterItems(e, n, t, i), [C, _] = W(c === void 0 ? !0 : a.size === v.size), [k, p] = W(C ? S : ri(v)), E = !C && a.size > 0, [I, P] = W(""), b = ar(() => I ? u.filter((f) => String(f.title).toLowerCase().includes(I.toLowerCase())) : u, [I, u]), m = kt(() => {
696
- C ? (a.clear(), s(new Set(a)), _(!1)) : (b.forEach((f) => {
709
+ function ii(r) {
710
+ const { unitId: e, tableId: t, subUnitId: n, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = r, d = R(oe), h = R(De), { data: u, itemsCountMap: b, allItemsCount: S } = h.getTableFilterItems(e, n, t, i), [C, T] = W(c === void 0 ? !0 : a.size === b.size), [O, p] = W(C ? S : ni(b)), E = !C && a.size > 0, [I, k] = W(""), v = ar(() => I ? u.filter((f) => String(f.title).toLowerCase().includes(I.toLowerCase())) : u, [I, u]), m = Pt(() => {
711
+ C ? (a.clear(), s(new Set(a)), T(!1)) : (v.forEach((f) => {
697
712
  a.add(f.title);
698
- }), s(new Set(a)), _(!0));
699
- }, [C]), L = kt((f) => {
700
- f === "" ? (_(!0), u.forEach((A) => {
701
- a.add(A.title);
702
- }), p(S)) : (a.clear(), _(!1), p(0)), P(f);
713
+ }), s(new Set(a)), T(!0));
714
+ }, [C]), L = Pt((f) => {
715
+ f === "" ? (T(!0), u.forEach((V) => {
716
+ a.add(V.title);
717
+ }), p(S)) : (a.clear(), T(!1), p(0)), k(f);
703
718
  }, []), M = (f) => {
704
719
  if (C) {
705
- _(!1);
706
- const A = /* @__PURE__ */ new Set();
707
- for (const { title: O } of u)
708
- f !== O && A.add(O);
709
- p(S - v.get(f)), s(A);
720
+ T(!1);
721
+ const V = /* @__PURE__ */ new Set();
722
+ for (const { title: P } of u)
723
+ f !== P && V.add(P);
724
+ p(S - b.get(f)), s(V);
710
725
  } else
711
- a.has(f) ? (a.delete(f), p(k - v.get(f))) : (a.add(f), p(k + v.get(f))), s(new Set(a));
726
+ a.has(f) ? (a.delete(f), p(O - b.get(f))) : (a.add(f), p(O + b.get(f))), s(new Set(a));
712
727
  };
713
- return /* @__PURE__ */ T("div", { className: "univer-flex univer-h-full univer-flex-col", children: [
714
- /* @__PURE__ */ o(_t, { autoFocus: !0, value: I, placeholder: h.t("sheets-filter.panel.search-placeholder"), onChange: L }),
728
+ return /* @__PURE__ */ _("div", { className: "univer-flex univer-h-full univer-flex-col", children: [
729
+ /* @__PURE__ */ o(_t, { autoFocus: !0, value: I, placeholder: d.t("sheets-filter.panel.search-placeholder"), onChange: L }),
715
730
  /* @__PURE__ */ o(
716
731
  "div",
717
732
  {
@@ -723,15 +738,15 @@ function ni(r) {
723
738
  children: /* @__PURE__ */ o(
724
739
  "div",
725
740
  {
726
- className: Sn("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", _n),
727
- children: /* @__PURE__ */ T("div", { className: "univer-h-full", children: [
728
- /* @__PURE__ */ T(
741
+ className: _n("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", Tn),
742
+ children: /* @__PURE__ */ _("div", { className: "univer-h-full", children: [
743
+ /* @__PURE__ */ _(
729
744
  "div",
730
745
  {
731
746
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
732
747
  children: [
733
748
  /* @__PURE__ */ o(
734
- Nt,
749
+ Et,
735
750
  {
736
751
  indeterminate: E,
737
752
  disabled: u.length === 0,
@@ -739,30 +754,30 @@ function ni(r) {
739
754
  onChange: m
740
755
  }
741
756
  ),
742
- /* @__PURE__ */ T(
757
+ /* @__PURE__ */ _(
743
758
  "div",
744
759
  {
745
760
  className: `
746
761
  univer-ml-1 univer-flex univer-h-5 univer-flex-1 univer-items-center univer-text-sm
747
762
  `,
748
763
  children: [
749
- /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: `${h.t("sheets-filter.panel.select-all")}` }),
750
- /* @__PURE__ */ o("span", { className: "univer-ml univer-text-gray-400", children: `(${k}/${I ? b.length : S})` })
764
+ /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: `${d.t("sheets-filter.panel.select-all")}` }),
765
+ /* @__PURE__ */ o("span", { className: "univer-ml univer-text-gray-400", children: `(${O}/${I ? v.length : S})` })
751
766
  ]
752
767
  }
753
768
  )
754
769
  ]
755
770
  }
756
771
  ),
757
- b.map((f) => /* @__PURE__ */ T(
772
+ v.map((f) => /* @__PURE__ */ _(
758
773
  "div",
759
774
  {
760
775
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
761
776
  children: [
762
- /* @__PURE__ */ o(Nt, { checked: C || a.has(f.title), onChange: () => {
777
+ /* @__PURE__ */ o(Et, { checked: C || a.has(f.title), onChange: () => {
763
778
  M(f.title);
764
779
  } }),
765
- /* @__PURE__ */ T(
780
+ /* @__PURE__ */ _(
766
781
  "div",
767
782
  {
768
783
  className: `
@@ -771,7 +786,7 @@ function ni(r) {
771
786
  `,
772
787
  children: [
773
788
  /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: f.title }),
774
- /* @__PURE__ */ o("span", { className: "univer-ml-1 univer-text-gray-400", children: `(${v.get(f.title) || 0})` })
789
+ /* @__PURE__ */ o("span", { className: "univer-ml-1 univer-text-gray-400", children: `(${b.get(f.title) || 0})` })
775
790
  ]
776
791
  }
777
792
  )
@@ -786,32 +801,32 @@ function ni(r) {
786
801
  )
787
802
  ] });
788
803
  }
789
- function ii() {
790
- var V;
791
- const r = R(oe), e = ai(r), t = R(Pe), n = R(te), i = R(ee), a = R(Vt), s = R(De), c = s.getCurrentTableFilterInfo(), h = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: d, subUnitId: u, tableId: v, tableFilter: S, currentFilterBy: C, columnIndex: _ } = h, { data: k } = t.getTableFilterItems(d, u, v, _), p = t.getTableFilterCheckedItems(d, v, _), [E, I] = W(new Set(p)), [P, b] = W(C || fe.Items), [m, L] = W(() => {
792
- const x = h.tableFilter;
793
- return ei(x);
794
- }), M = n.getTable(d, v);
804
+ function ai() {
805
+ var H;
806
+ const r = R(oe), e = si(r), t = R(De), n = R(te), i = R(ee), a = R(Vt), s = R(Be), c = s.getCurrentTableFilterInfo(), d = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: b, tableFilter: S, currentFilterBy: C, columnIndex: T } = d, { data: O } = t.getTableFilterItems(h, u, b, T), p = t.getTableFilterCheckedItems(h, b, T), [E, I] = W(new Set(p)), [k, v] = W(C || fe.Items), [m, L] = W(() => {
807
+ const x = d.tableFilter;
808
+ return ti(x);
809
+ }), M = n.getTable(h, b);
795
810
  if (!M) return null;
796
- const f = M.getTableFilters(), A = f.getSortState(), O = A.columnIndex === _ && A.sortState === Ye.Asc, q = A.columnIndex === _ && A.sortState === Ye.Desc, D = () => {
811
+ const f = M.getTableFilters(), V = f.getSortState(), P = V.columnIndex === T && V.sortState === Ye.Asc, q = V.columnIndex === T && V.sortState === Ye.Desc, D = () => {
797
812
  s.closeFilterPanel();
798
813
  }, K = () => {
799
814
  D();
800
815
  }, Se = (x) => {
801
816
  const B = M.getTableFilterRange();
802
- i.executeCommand(xn.id, {
803
- unitId: d,
817
+ i.executeCommand(Nn.id, {
818
+ unitId: h,
804
819
  subUnitId: u,
805
820
  range: B,
806
- orderRules: [{ colIndex: _ + B.startColumn, type: x ? $t.ASC : $t.DESC }],
821
+ orderRules: [{ colIndex: T + B.startColumn, type: x ? Ot.ASC : Ot.DESC }],
807
822
  hasTitle: !1
808
- }), f.setSortState(_, x ? Ye.Asc : Ye.Desc), D();
823
+ }), f.setSortState(T, x ? Ye.Asc : Ye.Desc), D();
809
824
  }, Ee = () => {
810
- if (P === fe.Items) {
825
+ if (k === fe.Items) {
811
826
  const x = [];
812
- for (const ce of k)
827
+ for (const ce of O)
813
828
  E.has(ce.title) && x.push(ce.title);
814
- const B = M.getTableFilterColumn(_);
829
+ const B = M.getTableFilterColumn(T);
815
830
  if (B) {
816
831
  if (B.values.join(",") === x.join(",")) {
817
832
  D();
@@ -821,11 +836,11 @@ function ii() {
821
836
  D();
822
837
  return;
823
838
  }
824
- const He = {
825
- filterType: Mt.manual,
839
+ const Ve = {
840
+ filterType: Rt.manual,
826
841
  values: x
827
842
  };
828
- t.setTableFilter(d, v, _, He);
843
+ t.setTableFilter(h, b, T, Ve);
829
844
  } else {
830
845
  let x;
831
846
  m.compare === l.Quarter || m.compare === l.Month ? x = {
@@ -837,17 +852,17 @@ function ii() {
837
852
  expectedValue: Object.values(m.info)[0]
838
853
  };
839
854
  const B = {
840
- filterType: Mt.condition,
855
+ filterType: Rt.condition,
841
856
  // @ts-ignore
842
857
  filterInfo: x
843
858
  };
844
- t.setTableFilter(d, v, _, B);
859
+ t.setTableFilter(h, b, T, B);
845
860
  }
846
861
  D();
847
862
  }, _e = () => {
848
- t.setTableFilter(d, v, _, void 0), D();
849
- }, Te = new er(d).id, w = (V = a.getPermissionPoint(Te)) == null ? void 0 : V.value;
850
- return /* @__PURE__ */ T(
863
+ t.setTableFilter(h, b, T, void 0), D();
864
+ }, Te = new er(h).id, w = (H = a.getPermissionPoint(Te)) == null ? void 0 : H.value;
865
+ return /* @__PURE__ */ _(
851
866
  "div",
852
867
  {
853
868
  className: `
@@ -855,8 +870,8 @@ function ii() {
855
870
  univer-p-4 univer-shadow-lg
856
871
  `,
857
872
  children: [
858
- w && /* @__PURE__ */ T("div", { className: "univer-mb-3 univer-flex", children: [
859
- /* @__PURE__ */ T(
873
+ w && /* @__PURE__ */ _("div", { className: "univer-mb-3 univer-flex", children: [
874
+ /* @__PURE__ */ _(
860
875
  "div",
861
876
  {
862
877
  className: `
@@ -864,7 +879,7 @@ function ii() {
864
879
  univer-justify-center univer-gap-1 univer-rounded-l-md univer-border univer-border-solid
865
880
  univer-border-gray-200 univer-py-1.5 univer-text-[13px] univer-font-normal
866
881
  hover:univer-cursor-pointer hover:univer-bg-gray-100
867
- ${O ? "univer-bg-gray-100" : ""}
882
+ ${P ? "univer-bg-gray-100" : ""}
868
883
  `,
869
884
  onClick: () => Se(!0),
870
885
  children: [
@@ -873,7 +888,7 @@ function ii() {
873
888
  ]
874
889
  }
875
890
  ),
876
- /* @__PURE__ */ T(
891
+ /* @__PURE__ */ _(
877
892
  "div",
878
893
  {
879
894
  className: `
@@ -892,37 +907,37 @@ function ii() {
892
907
  )
893
908
  ] }),
894
909
  /* @__PURE__ */ o("div", { className: "univer-w-full", children: /* @__PURE__ */ o(
895
- Tn,
910
+ yn,
896
911
  {
897
- value: P,
912
+ value: k,
898
913
  items: e,
899
- onChange: (x) => b(x)
914
+ onChange: (x) => v(x)
900
915
  }
901
916
  ) }),
902
- /* @__PURE__ */ o("div", { className: "univer-z-10 univer-h-60 univer-w-[280px]", children: /* @__PURE__ */ o("div", { className: "univer-mt-3 univer-h-full univer-w-full", children: P === fe.Items ? /* @__PURE__ */ o(
903
- ni,
917
+ /* @__PURE__ */ o("div", { className: "univer-z-10 univer-h-60 univer-w-[280px]", children: /* @__PURE__ */ o("div", { className: "univer-mt-3 univer-h-full univer-w-full", children: k === fe.Items ? /* @__PURE__ */ o(
918
+ ii,
904
919
  {
905
920
  tableFilter: S,
906
- unitId: d,
921
+ unitId: h,
907
922
  subUnitId: u,
908
- tableId: v,
909
- columnIndex: _,
923
+ tableId: b,
924
+ columnIndex: T,
910
925
  checkedItemSet: E,
911
926
  setCheckedItemSet: I
912
927
  }
913
928
  ) : /* @__PURE__ */ o(
914
- ti,
929
+ ri,
915
930
  {
916
931
  tableFilter: S,
917
- unitId: d,
932
+ unitId: h,
918
933
  subUnitId: u,
919
- tableId: v,
920
- columnIndex: _,
934
+ tableId: b,
935
+ columnIndex: T,
921
936
  conditionInfo: m,
922
937
  onChange: L
923
938
  }
924
939
  ) }) }),
925
- /* @__PURE__ */ T(
940
+ /* @__PURE__ */ _(
926
941
  "div",
927
942
  {
928
943
  className: `
@@ -938,7 +953,7 @@ function ii() {
938
953
  children: r.t("sheets-filter.panel.clear-filter")
939
954
  }
940
955
  ),
941
- /* @__PURE__ */ T("div", { children: [
956
+ /* @__PURE__ */ _("div", { children: [
942
957
  /* @__PURE__ */ o(We, { className: "univer-mr-2", onClick: K, children: r.t("sheets-filter.panel.cancel") }),
943
958
  /* @__PURE__ */ o(We, { variant: "primary", onClick: Ee, children: r.t("sheets-filter.panel.confirm") })
944
959
  ] })
@@ -949,23 +964,23 @@ function ii() {
949
964
  }
950
965
  );
951
966
  }
952
- function ai(r) {
967
+ function si(r) {
953
968
  const e = r.getCurrentLocale();
954
969
  return ar(() => [
955
970
  { label: r.t("sheets-filter.panel.by-values"), value: fe.Items },
956
971
  { label: r.t("sheets-filter.panel.by-conditions"), value: fe.Condition }
957
972
  ], [e, r]);
958
973
  }
959
- var si = Object.getOwnPropertyDescriptor, li = (r, e, t, n) => {
960
- for (var i = n > 1 ? void 0 : n ? si(e, t) : e, a = r.length - 1, s; a >= 0; a--)
974
+ var li = Object.getOwnPropertyDescriptor, oi = (r, e, t, n) => {
975
+ for (var i = n > 1 ? void 0 : n ? li(e, t) : e, a = r.length - 1, s; a >= 0; a--)
961
976
  (s = r[a]) && (i = s(i) || i);
962
977
  return i;
963
978
  }, Ge = (r, e) => (t, n) => e(t, n, r);
964
- let De = class extends Be {
979
+ let Be = class extends Fe {
965
980
  constructor(e, t, n, i) {
966
981
  super();
967
- F(this, "_popupDisposable");
968
- F(this, "_currentTableFilterInfo", null);
982
+ A(this, "_popupDisposable");
983
+ A(this, "_currentTableFilterInfo", null);
969
984
  this._componentManager = e, this._contextService = t, this._sheetCanvasPopupService = n, this._dialogService = i, this._initComponents(), this._initUIPopup();
970
985
  }
971
986
  setCurrentTableFilterInfo(e) {
@@ -979,13 +994,13 @@ let De = class extends Be {
979
994
  }
980
995
  _initComponents() {
981
996
  [
982
- [ge, ii]
997
+ [ge, ai]
983
998
  ].forEach(([e, t]) => {
984
999
  this.disposeWithMe(this._componentManager.register(e, t));
985
1000
  });
986
1001
  }
987
1002
  _initUIPopup() {
988
- this.disposeWithMe(this._contextService.subscribeContextValue$(ge).pipe(Jt(void 0), cn()).subscribe((e) => {
1003
+ this.disposeWithMe(this._contextService.subscribeContextValue$(ge).pipe(Jt(void 0), dn()).subscribe((e) => {
989
1004
  e ? this._openFilterPopup() : e === !1 && this._closeFilterPopup();
990
1005
  }));
991
1006
  }
@@ -1001,7 +1016,7 @@ let De = class extends Be {
1001
1016
  componentKey: ge,
1002
1017
  direction: "horizontal",
1003
1018
  onClickOutside: () => {
1004
- this._dialogService.close(kn), this._contextService.setContextValue(ge, !1);
1019
+ this._dialogService.close(Pn), this._contextService.setContextValue(ge, !1);
1005
1020
  },
1006
1021
  offset: [5, 0]
1007
1022
  });
@@ -1011,22 +1026,22 @@ let De = class extends Be {
1011
1026
  (e = this._popupDisposable) == null || e.dispose(), this._popupDisposable = null, this.clearCurrentTableFilterInfo();
1012
1027
  }
1013
1028
  };
1014
- De = li([
1029
+ Be = oi([
1015
1030
  Ge(0, N(Xt)),
1016
1031
  Ge(1, ft),
1017
- Ge(2, N(qr)),
1032
+ Ge(2, N(Qr)),
1018
1033
  Ge(3, N(Kt))
1019
- ], De);
1034
+ ], Be);
1020
1035
  const bt = {
1021
1036
  type: At.OPERATION,
1022
1037
  id: "sheet.operation.open-table-filter-panel",
1023
1038
  async handler(r, e) {
1024
1039
  if (!e)
1025
1040
  return !1;
1026
- const { row: t, col: n, unitId: i, subUnitId: a, tableId: s } = e, c = r.get(te), h = r.get(ft), d = r.get(De);
1027
- return c.getTable(i, s) ? (h.getContextValue(ge) || (d.setCurrentTableFilterInfo({ unitId: i, subUnitId: a, row: t, tableId: s, column: n }), h.setContextValue(ge, !0)), !0) : !1;
1041
+ const { row: t, col: n, unitId: i, subUnitId: a, tableId: s } = e, c = r.get(te), d = r.get(ft), h = r.get(Be);
1042
+ return c.getTable(i, s) ? (d.getContextValue(ge) || (h.setCurrentTableFilterInfo({ unitId: i, subUnitId: a, row: t, tableId: s, column: n }), d.setContextValue(ge, !0)), !0) : !1;
1028
1043
  }
1029
- }, yt = {
1044
+ }, wt = {
1030
1045
  type: At.OPERATION,
1031
1046
  id: "sheet.operation.open-table-selector",
1032
1047
  async handler(r) {
@@ -1034,27 +1049,27 @@ const bt = {
1034
1049
  const e = r.get(Ce), t = r.get(ee), n = st(e);
1035
1050
  if (!n)
1036
1051
  return !1;
1037
- const { unitId: i, subUnitId: a, worksheet: s } = n, h = r.get(lt).getCurrentLastSelection(), d = (C = h == null ? void 0 : h.range) != null ? C : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, v = wn(h) ? In(d, { up: !0, left: !0, right: !0, down: !0 }, s) : d, S = await fr(r, i, a, v);
1038
- return S ? (t.executeCommand(Vr.id, { ...S }), !0) : !1;
1052
+ const { unitId: i, subUnitId: a, worksheet: s } = n, d = r.get(lt).getCurrentLastSelection(), h = (C = d == null ? void 0 : d.range) != null ? C : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, b = In(d) ? Mn(h, { up: !0, left: !0, right: !0, down: !0 }, s) : h, S = await pr(r, i, a, b);
1053
+ return S ? (t.executeCommand(Ar.id, { ...S }), !0) : !1;
1039
1054
  }
1040
1055
  };
1041
- async function fr(r, e, t, n, i) {
1056
+ async function pr(r, e, t, n, i) {
1042
1057
  const a = r.get(Kt), s = r.get(oe);
1043
1058
  return new Promise((c) => {
1044
- const h = {
1059
+ const d = {
1045
1060
  unitId: e,
1046
1061
  subUnitId: t,
1047
1062
  range: n,
1048
1063
  tableId: i,
1049
- onConfirm: (d) => {
1050
- c(d), a.close(Oe);
1064
+ onConfirm: (h) => {
1065
+ c(h), a.close(Pe);
1051
1066
  },
1052
1067
  onCancel: () => {
1053
- c(null), a.close(Oe);
1068
+ c(null), a.close(Pe);
1054
1069
  }
1055
1070
  };
1056
1071
  a.open({
1057
- id: Oe,
1072
+ id: Pe,
1058
1073
  title: { title: s.t("sheets-table.selectRange") },
1059
1074
  draggable: !0,
1060
1075
  destroyOnClose: !0,
@@ -1062,28 +1077,28 @@ async function fr(r, e, t, n, i) {
1062
1077
  maskClosable: !1,
1063
1078
  children: {
1064
1079
  label: {
1065
- name: Oe,
1066
- props: h
1080
+ name: Pe,
1081
+ props: d
1067
1082
  }
1068
1083
  },
1069
1084
  width: 300,
1070
1085
  onClose: () => {
1071
- c(null), a.close(Oe);
1086
+ c(null), a.close(Pe);
1072
1087
  }
1073
1088
  });
1074
1089
  });
1075
1090
  }
1076
- const Cr = "sheets-table-ui.config";
1077
- var oi = Object.getOwnPropertyDescriptor, ci = (r, e, t, n) => {
1078
- for (var i = n > 1 ? void 0 : n ? oi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1091
+ const fr = "sheets-table-ui.config";
1092
+ var ci = Object.getOwnPropertyDescriptor, ui = (r, e, t, n) => {
1093
+ for (var i = n > 1 ? void 0 : n ? ci(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1079
1094
  (s = r[a]) && (i = s(i) || i);
1080
1095
  return i;
1081
- }, ui = (r, e) => (t, n) => e(t, n, r);
1082
- let xe = class extends Be {
1096
+ }, di = (r, e) => (t, n) => e(t, n, r);
1097
+ let xe = class extends Fe {
1083
1098
  constructor(e) {
1084
1099
  super();
1085
- F(this, "_refreshTable", new un());
1086
- F(this, "refreshTable$", this._refreshTable.asObservable());
1100
+ A(this, "_refreshTable", new hn());
1101
+ A(this, "refreshTable$", this._refreshTable.asObservable());
1087
1102
  this._commandService = e, this._initListener();
1088
1103
  }
1089
1104
  _initListener() {
@@ -1091,44 +1106,44 @@ let xe = class extends Be {
1091
1106
  this._commandService.onCommandExecuted((e) => {
1092
1107
  if (e.id === tr.id) {
1093
1108
  const t = e.params, { styleName: n } = t;
1094
- n.startsWith(Ar) && this._refreshTable.next(Math.random());
1109
+ n.startsWith(Ur) && this._refreshTable.next(Math.random());
1095
1110
  }
1096
1111
  })
1097
1112
  );
1098
1113
  }
1099
1114
  };
1100
- xe = ci([
1101
- ui(0, N(ee))
1115
+ xe = ui([
1116
+ di(0, N(ee))
1102
1117
  ], xe);
1103
- const di = () => {
1118
+ const hi = () => {
1104
1119
  var _e, Te;
1105
- const [r, e] = W(""), [t, n] = W(""), i = R(en), [a, s] = W({}), c = R(Fe), h = R(rt), d = Me(h.anchorPosition$), u = R(ee), v = R(Ce), S = R(rr), C = Me(S.unitPermissionInitStateChange$, !1), _ = R(te), k = R(nr), p = R(xe), E = Me(p.refreshTable$), I = R(oe), P = R(lt), b = Me(P.selectionChanged$, [{ range: Ht(0, 0), primary: null }]), [, m] = W(Math.random()), M = R(Ut).getConfig(Cr), f = (_e = M == null ? void 0 : M.anchorHeight) != null ? _e : 24, A = (Te = M == null ? void 0 : M.anchorBackgroundColor) != null ? Te : "rgb(53,91,183)", O = (w, V) => {
1120
+ const [r, e] = W(""), [t, n] = W(""), i = R(rn), [a, s] = W({}), c = R(He), d = R(et), h = Me(d.anchorPosition$), u = R(ee), b = R(Ce), S = R(rr), C = Me(S.unitPermissionInitStateChange$, !1), T = R(te), O = R(nr), p = R(xe), E = Me(p.refreshTable$), I = R(oe), k = R(lt), v = Me(k.selectionChanged$, [{ range: Ht(0, 0), primary: null }]), [, m] = W(Math.random()), M = R(Ut).getConfig(fr), f = (_e = M == null ? void 0 : M.anchorHeight) != null ? _e : 24, V = (Te = M == null ? void 0 : M.anchorBackgroundColor) != null ? Te : "rgb(53,91,183)", P = (w, H) => {
1106
1121
  s((x) => ({
1107
1122
  ...x,
1108
- [w]: V
1123
+ [w]: H
1109
1124
  }));
1110
1125
  };
1111
1126
  if (sr(() => {
1112
1127
  m(Math.random());
1113
- }, [E]), !(d != null && d.length))
1128
+ }, [E]), !(h != null && h.length))
1114
1129
  return null;
1115
- const q = st(v);
1130
+ const q = st(b);
1116
1131
  if (!q) return null;
1117
- const { unitId: D, subUnitId: K } = q, Se = (w, V) => {
1132
+ const { unitId: D, subUnitId: K } = q, Se = (w, H) => {
1118
1133
  var B;
1119
- if (((B = _.getTableById(D, w)) == null ? void 0 : B.getDisplayName()) === V) {
1134
+ if (((B = T.getTableById(D, w)) == null ? void 0 : B.getDisplayName()) === H) {
1120
1135
  e(""), n("");
1121
1136
  return;
1122
1137
  }
1123
1138
  u.executeCommand(vt.id, {
1124
1139
  tableId: w,
1125
1140
  unitId: D,
1126
- name: V
1141
+ name: H
1127
1142
  }), n(""), e("");
1128
1143
  }, Ee = async (w) => {
1129
- const V = _.getTableById(D, w);
1130
- if (!V) return;
1131
- const x = V.getRange(), B = await fr(c, D, K, x, w);
1144
+ const H = T.getTableById(D, w);
1145
+ if (!H) return;
1146
+ const x = H.getRange(), B = await pr(c, D, K, x, w);
1132
1147
  B && u.executeCommand(vt.id, {
1133
1148
  tableId: w,
1134
1149
  unitId: D,
@@ -1142,24 +1157,21 @@ const di = () => {
1142
1157
  {
1143
1158
  className: "univer-absolute univer-z-50 univer-h-0 univer-w-0",
1144
1159
  style: {},
1145
- children: d.map((w) => {
1160
+ children: h.map((w) => {
1146
1161
  var z, G, ae, se, ue, de, he;
1147
- const V = _.getTableById(D, w.tableId);
1148
- if (!V) return null;
1149
- const x = k.getRangeThemeStyle(D, V.getTableStyleId()), B = (ae = (G = (z = x == null ? void 0 : x.getHeaderRowStyle()) == null ? void 0 : z.bg) == null ? void 0 : G.rgb) != null ? ae : A, ce = (de = (ue = (se = x == null ? void 0 : x.getHeaderRowStyle()) == null ? void 0 : se.cl) == null ? void 0 : ue.rgb) != null ? de : "rgb(255, 255, 255)", Ze = V.getRange();
1150
- if (!(b != null && b.length))
1162
+ const H = T.getTableById(D, w.tableId);
1163
+ if (!H) return null;
1164
+ const x = O.getRangeThemeStyle(D, H.getTableStyleId()), B = (ae = (G = (z = x == null ? void 0 : x.getHeaderRowStyle()) == null ? void 0 : z.bg) == null ? void 0 : G.rgb) != null ? ae : V, ce = (de = (ue = (se = x == null ? void 0 : x.getHeaderRowStyle()) == null ? void 0 : se.cl) == null ? void 0 : ue.rgb) != null ? de : "rgb(255, 255, 255)", Ze = H.getRange();
1165
+ if (!(v != null && v.length))
1151
1166
  return null;
1152
- const qe = b[b.length - 1].range, y = !pe.intersects(Ze, qe) && w.y <= 20;
1153
- return /* @__PURE__ */ T(
1167
+ const qe = v[v.length - 1].range, y = !pe.intersects(Ze, qe) && w.y <= 20;
1168
+ return /* @__PURE__ */ _(
1154
1169
  "div",
1155
1170
  {
1156
1171
  className: `
1157
- univer-absolute univer-box-border univer-flex
1158
- ${f ? `
1159
- univer-h-[${f}px]
1160
- ` : "univer-h-[24px]"}
1161
- univer-cursor-pointer univer-items-center univer-rounded-xl univer-border univer-border-solid
1162
- univer-border-gray-500 univer-pl-2 univer-pr-2 univer-shadow-xs
1172
+ univer-absolute univer-box-border univer-flex univer-cursor-pointer univer-items-center
1173
+ univer-rounded-xl univer-border univer-border-solid univer-border-gray-500 univer-pl-2
1174
+ univer-pr-2 univer-shadow-xs
1163
1175
  `,
1164
1176
  style: {
1165
1177
  left: w.x,
@@ -1167,7 +1179,8 @@ const di = () => {
1167
1179
  backgroundColor: B,
1168
1180
  color: ce,
1169
1181
  borderWidth: "0.5px",
1170
- display: y ? "none" : "flex"
1182
+ display: y ? "none" : "flex",
1183
+ height: f ? `${f}px` : "24px"
1171
1184
  },
1172
1185
  children: [
1173
1186
  /* @__PURE__ */ o("div", { className: "univer-text-nowrap", children: r === w.tableId ? /* @__PURE__ */ o(
@@ -1185,14 +1198,14 @@ const di = () => {
1185
1198
  }
1186
1199
  ) : /* @__PURE__ */ o("div", { className: "univer-h-[18px] univer-max-w-24 univer-truncate univer-text-sm", children: w.tableName }) }),
1187
1200
  /* @__PURE__ */ o(
1188
- Ue,
1201
+ ke,
1189
1202
  {
1190
1203
  open: (he = a[w.tableId]) != null ? he : !1,
1191
1204
  onOpenChange: (Z) => {
1192
- O(w.tableId, Z);
1205
+ P(w.tableId, Z);
1193
1206
  },
1194
- overlay: /* @__PURE__ */ T("div", { className: "univer-pb-2 univer-pt-2", children: [
1195
- /* @__PURE__ */ T(
1207
+ overlay: /* @__PURE__ */ _("div", { className: "univer-pb-2 univer-pt-2", children: [
1208
+ /* @__PURE__ */ _(
1196
1209
  "div",
1197
1210
  {
1198
1211
  className: `
@@ -1204,7 +1217,7 @@ const di = () => {
1204
1217
  e(w.tableId), n(w.tableName);
1205
1218
  },
1206
1219
  children: [
1207
- /* @__PURE__ */ o(mr, { className: "univer-mr-2" }),
1220
+ /* @__PURE__ */ o(gr, { className: "univer-mr-2" }),
1208
1221
  I.t("sheets-table.rename")
1209
1222
  ]
1210
1223
  }
@@ -1213,11 +1226,11 @@ const di = () => {
1213
1226
  "div",
1214
1227
  {
1215
1228
  className: `
1216
- univer-mb-1 univer-mt-1 univer-h-[1px] univer-w-full univer-bg-gray-200
1229
+ univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200
1217
1230
  `
1218
1231
  }
1219
1232
  ),
1220
- /* @__PURE__ */ T(
1233
+ /* @__PURE__ */ _(
1221
1234
  "div",
1222
1235
  {
1223
1236
  onClick: () => Ee(w.tableId),
@@ -1232,7 +1245,7 @@ const di = () => {
1232
1245
  ]
1233
1246
  }
1234
1247
  ),
1235
- /* @__PURE__ */ T(
1248
+ /* @__PURE__ */ _(
1236
1249
  "div",
1237
1250
  {
1238
1251
  className: `
@@ -1241,11 +1254,11 @@ const di = () => {
1241
1254
  hover:univer-bg-gray-200
1242
1255
  `,
1243
1256
  onClick: () => {
1244
- O(w.tableId, !1);
1245
- const Z = _.getTableById(D, w.tableId);
1257
+ P(w.tableId, !1);
1258
+ const Z = T.getTableById(D, w.tableId);
1246
1259
  if (!Z) return;
1247
1260
  const ye = Z.getTableConfig(), we = {
1248
- id: On,
1261
+ id: kn,
1249
1262
  header: { title: I.t("sheets-table.tableStyle") },
1250
1263
  children: {
1251
1264
  label: or,
@@ -1260,7 +1273,7 @@ const di = () => {
1260
1273
  },
1261
1274
  children: [
1262
1275
  /* @__PURE__ */ o(
1263
- gr,
1276
+ br,
1264
1277
  {
1265
1278
  extend: { colorChannel1: "rgb(53,91,183)" },
1266
1279
  className: "univer-mr-2"
@@ -1274,11 +1287,11 @@ const di = () => {
1274
1287
  "div",
1275
1288
  {
1276
1289
  className: `
1277
- univer-mb-1 univer-mt-1 univer-h-[1px] univer-w-full univer-bg-gray-200
1290
+ univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200
1278
1291
  `
1279
1292
  }
1280
1293
  ),
1281
- /* @__PURE__ */ T(
1294
+ /* @__PURE__ */ _(
1282
1295
  "div",
1283
1296
  {
1284
1297
  className: `
@@ -1287,7 +1300,7 @@ const di = () => {
1287
1300
  hover:univer-bg-gray-200
1288
1301
  `,
1289
1302
  onClick: () => {
1290
- O(w.tableId, !1), u.executeCommand(Ur.id, {
1303
+ P(w.tableId, !1), u.executeCommand(jr.id, {
1291
1304
  tableId: w.tableId,
1292
1305
  subUnitId: K,
1293
1306
  unitId: D
@@ -1301,7 +1314,7 @@ const di = () => {
1301
1314
  )
1302
1315
  ] }),
1303
1316
  align: "start",
1304
- children: /* @__PURE__ */ o(br, {})
1317
+ children: /* @__PURE__ */ o(Tt, {})
1305
1318
  },
1306
1319
  w.tableId
1307
1320
  )
@@ -1313,29 +1326,29 @@ const di = () => {
1313
1326
  }
1314
1327
  ) : null;
1315
1328
  };
1316
- var hi = Object.getOwnPropertyDescriptor, vi = (r, e, t, n) => {
1317
- for (var i = n > 1 ? void 0 : n ? hi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1329
+ var vi = Object.getOwnPropertyDescriptor, bi = (r, e, t, n) => {
1330
+ for (var i = n > 1 ? void 0 : n ? vi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1318
1331
  (s = r[a]) && (i = s(i) || i);
1319
1332
  return i;
1320
1333
  }, J = (r, e) => (t, n) => e(t, n, r);
1321
- let rt = class extends Be {
1322
- constructor(e, t, n, i, a, s, c, h, d, u, v) {
1334
+ let et = class extends Fe {
1335
+ constructor(e, t, n, i, a, s, c, d, h, u, b) {
1323
1336
  super();
1324
- F(this, "_anchorVisible$", new xt(!0));
1325
- F(this, "_timer");
1326
- F(this, "_anchorPosition$", new xt([]));
1327
- F(this, "anchorPosition$", this._anchorPosition$.asObservable());
1328
- this._context = e, this._injector = t, this._sheetSkeletonManagerService = n, this._renderManagerService = i, this._commandService = a, this._univerInstanceService = s, this._uiPartsService = c, this._tableManager = h, this._scrollManagerService = d, this._workbookPermissionService = u, this._permissionService = v, this._initUI(), this._initListener(), this._initTableAnchor();
1337
+ A(this, "_anchorVisible$", new Nt(!0));
1338
+ A(this, "_timer");
1339
+ A(this, "_anchorPosition$", new Nt([]));
1340
+ A(this, "anchorPosition$", this._anchorPosition$.asObservable());
1341
+ this._context = e, this._injector = t, this._sheetSkeletonManagerService = n, this._renderManagerService = i, this._commandService = a, this._univerInstanceService = s, this._uiPartsService = c, this._tableManager = d, this._scrollManagerService = h, this._workbookPermissionService = u, this._permissionService = b, this._initUI(), this._initListener(), this._initTableAnchor();
1329
1342
  }
1330
1343
  _initUI() {
1331
1344
  this.disposeWithMe(
1332
- this._uiPartsService.registerComponent(rn.CONTENT, () => nn(di, this._injector))
1345
+ this._uiPartsService.registerComponent(an.CONTENT, () => sn(hi, this._injector))
1333
1346
  );
1334
1347
  }
1335
1348
  _initListener() {
1336
1349
  this.disposeWithMe(
1337
1350
  this._commandService.onCommandExecuted((e) => {
1338
- (e.id === Qr.id || e.id === zr.id) && (this._anchorVisible$.next(!1), this._timer && clearTimeout(this._timer), this._timer = setTimeout(() => {
1351
+ (e.id === Gr.id || e.id === Xr.id) && (this._anchorVisible$.next(!1), this._timer && clearTimeout(this._timer), this._timer = setTimeout(() => {
1339
1352
  this._anchorVisible$.next(!0);
1340
1353
  }, 300));
1341
1354
  })
@@ -1352,11 +1365,11 @@ let rt = class extends Be {
1352
1365
  this._tableManager.tableNameChanged$,
1353
1366
  this._tableManager.tableRangeChanged$,
1354
1367
  this._tableManager.tableThemeChanged$,
1355
- this._workbookPermissionService.unitPermissionInitStateChange$.pipe(dn((e) => e)),
1356
- this._permissionService.permissionPointUpdate$.pipe(hn(300)),
1368
+ this._workbookPermissionService.unitPermissionInitStateChange$.pipe(vn((e) => e)),
1369
+ this._permissionService.permissionPointUpdate$.pipe(bn(300)),
1357
1370
  this._anchorVisible$
1358
1371
  ).subscribe(() => {
1359
- var d;
1372
+ var h;
1360
1373
  if (!this._anchorVisible$.getValue()) {
1361
1374
  this._anchorPosition$.next([]);
1362
1375
  return;
@@ -1366,60 +1379,60 @@ let rt = class extends Be {
1366
1379
  this._anchorPosition$.next([]);
1367
1380
  return;
1368
1381
  }
1369
- if (!((d = this._permissionService.getPermissionPoint(new er(t.getUnitId()).id)) == null ? void 0 : d.value)) {
1382
+ if (!((h = this._permissionService.getPermissionPoint(new er(t.getUnitId()).id)) == null ? void 0 : h.value)) {
1370
1383
  this._anchorPosition$.next([]);
1371
1384
  return;
1372
1385
  }
1373
- const h = a.reduce((u, v) => {
1374
- const { startRow: S, startColumn: C } = v.range, _ = s.with(at), k = Gr(this._univerInstanceService, this._renderManagerService);
1375
- if (!k) return u;
1376
- const { scene: p } = k, E = p.getViewport(kr.VIEW_MAIN);
1386
+ const d = a.reduce((u, b) => {
1387
+ const { startRow: S, startColumn: C } = b.range, T = s.with(at), O = Kr(this._univerInstanceService, this._renderManagerService);
1388
+ if (!O) return u;
1389
+ const { scene: p } = O, E = p.getViewport(Pr.VIEW_MAIN);
1377
1390
  if (!E) return u;
1378
- const I = p == null ? void 0 : p.scaleX, P = p == null ? void 0 : p.scaleY, b = p == null ? void 0 : p.getViewportScrollXY(E);
1379
- if (!I || !p || !P || !b) return u;
1380
- const m = _.getCurrentSkeleton();
1391
+ const I = p == null ? void 0 : p.scaleX, k = p == null ? void 0 : p.scaleY, v = p == null ? void 0 : p.getViewportScrollXY(E);
1392
+ if (!I || !p || !k || !v) return u;
1393
+ const m = T.getCurrentSkeleton();
1381
1394
  if (!m) return u;
1382
- const L = m.getNoMergeCellWithCoordByIndex(S, C), M = Or(L.startX, I, b), f = Pr(L.startY, P, b) - 25 - 4;
1395
+ const L = m.getNoMergeCellWithCoordByIndex(S, C), M = kr(L.startX, I, v), f = Dr(L.startY, k, v) - 25 - 4;
1383
1396
  return f >= -10 && M >= 45 && u.push({
1384
1397
  x: M,
1385
1398
  y: f,
1386
- tableId: v.id,
1387
- tableName: v.name
1399
+ tableId: b.id,
1400
+ tableName: b.name
1388
1401
  }), u;
1389
1402
  }, []);
1390
- this._anchorPosition$.next(h);
1403
+ this._anchorPosition$.next(d);
1391
1404
  })
1392
1405
  );
1393
1406
  }
1394
1407
  };
1395
- rt = vi([
1396
- J(1, N(Fe)),
1408
+ et = bi([
1409
+ J(1, N(He)),
1397
1410
  J(2, N(at)),
1398
1411
  J(3, Zt),
1399
1412
  J(4, ee),
1400
1413
  J(5, Ce),
1401
- J(6, tn),
1414
+ J(6, nn),
1402
1415
  J(7, N(te)),
1403
- J(8, N(Yr)),
1416
+ J(8, N(zr)),
1404
1417
  J(9, N(rr)),
1405
1418
  J(10, N(Vt))
1406
- ], rt);
1407
- const ke = 16;
1419
+ ], et);
1420
+ const Oe = 16;
1408
1421
  new Path2D("M3.30363 3C2.79117 3 2.51457 3.60097 2.84788 3.99024L6.8 8.60593V12.5662C6.8 12.7184 6.8864 12.8575 7.02289 12.9249L8.76717 13.7863C8.96655 13.8847 9.2 13.7396 9.2 13.5173V8.60593L13.1521 3.99024C13.4854 3.60097 13.2088 3 12.6964 3H3.30363Z");
1409
- class Dt {
1422
+ class Bt {
1410
1423
  static drawNoSetting(e, t, n, i) {
1411
- e.save(), wt.drawWith(e, {
1424
+ e.save(), It.drawWith(e, {
1412
1425
  radius: 2,
1413
- width: ke,
1414
- height: ke,
1426
+ width: Oe,
1427
+ height: Oe,
1415
1428
  fill: i
1416
- }), e.lineCap = "square", e.strokeStyle = n, e.scale(t / ke, t / ke), e.beginPath(), e.lineWidth = 1, e.lineCap = "round", e.moveTo(3, 4), e.lineTo(13, 4), e.moveTo(4.5, 8), e.lineTo(11.5, 8), e.moveTo(6, 12), e.lineTo(10, 12), e.stroke(), e.restore();
1429
+ }), e.lineCap = "square", e.strokeStyle = n, e.scale(t / Oe, t / Oe), e.beginPath(), e.lineWidth = 1, e.lineCap = "round", e.moveTo(3, 4), e.lineTo(13, 4), e.moveTo(4.5, 8), e.lineTo(11.5, 8), e.moveTo(6, 12), e.lineTo(10, 12), e.stroke(), e.restore();
1417
1430
  }
1418
1431
  static drawIconByPath(e, t, n, i) {
1419
- e.save(), e.strokeStyle = n, e.fillStyle = i, wt.drawWith(e, {
1432
+ e.save(), e.strokeStyle = n, e.fillStyle = i, It.drawWith(e, {
1420
1433
  radius: 2,
1421
- width: ke,
1422
- height: ke,
1434
+ width: Oe,
1435
+ height: Oe,
1423
1436
  fill: i
1424
1437
  }), t.forEach((a) => {
1425
1438
  const s = new Path2D(a);
@@ -1427,36 +1440,36 @@ class Dt {
1427
1440
  }), e.restore();
1428
1441
  }
1429
1442
  }
1430
- const bi = [
1443
+ const gi = [
1431
1444
  "M3.30363 3C2.79117 3 2.51457 3.60097 2.84788 3.99024L6.8 8.60593V12.5662C6.8 12.7184 6.8864 12.8575 7.02289 12.9249L8.76717 13.7863C8.96655 13.8847 9.2 13.7396 9.2 13.5173V8.60593L13.1521 3.99024C13.4854 3.60097 13.2088 3 12.6964 3H3.30363Z"
1432
- ], gi = [
1445
+ ], mi = [
1433
1446
  "M12.4008 13.1831C12.6907 13.1831 12.9258 12.9481 12.9258 12.6581V4.60873L14.013 5.69597C14.218 5.901 14.5505 5.901 14.7555 5.69597C14.9605 5.49094 14.9605 5.15853 14.7555 4.95351L12.7721 2.97017C12.5671 2.76515 12.2347 2.76515 12.0297 2.97017L10.0463 4.95351C9.84132 5.15853 9.84132 5.49094 10.0463 5.69597C10.2514 5.901 10.5838 5.901 10.7888 5.69597L11.8758 4.60901V12.6581C11.8758 12.9481 12.1108 13.1831 12.4008 13.1831Z",
1434
1447
  "M1.28069 4.85447C0.842195 4.33439 1.21191 3.5391 1.89218 3.5391H8.59333C9.2736 3.5391 9.64331 4.33439 9.20482 4.85447L6.51052 8.0501V11.6601C6.51052 12.2245 5.94174 12.6114 5.41683 12.404L4.48092 12.0343C4.1756 11.9136 3.97498 11.6187 3.97498 11.2904V8.0501L1.28069 4.85447Z"
1435
- ], mi = [
1448
+ ], pi = [
1436
1449
  "M12.4008 2.81641C12.6907 2.81641 12.9258 3.05146 12.9258 3.34141V11.3908L14.013 10.3036C14.218 10.0986 14.5505 10.0986 14.7555 10.3036C14.9605 10.5086 14.9605 10.841 14.7555 11.046L12.7721 13.0294C12.5671 13.2344 12.2347 13.2344 12.0297 13.0294L10.0463 11.046C9.84132 10.841 9.84132 10.5086 10.0463 10.3036C10.2514 10.0986 10.5838 10.0986 10.7888 10.3036L11.8758 11.3905V3.34141C11.8758 3.05146 12.1108 2.81641 12.4008 2.81641Z",
1437
1450
  "M1.28069 4.85444C0.842195 4.33435 1.21191 3.53906 1.89218 3.53906H8.59333C9.2736 3.53906 9.64331 4.33435 9.20482 4.85443L6.51052 8.05006V11.6601C6.51052 12.2245 5.94174 12.6113 5.41683 12.404L4.48092 12.0342C4.1756 11.9136 3.97498 11.6186 3.97498 11.2903V8.05006L1.28069 4.85444Z"
1438
- ], pi = [
1451
+ ], fi = [
1439
1452
  "M11.9003 13.7046C11.9003 13.9969 11.6633 14.2339 11.371 14.2339C11.0787 14.2339 10.8417 13.9969 10.8417 13.7046V3.57272L9.74577 4.66862C9.53906 4.87534 9.20391 4.87534 8.9972 4.66862C8.79048 4.46191 8.79048 4.12676 8.9972 3.92005L10.9969 1.92039C11.2036 1.71368 11.5387 1.71368 11.7454 1.92039L13.7451 3.92005C13.9518 4.12676 13.9518 4.46191 13.7451 4.66862C13.5384 4.87534 13.2032 4.87534 12.9965 4.66862L11.9003 3.57243V13.7046Z",
1440
1453
  "M2.69779 10.0113C2.40546 10.0113 2.16847 9.77429 2.16847 9.48196C2.16847 9.18962 2.40546 8.95264 2.69779 8.95264H6.67804C6.89213 8.95264 7.08514 9.0816 7.16707 9.2794C7.249 9.47719 7.20371 9.70486 7.05233 9.85624L3.97569 12.9329H6.67804C6.97038 12.9329 7.20736 13.1699 7.20736 13.4622C7.20736 13.7545 6.97038 13.9915 6.67804 13.9915H2.69779C2.4837 13.9915 2.29069 13.8626 2.20876 13.6648C2.12684 13.467 2.17212 13.2393 2.32351 13.0879L5.40015 10.0113H2.69779Z",
1441
1454
  "M5.51638 2.58693C5.23363 1.81542 4.14248 1.81543 3.85973 2.58693L2.13245 7.29995C2.03185 7.57443 2.17281 7.87849 2.4473 7.97909C2.72178 8.07969 3.02584 7.93872 3.12644 7.66424L3.64346 6.25351L3.64504 6.25351H5.73266L6.24968 7.66424C6.35027 7.93872 6.65433 8.07969 6.92882 7.97909C7.2033 7.87849 7.34426 7.57443 7.24367 7.29995L5.51638 2.58693ZM5.34467 5.19487L4.68806 3.40325L4.03144 5.19487H5.34467Z"
1442
- ], fi = [
1455
+ ], Ci = [
1443
1456
  "M11.9003 2.29495C11.9003 2.00261 11.6633 1.76562 11.371 1.76562C11.0787 1.76562 10.8417 2.00261 10.8417 2.29495V12.4268L9.74577 11.3309C9.53906 11.1242 9.20391 11.1242 8.9972 11.3309C8.79048 11.5376 8.79048 11.8727 8.9972 12.0795L10.9969 14.0791C11.2036 14.2858 11.5387 14.2858 11.7454 14.0791L13.7451 12.0795C13.9518 11.8727 13.9518 11.5376 13.7451 11.3309C13.5384 11.1242 13.2032 11.1242 12.9965 11.3309L11.9003 12.4271V2.29495Z",
1444
1457
  "M2.69792 10.0113C2.40558 10.0113 2.16859 9.77429 2.16859 9.48196C2.16859 9.18962 2.40558 8.95264 2.69792 8.95264H6.67816C6.89225 8.95264 7.08526 9.0816 7.16719 9.2794C7.24912 9.47719 7.20384 9.70486 7.05245 9.85624L3.97581 12.9329H6.67816C6.9705 12.9329 7.20749 13.1699 7.20749 13.4622C7.20749 13.7545 6.9705 13.9915 6.67816 13.9915H2.69792C2.48383 13.9915 2.29082 13.8626 2.20889 13.6648C2.12696 13.467 2.17224 13.2393 2.32363 13.0879L5.40027 10.0113H2.69792Z",
1445
1458
  "M5.5165 2.58693C5.23375 1.81542 4.1426 1.81543 3.85985 2.58693L2.13257 7.29995C2.03197 7.57443 2.17294 7.8785 2.44742 7.97909C2.7219 8.07969 3.02596 7.93872 3.12656 7.66424L3.64358 6.25351L3.64516 6.25351H5.73278L6.2498 7.66424C6.35039 7.93872 6.65446 8.07969 6.92894 7.97909C7.20342 7.8785 7.34438 7.57443 7.24379 7.29995L5.5165 2.58693ZM5.34479 5.19487L4.68818 3.40325L4.03156 5.19487H5.34479Z"
1446
1459
  ];
1447
- var Ci = Object.getOwnPropertyDescriptor, Si = (r, e, t, n) => {
1448
- for (var i = n > 1 ? void 0 : n ? Ci(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1460
+ var Si = Object.getOwnPropertyDescriptor, _i = (r, e, t, n) => {
1461
+ for (var i = n > 1 ? void 0 : n ? Si(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1449
1462
  (s = r[a]) && (i = s(i) || i);
1450
1463
  return i;
1451
1464
  }, dt = (r, e) => (t, n) => e(t, n, r);
1452
1465
  const me = 16, Xe = 1;
1453
- let gt = class extends Dr {
1466
+ let gt = class extends Br {
1454
1467
  constructor(e, t, n, i, a) {
1455
1468
  super(e, t);
1456
- F(this, "_cellWidth", 0);
1457
- F(this, "_cellHeight", 0);
1458
- F(this, "_filterParams");
1459
- F(this, "_hovered", !1);
1469
+ A(this, "_cellWidth", 0);
1470
+ A(this, "_cellHeight", 0);
1471
+ A(this, "_filterParams");
1472
+ A(this, "_hovered", !1);
1460
1473
  this._contextService = n, this._commandService = i, this._themeService = a, this.setShapeProps(t), this.onPointerDown$.subscribeEvent((s) => this.onPointerDown(s)), this.onPointerEnter$.subscribeEvent(() => this.onPointerEnter()), this.onPointerLeave$.subscribeEvent(() => this.onPointerLeave());
1461
1474
  }
1462
1475
  setShapeProps(e) {
@@ -1470,42 +1483,42 @@ let gt = class extends Dr {
1470
1483
  e.save();
1471
1484
  const s = new Path2D();
1472
1485
  s.rect(i, a, n, t), e.clip(s);
1473
- const { buttonState: c } = this._filterParams, h = this._themeService.getCurrentTheme().primaryColor, d = this._hovered ? this._themeService.getCurrentTheme().grey50 : "rgba(255, 255, 255, 1.0)";
1486
+ const { buttonState: c } = this._filterParams, d = this._themeService.getColorFromTheme("primary.600"), h = this._hovered ? this._themeService.getColorFromTheme("gray.50") : "rgba(255, 255, 255, 1.0)";
1474
1487
  let u;
1475
1488
  switch (c) {
1476
1489
  case Le.FilteredSortNone:
1477
- u = bi;
1490
+ u = gi;
1478
1491
  break;
1479
1492
  case Le.FilteredSortAsc:
1480
- u = gi;
1493
+ u = mi;
1481
1494
  break;
1482
1495
  case Le.FilteredSortDesc:
1483
- u = mi;
1496
+ u = pi;
1484
1497
  break;
1485
1498
  case Le.FilterNoneSortNone:
1486
1499
  break;
1487
1500
  case Le.FilterNoneSortAsc:
1488
- u = pi;
1501
+ u = fi;
1489
1502
  break;
1490
1503
  case Le.FilterNoneSortDesc:
1491
- u = fi;
1504
+ u = Ci;
1492
1505
  break;
1493
1506
  }
1494
- u ? Dt.drawIconByPath(e, u, h, d) : c !== void 0 && Dt.drawNoSetting(e, me, h, d), e.restore();
1507
+ u ? Bt.drawIconByPath(e, u, d, h) : c !== void 0 && Bt.drawNoSetting(e, me, d, h), e.restore();
1495
1508
  }
1496
1509
  onPointerDown(e) {
1497
1510
  if (e.button === 2)
1498
1511
  return;
1499
1512
  const { row: t, col: n, unitId: i, subUnitId: a, tableId: s } = this._filterParams;
1500
1513
  this._contextService.getContextValue(ge) || !this._commandService.hasCommand(bt.id) || setTimeout(() => {
1501
- const h = {
1514
+ const d = {
1502
1515
  row: t,
1503
1516
  col: n,
1504
1517
  unitId: i,
1505
1518
  subUnitId: a,
1506
1519
  tableId: s
1507
1520
  };
1508
- this._commandService.executeCommand(bt.id, h);
1521
+ this._commandService.executeCommand(bt.id, d);
1509
1522
  }, 200);
1510
1523
  }
1511
1524
  onPointerEnter() {
@@ -1515,23 +1528,23 @@ let gt = class extends Dr {
1515
1528
  this._hovered = !1, this.makeDirty(!0);
1516
1529
  }
1517
1530
  };
1518
- gt = Si([
1531
+ gt = _i([
1519
1532
  dt(2, ft),
1520
1533
  dt(3, ee),
1521
1534
  dt(4, N(jt))
1522
1535
  ], gt);
1523
- var _i = Object.getOwnPropertyDescriptor, Ti = (r, e, t, n) => {
1524
- for (var i = n > 1 ? void 0 : n ? _i(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1536
+ var Ti = Object.getOwnPropertyDescriptor, yi = (r, e, t, n) => {
1537
+ for (var i = n > 1 ? void 0 : n ? Ti(e, t) : e, a = r.length - 1, s; a >= 0; a--)
1525
1538
  (s = r[a]) && (i = s(i) || i);
1526
1539
  return i;
1527
1540
  }, Ie = (r, e) => (t, n) => e(t, n, r);
1528
- const yi = 5e3;
1541
+ const wi = 5e3;
1529
1542
  let mt = class extends Wt {
1530
- constructor(e, t, n, i, a, s, c, h) {
1543
+ constructor(e, t, n, i, a, s, c, d) {
1531
1544
  super();
1532
- F(this, "_buttonRenderDisposable", null);
1533
- F(this, "_tableFilterButtonShapes", []);
1534
- this._context = e, this._injector = t, this._sheetSkeletonManagerService = n, this._themeService = i, this._sheetInterceptorService = a, this._commandService = s, this._selectionRenderService = c, this._tableManager = h, this._initRenderer();
1545
+ A(this, "_buttonRenderDisposable", null);
1546
+ A(this, "_tableFilterButtonShapes", []);
1547
+ this._context = e, this._injector = t, this._sheetSkeletonManagerService = n, this._themeService = i, this._sheetInterceptorService = a, this._commandService = s, this._selectionRenderService = c, this._tableManager = d, this._initRenderer();
1535
1548
  }
1536
1549
  dispose() {
1537
1550
  super.dispose(), this._disposeRendering();
@@ -1556,46 +1569,46 @@ let mt = class extends Wt {
1556
1569
  e.tableDelete$,
1557
1570
  e.tableFilterChanged$
1558
1571
  ).pipe(
1559
- vn(() => s()),
1572
+ gn(() => s()),
1560
1573
  Jt(s())
1561
1574
  );
1562
1575
  }),
1563
- bn(this.dispose$)
1576
+ mn(this.dispose$)
1564
1577
  ).subscribe((t) => {
1565
1578
  this._disposeRendering(), !(!t || !t.tableFilterRanges) && this._renderButtons(t);
1566
1579
  });
1567
1580
  }
1568
1581
  _renderButtons(e) {
1569
1582
  const { tableFilterRanges: t, unitId: n, skeleton: i, worksheetId: a } = e, { scene: s } = this._context;
1570
- for (const { range: c, states: h, tableId: d } of t) {
1571
- const { startRow: u, startColumn: v, endColumn: S } = c;
1583
+ for (const { range: c, states: d, tableId: h } of t) {
1584
+ const { startRow: u, startColumn: b, endColumn: S } = c;
1572
1585
  this._interceptCellContent(n, a, c);
1573
- for (let C = v; C <= S; C++) {
1574
- const _ = `sheets-table-filter-button-${u}-${C}`, k = Kr(u, C, s, i), { startX: p, startY: E, endX: I, endY: P } = k, b = I - p, m = P - E;
1575
- if (m <= Xe || b <= Xe)
1586
+ for (let C = b; C <= S; C++) {
1587
+ const T = `sheets-table-filter-button-${u}-${C}`, O = en(u, C, s, i), { startX: p, startY: E, endX: I, endY: k } = O, v = I - p, m = k - E;
1588
+ if (m <= Xe || v <= Xe)
1576
1589
  continue;
1577
- const L = h[C - v], M = I - me - Xe, f = P - me - Xe, A = {
1590
+ const L = d[C - b], M = I - me - Xe, f = k - me - Xe, V = {
1578
1591
  left: M,
1579
1592
  top: f,
1580
1593
  height: me,
1581
1594
  width: me,
1582
- zIndex: yi,
1595
+ zIndex: wi,
1583
1596
  cellHeight: m,
1584
- cellWidth: b,
1585
- filterParams: { unitId: n, subUnitId: a, row: u, col: C, buttonState: L, tableId: d }
1586
- }, O = this._injector.createInstance(gt, _, A);
1587
- this._tableFilterButtonShapes.push(O);
1597
+ cellWidth: v,
1598
+ filterParams: { unitId: n, subUnitId: a, row: u, col: C, buttonState: L, tableId: h }
1599
+ }, P = this._injector.createInstance(gt, T, V);
1600
+ this._tableFilterButtonShapes.push(P);
1588
1601
  }
1589
1602
  }
1590
1603
  s.addObjects(this._tableFilterButtonShapes), s.makeDirty();
1591
1604
  }
1592
1605
  _interceptCellContent(e, t, n) {
1593
1606
  const { startRow: i, startColumn: a, endColumn: s } = n;
1594
- this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Mn.CELL_CONTENT, {
1607
+ this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Rn.CELL_CONTENT, {
1595
1608
  effect: xr.Style,
1596
- handler: (c, h, d) => {
1597
- const { row: u, col: v, unitId: S, subUnitId: C } = h;
1598
- return S !== e || C !== t || u !== i || v < a || v > s ? d(c) : d({
1609
+ handler: (c, d, h) => {
1610
+ const { row: u, col: b, unitId: S, subUnitId: C } = d;
1611
+ return S !== e || C !== t || u !== i || b < a || b > s ? h(c) : h({
1599
1612
  ...c,
1600
1613
  fontRenderExtension: {
1601
1614
  ...c == null ? void 0 : c.fontRenderExtension,
@@ -1611,73 +1624,73 @@ let mt = class extends Wt {
1611
1624
  this._tableFilterButtonShapes.forEach((t) => t.dispose()), (e = this._buttonRenderDisposable) == null || e.dispose(), this._buttonRenderDisposable = null, this._tableFilterButtonShapes = [];
1612
1625
  }
1613
1626
  };
1614
- mt = Ti([
1615
- Ie(1, N(Fe)),
1627
+ mt = yi([
1628
+ Ie(1, N(He)),
1616
1629
  Ie(2, N(at)),
1617
1630
  Ie(3, N(jt)),
1618
1631
  Ie(4, N(ir)),
1619
1632
  Ie(5, ee),
1620
- Ie(6, Xr),
1633
+ Ie(6, Jr),
1621
1634
  Ie(7, N(te))
1622
1635
  ], mt);
1623
- const wi = (r) => {
1624
- const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = R(te), [h, d] = W(n), [u, v] = W(""), S = R(oe), C = R(Ce);
1625
- return /* @__PURE__ */ T(St, { children: [
1636
+ const Ii = (r) => {
1637
+ const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = R(te), [d, h] = W(n), [u, b] = W(""), S = R(oe), C = R(Ce);
1638
+ return /* @__PURE__ */ _(St, { children: [
1626
1639
  /* @__PURE__ */ o(
1627
- Ln,
1640
+ $n,
1628
1641
  {
1629
1642
  maxRangeCount: 1,
1630
1643
  unitId: e,
1631
1644
  subUnitId: t,
1632
- initialValue: Ot(n),
1633
- onChange: (_, k) => {
1634
- const p = Ot(n), E = En(k).range, I = st(C, { unitId: e, subUnitId: t });
1645
+ initialValue: kt(n),
1646
+ onChange: (T, O) => {
1647
+ const p = kt(n), E = Ln(O).range, I = st(C, { unitId: e, subUnitId: t });
1635
1648
  if (!I)
1636
1649
  return;
1637
- if (I.worksheet.getMergeData().some((O) => pe.intersects(E, O))) {
1638
- v(S.t("sheets-table.tableRangeWithMergeError"));
1650
+ if (I.worksheet.getMergeData().some((P) => pe.intersects(E, P))) {
1651
+ b(S.t("sheets-table.tableRangeWithMergeError"));
1639
1652
  return;
1640
1653
  }
1641
- if (c.getTablesBySubunitId(e, t).some((O) => {
1642
- if (O.getId() === s)
1654
+ if (c.getTablesBySubunitId(e, t).some((P) => {
1655
+ if (P.getId() === s)
1643
1656
  return !1;
1644
- const q = O.getRange();
1657
+ const q = P.getRange();
1645
1658
  return pe.intersects(E, q);
1646
1659
  })) {
1647
- v(S.t("sheets-table.tableRangeWithOtherTableError"));
1660
+ b(S.t("sheets-table.tableRangeWithOtherTableError"));
1648
1661
  return;
1649
1662
  }
1650
1663
  const { startRow: M, endRow: f } = E;
1651
1664
  if (M === f) {
1652
- v(S.t("sheets-table.tableRangeSingleRowError"));
1665
+ b(S.t("sheets-table.tableRangeSingleRowError"));
1653
1666
  return;
1654
1667
  }
1655
- if (p !== k) {
1668
+ if (p !== O) {
1656
1669
  if (s) {
1657
- const O = c.getTableById(e, s);
1658
- if (O) {
1659
- const q = O.getRange();
1670
+ const P = c.getTableById(e, s);
1671
+ if (P) {
1672
+ const q = P.getRange();
1660
1673
  if (pe.intersects(E, q) && q.startRow === E.startRow) {
1661
- d(E), v(""), a({
1674
+ h(E), b(""), a({
1662
1675
  unitId: e,
1663
1676
  subUnitId: t,
1664
1677
  range: E
1665
1678
  });
1666
1679
  return;
1667
1680
  } else {
1668
- v(S.t("sheets-table.updateError"));
1681
+ b(S.t("sheets-table.updateError"));
1669
1682
  return;
1670
1683
  }
1671
1684
  }
1672
1685
  }
1673
- d(E), v("");
1686
+ h(E), b("");
1674
1687
  }
1675
1688
  },
1676
1689
  supportAcrossSheet: !1
1677
1690
  }
1678
1691
  ),
1679
1692
  u && /* @__PURE__ */ o("div", { className: "univer-mt-1 univer-text-xs univer-text-red-500", children: u }),
1680
- /* @__PURE__ */ T("div", { className: "univer-mt-4 univer-flex univer-justify-end", children: [
1693
+ /* @__PURE__ */ _("div", { className: "univer-mt-4 univer-flex univer-justify-end", children: [
1681
1694
  /* @__PURE__ */ o(We, { onClick: i, children: S.t("sheets-table.cancel") }),
1682
1695
  /* @__PURE__ */ o(
1683
1696
  We,
@@ -1687,7 +1700,7 @@ const wi = (r) => {
1687
1700
  u || a({
1688
1701
  unitId: e,
1689
1702
  subUnitId: t,
1690
- range: h
1703
+ range: d
1691
1704
  });
1692
1705
  },
1693
1706
  className: "univer-ml-2",
@@ -1696,15 +1709,15 @@ const wi = (r) => {
1696
1709
  )
1697
1710
  ] })
1698
1711
  ] });
1699
- }, Ii = (r) => {
1700
- var Ee, _e, Te, w, V, x, B, He, ce, Ze, ot, qe;
1701
- const { unitId: e, subUnitId: t, tableId: n } = r, i = R(ee), a = R(oe), s = R(te), c = s.getTableById(e, n), h = R(nr), d = R(xe), u = Me(h.rangeThemeMapChange$), v = Me(d.refreshTable$), S = R(Nr), [, C] = W(Math.random()), _ = Me(s.tableThemeChanged$, {
1712
+ }, Mi = (r) => {
1713
+ var Ee, _e, Te, w, H, x, B, Ve, ce, Ze, ot, qe;
1714
+ const { unitId: e, subUnitId: t, tableId: n } = r, i = R(ee), a = R(oe), s = R(te), c = s.getTableById(e, n), d = R(nr), h = R(xe), u = Me(d.rangeThemeMapChange$), b = Me(h.refreshTable$), S = R(Nr), [, C] = W(Math.random()), T = Me(s.tableThemeChanged$, {
1702
1715
  theme: c == null ? void 0 : c.getTableStyleId(),
1703
1716
  oldTheme: c == null ? void 0 : c.getTableStyleId(),
1704
1717
  unitId: e,
1705
1718
  subUnitId: t,
1706
1719
  tableId: n
1707
- }), k = h.getRegisteredRangeThemes().filter((g) => g == null ? void 0 : g.startsWith(Pn)), p = h.getALLRegisteredTheme(e).filter((g) => g == null ? void 0 : g.startsWith(ut)), E = c == null ? void 0 : c.getTableStyleId(), I = p.find((g) => g === E), P = I || p[0], b = h.getCustomRangeThemeStyle(e, P), m = (Te = (_e = (Ee = b == null ? void 0 : b.getHeaderRowStyle()) == null ? void 0 : Ee.bg) == null ? void 0 : _e.rgb) != null ? Te : be, L = (x = (V = (w = b == null ? void 0 : b.getFirstRowStyle()) == null ? void 0 : w.bg) == null ? void 0 : V.rgb) != null ? x : be, M = (ce = (He = (B = b == null ? void 0 : b.getSecondRowStyle()) == null ? void 0 : B.bg) == null ? void 0 : He.rgb) != null ? ce : be, f = (qe = (ot = (Ze = b == null ? void 0 : b.getLastRowStyle()) == null ? void 0 : Ze.bg) == null ? void 0 : ot.rgb) != null ? qe : be, [A, O] = W(null), q = (g) => {
1720
+ }), O = d.getRegisteredRangeThemes().filter((g) => g == null ? void 0 : g.startsWith(Dn)), p = d.getALLRegisteredTheme(e).filter((g) => g == null ? void 0 : g.startsWith(ut)), E = c == null ? void 0 : c.getTableStyleId(), I = p.find((g) => g === E), k = I || p[0], v = d.getCustomRangeThemeStyle(e, k), m = (Te = (_e = (Ee = v == null ? void 0 : v.getHeaderRowStyle()) == null ? void 0 : Ee.bg) == null ? void 0 : _e.rgb) != null ? Te : be, L = (x = (H = (w = v == null ? void 0 : v.getFirstRowStyle()) == null ? void 0 : w.bg) == null ? void 0 : H.rgb) != null ? x : be, M = (ce = (Ve = (B = v == null ? void 0 : v.getSecondRowStyle()) == null ? void 0 : B.bg) == null ? void 0 : Ve.rgb) != null ? ce : be, f = (qe = (ot = (Ze = v == null ? void 0 : v.getLastRowStyle()) == null ? void 0 : Ze.bg) == null ? void 0 : ot.rgb) != null ? qe : be, [V, P] = W(null), q = (g) => {
1708
1721
  i.executeCommand(vt.id, {
1709
1722
  unitId: e,
1710
1723
  tableId: n,
@@ -1721,8 +1734,8 @@ const wi = (r) => {
1721
1734
  const G = Number(g.split("-")[2]);
1722
1735
  y = `${ut}${G + 1}`;
1723
1736
  }
1724
- const z = new Rn(y, { ...jr });
1725
- i.executeCommand(Wr.id, {
1737
+ const z = new xn(y, { ...Wr });
1738
+ i.executeCommand(Zr.id, {
1726
1739
  unitId: e,
1727
1740
  tableId: n,
1728
1741
  themeStyle: z
@@ -1735,7 +1748,7 @@ const wi = (r) => {
1735
1748
  style: y
1736
1749
  });
1737
1750
  }, Se = (g) => {
1738
- i.executeCommand(Zr.id, {
1751
+ i.executeCommand(qr.id, {
1739
1752
  unitId: e,
1740
1753
  tableId: n,
1741
1754
  themeName: g
@@ -1743,61 +1756,61 @@ const wi = (r) => {
1743
1756
  };
1744
1757
  return sr(() => {
1745
1758
  C(Math.random());
1746
- }, [u, v]), c ? /* @__PURE__ */ T("div", { children: [
1759
+ }, [u, b]), c ? /* @__PURE__ */ _("div", { children: [
1747
1760
  /* @__PURE__ */ o("h5", { children: a.t("sheets-table.defaultStyle") }),
1748
- /* @__PURE__ */ o("div", { className: "univer-flex univer-gap-2", children: k.map((g) => {
1749
- var ue, de, he, Z, ye, we, Ve, Ae;
1750
- const y = h.getDefaultRangeThemeStyle(g), z = ((de = (ue = y == null ? void 0 : y.getHeaderRowStyle()) == null ? void 0 : ue.bg) == null ? void 0 : de.rgb) || be, G = ((Z = (he = y == null ? void 0 : y.getFirstRowStyle()) == null ? void 0 : he.bg) == null ? void 0 : Z.rgb) || be, ae = ((we = (ye = y == null ? void 0 : y.getSecondRowStyle()) == null ? void 0 : ye.bg) == null ? void 0 : we.rgb) || be, se = ((Ae = (Ve = y == null ? void 0 : y.getLastRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : Ae.rgb) || be;
1751
- return /* @__PURE__ */ T(
1761
+ /* @__PURE__ */ o("div", { className: "univer-flex univer-gap-2", children: O.map((g) => {
1762
+ var ue, de, he, Z, ye, we, Ae, Ue;
1763
+ const y = d.getDefaultRangeThemeStyle(g), z = ((de = (ue = y == null ? void 0 : y.getHeaderRowStyle()) == null ? void 0 : ue.bg) == null ? void 0 : de.rgb) || be, G = ((Z = (he = y == null ? void 0 : y.getFirstRowStyle()) == null ? void 0 : he.bg) == null ? void 0 : Z.rgb) || be, ae = ((we = (ye = y == null ? void 0 : y.getSecondRowStyle()) == null ? void 0 : ye.bg) == null ? void 0 : we.rgb) || be, se = ((Ue = (Ae = y == null ? void 0 : y.getLastRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb) || be;
1764
+ return /* @__PURE__ */ _(
1752
1765
  "div",
1753
1766
  {
1754
- className: "univer-h-10 univer-w-8 univer-cursor-pointer univer-p-[1px]",
1767
+ className: "univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px",
1755
1768
  onClick: () => q(g),
1756
1769
  style: {
1757
- border: g === _.theme ? Pt : $e
1770
+ border: g === T.theme ? Dt : $e
1758
1771
  },
1759
1772
  children: [
1760
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: z, border: `${Y}` } }),
1761
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: G, border: `${Y}` } }),
1762
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: ae, border: `${Y}` } }),
1763
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: se, border: `${Y}` } })
1773
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z, border: `${Y}` } }),
1774
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: G, border: `${Y}` } }),
1775
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: ae, border: `${Y}` } }),
1776
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se, border: `${Y}` } })
1764
1777
  ]
1765
1778
  },
1766
1779
  g
1767
1780
  );
1768
1781
  }) }),
1769
1782
  /* @__PURE__ */ o("h5", { children: a.t("sheets-table.customStyle") }),
1770
- /* @__PURE__ */ T("div", { className: "univer-w-full univer-rounded-sm univer-border univer-border-solid univer-border-gray-200", children: [
1771
- /* @__PURE__ */ T("div", { className: "univer-flex univer-flex-wrap univer-gap-2 univer-p-2", children: [
1783
+ /* @__PURE__ */ _("div", { className: "univer-w-full univer-rounded-sm univer-border univer-border-solid univer-border-gray-200", children: [
1784
+ /* @__PURE__ */ _("div", { className: "univer-flex univer-flex-wrap univer-gap-2 univer-p-2", children: [
1772
1785
  /* @__PURE__ */ o(
1773
1786
  "div",
1774
1787
  {
1775
1788
  className: `
1776
1789
  univer-h-10 univer-w-8 univer-cursor-pointer univer-border univer-border-solid
1777
- univer-border-gray-200 univer-p-[1px] univer-text-center univer-leading-10
1790
+ univer-border-gray-200 univer-p-px univer-text-center univer-leading-10
1778
1791
  `,
1779
1792
  onClick: D,
1780
1793
  children: "+"
1781
1794
  }
1782
1795
  ),
1783
1796
  p.map((g) => {
1784
- var ue, de, he, Z, ye, we, Ve, Ae;
1785
- const y = h.getCustomRangeThemeStyle(e, g), z = (de = (ue = y == null ? void 0 : y.getHeaderRowStyle()) == null ? void 0 : ue.bg) == null ? void 0 : de.rgb, G = (Z = (he = y == null ? void 0 : y.getFirstRowStyle()) == null ? void 0 : he.bg) == null ? void 0 : Z.rgb, ae = (we = (ye = y == null ? void 0 : y.getSecondRowStyle()) == null ? void 0 : ye.bg) == null ? void 0 : we.rgb, se = (Ae = (Ve = y == null ? void 0 : y.getLastRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : Ae.rgb;
1786
- return /* @__PURE__ */ T(
1797
+ var ue, de, he, Z, ye, we, Ae, Ue;
1798
+ const y = d.getCustomRangeThemeStyle(e, g), z = (de = (ue = y == null ? void 0 : y.getHeaderRowStyle()) == null ? void 0 : ue.bg) == null ? void 0 : de.rgb, G = (Z = (he = y == null ? void 0 : y.getFirstRowStyle()) == null ? void 0 : he.bg) == null ? void 0 : Z.rgb, ae = (we = (ye = y == null ? void 0 : y.getSecondRowStyle()) == null ? void 0 : ye.bg) == null ? void 0 : we.rgb, se = (Ue = (Ae = y == null ? void 0 : y.getLastRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb;
1799
+ return /* @__PURE__ */ _(
1787
1800
  "div",
1788
1801
  {
1789
- className: "univer-relative univer-h-10 univer-w-8 univer-cursor-pointer univer-p-[1px]",
1802
+ className: "univer-relative univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px",
1790
1803
  onClick: () => q(g),
1791
1804
  style: {
1792
- border: g === _.theme ? Pt : $e
1805
+ border: g === T.theme ? Dt : $e
1793
1806
  },
1794
- onMouseEnter: () => O(g),
1795
- onMouseLeave: () => O(null),
1807
+ onMouseEnter: () => P(g),
1808
+ onMouseLeave: () => P(null),
1796
1809
  children: [
1797
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: z != null ? z : Y, border: `${z ? Y : $e}` } }),
1798
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: G != null ? G : Y, border: `${G ? Y : $e}` } }),
1799
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: ae != null ? ae : Y, border: `${ae ? Y : $e}` } }),
1800
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-[10px]", style: { background: se != null ? se : Y, border: `${se ? Y : $e}` } }),
1810
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z != null ? z : Y, border: `${z ? Y : $e}` } }),
1811
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: G != null ? G : Y, border: `${G ? Y : $e}` } }),
1812
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: ae != null ? ae : Y, border: `${ae ? Y : $e}` } }),
1813
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : Y, border: `${se ? Y : $e}` } }),
1801
1814
  /* @__PURE__ */ o(
1802
1815
  "div",
1803
1816
  {
@@ -1806,7 +1819,7 @@ const wi = (r) => {
1806
1819
  univer-rounded-md univer-bg-gray-200 univer-text-center univer-text-xs
1807
1820
  univer-leading-[10px]
1808
1821
  `,
1809
- style: { display: A === g ? "block" : "none" },
1822
+ style: { display: V === g ? "block" : "none" },
1810
1823
  onClick: (wr) => {
1811
1824
  wr.stopPropagation(), Se(g);
1812
1825
  },
@@ -1819,10 +1832,10 @@ const wi = (r) => {
1819
1832
  );
1820
1833
  })
1821
1834
  ] }),
1822
- I && /* @__PURE__ */ T(St, { children: [
1823
- /* @__PURE__ */ o("div", { className: "univer-h-[1px] univer-w-full univer-bg-gray-200" }),
1824
- /* @__PURE__ */ T("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
1825
- /* @__PURE__ */ T("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1835
+ I && /* @__PURE__ */ _(St, { children: [
1836
+ /* @__PURE__ */ o("div", { className: "univer-h-px univer-w-full univer-bg-gray-200" }),
1837
+ /* @__PURE__ */ _("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
1838
+ /* @__PURE__ */ _("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1826
1839
  /* @__PURE__ */ o(
1827
1840
  "div",
1828
1841
  {
@@ -1838,14 +1851,14 @@ const wi = (r) => {
1838
1851
  }
1839
1852
  ),
1840
1853
  /* @__PURE__ */ o(
1841
- Ue,
1854
+ ke,
1842
1855
  {
1843
1856
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1844
1857
  Qe,
1845
1858
  {
1846
1859
  value: m,
1847
1860
  onChange: (g) => {
1848
- const y = Rt("headerRowStyle", {
1861
+ const y = xt("headerRowStyle", {
1849
1862
  bg: {
1850
1863
  rgb: g
1851
1864
  },
@@ -1857,7 +1870,7 @@ const wi = (r) => {
1857
1870
  }
1858
1871
  }
1859
1872
  ) }),
1860
- children: /* @__PURE__ */ T(
1873
+ children: /* @__PURE__ */ _(
1861
1874
  "div",
1862
1875
  {
1863
1876
  className: `
@@ -1886,7 +1899,7 @@ const wi = (r) => {
1886
1899
  }
1887
1900
  )
1888
1901
  ] }),
1889
- /* @__PURE__ */ T("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1902
+ /* @__PURE__ */ _("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1890
1903
  /* @__PURE__ */ o(
1891
1904
  "div",
1892
1905
  {
@@ -1902,7 +1915,7 @@ const wi = (r) => {
1902
1915
  }
1903
1916
  ),
1904
1917
  /* @__PURE__ */ o(
1905
- Ue,
1918
+ ke,
1906
1919
  {
1907
1920
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1908
1921
  Qe,
@@ -1922,7 +1935,7 @@ const wi = (r) => {
1922
1935
  }
1923
1936
  }
1924
1937
  ) }),
1925
- children: /* @__PURE__ */ T(
1938
+ children: /* @__PURE__ */ _(
1926
1939
  "div",
1927
1940
  {
1928
1941
  className: `
@@ -1948,7 +1961,7 @@ const wi = (r) => {
1948
1961
  }
1949
1962
  )
1950
1963
  ] }),
1951
- /* @__PURE__ */ T("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1964
+ /* @__PURE__ */ _("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1952
1965
  /* @__PURE__ */ o(
1953
1966
  "div",
1954
1967
  {
@@ -1964,7 +1977,7 @@ const wi = (r) => {
1964
1977
  }
1965
1978
  ),
1966
1979
  /* @__PURE__ */ o(
1967
- Ue,
1980
+ ke,
1968
1981
  {
1969
1982
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1970
1983
  Qe,
@@ -1982,7 +1995,7 @@ const wi = (r) => {
1982
1995
  })
1983
1996
  }
1984
1997
  ) }),
1985
- children: /* @__PURE__ */ T(
1998
+ children: /* @__PURE__ */ _(
1986
1999
  "div",
1987
2000
  {
1988
2001
  className: `
@@ -2008,7 +2021,7 @@ const wi = (r) => {
2008
2021
  }
2009
2022
  )
2010
2023
  ] }),
2011
- /* @__PURE__ */ T("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
2024
+ /* @__PURE__ */ _("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
2012
2025
  /* @__PURE__ */ o(
2013
2026
  "div",
2014
2027
  {
@@ -2024,14 +2037,14 @@ const wi = (r) => {
2024
2037
  }
2025
2038
  ),
2026
2039
  /* @__PURE__ */ o(
2027
- Ue,
2040
+ ke,
2028
2041
  {
2029
2042
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
2030
2043
  Qe,
2031
2044
  {
2032
2045
  value: f,
2033
2046
  onChange: (g) => {
2034
- const y = Rt("lastRowStyle", {
2047
+ const y = xt("lastRowStyle", {
2035
2048
  bg: {
2036
2049
  rgb: g
2037
2050
  },
@@ -2043,7 +2056,7 @@ const wi = (r) => {
2043
2056
  }
2044
2057
  }
2045
2058
  ) }),
2046
- children: /* @__PURE__ */ T(
2059
+ children: /* @__PURE__ */ _(
2047
2060
  "div",
2048
2061
  {
2049
2062
  className: `
@@ -2073,159 +2086,159 @@ const wi = (r) => {
2073
2086
  ] })
2074
2087
  ] })
2075
2088
  ] }) : null;
2076
- }, Sr = "sheet.table.context-insert_menu-id", _r = "sheet.table.context-remove_menu-id";
2077
- function Mi(r) {
2089
+ }, Cr = "sheet.table.context-insert_menu-id", Sr = "sheet.table.context-remove_menu-id";
2090
+ function Ri(r) {
2078
2091
  return {
2079
- id: yt.id,
2092
+ id: wt.id,
2080
2093
  type: Ne.BUTTON,
2081
2094
  icon: lr,
2082
2095
  tooltip: "sheets-table.title",
2083
2096
  title: "sheets-table.title"
2084
2097
  };
2085
2098
  }
2086
- function Ri(r) {
2099
+ function xi(r) {
2087
2100
  return {
2088
- id: Sr,
2101
+ id: Cr,
2089
2102
  type: Ne.SUBITEMS,
2090
2103
  icon: "Insert",
2091
2104
  title: "sheets-table.insert.main",
2092
- hidden$: Tr(r)
2105
+ hidden$: _r(r)
2093
2106
  };
2094
2107
  }
2095
- function xi(r) {
2108
+ function Ni(r) {
2096
2109
  return {
2097
- id: _r,
2110
+ id: Sr,
2098
2111
  type: Ne.SUBITEMS,
2099
2112
  icon: "Reduce",
2100
2113
  title: "sheets-table.remove.main",
2101
- hidden$: Tr(r)
2114
+ hidden$: _r(r)
2102
2115
  };
2103
2116
  }
2104
- function Ni(r) {
2117
+ function Ei(r) {
2105
2118
  return {
2106
2119
  id: zt.id,
2107
2120
  type: Ne.BUTTON,
2108
2121
  title: "sheets-table.insert.row",
2109
- hidden$: yr(r)
2122
+ hidden$: Tr(r)
2110
2123
  };
2111
2124
  }
2112
- function Ei(r) {
2125
+ function Li(r) {
2113
2126
  return {
2114
2127
  id: Qt.id,
2115
2128
  title: "sheets-table.insert.col",
2116
2129
  type: Ne.BUTTON
2117
2130
  };
2118
2131
  }
2119
- function Li(r) {
2132
+ function $i(r) {
2120
2133
  return {
2121
2134
  id: Yt.id,
2122
2135
  type: Ne.BUTTON,
2123
2136
  title: "sheets-table.remove.row",
2124
- hidden$: yr(r)
2137
+ hidden$: Tr(r)
2125
2138
  };
2126
2139
  }
2127
- function $i(r) {
2140
+ function Oi(r) {
2128
2141
  return {
2129
2142
  id: qt.id,
2130
2143
  title: "sheets-table.remove.col",
2131
2144
  type: Ne.BUTTON
2132
2145
  };
2133
2146
  }
2134
- function Tr(r) {
2147
+ function _r(r) {
2135
2148
  const e = r.get(lt);
2136
- return r.get(Ce).getCurrentTypeOfUnit$(tt.UNIVER_SHEET).pipe(
2149
+ return r.get(Ce).getCurrentTypeOfUnit$(it.UNIVER_SHEET).pipe(
2137
2150
  Re((i) => i ? i.activeSheet$.pipe(
2138
2151
  Re((a) => a ? e.selectionMoveEnd$.pipe(
2139
2152
  Re((s) => {
2140
2153
  if (!s.length || s.length > 1) return X(!0);
2141
- const h = s[0].range, u = r.get(Gt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), h);
2154
+ const d = s[0].range, u = r.get(Gt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2142
2155
  return X(!u);
2143
2156
  })
2144
2157
  ) : X(!0))
2145
2158
  ) : X(!0))
2146
2159
  );
2147
2160
  }
2148
- function yr(r) {
2161
+ function Tr(r) {
2149
2162
  const e = r.get(lt);
2150
- return r.get(Ce).getCurrentTypeOfUnit$(tt.UNIVER_SHEET).pipe(
2163
+ return r.get(Ce).getCurrentTypeOfUnit$(it.UNIVER_SHEET).pipe(
2151
2164
  Re((i) => i ? i.activeSheet$.pipe(
2152
2165
  Re((a) => a ? e.selectionMoveEnd$.pipe(
2153
2166
  Re((s) => {
2154
2167
  if (!s.length || s.length > 1) return X(!0);
2155
- const h = s[0].range, u = r.get(Gt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), h);
2168
+ const d = s[0].range, u = r.get(Gt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2156
2169
  if (!u)
2157
2170
  return X(!0);
2158
- const v = u.getRange();
2159
- return h.startRow === v.startRow ? X(!0) : X(!1);
2171
+ const b = u.getRange();
2172
+ return d.startRow === b.startRow ? X(!0) : X(!1);
2160
2173
  })
2161
2174
  ) : X(!0))
2162
2175
  ) : X(!0))
2163
2176
  );
2164
2177
  }
2165
- const ki = {
2166
- [ln.FORMULAS_VIEW]: {
2167
- [yt.id]: {
2178
+ const Pi = {
2179
+ [cn.FORMULAS_VIEW]: {
2180
+ [wt.id]: {
2168
2181
  order: 0,
2169
- menuItemFactory: Mi
2182
+ menuItemFactory: Ri
2170
2183
  }
2171
2184
  },
2172
- [an.MAIN_AREA]: {
2173
- [sn.LAYOUT]: {
2174
- [Sr]: {
2185
+ [ln.MAIN_AREA]: {
2186
+ [on.LAYOUT]: {
2187
+ [Cr]: {
2175
2188
  order: 5,
2176
- menuItemFactory: Ri,
2189
+ menuItemFactory: xi,
2177
2190
  [zt.id]: {
2178
2191
  order: 1,
2179
- menuItemFactory: Ni
2192
+ menuItemFactory: Ei
2180
2193
  },
2181
2194
  [Qt.id]: {
2182
2195
  order: 2,
2183
- menuItemFactory: Ei
2196
+ menuItemFactory: Li
2184
2197
  }
2185
2198
  },
2186
- [_r]: {
2199
+ [Sr]: {
2187
2200
  order: 6,
2188
- menuItemFactory: xi,
2201
+ menuItemFactory: Ni,
2189
2202
  [Yt.id]: {
2190
2203
  order: 1,
2191
- menuItemFactory: Li
2204
+ menuItemFactory: $i
2192
2205
  },
2193
2206
  [qt.id]: {
2194
2207
  order: 2,
2195
- menuItemFactory: $i
2208
+ menuItemFactory: Oi
2196
2209
  }
2197
2210
  }
2198
2211
  }
2199
2212
  }
2200
2213
  };
2201
- var Oi = Object.getOwnPropertyDescriptor, Pi = (r, e, t, n) => {
2202
- for (var i = n > 1 ? void 0 : n ? Oi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2214
+ var ki = Object.getOwnPropertyDescriptor, Di = (r, e, t, n) => {
2215
+ for (var i = n > 1 ? void 0 : n ? ki(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2203
2216
  (s = r[a]) && (i = s(i) || i);
2204
2217
  return i;
2205
- }, Bt = (r, e) => (t, n) => e(t, n, r);
2206
- let nt = class extends Be {
2218
+ }, Ft = (r, e) => (t, n) => e(t, n, r);
2219
+ let tt = class extends Fe {
2207
2220
  constructor(r, e) {
2208
2221
  super(), this._componentManager = r, this._menuManagerService = e, this._initComponents(), this._initMenu();
2209
2222
  }
2210
2223
  _initComponents() {
2211
2224
  [
2212
- [lr, pr],
2213
- [Oe, wi],
2214
- [or, Ii]
2225
+ [lr, mr],
2226
+ [Pe, Ii],
2227
+ [or, Mi]
2215
2228
  ].forEach(([r, e]) => {
2216
2229
  this.disposeWithMe(this._componentManager.register(r, e));
2217
2230
  });
2218
2231
  }
2219
2232
  _initMenu() {
2220
- this._menuManagerService.mergeMenu(ki);
2233
+ this._menuManagerService.mergeMenu(Pi);
2221
2234
  }
2222
2235
  };
2223
- nt = Pi([
2224
- Bt(0, N(Xt)),
2225
- Bt(1, N(on))
2226
- ], nt);
2227
- var Di = Object.getOwnPropertyDescriptor, Bi = (r, e, t, n) => {
2228
- for (var i = n > 1 ? void 0 : n ? Di(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2236
+ tt = Di([
2237
+ Ft(0, N(Xt)),
2238
+ Ft(1, N(un))
2239
+ ], tt);
2240
+ var Bi = Object.getOwnPropertyDescriptor, Fi = (r, e, t, n) => {
2241
+ for (var i = n > 1 ? void 0 : n ? Bi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2229
2242
  (s = r[a]) && (i = s(i) || i);
2230
2243
  return i;
2231
2244
  }, Ke = (r, e) => (t, n) => e(t, n, r);
@@ -2260,18 +2273,18 @@ let pt = class extends Wt {
2260
2273
  );
2261
2274
  }
2262
2275
  };
2263
- pt = Bi([
2264
- Ke(1, N(Fe)),
2276
+ pt = Fi([
2277
+ Ke(1, N(He)),
2265
2278
  Ke(2, N(at)),
2266
2279
  Ke(3, N(te)),
2267
2280
  Ke(4, N(xe))
2268
2281
  ], pt);
2269
- var Fi = Object.getOwnPropertyDescriptor, Hi = (r, e, t, n) => {
2270
- for (var i = n > 1 ? void 0 : n ? Fi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2282
+ var Hi = Object.getOwnPropertyDescriptor, Vi = (r, e, t, n) => {
2283
+ for (var i = n > 1 ? void 0 : n ? Hi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2271
2284
  (s = r[a]) && (i = s(i) || i);
2272
2285
  return i;
2273
2286
  }, ht = (r, e) => (t, n) => e(t, n, r);
2274
- let it = class extends Be {
2287
+ let rt = class extends Fe {
2275
2288
  constructor(r, e, t) {
2276
2289
  super(), this._sheetInterceptorService = r, this._univerInstanceService = e, this._tableManager = t, this._initSelectionChange();
2277
2290
  }
@@ -2279,31 +2292,31 @@ let it = class extends Be {
2279
2292
  this.disposeWithMe(
2280
2293
  this._sheetInterceptorService.interceptCommand({
2281
2294
  getMutations: (r) => {
2282
- if (r.id === Jr.id) {
2295
+ if (r.id === tn.id) {
2283
2296
  const e = st(this._univerInstanceService);
2284
2297
  if (!e)
2285
2298
  return { redos: [], undos: [] };
2286
- const t = r.params, { range: n } = t, { unitId: i, subUnitId: a, worksheet: s } = e, h = this._tableManager.getTablesBySubunitId(i, a).find((d) => {
2287
- const u = d.getRange();
2299
+ const t = r.params, { range: n } = t, { unitId: i, subUnitId: a, worksheet: s } = e, d = this._tableManager.getTablesBySubunitId(i, a).find((h) => {
2300
+ const u = h.getRange();
2288
2301
  return pe.contains(u, n);
2289
2302
  });
2290
- if (h) {
2291
- const d = h.getRange(), u = {
2292
- ...d,
2293
- startRow: d.startRow + 1
2303
+ if (d) {
2304
+ const h = d.getRange(), u = {
2305
+ ...h,
2306
+ startRow: h.startRow + 1
2294
2307
  };
2295
- return pe.equals(d, n) ? { undos: [], redos: [] } : pe.equals(u, n) ? {
2308
+ return pe.equals(h, n) ? { undos: [], redos: [] } : pe.equals(u, n) ? {
2296
2309
  undos: [],
2297
2310
  redos: [
2298
2311
  {
2299
- id: Lt.id,
2312
+ id: $t.id,
2300
2313
  params: {
2301
2314
  unitId: i,
2302
2315
  subUnitId: a,
2303
2316
  selections: [
2304
2317
  {
2305
- range: d,
2306
- primary: Et(d, s)
2318
+ range: h,
2319
+ primary: Lt(h, s)
2307
2320
  }
2308
2321
  ]
2309
2322
  }
@@ -2313,14 +2326,14 @@ let it = class extends Be {
2313
2326
  undos: [],
2314
2327
  redos: [
2315
2328
  {
2316
- id: Lt.id,
2329
+ id: $t.id,
2317
2330
  params: {
2318
2331
  unitId: i,
2319
2332
  subUnitId: a,
2320
2333
  selections: [
2321
2334
  {
2322
2335
  range: u,
2323
- primary: Et(u, s)
2336
+ primary: Lt(u, s)
2324
2337
  }
2325
2338
  ]
2326
2339
  }
@@ -2335,36 +2348,36 @@ let it = class extends Be {
2335
2348
  );
2336
2349
  }
2337
2350
  };
2338
- it = Hi([
2351
+ rt = Vi([
2339
2352
  ht(0, N(ir)),
2340
2353
  ht(1, N(Ce)),
2341
2354
  ht(2, N(te))
2342
- ], it);
2343
- var Vi = Object.getOwnPropertyDescriptor, Ai = (r, e, t, n) => {
2344
- for (var i = n > 1 ? void 0 : n ? Vi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2355
+ ], rt);
2356
+ var Ai = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, ji = (r, e, t) => e in r ? Ai(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Wi = (r, e, t, n) => {
2357
+ for (var i = n > 1 ? void 0 : n ? Ui(e, t) : e, a = r.length - 1, s; a >= 0; a--)
2345
2358
  (s = r[a]) && (i = s(i) || i);
2346
2359
  return i;
2347
- }, Je = (r, e) => (t, n) => e(t, n, r), et;
2348
- let Ft = (et = class extends Er {
2360
+ }, Je = (r, e) => (t, n) => e(t, n, r), yr = (r, e, t) => ji(r, typeof e != "symbol" ? e + "" : e, t);
2361
+ let nt = class extends Lr {
2349
2362
  constructor(r = {}, e, t, n, i) {
2350
- super(), this._config = r, this._injector = e, this._commandService = t, this._configService = n, this._renderManagerService = i, this._initRegisterCommand(), this._configService.setConfig(Cr, this._config);
2363
+ super(), this._config = r, this._injector = e, this._commandService = t, this._configService = n, this._renderManagerService = i, this._initRegisterCommand(), this._configService.setConfig(fr, this._config);
2351
2364
  }
2352
2365
  onStarting() {
2353
- Lr(this._injector, [
2366
+ $r(this._injector, [
2367
+ [Be],
2354
2368
  [De],
2355
- [Pe],
2356
- [nt],
2369
+ [tt],
2357
2370
  [xe],
2358
- [it]
2371
+ [rt]
2359
2372
  ]);
2360
2373
  }
2361
2374
  onReady() {
2362
- $r(this._injector, [
2375
+ Or(this._injector, [
2376
+ [Be],
2363
2377
  [De],
2364
- [Pe],
2365
- [nt],
2378
+ [tt],
2366
2379
  [xe],
2367
- [it]
2380
+ [rt]
2368
2381
  ]);
2369
2382
  }
2370
2383
  onRendered() {
@@ -2375,23 +2388,26 @@ let Ft = (et = class extends Er {
2375
2388
  [mt],
2376
2389
  [pt]
2377
2390
  ];
2378
- this._config.hideAnchor !== !0 && r.push([rt]), r.forEach((e) => {
2379
- this.disposeWithMe(this._renderManagerService.registerRenderModule(tt.UNIVER_SHEET, e));
2391
+ this._config.hideAnchor !== !0 && r.push([et]), r.forEach((e) => {
2392
+ this.disposeWithMe(this._renderManagerService.registerRenderModule(it.UNIVER_SHEET, e));
2380
2393
  });
2381
2394
  }
2382
2395
  _initRegisterCommand() {
2383
2396
  [
2384
2397
  bt,
2385
- yt
2398
+ wt
2386
2399
  ].forEach((r) => this._commandService.registerCommand(r));
2387
2400
  }
2388
- }, F(et, "pluginName", $n), F(et, "type", tt.UNIVER_SHEET), et);
2389
- Ft = Ai([
2390
- Je(1, N(Fe)),
2401
+ };
2402
+ yr(nt, "pluginName", On);
2403
+ yr(nt, "type", it.UNIVER_SHEET);
2404
+ nt = Wi([
2405
+ Er(Yr),
2406
+ Je(1, N(He)),
2391
2407
  Je(2, N(ee)),
2392
2408
  Je(3, Ut),
2393
2409
  Je(4, Zt)
2394
- ], Ft);
2410
+ ], nt);
2395
2411
  export {
2396
- Ft as UniverSheetTableUIPlugin
2412
+ nt as UniverSheetTableUIPlugin
2397
2413
  };