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

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,167 +1,167 @@
1
- var Ir = Object.defineProperty;
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 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
- var Q = function() {
19
- return Q = Object.assign || function(r) {
20
- for (var e, t = 1, n = arguments.length; t < n; t++) {
1
+ var Rn = Object.defineProperty;
2
+ var Nn = (n, e, t) => e in n ? Rn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var j = (n, e, t) => Nn(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { Inject as x, IUniverInstanceService as _e, ICommandService as ce, Disposable as He, ObjectMatrix as xn, cellToRange as At, Rectangle as Ce, LocaleService as ue, Injector as Ve, dayjs as be, IPermissionService as Ut, IContextService as St, CommandType as jt, IConfigService as Wt, ThemeService as En, RxDisposable as Zt, InterceptorEffectEnum as Ln, ErrorService as $n, ColorKit as oe, UniverInstanceType as st, DependentOn as On, Plugin as Pn, registerDependencies as kn, touchDependencies as Dn } from "@univerjs/core";
5
+ import { IRenderManagerService as qt, SHEET_VIEWPORT_KEY as Bn, convertTransformToOffsetX as Fn, convertTransformToOffsetY as Hn, Rect as Rt, Shape as Vn } from "@univerjs/engine-render";
6
+ import { TableManager as ne, SheetTableService as An, SetSheetTableFilterCommand as Nt, isConditionFilter as Un, isManualFilter as jn, TableDateCompareTypeEnum as s, TableStringCompareTypeEnum as W, TableConditionTypeEnum as V, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Qe, TableColumnFilterTypeEnum as xt, AddSheetTableCommand as Wn, SHEET_TABLE_CUSTOM_THEME_PREFIX as Zn, DeleteSheetTableCommand as qn, SetSheetTableCommand as bt, SheetsTableButtonStateEnum as $e, processStyleWithBorderStyle as Et, customEmptyThemeWithBorderStyle as Yn, AddTableThemeCommand as Qn, RemoveTableThemeCommand as zn, SheetTableRemoveColCommand as Yt, SheetTableRemoveRowCommand as Qt, SheetTableInsertColCommand as zt, SheetTableInsertRowCommand as Gt, SheetsTableController as Xt, UniverSheetTablePlugin as Gn } from "@univerjs/sheets-table";
7
+ import { SheetCanvasPopManagerService as Xn, SheetSkeletonManagerService as lt, SheetScrollManagerService as Kn, SetZoomRatioOperation as Jn, SetScrollOperation as er, getSheetObject as tr, getCoordByCell as nr, SelectAllCommand as rr } from "@univerjs/sheets-ui";
8
+ import { useDependency as R, ComponentManager as Kt, IDialogService as Jt, ISidebarService as ir, useObservable as Re, IUIPartsService as ar, BuiltInUIPart as sr, connectInjector as lr, MenuItemType as Ee, ContextMenuPosition as or, ContextMenuGroup as cr, RibbonStartGroup as ur, IMenuManagerService as dr } from "@univerjs/ui";
9
+ import { startWith as en, distinctUntilChanged as hr, Subject as vr, BehaviorSubject as Lt, merge as _t, filter as gr, debounceTime as br, switchMap as Ne, of as J, map as mr, takeUntil as pr } from "rxjs";
10
+ import { jsxs as _, jsx as o, Fragment as Tt } from "react/jsx-runtime";
11
+ import { Dropdown as De, clsx as k, borderClassName as H, CascaderList as fr, Input as wt, InputNumber as dt, DatePicker as Cr, DateRangePicker as Sr, Select as _r, Checkbox as $t, scrollbarClassName as Tr, Segmented as wr, Button as Ze, ColorPicker as ze } from "@univerjs/design";
12
+ import { SetRangeValuesMutation as Ir, WorkbookEditablePermission as tn, getSheetCommandTarget as ot, SheetsSelectionsService as ct, isSingleCellSelection as yr, expandToContinuousRange as Mr, SetRangeThemeMutation as nn, WorkbookPermissionService as rn, SheetRangeThemeModel as an, SheetInterceptorService as sn, INTERCEPTOR_POINT as Rr, RangeThemeStyle as Nr, getPrimaryForRange as Ot, SetSelectionsOperation as Pt } from "@univerjs/sheets";
13
+ import { SortRangeCommand as xr, SortType as kt } from "@univerjs/sheets-sort";
14
+ import { forwardRef as re, useRef as Er, createElement as ie, useState as q, useMemo as ln, useCallback as Dt, useEffect as on } from "react";
15
+ import { serializeRange as Bt, deserializeRangeWithSheet as Lr } from "@univerjs/engine-formula";
16
+ import { RangeSelector as $r } from "@univerjs/sheets-formula-ui";
17
+ const Or = "SHEET_TABLE_UI_PLUGIN", pe = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Pr = "UNIVER_SHEET_Table_FILTER_PANEL_ID", cn = "TABLE_TOOLBAR_BUTTON", ke = "TABLE_SELECTOR_DIALOG", kr = "SHEET_TABLE_THEME_PANEL_ID", un = "SHEET_TABLE_THEME_PANEL", ht = "table-custom-", Dr = "table-default-", me = "rgb(255, 255, 255)", z = "none", Oe = "1px solid rgb(var(--grey-200))", Ft = "1px solid rgb(var(--blue-500))";
18
+ var G = function() {
19
+ return G = Object.assign || function(n) {
20
+ for (var e, t = 1, r = arguments.length; t < r; t++) {
21
21
  e = arguments[t];
22
- for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
22
+ for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
23
23
  }
24
- return r;
25
- }, Q.apply(this, arguments);
26
- }, Bn = function(r, e) {
24
+ return n;
25
+ }, G.apply(this, arguments);
26
+ }, Br = function(n, e) {
27
27
  var t = {};
28
- for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]);
29
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
30
- for (var i = 0, n = Object.getOwnPropertySymbols(r); i < n.length; i++)
31
- e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]);
28
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
29
+ if (n != null && typeof Object.getOwnPropertySymbols == "function")
30
+ for (var i = 0, r = Object.getOwnPropertySymbols(n); i < r.length; i++)
31
+ e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[i]) && (t[r[i]] = n[r[i]]);
32
32
  return t;
33
- }, ie = re(function(r, e) {
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);
33
+ }, ae = re(function(n, e) {
34
+ var t = n.icon, r = n.id, i = n.className, a = n.extend, l = Br(n, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), d = Er("_".concat(Vr()));
35
+ return dn(t, "".concat(r), { defIds: t.defIds, idSuffix: d.current }, G({ ref: e, className: c }, l), a);
36
36
  });
37
- function cr(r, e, t, n, i) {
38
- return ne(r.tag, Q(Q({ key: e }, Fn(r, t, i)), n), (Hn(r, t).children || []).map(function(a, s) {
39
- return cr(a, "".concat(e, "-").concat(r.tag, "-").concat(s), t, void 0, i);
37
+ function dn(n, e, t, r, i) {
38
+ return ie(n.tag, G(G({ key: e }, Fr(n, t, i)), r), (Hr(n, t).children || []).map(function(a, l) {
39
+ return dn(a, "".concat(e, "-").concat(n.tag, "-").concat(l), t, void 0, i);
40
40
  }));
41
41
  }
42
- function Fn(r, e, t) {
43
- var n = Q({}, r.attrs);
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
- var s = a[0], c = a[1];
46
- s === "mask" && typeof c == "string" && (n[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
42
+ function Fr(n, e, t) {
43
+ var r = G({}, n.attrs);
44
+ t != null && t.colorChannel1 && r.fill === "colorChannel1" && (r.fill = t.colorChannel1), n.tag === "mask" && r.id && (r.id = r.id + e.idSuffix), Object.entries(r).forEach(function(a) {
45
+ var l = a[0], c = a[1];
46
+ l === "mask" && typeof c == "string" && (r[l] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
47
47
  });
48
48
  var i = e.defIds;
49
- return !i || i.length === 0 || (r.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + e.idSuffix), Object.entries(n).forEach(function(a) {
50
- var s = a[0], c = a[1];
51
- typeof c == "string" && (n[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
52
- })), n;
49
+ return !i || i.length === 0 || (n.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + e.idSuffix), Object.entries(r).forEach(function(a) {
50
+ var l = a[0], c = a[1];
51
+ typeof c == "string" && (r[l] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
52
+ })), r;
53
53
  }
54
- function Hn(r, e) {
55
- var t, n = e.defIds;
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
- 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
- }) }) : r;
54
+ function Hr(n, e) {
55
+ var t, r = e.defIds;
56
+ return !r || r.length === 0 ? n : n.tag === "defs" && (!((t = n.children) === null || t === void 0) && t.length) ? G(G({}, n), { children: n.children.map(function(i) {
57
+ return typeof i.attrs.id == "string" && r && r.indexOf(i.attrs.id) > -1 ? G(G({}, i), { attrs: G(G({}, i.attrs), { id: i.attrs.id + e.idSuffix }) }) : i;
58
+ }) }) : n;
59
59
  }
60
- function Vn() {
60
+ function Vr() {
61
61
  return Math.random().toString(36).substring(2, 8);
62
62
  }
63
- ie.displayName = "UniverIcon";
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
- return ne(ie, Object.assign({}, r, {
63
+ ae.displayName = "UniverIcon";
64
+ var Ar = { 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" } }] }, hn = re(function(n, e) {
65
+ return ie(ae, Object.assign({}, n, {
66
66
  id: "ascending- single",
67
67
  ref: e,
68
- icon: An
68
+ icon: Ar
69
69
  }));
70
70
  });
71
- ur.displayName = "AscendingSingle";
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
- return ne(ie, Object.assign({}, r, {
71
+ hn.displayName = "AscendingSingle";
72
+ var Ur = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, vn = re(function(n, e) {
73
+ return ie(ae, Object.assign({}, n, {
74
74
  id: "delete-single",
75
75
  ref: e,
76
- icon: Un
76
+ icon: Ur
77
77
  }));
78
78
  });
79
- dr.displayName = "DeleteSingle";
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
- return ne(ie, Object.assign({}, r, {
79
+ vn.displayName = "DeleteSingle";
80
+ var jr = { 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" } }] }, gn = re(function(n, e) {
81
+ return ie(ae, Object.assign({}, n, {
82
82
  id: "descending-single",
83
83
  ref: e,
84
- icon: jn
84
+ icon: jr
85
85
  }));
86
86
  });
87
- hr.displayName = "DescendingSingle";
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
- return ne(ie, Object.assign({}, r, {
87
+ gn.displayName = "DescendingSingle";
88
+ var Wr = { 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" } }] }, We = re(function(n, e) {
89
+ return ie(ae, Object.assign({}, n, {
90
90
  id: "dropdown-single",
91
91
  ref: e,
92
- icon: Wn
92
+ icon: Wr
93
93
  }));
94
94
  });
95
- je.displayName = "DropdownSingle";
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
- return ne(ie, Object.assign({}, r, {
95
+ We.displayName = "DropdownSingle";
96
+ var Zr = { 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" } }] }, bn = re(function(n, e) {
97
+ return ie(ae, Object.assign({}, n, {
98
98
  id: "grid-outline-single",
99
99
  ref: e,
100
- icon: Zn
100
+ icon: Zr
101
101
  }));
102
102
  });
103
- vr.displayName = "GridOutlineSingle";
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
- return ne(ie, Object.assign({}, r, {
103
+ bn.displayName = "GridOutlineSingle";
104
+ var qr = { 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" } }] }, It = re(function(n, e) {
105
+ return ie(ae, Object.assign({}, n, {
106
106
  id: "more-down-single",
107
107
  ref: e,
108
- icon: qn
108
+ icon: qr
109
109
  }));
110
110
  });
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
- return ne(ie, Object.assign({}, r, {
111
+ It.displayName = "MoreDownSingle";
112
+ var Yr = { 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" } }] }, mn = re(function(n, e) {
113
+ return ie(ae, Object.assign({}, n, {
114
114
  id: "paint-bucket",
115
115
  ref: e,
116
- icon: Yn
116
+ icon: Yr
117
117
  }));
118
118
  });
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
- return ne(ie, Object.assign({}, r, {
119
+ mn.displayName = "PaintBucket";
120
+ var Qr = { 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" } }] }, pn = re(function(n, e) {
121
+ return ie(ae, Object.assign({}, n, {
122
122
  id: "rename-single",
123
123
  ref: e,
124
- icon: Qn
124
+ icon: Qr
125
125
  }));
126
126
  });
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
- return ne(ie, Object.assign({}, r, {
127
+ pn.displayName = "RenameSingle";
128
+ var zr = { 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" } }] }, fn = re(function(n, e) {
129
+ return ie(ae, Object.assign({}, n, {
130
130
  id: "table-single",
131
131
  ref: e,
132
- icon: zn
132
+ icon: zr
133
133
  }));
134
134
  });
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
- (s = r[a]) && (i = s(i) || i);
135
+ fn.displayName = "TableSingle";
136
+ var Se = /* @__PURE__ */ ((n) => (n.Items = "items", n.Condition = "condition", n))(Se || {}), Gr = Object.getOwnPropertyDescriptor, Xr = (n, e, t, r) => {
137
+ for (var i = r > 1 ? void 0 : r ? Gr(e, t) : e, a = n.length - 1, l; a >= 0; a--)
138
+ (l = n[a]) && (i = l(i) || i);
139
139
  return i;
140
- }, ze = (r, e) => (t, n) => e(t, n, r);
141
- let De = class extends Fe {
142
- constructor(e, t, n, i) {
140
+ }, Ge = (n, e) => (t, r) => e(t, r, n);
141
+ let Be = class extends He {
142
+ constructor(e, t, r, i) {
143
143
  super();
144
- A(this, "_itemsCache", /* @__PURE__ */ new Map());
145
- this._tableManager = e, this._sheetTableService = t, this._univerInstanceService = n, this._commandService = i, this._registerTableFilterChangeEvent();
144
+ j(this, "_itemsCache", /* @__PURE__ */ new Map());
145
+ this._tableManager = e, this._sheetTableService = t, this._univerInstanceService = r, this._commandService = i, this._registerTableFilterChangeEvent();
146
146
  }
147
147
  _registerTableFilterChangeEvent() {
148
148
  this._commandService.onCommandExecuted((e) => {
149
- if (e.id === wn.id) {
150
- const { unitId: t, subUnitId: n, cellValue: i } = e.params, a = this._tableManager.getTablesBySubunitId(t, n);
149
+ if (e.id === Ir.id) {
150
+ const { unitId: t, subUnitId: r, cellValue: i } = e.params, a = this._tableManager.getTablesBySubunitId(t, r);
151
151
  if (!a.length)
152
152
  return;
153
- new Rr(i).forValue((c, d, h) => {
154
- const u = Ht(c, d), b = a.find((S) => {
153
+ new xn(i).forValue((c, d, h) => {
154
+ const u = At(c, d), g = a.find((S) => {
155
155
  const C = S.getTableFilterRange();
156
- return pe.intersects(C, u);
156
+ return Ce.intersects(C, u);
157
157
  });
158
- if (b) {
159
- const S = d - b.getRange().startColumn;
160
- this._itemsCache.delete(b.getId() + S);
158
+ if (g) {
159
+ const S = d - g.getRange().startColumn;
160
+ this._itemsCache.delete(g.getId() + S);
161
161
  }
162
162
  });
163
- } else if (e.id === Mt.id) {
164
- const { unitId: t, tableId: n } = e.params, i = this._tableManager.getTable(t, n);
163
+ } else if (e.id === Nt.id) {
164
+ const { unitId: t, tableId: r } = e.params, i = this._tableManager.getTable(t, r);
165
165
  if (!i)
166
166
  return;
167
167
  const a = i.getSubunitId();
@@ -173,104 +173,104 @@ let De = class extends Fe {
173
173
  }
174
174
  });
175
175
  }
176
- getTableFilterPanelInitProps(e, t, n, i) {
177
- const a = this._tableManager.getTable(e, n), s = a.getRange(), c = a.getTableFilterColumn(i - s.startColumn);
176
+ getTableFilterPanelInitProps(e, t, r, i) {
177
+ const a = this._tableManager.getTable(e, r), l = a.getRange(), c = a.getTableFilterColumn(i - l.startColumn);
178
178
  return {
179
179
  unitId: e,
180
180
  subUnitId: t,
181
181
  tableFilter: c,
182
- currentFilterBy: Hr(c) ? fe.Condition : fe.Items,
183
- tableId: n,
184
- columnIndex: i - s.startColumn
182
+ currentFilterBy: Un(c) ? Se.Condition : Se.Items,
183
+ tableId: r,
184
+ columnIndex: i - l.startColumn
185
185
  };
186
186
  }
187
- getTableFilterCheckedItems(e, t, n) {
187
+ getTableFilterCheckedItems(e, t, r) {
188
188
  const i = this._tableManager.getTable(e, t), a = [];
189
189
  if (i) {
190
- const s = i.getTableFilterColumn(n);
191
- s && Vr(s) && a.push(...s.values);
190
+ const l = i.getTableFilterColumn(r);
191
+ l && jn(l) && a.push(...l.values);
192
192
  }
193
193
  return a;
194
194
  }
195
- setTableFilter(e, t, n, i) {
195
+ setTableFilter(e, t, r, i) {
196
196
  if (!this._tableManager.getTable(e, t))
197
197
  return;
198
- const s = {
198
+ const l = {
199
199
  unitId: e,
200
200
  tableId: t,
201
- column: n,
201
+ column: r,
202
202
  tableFilter: i
203
203
  };
204
- this._commandService.executeCommand(Mt.id, s);
204
+ this._commandService.executeCommand(Nt.id, l);
205
205
  }
206
- getTableFilterItems(e, t, n, i) {
206
+ getTableFilterItems(e, t, r, i) {
207
207
  var O;
208
- if (this._itemsCache.has(n + i))
209
- return this._itemsCache.get(n + i) || { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
210
- const a = this._tableManager.getTable(e, n);
208
+ if (this._itemsCache.has(r + i))
209
+ return this._itemsCache.get(r + i) || { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
210
+ const a = this._tableManager.getTable(e, r);
211
211
  if (!a)
212
212
  return { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
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)
213
+ const l = a.getTableFilterRange(), { startRow: c, endRow: d, startColumn: h } = l, u = h + i, g = (O = this._univerInstanceService.getUnit(e)) == null ? void 0 : O.getSheetBySheetId(t);
214
+ if (!g)
215
215
  return { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
216
216
  const S = [], C = /* @__PURE__ */ new Map();
217
217
  let T = 0;
218
218
  for (let p = c; p <= d; p++) {
219
- if (b.isRowFiltered(p))
219
+ if (g.isRowFiltered(p))
220
220
  continue;
221
- const I = this._sheetTableService.getCellValueWithConditionType(b, p, u);
222
- C.has(I) || S.push({
223
- title: I,
221
+ const y = this._sheetTableService.getCellValueWithConditionType(g, p, u);
222
+ C.has(y) || S.push({
223
+ title: y,
224
224
  key: `${u}_${p}`,
225
225
  leaf: !0
226
- }), T++, C.set(I, (C.get(I) || 0) + 1);
226
+ }), T++, C.set(y, (C.get(y) || 0) + 1);
227
227
  }
228
- return this._itemsCache.set(n + i, { data: S, itemsCountMap: C, allItemsCount: T }), { data: S, itemsCountMap: C, allItemsCount: T };
228
+ return this._itemsCache.set(r + i, { data: S, itemsCountMap: C, allItemsCount: T }), { data: S, itemsCountMap: C, allItemsCount: T };
229
229
  }
230
230
  };
231
- De = Xn([
232
- ze(0, N(te)),
233
- ze(1, N(Fr)),
234
- ze(2, N(Ce)),
235
- ze(3, ee)
236
- ], De);
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 Kn(r) {
239
- const t = r.get(oe).t;
231
+ Be = Xr([
232
+ Ge(0, x(ne)),
233
+ Ge(1, x(An)),
234
+ Ge(2, x(_e)),
235
+ Ge(3, ce)
236
+ ], Be);
237
+ var Z = /* @__PURE__ */ ((n) => (n.DatePicker = "DatePicker", n.DateRange = "DateRange", n.Input = "Input", n.Inputs = "Inputs", n.Select = "Select", n.None = "None", n))(Z || {});
238
+ function Kr(n) {
239
+ const t = n.get(ue).t;
240
240
  return [
241
241
  {
242
- value: F.String,
243
- label: t(`sheets-table.condition.${F.String}`),
242
+ value: V.String,
243
+ label: t(`sheets-table.condition.${V.String}`),
244
244
  children: [
245
245
  {
246
- value: U.Equal,
247
- label: t(`sheets-table.string.compare.${U.Equal}`)
246
+ value: W.Equal,
247
+ label: t(`sheets-table.string.compare.${W.Equal}`)
248
248
  },
249
249
  {
250
- value: U.NotEqual,
251
- label: t(`sheets-table.string.compare.${U.NotEqual}`)
250
+ value: W.NotEqual,
251
+ label: t(`sheets-table.string.compare.${W.NotEqual}`)
252
252
  },
253
253
  {
254
- value: U.Contains,
255
- label: t(`sheets-table.string.compare.${U.Contains}`)
254
+ value: W.Contains,
255
+ label: t(`sheets-table.string.compare.${W.Contains}`)
256
256
  },
257
257
  {
258
- value: U.NotContains,
259
- label: t(`sheets-table.string.compare.${U.NotContains}`)
258
+ value: W.NotContains,
259
+ label: t(`sheets-table.string.compare.${W.NotContains}`)
260
260
  },
261
261
  {
262
- value: U.StartsWith,
263
- label: t(`sheets-table.string.compare.${U.StartsWith}`)
262
+ value: W.StartsWith,
263
+ label: t(`sheets-table.string.compare.${W.StartsWith}`)
264
264
  },
265
265
  {
266
- value: U.EndsWith,
267
- label: t(`sheets-table.string.compare.${U.EndsWith}`)
266
+ value: W.EndsWith,
267
+ label: t(`sheets-table.string.compare.${W.EndsWith}`)
268
268
  }
269
269
  ]
270
270
  },
271
271
  {
272
- value: F.Number,
273
- label: t(`sheets-table.condition.${F.Number}`),
272
+ value: V.Number,
273
+ label: t(`sheets-table.condition.${V.Number}`),
274
274
  children: [
275
275
  {
276
276
  value: $.Equal,
@@ -319,174 +319,174 @@ function Kn(r) {
319
319
  ]
320
320
  },
321
321
  {
322
- value: F.Date,
323
- label: t(`sheets-table.condition.${F.Date}`),
322
+ value: V.Date,
323
+ label: t(`sheets-table.condition.${V.Date}`),
324
324
  children: [
325
325
  {
326
- value: l.Equal,
327
- label: t(`sheets-table.date.compare.${l.Equal}`)
326
+ value: s.Equal,
327
+ label: t(`sheets-table.date.compare.${s.Equal}`)
328
328
  },
329
329
  {
330
- value: l.NotEqual,
331
- label: t(`sheets-table.date.compare.${l.NotEqual}`)
330
+ value: s.NotEqual,
331
+ label: t(`sheets-table.date.compare.${s.NotEqual}`)
332
332
  },
333
333
  {
334
- value: l.After,
335
- label: t(`sheets-table.date.compare.${l.After}`)
334
+ value: s.After,
335
+ label: t(`sheets-table.date.compare.${s.After}`)
336
336
  },
337
337
  {
338
- value: l.AfterOrEqual,
339
- label: t(`sheets-table.date.compare.${l.AfterOrEqual}`)
338
+ value: s.AfterOrEqual,
339
+ label: t(`sheets-table.date.compare.${s.AfterOrEqual}`)
340
340
  },
341
341
  {
342
- value: l.Before,
343
- label: t(`sheets-table.date.compare.${l.Before}`)
342
+ value: s.Before,
343
+ label: t(`sheets-table.date.compare.${s.Before}`)
344
344
  },
345
345
  {
346
- value: l.BeforeOrEqual,
347
- label: t(`sheets-table.date.compare.${l.BeforeOrEqual}`)
346
+ value: s.BeforeOrEqual,
347
+ label: t(`sheets-table.date.compare.${s.BeforeOrEqual}`)
348
348
  },
349
349
  {
350
- value: l.Between,
351
- label: t(`sheets-table.date.compare.${l.Between}`)
350
+ value: s.Between,
351
+ label: t(`sheets-table.date.compare.${s.Between}`)
352
352
  },
353
353
  {
354
- value: l.NotBetween,
355
- label: t(`sheets-table.date.compare.${l.NotBetween}`)
354
+ value: s.NotBetween,
355
+ label: t(`sheets-table.date.compare.${s.NotBetween}`)
356
356
  },
357
357
  {
358
- value: l.Today,
359
- label: t(`sheets-table.date.compare.${l.Today}`)
358
+ value: s.Today,
359
+ label: t(`sheets-table.date.compare.${s.Today}`)
360
360
  },
361
361
  {
362
- value: l.Yesterday,
363
- label: t(`sheets-table.date.compare.${l.Yesterday}`)
362
+ value: s.Yesterday,
363
+ label: t(`sheets-table.date.compare.${s.Yesterday}`)
364
364
  },
365
365
  {
366
- value: l.Tomorrow,
367
- label: t(`sheets-table.date.compare.${l.Tomorrow}`)
366
+ value: s.Tomorrow,
367
+ label: t(`sheets-table.date.compare.${s.Tomorrow}`)
368
368
  },
369
369
  {
370
- value: l.ThisWeek,
371
- label: t(`sheets-table.date.compare.${l.ThisWeek}`)
370
+ value: s.ThisWeek,
371
+ label: t(`sheets-table.date.compare.${s.ThisWeek}`)
372
372
  },
373
373
  {
374
- value: l.LastWeek,
375
- label: t(`sheets-table.date.compare.${l.LastWeek}`)
374
+ value: s.LastWeek,
375
+ label: t(`sheets-table.date.compare.${s.LastWeek}`)
376
376
  },
377
377
  {
378
- value: l.NextWeek,
379
- label: t(`sheets-table.date.compare.${l.NextWeek}`)
378
+ value: s.NextWeek,
379
+ label: t(`sheets-table.date.compare.${s.NextWeek}`)
380
380
  },
381
381
  {
382
- value: l.ThisMonth,
383
- label: t(`sheets-table.date.compare.${l.ThisMonth}`)
382
+ value: s.ThisMonth,
383
+ label: t(`sheets-table.date.compare.${s.ThisMonth}`)
384
384
  },
385
385
  {
386
- value: l.LastMonth,
387
- label: t(`sheets-table.date.compare.${l.LastMonth}`)
386
+ value: s.LastMonth,
387
+ label: t(`sheets-table.date.compare.${s.LastMonth}`)
388
388
  },
389
389
  {
390
- value: l.NextMonth,
391
- label: t(`sheets-table.date.compare.${l.NextMonth}`)
390
+ value: s.NextMonth,
391
+ label: t(`sheets-table.date.compare.${s.NextMonth}`)
392
392
  },
393
393
  {
394
- value: l.ThisYear,
395
- label: t(`sheets-table.date.compare.${l.ThisYear}`)
394
+ value: s.ThisYear,
395
+ label: t(`sheets-table.date.compare.${s.ThisYear}`)
396
396
  },
397
397
  {
398
- value: l.LastYear,
399
- label: t(`sheets-table.date.compare.${l.LastYear}`)
398
+ value: s.LastYear,
399
+ label: t(`sheets-table.date.compare.${s.LastYear}`)
400
400
  },
401
401
  {
402
- value: l.NextYear,
403
- label: t(`sheets-table.date.compare.${l.NextYear}`)
402
+ value: s.NextYear,
403
+ label: t(`sheets-table.date.compare.${s.NextYear}`)
404
404
  },
405
405
  {
406
- value: l.Quarter,
407
- label: t(`sheets-table.date.compare.${l.Quarter}`)
406
+ value: s.Quarter,
407
+ label: t(`sheets-table.date.compare.${s.Quarter}`)
408
408
  },
409
409
  {
410
- value: l.Month,
411
- label: t(`sheets-table.date.compare.${l.Month}`)
410
+ value: s.Month,
411
+ label: t(`sheets-table.date.compare.${s.Month}`)
412
412
  }
413
413
  ]
414
414
  }
415
415
  ];
416
416
  }
417
- function Jn(r, e) {
417
+ function Jr(n, e) {
418
418
  if (!e)
419
419
  return [];
420
- const n = r.get(oe).t;
420
+ const r = n.get(ue).t;
421
421
  switch (e) {
422
- case l.Quarter:
422
+ case s.Quarter:
423
423
  return [
424
424
  {
425
- value: l.Q1,
426
- label: n(`sheets-table.date.compare.${l.Q1}`)
425
+ value: s.Q1,
426
+ label: r(`sheets-table.date.compare.${s.Q1}`)
427
427
  },
428
428
  {
429
- value: l.Q2,
430
- label: n(`sheets-table.date.compare.${l.Q2}`)
429
+ value: s.Q2,
430
+ label: r(`sheets-table.date.compare.${s.Q2}`)
431
431
  },
432
432
  {
433
- value: l.Q3,
434
- label: n(`sheets-table.date.compare.${l.Q3}`)
433
+ value: s.Q3,
434
+ label: r(`sheets-table.date.compare.${s.Q3}`)
435
435
  },
436
436
  {
437
- value: l.Q4,
438
- label: n(`sheets-table.date.compare.${l.Q4}`)
437
+ value: s.Q4,
438
+ label: r(`sheets-table.date.compare.${s.Q4}`)
439
439
  }
440
440
  ];
441
- case l.Month:
441
+ case s.Month:
442
442
  return [
443
443
  {
444
- value: l.M1,
445
- label: n(`sheets-table.date.compare.${l.M1}`)
444
+ value: s.M1,
445
+ label: r(`sheets-table.date.compare.${s.M1}`)
446
446
  },
447
447
  {
448
- value: l.M2,
449
- label: n(`sheets-table.date.compare.${l.M2}`)
448
+ value: s.M2,
449
+ label: r(`sheets-table.date.compare.${s.M2}`)
450
450
  },
451
451
  {
452
- value: l.M3,
453
- label: n(`sheets-table.date.compare.${l.M3}`)
452
+ value: s.M3,
453
+ label: r(`sheets-table.date.compare.${s.M3}`)
454
454
  },
455
455
  {
456
- value: l.M4,
457
- label: n(`sheets-table.date.compare.${l.M4}`)
456
+ value: s.M4,
457
+ label: r(`sheets-table.date.compare.${s.M4}`)
458
458
  },
459
459
  {
460
- value: l.M5,
461
- label: n(`sheets-table.date.compare.${l.M5}`)
460
+ value: s.M5,
461
+ label: r(`sheets-table.date.compare.${s.M5}`)
462
462
  },
463
463
  {
464
- value: l.M6,
465
- label: n(`sheets-table.date.compare.${l.M6}`)
464
+ value: s.M6,
465
+ label: r(`sheets-table.date.compare.${s.M6}`)
466
466
  },
467
467
  {
468
- value: l.M7,
469
- label: n(`sheets-table.date.compare.${l.M7}`)
468
+ value: s.M7,
469
+ label: r(`sheets-table.date.compare.${s.M7}`)
470
470
  },
471
471
  {
472
- value: l.M8,
473
- label: n(`sheets-table.date.compare.${l.M8}`)
472
+ value: s.M8,
473
+ label: r(`sheets-table.date.compare.${s.M8}`)
474
474
  },
475
475
  {
476
- value: l.M9,
477
- label: n(`sheets-table.date.compare.${l.M9}`)
476
+ value: s.M9,
477
+ label: r(`sheets-table.date.compare.${s.M9}`)
478
478
  },
479
479
  {
480
- value: l.M10,
481
- label: n(`sheets-table.date.compare.${l.M10}`)
480
+ value: s.M10,
481
+ label: r(`sheets-table.date.compare.${s.M10}`)
482
482
  },
483
483
  {
484
- value: l.M11,
485
- label: n(`sheets-table.date.compare.${l.M11}`)
484
+ value: s.M11,
485
+ label: r(`sheets-table.date.compare.${s.M11}`)
486
486
  },
487
487
  {
488
- value: l.M12,
489
- label: n(`sheets-table.date.compare.${l.M12}`)
488
+ value: s.M12,
489
+ label: r(`sheets-table.date.compare.${s.M12}`)
490
490
  }
491
491
  ];
492
492
  default:
@@ -494,79 +494,79 @@ function Jn(r, e) {
494
494
  }
495
495
  }
496
496
  const yt = /* @__PURE__ */ new Set([
497
- l.Equal,
498
- l.NotEqual,
499
- l.After,
500
- l.AfterOrEqual,
501
- l.Before,
502
- l.BeforeOrEqual
497
+ s.Equal,
498
+ s.NotEqual,
499
+ s.After,
500
+ s.AfterOrEqual,
501
+ s.Before,
502
+ s.BeforeOrEqual
503
503
  ]);
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;
504
+ function ei(n, e) {
505
+ return e ? n === V.String ? Z.Input : n === V.Number ? e === $.Between || e === $.NotBetween ? Z.Inputs : Z.Input : n === V.Date ? e === s.Between || e === s.NotBetween ? Z.DateRange : e === s.Quarter || e === s.Month ? Z.Select : yt.has(e) ? Z.DatePicker : Z.None : Z.None : Z.None;
506
506
  }
507
- function ti(r) {
508
- if (!r || r.filterType !== "condition")
507
+ function ti(n) {
508
+ if (!n || n.filterType !== "condition")
509
509
  return {
510
- type: F.String,
511
- compareType: U.Equal,
510
+ type: V.String,
511
+ compareType: W.Equal,
512
512
  info: {}
513
513
  };
514
- const e = r.filterInfo, { conditionType: t, compareType: n } = e;
515
- return t === F.Date ? n === l.Between || n === l.NotBetween ? {
514
+ const e = n.filterInfo, { conditionType: t, compareType: r } = e;
515
+ return t === V.Date ? r === s.Between || r === s.NotBetween ? {
516
516
  type: t,
517
- compare: n,
517
+ compare: r,
518
518
  info: {
519
519
  dateRange: e.expectedValue
520
520
  }
521
- } : n === l.Today || n === l.Yesterday || n === l.Tomorrow || n === l.ThisWeek || n === l.LastWeek || n === l.NextWeek || n === l.ThisMonth || n === l.LastMonth || n === l.NextMonth || n === l.ThisYear || n === l.LastYear || n === l.NextYear ? {
521
+ } : r === s.Today || r === s.Yesterday || r === s.Tomorrow || r === s.ThisWeek || r === s.LastWeek || r === s.NextWeek || r === s.ThisMonth || r === s.LastMonth || r === s.NextMonth || r === s.ThisYear || r === s.LastYear || r === s.NextYear ? {
522
522
  type: t,
523
- compare: n,
523
+ compare: r,
524
524
  info: {}
525
- } : yt.has(n) ? {
525
+ } : yt.has(r) ? {
526
526
  type: t,
527
- compare: n,
527
+ compare: r,
528
528
  info: {
529
529
  date: e.expectedValue
530
530
  }
531
- } : (/* @__PURE__ */ new Set([l.Q1, l.Q2, l.Q3, l.Q4])).has(n) ? {
531
+ } : (/* @__PURE__ */ new Set([s.Q1, s.Q2, s.Q3, s.Q4])).has(r) ? {
532
532
  type: t,
533
- compare: l.Quarter,
533
+ compare: s.Quarter,
534
534
  info: {
535
535
  dateSelect: e.compareType
536
536
  }
537
537
  } : {
538
538
  type: t,
539
- compare: l.Month,
539
+ compare: s.Month,
540
540
  info: {
541
541
  dateSelect: e.compareType
542
542
  }
543
- } : t === F.Number ? n === $.Between || n === $.NotBetween ? {
543
+ } : t === V.Number ? r === $.Between || r === $.NotBetween ? {
544
544
  type: t,
545
- compare: n,
545
+ compare: r,
546
546
  info: {
547
547
  numberRange: e.expectedValue
548
548
  }
549
549
  } : {
550
550
  type: t,
551
- compare: n,
551
+ compare: r,
552
552
  info: {
553
553
  number: e.expectedValue
554
554
  }
555
- } : t === F.String ? {
555
+ } : t === V.String ? {
556
556
  type: t,
557
- compare: n,
557
+ compare: r,
558
558
  info: {
559
559
  string: e.expectedValue
560
560
  }
561
561
  } : {
562
- type: F.String,
563
- compare: U.Equal,
562
+ type: V.String,
563
+ compare: W.Equal,
564
564
  info: {}
565
565
  };
566
566
  }
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) => {
567
+ const ni = (n) => {
568
+ var C, T, O, p, E, y, D;
569
+ const { conditionInfo: e, onChange: t } = n, r = R(ue), [i, a] = q(!1), l = R(Ve), c = Kr(l), d = (v, m, L) => {
570
570
  t({
571
571
  type: m != null ? m : e.type,
572
572
  compare: L != null ? L : e.compare,
@@ -577,20 +577,20 @@ const ri = (r) => {
577
577
  const m = v[0], L = v[1];
578
578
  L && a(!1);
579
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);
580
+ m === V.Date ? L === s.Quarter ? M.dateSelect = s.Q1 : L === s.Month ? M.dateSelect = s.M1 : yt.has(L) ? M.date = /* @__PURE__ */ new Date() : M.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : m === V.Number ? M.number = 0 : m === V.String && (M.string = ""), d(M, v[0], (f = v[1]) != null ? f : W.Equal);
581
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);
582
+ let g = "";
583
+ e.compare ? g = `${r.t(`sheets-table.condition.${e.type}`)} - ${r.t(`sheets-table.${e.type}.compare.${e.compare}`)}` : g = r.t(`sheets-table.condition.${e.type}`);
584
+ const S = Jr(l, e.compare);
585
585
  return /* @__PURE__ */ _("div", { children: [
586
586
  /* @__PURE__ */ o(
587
- ke,
587
+ De,
588
588
  {
589
589
  align: "start",
590
590
  open: i,
591
591
  onOpenChange: a,
592
592
  overlay: /* @__PURE__ */ o(
593
- pn,
593
+ fr,
594
594
  {
595
595
  value: [e.type, e.compare],
596
596
  options: c,
@@ -602,25 +602,25 @@ const ri = (r) => {
602
602
  children: /* @__PURE__ */ _(
603
603
  "div",
604
604
  {
605
- className: `
605
+ className: k(`
606
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
607
+ univer-rounded-md univer-bg-white univer-px-2 univer-text-sm univer-transition-colors
608
+ univer-duration-200
609
+ dark:univer-bg-gray-700 dark:univer-text-white
610
610
  focus:univer-border-primary-600 focus:univer-outline-none focus:univer-ring-2
611
611
  hover:univer-border-primary-600
612
- `,
612
+ `, H),
613
613
  children: [
614
- /* @__PURE__ */ o("span", { children: b }),
615
- /* @__PURE__ */ o(Tt, { className: "univer-text-gray-400" })
614
+ /* @__PURE__ */ o("span", { children: g }),
615
+ /* @__PURE__ */ o(It, {})
616
616
  ]
617
617
  }
618
618
  )
619
619
  }
620
620
  ),
621
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(
623
- _t,
622
+ u === Z.Input && /* @__PURE__ */ o(Tt, { children: e.type === V.String ? /* @__PURE__ */ o(
623
+ wt,
624
624
  {
625
625
  className: "univer-w-full",
626
626
  placeholder: "请输入",
@@ -628,7 +628,7 @@ const ri = (r) => {
628
628
  onChange: (v) => d({ string: v })
629
629
  }
630
630
  ) : /* @__PURE__ */ o(
631
- ct,
631
+ dt,
632
632
  {
633
633
  className: "univer-h-7 univer-w-full",
634
634
  value: e.info.number,
@@ -638,22 +638,22 @@ const ri = (r) => {
638
638
  }
639
639
  }
640
640
  ) }),
641
- u === j.DatePicker && /* @__PURE__ */ o("div", { id: "univer-table-date-picker-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
642
- fn,
641
+ u === Z.DatePicker && /* @__PURE__ */ o("div", { id: "univer-table-date-picker-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
642
+ Cr,
643
643
  {
644
- value: ve(e.info.date),
645
- defaultPickerValue: ve(),
644
+ value: be(e.info.date),
645
+ defaultPickerValue: be(),
646
646
  onChange: (v) => d({ date: v.toDate() }),
647
647
  getPopupContainer: () => document.getElementById("univer-table-date-picker-wrapper") || document.body,
648
648
  className: "univer-w-full",
649
649
  allowClear: !1
650
650
  }
651
651
  ) }),
652
- u === j.DateRange && /* @__PURE__ */ o("div", { id: "univer-table-date-range-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
653
- Cn,
652
+ u === Z.DateRange && /* @__PURE__ */ o("div", { id: "univer-table-date-range-wrapper", style: { background: "#fff", position: "relative" }, children: /* @__PURE__ */ o(
653
+ Sr,
654
654
  {
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()],
656
- defaultPickerValue: [ve(), ve()],
655
+ value: [(T = be((C = e.info.dateRange) == null ? void 0 : C[0])) != null ? T : be(), (p = be((O = e.info.dateRange) == null ? void 0 : O[1])) != null ? p : be()],
656
+ defaultPickerValue: [be(), be()],
657
657
  onChange: (v) => {
658
658
  d(v ? { dateRange: v.map((m) => m == null ? void 0 : m.toDate()) } : {});
659
659
  },
@@ -662,9 +662,9 @@ const ri = (r) => {
662
662
  allowClear: !1
663
663
  }
664
664
  ) }),
665
- u === j.Inputs && /* @__PURE__ */ _("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
665
+ u === Z.Inputs && /* @__PURE__ */ _("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
666
666
  /* @__PURE__ */ o(
667
- ct,
667
+ dt,
668
668
  {
669
669
  className: "univer-w-full",
670
670
  value: (E = e.info.numberRange) == null ? void 0 : E[0],
@@ -677,10 +677,10 @@ const ri = (r) => {
677
677
  ),
678
678
  /* @__PURE__ */ o("span", { children: " - " }),
679
679
  /* @__PURE__ */ o(
680
- ct,
680
+ dt,
681
681
  {
682
682
  className: "univer-w-full",
683
- value: (I = e.info.numberRange) == null ? void 0 : I[1],
683
+ value: (y = e.info.numberRange) == null ? void 0 : y[1],
684
684
  controls: !1,
685
685
  onChange: (v) => {
686
686
  var m;
@@ -689,56 +689,55 @@ const ri = (r) => {
689
689
  }
690
690
  )
691
691
  ] }),
692
- u === j.Select && /* @__PURE__ */ o(
693
- Sn,
692
+ u === Z.Select && /* @__PURE__ */ o(
693
+ _r,
694
694
  {
695
695
  className: "univer-w-full",
696
- value: (k = e.info.dateSelect) != null ? k : S[0].value,
696
+ value: (D = e.info.dateSelect) != null ? D : S[0].value,
697
697
  options: S,
698
698
  onChange: (v) => d({ dateSelect: v })
699
699
  }
700
700
  )
701
701
  ] })
702
702
  ] });
703
- }, ni = (r) => {
703
+ }, ri = (n) => {
704
704
  let e = 0;
705
- return r.forEach((t) => {
705
+ return n.forEach((t) => {
706
706
  e += t;
707
707
  }), e;
708
708
  };
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) => {
709
+ function ii(n) {
710
+ const { unitId: e, tableId: t, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: l, tableFilter: c } = n, d = R(ue), h = R(Be), { data: u, itemsCountMap: g, allItemsCount: S } = h.getTableFilterItems(e, r, t, i), [C, T] = q(c === void 0 ? !0 : a.size === g.size), [O, p] = q(C ? S : ri(g)), E = !C && a.size > 0, [y, D] = q(""), v = ln(() => y ? u.filter((f) => String(f.title).toLowerCase().includes(y.toLowerCase())) : u, [y, u]), m = Dt(() => {
711
+ C ? (a.clear(), l(new Set(a)), T(!1)) : (v.forEach((f) => {
712
712
  a.add(f.title);
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);
713
+ }), l(new Set(a)), T(!0));
714
+ }, [C]), L = Dt((f) => {
715
+ f === "" ? (T(!0), u.forEach((U) => {
716
+ a.add(U.title);
717
+ }), p(S)) : (a.clear(), T(!1), p(0)), D(f);
718
718
  }, []), M = (f) => {
719
719
  if (C) {
720
720
  T(!1);
721
- const V = /* @__PURE__ */ new Set();
721
+ const U = /* @__PURE__ */ new Set();
722
722
  for (const { title: P } of u)
723
- f !== P && V.add(P);
724
- p(S - b.get(f)), s(V);
723
+ f !== P && U.add(P);
724
+ p(S - g.get(f)), l(U);
725
725
  } else
726
- a.has(f) ? (a.delete(f), p(O - b.get(f))) : (a.add(f), p(O + b.get(f))), s(new Set(a));
726
+ a.has(f) ? (a.delete(f), p(O - g.get(f))) : (a.add(f), p(O + g.get(f))), l(new Set(a));
727
727
  };
728
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 }),
729
+ /* @__PURE__ */ o(wt, { autoFocus: !0, value: y, placeholder: d.t("sheets-filter.panel.search-placeholder"), onChange: L }),
730
730
  /* @__PURE__ */ o(
731
731
  "div",
732
732
  {
733
- className: `
733
+ className: k(`
734
734
  univer-mt-2 univer-box-border univer-flex univer-h-[180px] univer-max-h-[180px] univer-flex-grow
735
- univer-flex-col univer-overflow-hidden univer-rounded-md univer-border univer-border-solid
736
- univer-border-gray-200 univer-py-1.5 univer-pl-2
737
- `,
735
+ univer-flex-col univer-overflow-hidden univer-rounded-md univer-py-1.5 univer-pl-2
736
+ `, H),
738
737
  children: /* @__PURE__ */ o(
739
738
  "div",
740
739
  {
741
- className: _n("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", Tn),
740
+ className: k("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", Tr),
742
741
  children: /* @__PURE__ */ _("div", { className: "univer-h-full", children: [
743
742
  /* @__PURE__ */ _(
744
743
  "div",
@@ -746,7 +745,7 @@ function ii(r) {
746
745
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
747
746
  children: [
748
747
  /* @__PURE__ */ o(
749
- Et,
748
+ $t,
750
749
  {
751
750
  indeterminate: E,
752
751
  disabled: u.length === 0,
@@ -762,7 +761,7 @@ function ii(r) {
762
761
  `,
763
762
  children: [
764
763
  /* @__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})` })
764
+ /* @__PURE__ */ o("span", { className: "univer-ml univer-text-gray-400", children: `(${O}/${y ? v.length : S})` })
766
765
  ]
767
766
  }
768
767
  )
@@ -774,7 +773,7 @@ function ii(r) {
774
773
  {
775
774
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
776
775
  children: [
777
- /* @__PURE__ */ o(Et, { checked: C || a.has(f.title), onChange: () => {
776
+ /* @__PURE__ */ o($t, { checked: C || a.has(f.title), onChange: () => {
778
777
  M(f.title);
779
778
  } }),
780
779
  /* @__PURE__ */ _(
@@ -786,7 +785,7 @@ function ii(r) {
786
785
  `,
787
786
  children: [
788
787
  /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: f.title }),
789
- /* @__PURE__ */ o("span", { className: "univer-ml-1 univer-text-gray-400", children: `(${b.get(f.title) || 0})` })
788
+ /* @__PURE__ */ o("span", { className: "univer-ml-1 univer-text-gray-400", children: `(${g.get(f.title) || 0})` })
790
789
  ]
791
790
  }
792
791
  )
@@ -802,66 +801,66 @@ function ii(r) {
802
801
  ] });
803
802
  }
804
803
  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);
804
+ var A;
805
+ const n = R(ue), e = si(n), t = R(Be), r = R(ne), i = R(ce), a = R(Ut), l = R(Fe), c = l.getCurrentTableFilterInfo(), d = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: g, tableFilter: S, currentFilterBy: C, columnIndex: T } = d, { data: O } = t.getTableFilterItems(h, u, g, T), p = t.getTableFilterCheckedItems(h, g, T), [E, y] = q(new Set(p)), [D, v] = q(C || Se.Items), [m, L] = q(() => {
806
+ const N = d.tableFilter;
807
+ return ti(N);
808
+ }), M = r.getTable(h, g);
810
809
  if (!M) return null;
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 = () => {
812
- s.closeFilterPanel();
813
- }, K = () => {
814
- D();
815
- }, Se = (x) => {
816
- const B = M.getTableFilterRange();
817
- i.executeCommand(Nn.id, {
810
+ const f = M.getTableFilters(), U = f.getSortState(), P = U.columnIndex === T && U.sortState === Qe.Asc, Q = U.columnIndex === T && U.sortState === Qe.Desc, B = () => {
811
+ l.closeFilterPanel();
812
+ }, ee = () => {
813
+ B();
814
+ }, Te = (N) => {
815
+ const F = M.getTableFilterRange();
816
+ i.executeCommand(xr.id, {
818
817
  unitId: h,
819
818
  subUnitId: u,
820
- range: B,
821
- orderRules: [{ colIndex: T + B.startColumn, type: x ? Ot.ASC : Ot.DESC }],
819
+ range: F,
820
+ orderRules: [{ colIndex: T + F.startColumn, type: N ? kt.ASC : kt.DESC }],
822
821
  hasTitle: !1
823
- }), f.setSortState(T, x ? Ye.Asc : Ye.Desc), D();
824
- }, Ee = () => {
825
- if (k === fe.Items) {
826
- const x = [];
827
- for (const ce of O)
828
- E.has(ce.title) && x.push(ce.title);
829
- const B = M.getTableFilterColumn(T);
830
- if (B) {
831
- if (B.values.join(",") === x.join(",")) {
832
- D();
822
+ }), f.setSortState(T, N ? Qe.Asc : Qe.Desc), B();
823
+ }, Le = () => {
824
+ if (D === Se.Items) {
825
+ const N = [];
826
+ for (const de of O)
827
+ E.has(de.title) && N.push(de.title);
828
+ const F = M.getTableFilterColumn(T);
829
+ if (F) {
830
+ if (F.values.join(",") === N.join(",")) {
831
+ B();
833
832
  return;
834
833
  }
835
- } else if (x.length === 0) {
836
- D();
834
+ } else if (N.length === 0) {
835
+ B();
837
836
  return;
838
837
  }
839
- const Ve = {
840
- filterType: Rt.manual,
841
- values: x
838
+ const Ae = {
839
+ filterType: xt.manual,
840
+ values: N
842
841
  };
843
- t.setTableFilter(h, b, T, Ve);
842
+ t.setTableFilter(h, g, T, Ae);
844
843
  } else {
845
- let x;
846
- m.compare === l.Quarter || m.compare === l.Month ? x = {
844
+ let N;
845
+ m.compare === s.Quarter || m.compare === s.Month ? N = {
847
846
  conditionType: m.type,
848
847
  compareType: Object.values(m.info)[0]
849
- } : x = {
848
+ } : N = {
850
849
  conditionType: m.type,
851
850
  compareType: m.compare,
852
851
  expectedValue: Object.values(m.info)[0]
853
852
  };
854
- const B = {
855
- filterType: Rt.condition,
853
+ const F = {
854
+ filterType: xt.condition,
856
855
  // @ts-ignore
857
- filterInfo: x
856
+ filterInfo: N
858
857
  };
859
- t.setTableFilter(h, b, T, B);
858
+ t.setTableFilter(h, g, T, F);
860
859
  }
861
- D();
862
- }, _e = () => {
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;
860
+ B();
861
+ }, we = () => {
862
+ t.setTableFilter(h, g, T, void 0), B();
863
+ }, Ie = new tn(h).id, I = (A = a.getPermissionPoint(Ie)) == null ? void 0 : A.value;
865
864
  return /* @__PURE__ */ _(
866
865
  "div",
867
866
  {
@@ -870,68 +869,68 @@ function ai() {
870
869
  univer-p-4 univer-shadow-lg
871
870
  `,
872
871
  children: [
873
- w && /* @__PURE__ */ _("div", { className: "univer-mb-3 univer-flex", children: [
872
+ I && /* @__PURE__ */ _("div", { className: "univer-mb-3 univer-flex", children: [
874
873
  /* @__PURE__ */ _(
875
874
  "div",
876
875
  {
877
- className: `
876
+ className: k(`
878
877
  univer-flex univer-w-[140px] univer-flex-1 univer-cursor-default univer-items-center
879
- univer-justify-center univer-gap-1 univer-rounded-l-md univer-border univer-border-solid
880
- univer-border-gray-200 univer-py-1.5 univer-text-[13px] univer-font-normal
878
+ univer-justify-center univer-gap-1 univer-rounded-l-md univer-py-1.5 univer-text-sm
881
879
  hover:univer-cursor-pointer hover:univer-bg-gray-100
882
- ${P ? "univer-bg-gray-100" : ""}
883
- `,
884
- onClick: () => Se(!0),
880
+ `, H, {
881
+ "univer-bg-gray-100": P
882
+ }),
883
+ onClick: () => Te(!0),
885
884
  children: [
886
- /* @__PURE__ */ o(ur, { className: "univer-text-base univer-text-color-[#1e222b] univer-mr-1" }),
887
- r.t("sheets-sort.general.sort-asc")
885
+ /* @__PURE__ */ o(hn, { className: "univer-text-base univer-text-color-[#1e222b] univer-mr-1" }),
886
+ n.t("sheets-sort.general.sort-asc")
888
887
  ]
889
888
  }
890
889
  ),
891
890
  /* @__PURE__ */ _(
892
891
  "div",
893
892
  {
894
- className: `
893
+ className: k(`
895
894
  univer-flex univer-w-[140px] univer-flex-1 univer-cursor-default univer-items-center
896
- univer-justify-center univer-gap-1 univer-rounded-r-md univer-border univer-border-solid
897
- univer-border-gray-200 univer-py-1.5 univer-text-[13px] univer-font-normal
895
+ univer-justify-center univer-gap-1 univer-rounded-r-md univer-py-1.5 univer-text-sm
898
896
  hover:univer-cursor-pointer hover:univer-bg-gray-100
899
- ${q ? "univer-bg-gray-100" : ""}
900
- `,
901
- onClick: () => Se(!1),
897
+ `, H, {
898
+ "univer-bg-gray-100": Q
899
+ }),
900
+ onClick: () => Te(!1),
902
901
  children: [
903
- /* @__PURE__ */ o(hr, { className: "univer-text-base univer-text-color-[#1e222b] univer-mr-1" }),
904
- r.t("sheets-sort.general.sort-desc")
902
+ /* @__PURE__ */ o(gn, { className: "univer-text-base univer-text-color-[#1e222b] univer-mr-1" }),
903
+ n.t("sheets-sort.general.sort-desc")
905
904
  ]
906
905
  }
907
906
  )
908
907
  ] }),
909
908
  /* @__PURE__ */ o("div", { className: "univer-w-full", children: /* @__PURE__ */ o(
910
- yn,
909
+ wr,
911
910
  {
912
- value: k,
911
+ value: D,
913
912
  items: e,
914
- onChange: (x) => v(x)
913
+ onChange: (N) => v(N)
915
914
  }
916
915
  ) }),
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(
916
+ /* @__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: D === Se.Items ? /* @__PURE__ */ o(
918
917
  ii,
919
918
  {
920
919
  tableFilter: S,
921
920
  unitId: h,
922
921
  subUnitId: u,
923
- tableId: b,
922
+ tableId: g,
924
923
  columnIndex: T,
925
924
  checkedItemSet: E,
926
- setCheckedItemSet: I
925
+ setCheckedItemSet: y
927
926
  }
928
927
  ) : /* @__PURE__ */ o(
929
- ri,
928
+ ni,
930
929
  {
931
930
  tableFilter: S,
932
931
  unitId: h,
933
932
  subUnitId: u,
934
- tableId: b,
933
+ tableId: g,
935
934
  columnIndex: T,
936
935
  conditionInfo: m,
937
936
  onChange: L
@@ -946,16 +945,16 @@ function ai() {
946
945
  `,
947
946
  children: [
948
947
  /* @__PURE__ */ o(
949
- We,
948
+ Ze,
950
949
  {
951
950
  disabled: S === void 0,
952
- onClick: _e,
953
- children: r.t("sheets-filter.panel.clear-filter")
951
+ onClick: we,
952
+ children: n.t("sheets-filter.panel.clear-filter")
954
953
  }
955
954
  ),
956
955
  /* @__PURE__ */ _("div", { children: [
957
- /* @__PURE__ */ o(We, { className: "univer-mr-2", onClick: K, children: r.t("sheets-filter.panel.cancel") }),
958
- /* @__PURE__ */ o(We, { variant: "primary", onClick: Ee, children: r.t("sheets-filter.panel.confirm") })
956
+ /* @__PURE__ */ o(Ze, { className: "univer-mr-2", onClick: ee, children: n.t("sheets-filter.panel.cancel") }),
957
+ /* @__PURE__ */ o(Ze, { variant: "primary", onClick: Le, children: n.t("sheets-filter.panel.confirm") })
959
958
  ] })
960
959
  ]
961
960
  }
@@ -964,24 +963,24 @@ function ai() {
964
963
  }
965
964
  );
966
965
  }
967
- function si(r) {
968
- const e = r.getCurrentLocale();
969
- return ar(() => [
970
- { label: r.t("sheets-filter.panel.by-values"), value: fe.Items },
971
- { label: r.t("sheets-filter.panel.by-conditions"), value: fe.Condition }
972
- ], [e, r]);
966
+ function si(n) {
967
+ const e = n.getCurrentLocale();
968
+ return ln(() => [
969
+ { label: n.t("sheets-filter.panel.by-values"), value: Se.Items },
970
+ { label: n.t("sheets-filter.panel.by-conditions"), value: Se.Condition }
971
+ ], [e, n]);
973
972
  }
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--)
976
- (s = r[a]) && (i = s(i) || i);
973
+ var li = Object.getOwnPropertyDescriptor, oi = (n, e, t, r) => {
974
+ for (var i = r > 1 ? void 0 : r ? li(e, t) : e, a = n.length - 1, l; a >= 0; a--)
975
+ (l = n[a]) && (i = l(i) || i);
977
976
  return i;
978
- }, Ge = (r, e) => (t, n) => e(t, n, r);
979
- let Be = class extends Fe {
980
- constructor(e, t, n, i) {
977
+ }, Xe = (n, e) => (t, r) => e(t, r, n);
978
+ let Fe = class extends He {
979
+ constructor(e, t, r, i) {
981
980
  super();
982
- A(this, "_popupDisposable");
983
- A(this, "_currentTableFilterInfo", null);
984
- this._componentManager = e, this._contextService = t, this._sheetCanvasPopupService = n, this._dialogService = i, this._initComponents(), this._initUIPopup();
981
+ j(this, "_popupDisposable");
982
+ j(this, "_currentTableFilterInfo", null);
983
+ this._componentManager = e, this._contextService = t, this._sheetCanvasPopupService = r, this._dialogService = i, this._initComponents(), this._initUIPopup();
985
984
  }
986
985
  setCurrentTableFilterInfo(e) {
987
986
  this._currentTableFilterInfo = e;
@@ -994,29 +993,29 @@ let Be = class extends Fe {
994
993
  }
995
994
  _initComponents() {
996
995
  [
997
- [ge, ai]
996
+ [pe, ai]
998
997
  ].forEach(([e, t]) => {
999
998
  this.disposeWithMe(this._componentManager.register(e, t));
1000
999
  });
1001
1000
  }
1002
1001
  _initUIPopup() {
1003
- this.disposeWithMe(this._contextService.subscribeContextValue$(ge).pipe(Jt(void 0), dn()).subscribe((e) => {
1002
+ this.disposeWithMe(this._contextService.subscribeContextValue$(pe).pipe(en(void 0), hr()).subscribe((e) => {
1004
1003
  e ? this._openFilterPopup() : e === !1 && this._closeFilterPopup();
1005
1004
  }));
1006
1005
  }
1007
1006
  closeFilterPanel() {
1008
- this._contextService.setContextValue(ge, !1);
1007
+ this._contextService.setContextValue(pe, !1);
1009
1008
  }
1010
1009
  _openFilterPopup() {
1011
1010
  const e = this._currentTableFilterInfo;
1012
1011
  if (!e)
1013
1012
  throw new Error("[SheetsFilterUIController]: no filter model when opening filter popup!");
1014
- const { row: t, column: n } = e;
1015
- this._popupDisposable = this._sheetCanvasPopupService.attachPopupToCell(t, n, {
1016
- componentKey: ge,
1013
+ const { row: t, column: r } = e;
1014
+ this._popupDisposable = this._sheetCanvasPopupService.attachPopupToCell(t, r, {
1015
+ componentKey: pe,
1017
1016
  direction: "horizontal",
1018
1017
  onClickOutside: () => {
1019
- this._dialogService.close(Pn), this._contextService.setContextValue(ge, !1);
1018
+ this._dialogService.close(Pr), this._contextService.setContextValue(pe, !1);
1020
1019
  },
1021
1020
  offset: [5, 0]
1022
1021
  });
@@ -1026,129 +1025,129 @@ let Be = class extends Fe {
1026
1025
  (e = this._popupDisposable) == null || e.dispose(), this._popupDisposable = null, this.clearCurrentTableFilterInfo();
1027
1026
  }
1028
1027
  };
1029
- Be = oi([
1030
- Ge(0, N(Xt)),
1031
- Ge(1, ft),
1032
- Ge(2, N(Qr)),
1033
- Ge(3, N(Kt))
1034
- ], Be);
1035
- const bt = {
1036
- type: At.OPERATION,
1028
+ Fe = oi([
1029
+ Xe(0, x(Kt)),
1030
+ Xe(1, St),
1031
+ Xe(2, x(Xn)),
1032
+ Xe(3, x(Jt))
1033
+ ], Fe);
1034
+ const mt = {
1035
+ type: jt.OPERATION,
1037
1036
  id: "sheet.operation.open-table-filter-panel",
1038
- async handler(r, e) {
1037
+ async handler(n, e) {
1039
1038
  if (!e)
1040
1039
  return !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;
1040
+ const { row: t, col: r, unitId: i, subUnitId: a, tableId: l } = e, c = n.get(ne), d = n.get(St), h = n.get(Fe);
1041
+ return c.getTable(i, l) ? (d.getContextValue(pe) || (h.setCurrentTableFilterInfo({ unitId: i, subUnitId: a, row: t, tableId: l, column: r }), d.setContextValue(pe, !0)), !0) : !1;
1043
1042
  }
1044
- }, wt = {
1045
- type: At.OPERATION,
1043
+ }, Mt = {
1044
+ type: jt.OPERATION,
1046
1045
  id: "sheet.operation.open-table-selector",
1047
- async handler(r) {
1046
+ async handler(n) {
1048
1047
  var C;
1049
- const e = r.get(Ce), t = r.get(ee), n = st(e);
1050
- if (!n)
1048
+ const e = n.get(_e), t = n.get(ce), r = ot(e);
1049
+ if (!r)
1051
1050
  return !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;
1051
+ const { unitId: i, subUnitId: a, worksheet: l } = r, d = n.get(ct).getCurrentLastSelection(), h = (C = d == null ? void 0 : d.range) != null ? C : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, g = yr(d) ? Mr(h, { up: !0, left: !0, right: !0, down: !0 }, l) : h, S = await Cn(n, i, a, g);
1052
+ return S ? (t.executeCommand(Wn.id, { ...S }), !0) : !1;
1054
1053
  }
1055
1054
  };
1056
- async function pr(r, e, t, n, i) {
1057
- const a = r.get(Kt), s = r.get(oe);
1055
+ async function Cn(n, e, t, r, i) {
1056
+ const a = n.get(Jt), l = n.get(ue);
1058
1057
  return new Promise((c) => {
1059
1058
  const d = {
1060
1059
  unitId: e,
1061
1060
  subUnitId: t,
1062
- range: n,
1061
+ range: r,
1063
1062
  tableId: i,
1064
1063
  onConfirm: (h) => {
1065
- c(h), a.close(Pe);
1064
+ c(h), a.close(ke);
1066
1065
  },
1067
1066
  onCancel: () => {
1068
- c(null), a.close(Pe);
1067
+ c(null), a.close(ke);
1069
1068
  }
1070
1069
  };
1071
1070
  a.open({
1072
- id: Pe,
1073
- title: { title: s.t("sheets-table.selectRange") },
1071
+ id: ke,
1072
+ title: { title: l.t("sheets-table.selectRange") },
1074
1073
  draggable: !0,
1075
1074
  destroyOnClose: !0,
1076
1075
  mask: !1,
1077
1076
  maskClosable: !1,
1078
1077
  children: {
1079
1078
  label: {
1080
- name: Pe,
1079
+ name: ke,
1081
1080
  props: d
1082
1081
  }
1083
1082
  },
1084
1083
  width: 300,
1085
1084
  onClose: () => {
1086
- c(null), a.close(Pe);
1085
+ c(null), a.close(ke);
1087
1086
  }
1088
1087
  });
1089
1088
  });
1090
1089
  }
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--)
1094
- (s = r[a]) && (i = s(i) || i);
1090
+ const Sn = "sheets-table-ui.config";
1091
+ var ci = Object.getOwnPropertyDescriptor, ui = (n, e, t, r) => {
1092
+ for (var i = r > 1 ? void 0 : r ? ci(e, t) : e, a = n.length - 1, l; a >= 0; a--)
1093
+ (l = n[a]) && (i = l(i) || i);
1095
1094
  return i;
1096
- }, di = (r, e) => (t, n) => e(t, n, r);
1097
- let xe = class extends Fe {
1095
+ }, di = (n, e) => (t, r) => e(t, r, n);
1096
+ let xe = class extends He {
1098
1097
  constructor(e) {
1099
1098
  super();
1100
- A(this, "_refreshTable", new hn());
1101
- A(this, "refreshTable$", this._refreshTable.asObservable());
1099
+ j(this, "_refreshTable", new vr());
1100
+ j(this, "refreshTable$", this._refreshTable.asObservable());
1102
1101
  this._commandService = e, this._initListener();
1103
1102
  }
1104
1103
  _initListener() {
1105
1104
  this.disposeWithMe(
1106
1105
  this._commandService.onCommandExecuted((e) => {
1107
- if (e.id === tr.id) {
1108
- const t = e.params, { styleName: n } = t;
1109
- n.startsWith(Ur) && this._refreshTable.next(Math.random());
1106
+ if (e.id === nn.id) {
1107
+ const t = e.params, { styleName: r } = t;
1108
+ r.startsWith(Zn) && this._refreshTable.next(Math.random());
1110
1109
  }
1111
1110
  })
1112
1111
  );
1113
1112
  }
1114
1113
  };
1115
1114
  xe = ui([
1116
- di(0, N(ee))
1115
+ di(0, x(ce))
1117
1116
  ], xe);
1118
1117
  const hi = () => {
1119
- var _e, Te;
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) => {
1121
- s((x) => ({
1122
- ...x,
1123
- [w]: H
1118
+ var we, Ie;
1119
+ const [n, e] = q(""), [t, r] = q(""), i = R(ir), [a, l] = q({}), c = R(Ve), d = R(nt), h = Re(d.anchorPosition$), u = R(ce), g = R(_e), S = R(rn), C = Re(S.unitPermissionInitStateChange$, !1), T = R(ne), O = R(an), p = R(xe), E = Re(p.refreshTable$), y = R(ue), D = R(ct), v = Re(D.selectionChanged$, [{ range: At(0, 0), primary: null }]), [, m] = q(Math.random()), M = R(Wt).getConfig(Sn), f = (we = M == null ? void 0 : M.anchorHeight) != null ? we : 24, U = (Ie = M == null ? void 0 : M.anchorBackgroundColor) != null ? Ie : "rgb(53,91,183)", P = (I, A) => {
1120
+ l((N) => ({
1121
+ ...N,
1122
+ [I]: A
1124
1123
  }));
1125
1124
  };
1126
- if (sr(() => {
1125
+ if (on(() => {
1127
1126
  m(Math.random());
1128
1127
  }, [E]), !(h != null && h.length))
1129
1128
  return null;
1130
- const q = st(b);
1131
- if (!q) return null;
1132
- const { unitId: D, subUnitId: K } = q, Se = (w, H) => {
1133
- var B;
1134
- if (((B = T.getTableById(D, w)) == null ? void 0 : B.getDisplayName()) === H) {
1135
- e(""), n("");
1129
+ const Q = ot(g);
1130
+ if (!Q) return null;
1131
+ const { unitId: B, subUnitId: ee } = Q, Te = (I, A) => {
1132
+ var F;
1133
+ if (((F = T.getTableById(B, I)) == null ? void 0 : F.getDisplayName()) === A) {
1134
+ e(""), r("");
1136
1135
  return;
1137
1136
  }
1138
- u.executeCommand(vt.id, {
1139
- tableId: w,
1140
- unitId: D,
1141
- name: H
1142
- }), n(""), e("");
1143
- }, Ee = async (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);
1147
- B && u.executeCommand(vt.id, {
1148
- tableId: w,
1149
- unitId: D,
1137
+ u.executeCommand(bt.id, {
1138
+ tableId: I,
1139
+ unitId: B,
1140
+ name: A
1141
+ }), r(""), e("");
1142
+ }, Le = async (I) => {
1143
+ const A = T.getTableById(B, I);
1144
+ if (!A) return;
1145
+ const N = A.getRange(), F = await Cn(c, B, ee, N, I);
1146
+ F && u.executeCommand(bt.id, {
1147
+ tableId: I,
1148
+ unitId: B,
1150
1149
  updateRange: {
1151
- newRange: B.range
1150
+ newRange: F.range
1152
1151
  }
1153
1152
  });
1154
1153
  };
@@ -1157,52 +1156,51 @@ const hi = () => {
1157
1156
  {
1158
1157
  className: "univer-absolute univer-z-50 univer-h-0 univer-w-0",
1159
1158
  style: {},
1160
- children: h.map((w) => {
1161
- var z, G, ae, se, ue, de, he;
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();
1159
+ children: h.map((I) => {
1160
+ var X, K, se, le, he, ve, ge;
1161
+ const A = T.getTableById(B, I.tableId);
1162
+ if (!A) return null;
1163
+ const N = O.getRangeThemeStyle(B, A.getTableStyleId()), F = (se = (K = (X = N == null ? void 0 : N.getHeaderRowStyle()) == null ? void 0 : X.bg) == null ? void 0 : K.rgb) != null ? se : U, de = (ve = (he = (le = N == null ? void 0 : N.getHeaderRowStyle()) == null ? void 0 : le.cl) == null ? void 0 : he.rgb) != null ? ve : "rgb(255, 255, 255)", qe = A.getRange();
1165
1164
  if (!(v != null && v.length))
1166
1165
  return null;
1167
- const qe = v[v.length - 1].range, y = !pe.intersects(Ze, qe) && w.y <= 20;
1166
+ const Ye = v[v.length - 1].range, w = !Ce.intersects(qe, Ye) && I.y <= 20;
1168
1167
  return /* @__PURE__ */ _(
1169
1168
  "div",
1170
1169
  {
1171
- className: `
1170
+ className: k(`
1172
1171
  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
1175
- `,
1172
+ univer-rounded-xl univer-pl-2 univer-pr-2 univer-shadow-xs
1173
+ `, H),
1176
1174
  style: {
1177
- left: w.x,
1178
- top: Math.max(w.y, 0),
1179
- backgroundColor: B,
1180
- color: ce,
1175
+ left: I.x,
1176
+ top: Math.max(I.y, 0),
1177
+ backgroundColor: F,
1178
+ color: de,
1181
1179
  borderWidth: "0.5px",
1182
- display: y ? "none" : "flex",
1180
+ display: w ? "none" : "flex",
1183
1181
  height: f ? `${f}px` : "24px"
1184
1182
  },
1185
1183
  children: [
1186
- /* @__PURE__ */ o("div", { className: "univer-text-nowrap", children: r === w.tableId ? /* @__PURE__ */ o(
1187
- _t,
1184
+ /* @__PURE__ */ o("div", { className: "univer-text-nowrap", children: n === I.tableId ? /* @__PURE__ */ o(
1185
+ wt,
1188
1186
  {
1189
1187
  className: "univer-h-[18px] univer-min-w-16 univer-rounded-none",
1190
1188
  inputClass: "univer-h-[18px] univer-w-[80px]",
1191
1189
  value: t,
1192
- onChange: (Z) => n(Z),
1193
- onBlur: () => Se(w.tableId, t),
1194
- onKeyDown: (Z) => {
1195
- Z.key === "Enter" && Se(w.tableId, t);
1190
+ onChange: (Y) => r(Y),
1191
+ onBlur: () => Te(I.tableId, t),
1192
+ onKeyDown: (Y) => {
1193
+ Y.key === "Enter" && Te(I.tableId, t);
1196
1194
  },
1197
- autoFocus: r === w.tableId
1195
+ autoFocus: n === I.tableId
1198
1196
  }
1199
- ) : /* @__PURE__ */ o("div", { className: "univer-h-[18px] univer-max-w-24 univer-truncate univer-text-sm", children: w.tableName }) }),
1197
+ ) : /* @__PURE__ */ o("div", { className: "univer-h-[18px] univer-max-w-24 univer-truncate univer-text-sm", children: I.tableName }) }),
1200
1198
  /* @__PURE__ */ o(
1201
- ke,
1199
+ De,
1202
1200
  {
1203
- open: (he = a[w.tableId]) != null ? he : !1,
1204
- onOpenChange: (Z) => {
1205
- P(w.tableId, Z);
1201
+ open: (ge = a[I.tableId]) != null ? ge : !1,
1202
+ onOpenChange: (Y) => {
1203
+ P(I.tableId, Y);
1206
1204
  },
1207
1205
  overlay: /* @__PURE__ */ _("div", { className: "univer-pb-2 univer-pt-2", children: [
1208
1206
  /* @__PURE__ */ _(
@@ -1214,11 +1212,11 @@ const hi = () => {
1214
1212
  hover:univer-bg-gray-200
1215
1213
  `,
1216
1214
  onClick: () => {
1217
- e(w.tableId), n(w.tableName);
1215
+ e(I.tableId), r(I.tableName);
1218
1216
  },
1219
1217
  children: [
1220
- /* @__PURE__ */ o(gr, { className: "univer-mr-2" }),
1221
- I.t("sheets-table.rename")
1218
+ /* @__PURE__ */ o(pn, { className: "univer-mr-2" }),
1219
+ y.t("sheets-table.rename")
1222
1220
  ]
1223
1221
  }
1224
1222
  ),
@@ -1233,15 +1231,15 @@ const hi = () => {
1233
1231
  /* @__PURE__ */ _(
1234
1232
  "div",
1235
1233
  {
1236
- onClick: () => Ee(w.tableId),
1234
+ onClick: () => Le(I.tableId),
1237
1235
  className: `
1238
1236
  univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center
1239
1237
  univer-pb-1 univer-pl-2 univer-pr-2 univer-pt-1 univer-text-sm
1240
1238
  hover:univer-bg-gray-200
1241
1239
  `,
1242
1240
  children: [
1243
- /* @__PURE__ */ o(vr, { className: "univer-mr-2" }),
1244
- I.t("sheets-table.updateRange")
1241
+ /* @__PURE__ */ o(bn, { className: "univer-mr-2" }),
1242
+ y.t("sheets-table.updateRange")
1245
1243
  ]
1246
1244
  }
1247
1245
  ),
@@ -1254,32 +1252,32 @@ const hi = () => {
1254
1252
  hover:univer-bg-gray-200
1255
1253
  `,
1256
1254
  onClick: () => {
1257
- P(w.tableId, !1);
1258
- const Z = T.getTableById(D, w.tableId);
1259
- if (!Z) return;
1260
- const ye = Z.getTableConfig(), we = {
1261
- id: kn,
1262
- header: { title: I.t("sheets-table.tableStyle") },
1255
+ P(I.tableId, !1);
1256
+ const Y = T.getTableById(B, I.tableId);
1257
+ if (!Y) return;
1258
+ const ye = Y.getTableConfig(), Me = {
1259
+ id: kr,
1260
+ header: { title: y.t("sheets-table.tableStyle") },
1263
1261
  children: {
1264
- label: or,
1262
+ label: un,
1265
1263
  oldConfig: ye,
1266
- unitId: D,
1267
- subUnitId: K,
1268
- tableId: w.tableId
1264
+ unitId: B,
1265
+ subUnitId: ee,
1266
+ tableId: I.tableId
1269
1267
  },
1270
1268
  width: 330
1271
1269
  };
1272
- i.open(we);
1270
+ i.open(Me);
1273
1271
  },
1274
1272
  children: [
1275
1273
  /* @__PURE__ */ o(
1276
- br,
1274
+ mn,
1277
1275
  {
1278
1276
  extend: { colorChannel1: "rgb(53,91,183)" },
1279
1277
  className: "univer-mr-2"
1280
1278
  }
1281
1279
  ),
1282
- I.t("sheets-table.setTheme")
1280
+ y.t("sheets-table.setTheme")
1283
1281
  ]
1284
1282
  }
1285
1283
  ),
@@ -1300,55 +1298,55 @@ const hi = () => {
1300
1298
  hover:univer-bg-gray-200
1301
1299
  `,
1302
1300
  onClick: () => {
1303
- P(w.tableId, !1), u.executeCommand(jr.id, {
1304
- tableId: w.tableId,
1305
- subUnitId: K,
1306
- unitId: D
1301
+ P(I.tableId, !1), u.executeCommand(qn.id, {
1302
+ tableId: I.tableId,
1303
+ subUnitId: ee,
1304
+ unitId: B
1307
1305
  });
1308
1306
  },
1309
1307
  children: [
1310
- /* @__PURE__ */ o(dr, { className: "univer-mr-2" }),
1311
- I.t("sheets-table.removeTable")
1308
+ /* @__PURE__ */ o(vn, { className: "univer-mr-2" }),
1309
+ y.t("sheets-table.removeTable")
1312
1310
  ]
1313
1311
  }
1314
1312
  )
1315
1313
  ] }),
1316
1314
  align: "start",
1317
- children: /* @__PURE__ */ o(Tt, {})
1315
+ children: /* @__PURE__ */ o(It, {})
1318
1316
  },
1319
- w.tableId
1317
+ I.tableId
1320
1318
  )
1321
1319
  ]
1322
1320
  },
1323
- w.tableId
1321
+ I.tableId
1324
1322
  );
1325
1323
  })
1326
1324
  }
1327
1325
  ) : null;
1328
1326
  };
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--)
1331
- (s = r[a]) && (i = s(i) || i);
1327
+ var vi = Object.getOwnPropertyDescriptor, gi = (n, e, t, r) => {
1328
+ for (var i = r > 1 ? void 0 : r ? vi(e, t) : e, a = n.length - 1, l; a >= 0; a--)
1329
+ (l = n[a]) && (i = l(i) || i);
1332
1330
  return i;
1333
- }, J = (r, e) => (t, n) => e(t, n, r);
1334
- let et = class extends Fe {
1335
- constructor(e, t, n, i, a, s, c, d, h, u, b) {
1331
+ }, te = (n, e) => (t, r) => e(t, r, n);
1332
+ let nt = class extends He {
1333
+ constructor(e, t, r, i, a, l, c, d, h, u, g) {
1336
1334
  super();
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();
1335
+ j(this, "_anchorVisible$", new Lt(!0));
1336
+ j(this, "_timer");
1337
+ j(this, "_anchorPosition$", new Lt([]));
1338
+ j(this, "anchorPosition$", this._anchorPosition$.asObservable());
1339
+ this._context = e, this._injector = t, this._sheetSkeletonManagerService = r, this._renderManagerService = i, this._commandService = a, this._univerInstanceService = l, this._uiPartsService = c, this._tableManager = d, this._scrollManagerService = h, this._workbookPermissionService = u, this._permissionService = g, this._initUI(), this._initListener(), this._initTableAnchor();
1342
1340
  }
1343
1341
  _initUI() {
1344
1342
  this.disposeWithMe(
1345
- this._uiPartsService.registerComponent(an.CONTENT, () => sn(hi, this._injector))
1343
+ this._uiPartsService.registerComponent(sr.CONTENT, () => lr(hi, this._injector))
1346
1344
  );
1347
1345
  }
1348
1346
  _initListener() {
1349
1347
  this.disposeWithMe(
1350
1348
  this._commandService.onCommandExecuted((e) => {
1351
- (e.id === Gr.id || e.id === Xr.id) && (this._anchorVisible$.next(!1), this._timer && clearTimeout(this._timer), this._timer = setTimeout(() => {
1349
+ (e.id === Jn.id || e.id === er.id) && (this._anchorVisible$.next(!1), this._timer && clearTimeout(this._timer), this._timer = setTimeout(() => {
1352
1350
  this._anchorVisible$.next(!0);
1353
1351
  }, 300));
1354
1352
  })
@@ -1356,7 +1354,7 @@ let et = class extends Fe {
1356
1354
  }
1357
1355
  _initTableAnchor() {
1358
1356
  this.disposeWithMe(
1359
- Ct(
1357
+ _t(
1360
1358
  this._context.unit.activeSheet$,
1361
1359
  this._sheetSkeletonManagerService.currentSkeleton$,
1362
1360
  this._scrollManagerService.validViewportScrollInfo$,
@@ -1365,8 +1363,8 @@ let et = class extends Fe {
1365
1363
  this._tableManager.tableNameChanged$,
1366
1364
  this._tableManager.tableRangeChanged$,
1367
1365
  this._tableManager.tableThemeChanged$,
1368
- this._workbookPermissionService.unitPermissionInitStateChange$.pipe(vn((e) => e)),
1369
- this._permissionService.permissionPointUpdate$.pipe(bn(300)),
1366
+ this._workbookPermissionService.unitPermissionInitStateChange$.pipe(gr((e) => e)),
1367
+ this._permissionService.permissionPointUpdate$.pipe(br(300)),
1370
1368
  this._anchorVisible$
1371
1369
  ).subscribe(() => {
1372
1370
  var h;
@@ -1374,30 +1372,30 @@ let et = class extends Fe {
1374
1372
  this._anchorPosition$.next([]);
1375
1373
  return;
1376
1374
  }
1377
- const t = this._context.unit, n = t.getActiveSheet(), i = n == null ? void 0 : n.getSheetId(), a = this._tableManager.getTableList(this._context.unitId).filter((u) => u.subUnitId === i), s = this._renderManagerService.getRenderById(this._context.unitId);
1378
- if (!s) {
1375
+ const t = this._context.unit, r = t.getActiveSheet(), i = r == null ? void 0 : r.getSheetId(), a = this._tableManager.getTableList(this._context.unitId).filter((u) => u.subUnitId === i), l = this._renderManagerService.getRenderById(this._context.unitId);
1376
+ if (!l) {
1379
1377
  this._anchorPosition$.next([]);
1380
1378
  return;
1381
1379
  }
1382
- if (!((h = this._permissionService.getPermissionPoint(new er(t.getUnitId()).id)) == null ? void 0 : h.value)) {
1380
+ if (!((h = this._permissionService.getPermissionPoint(new tn(t.getUnitId()).id)) == null ? void 0 : h.value)) {
1383
1381
  this._anchorPosition$.next([]);
1384
1382
  return;
1385
1383
  }
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);
1384
+ const d = a.reduce((u, g) => {
1385
+ const { startRow: S, startColumn: C } = g.range, T = l.with(lt), O = tr(this._univerInstanceService, this._renderManagerService);
1388
1386
  if (!O) return u;
1389
- const { scene: p } = O, E = p.getViewport(Pr.VIEW_MAIN);
1387
+ const { scene: p } = O, E = p.getViewport(Bn.VIEW_MAIN);
1390
1388
  if (!E) return u;
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;
1389
+ const y = p == null ? void 0 : p.scaleX, D = p == null ? void 0 : p.scaleY, v = p == null ? void 0 : p.getViewportScrollXY(E);
1390
+ if (!y || !p || !D || !v) return u;
1393
1391
  const m = T.getCurrentSkeleton();
1394
1392
  if (!m) return u;
1395
- const L = m.getNoMergeCellWithCoordByIndex(S, C), M = kr(L.startX, I, v), f = Dr(L.startY, k, v) - 25 - 4;
1393
+ const L = m.getNoMergeCellWithCoordByIndex(S, C), M = Fn(L.startX, y, v), f = Hn(L.startY, D, v) - 25 - 4;
1396
1394
  return f >= -10 && M >= 45 && u.push({
1397
1395
  x: M,
1398
1396
  y: f,
1399
- tableId: b.id,
1400
- tableName: b.name
1397
+ tableId: g.id,
1398
+ tableName: g.name
1401
1399
  }), u;
1402
1400
  }, []);
1403
1401
  this._anchorPosition$.next(d);
@@ -1405,42 +1403,42 @@ let et = class extends Fe {
1405
1403
  );
1406
1404
  }
1407
1405
  };
1408
- et = bi([
1409
- J(1, N(He)),
1410
- J(2, N(at)),
1411
- J(3, Zt),
1412
- J(4, ee),
1413
- J(5, Ce),
1414
- J(6, nn),
1415
- J(7, N(te)),
1416
- J(8, N(zr)),
1417
- J(9, N(rr)),
1418
- J(10, N(Vt))
1419
- ], et);
1420
- const Oe = 16;
1406
+ nt = gi([
1407
+ te(1, x(Ve)),
1408
+ te(2, x(lt)),
1409
+ te(3, qt),
1410
+ te(4, ce),
1411
+ te(5, _e),
1412
+ te(6, ar),
1413
+ te(7, x(ne)),
1414
+ te(8, x(Kn)),
1415
+ te(9, x(rn)),
1416
+ te(10, x(Ut))
1417
+ ], nt);
1418
+ const Pe = 16;
1421
1419
  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");
1422
- class Bt {
1423
- static drawNoSetting(e, t, n, i) {
1424
- e.save(), It.drawWith(e, {
1420
+ class Ht {
1421
+ static drawNoSetting(e, t, r, i) {
1422
+ e.save(), Rt.drawWith(e, {
1425
1423
  radius: 2,
1426
- width: Oe,
1427
- height: Oe,
1424
+ width: Pe,
1425
+ height: Pe,
1428
1426
  fill: i
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();
1427
+ }), e.lineCap = "square", e.strokeStyle = r, e.scale(t / Pe, t / Pe), 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();
1430
1428
  }
1431
- static drawIconByPath(e, t, n, i) {
1432
- e.save(), e.strokeStyle = n, e.fillStyle = i, It.drawWith(e, {
1429
+ static drawIconByPath(e, t, r, i) {
1430
+ e.save(), e.strokeStyle = r, e.fillStyle = i, Rt.drawWith(e, {
1433
1431
  radius: 2,
1434
- width: Oe,
1435
- height: Oe,
1432
+ width: Pe,
1433
+ height: Pe,
1436
1434
  fill: i
1437
1435
  }), t.forEach((a) => {
1438
- const s = new Path2D(a);
1439
- e.fillStyle = n, e.fill(s, "evenodd");
1436
+ const l = new Path2D(a);
1437
+ e.fillStyle = r, e.fill(l, "evenodd");
1440
1438
  }), e.restore();
1441
1439
  }
1442
1440
  }
1443
- const gi = [
1441
+ const bi = [
1444
1442
  "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"
1445
1443
  ], mi = [
1446
1444
  "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",
@@ -1457,20 +1455,20 @@ const gi = [
1457
1455
  "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",
1458
1456
  "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"
1459
1457
  ];
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--)
1462
- (s = r[a]) && (i = s(i) || i);
1458
+ var Si = Object.getOwnPropertyDescriptor, _i = (n, e, t, r) => {
1459
+ for (var i = r > 1 ? void 0 : r ? Si(e, t) : e, a = n.length - 1, l; a >= 0; a--)
1460
+ (l = n[a]) && (i = l(i) || i);
1463
1461
  return i;
1464
- }, dt = (r, e) => (t, n) => e(t, n, r);
1465
- const me = 16, Xe = 1;
1466
- let gt = class extends Br {
1467
- constructor(e, t, n, i, a) {
1462
+ }, vt = (n, e) => (t, r) => e(t, r, n);
1463
+ const fe = 16, Ke = 1;
1464
+ let pt = class extends Vn {
1465
+ constructor(e, t, r, i, a) {
1468
1466
  super(e, t);
1469
- A(this, "_cellWidth", 0);
1470
- A(this, "_cellHeight", 0);
1471
- A(this, "_filterParams");
1472
- A(this, "_hovered", !1);
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());
1467
+ j(this, "_cellWidth", 0);
1468
+ j(this, "_cellHeight", 0);
1469
+ j(this, "_filterParams");
1470
+ j(this, "_hovered", !1);
1471
+ this._contextService = r, this._commandService = i, this._themeService = a, this.setShapeProps(t), this.onPointerDown$.subscribeEvent((l) => this.onPointerDown(l)), this.onPointerEnter$.subscribeEvent(() => this.onPointerEnter()), this.onPointerLeave$.subscribeEvent(() => this.onPointerLeave());
1474
1472
  }
1475
1473
  setShapeProps(e) {
1476
1474
  typeof e.cellHeight < "u" && (this._cellHeight = e.cellHeight), typeof e.cellWidth < "u" && (this._cellWidth = e.cellWidth), typeof e.filterParams < "u" && (this._filterParams = e.filterParams), this.transformByState({
@@ -1479,46 +1477,46 @@ let gt = class extends Br {
1479
1477
  });
1480
1478
  }
1481
1479
  _draw(e) {
1482
- const t = this._cellHeight, n = this._cellWidth, i = me - n, a = me - t;
1480
+ const t = this._cellHeight, r = this._cellWidth, i = fe - r, a = fe - t;
1483
1481
  e.save();
1484
- const s = new Path2D();
1485
- s.rect(i, a, n, t), e.clip(s);
1482
+ const l = new Path2D();
1483
+ l.rect(i, a, r, t), e.clip(l);
1486
1484
  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)";
1487
1485
  let u;
1488
1486
  switch (c) {
1489
- case Le.FilteredSortNone:
1490
- u = gi;
1487
+ case $e.FilteredSortNone:
1488
+ u = bi;
1491
1489
  break;
1492
- case Le.FilteredSortAsc:
1490
+ case $e.FilteredSortAsc:
1493
1491
  u = mi;
1494
1492
  break;
1495
- case Le.FilteredSortDesc:
1493
+ case $e.FilteredSortDesc:
1496
1494
  u = pi;
1497
1495
  break;
1498
- case Le.FilterNoneSortNone:
1496
+ case $e.FilterNoneSortNone:
1499
1497
  break;
1500
- case Le.FilterNoneSortAsc:
1498
+ case $e.FilterNoneSortAsc:
1501
1499
  u = fi;
1502
1500
  break;
1503
- case Le.FilterNoneSortDesc:
1501
+ case $e.FilterNoneSortDesc:
1504
1502
  u = Ci;
1505
1503
  break;
1506
1504
  }
1507
- u ? Bt.drawIconByPath(e, u, d, h) : c !== void 0 && Bt.drawNoSetting(e, me, d, h), e.restore();
1505
+ u ? Ht.drawIconByPath(e, u, d, h) : c !== void 0 && Ht.drawNoSetting(e, fe, d, h), e.restore();
1508
1506
  }
1509
1507
  onPointerDown(e) {
1510
1508
  if (e.button === 2)
1511
1509
  return;
1512
- const { row: t, col: n, unitId: i, subUnitId: a, tableId: s } = this._filterParams;
1513
- this._contextService.getContextValue(ge) || !this._commandService.hasCommand(bt.id) || setTimeout(() => {
1510
+ const { row: t, col: r, unitId: i, subUnitId: a, tableId: l } = this._filterParams;
1511
+ this._contextService.getContextValue(pe) || !this._commandService.hasCommand(mt.id) || setTimeout(() => {
1514
1512
  const d = {
1515
1513
  row: t,
1516
- col: n,
1514
+ col: r,
1517
1515
  unitId: i,
1518
1516
  subUnitId: a,
1519
- tableId: s
1517
+ tableId: l
1520
1518
  };
1521
- this._commandService.executeCommand(bt.id, d);
1519
+ this._commandService.executeCommand(mt.id, d);
1522
1520
  }, 200);
1523
1521
  }
1524
1522
  onPointerEnter() {
@@ -1528,23 +1526,23 @@ let gt = class extends Br {
1528
1526
  this._hovered = !1, this.makeDirty(!0);
1529
1527
  }
1530
1528
  };
1531
- gt = _i([
1532
- dt(2, ft),
1533
- dt(3, ee),
1534
- dt(4, N(jt))
1535
- ], gt);
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--)
1538
- (s = r[a]) && (i = s(i) || i);
1529
+ pt = _i([
1530
+ vt(2, St),
1531
+ vt(3, ce),
1532
+ vt(4, x(En))
1533
+ ], pt);
1534
+ var Ti = Object.getOwnPropertyDescriptor, wi = (n, e, t, r) => {
1535
+ for (var i = r > 1 ? void 0 : r ? Ti(e, t) : e, a = n.length - 1, l; a >= 0; a--)
1536
+ (l = n[a]) && (i = l(i) || i);
1539
1537
  return i;
1540
- }, Ie = (r, e) => (t, n) => e(t, n, r);
1541
- const wi = 5e3;
1542
- let mt = class extends Wt {
1543
- constructor(e, t, n, i, a, s, c, d) {
1538
+ }, Je = (n, e) => (t, r) => e(t, r, n);
1539
+ const Ii = 5e3;
1540
+ let ft = class extends Zt {
1541
+ constructor(e, t, r, i, a) {
1544
1542
  super();
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();
1543
+ j(this, "_buttonRenderDisposable", null);
1544
+ j(this, "_tableFilterButtonShapes", []);
1545
+ this._context = e, this._injector = t, this._sheetSkeletonManagerService = r, this._sheetInterceptorService = i, this._tableManager = a, this._initRenderer();
1548
1546
  }
1549
1547
  dispose() {
1550
1548
  super.dispose(), this._disposeRendering();
@@ -1552,16 +1550,16 @@ let mt = class extends Wt {
1552
1550
  _initRenderer() {
1553
1551
  const e = this._tableManager;
1554
1552
  this._sheetSkeletonManagerService.currentSkeleton$.pipe(
1555
- Re((t) => {
1553
+ Ne((t) => {
1556
1554
  var c;
1557
- if (!t) return X(null);
1558
- const { unit: n, unitId: i } = this._context, a = ((c = n.getActiveSheet()) == null ? void 0 : c.getSheetId()) || "", s = () => ({
1555
+ if (!t) return J(null);
1556
+ const { unit: r, unitId: i } = this._context, a = ((c = r.getActiveSheet()) == null ? void 0 : c.getSheetId()) || "", l = () => ({
1559
1557
  unitId: i,
1560
1558
  worksheetId: a,
1561
- tableFilterRanges: this._tableManager.getSheetFilterRangeWithState(n.getUnitId(), a),
1559
+ tableFilterRanges: this._tableManager.getSheetFilterRangeWithState(r.getUnitId(), a),
1562
1560
  skeleton: t.skeleton
1563
1561
  });
1564
- return Ct(
1562
+ return _t(
1565
1563
  e.tableAdd$,
1566
1564
  e.tableNameChanged$,
1567
1565
  e.tableRangeChanged$,
@@ -1569,50 +1567,50 @@ let mt = class extends Wt {
1569
1567
  e.tableDelete$,
1570
1568
  e.tableFilterChanged$
1571
1569
  ).pipe(
1572
- gn(() => s()),
1573
- Jt(s())
1570
+ mr(() => l()),
1571
+ en(l())
1574
1572
  );
1575
1573
  }),
1576
- mn(this.dispose$)
1574
+ pr(this.dispose$)
1577
1575
  ).subscribe((t) => {
1578
1576
  this._disposeRendering(), !(!t || !t.tableFilterRanges) && this._renderButtons(t);
1579
1577
  });
1580
1578
  }
1581
1579
  _renderButtons(e) {
1582
- const { tableFilterRanges: t, unitId: n, skeleton: i, worksheetId: a } = e, { scene: s } = this._context;
1580
+ const { tableFilterRanges: t, unitId: r, skeleton: i, worksheetId: a } = e, { scene: l } = this._context;
1583
1581
  for (const { range: c, states: d, tableId: h } of t) {
1584
- const { startRow: u, startColumn: b, endColumn: S } = c;
1585
- this._interceptCellContent(n, a, c);
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)
1582
+ const { startRow: u, startColumn: g, endColumn: S } = c;
1583
+ this._interceptCellContent(r, a, c);
1584
+ for (let C = g; C <= S; C++) {
1585
+ const T = `sheets-table-filter-button-${u}-${C}`, O = nr(u, C, l, i), { startX: p, startY: E, endX: y, endY: D } = O, v = y - p, m = D - E;
1586
+ if (m <= Ke || v <= Ke)
1589
1587
  continue;
1590
- const L = d[C - b], M = I - me - Xe, f = k - me - Xe, V = {
1588
+ const L = d[C - g], M = y - fe - Ke, f = D - fe - Ke, U = {
1591
1589
  left: M,
1592
1590
  top: f,
1593
- height: me,
1594
- width: me,
1595
- zIndex: wi,
1591
+ height: fe,
1592
+ width: fe,
1593
+ zIndex: Ii,
1596
1594
  cellHeight: m,
1597
1595
  cellWidth: v,
1598
- filterParams: { unitId: n, subUnitId: a, row: u, col: C, buttonState: L, tableId: h }
1599
- }, P = this._injector.createInstance(gt, T, V);
1596
+ filterParams: { unitId: r, subUnitId: a, row: u, col: C, buttonState: L, tableId: h }
1597
+ }, P = this._injector.createInstance(pt, T, U);
1600
1598
  this._tableFilterButtonShapes.push(P);
1601
1599
  }
1602
1600
  }
1603
- s.addObjects(this._tableFilterButtonShapes), s.makeDirty();
1601
+ l.addObjects(this._tableFilterButtonShapes), l.makeDirty();
1604
1602
  }
1605
- _interceptCellContent(e, t, n) {
1606
- const { startRow: i, startColumn: a, endColumn: s } = n;
1607
- this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Rn.CELL_CONTENT, {
1608
- effect: xr.Style,
1603
+ _interceptCellContent(e, t, r) {
1604
+ const { startRow: i, startColumn: a, endColumn: l } = r;
1605
+ this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Rr.CELL_CONTENT, {
1606
+ effect: Ln.Style,
1609
1607
  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({
1608
+ const { row: u, col: g, unitId: S, subUnitId: C } = d;
1609
+ return S !== e || C !== t || u !== i || g < a || g > l ? h(c) : h({
1612
1610
  ...c,
1613
1611
  fontRenderExtension: {
1614
1612
  ...c == null ? void 0 : c.fontRenderExtension,
1615
- rightOffset: me
1613
+ rightOffset: fe
1616
1614
  }
1617
1615
  });
1618
1616
  },
@@ -1624,66 +1622,63 @@ let mt = class extends Wt {
1624
1622
  this._tableFilterButtonShapes.forEach((t) => t.dispose()), (e = this._buttonRenderDisposable) == null || e.dispose(), this._buttonRenderDisposable = null, this._tableFilterButtonShapes = [];
1625
1623
  }
1626
1624
  };
1627
- mt = yi([
1628
- Ie(1, N(He)),
1629
- Ie(2, N(at)),
1630
- Ie(3, N(jt)),
1631
- Ie(4, N(ir)),
1632
- Ie(5, ee),
1633
- Ie(6, Jr),
1634
- Ie(7, N(te))
1635
- ], mt);
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: [
1625
+ ft = wi([
1626
+ Je(1, x(Ve)),
1627
+ Je(2, x(lt)),
1628
+ Je(3, x(sn)),
1629
+ Je(4, x(ne))
1630
+ ], ft);
1631
+ const yi = (n) => {
1632
+ const { unitId: e, subUnitId: t, range: r, onCancel: i, onConfirm: a, tableId: l } = n, c = R(ne), [d, h] = q(r), [u, g] = q(""), S = R(ue), C = R(_e);
1633
+ return /* @__PURE__ */ _(Tt, { children: [
1639
1634
  /* @__PURE__ */ o(
1640
- $n,
1635
+ $r,
1641
1636
  {
1642
1637
  maxRangeCount: 1,
1643
1638
  unitId: e,
1644
1639
  subUnitId: t,
1645
- initialValue: kt(n),
1640
+ initialValue: Bt(r),
1646
1641
  onChange: (T, O) => {
1647
- const p = kt(n), E = Ln(O).range, I = st(C, { unitId: e, subUnitId: t });
1648
- if (!I)
1642
+ const p = Bt(r), E = Lr(O).range, y = ot(C, { unitId: e, subUnitId: t });
1643
+ if (!y)
1649
1644
  return;
1650
- if (I.worksheet.getMergeData().some((P) => pe.intersects(E, P))) {
1651
- b(S.t("sheets-table.tableRangeWithMergeError"));
1645
+ if (y.worksheet.getMergeData().some((P) => Ce.intersects(E, P))) {
1646
+ g(S.t("sheets-table.tableRangeWithMergeError"));
1652
1647
  return;
1653
1648
  }
1654
1649
  if (c.getTablesBySubunitId(e, t).some((P) => {
1655
- if (P.getId() === s)
1650
+ if (P.getId() === l)
1656
1651
  return !1;
1657
- const q = P.getRange();
1658
- return pe.intersects(E, q);
1652
+ const Q = P.getRange();
1653
+ return Ce.intersects(E, Q);
1659
1654
  })) {
1660
- b(S.t("sheets-table.tableRangeWithOtherTableError"));
1655
+ g(S.t("sheets-table.tableRangeWithOtherTableError"));
1661
1656
  return;
1662
1657
  }
1663
1658
  const { startRow: M, endRow: f } = E;
1664
1659
  if (M === f) {
1665
- b(S.t("sheets-table.tableRangeSingleRowError"));
1660
+ g(S.t("sheets-table.tableRangeSingleRowError"));
1666
1661
  return;
1667
1662
  }
1668
1663
  if (p !== O) {
1669
- if (s) {
1670
- const P = c.getTableById(e, s);
1664
+ if (l) {
1665
+ const P = c.getTableById(e, l);
1671
1666
  if (P) {
1672
- const q = P.getRange();
1673
- if (pe.intersects(E, q) && q.startRow === E.startRow) {
1674
- h(E), b(""), a({
1667
+ const Q = P.getRange();
1668
+ if (Ce.intersects(E, Q) && Q.startRow === E.startRow) {
1669
+ h(E), g(""), a({
1675
1670
  unitId: e,
1676
1671
  subUnitId: t,
1677
1672
  range: E
1678
1673
  });
1679
1674
  return;
1680
1675
  } else {
1681
- b(S.t("sheets-table.updateError"));
1676
+ g(S.t("sheets-table.updateError"));
1682
1677
  return;
1683
1678
  }
1684
1679
  }
1685
1680
  }
1686
- h(E), b("");
1681
+ h(E), g("");
1687
1682
  }
1688
1683
  },
1689
1684
  supportAcrossSheet: !1
@@ -1691,9 +1686,9 @@ const Ii = (r) => {
1691
1686
  ),
1692
1687
  u && /* @__PURE__ */ o("div", { className: "univer-mt-1 univer-text-xs univer-text-red-500", children: u }),
1693
1688
  /* @__PURE__ */ _("div", { className: "univer-mt-4 univer-flex univer-justify-end", children: [
1694
- /* @__PURE__ */ o(We, { onClick: i, children: S.t("sheets-table.cancel") }),
1689
+ /* @__PURE__ */ o(Ze, { onClick: i, children: S.t("sheets-table.cancel") }),
1695
1690
  /* @__PURE__ */ o(
1696
- We,
1691
+ Ze,
1697
1692
  {
1698
1693
  variant: "primary",
1699
1694
  onClick: () => {
@@ -1709,108 +1704,107 @@ const Ii = (r) => {
1709
1704
  )
1710
1705
  ] })
1711
1706
  ] });
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$, {
1707
+ }, Mi = (n) => {
1708
+ var Le, we, Ie, I, A, N, F, Ae, de, qe, ut, Ye;
1709
+ const { unitId: e, subUnitId: t, tableId: r } = n, i = R(ce), a = R(ue), l = R(ne), c = l.getTableById(e, r), d = R(an), h = R(xe), u = Re(d.rangeThemeMapChange$), g = Re(h.refreshTable$), S = R($n), [, C] = q(Math.random()), T = Re(l.tableThemeChanged$, {
1715
1710
  theme: c == null ? void 0 : c.getTableStyleId(),
1716
1711
  oldTheme: c == null ? void 0 : c.getTableStyleId(),
1717
1712
  unitId: e,
1718
1713
  subUnitId: t,
1719
- tableId: n
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) => {
1721
- i.executeCommand(vt.id, {
1714
+ tableId: r
1715
+ }), O = d.getRegisteredRangeThemes().filter((b) => b == null ? void 0 : b.startsWith(Dr)), p = d.getALLRegisteredTheme(e).filter((b) => b == null ? void 0 : b.startsWith(ht)), E = c == null ? void 0 : c.getTableStyleId(), y = p.find((b) => b === E), D = y || p[0], v = d.getCustomRangeThemeStyle(e, D), m = (Ie = (we = (Le = v == null ? void 0 : v.getHeaderRowStyle()) == null ? void 0 : Le.bg) == null ? void 0 : we.rgb) != null ? Ie : me, L = (N = (A = (I = v == null ? void 0 : v.getFirstRowStyle()) == null ? void 0 : I.bg) == null ? void 0 : A.rgb) != null ? N : me, M = (de = (Ae = (F = v == null ? void 0 : v.getSecondRowStyle()) == null ? void 0 : F.bg) == null ? void 0 : Ae.rgb) != null ? de : me, f = (Ye = (ut = (qe = v == null ? void 0 : v.getLastRowStyle()) == null ? void 0 : qe.bg) == null ? void 0 : ut.rgb) != null ? Ye : me, [U, P] = q(null), Q = (b) => {
1716
+ i.executeCommand(bt.id, {
1722
1717
  unitId: e,
1723
- tableId: n,
1724
- theme: g
1718
+ tableId: r,
1719
+ theme: b
1725
1720
  });
1726
- }, D = () => {
1721
+ }, B = () => {
1727
1722
  if (p.length >= 11) {
1728
1723
  S.emit(a.t("sheets-table.customTooMore"));
1729
1724
  return;
1730
1725
  }
1731
- const g = p[p.length - 1];
1732
- let y = `${ut}1`;
1733
- if (g) {
1734
- const G = Number(g.split("-")[2]);
1735
- y = `${ut}${G + 1}`;
1726
+ const b = p[p.length - 1];
1727
+ let w = `${ht}1`;
1728
+ if (b) {
1729
+ const K = Number(b.split("-")[2]);
1730
+ w = `${ht}${K + 1}`;
1736
1731
  }
1737
- const z = new xn(y, { ...Wr });
1738
- i.executeCommand(Zr.id, {
1732
+ const X = new Nr(w, { ...Yn });
1733
+ i.executeCommand(Qn.id, {
1739
1734
  unitId: e,
1740
- tableId: n,
1741
- themeStyle: z
1735
+ tableId: r,
1736
+ themeStyle: X
1742
1737
  });
1743
- }, K = (g, y) => {
1744
- i.executeCommand(tr.id, {
1738
+ }, ee = (b, w) => {
1739
+ i.executeCommand(nn.id, {
1745
1740
  unitId: e,
1746
1741
  subUnitId: t,
1747
- styleName: g,
1748
- style: y
1742
+ styleName: b,
1743
+ style: w
1749
1744
  });
1750
- }, Se = (g) => {
1751
- i.executeCommand(qr.id, {
1745
+ }, Te = (b) => {
1746
+ i.executeCommand(zn.id, {
1752
1747
  unitId: e,
1753
- tableId: n,
1754
- themeName: g
1748
+ tableId: r,
1749
+ themeName: b
1755
1750
  });
1756
1751
  };
1757
- return sr(() => {
1752
+ return on(() => {
1758
1753
  C(Math.random());
1759
- }, [u, b]), c ? /* @__PURE__ */ _("div", { children: [
1754
+ }, [u, g]), c ? /* @__PURE__ */ _("div", { children: [
1760
1755
  /* @__PURE__ */ o("h5", { children: a.t("sheets-table.defaultStyle") }),
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;
1756
+ /* @__PURE__ */ o("div", { className: "univer-flex univer-gap-2", children: O.map((b) => {
1757
+ var he, ve, ge, Y, ye, Me, Ue, je;
1758
+ const w = d.getDefaultRangeThemeStyle(b), X = ((ve = (he = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : he.bg) == null ? void 0 : ve.rgb) || me, K = ((Y = (ge = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : ge.bg) == null ? void 0 : Y.rgb) || me, se = ((Me = (ye = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : ye.bg) == null ? void 0 : Me.rgb) || me, le = ((je = (Ue = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : Ue.bg) == null ? void 0 : je.rgb) || me;
1764
1759
  return /* @__PURE__ */ _(
1765
1760
  "div",
1766
1761
  {
1767
1762
  className: "univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px",
1768
- onClick: () => q(g),
1763
+ onClick: () => Q(b),
1769
1764
  style: {
1770
- border: g === T.theme ? Dt : $e
1765
+ border: b === T.theme ? Ft : Oe
1771
1766
  },
1772
1767
  children: [
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}` } })
1768
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: X, border: `${z}` } }),
1769
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: K, border: `${z}` } }),
1770
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se, border: `${z}` } }),
1771
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: le, border: `${z}` } })
1777
1772
  ]
1778
1773
  },
1779
- g
1774
+ b
1780
1775
  );
1781
1776
  }) }),
1782
1777
  /* @__PURE__ */ o("h5", { children: a.t("sheets-table.customStyle") }),
1783
- /* @__PURE__ */ _("div", { className: "univer-w-full univer-rounded-sm univer-border univer-border-solid univer-border-gray-200", children: [
1778
+ /* @__PURE__ */ _("div", { className: k("univer-w-full univer-rounded-sm", H), children: [
1784
1779
  /* @__PURE__ */ _("div", { className: "univer-flex univer-flex-wrap univer-gap-2 univer-p-2", children: [
1785
1780
  /* @__PURE__ */ o(
1786
1781
  "div",
1787
1782
  {
1788
- className: `
1789
- univer-h-10 univer-w-8 univer-cursor-pointer univer-border univer-border-solid
1790
- univer-border-gray-200 univer-p-px univer-text-center univer-leading-10
1791
- `,
1792
- onClick: D,
1783
+ className: k(`
1784
+ univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px univer-text-center univer-leading-10
1785
+ `, H),
1786
+ onClick: B,
1793
1787
  children: "+"
1794
1788
  }
1795
1789
  ),
1796
- p.map((g) => {
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;
1790
+ p.map((b) => {
1791
+ var he, ve, ge, Y, ye, Me, Ue, je;
1792
+ const w = d.getCustomRangeThemeStyle(e, b), X = (ve = (he = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : he.bg) == null ? void 0 : ve.rgb, K = (Y = (ge = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : ge.bg) == null ? void 0 : Y.rgb, se = (Me = (ye = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : ye.bg) == null ? void 0 : Me.rgb, le = (je = (Ue = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : Ue.bg) == null ? void 0 : je.rgb;
1799
1793
  return /* @__PURE__ */ _(
1800
1794
  "div",
1801
1795
  {
1802
1796
  className: "univer-relative univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px",
1803
- onClick: () => q(g),
1797
+ onClick: () => Q(b),
1804
1798
  style: {
1805
- border: g === T.theme ? Dt : $e
1799
+ border: b === T.theme ? Ft : Oe
1806
1800
  },
1807
- onMouseEnter: () => P(g),
1801
+ onMouseEnter: () => P(b),
1808
1802
  onMouseLeave: () => P(null),
1809
1803
  children: [
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}` } }),
1804
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: X != null ? X : z, border: `${X ? z : Oe}` } }),
1805
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : z, border: `${K ? z : Oe}` } }),
1806
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : z, border: `${se ? z : Oe}` } }),
1807
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: le != null ? le : z, border: `${le ? z : Oe}` } }),
1814
1808
  /* @__PURE__ */ o(
1815
1809
  "div",
1816
1810
  {
@@ -1819,80 +1813,76 @@ const Ii = (r) => {
1819
1813
  univer-rounded-md univer-bg-gray-200 univer-text-center univer-text-xs
1820
1814
  univer-leading-[10px]
1821
1815
  `,
1822
- style: { display: V === g ? "block" : "none" },
1823
- onClick: (wr) => {
1824
- wr.stopPropagation(), Se(g);
1816
+ style: { display: U === b ? "block" : "none" },
1817
+ onClick: (Mn) => {
1818
+ Mn.stopPropagation(), Te(b);
1825
1819
  },
1826
1820
  children: "x"
1827
1821
  }
1828
1822
  )
1829
1823
  ]
1830
1824
  },
1831
- g
1825
+ b
1832
1826
  );
1833
1827
  })
1834
1828
  ] }),
1835
- I && /* @__PURE__ */ _(St, { children: [
1829
+ y && /* @__PURE__ */ _(Tt, { children: [
1836
1830
  /* @__PURE__ */ o("div", { className: "univer-h-px univer-w-full univer-bg-gray-200" }),
1837
1831
  /* @__PURE__ */ _("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
1838
1832
  /* @__PURE__ */ _("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1839
1833
  /* @__PURE__ */ o(
1840
1834
  "div",
1841
1835
  {
1842
- className: `
1843
- univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-border
1844
- univer-border-solid univer-border-gray-200 univer-text-center univer-leading-9
1845
- `,
1836
+ className: k(`
1837
+ univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center
1838
+ univer-leading-9
1839
+ `, H),
1846
1840
  style: {
1847
1841
  background: m,
1848
- color: new le(m).isDark() ? "#fff" : "#000"
1842
+ color: new oe(m).isDark() ? "#fff" : "#000"
1849
1843
  },
1850
1844
  children: a.t("sheets-table.header")
1851
1845
  }
1852
1846
  ),
1853
1847
  /* @__PURE__ */ o(
1854
- ke,
1848
+ De,
1855
1849
  {
1856
1850
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1857
- Qe,
1851
+ ze,
1858
1852
  {
1859
1853
  value: m,
1860
- onChange: (g) => {
1861
- const y = xt("headerRowStyle", {
1854
+ onChange: (b) => {
1855
+ const w = Et("headerRowStyle", {
1862
1856
  bg: {
1863
- rgb: g
1857
+ rgb: b
1864
1858
  },
1865
1859
  cl: {
1866
- rgb: new le(g).isDark() ? "#fff" : "#000"
1860
+ rgb: new oe(b).isDark() ? "#fff" : "#000"
1867
1861
  }
1868
1862
  });
1869
- K(c.getTableStyleId(), { headerRowStyle: y });
1863
+ ee(c.getTableStyleId(), { headerRowStyle: w });
1870
1864
  }
1871
1865
  }
1872
1866
  ) }),
1873
1867
  children: /* @__PURE__ */ _(
1874
1868
  "div",
1875
1869
  {
1876
- className: `
1870
+ className: k(`
1877
1871
  univer-flex univer-cursor-pointer univer-items-center univer-gap-2
1878
- univer-rounded-sm univer-border univer-border-solid univer-border-gray-200
1879
- univer-bg-white univer-p-1
1880
- `,
1872
+ univer-rounded-sm univer-bg-white univer-p-1
1873
+ `, H),
1881
1874
  children: [
1882
1875
  /* @__PURE__ */ o(
1883
1876
  "div",
1884
1877
  {
1885
- className: `
1886
- univer-h-4 univer-w-4 univer-rounded-[8px] univer-border
1887
- univer-border-solid univer-border-gray-200 univer-bg-slate-400
1888
- `,
1878
+ className: k("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
1889
1879
  style: {
1890
1880
  background: m,
1891
- color: new le(m).isDark() ? "#fff" : "#000"
1881
+ color: new oe(m).isDark() ? "#fff" : "#000"
1892
1882
  }
1893
1883
  }
1894
1884
  ),
1895
- /* @__PURE__ */ o(je, { className: "univer-h-2 univer-w-2" })
1885
+ /* @__PURE__ */ o(We, { className: "univer-h-2 univer-w-2" })
1896
1886
  ]
1897
1887
  }
1898
1888
  )
@@ -1903,32 +1893,32 @@ const Ii = (r) => {
1903
1893
  /* @__PURE__ */ o(
1904
1894
  "div",
1905
1895
  {
1906
- className: `
1907
- univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-border
1908
- univer-border-solid univer-border-gray-200 univer-text-center univer-leading-9
1909
- `,
1896
+ className: k(`
1897
+ univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center
1898
+ univer-leading-9
1899
+ `, H),
1910
1900
  style: {
1911
1901
  background: L,
1912
- color: new le(L).isDark() ? "#fff" : "#000"
1902
+ color: new oe(L).isDark() ? "#fff" : "#000"
1913
1903
  },
1914
1904
  children: a.t("sheets-table.firstLine")
1915
1905
  }
1916
1906
  ),
1917
1907
  /* @__PURE__ */ o(
1918
- ke,
1908
+ De,
1919
1909
  {
1920
1910
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1921
- Qe,
1911
+ ze,
1922
1912
  {
1923
1913
  value: L,
1924
- onChange: (g) => {
1925
- K(c.getTableStyleId(), {
1914
+ onChange: (b) => {
1915
+ ee(c.getTableStyleId(), {
1926
1916
  firstRowStyle: {
1927
1917
  bg: {
1928
- rgb: g
1918
+ rgb: b
1929
1919
  },
1930
1920
  cl: {
1931
- rgb: new le(g).isDark() ? "#fff" : "#000"
1921
+ rgb: new oe(b).isDark() ? "#fff" : "#000"
1932
1922
  }
1933
1923
  }
1934
1924
  });
@@ -1938,23 +1928,19 @@ const Ii = (r) => {
1938
1928
  children: /* @__PURE__ */ _(
1939
1929
  "div",
1940
1930
  {
1941
- className: `
1931
+ className: k(`
1942
1932
  univer-flex univer-cursor-pointer univer-items-center univer-gap-2
1943
- univer-rounded-sm univer-border univer-border-solid univer-border-gray-200
1944
- univer-bg-white univer-p-1
1945
- `,
1933
+ univer-rounded-sm univer-bg-white univer-p-1
1934
+ `, H),
1946
1935
  children: [
1947
1936
  /* @__PURE__ */ o(
1948
1937
  "div",
1949
1938
  {
1950
- className: `
1951
- univer-h-4 univer-w-4 univer-rounded-[8px] univer-border
1952
- univer-border-solid univer-border-gray-200 univer-bg-slate-400
1953
- `,
1939
+ className: k("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
1954
1940
  style: { background: L }
1955
1941
  }
1956
1942
  ),
1957
- /* @__PURE__ */ o(je, { className: "univer-h-2 univer-w-2" })
1943
+ /* @__PURE__ */ o(We, { className: "univer-h-2 univer-w-2" })
1958
1944
  ]
1959
1945
  }
1960
1946
  )
@@ -1965,31 +1951,31 @@ const Ii = (r) => {
1965
1951
  /* @__PURE__ */ o(
1966
1952
  "div",
1967
1953
  {
1968
- className: `
1969
- univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-border
1970
- univer-border-solid univer-border-gray-200 univer-text-center univer-leading-9
1971
- `,
1954
+ className: k(`
1955
+ univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center
1956
+ univer-leading-9
1957
+ `, H),
1972
1958
  style: {
1973
1959
  background: M,
1974
- color: new le(M).isDark() ? "#fff" : "#000"
1960
+ color: new oe(M).isDark() ? "#fff" : "#000"
1975
1961
  },
1976
1962
  children: a.t("sheets-table.secondLine")
1977
1963
  }
1978
1964
  ),
1979
1965
  /* @__PURE__ */ o(
1980
- ke,
1966
+ De,
1981
1967
  {
1982
1968
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1983
- Qe,
1969
+ ze,
1984
1970
  {
1985
1971
  value: M,
1986
- onChange: (g) => K(c.getTableStyleId(), {
1972
+ onChange: (b) => ee(c.getTableStyleId(), {
1987
1973
  secondRowStyle: {
1988
1974
  bg: {
1989
- rgb: g
1975
+ rgb: b
1990
1976
  },
1991
1977
  cl: {
1992
- rgb: new le(g).isDark() ? "#fff" : "#000"
1978
+ rgb: new oe(b).isDark() ? "#fff" : "#000"
1993
1979
  }
1994
1980
  }
1995
1981
  })
@@ -1998,23 +1984,19 @@ const Ii = (r) => {
1998
1984
  children: /* @__PURE__ */ _(
1999
1985
  "div",
2000
1986
  {
2001
- className: `
1987
+ className: k(`
2002
1988
  univer-flex univer-cursor-pointer univer-items-center univer-gap-2
2003
- univer-rounded-sm univer-border univer-border-solid univer-border-gray-200
2004
- univer-bg-white univer-p-1
2005
- `,
1989
+ univer-rounded-sm univer-bg-white univer-p-1
1990
+ `),
2006
1991
  children: [
2007
1992
  /* @__PURE__ */ o(
2008
1993
  "div",
2009
1994
  {
2010
- className: `
2011
- univer-h-4 univer-w-4 univer-rounded-[8px] univer-border
2012
- univer-border-solid univer-border-gray-200 univer-bg-slate-400
2013
- `,
1995
+ className: k("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
2014
1996
  style: { background: M }
2015
1997
  }
2016
1998
  ),
2017
- /* @__PURE__ */ o(je, { className: "univer-h-2 univer-w-2" })
1999
+ /* @__PURE__ */ o(We, { className: "univer-h-2 univer-w-2" })
2018
2000
  ]
2019
2001
  }
2020
2002
  )
@@ -2025,57 +2007,53 @@ const Ii = (r) => {
2025
2007
  /* @__PURE__ */ o(
2026
2008
  "div",
2027
2009
  {
2028
- className: `
2029
- univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-border
2030
- univer-border-solid univer-border-gray-200 univer-text-center univer-leading-9
2031
- `,
2010
+ className: k(`
2011
+ univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center
2012
+ univer-leading-9
2013
+ `, H),
2032
2014
  style: {
2033
2015
  background: f,
2034
- color: new le(f).isDark() ? "#fff" : "#000"
2016
+ color: new oe(f).isDark() ? "#fff" : "#000"
2035
2017
  },
2036
2018
  children: a.t("sheets-table.footer")
2037
2019
  }
2038
2020
  ),
2039
2021
  /* @__PURE__ */ o(
2040
- ke,
2022
+ De,
2041
2023
  {
2042
2024
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
2043
- Qe,
2025
+ ze,
2044
2026
  {
2045
2027
  value: f,
2046
- onChange: (g) => {
2047
- const y = xt("lastRowStyle", {
2028
+ onChange: (b) => {
2029
+ const w = Et("lastRowStyle", {
2048
2030
  bg: {
2049
- rgb: g
2031
+ rgb: b
2050
2032
  },
2051
2033
  cl: {
2052
- rgb: new le(g).isDark() ? "#fff" : "#000"
2034
+ rgb: new oe(b).isDark() ? "#fff" : "#000"
2053
2035
  }
2054
2036
  });
2055
- K(c.getTableStyleId(), { lastRowStyle: y });
2037
+ ee(c.getTableStyleId(), { lastRowStyle: w });
2056
2038
  }
2057
2039
  }
2058
2040
  ) }),
2059
2041
  children: /* @__PURE__ */ _(
2060
2042
  "div",
2061
2043
  {
2062
- className: `
2044
+ className: k(`
2063
2045
  univer-flex univer-cursor-pointer univer-items-center univer-gap-2
2064
- univer-rounded-sm univer-border univer-border-solid univer-border-gray-200
2065
- univer-bg-white univer-p-1
2066
- `,
2046
+ univer-rounded-sm univer-bg-white univer-p-1
2047
+ `, H),
2067
2048
  children: [
2068
2049
  /* @__PURE__ */ o(
2069
2050
  "div",
2070
2051
  {
2071
- className: `
2072
- univer-h-4 univer-w-4 univer-rounded-[8px] univer-border
2073
- univer-border-solid univer-border-gray-200 univer-bg-slate-400
2074
- `,
2052
+ className: k("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
2075
2053
  style: { background: f }
2076
2054
  }
2077
2055
  ),
2078
- /* @__PURE__ */ o(je, { className: "univer-h-2 univer-w-2" })
2056
+ /* @__PURE__ */ o(We, { className: "univer-h-2 univer-w-2" })
2079
2057
  ]
2080
2058
  }
2081
2059
  )
@@ -2086,124 +2064,124 @@ const Ii = (r) => {
2086
2064
  ] })
2087
2065
  ] })
2088
2066
  ] }) : null;
2089
- }, Cr = "sheet.table.context-insert_menu-id", Sr = "sheet.table.context-remove_menu-id";
2090
- function Ri(r) {
2067
+ }, _n = "sheet.table.context-insert_menu-id", Tn = "sheet.table.context-remove_menu-id";
2068
+ function Ri(n) {
2091
2069
  return {
2092
- id: wt.id,
2093
- type: Ne.BUTTON,
2094
- icon: lr,
2070
+ id: Mt.id,
2071
+ type: Ee.BUTTON,
2072
+ icon: cn,
2095
2073
  tooltip: "sheets-table.title",
2096
2074
  title: "sheets-table.title"
2097
2075
  };
2098
2076
  }
2099
- function xi(r) {
2077
+ function Ni(n) {
2100
2078
  return {
2101
- id: Cr,
2102
- type: Ne.SUBITEMS,
2079
+ id: _n,
2080
+ type: Ee.SUBITEMS,
2103
2081
  icon: "Insert",
2104
2082
  title: "sheets-table.insert.main",
2105
- hidden$: _r(r)
2083
+ hidden$: wn(n)
2106
2084
  };
2107
2085
  }
2108
- function Ni(r) {
2086
+ function xi(n) {
2109
2087
  return {
2110
- id: Sr,
2111
- type: Ne.SUBITEMS,
2088
+ id: Tn,
2089
+ type: Ee.SUBITEMS,
2112
2090
  icon: "Reduce",
2113
2091
  title: "sheets-table.remove.main",
2114
- hidden$: _r(r)
2092
+ hidden$: wn(n)
2115
2093
  };
2116
2094
  }
2117
- function Ei(r) {
2095
+ function Ei(n) {
2118
2096
  return {
2119
- id: zt.id,
2120
- type: Ne.BUTTON,
2097
+ id: Gt.id,
2098
+ type: Ee.BUTTON,
2121
2099
  title: "sheets-table.insert.row",
2122
- hidden$: Tr(r)
2100
+ hidden$: In(n)
2123
2101
  };
2124
2102
  }
2125
- function Li(r) {
2103
+ function Li(n) {
2126
2104
  return {
2127
- id: Qt.id,
2105
+ id: zt.id,
2128
2106
  title: "sheets-table.insert.col",
2129
- type: Ne.BUTTON
2107
+ type: Ee.BUTTON
2130
2108
  };
2131
2109
  }
2132
- function $i(r) {
2110
+ function $i(n) {
2133
2111
  return {
2134
- id: Yt.id,
2135
- type: Ne.BUTTON,
2112
+ id: Qt.id,
2113
+ type: Ee.BUTTON,
2136
2114
  title: "sheets-table.remove.row",
2137
- hidden$: Tr(r)
2115
+ hidden$: In(n)
2138
2116
  };
2139
2117
  }
2140
- function Oi(r) {
2118
+ function Oi(n) {
2141
2119
  return {
2142
- id: qt.id,
2120
+ id: Yt.id,
2143
2121
  title: "sheets-table.remove.col",
2144
- type: Ne.BUTTON
2122
+ type: Ee.BUTTON
2145
2123
  };
2146
2124
  }
2147
- function _r(r) {
2148
- const e = r.get(lt);
2149
- return r.get(Ce).getCurrentTypeOfUnit$(it.UNIVER_SHEET).pipe(
2150
- Re((i) => i ? i.activeSheet$.pipe(
2151
- Re((a) => a ? e.selectionMoveEnd$.pipe(
2152
- Re((s) => {
2153
- if (!s.length || s.length > 1) return X(!0);
2154
- const d = s[0].range, u = r.get(Gt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2155
- return X(!u);
2125
+ function wn(n) {
2126
+ const e = n.get(ct);
2127
+ return n.get(_e).getCurrentTypeOfUnit$(st.UNIVER_SHEET).pipe(
2128
+ Ne((i) => i ? i.activeSheet$.pipe(
2129
+ Ne((a) => a ? e.selectionMoveEnd$.pipe(
2130
+ Ne((l) => {
2131
+ if (!l.length || l.length > 1) return J(!0);
2132
+ const d = l[0].range, u = n.get(Xt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2133
+ return J(!u);
2156
2134
  })
2157
- ) : X(!0))
2158
- ) : X(!0))
2135
+ ) : J(!0))
2136
+ ) : J(!0))
2159
2137
  );
2160
2138
  }
2161
- function Tr(r) {
2162
- const e = r.get(lt);
2163
- return r.get(Ce).getCurrentTypeOfUnit$(it.UNIVER_SHEET).pipe(
2164
- Re((i) => i ? i.activeSheet$.pipe(
2165
- Re((a) => a ? e.selectionMoveEnd$.pipe(
2166
- Re((s) => {
2167
- if (!s.length || s.length > 1) return X(!0);
2168
- const d = s[0].range, u = r.get(Gt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2139
+ function In(n) {
2140
+ const e = n.get(ct);
2141
+ return n.get(_e).getCurrentTypeOfUnit$(st.UNIVER_SHEET).pipe(
2142
+ Ne((i) => i ? i.activeSheet$.pipe(
2143
+ Ne((a) => a ? e.selectionMoveEnd$.pipe(
2144
+ Ne((l) => {
2145
+ if (!l.length || l.length > 1) return J(!0);
2146
+ const d = l[0].range, u = n.get(Xt).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2169
2147
  if (!u)
2170
- return X(!0);
2171
- const b = u.getRange();
2172
- return d.startRow === b.startRow ? X(!0) : X(!1);
2148
+ return J(!0);
2149
+ const g = u.getRange();
2150
+ return d.startRow === g.startRow ? J(!0) : J(!1);
2173
2151
  })
2174
- ) : X(!0))
2175
- ) : X(!0))
2152
+ ) : J(!0))
2153
+ ) : J(!0))
2176
2154
  );
2177
2155
  }
2178
2156
  const Pi = {
2179
- [cn.FORMULAS_VIEW]: {
2180
- [wt.id]: {
2157
+ [ur.FORMULAS_VIEW]: {
2158
+ [Mt.id]: {
2181
2159
  order: 0,
2182
2160
  menuItemFactory: Ri
2183
2161
  }
2184
2162
  },
2185
- [ln.MAIN_AREA]: {
2186
- [on.LAYOUT]: {
2187
- [Cr]: {
2163
+ [or.MAIN_AREA]: {
2164
+ [cr.LAYOUT]: {
2165
+ [_n]: {
2188
2166
  order: 5,
2189
- menuItemFactory: xi,
2190
- [zt.id]: {
2167
+ menuItemFactory: Ni,
2168
+ [Gt.id]: {
2191
2169
  order: 1,
2192
2170
  menuItemFactory: Ei
2193
2171
  },
2194
- [Qt.id]: {
2172
+ [zt.id]: {
2195
2173
  order: 2,
2196
2174
  menuItemFactory: Li
2197
2175
  }
2198
2176
  },
2199
- [Sr]: {
2177
+ [Tn]: {
2200
2178
  order: 6,
2201
- menuItemFactory: Ni,
2202
- [Yt.id]: {
2179
+ menuItemFactory: xi,
2180
+ [Qt.id]: {
2203
2181
  order: 1,
2204
2182
  menuItemFactory: $i
2205
2183
  },
2206
- [qt.id]: {
2184
+ [Yt.id]: {
2207
2185
  order: 2,
2208
2186
  menuItemFactory: Oi
2209
2187
  }
@@ -2211,61 +2189,61 @@ const Pi = {
2211
2189
  }
2212
2190
  }
2213
2191
  };
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--)
2216
- (s = r[a]) && (i = s(i) || i);
2192
+ var ki = Object.getOwnPropertyDescriptor, Di = (n, e, t, r) => {
2193
+ for (var i = r > 1 ? void 0 : r ? ki(e, t) : e, a = n.length - 1, l; a >= 0; a--)
2194
+ (l = n[a]) && (i = l(i) || i);
2217
2195
  return i;
2218
- }, Ft = (r, e) => (t, n) => e(t, n, r);
2219
- let tt = class extends Fe {
2220
- constructor(r, e) {
2221
- super(), this._componentManager = r, this._menuManagerService = e, this._initComponents(), this._initMenu();
2196
+ }, Vt = (n, e) => (t, r) => e(t, r, n);
2197
+ let rt = class extends He {
2198
+ constructor(n, e) {
2199
+ super(), this._componentManager = n, this._menuManagerService = e, this._initComponents(), this._initMenu();
2222
2200
  }
2223
2201
  _initComponents() {
2224
2202
  [
2225
- [lr, mr],
2226
- [Pe, Ii],
2227
- [or, Mi]
2228
- ].forEach(([r, e]) => {
2229
- this.disposeWithMe(this._componentManager.register(r, e));
2203
+ [cn, fn],
2204
+ [ke, yi],
2205
+ [un, Mi]
2206
+ ].forEach(([n, e]) => {
2207
+ this.disposeWithMe(this._componentManager.register(n, e));
2230
2208
  });
2231
2209
  }
2232
2210
  _initMenu() {
2233
2211
  this._menuManagerService.mergeMenu(Pi);
2234
2212
  }
2235
2213
  };
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--)
2242
- (s = r[a]) && (i = s(i) || i);
2214
+ rt = Di([
2215
+ Vt(0, x(Kt)),
2216
+ Vt(1, x(dr))
2217
+ ], rt);
2218
+ var Bi = Object.getOwnPropertyDescriptor, Fi = (n, e, t, r) => {
2219
+ for (var i = r > 1 ? void 0 : r ? Bi(e, t) : e, a = n.length - 1, l; a >= 0; a--)
2220
+ (l = n[a]) && (i = l(i) || i);
2243
2221
  return i;
2244
- }, Ke = (r, e) => (t, n) => e(t, n, r);
2245
- let pt = class extends Wt {
2246
- constructor(r, e, t, n, i) {
2247
- super(), this._context = r, this._injector = e, this._sheetSkeletonManagerService = t, this._tableManager = n, this._sheetTableThemeUIController = i, this._initListener();
2222
+ }, et = (n, e) => (t, r) => e(t, r, n);
2223
+ let Ct = class extends Zt {
2224
+ constructor(n, e, t, r, i) {
2225
+ super(), this._context = n, this._injector = e, this._sheetSkeletonManagerService = t, this._tableManager = r, this._sheetTableThemeUIController = i, this._initListener();
2248
2226
  }
2249
2227
  _dirtySkeleton() {
2250
2228
  var e;
2251
2229
  (e = this._context.mainComponent) == null || e.makeDirty();
2252
- const r = this._sheetSkeletonManagerService.getCurrentParam();
2253
- if (r) {
2254
- const t = { ...r, dirty: !0 };
2230
+ const n = this._sheetSkeletonManagerService.getCurrentParam();
2231
+ if (n) {
2232
+ const t = { ...n, dirty: !0 };
2255
2233
  this._sheetSkeletonManagerService.reCalculate(t);
2256
2234
  }
2257
2235
  }
2258
2236
  _initListener() {
2259
- const r = this._tableManager, e = this._dirtySkeleton.bind(this);
2237
+ const n = this._tableManager, e = this._dirtySkeleton.bind(this);
2260
2238
  this.disposeWithMe(
2261
- Ct(
2262
- r.tableAdd$,
2263
- r.tableDelete$,
2264
- r.tableNameChanged$,
2265
- r.tableRangeChanged$,
2266
- r.tableThemeChanged$,
2267
- r.tableFilterChanged$,
2268
- r.tableInitStatus$,
2239
+ _t(
2240
+ n.tableAdd$,
2241
+ n.tableDelete$,
2242
+ n.tableNameChanged$,
2243
+ n.tableRangeChanged$,
2244
+ n.tableThemeChanged$,
2245
+ n.tableFilterChanged$,
2246
+ n.tableInitStatus$,
2269
2247
  this._sheetTableThemeUIController.refreshTable$
2270
2248
  ).subscribe(
2271
2249
  e
@@ -2273,50 +2251,50 @@ let pt = class extends Wt {
2273
2251
  );
2274
2252
  }
2275
2253
  };
2276
- pt = Fi([
2277
- Ke(1, N(He)),
2278
- Ke(2, N(at)),
2279
- Ke(3, N(te)),
2280
- Ke(4, N(xe))
2281
- ], pt);
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--)
2284
- (s = r[a]) && (i = s(i) || i);
2254
+ Ct = Fi([
2255
+ et(1, x(Ve)),
2256
+ et(2, x(lt)),
2257
+ et(3, x(ne)),
2258
+ et(4, x(xe))
2259
+ ], Ct);
2260
+ var Hi = Object.getOwnPropertyDescriptor, Vi = (n, e, t, r) => {
2261
+ for (var i = r > 1 ? void 0 : r ? Hi(e, t) : e, a = n.length - 1, l; a >= 0; a--)
2262
+ (l = n[a]) && (i = l(i) || i);
2285
2263
  return i;
2286
- }, ht = (r, e) => (t, n) => e(t, n, r);
2287
- let rt = class extends Fe {
2288
- constructor(r, e, t) {
2289
- super(), this._sheetInterceptorService = r, this._univerInstanceService = e, this._tableManager = t, this._initSelectionChange();
2264
+ }, gt = (n, e) => (t, r) => e(t, r, n);
2265
+ let it = class extends He {
2266
+ constructor(n, e, t) {
2267
+ super(), this._sheetInterceptorService = n, this._univerInstanceService = e, this._tableManager = t, this._initSelectionChange();
2290
2268
  }
2291
2269
  _initSelectionChange() {
2292
2270
  this.disposeWithMe(
2293
2271
  this._sheetInterceptorService.interceptCommand({
2294
- getMutations: (r) => {
2295
- if (r.id === tn.id) {
2296
- const e = st(this._univerInstanceService);
2272
+ getMutations: (n) => {
2273
+ if (n.id === rr.id) {
2274
+ const e = ot(this._univerInstanceService);
2297
2275
  if (!e)
2298
2276
  return { redos: [], undos: [] };
2299
- const t = r.params, { range: n } = t, { unitId: i, subUnitId: a, worksheet: s } = e, d = this._tableManager.getTablesBySubunitId(i, a).find((h) => {
2277
+ const t = n.params, { range: r } = t, { unitId: i, subUnitId: a, worksheet: l } = e, d = this._tableManager.getTablesBySubunitId(i, a).find((h) => {
2300
2278
  const u = h.getRange();
2301
- return pe.contains(u, n);
2279
+ return Ce.contains(u, r);
2302
2280
  });
2303
2281
  if (d) {
2304
2282
  const h = d.getRange(), u = {
2305
2283
  ...h,
2306
2284
  startRow: h.startRow + 1
2307
2285
  };
2308
- return pe.equals(h, n) ? { undos: [], redos: [] } : pe.equals(u, n) ? {
2286
+ return Ce.equals(h, r) ? { undos: [], redos: [] } : Ce.equals(u, r) ? {
2309
2287
  undos: [],
2310
2288
  redos: [
2311
2289
  {
2312
- id: $t.id,
2290
+ id: Pt.id,
2313
2291
  params: {
2314
2292
  unitId: i,
2315
2293
  subUnitId: a,
2316
2294
  selections: [
2317
2295
  {
2318
2296
  range: h,
2319
- primary: Lt(h, s)
2297
+ primary: Ot(h, l)
2320
2298
  }
2321
2299
  ]
2322
2300
  }
@@ -2326,14 +2304,14 @@ let rt = class extends Fe {
2326
2304
  undos: [],
2327
2305
  redos: [
2328
2306
  {
2329
- id: $t.id,
2307
+ id: Pt.id,
2330
2308
  params: {
2331
2309
  unitId: i,
2332
2310
  subUnitId: a,
2333
2311
  selections: [
2334
2312
  {
2335
2313
  range: u,
2336
- primary: Lt(u, s)
2314
+ primary: Ot(u, l)
2337
2315
  }
2338
2316
  ]
2339
2317
  }
@@ -2348,66 +2326,66 @@ let rt = class extends Fe {
2348
2326
  );
2349
2327
  }
2350
2328
  };
2351
- rt = Vi([
2352
- ht(0, N(ir)),
2353
- ht(1, N(Ce)),
2354
- ht(2, N(te))
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--)
2358
- (s = r[a]) && (i = s(i) || i);
2329
+ it = Vi([
2330
+ gt(0, x(sn)),
2331
+ gt(1, x(_e)),
2332
+ gt(2, x(ne))
2333
+ ], it);
2334
+ var Ai = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, ji = (n, e, t) => e in n ? Ai(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Wi = (n, e, t, r) => {
2335
+ for (var i = r > 1 ? void 0 : r ? Ui(e, t) : e, a = n.length - 1, l; a >= 0; a--)
2336
+ (l = n[a]) && (i = l(i) || i);
2359
2337
  return i;
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 {
2362
- constructor(r = {}, e, t, n, i) {
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);
2338
+ }, tt = (n, e) => (t, r) => e(t, r, n), yn = (n, e, t) => ji(n, typeof e != "symbol" ? e + "" : e, t);
2339
+ let at = class extends Pn {
2340
+ constructor(n = {}, e, t, r, i) {
2341
+ super(), this._config = n, this._injector = e, this._commandService = t, this._configService = r, this._renderManagerService = i, this._initRegisterCommand(), this._configService.setConfig(Sn, this._config);
2364
2342
  }
2365
2343
  onStarting() {
2366
- $r(this._injector, [
2344
+ kn(this._injector, [
2345
+ [Fe],
2367
2346
  [Be],
2368
- [De],
2369
- [tt],
2347
+ [rt],
2370
2348
  [xe],
2371
- [rt]
2349
+ [it]
2372
2350
  ]);
2373
2351
  }
2374
2352
  onReady() {
2375
- Or(this._injector, [
2353
+ Dn(this._injector, [
2354
+ [Fe],
2376
2355
  [Be],
2377
- [De],
2378
- [tt],
2356
+ [rt],
2379
2357
  [xe],
2380
- [rt]
2358
+ [it]
2381
2359
  ]);
2382
2360
  }
2383
2361
  onRendered() {
2384
2362
  this._registerRenderModules();
2385
2363
  }
2386
2364
  _registerRenderModules() {
2387
- const r = [
2388
- [mt],
2389
- [pt]
2365
+ const n = [
2366
+ [ft],
2367
+ [Ct]
2390
2368
  ];
2391
- this._config.hideAnchor !== !0 && r.push([et]), r.forEach((e) => {
2392
- this.disposeWithMe(this._renderManagerService.registerRenderModule(it.UNIVER_SHEET, e));
2369
+ this._config.hideAnchor !== !0 && n.push([nt]), n.forEach((e) => {
2370
+ this.disposeWithMe(this._renderManagerService.registerRenderModule(st.UNIVER_SHEET, e));
2393
2371
  });
2394
2372
  }
2395
2373
  _initRegisterCommand() {
2396
2374
  [
2397
- bt,
2398
- wt
2399
- ].forEach((r) => this._commandService.registerCommand(r));
2375
+ mt,
2376
+ Mt
2377
+ ].forEach((n) => this._commandService.registerCommand(n));
2400
2378
  }
2401
2379
  };
2402
- yr(nt, "pluginName", On);
2403
- yr(nt, "type", it.UNIVER_SHEET);
2404
- nt = Wi([
2405
- Er(Yr),
2406
- Je(1, N(He)),
2407
- Je(2, N(ee)),
2408
- Je(3, Ut),
2409
- Je(4, Zt)
2410
- ], nt);
2380
+ yn(at, "pluginName", Or);
2381
+ yn(at, "type", st.UNIVER_SHEET);
2382
+ at = Wi([
2383
+ On(Gn),
2384
+ tt(1, x(Ve)),
2385
+ tt(2, x(ce)),
2386
+ tt(3, Wt),
2387
+ tt(4, qt)
2388
+ ], at);
2411
2389
  export {
2412
- nt as UniverSheetTableUIPlugin
2390
+ at as UniverSheetTableUIPlugin
2413
2391
  };