@univerjs/sheets-table-ui 0.10.2 → 0.10.3-experimental.20250812-b4b6f1a

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