@univerjs/sheets-table-ui 0.10.1 → 0.10.2-nightly.202508071209

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.
Files changed (50) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +827 -808
  13. package/lib/es/locale/ca-ES.js +1 -0
  14. package/lib/es/locale/en-US.js +1 -0
  15. package/lib/es/locale/es-ES.js +1 -0
  16. package/lib/es/locale/fa-IR.js +1 -0
  17. package/lib/es/locale/fr-FR.js +1 -0
  18. package/lib/es/locale/ko-KR.js +1 -0
  19. package/lib/es/locale/ru-RU.js +1 -0
  20. package/lib/es/locale/vi-VN.js +1 -0
  21. package/lib/es/locale/zh-CN.js +1 -0
  22. package/lib/es/locale/zh-TW.js +1 -0
  23. package/lib/index.css +1 -1
  24. package/lib/index.js +827 -808
  25. package/lib/locale/ca-ES.js +1 -0
  26. package/lib/locale/en-US.js +1 -0
  27. package/lib/locale/es-ES.js +1 -0
  28. package/lib/locale/fa-IR.js +1 -0
  29. package/lib/locale/fr-FR.js +1 -0
  30. package/lib/locale/ko-KR.js +1 -0
  31. package/lib/locale/ru-RU.js +1 -0
  32. package/lib/locale/vi-VN.js +1 -0
  33. package/lib/locale/zh-CN.js +1 -0
  34. package/lib/locale/zh-TW.js +1 -0
  35. package/lib/types/locale/en-US.d.ts +1 -0
  36. package/lib/types/services/sheets-table-ui-service.d.ts +3 -2
  37. package/lib/types/views/components/util.d.ts +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +13 -13
  50. package/LICENSE +0 -176
package/lib/index.js CHANGED
@@ -1,20 +1,20 @@
1
- var Ln = Object.defineProperty;
2
- var $n = (t, e, n) => e in t ? Ln(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var A = (t, e, n) => $n(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { Inject as x, IUniverInstanceService as fe, ICommandService as le, Disposable as Pe, ObjectMatrix as kn, cellToRange as Zt, Rectangle as me, LocaleService as oe, Injector as Oe, dayjs as de, IPermissionService as qt, IContextService as It, CommandType as Yt, IConfigService as Qt, ThemeService as Pn, RxDisposable as Gt, InterceptorEffectEnum as On, ErrorService as Dn, ColorKit as he, UniverInstanceType as qe, DependentOn as Bn, Plugin as Fn, merge as Hn, registerDependencies as Vn, 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 ne, SheetTableService as qn, SetSheetTableFilterCommand as $t, isConditionFilter as Yn, isManualFilter as Qn, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as j, TableConditionTypeEnum as B, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Xe, TableColumnFilterTypeEnum as kt, AddSheetTableCommand as Gn, SHEET_TABLE_CUSTOM_THEME_PREFIX as Xn, DeleteSheetTableCommand as zn, SetSheetTableCommand as Ct, SheetsTableButtonStateEnum as xe, processStyleWithBorderStyle as Pt, 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 Ot, merge as yt, filter as _r, debounceTime as Tr, switchMap as Ie, of as J, map as wr, takeUntil as Ir } from "rxjs";
10
- import { jsxs as I, jsx as o, Fragment as Rt } from "react/jsx-runtime";
11
- import { Dropdown as Le, clsx as O, borderClassName as F, 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 ze } from "@univerjs/design";
12
- import { SetRangeValuesMutation as $r, WorkbookEditablePermission as sn, getSheetCommandTarget as ut, SheetsSelectionsService as dt, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as on, SheetRangeThemeModel as cn, SheetInterceptorService as un, INTERCEPTOR_POINT as Or, RangeThemeStyle as Dr, getPrimaryForRange as Bt, SetSelectionsOperation as Ft } from "@univerjs/sheets";
13
- import { SortRangeCommand as Br, SortType as Ht } from "@univerjs/sheets-sort";
14
- import { forwardRef as re, useRef as Fr, createElement as ie, useState as q, useMemo as dn, useCallback as Vt, useEffect as hn } from "react";
15
- import { serializeRange as At, deserializeRangeWithSheet as Hr } from "@univerjs/engine-formula";
16
- import { RangeSelector as Vr } from "@univerjs/sheets-formula-ui";
17
- const Ar = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Ur = "UNIVER_SHEET_Table_FILTER_PANEL_ID", vn = "TABLE_TOOLBAR_BUTTON", Ee = "TABLE_SELECTOR_DIALOG", Wr = "SHEET_TABLE_THEME_PANEL_ID", gn = "SHEET_TABLE_THEME_PANEL", mt = "table-custom-", jr = "table-default-", ve = "rgb(255, 255, 255)", G = "none", Ke = "1px solid rgb(var(--grey-200))";
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 x, IUniverInstanceService as pe, ICommandService as oe, LocaleService as ne, Disposable as Oe, ObjectMatrix as $n, cellToRange as jt, Rectangle as be, 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 qe, 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 re, 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 Xe, 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 ze } 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 ie, useRef as Br, createElement as ae, 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", Ke = "1px solid rgb(var(--grey-200))";
18
18
  var X = function() {
19
19
  return X = Object.assign || function(t) {
20
20
  for (var e, n = 1, r = arguments.length; n < r; n++) {
@@ -23,23 +23,23 @@ var X = function() {
23
23
  }
24
24
  return t;
25
25
  }, X.apply(this, arguments);
26
- }, Zr = function(t, e) {
26
+ }, jr = function(t, e) {
27
27
  var n = {};
28
28
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
29
29
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
30
30
  for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
31
31
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
32
32
  return n;
33
- }, ae = re(function(t, e) {
34
- var n = t.icon, r = t.id, i = t.className, a = t.extend, s = Zr(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), d = Fr("_".concat(Qr()));
35
- return bn(n, "".concat(r), { defIds: n.defIds, idSuffix: d.current }, X({ ref: e, className: c }, s), a);
33
+ }, se = ie(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);
36
36
  });
37
- function bn(t, e, n, r, i) {
38
- return ie(t.tag, X(X({ key: e }, qr(t, n, i)), r), (Yr(t, n).children || []).map(function(a, s) {
39
- return bn(a, "".concat(e, "-").concat(t.tag, "-").concat(s), n, void 0, i);
37
+ function gn(t, e, n, r, i) {
38
+ return ae(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);
40
40
  }));
41
41
  }
42
- function qr(t, e, n) {
42
+ function Zr(t, e, n) {
43
43
  var r = X({}, t.attrs);
44
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) {
45
45
  var s = a[0], c = a[1];
@@ -51,116 +51,116 @@ function qr(t, e, n) {
51
51
  typeof c == "string" && (r[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
52
52
  })), r;
53
53
  }
54
- function Yr(t, e) {
54
+ function qr(t, e) {
55
55
  var n, r = e.defIds;
56
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
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
58
  }) }) : t;
59
59
  }
60
- function Qr() {
60
+ function Yr() {
61
61
  return Math.random().toString(36).substring(2, 8);
62
62
  }
63
- ae.displayName = "UniverIcon";
64
- 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: "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 = re(function(t, e) {
65
- return ie(ae, Object.assign({}, t, {
63
+ se.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 = ie(function(t, e) {
65
+ return ae(se, Object.assign({}, t, {
66
66
  id: "ascending-icon",
67
67
  ref: e,
68
- icon: Gr
68
+ icon: Qr
69
69
  }));
70
70
  });
71
- mn.displayName = "AscendingIcon";
72
- 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: "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 = re(function(t, e) {
73
- return ie(ae, Object.assign({}, t, {
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 = ie(function(t, e) {
73
+ return ae(se, Object.assign({}, t, {
74
74
  id: "delete-icon",
75
75
  ref: e,
76
- icon: Xr
76
+ icon: Gr
77
77
  }));
78
78
  });
79
- pn.displayName = "DeleteIcon";
80
- 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: "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 = re(function(t, e) {
81
- return ie(ae, Object.assign({}, t, {
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 = ie(function(t, e) {
81
+ return ae(se, Object.assign({}, t, {
82
82
  id: "descending-icon",
83
83
  ref: e,
84
- icon: zr
84
+ icon: Xr
85
85
  }));
86
86
  });
87
- fn.displayName = "DescendingIcon";
88
- 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: "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" } }] }, Ze = re(function(t, e) {
89
- return ie(ae, Object.assign({}, t, {
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" } }] }, Ze = ie(function(t, e) {
89
+ return ae(se, Object.assign({}, t, {
90
90
  id: "dropdown-icon",
91
91
  ref: e,
92
- icon: Kr
92
+ icon: zr
93
93
  }));
94
94
  });
95
95
  Ze.displayName = "DropdownIcon";
96
- 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: "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 = re(function(t, e) {
97
- return ie(ae, Object.assign({}, t, {
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 = ie(function(t, e) {
97
+ return ae(se, Object.assign({}, t, {
98
98
  id: "grid-outline-icon",
99
99
  ref: e,
100
- icon: Jr
100
+ icon: Kr
101
101
  }));
102
102
  });
103
- Cn.displayName = "GridOutlineIcon";
104
- 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: "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 = re(function(t, e) {
105
- return ie(ae, Object.assign({}, t, {
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 = ie(function(t, e) {
105
+ return ae(se, Object.assign({}, t, {
106
106
  id: "more-down-icon",
107
107
  ref: e,
108
- icon: ei
108
+ icon: Jr
109
109
  }));
110
110
  });
111
- xt.displayName = "MoreDownIcon";
112
- var ti = { 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 = re(function(t, e) {
113
- return ie(ae, Object.assign({}, t, {
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 = ie(function(t, e) {
113
+ return ae(se, Object.assign({}, t, {
114
114
  id: "paint-bucket-double-icon",
115
115
  ref: e,
116
- icon: ti
116
+ icon: ei
117
117
  }));
118
118
  });
119
- Sn.displayName = "PaintBucketDoubleIcon";
120
- 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: "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 = re(function(t, e) {
121
- return ie(ae, Object.assign({}, t, {
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 = ie(function(t, e) {
121
+ return ae(se, Object.assign({}, t, {
122
122
  id: "rename-icon",
123
123
  ref: e,
124
- icon: ni
124
+ icon: ti
125
125
  }));
126
126
  });
127
- _n.displayName = "RenameIcon";
128
- 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: "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 = re(function(t, e) {
129
- return ie(ae, Object.assign({}, t, {
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 = ie(function(t, e) {
129
+ return ae(se, Object.assign({}, t, {
130
130
  id: "table-icon",
131
131
  ref: e,
132
- icon: ri
132
+ icon: ni
133
133
  }));
134
134
  });
135
- Tn.displayName = "TableIcon";
136
- var pe = /* @__PURE__ */ ((t) => (t.Items = "items", t.Condition = "condition", t))(pe || {}), ii = Object.getOwnPropertyDescriptor, ai = (t, e, n, r) => {
137
- for (var i = r > 1 ? void 0 : r ? ii(e, n) : e, a = t.length - 1, s; a >= 0; a--)
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
138
  (s = t[a]) && (i = s(i) || i);
139
139
  return i;
140
- }, Je = (t, e) => (n, r) => e(n, r, t);
141
- let $e = class extends Pe {
142
- constructor(e, n, r, i) {
140
+ }, je = (t, e) => (n, r) => e(n, r, t);
141
+ let Le = class extends Oe {
142
+ constructor(e, n, r, i, a) {
143
143
  super();
144
144
  A(this, "_itemsCache", /* @__PURE__ */ new Map());
145
- this._tableManager = e, this._sheetTableService = n, this._univerInstanceService = r, this._commandService = i, this._registerTableFilterChangeEvent();
145
+ this._tableManager = e, this._sheetTableService = n, 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 === $r.id) {
149
+ if (e.id === Lr.id) {
150
150
  const { unitId: n, subUnitId: r, cellValue: i } = e.params, a = this._tableManager.getTablesBySubunitId(n, r);
151
151
  if (!a.length)
152
152
  return;
153
- new kn(i).forValue((c, d, h) => {
154
- const u = Zt(c, d), g = a.find((_) => {
155
- const S = _.getTableFilterRange();
156
- return me.intersects(S, u);
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);
157
157
  });
158
- if (g) {
159
- const _ = d - g.getRange().startColumn;
160
- this._itemsCache.delete(g.getId() + _);
158
+ if (v) {
159
+ const S = d - v.getRange().startColumn;
160
+ this._itemsCache.delete(v.getId() + S);
161
161
  }
162
162
  });
163
- } else if (e.id === $t.id) {
163
+ } else if (e.id === Lt.id) {
164
164
  const { unitId: n, tableId: r } = e.params, i = this._tableManager.getTable(n, r);
165
165
  if (!i)
166
166
  return;
@@ -179,7 +179,7 @@ let $e = class extends Pe {
179
179
  unitId: e,
180
180
  subUnitId: n,
181
181
  tableFilter: c,
182
- currentFilterBy: Yn(c) ? pe.Condition : pe.Items,
182
+ currentFilterBy: qn(c) ? me.Condition : me.Items,
183
183
  tableId: r,
184
184
  columnIndex: i - s.startColumn
185
185
  };
@@ -188,7 +188,7 @@ let $e = class extends Pe {
188
188
  const i = this._tableManager.getTable(e, n), a = [];
189
189
  if (i) {
190
190
  const s = i.getTableFilterColumn(r);
191
- s && Qn(s) && a.push(...s.values);
191
+ s && Yn(s) && a.push(...s.values);
192
192
  }
193
193
  return a;
194
194
  }
@@ -201,46 +201,47 @@ let $e = class extends Pe {
201
201
  column: r,
202
202
  tableFilter: i
203
203
  };
204
- this._commandService.executeCommand($t.id, s);
204
+ this._commandService.executeCommand(Lt.id, s);
205
205
  }
206
206
  getTableFilterItems(e, n, r, i) {
207
- var k;
207
+ var O;
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, g = (k = this._univerInstanceService.getUnit(e)) == null ? void 0 : k.getSheetBySheetId(n);
214
- if (!g)
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);
214
+ if (!v)
215
215
  return { data: [], itemsCountMap: /* @__PURE__ */ new Map(), allItemsCount: 0 };
216
- const _ = [], S = /* @__PURE__ */ new Map();
217
- let T = 0;
216
+ const S = [], C = /* @__PURE__ */ new Map();
217
+ let _ = 0;
218
218
  for (let f = c; f <= d; f++) {
219
- if (g.isRowFiltered(f))
219
+ if (v.isRowFiltered(f))
220
220
  continue;
221
- const y = this._sheetTableService.getCellValueWithConditionType(g, f, u);
222
- S.has(y) || _.push({
223
- title: y,
221
+ let I = this._sheetTableService.getCellValueWithConditionType(v, f, u);
222
+ I === void 0 && (I = this._localeService.t("sheets-table.condition.empty")), C.has(I) || S.push({
223
+ title: I,
224
224
  key: `${u}_${f}`,
225
225
  leaf: !0
226
- }), T++, S.set(y, (S.get(y) || 0) + 1);
226
+ }), _++, C.set(I, (C.get(I) || 0) + 1);
227
227
  }
228
- return this._itemsCache.set(r + i, { data: _, itemsCountMap: S, allItemsCount: T }), { data: _, itemsCountMap: S, allItemsCount: T };
228
+ return this._itemsCache.set(r + i, { data: S, itemsCountMap: C, allItemsCount: _ }), { data: S, itemsCountMap: C, allItemsCount: _ };
229
229
  }
230
230
  };
231
- $e = ai([
232
- Je(0, x(ne)),
233
- Je(1, x(qn)),
234
- Je(2, x(fe)),
235
- Je(3, le)
236
- ], $e);
231
+ Le = ii([
232
+ je(0, x(re)),
233
+ je(1, x(Zn)),
234
+ je(2, x(pe)),
235
+ je(3, oe),
236
+ je(4, x(ne))
237
+ ], Le);
237
238
  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 si(t) {
239
- const n = t.get(oe).t;
239
+ function ai(t) {
240
+ const n = t.get(ne).t;
240
241
  return [
241
242
  {
242
- value: B.String,
243
- label: n(`sheets-table.condition.${B.String}`),
243
+ value: F.String,
244
+ label: n(`sheets-table.condition.${F.String}`),
244
245
  children: [
245
246
  {
246
247
  value: j.Equal,
@@ -269,8 +270,8 @@ function si(t) {
269
270
  ]
270
271
  },
271
272
  {
272
- value: B.Number,
273
- label: n(`sheets-table.condition.${B.Number}`),
273
+ value: F.Number,
274
+ label: n(`sheets-table.condition.${F.Number}`),
274
275
  children: [
275
276
  {
276
277
  value: $.Equal,
@@ -319,8 +320,8 @@ function si(t) {
319
320
  ]
320
321
  },
321
322
  {
322
- value: B.Date,
323
- label: n(`sheets-table.condition.${B.Date}`),
323
+ value: F.Date,
324
+ label: n(`sheets-table.condition.${F.Date}`),
324
325
  children: [
325
326
  {
326
327
  value: l.Equal,
@@ -414,10 +415,10 @@ function si(t) {
414
415
  }
415
416
  ];
416
417
  }
417
- function li(t, e) {
418
+ function si(t, e) {
418
419
  if (!e)
419
420
  return [];
420
- const r = t.get(oe).t;
421
+ const r = t.get(ne).t;
421
422
  switch (e) {
422
423
  case l.Quarter:
423
424
  return [
@@ -493,7 +494,7 @@ function li(t, e) {
493
494
  return [];
494
495
  }
495
496
  }
496
- const Nt = /* @__PURE__ */ new Set([
497
+ const xt = /* @__PURE__ */ new Set([
497
498
  l.Equal,
498
499
  l.NotEqual,
499
500
  l.After,
@@ -501,96 +502,120 @@ const Nt = /* @__PURE__ */ new Set([
501
502
  l.Before,
502
503
  l.BeforeOrEqual
503
504
  ]);
504
- function oi(t, e) {
505
- return e ? t === B.String ? Z.Input : t === B.Number ? e === $.Between || e === $.NotBetween ? Z.Inputs : Z.Input : t === B.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;
505
+ function li(t, e) {
506
+ 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;
506
507
  }
507
- function ci(t) {
508
+ function oi(t) {
508
509
  if (!t || t.filterType !== "condition")
509
510
  return {
510
- type: B.String,
511
+ type: F.String,
511
512
  compareType: j.Equal,
512
513
  info: {}
513
514
  };
514
515
  const e = t.filterInfo, { conditionType: n, compareType: r } = e;
515
- return n === B.Date ? r === l.Between || r === l.NotBetween ? {
516
- type: n,
517
- compare: r,
518
- info: {
519
- dateRange: e.expectedValue
520
- }
521
- } : 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 ? {
522
- type: n,
523
- compare: r,
524
- info: {}
525
- } : Nt.has(r) ? {
526
- type: n,
527
- compare: r,
528
- info: {
529
- date: e.expectedValue
530
- }
531
- } : (/* @__PURE__ */ new Set([l.Q1, l.Q2, l.Q3, l.Q4])).has(r) ? {
532
- type: n,
533
- compare: l.Quarter,
534
- info: {
535
- dateSelect: e.compareType
536
- }
537
- } : {
538
- type: n,
539
- compare: l.Month,
540
- info: {
541
- dateSelect: e.compareType
542
- }
543
- } : n === B.Number ? r === $.Between || r === $.NotBetween ? {
544
- type: n,
545
- compare: r,
546
- info: {
547
- numberRange: e.expectedValue
548
- }
549
- } : {
550
- type: n,
551
- compare: r,
552
- info: {
553
- number: e.expectedValue
554
- }
555
- } : n === B.String ? {
556
- type: n,
557
- compare: r,
558
- info: {
559
- string: e.expectedValue
516
+ if (n === F.Date)
517
+ if (r === l.Between || r === l.NotBetween) {
518
+ let i;
519
+ return Array.isArray(e.expectedValue) && (i = e.expectedValue.map((a) => typeof a == "string" ? new Date(a) : a)), {
520
+ type: n,
521
+ compare: r,
522
+ info: {
523
+ dateRange: i
524
+ }
525
+ };
526
+ } else {
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)
528
+ return {
529
+ type: n,
530
+ compare: r,
531
+ info: {}
532
+ };
533
+ if (xt.has(r)) {
534
+ let i;
535
+ if (typeof e.expectedValue == "string")
536
+ i = new Date(e.expectedValue);
537
+ else if (Array.isArray(e.expectedValue))
538
+ for (let a = 0; a < e.expectedValue.length; a++)
539
+ typeof e.expectedValue[a] == "string" && (e.expectedValue[a] = new Date(e.expectedValue[a]));
540
+ return {
541
+ type: n,
542
+ compare: r,
543
+ info: {
544
+ date: i
545
+ }
546
+ };
547
+ } else
548
+ return (/* @__PURE__ */ new Set([l.Q1, l.Q2, l.Q3, l.Q4])).has(r) ? {
549
+ type: n,
550
+ compare: l.Quarter,
551
+ info: {
552
+ dateSelect: e.compareType
553
+ }
554
+ } : {
555
+ type: n,
556
+ compare: l.Month,
557
+ info: {
558
+ dateSelect: e.compareType
559
+ }
560
+ };
560
561
  }
561
- } : {
562
- type: B.String,
562
+ else {
563
+ if (n === F.Number)
564
+ return r === $.Between || r === $.NotBetween ? {
565
+ type: n,
566
+ compare: r,
567
+ info: {
568
+ numberRange: e.expectedValue
569
+ }
570
+ } : {
571
+ type: n,
572
+ compare: r,
573
+ info: {
574
+ number: e.expectedValue
575
+ }
576
+ };
577
+ if (n === F.String)
578
+ return {
579
+ type: n,
580
+ compare: r,
581
+ info: {
582
+ string: e.expectedValue
583
+ }
584
+ };
585
+ }
586
+ return {
587
+ type: F.String,
563
588
  compare: j.Equal,
564
589
  info: {}
565
590
  };
566
591
  }
567
- const ui = (t) => {
568
- var S, T, k, f, N, y, D;
569
- const { conditionInfo: e, onChange: n } = t, r = M(oe), [i, a] = q(!1), s = M(Oe), c = si(s), d = (v, p, L) => {
592
+ const ci = (t) => {
593
+ var C, _, O, f, E, I, D, y;
594
+ const { conditionInfo: e, onChange: n } = t, r = M(ne), [i, a] = q(!1), s = M(ke), c = ai(s), d = (g, N, R) => {
570
595
  n({
571
- type: p != null ? p : e.type,
572
- compare: L != null ? L : e.compare,
573
- info: v
596
+ type: N != null ? N : e.type,
597
+ compare: R != null ? R : e.compare,
598
+ info: g
574
599
  });
575
- }, h = (v) => {
576
- var C;
577
- const p = v[0], L = v[1];
578
- L && a(!1);
579
- const R = {};
580
- p === B.Date ? L === l.Quarter ? R.dateSelect = l.Q1 : L === l.Month ? R.dateSelect = l.M1 : Nt.has(L) ? R.date = /* @__PURE__ */ new Date() : R.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : p === B.Number ? R.number = 0 : p === B.String && (R.string = ""), d(R, v[0], (C = v[1]) != null ? C : j.Equal);
581
- }, u = oi(e.type, e.compare);
582
- let g = "";
583
- e.compare ? g = `${r.t(`sheets-table.condition.${e.type}`)} - ${r.t(`sheets-table.${e.type}.compare.${e.compare}`)}` : g = r.t(`sheets-table.condition.${e.type}`);
584
- const _ = li(s, e.compare);
585
- return /* @__PURE__ */ I("div", { children: [
600
+ }, h = (g) => {
601
+ var B;
602
+ const N = g[0], R = g[1];
603
+ R && a(!1);
604
+ const m = {};
605
+ N === F.Date ? R === l.Quarter ? m.dateSelect = l.Q1 : R === l.Month ? m.dateSelect = l.M1 : xt.has(R) ? m.date = /* @__PURE__ */ new Date() : m.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : N === F.Number ? m.number = 0 : N === F.String && (m.string = ""), d(m, g[0], (B = g[1]) != null ? B : j.Equal);
606
+ }, u = li(e.type, e.compare);
607
+ let v = "";
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}`);
609
+ const S = si(s, e.compare);
610
+ return /* @__PURE__ */ w("div", { children: [
586
611
  /* @__PURE__ */ o(
587
- Le,
612
+ Ee,
588
613
  {
589
614
  align: "start",
590
615
  open: i,
591
616
  onOpenChange: a,
592
617
  overlay: /* @__PURE__ */ o(
593
- yr,
618
+ Ir,
594
619
  {
595
620
  value: [e.type, e.compare],
596
621
  options: c,
@@ -599,168 +624,162 @@ const ui = (t) => {
599
624
  wrapperClassName: "!univer-h-[150px]"
600
625
  }
601
626
  ),
602
- children: /* @__PURE__ */ I(
627
+ children: /* @__PURE__ */ w(
603
628
  "div",
604
629
  {
605
- className: O("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", F),
630
+ 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),
606
631
  children: [
607
- /* @__PURE__ */ o("span", { children: g }),
608
- /* @__PURE__ */ o(xt, {})
632
+ /* @__PURE__ */ o("span", { children: v }),
633
+ /* @__PURE__ */ o(Mt, {})
609
634
  ]
610
635
  }
611
636
  )
612
637
  }
613
638
  ),
614
- /* @__PURE__ */ I("div", { className: "univer-mt-3 univer-w-full", children: [
615
- u === Z.Input && /* @__PURE__ */ o(Rt, { children: e.type === B.String ? /* @__PURE__ */ o(
616
- Mt,
639
+ /* @__PURE__ */ w("div", { className: "univer-mt-3 univer-w-full", children: [
640
+ u === Z.Input && /* @__PURE__ */ o(yt, { children: e.type === F.String ? /* @__PURE__ */ o(
641
+ Rt,
617
642
  {
618
643
  className: "univer-w-full",
619
644
  placeholder: "请输入",
620
645
  value: e.info.string,
621
- onChange: (v) => d({ string: v })
646
+ onChange: (g) => d({ string: g })
622
647
  }
623
648
  ) : /* @__PURE__ */ o(
624
- bt,
649
+ gt,
625
650
  {
626
651
  className: "univer-h-7 univer-w-full",
627
652
  value: e.info.number,
628
653
  controls: !1,
629
- onChange: (v) => {
630
- v !== null && d({ number: v });
654
+ onChange: (g) => {
655
+ g !== null && d({ number: g });
631
656
  }
632
657
  }
633
658
  ) }),
634
659
  u === Z.DatePicker && /* @__PURE__ */ o("div", { id: "univer-table-date-picker-wrapper", children: /* @__PURE__ */ o(
635
- Rr,
660
+ yr,
636
661
  {
637
- value: de(e.info.date),
638
- defaultPickerValue: de(),
639
- onChange: (v) => d({ date: v.toDate() }),
640
- getPopupContainer: () => document.getElementById("univer-table-date-picker-wrapper") || document.body,
641
662
  className: "univer-w-full",
642
- allowClear: !1
663
+ value: (C = e.info.date) != null ? C : /* @__PURE__ */ new Date(),
664
+ onValueChange: (g) => d({ date: g })
643
665
  }
644
666
  ) }),
645
667
  u === Z.DateRange && /* @__PURE__ */ o("div", { id: "univer-table-date-range-wrapper", children: /* @__PURE__ */ o(
646
- Mr,
668
+ Rr,
647
669
  {
648
- value: [(T = de((S = e.info.dateRange) == null ? void 0 : S[0])) != null ? T : de(), (f = de((k = e.info.dateRange) == null ? void 0 : k[1])) != null ? f : de()],
649
- defaultPickerValue: [de(), de()],
650
- onChange: (v) => {
651
- d(v ? { dateRange: v.map((p) => p == null ? void 0 : p.toDate()) } : {});
652
- },
653
- getPopupContainer: () => document.getElementById("univer-table-date-range-wrapper") || document.body,
654
- classNames: { popup: "univer-w-[400px]" },
655
- allowClear: !1
670
+ className: "univer-w-full",
671
+ 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()],
672
+ onValueChange: (g) => {
673
+ d(g ? { dateRange: g } : {});
674
+ }
656
675
  }
657
676
  ) }),
658
- u === Z.Inputs && /* @__PURE__ */ I("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
677
+ u === Z.Inputs && /* @__PURE__ */ w("div", { className: "univer-flex univer-items-center univer-gap-2", children: [
659
678
  /* @__PURE__ */ o(
660
- bt,
679
+ gt,
661
680
  {
662
681
  className: "univer-w-full",
663
- value: (N = e.info.numberRange) == null ? void 0 : N[0],
664
- onChange: (v) => {
665
- var p;
666
- v !== null && d({ numberRange: [v, (p = e.info.numberRange) == null ? void 0 : p[1]] });
682
+ value: (I = e.info.numberRange) == null ? void 0 : I[0],
683
+ onChange: (g) => {
684
+ var N;
685
+ g !== null && d({ numberRange: [g, (N = e.info.numberRange) == null ? void 0 : N[1]] });
667
686
  },
668
687
  controls: !1
669
688
  }
670
689
  ),
671
690
  /* @__PURE__ */ o("span", { children: " - " }),
672
691
  /* @__PURE__ */ o(
673
- bt,
692
+ gt,
674
693
  {
675
694
  className: "univer-w-full",
676
- value: (y = e.info.numberRange) == null ? void 0 : y[1],
695
+ value: (D = e.info.numberRange) == null ? void 0 : D[1],
677
696
  controls: !1,
678
- onChange: (v) => {
679
- var p;
680
- v !== null && d({ numberRange: [(p = e.info.numberRange) == null ? void 0 : p[0], v] });
697
+ onChange: (g) => {
698
+ var N;
699
+ g !== null && d({ numberRange: [(N = e.info.numberRange) == null ? void 0 : N[0], g] });
681
700
  }
682
701
  }
683
702
  )
684
703
  ] }),
685
704
  u === Z.Select && /* @__PURE__ */ o(
686
- xr,
705
+ Mr,
687
706
  {
688
707
  className: "univer-w-full",
689
- value: (D = e.info.dateSelect) != null ? D : _[0].value,
690
- options: _,
691
- onChange: (v) => d({ dateSelect: v })
708
+ value: (y = e.info.dateSelect) != null ? y : S[0].value,
709
+ options: S,
710
+ onChange: (g) => d({ dateSelect: g })
692
711
  }
693
712
  )
694
713
  ] })
695
714
  ] });
696
- }, di = (t) => {
715
+ }, ui = (t) => {
697
716
  let e = 0;
698
717
  return t.forEach((n) => {
699
718
  e += n;
700
719
  }), e;
701
720
  };
702
- function hi(t) {
703
- const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = M(oe), h = M($e), { data: u, itemsCountMap: g, allItemsCount: _ } = h.getTableFilterItems(e, r, n, i), [S, T] = q(c === void 0 ? !0 : a.size === g.size), [k, f] = q(S ? _ : di(g)), N = !S && a.size > 0, [y, D] = q(""), v = dn(() => y ? u.filter((C) => String(C.title).toLowerCase().includes(y.toLowerCase())) : u, [y, u]), p = Vt(() => {
704
- S ? (a.clear(), s(new Set(a)), T(!1)) : (v.forEach((C) => {
705
- a.add(C.title);
706
- }), s(new Set(a)), T(!0));
707
- }, [S]), L = Vt((C) => {
708
- C === "" ? (T(!0), u.forEach((H) => {
709
- a.add(H.title);
710
- }), f(_)) : (a.clear(), T(!1), f(0)), D(C);
711
- }, []), R = (C) => {
712
- if (S) {
713
- T(!1);
714
- const H = /* @__PURE__ */ new Set();
715
- for (const { title: E } of u)
716
- C !== E && H.add(E);
717
- f(_ - g.get(C)), s(H);
721
+ function di(t) {
722
+ const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = M(ne), 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, [I, D] = q(""), y = un(() => I ? u.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : u, [I, u]), g = Ht(() => {
723
+ C ? (a.clear(), s(new Set(a)), _(!1)) : (y.forEach((m) => {
724
+ a.add(m.title);
725
+ }), s(new Set(a)), _(!0));
726
+ }, [C]), N = Ht((m) => {
727
+ m === "" ? (_(!0), u.forEach((B) => {
728
+ a.add(B.title);
729
+ }), f(S)) : (a.clear(), _(!1), f(0)), D(m);
730
+ }, []), R = (m) => {
731
+ if (C) {
732
+ _(!1);
733
+ const B = /* @__PURE__ */ new Set();
734
+ for (const { title: L } of u)
735
+ m !== L && B.add(L);
736
+ f(S - v.get(m)), s(B);
718
737
  } else
719
- a.has(C) ? (a.delete(C), f(k - g.get(C))) : (a.add(C), f(k + g.get(C))), s(new Set(a));
738
+ a.has(m) ? (a.delete(m), f(O - v.get(m))) : (a.add(m), f(O + v.get(m))), s(new Set(a));
720
739
  };
721
- return /* @__PURE__ */ I("div", { className: "univer-flex univer-h-full univer-flex-col", children: [
722
- /* @__PURE__ */ o(Mt, { autoFocus: !0, value: y, placeholder: d.t("sheets-filter.panel.search-placeholder"), onChange: L }),
740
+ return /* @__PURE__ */ w("div", { className: "univer-flex univer-h-full univer-flex-col", children: [
741
+ /* @__PURE__ */ o(Rt, { autoFocus: !0, value: I, placeholder: d.t("sheets-filter.panel.search-placeholder"), onChange: N }),
723
742
  /* @__PURE__ */ o(
724
743
  "div",
725
744
  {
726
- className: O("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", F),
745
+ 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),
727
746
  children: /* @__PURE__ */ o(
728
747
  "div",
729
748
  {
730
- className: O("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", Nr),
731
- children: /* @__PURE__ */ I("div", { className: "univer-h-full", children: [
749
+ className: P("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", xr),
750
+ children: /* @__PURE__ */ w("div", { className: "univer-h-full", children: [
732
751
  /* @__PURE__ */ o("div", { className: "univer-flex univer-items-center univer-px-2 univer-py-1", children: /* @__PURE__ */ o(
733
- Dt,
752
+ Pt,
734
753
  {
735
- indeterminate: N,
754
+ indeterminate: E,
736
755
  disabled: u.length === 0,
737
- checked: S,
738
- onChange: p,
739
- children: /* @__PURE__ */ I("div", { className: "univer-flex univer-h-5 univer-flex-1 univer-items-center univer-text-sm", children: [
756
+ checked: C,
757
+ onChange: g,
758
+ children: /* @__PURE__ */ w("div", { className: "univer-flex univer-h-5 univer-flex-1 univer-items-center univer-text-sm", children: [
740
759
  /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: `${d.t("sheets-filter.panel.select-all")}` }),
741
- /* @__PURE__ */ o("span", { className: "univer-ml univer-text-gray-400", children: `(${k}/${y ? v.length : _})` })
760
+ /* @__PURE__ */ o("span", { className: "univer-ml univer-text-gray-400", children: `(${O}/${I ? y.length : S})` })
742
761
  ] })
743
762
  }
744
763
  ) }),
745
- v.map((C) => /* @__PURE__ */ o(
764
+ y.map((m) => /* @__PURE__ */ o(
746
765
  "div",
747
766
  {
748
767
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
749
768
  children: /* @__PURE__ */ o(
750
- Dt,
769
+ Pt,
751
770
  {
752
- checked: S || a.has(C.title),
771
+ checked: C || a.has(m.title),
753
772
  onChange: () => {
754
- R(C.title);
773
+ R(m.title);
755
774
  },
756
- children: /* @__PURE__ */ I("div", { className: "univer-flex univer-h-5 univer-flex-1 univer-text-sm", children: [
757
- /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: C.title }),
758
- /* @__PURE__ */ o("span", { className: "univer-ml-1 univer-text-gray-400", children: `(${g.get(C.title) || 0})` })
775
+ children: /* @__PURE__ */ w("div", { className: "univer-flex univer-h-5 univer-flex-1 univer-text-sm", children: [
776
+ /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: m.title }),
777
+ /* @__PURE__ */ o("span", { className: "univer-ml-1 univer-text-gray-400", children: `(${v.get(m.title) || 0})` })
759
778
  ] })
760
779
  }
761
780
  )
762
781
  },
763
- C.key
782
+ m.key
764
783
  ))
765
784
  ] })
766
785
  }
@@ -769,131 +788,131 @@ function hi(t) {
769
788
  )
770
789
  ] });
771
790
  }
772
- function vi() {
791
+ function hi() {
773
792
  var ue;
774
- const t = M(oe), e = gi(t), n = M($e), r = M(ne), i = M(le), a = M(qt), s = M(ke), c = s.getCurrentTableFilterInfo(), d = n.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: g, tableFilter: _, currentFilterBy: S, columnIndex: T } = d, { data: k } = n.getTableFilterItems(h, u, g, T), f = n.getTableFilterCheckedItems(h, g, T), [N, y] = q(new Set(f)), [D, v] = q(S || pe.Items), [p, L] = q(() => {
793
+ const t = M(ne), e = vi(t), n = M(Le), r = M(re), i = M(oe), 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, I] = q(new Set(f)), [D, y] = q(C || me.Items), [g, N] = q(() => {
775
794
  const b = d.tableFilter;
776
- return ci(b);
777
- }), R = r.getTable(h, g);
795
+ return oi(b);
796
+ }), R = r.getTable(h, v);
778
797
  if (!R) return null;
779
- const C = R.getTableFilters(), H = C.getSortState();
780
- H.columnIndex === T && (H.sortState, Xe.Asc), H.columnIndex === T && (H.sortState, Xe.Desc);
781
- const E = () => {
798
+ const m = R.getTableFilters(), B = m.getSortState();
799
+ B.columnIndex === _ && (B.sortState, Xe.Asc), B.columnIndex === _ && (B.sortState, Xe.Desc);
800
+ const L = () => {
782
801
  s.closeFilterPanel();
783
802
  }, Q = () => {
784
- E();
803
+ L();
785
804
  }, U = (b) => {
786
- const P = R.getTableFilterRange();
787
- i.executeCommand(Br.id, {
805
+ const k = R.getTableFilterRange();
806
+ i.executeCommand(Dr.id, {
788
807
  unitId: h,
789
808
  subUnitId: u,
790
- range: P,
791
- orderRules: [{ colIndex: T + P.startColumn, type: b ? Ht.ASC : Ht.DESC }],
809
+ range: k,
810
+ orderRules: [{ colIndex: _ + k.startColumn, type: b ? Ft.ASC : Ft.DESC }],
792
811
  hasTitle: !1
793
- }), C.setSortState(T, b ? Xe.Asc : Xe.Desc), E();
812
+ }), m.setSortState(_, b ? Xe.Asc : Xe.Desc), L();
794
813
  }, ee = () => {
795
- if (D === pe.Items) {
814
+ if (D === me.Items) {
796
815
  const b = [];
797
- for (const Y of k)
798
- N.has(Y.title) && b.push(Y.title);
799
- const P = R.getTableFilterColumn(T);
800
- if (P) {
801
- if (P.values.join(",") === b.join(",")) {
802
- E();
816
+ for (const Y of O)
817
+ E.has(Y.title) && b.push(Y.title);
818
+ const k = R.getTableFilterColumn(_);
819
+ if (k) {
820
+ if (k.values.join(",") === b.join(",")) {
821
+ L();
803
822
  return;
804
823
  }
805
824
  } else if (b.length === 0) {
806
- E();
825
+ L();
807
826
  return;
808
827
  }
809
828
  const V = {
810
- filterType: kt.manual,
829
+ filterType: $t.manual,
811
830
  values: b
812
831
  };
813
- n.setTableFilter(h, g, T, V);
832
+ n.setTableFilter(h, v, _, V);
814
833
  } else {
815
834
  let b;
816
- p.compare === l.Quarter || p.compare === l.Month ? b = {
817
- conditionType: p.type,
818
- compareType: Object.values(p.info)[0]
835
+ g.compare === l.Quarter || g.compare === l.Month ? b = {
836
+ conditionType: g.type,
837
+ compareType: Object.values(g.info)[0]
819
838
  } : b = {
820
- conditionType: p.type,
821
- compareType: p.compare,
822
- expectedValue: Object.values(p.info)[0]
839
+ conditionType: g.type,
840
+ compareType: g.compare,
841
+ expectedValue: Object.values(g.info)[0]
823
842
  };
824
- const P = {
825
- filterType: kt.condition,
843
+ const k = {
844
+ filterType: $t.condition,
826
845
  // @ts-ignore
827
846
  filterInfo: b
828
847
  };
829
- n.setTableFilter(h, g, T, P);
848
+ n.setTableFilter(h, v, _, k);
830
849
  }
831
- E();
832
- }, Me = () => {
833
- n.setTableFilter(h, g, T, void 0), E();
834
- }, ce = new sn(h).id, Ce = (ue = a.getPermissionPoint(ce)) == null ? void 0 : ue.value;
835
- return /* @__PURE__ */ I(
850
+ L();
851
+ }, Re = () => {
852
+ n.setTableFilter(h, v, _, void 0), L();
853
+ }, ce = new an(h).id, fe = (ue = a.getPermissionPoint(ce)) == null ? void 0 : ue.value;
854
+ return /* @__PURE__ */ w(
836
855
  "div",
837
856
  {
838
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",
839
858
  children: [
840
- Ce && /* @__PURE__ */ o("div", { className: "univer-mb-3 univer-flex", children: /* @__PURE__ */ I(Er, { className: "univer-mb-3 !univer-flex univer-w-full", children: [
841
- /* @__PURE__ */ I(Te, { className: "univer-w-1/2", onClick: () => U(!0), children: [
842
- /* @__PURE__ */ o(mn, { className: "univer-mr-1" }),
859
+ fe && /* @__PURE__ */ o("div", { className: "univer-mb-3 univer-flex", children: /* @__PURE__ */ w(Nr, { className: "univer-mb-3 !univer-flex univer-w-full", children: [
860
+ /* @__PURE__ */ w(_e, { className: "univer-w-1/2", onClick: () => U(!0), children: [
861
+ /* @__PURE__ */ o(bn, { className: "univer-mr-1" }),
843
862
  t.t("sheets-sort.general.sort-asc")
844
863
  ] }),
845
- /* @__PURE__ */ I(Te, { className: "univer-w-1/2", onClick: () => U(!1), children: [
846
- /* @__PURE__ */ o(fn, { className: "univer-mr-1" }),
864
+ /* @__PURE__ */ w(_e, { className: "univer-w-1/2", onClick: () => U(!1), children: [
865
+ /* @__PURE__ */ o(pn, { className: "univer-mr-1" }),
847
866
  t.t("sheets-sort.general.sort-desc")
848
867
  ] })
849
868
  ] }) }),
850
869
  /* @__PURE__ */ o("div", { className: "univer-w-full", children: /* @__PURE__ */ o(
851
- Lr,
870
+ Er,
852
871
  {
853
872
  value: D,
854
873
  items: e,
855
- onChange: (b) => v(b)
874
+ onChange: (b) => y(b)
856
875
  }
857
876
  ) }),
858
- /* @__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 === pe.Items ? /* @__PURE__ */ o(
859
- hi,
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: D === me.Items ? /* @__PURE__ */ o(
878
+ di,
860
879
  {
861
- tableFilter: _,
880
+ tableFilter: S,
862
881
  unitId: h,
863
882
  subUnitId: u,
864
- tableId: g,
865
- columnIndex: T,
866
- checkedItemSet: N,
867
- setCheckedItemSet: y
883
+ tableId: v,
884
+ columnIndex: _,
885
+ checkedItemSet: E,
886
+ setCheckedItemSet: I
868
887
  }
869
888
  ) : /* @__PURE__ */ o(
870
- ui,
889
+ ci,
871
890
  {
872
- tableFilter: _,
891
+ tableFilter: S,
873
892
  unitId: h,
874
893
  subUnitId: u,
875
- tableId: g,
876
- columnIndex: T,
877
- conditionInfo: p,
878
- onChange: L
894
+ tableId: v,
895
+ columnIndex: _,
896
+ conditionInfo: g,
897
+ onChange: N
879
898
  }
880
899
  ) }) }),
881
- /* @__PURE__ */ I(
900
+ /* @__PURE__ */ w(
882
901
  "div",
883
902
  {
884
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",
885
904
  children: [
886
905
  /* @__PURE__ */ o(
887
- Te,
906
+ _e,
888
907
  {
889
- disabled: _ === void 0,
890
- onClick: Me,
908
+ disabled: S === void 0,
909
+ onClick: Re,
891
910
  children: t.t("sheets-filter.panel.clear-filter")
892
911
  }
893
912
  ),
894
- /* @__PURE__ */ I("div", { children: [
895
- /* @__PURE__ */ o(Te, { className: "univer-mr-2", onClick: Q, children: t.t("sheets-filter.panel.cancel") }),
896
- /* @__PURE__ */ o(Te, { variant: "primary", onClick: ee, children: t.t("sheets-filter.panel.confirm") })
913
+ /* @__PURE__ */ w("div", { children: [
914
+ /* @__PURE__ */ o(_e, { className: "univer-mr-2", onClick: Q, children: t.t("sheets-filter.panel.cancel") }),
915
+ /* @__PURE__ */ o(_e, { variant: "primary", onClick: ee, children: t.t("sheets-filter.panel.confirm") })
897
916
  ] })
898
917
  ]
899
918
  }
@@ -902,19 +921,19 @@ function vi() {
902
921
  }
903
922
  );
904
923
  }
905
- function gi(t) {
924
+ function vi(t) {
906
925
  const e = t.getCurrentLocale();
907
- return dn(() => [
908
- { label: t.t("sheets-filter.panel.by-values"), value: pe.Items },
909
- { label: t.t("sheets-filter.panel.by-conditions"), value: pe.Condition }
926
+ return un(() => [
927
+ { label: t.t("sheets-filter.panel.by-values"), value: me.Items },
928
+ { label: t.t("sheets-filter.panel.by-conditions"), value: me.Condition }
910
929
  ], [e, t]);
911
930
  }
912
- var bi = Object.getOwnPropertyDescriptor, mi = (t, e, n, r) => {
913
- for (var i = r > 1 ? void 0 : r ? bi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
931
+ var gi = Object.getOwnPropertyDescriptor, bi = (t, e, n, r) => {
932
+ for (var i = r > 1 ? void 0 : r ? gi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
914
933
  (s = t[a]) && (i = s(i) || i);
915
934
  return i;
916
- }, et = (t, e) => (n, r) => e(n, r, t);
917
- let ke = class extends Pe {
935
+ }, Je = (t, e) => (n, r) => e(n, r, t);
936
+ let $e = class extends Oe {
918
937
  constructor(e, n, r, i) {
919
938
  super();
920
939
  A(this, "_popupDisposable");
@@ -932,18 +951,18 @@ let ke = class extends Pe {
932
951
  }
933
952
  _initComponents() {
934
953
  [
935
- [ge, vi]
954
+ [ve, hi]
936
955
  ].forEach(([e, n]) => {
937
956
  this.disposeWithMe(this._componentManager.register(e, n));
938
957
  });
939
958
  }
940
959
  _initUIPopup() {
941
- this.disposeWithMe(this._contextService.subscribeContextValue$(ge).pipe(an(void 0), Cr()).subscribe((e) => {
960
+ this.disposeWithMe(this._contextService.subscribeContextValue$(ve).pipe(rn(void 0), fr()).subscribe((e) => {
942
961
  e ? this._openFilterPopup() : e === !1 && this._closeFilterPopup();
943
962
  }));
944
963
  }
945
964
  closeFilterPanel() {
946
- this._contextService.setContextValue(ge, !1);
965
+ this._contextService.setContextValue(ve, !1);
947
966
  }
948
967
  _openFilterPopup() {
949
968
  const e = this._currentTableFilterInfo;
@@ -951,10 +970,10 @@ let ke = class extends Pe {
951
970
  throw new Error("[SheetsFilterUIController]: no filter model when opening filter popup!");
952
971
  const { row: n, column: r } = e;
953
972
  this._popupDisposable = this._sheetCanvasPopupService.attachPopupToCell(n, r, {
954
- componentKey: ge,
973
+ componentKey: ve,
955
974
  direction: "horizontal",
956
975
  onClickOutside: () => {
957
- this._dialogService.close(Ur), this._contextService.setContextValue(ge, !1);
976
+ this._dialogService.close(Ar), this._contextService.setContextValue(ve, !1);
958
977
  },
959
978
  offset: [5, 0],
960
979
  portal: !0
@@ -965,35 +984,35 @@ let ke = class extends Pe {
965
984
  (e = this._popupDisposable) == null || e.dispose(), this._popupDisposable = null, this.clearCurrentTableFilterInfo();
966
985
  }
967
986
  };
968
- ke = mi([
969
- et(0, x(nn)),
970
- et(1, It),
971
- et(2, x(nr)),
972
- et(3, x(rn))
973
- ], ke);
974
- const St = {
975
- type: Yt.OPERATION,
987
+ $e = bi([
988
+ Je(0, x(tn)),
989
+ Je(1, wt),
990
+ Je(2, x(tr)),
991
+ Je(3, x(nn))
992
+ ], $e);
993
+ const Ct = {
994
+ type: qt.OPERATION,
976
995
  id: "sheet.operation.open-table-filter-panel",
977
996
  async handler(t, e) {
978
997
  if (!e)
979
998
  return !1;
980
- const { row: n, col: r, unitId: i, subUnitId: a, tableId: s } = e, c = t.get(ne), d = t.get(It), h = t.get(ke);
981
- return c.getTable(i, s) ? (d.getContextValue(ge) || (h.setCurrentTableFilterInfo({ unitId: i, subUnitId: a, row: n, tableId: s, column: r }), d.setContextValue(ge, !0)), !0) : !1;
999
+ const { row: n, col: r, unitId: i, subUnitId: a, tableId: s } = e, c = t.get(re), d = t.get(wt), h = t.get($e);
1000
+ 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;
982
1001
  }
983
- }, Et = {
984
- type: Yt.OPERATION,
1002
+ }, Nt = {
1003
+ type: qt.OPERATION,
985
1004
  id: "sheet.operation.open-table-selector",
986
1005
  async handler(t) {
987
- var S;
988
- const e = t.get(fe), n = t.get(le), r = ut(e);
1006
+ var C;
1007
+ const e = t.get(pe), n = t.get(oe), r = ct(e);
989
1008
  if (!r)
990
1009
  return !1;
991
- const { unitId: i, subUnitId: a, worksheet: s } = r, d = t.get(dt).getCurrentLastSelection(), h = (S = d == null ? void 0 : d.range) != null ? S : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, g = kr(d) ? Pr(h, { up: !0, left: !0, right: !0, down: !0 }, s) : h, _ = await wn(t, i, a, g);
992
- return _ ? (n.executeCommand(Gn.id, { ..._ }), !0) : !1;
1010
+ 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);
1011
+ return S ? (n.executeCommand(Qn.id, { ...S }), !0) : !1;
993
1012
  }
994
1013
  };
995
- async function wn(t, e, n, r, i) {
996
- const a = t.get(rn), s = t.get(oe);
1014
+ async function Tn(t, e, n, r, i) {
1015
+ const a = t.get(nn), s = t.get(ne);
997
1016
  return new Promise((c) => {
998
1017
  const d = {
999
1018
  unitId: e,
@@ -1001,14 +1020,14 @@ async function wn(t, e, n, r, i) {
1001
1020
  range: r,
1002
1021
  tableId: i,
1003
1022
  onConfirm: (h) => {
1004
- c(h), a.close(Ee);
1023
+ c(h), a.close(Ne);
1005
1024
  },
1006
1025
  onCancel: () => {
1007
- c(null), a.close(Ee);
1026
+ c(null), a.close(Ne);
1008
1027
  }
1009
1028
  };
1010
1029
  a.open({
1011
- id: Ee,
1030
+ id: Ne,
1012
1031
  title: { title: s.t("sheets-table.selectRange") },
1013
1032
  draggable: !0,
1014
1033
  destroyOnClose: !0,
@@ -1016,77 +1035,77 @@ async function wn(t, e, n, r, i) {
1016
1035
  maskClosable: !1,
1017
1036
  children: {
1018
1037
  label: {
1019
- name: Ee,
1038
+ name: Ne,
1020
1039
  props: d
1021
1040
  }
1022
1041
  },
1023
1042
  width: 300,
1024
1043
  onClose: () => {
1025
- c(null), a.close(Ee);
1044
+ c(null), a.close(Ne);
1026
1045
  }
1027
1046
  });
1028
1047
  });
1029
1048
  }
1030
- const In = "sheets-table-ui.config", Ut = {
1049
+ const wn = "sheets-table-ui.config", At = {
1031
1050
  anchorHeight: 24,
1032
1051
  anchorBackgroundColor: "rgb(134,139,156)"
1033
1052
  };
1034
- var pi = Object.getOwnPropertyDescriptor, fi = (t, e, n, r) => {
1035
- for (var i = r > 1 ? void 0 : r ? pi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1053
+ var mi = Object.getOwnPropertyDescriptor, pi = (t, e, n, r) => {
1054
+ for (var i = r > 1 ? void 0 : r ? mi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1036
1055
  (s = t[a]) && (i = s(i) || i);
1037
1056
  return i;
1038
- }, Ci = (t, e) => (n, r) => e(n, r, t);
1039
- let ye = class extends Pe {
1057
+ }, fi = (t, e) => (n, r) => e(n, r, t);
1058
+ let Ie = class extends Oe {
1040
1059
  constructor(e) {
1041
1060
  super();
1042
- A(this, "_refreshTable", new Sr());
1061
+ A(this, "_refreshTable", new Cr());
1043
1062
  A(this, "refreshTable$", this._refreshTable.asObservable());
1044
1063
  this._commandService = e, this._initListener();
1045
1064
  }
1046
1065
  _initListener() {
1047
1066
  this.disposeWithMe(
1048
1067
  this._commandService.onCommandExecuted((e) => {
1049
- if (e.id === ln.id) {
1068
+ if (e.id === sn.id) {
1050
1069
  const n = e.params, { styleName: r } = n;
1051
- r.startsWith(Xn) && this._refreshTable.next(Math.random());
1070
+ r.startsWith(Gn) && this._refreshTable.next(Math.random());
1052
1071
  }
1053
1072
  })
1054
1073
  );
1055
1074
  }
1056
1075
  };
1057
- ye = fi([
1058
- Ci(0, x(le))
1059
- ], ye);
1060
- const Si = () => {
1061
- var Ce, ue;
1062
- const [t, e] = q(""), [n, r] = q(""), i = M(ur), [a, s] = q({}), c = M(Oe), d = M(at), h = we(d.anchorPosition$), u = M(le), g = M(fe), _ = M(on), S = we(_.unitPermissionInitStateChange$, !1), T = M(ne), k = M(cn), f = M(ye), N = we(f.refreshTable$), y = M(oe), D = M(dt), v = we(D.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, p] = q(Math.random()), R = M(Qt).getConfig(In), C = (Ce = R == null ? void 0 : R.anchorHeight) != null ? Ce : 24, H = (ue = R == null ? void 0 : R.anchorBackgroundColor) != null ? ue : "rgb(53,91,183)", E = (b, P) => {
1076
+ Ie = pi([
1077
+ fi(0, x(oe))
1078
+ ], Ie);
1079
+ const Ci = () => {
1080
+ var fe, ue;
1081
+ 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(oe), v = M(pe), S = M(ln), C = Te(S.unitPermissionInitStateChange$, !1), _ = M(re), O = M(on), f = M(Ie), E = Te(f.refreshTable$), I = M(ne), D = M(ut), y = Te(D.selectionChanged$, [{ range: jt(0, 0), primary: null }]), [, g] = q(Math.random()), R = M(Yt).getConfig(wn), m = (fe = R == null ? void 0 : R.anchorHeight) != null ? fe : 24, B = (ue = R == null ? void 0 : R.anchorBackgroundColor) != null ? ue : "rgb(53,91,183)", L = (b, k) => {
1063
1082
  s((V) => ({
1064
1083
  ...V,
1065
- [b]: P
1084
+ [b]: k
1066
1085
  }));
1067
1086
  };
1068
- if (hn(() => {
1069
- p(Math.random());
1070
- }, [N]), !(h != null && h.length))
1087
+ if (dn(() => {
1088
+ g(Math.random());
1089
+ }, [E]), !(h != null && h.length))
1071
1090
  return null;
1072
- const Q = ut(g);
1091
+ const Q = ct(v);
1073
1092
  if (!Q) return null;
1074
- const { unitId: U, subUnitId: ee } = Q, Me = (b, P) => {
1093
+ const { unitId: U, subUnitId: ee } = Q, Re = (b, k) => {
1075
1094
  var Y;
1076
- if (((Y = T.getTableById(U, b)) == null ? void 0 : Y.getDisplayName()) === P) {
1095
+ if (((Y = _.getTableById(U, b)) == null ? void 0 : Y.getDisplayName()) === k) {
1077
1096
  e(""), r("");
1078
1097
  return;
1079
1098
  }
1080
- u.executeCommand(Ct.id, {
1099
+ u.executeCommand(ft.id, {
1081
1100
  tableId: b,
1082
1101
  unitId: U,
1083
- name: P
1102
+ name: k
1084
1103
  }), r(""), e("");
1085
1104
  }, ce = async (b) => {
1086
- const P = T.getTableById(U, b);
1087
- if (!P) return;
1088
- const V = P.getRange(), Y = await wn(c, U, ee, V, b);
1089
- Y && u.executeCommand(Ct.id, {
1105
+ const k = _.getTableById(U, b);
1106
+ if (!k) return;
1107
+ const V = k.getRange(), Y = await Tn(c, U, ee, V, b);
1108
+ Y && u.executeCommand(ft.id, {
1090
1109
  tableId: b,
1091
1110
  unitId: U,
1092
1111
  updateRange: {
@@ -1094,20 +1113,20 @@ const Si = () => {
1094
1113
  }
1095
1114
  });
1096
1115
  };
1097
- return S ? /* @__PURE__ */ o("div", { className: "univer-absolute univer-z-50 univer-h-0 univer-w-0", children: h.map((b) => {
1098
- var Be, Fe, m, w, z, K, se;
1099
- const P = T.getTableById(U, b.tableId);
1100
- if (!P) return null;
1101
- const V = k.getRangeThemeStyle(U, P.getTableStyleId()), Y = (m = (Fe = (Be = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : Be.bg) == null ? void 0 : Fe.rgb) != null ? m : H, Ye = (K = (z = (w = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : w.cl) == null ? void 0 : z.rgb) != null ? K : "rgb(255, 255, 255)", Qe = P.getRange();
1102
- if (!(v != null && v.length))
1116
+ return C ? /* @__PURE__ */ o("div", { className: "univer-absolute univer-z-50 univer-h-0 univer-w-0", children: h.map((b) => {
1117
+ var De, Be, p, T, z, K, le;
1118
+ const k = _.getTableById(U, b.tableId);
1119
+ if (!k) return null;
1120
+ 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, Ye = (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)", Qe = k.getRange();
1121
+ if (!(y != null && y.length))
1103
1122
  return null;
1104
- const Ge = v[v.length - 1].range, De = !me.intersects(Qe, Ge) && b.y <= 20;
1105
- return /* @__PURE__ */ I(
1123
+ const Ge = y[y.length - 1].range, Pe = !be.intersects(Qe, Ge) && b.y <= 20;
1124
+ return /* @__PURE__ */ w(
1106
1125
  "div",
1107
1126
  {
1108
- className: O("univer-shadow-xs univer-absolute univer-box-border univer-cursor-pointer univer-items-center univer-rounded-xl univer-pl-2 univer-pr-2", F, {
1109
- "univer-flex": !De,
1110
- "univer-hidden": De
1127
+ 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, {
1128
+ "univer-flex": !Pe,
1129
+ "univer-hidden": Pe
1111
1130
  }),
1112
1131
  style: {
1113
1132
  left: b.x,
@@ -1115,29 +1134,29 @@ const Si = () => {
1115
1134
  backgroundColor: Y,
1116
1135
  color: Ye,
1117
1136
  borderWidth: "0.5px",
1118
- height: C ? `${C}px` : "24px"
1137
+ height: m ? `${m}px` : "24px"
1119
1138
  },
1120
1139
  children: [
1121
1140
  /* @__PURE__ */ o("div", { className: "univer-text-nowrap", children: t === b.tableId ? /* @__PURE__ */ o(
1122
- Mt,
1141
+ Rt,
1123
1142
  {
1124
1143
  className: "univer-h-[18px] univer-min-w-16 univer-rounded-none",
1125
1144
  inputClass: "univer-h-[18px] univer-w-[80px]",
1126
1145
  value: n,
1127
1146
  onChange: (W) => r(W),
1128
- onBlur: () => Me(b.tableId, n),
1147
+ onBlur: () => Re(b.tableId, n),
1129
1148
  onKeyDown: (W) => {
1130
- W.key === "Enter" && Me(b.tableId, n);
1149
+ W.key === "Enter" && Re(b.tableId, n);
1131
1150
  },
1132
1151
  autoFocus: t === b.tableId
1133
1152
  }
1134
1153
  ) : /* @__PURE__ */ o("div", { className: "univer-h-[18px] univer-max-w-24 univer-truncate univer-text-sm", children: b.tableName }) }),
1135
1154
  /* @__PURE__ */ o(
1136
- Le,
1155
+ Ee,
1137
1156
  {
1138
1157
  align: "start",
1139
- overlay: /* @__PURE__ */ I("div", { className: "univer-pb-2 univer-pt-2", children: [
1140
- /* @__PURE__ */ I(
1158
+ overlay: /* @__PURE__ */ w("div", { className: "univer-pb-2 univer-pt-2", children: [
1159
+ /* @__PURE__ */ w(
1141
1160
  "div",
1142
1161
  {
1143
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",
@@ -1145,8 +1164,8 @@ const Si = () => {
1145
1164
  e(b.tableId), r(b.tableName);
1146
1165
  },
1147
1166
  children: [
1148
- /* @__PURE__ */ o(_n, {}),
1149
- y.t("sheets-table.rename")
1167
+ /* @__PURE__ */ o(Sn, {}),
1168
+ I.t("sheets-table.rename")
1150
1169
  ]
1151
1170
  }
1152
1171
  ),
@@ -1156,47 +1175,47 @@ const Si = () => {
1156
1175
  className: "univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200"
1157
1176
  }
1158
1177
  ),
1159
- /* @__PURE__ */ I(
1178
+ /* @__PURE__ */ w(
1160
1179
  "div",
1161
1180
  {
1162
1181
  onClick: () => ce(b.tableId),
1163
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",
1164
1183
  children: [
1165
- /* @__PURE__ */ o(Cn, {}),
1166
- y.t("sheets-table.updateRange")
1184
+ /* @__PURE__ */ o(fn, {}),
1185
+ I.t("sheets-table.updateRange")
1167
1186
  ]
1168
1187
  }
1169
1188
  ),
1170
- /* @__PURE__ */ I(
1189
+ /* @__PURE__ */ w(
1171
1190
  "div",
1172
1191
  {
1173
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",
1174
1193
  onClick: () => {
1175
- E(b.tableId, !1);
1176
- const W = T.getTableById(U, b.tableId);
1194
+ L(b.tableId, !1);
1195
+ const W = _.getTableById(U, b.tableId);
1177
1196
  if (!W) return;
1178
- const Se = W.getTableConfig(), _e = {
1179
- id: Wr,
1180
- header: { title: y.t("sheets-table.tableStyle") },
1197
+ const Ce = W.getTableConfig(), Se = {
1198
+ id: Ur,
1199
+ header: { title: I.t("sheets-table.tableStyle") },
1181
1200
  children: {
1182
- label: gn,
1183
- oldConfig: Se,
1201
+ label: vn,
1202
+ oldConfig: Ce,
1184
1203
  unitId: U,
1185
1204
  subUnitId: ee,
1186
1205
  tableId: b.tableId
1187
1206
  },
1188
1207
  width: 330
1189
1208
  };
1190
- i.open(_e);
1209
+ i.open(Se);
1191
1210
  },
1192
1211
  children: [
1193
1212
  /* @__PURE__ */ o(
1194
- Sn,
1213
+ Cn,
1195
1214
  {
1196
1215
  extend: { colorChannel1: "rgb(53,91,183)" }
1197
1216
  }
1198
1217
  ),
1199
- y.t("sheets-table.setTheme")
1218
+ I.t("sheets-table.setTheme")
1200
1219
  ]
1201
1220
  }
1202
1221
  ),
@@ -1206,29 +1225,29 @@ const Si = () => {
1206
1225
  className: "univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200"
1207
1226
  }
1208
1227
  ),
1209
- /* @__PURE__ */ I(
1228
+ /* @__PURE__ */ w(
1210
1229
  "div",
1211
1230
  {
1212
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",
1213
1232
  onClick: () => {
1214
- E(b.tableId, !1), u.executeCommand(zn.id, {
1233
+ L(b.tableId, !1), u.executeCommand(Xn.id, {
1215
1234
  tableId: b.tableId,
1216
1235
  subUnitId: ee,
1217
1236
  unitId: U
1218
1237
  });
1219
1238
  },
1220
1239
  children: [
1221
- /* @__PURE__ */ o(pn, { className: "univer-mr-2" }),
1222
- y.t("sheets-table.removeTable")
1240
+ /* @__PURE__ */ o(mn, { className: "univer-mr-2" }),
1241
+ I.t("sheets-table.removeTable")
1223
1242
  ]
1224
1243
  }
1225
1244
  )
1226
1245
  ] }),
1227
- open: (se = a[b.tableId]) != null ? se : !1,
1246
+ open: (le = a[b.tableId]) != null ? le : !1,
1228
1247
  onOpenChange: (W) => {
1229
- E(b.tableId, W);
1248
+ L(b.tableId, W);
1230
1249
  },
1231
- children: /* @__PURE__ */ o(xt, {})
1250
+ children: /* @__PURE__ */ o(Mt, {})
1232
1251
  },
1233
1252
  b.tableId
1234
1253
  )
@@ -1238,29 +1257,29 @@ const Si = () => {
1238
1257
  );
1239
1258
  }) }) : null;
1240
1259
  };
1241
- var _i = Object.getOwnPropertyDescriptor, Ti = (t, e, n, r) => {
1242
- for (var i = r > 1 ? void 0 : r ? _i(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1260
+ var Si = Object.getOwnPropertyDescriptor, _i = (t, e, n, r) => {
1261
+ for (var i = r > 1 ? void 0 : r ? Si(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1243
1262
  (s = t[a]) && (i = s(i) || i);
1244
1263
  return i;
1245
1264
  }, te = (t, e) => (n, r) => e(n, r, t);
1246
- let at = class extends Pe {
1247
- constructor(e, n, r, i, a, s, c, d, h, u, g) {
1265
+ let it = class extends Oe {
1266
+ constructor(e, n, r, i, a, s, c, d, h, u, v) {
1248
1267
  super();
1249
- A(this, "_anchorVisible$", new Ot(!0));
1268
+ A(this, "_anchorVisible$", new kt(!0));
1250
1269
  A(this, "_timer");
1251
- A(this, "_anchorPosition$", new Ot([]));
1270
+ A(this, "_anchorPosition$", new kt([]));
1252
1271
  A(this, "anchorPosition$", this._anchorPosition$.asObservable());
1253
- 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 = g, this._initUI(), this._initListener(), this._initTableAnchor();
1272
+ 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();
1254
1273
  }
1255
1274
  _initUI() {
1256
1275
  this.disposeWithMe(
1257
- this._uiPartsService.registerComponent(hr.CONTENT, () => vr(Si, this._injector))
1276
+ this._uiPartsService.registerComponent(dr.CONTENT, () => hr(Ci, this._injector))
1258
1277
  );
1259
1278
  }
1260
1279
  _initListener() {
1261
1280
  this.disposeWithMe(
1262
1281
  this._commandService.onCommandExecuted((e) => {
1263
- (e.id === ir.id || e.id === ar.id) && (this._anchorVisible$.next(!1), this._timer && clearTimeout(this._timer), this._timer = setTimeout(() => {
1282
+ (e.id === rr.id || e.id === ir.id) && (this._anchorVisible$.next(!1), this._timer && clearTimeout(this._timer), this._timer = setTimeout(() => {
1264
1283
  this._anchorVisible$.next(!0);
1265
1284
  }, 300));
1266
1285
  })
@@ -1268,7 +1287,7 @@ let at = class extends Pe {
1268
1287
  }
1269
1288
  _initTableAnchor() {
1270
1289
  this.disposeWithMe(
1271
- yt(
1290
+ It(
1272
1291
  this._context.unit.activeSheet$,
1273
1292
  this._sheetSkeletonManagerService.currentSkeleton$,
1274
1293
  this._scrollManagerService.validViewportScrollInfo$,
@@ -1277,8 +1296,8 @@ let at = class extends Pe {
1277
1296
  this._tableManager.tableNameChanged$,
1278
1297
  this._tableManager.tableRangeChanged$,
1279
1298
  this._tableManager.tableThemeChanged$,
1280
- this._workbookPermissionService.unitPermissionInitStateChange$.pipe(_r((e) => e)),
1281
- this._permissionService.permissionPointUpdate$.pipe(Tr(300)),
1299
+ this._workbookPermissionService.unitPermissionInitStateChange$.pipe(Sr((e) => e)),
1300
+ this._permissionService.permissionPointUpdate$.pipe(_r(300)),
1282
1301
  this._anchorVisible$
1283
1302
  ).subscribe(() => {
1284
1303
  var h;
@@ -1291,25 +1310,25 @@ let at = class extends Pe {
1291
1310
  this._anchorPosition$.next([]);
1292
1311
  return;
1293
1312
  }
1294
- if (!((h = this._permissionService.getPermissionPoint(new sn(n.getUnitId()).id)) == null ? void 0 : h.value)) {
1313
+ if (!((h = this._permissionService.getPermissionPoint(new an(n.getUnitId()).id)) == null ? void 0 : h.value)) {
1295
1314
  this._anchorPosition$.next([]);
1296
1315
  return;
1297
1316
  }
1298
- const d = a.reduce((u, g) => {
1299
- const { startRow: _, startColumn: S } = g.range, T = s.with(ct), k = sr(this._univerInstanceService, this._renderManagerService);
1300
- if (!k) return u;
1301
- const { scene: f } = k, N = f.getViewport(Un.VIEW_MAIN);
1302
- if (!N) return u;
1303
- const y = f == null ? void 0 : f.scaleX, D = f == null ? void 0 : f.scaleY, v = f == null ? void 0 : f.getViewportScrollXY(N);
1304
- if (!y || !f || !D || !v) return u;
1305
- const p = T.getCurrentSkeleton();
1306
- if (!p) return u;
1307
- const L = p.getNoMergeCellWithCoordByIndex(_, S), R = Wn(L.startX, y, v), C = jn(L.startY, D, v) - 25 - 4;
1308
- return C >= -10 && R >= 45 && u.push({
1317
+ const d = a.reduce((u, v) => {
1318
+ const { startRow: S, startColumn: C } = v.range, _ = s.with(ot), O = ar(this._univerInstanceService, this._renderManagerService);
1319
+ if (!O) return u;
1320
+ const { scene: f } = O, E = f.getViewport(An.VIEW_MAIN);
1321
+ if (!E) return u;
1322
+ const I = f == null ? void 0 : f.scaleX, D = f == null ? void 0 : f.scaleY, y = f == null ? void 0 : f.getViewportScrollXY(E);
1323
+ if (!I || !f || !D || !y) return u;
1324
+ const g = _.getCurrentSkeleton();
1325
+ if (!g) return u;
1326
+ const N = g.getNoMergeCellWithCoordByIndex(S, C), R = Un(N.startX, I, y), m = Wn(N.startY, D, y) - 25 - 4;
1327
+ return m >= -10 && R >= 45 && u.push({
1309
1328
  x: R,
1310
- y: C,
1311
- tableId: g.id,
1312
- tableName: g.name
1329
+ y: m,
1330
+ tableId: v.id,
1331
+ tableName: v.name
1313
1332
  }), u;
1314
1333
  }, []);
1315
1334
  this._anchorPosition$.next(d);
@@ -1317,34 +1336,34 @@ let at = class extends Pe {
1317
1336
  );
1318
1337
  }
1319
1338
  };
1320
- at = Ti([
1321
- te(1, x(Oe)),
1322
- te(2, x(ct)),
1323
- te(3, Xt),
1324
- te(4, le),
1325
- te(5, fe),
1326
- te(6, dr),
1327
- te(7, x(ne)),
1328
- te(8, x(rr)),
1329
- te(9, x(on)),
1330
- te(10, x(qt))
1331
- ], at);
1332
- const Ne = 16;
1339
+ it = _i([
1340
+ te(1, x(ke)),
1341
+ te(2, x(ot)),
1342
+ te(3, Gt),
1343
+ te(4, oe),
1344
+ te(5, pe),
1345
+ te(6, ur),
1346
+ te(7, x(re)),
1347
+ te(8, x(nr)),
1348
+ te(9, x(ln)),
1349
+ te(10, x(Zt))
1350
+ ], it);
1351
+ const xe = 16;
1333
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");
1334
- class Wt {
1353
+ class Ut {
1335
1354
  static drawNoSetting(e, n, r, i) {
1336
- e.save(), Lt.drawWith(e, {
1355
+ e.save(), Et.drawWith(e, {
1337
1356
  radius: 2,
1338
- width: Ne,
1339
- height: Ne,
1357
+ width: xe,
1358
+ height: xe,
1340
1359
  fill: i
1341
- }), e.lineCap = "square", e.strokeStyle = r, e.scale(n / Ne, n / Ne), 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(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();
1342
1361
  }
1343
1362
  static drawIconByPath(e, n, r, i) {
1344
- e.save(), e.strokeStyle = r, e.fillStyle = i, Lt.drawWith(e, {
1363
+ e.save(), e.strokeStyle = r, e.fillStyle = i, Et.drawWith(e, {
1345
1364
  radius: 2,
1346
- width: Ne,
1347
- height: Ne,
1365
+ width: xe,
1366
+ height: xe,
1348
1367
  fill: i
1349
1368
  }), n.forEach((a) => {
1350
1369
  const s = new Path2D(a);
@@ -1352,30 +1371,30 @@ class Wt {
1352
1371
  }), e.restore();
1353
1372
  }
1354
1373
  }
1355
- const wi = [
1374
+ const Ti = [
1356
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"
1357
- ], Ii = [
1376
+ ], wi = [
1358
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",
1359
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"
1360
- ], yi = [
1379
+ ], Ii = [
1361
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",
1362
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"
1363
- ], Ri = [
1382
+ ], yi = [
1364
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",
1365
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",
1366
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"
1367
- ], Mi = [
1386
+ ], Ri = [
1368
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",
1369
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",
1370
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"
1371
1390
  ];
1372
- var xi = Object.getOwnPropertyDescriptor, Ni = (t, e, n, r) => {
1373
- for (var i = r > 1 ? void 0 : r ? xi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1391
+ var Mi = Object.getOwnPropertyDescriptor, xi = (t, e, n, r) => {
1392
+ for (var i = r > 1 ? void 0 : r ? Mi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1374
1393
  (s = t[a]) && (i = s(i) || i);
1375
1394
  return i;
1376
- }, pt = (t, e) => (n, r) => e(n, r, t);
1377
- const be = 16, tt = 1;
1378
- let _t = class extends Zn {
1395
+ }, mt = (t, e) => (n, r) => e(n, r, t);
1396
+ const ge = 16, et = 1;
1397
+ let St = class extends jn {
1379
1398
  constructor(e, n, r, i, a) {
1380
1399
  super(e, n);
1381
1400
  A(this, "_cellWidth", 0);
@@ -1391,38 +1410,38 @@ let _t = class extends Zn {
1391
1410
  });
1392
1411
  }
1393
1412
  _draw(e) {
1394
- const n = this._cellHeight, r = this._cellWidth, i = be - r, a = be - n;
1413
+ const n = this._cellHeight, r = this._cellWidth, i = ge - r, a = ge - n;
1395
1414
  e.save();
1396
1415
  const s = new Path2D();
1397
1416
  s.rect(i, a, r, n), e.clip(s);
1398
1417
  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)";
1399
1418
  let u;
1400
1419
  switch (c) {
1401
- case xe.FilteredSortNone:
1420
+ case Me.FilteredSortNone:
1421
+ u = Ti;
1422
+ break;
1423
+ case Me.FilteredSortAsc:
1402
1424
  u = wi;
1403
1425
  break;
1404
- case xe.FilteredSortAsc:
1426
+ case Me.FilteredSortDesc:
1405
1427
  u = Ii;
1406
1428
  break;
1407
- case xe.FilteredSortDesc:
1408
- u = yi;
1429
+ case Me.FilterNoneSortNone:
1409
1430
  break;
1410
- case xe.FilterNoneSortNone:
1431
+ case Me.FilterNoneSortAsc:
1432
+ u = yi;
1411
1433
  break;
1412
- case xe.FilterNoneSortAsc:
1434
+ case Me.FilterNoneSortDesc:
1413
1435
  u = Ri;
1414
1436
  break;
1415
- case xe.FilterNoneSortDesc:
1416
- u = Mi;
1417
- break;
1418
1437
  }
1419
- u ? Wt.drawIconByPath(e, u, d, h) : c !== void 0 && Wt.drawNoSetting(e, be, d, h), e.restore();
1438
+ u ? Ut.drawIconByPath(e, u, d, h) : c !== void 0 && Ut.drawNoSetting(e, ge, d, h), e.restore();
1420
1439
  }
1421
1440
  onPointerDown(e) {
1422
1441
  if (e.button === 2)
1423
1442
  return;
1424
1443
  const { row: n, col: r, unitId: i, subUnitId: a, tableId: s } = this._filterParams;
1425
- this._contextService.getContextValue(ge) || !this._commandService.hasCommand(St.id) || setTimeout(() => {
1444
+ this._contextService.getContextValue(ve) || !this._commandService.hasCommand(Ct.id) || setTimeout(() => {
1426
1445
  const d = {
1427
1446
  row: n,
1428
1447
  col: r,
@@ -1430,7 +1449,7 @@ let _t = class extends Zn {
1430
1449
  subUnitId: a,
1431
1450
  tableId: s
1432
1451
  };
1433
- this._commandService.executeCommand(St.id, d);
1452
+ this._commandService.executeCommand(Ct.id, d);
1434
1453
  }, 200);
1435
1454
  }
1436
1455
  onPointerEnter() {
@@ -1440,18 +1459,18 @@ let _t = class extends Zn {
1440
1459
  this._hovered = !1, this.makeDirty(!0);
1441
1460
  }
1442
1461
  };
1443
- _t = Ni([
1444
- pt(2, It),
1445
- pt(3, le),
1446
- pt(4, x(Pn))
1447
- ], _t);
1448
- var Ei = Object.getOwnPropertyDescriptor, Li = (t, e, n, r) => {
1449
- for (var i = r > 1 ? void 0 : r ? Ei(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1462
+ St = xi([
1463
+ mt(2, wt),
1464
+ mt(3, oe),
1465
+ mt(4, x(On))
1466
+ ], St);
1467
+ var Ni = Object.getOwnPropertyDescriptor, Ei = (t, e, n, r) => {
1468
+ for (var i = r > 1 ? void 0 : r ? Ni(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1450
1469
  (s = t[a]) && (i = s(i) || i);
1451
1470
  return i;
1452
- }, nt = (t, e) => (n, r) => e(n, r, t);
1453
- const $i = 5e3;
1454
- let Tt = class extends Gt {
1471
+ }, tt = (t, e) => (n, r) => e(n, r, t);
1472
+ const Li = 5e3;
1473
+ let _t = class extends Qt {
1455
1474
  constructor(e, n, r, i, a) {
1456
1475
  super();
1457
1476
  A(this, "_buttonRenderDisposable", null);
@@ -1464,7 +1483,7 @@ let Tt = class extends Gt {
1464
1483
  _initRenderer() {
1465
1484
  const e = this._tableManager;
1466
1485
  this._sheetSkeletonManagerService.currentSkeleton$.pipe(
1467
- Ie((n) => {
1486
+ we((n) => {
1468
1487
  var c;
1469
1488
  if (!n) return J(null);
1470
1489
  const { unit: r, unitId: i } = this._context, a = ((c = r.getActiveSheet()) == null ? void 0 : c.getSheetId()) || "", s = () => ({
@@ -1473,7 +1492,7 @@ let Tt = class extends Gt {
1473
1492
  tableFilterRanges: this._tableManager.getSheetFilterRangeWithState(r.getUnitId(), a),
1474
1493
  skeleton: n.skeleton
1475
1494
  });
1476
- return yt(
1495
+ return It(
1477
1496
  e.tableAdd$,
1478
1497
  e.tableNameChanged$,
1479
1498
  e.tableRangeChanged$,
@@ -1481,11 +1500,11 @@ let Tt = class extends Gt {
1481
1500
  e.tableDelete$,
1482
1501
  e.tableFilterChanged$
1483
1502
  ).pipe(
1484
- wr(() => s()),
1485
- an(s())
1503
+ Tr(() => s()),
1504
+ rn(s())
1486
1505
  );
1487
1506
  }),
1488
- Ir(this.dispose$)
1507
+ wr(this.dispose$)
1489
1508
  ).subscribe((n) => {
1490
1509
  this._disposeRendering(), !(!n || !n.tableFilterRanges) && this._renderButtons(n);
1491
1510
  });
@@ -1493,36 +1512,36 @@ let Tt = class extends Gt {
1493
1512
  _renderButtons(e) {
1494
1513
  const { tableFilterRanges: n, unitId: r, skeleton: i, worksheetId: a } = e, { scene: s } = this._context;
1495
1514
  for (const { range: c, states: d, tableId: h } of n) {
1496
- const { startRow: u, startColumn: g, endColumn: _ } = c;
1515
+ const { startRow: u, startColumn: v, endColumn: S } = c;
1497
1516
  this._interceptCellContent(r, a, c);
1498
- for (let S = g; S <= _; S++) {
1499
- const T = `sheets-table-filter-button-${u}-${S}`, k = lr(u, S, s, i), { startX: f, startY: N, endX: y, endY: D } = k, v = y - f, p = D - N;
1500
- if (p <= tt || v <= tt)
1517
+ for (let C = v; C <= S; C++) {
1518
+ const _ = `sheets-table-filter-button-${u}-${C}`, O = sr(u, C, s, i), { startX: f, startY: E, endX: I, endY: D } = O, y = I - f, g = D - E;
1519
+ if (g <= et || y <= et)
1501
1520
  continue;
1502
- const L = d[S - g], R = y - be - tt, C = D - be - tt, H = {
1521
+ const N = d[C - v], R = I - ge - et, m = D - ge - et, B = {
1503
1522
  left: R,
1504
- top: C,
1505
- height: be,
1506
- width: be,
1507
- zIndex: $i,
1508
- cellHeight: p,
1509
- cellWidth: v,
1510
- filterParams: { unitId: r, subUnitId: a, row: u, col: S, buttonState: L, tableId: h }
1511
- }, E = this._injector.createInstance(_t, T, H);
1512
- this._tableFilterButtonShapes.push(E);
1523
+ top: m,
1524
+ height: ge,
1525
+ width: ge,
1526
+ zIndex: Li,
1527
+ cellHeight: g,
1528
+ cellWidth: y,
1529
+ filterParams: { unitId: r, subUnitId: a, row: u, col: C, buttonState: N, tableId: h }
1530
+ }, L = this._injector.createInstance(St, _, B);
1531
+ this._tableFilterButtonShapes.push(L);
1513
1532
  }
1514
1533
  }
1515
1534
  s.addObjects(this._tableFilterButtonShapes), s.makeDirty();
1516
1535
  }
1517
1536
  _interceptCellContent(e, n, r) {
1518
1537
  const { startRow: i, startColumn: a, endColumn: s } = r;
1519
- this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Or.CELL_CONTENT, {
1520
- effect: On.Style,
1538
+ this._buttonRenderDisposable = this._sheetInterceptorService.intercept(kr.CELL_CONTENT, {
1539
+ effect: kn.Style,
1521
1540
  handler: (c, d, h) => {
1522
- const { row: u, col: g, unitId: _, subUnitId: S } = d;
1523
- return _ !== e || S !== n || u !== i || g < a || g > s || ((!c || c === d.rawData) && (c = { ...d.rawData }), c.fontRenderExtension = {
1541
+ const { row: u, col: v, unitId: S, subUnitId: C } = d;
1542
+ return S !== e || C !== n || u !== i || v < a || v > s || ((!c || c === d.rawData) && (c = { ...d.rawData }), c.fontRenderExtension = {
1524
1543
  ...c == null ? void 0 : c.fontRenderExtension,
1525
- rightOffset: be
1544
+ rightOffset: ge
1526
1545
  }), h(c);
1527
1546
  },
1528
1547
  priority: 10
@@ -1533,73 +1552,73 @@ let Tt = class extends Gt {
1533
1552
  this._tableFilterButtonShapes.forEach((n) => n.dispose()), (e = this._buttonRenderDisposable) == null || e.dispose(), this._buttonRenderDisposable = null, this._tableFilterButtonShapes = [];
1534
1553
  }
1535
1554
  };
1536
- Tt = Li([
1537
- nt(1, x(Oe)),
1538
- nt(2, x(ct)),
1539
- nt(3, x(un)),
1540
- nt(4, x(ne))
1541
- ], Tt);
1542
- const ki = (t) => {
1543
- const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = M(ne), [d, h] = q(r), [u, g] = q(""), _ = M(oe), S = M(fe);
1544
- return /* @__PURE__ */ I(Rt, { children: [
1555
+ _t = Ei([
1556
+ tt(1, x(ke)),
1557
+ tt(2, x(ot)),
1558
+ tt(3, x(cn)),
1559
+ tt(4, x(re))
1560
+ ], _t);
1561
+ const $i = (t) => {
1562
+ const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = M(re), [d, h] = q(r), [u, v] = q(""), S = M(ne), C = M(pe);
1563
+ return /* @__PURE__ */ w(yt, { children: [
1545
1564
  /* @__PURE__ */ o(
1546
- Vr,
1565
+ Hr,
1547
1566
  {
1548
1567
  maxRangeCount: 1,
1549
1568
  unitId: e,
1550
1569
  subUnitId: n,
1551
- initialValue: At(r),
1552
- onChange: (T, k) => {
1553
- const f = At(r), N = Hr(k).range, y = ut(S, { unitId: e, subUnitId: n });
1554
- if (!y)
1570
+ initialValue: Vt(r),
1571
+ onChange: (_, O) => {
1572
+ const f = Vt(r), E = Fr(O).range, I = ct(C, { unitId: e, subUnitId: n });
1573
+ if (!I)
1555
1574
  return;
1556
- if (y.worksheet.getMergeData().some((E) => me.intersects(N, E))) {
1557
- g(_.t("sheets-table.tableRangeWithMergeError"));
1575
+ if (I.worksheet.getMergeData().some((L) => be.intersects(E, L))) {
1576
+ v(S.t("sheets-table.tableRangeWithMergeError"));
1558
1577
  return;
1559
1578
  }
1560
- if (c.getTablesBySubunitId(e, n).some((E) => {
1561
- if (E.getId() === s)
1579
+ if (c.getTablesBySubunitId(e, n).some((L) => {
1580
+ if (L.getId() === s)
1562
1581
  return !1;
1563
- const Q = E.getRange();
1564
- return me.intersects(N, Q);
1582
+ const Q = L.getRange();
1583
+ return be.intersects(E, Q);
1565
1584
  })) {
1566
- g(_.t("sheets-table.tableRangeWithOtherTableError"));
1585
+ v(S.t("sheets-table.tableRangeWithOtherTableError"));
1567
1586
  return;
1568
1587
  }
1569
- const { startRow: R, endRow: C } = N;
1570
- if (R === C) {
1571
- g(_.t("sheets-table.tableRangeSingleRowError"));
1588
+ const { startRow: R, endRow: m } = E;
1589
+ if (R === m) {
1590
+ v(S.t("sheets-table.tableRangeSingleRowError"));
1572
1591
  return;
1573
1592
  }
1574
- if (f !== k) {
1593
+ if (f !== O) {
1575
1594
  if (s) {
1576
- const E = c.getTableById(e, s);
1577
- if (E) {
1578
- const Q = E.getRange();
1579
- if (me.intersects(N, Q) && Q.startRow === N.startRow) {
1580
- h(N), g(""), a({
1595
+ const L = c.getTableById(e, s);
1596
+ if (L) {
1597
+ const Q = L.getRange();
1598
+ if (be.intersects(E, Q) && Q.startRow === E.startRow) {
1599
+ h(E), v(""), a({
1581
1600
  unitId: e,
1582
1601
  subUnitId: n,
1583
- range: N
1602
+ range: E
1584
1603
  });
1585
1604
  return;
1586
1605
  } else {
1587
- g(_.t("sheets-table.updateError"));
1606
+ v(S.t("sheets-table.updateError"));
1588
1607
  return;
1589
1608
  }
1590
1609
  }
1591
1610
  }
1592
- h(N), g("");
1611
+ h(E), v("");
1593
1612
  }
1594
1613
  },
1595
1614
  supportAcrossSheet: !1
1596
1615
  }
1597
1616
  ),
1598
1617
  u && /* @__PURE__ */ o("div", { className: "univer-mt-1 univer-text-xs univer-text-red-500", children: u }),
1599
- /* @__PURE__ */ I("div", { className: "univer-mt-4 univer-flex univer-justify-end", children: [
1600
- /* @__PURE__ */ o(Te, { onClick: i, children: _.t("sheets-table.cancel") }),
1618
+ /* @__PURE__ */ w("div", { className: "univer-mt-4 univer-flex univer-justify-end", children: [
1619
+ /* @__PURE__ */ o(_e, { onClick: i, children: S.t("sheets-table.cancel") }),
1601
1620
  /* @__PURE__ */ o(
1602
- Te,
1621
+ _e,
1603
1622
  {
1604
1623
  variant: "primary",
1605
1624
  onClick: () => {
@@ -1610,178 +1629,178 @@ const ki = (t) => {
1610
1629
  });
1611
1630
  },
1612
1631
  className: "univer-ml-2",
1613
- children: _.t("sheets-table.confirm")
1632
+ children: S.t("sheets-table.confirm")
1614
1633
  }
1615
1634
  )
1616
1635
  ] })
1617
1636
  ] });
1618
- }, Pi = (t) => {
1619
- var P, V, Y, ht, Ye, Qe, vt, Ge, gt, De, Be, Fe;
1620
- const { unitId: e, subUnitId: n, tableId: r } = t, i = M(le), a = M(oe), s = M(ne), c = s.getTableById(e, r), d = M(cn), h = M(ye), u = we(d.rangeThemeMapChange$), g = we(h.refreshTable$), _ = M(Dn), [, S] = q(Math.random()), T = we(s.tableThemeChanged$, {
1637
+ }, Oi = (t) => {
1638
+ var k, V, Y, dt, Ye, Qe, ht, Ge, vt, Pe, De, Be;
1639
+ const { unitId: e, subUnitId: n, tableId: r } = t, i = M(oe), a = M(ne), s = M(re), 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$, {
1621
1640
  theme: c == null ? void 0 : c.getTableStyleId(),
1622
1641
  oldTheme: c == null ? void 0 : c.getTableStyleId(),
1623
1642
  unitId: e,
1624
1643
  subUnitId: n,
1625
1644
  tableId: r
1626
- }), k = d.getRegisteredRangeThemes().filter((m) => m == null ? void 0 : m.startsWith(jr)), f = d.getALLRegisteredTheme(e).filter((m) => m == null ? void 0 : m.startsWith(mt)), N = c == null ? void 0 : c.getTableStyleId(), y = f.find((m) => m === N), D = y || f[0], v = d.getCustomRangeThemeStyle(e, D), p = (Y = (V = (P = v == null ? void 0 : v.getHeaderRowStyle()) == null ? void 0 : P.bg) == null ? void 0 : V.rgb) != null ? Y : ve, L = (Qe = (Ye = (ht = v == null ? void 0 : v.getFirstRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : Ye.rgb) != null ? Qe : ve, R = (gt = (Ge = (vt = v == null ? void 0 : v.getSecondRowStyle()) == null ? void 0 : vt.bg) == null ? void 0 : Ge.rgb) != null ? gt : ve, C = (Fe = (Be = (De = v == null ? void 0 : v.getLastRowStyle()) == null ? void 0 : De.bg) == null ? void 0 : Be.rgb) != null ? Fe : ve, [H, E] = q(null), Q = (m) => {
1627
- i.executeCommand(Ct.id, {
1645
+ }), 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(), I = f.find((p) => p === E), D = I || f[0], y = d.getCustomRangeThemeStyle(e, D), g = (Y = (V = (k = y == null ? void 0 : y.getHeaderRowStyle()) == null ? void 0 : k.bg) == null ? void 0 : V.rgb) != null ? Y : he, N = (Qe = (Ye = (dt = y == null ? void 0 : y.getFirstRowStyle()) == null ? void 0 : dt.bg) == null ? void 0 : Ye.rgb) != null ? Qe : he, R = (vt = (Ge = (ht = y == null ? void 0 : y.getSecondRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : Ge.rgb) != null ? vt : he, m = (Be = (De = (Pe = y == null ? void 0 : y.getLastRowStyle()) == null ? void 0 : Pe.bg) == null ? void 0 : De.rgb) != null ? Be : he, [B, L] = q(null), Q = (p) => {
1646
+ i.executeCommand(ft.id, {
1628
1647
  unitId: e,
1629
1648
  tableId: r,
1630
- theme: m
1649
+ theme: p
1631
1650
  });
1632
1651
  }, U = () => {
1633
1652
  if (f.length >= 11) {
1634
- _.emit(a.t("sheets-table.customTooMore"));
1653
+ S.emit(a.t("sheets-table.customTooMore"));
1635
1654
  return;
1636
1655
  }
1637
- const m = f[f.length - 1];
1638
- let w = `${mt}1`;
1639
- if (m) {
1640
- const K = Number(m.split("-")[2]);
1641
- w = `${mt}${K + 1}`;
1656
+ const p = f[f.length - 1];
1657
+ let T = `${bt}1`;
1658
+ if (p) {
1659
+ const K = Number(p.split("-")[2]);
1660
+ T = `${bt}${K + 1}`;
1642
1661
  }
1643
- const z = new Dr(w, { ...Kn });
1644
- i.executeCommand(Jn.id, {
1662
+ const z = new Pr(T, { ...zn });
1663
+ i.executeCommand(Kn.id, {
1645
1664
  unitId: e,
1646
1665
  tableId: r,
1647
1666
  themeStyle: z
1648
1667
  });
1649
- }, ee = (m, w) => {
1650
- i.executeCommand(ln.id, {
1668
+ }, ee = (p, T) => {
1669
+ i.executeCommand(sn.id, {
1651
1670
  unitId: e,
1652
1671
  subUnitId: n,
1653
- styleName: m,
1654
- style: w
1672
+ styleName: p,
1673
+ style: T
1655
1674
  });
1656
- }, Me = (m) => {
1657
- i.executeCommand(er.id, {
1675
+ }, Re = (p) => {
1676
+ i.executeCommand(Jn.id, {
1658
1677
  unitId: e,
1659
1678
  tableId: r,
1660
- themeName: m
1679
+ themeName: p
1661
1680
  });
1662
1681
  };
1663
- if (hn(() => {
1664
- S(Math.random());
1665
- }, [u, g]), !c) return null;
1666
- const ce = new he(p).isDark(), Ce = new he(L).isDark(), ue = new he(R).isDark(), b = new he(C).isDark();
1667
- return /* @__PURE__ */ I("div", { children: [
1682
+ if (dn(() => {
1683
+ C(Math.random());
1684
+ }, [u, v]), !c) return null;
1685
+ const ce = new de(g).isDark(), fe = new de(N).isDark(), ue = new de(R).isDark(), b = new de(m).isDark();
1686
+ return /* @__PURE__ */ w("div", { children: [
1668
1687
  /* @__PURE__ */ o("h5", { children: a.t("sheets-table.defaultStyle") }),
1669
- /* @__PURE__ */ o("div", { className: "univer-flex univer-gap-2", children: k.map((m) => {
1670
- var Se, _e, He, Ve, Ae, Ue, We, je;
1671
- const w = d.getDefaultRangeThemeStyle(m), z = ((_e = (Se = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : Se.bg) == null ? void 0 : _e.rgb) || ve, K = ((Ve = (He = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : He.bg) == null ? void 0 : Ve.rgb) || ve, se = ((Ue = (Ae = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb) || ve, W = ((je = (We = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : We.bg) == null ? void 0 : je.rgb) || ve;
1672
- return /* @__PURE__ */ I(
1688
+ /* @__PURE__ */ o("div", { className: "univer-flex univer-gap-2", children: O.map((p) => {
1689
+ var Ce, Se, Fe, He, Ve, Ae, Ue, We;
1690
+ 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, le = ((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;
1691
+ return /* @__PURE__ */ w(
1673
1692
  "div",
1674
1693
  {
1675
- className: O("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", {
1676
- "univer-border-blue-500": m === T.theme
1694
+ 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", {
1695
+ "univer-border-blue-500": p === _.theme
1677
1696
  }),
1678
- onClick: () => Q(m),
1697
+ onClick: () => Q(p),
1679
1698
  children: [
1680
1699
  /* @__PURE__ */ o("div", { style: { background: z, border: `${G}` } }),
1681
1700
  /* @__PURE__ */ o("div", { style: { background: K, border: `${G}` } }),
1682
- /* @__PURE__ */ o("div", { style: { background: se, border: `${G}` } }),
1701
+ /* @__PURE__ */ o("div", { style: { background: le, border: `${G}` } }),
1683
1702
  /* @__PURE__ */ o("div", { style: { background: W, border: `${G}` } })
1684
1703
  ]
1685
1704
  },
1686
- m
1705
+ p
1687
1706
  );
1688
1707
  }) }),
1689
1708
  /* @__PURE__ */ o("h5", { children: a.t("sheets-table.customStyle") }),
1690
- /* @__PURE__ */ I("div", { className: O("univer-w-full univer-rounded-sm", F), children: [
1691
- /* @__PURE__ */ I("div", { className: "univer-flex univer-flex-wrap univer-gap-2 univer-p-2", children: [
1709
+ /* @__PURE__ */ w("div", { className: P("univer-w-full univer-rounded-sm", H), children: [
1710
+ /* @__PURE__ */ w("div", { className: "univer-flex univer-flex-wrap univer-gap-2 univer-p-2", children: [
1692
1711
  /* @__PURE__ */ o(
1693
1712
  "div",
1694
1713
  {
1695
- className: O("univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px univer-text-center univer-leading-10", F),
1714
+ className: P("univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px univer-text-center univer-leading-10", H),
1696
1715
  onClick: U,
1697
1716
  children: "+"
1698
1717
  }
1699
1718
  ),
1700
- f.map((m) => {
1701
- var Se, _e, He, Ve, Ae, Ue, We, je;
1702
- const w = d.getCustomRangeThemeStyle(e, m), z = (_e = (Se = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : Se.bg) == null ? void 0 : _e.rgb, K = (Ve = (He = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : He.bg) == null ? void 0 : Ve.rgb, se = (Ue = (Ae = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb, W = (je = (We = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : We.bg) == null ? void 0 : je.rgb;
1703
- return /* @__PURE__ */ I(
1719
+ f.map((p) => {
1720
+ var Ce, Se, Fe, He, Ve, Ae, Ue, We;
1721
+ 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, le = (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;
1722
+ return /* @__PURE__ */ w(
1704
1723
  "div",
1705
1724
  {
1706
- className: O("univer-relative univer-h-10 univer-w-8 univer-cursor-pointer univer-border univer-border-solid univer-border-gray-200 univer-p-px", {
1707
- "univer-border-blue-500": m === T.theme
1725
+ 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", {
1726
+ "univer-border-blue-500": p === _.theme
1708
1727
  }),
1709
- onClick: () => Q(m),
1710
- onMouseEnter: () => E(m),
1711
- onMouseLeave: () => E(null),
1728
+ onClick: () => Q(p),
1729
+ onMouseEnter: () => L(p),
1730
+ onMouseLeave: () => L(null),
1712
1731
  children: [
1713
1732
  /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z != null ? z : G, border: `${z ? G : Ke}` } }),
1714
1733
  /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : G, border: `${K ? G : Ke}` } }),
1715
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : G, border: `${se ? G : Ke}` } }),
1734
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: le != null ? le : G, border: `${le ? G : Ke}` } }),
1716
1735
  /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: W != null ? W : G, border: `${W ? G : Ke}` } }),
1717
1736
  /* @__PURE__ */ o(
1718
1737
  "div",
1719
1738
  {
1720
1739
  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]",
1721
- style: { display: H === m ? "block" : "none" },
1722
- onClick: (En) => {
1723
- En.stopPropagation(), Me(m);
1740
+ style: { display: B === p ? "block" : "none" },
1741
+ onClick: (Nn) => {
1742
+ Nn.stopPropagation(), Re(p);
1724
1743
  },
1725
1744
  children: "x"
1726
1745
  }
1727
1746
  )
1728
1747
  ]
1729
1748
  },
1730
- m
1749
+ p
1731
1750
  );
1732
1751
  })
1733
1752
  ] }),
1734
- y && /* @__PURE__ */ I(Rt, { children: [
1753
+ I && /* @__PURE__ */ w(yt, { children: [
1735
1754
  /* @__PURE__ */ o("div", { className: "univer-h-px univer-w-full univer-bg-gray-200" }),
1736
- /* @__PURE__ */ I("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
1737
- /* @__PURE__ */ I("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1755
+ /* @__PURE__ */ w("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
1756
+ /* @__PURE__ */ w("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1738
1757
  /* @__PURE__ */ o(
1739
1758
  "div",
1740
1759
  {
1741
- className: O("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", F, {
1760
+ className: P("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", H, {
1742
1761
  "univer-text-white": ce,
1743
1762
  "univer-text-gray-900": !ce
1744
1763
  }),
1745
1764
  style: {
1746
- background: p
1765
+ background: g
1747
1766
  },
1748
1767
  children: a.t("sheets-table.header")
1749
1768
  }
1750
1769
  ),
1751
1770
  /* @__PURE__ */ o(
1752
- Le,
1771
+ Ee,
1753
1772
  {
1754
1773
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1755
1774
  ze,
1756
1775
  {
1757
- value: p,
1758
- onChange: (m) => {
1759
- const w = Pt("headerRowStyle", {
1776
+ value: g,
1777
+ onChange: (p) => {
1778
+ const T = Ot("headerRowStyle", {
1760
1779
  bg: {
1761
- rgb: m
1780
+ rgb: p
1762
1781
  },
1763
1782
  cl: {
1764
- rgb: new he(m).isDark() ? "#fff" : "#000"
1783
+ rgb: new de(p).isDark() ? "#fff" : "#000"
1765
1784
  }
1766
1785
  });
1767
- ee(c.getTableStyleId(), { headerRowStyle: w });
1786
+ ee(c.getTableStyleId(), { headerRowStyle: T });
1768
1787
  }
1769
1788
  }
1770
1789
  ) }),
1771
- children: /* @__PURE__ */ I(
1790
+ children: /* @__PURE__ */ w(
1772
1791
  "div",
1773
1792
  {
1774
- className: O("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", F),
1793
+ className: P("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", H),
1775
1794
  children: [
1776
1795
  /* @__PURE__ */ o(
1777
1796
  "div",
1778
1797
  {
1779
- className: O("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", F, {
1798
+ className: P("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H, {
1780
1799
  "univer-text-white": ce,
1781
1800
  "univer-text-gray-900": !ce
1782
1801
  }),
1783
1802
  style: {
1784
- background: p
1803
+ background: g
1785
1804
  }
1786
1805
  }
1787
1806
  ),
@@ -1792,51 +1811,51 @@ const ki = (t) => {
1792
1811
  }
1793
1812
  )
1794
1813
  ] }),
1795
- /* @__PURE__ */ I("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1814
+ /* @__PURE__ */ w("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1796
1815
  /* @__PURE__ */ o(
1797
1816
  "div",
1798
1817
  {
1799
- className: O("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", F, {
1800
- "univer-text-white": Ce,
1801
- "univer-text-gray-900": !Ce
1818
+ className: P("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", H, {
1819
+ "univer-text-white": fe,
1820
+ "univer-text-gray-900": !fe
1802
1821
  }),
1803
1822
  style: {
1804
- background: L
1823
+ background: N
1805
1824
  },
1806
1825
  children: a.t("sheets-table.firstLine")
1807
1826
  }
1808
1827
  ),
1809
1828
  /* @__PURE__ */ o(
1810
- Le,
1829
+ Ee,
1811
1830
  {
1812
1831
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1813
1832
  ze,
1814
1833
  {
1815
- value: L,
1816
- onChange: (m) => {
1834
+ value: N,
1835
+ onChange: (p) => {
1817
1836
  ee(c.getTableStyleId(), {
1818
1837
  firstRowStyle: {
1819
1838
  bg: {
1820
- rgb: m
1839
+ rgb: p
1821
1840
  },
1822
1841
  cl: {
1823
- rgb: new he(m).isDark() ? "#fff" : "#000"
1842
+ rgb: new de(p).isDark() ? "#fff" : "#000"
1824
1843
  }
1825
1844
  }
1826
1845
  });
1827
1846
  }
1828
1847
  }
1829
1848
  ) }),
1830
- children: /* @__PURE__ */ I(
1849
+ children: /* @__PURE__ */ w(
1831
1850
  "div",
1832
1851
  {
1833
- className: O("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", F),
1852
+ className: P("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", H),
1834
1853
  children: [
1835
1854
  /* @__PURE__ */ o(
1836
1855
  "div",
1837
1856
  {
1838
- className: O("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", F),
1839
- style: { background: L }
1857
+ className: P("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
1858
+ style: { background: N }
1840
1859
  }
1841
1860
  ),
1842
1861
  /* @__PURE__ */ o(Ze, { className: "univer-h-2 univer-w-2" })
@@ -1846,11 +1865,11 @@ const ki = (t) => {
1846
1865
  }
1847
1866
  )
1848
1867
  ] }),
1849
- /* @__PURE__ */ I("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1868
+ /* @__PURE__ */ w("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1850
1869
  /* @__PURE__ */ o(
1851
1870
  "div",
1852
1871
  {
1853
- className: O("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", F, {
1872
+ className: P("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", H, {
1854
1873
  "univer-text-white": ue,
1855
1874
  "univer-text-gray-900": !ue
1856
1875
  }),
@@ -1861,33 +1880,33 @@ const ki = (t) => {
1861
1880
  }
1862
1881
  ),
1863
1882
  /* @__PURE__ */ o(
1864
- Le,
1883
+ Ee,
1865
1884
  {
1866
1885
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1867
1886
  ze,
1868
1887
  {
1869
1888
  value: R,
1870
- onChange: (m) => ee(c.getTableStyleId(), {
1889
+ onChange: (p) => ee(c.getTableStyleId(), {
1871
1890
  secondRowStyle: {
1872
1891
  bg: {
1873
- rgb: m
1892
+ rgb: p
1874
1893
  },
1875
1894
  cl: {
1876
- rgb: new he(m).isDark() ? "#fff" : "#000"
1895
+ rgb: new de(p).isDark() ? "#fff" : "#000"
1877
1896
  }
1878
1897
  }
1879
1898
  })
1880
1899
  }
1881
1900
  ) }),
1882
- children: /* @__PURE__ */ I(
1901
+ children: /* @__PURE__ */ w(
1883
1902
  "div",
1884
1903
  {
1885
- className: O("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", F),
1904
+ className: P("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", H),
1886
1905
  children: [
1887
1906
  /* @__PURE__ */ o(
1888
1907
  "div",
1889
1908
  {
1890
- className: O("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", F),
1909
+ className: P("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
1891
1910
  style: { background: R }
1892
1911
  }
1893
1912
  ),
@@ -1898,50 +1917,50 @@ const ki = (t) => {
1898
1917
  }
1899
1918
  )
1900
1919
  ] }),
1901
- /* @__PURE__ */ I("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1920
+ /* @__PURE__ */ w("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
1902
1921
  /* @__PURE__ */ o(
1903
1922
  "div",
1904
1923
  {
1905
- className: O("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", F, {
1924
+ className: P("univer-box-border univer-h-full univer-w-52 univer-rounded-sm univer-text-center univer-leading-9", H, {
1906
1925
  "univer-text-white": b,
1907
1926
  "univer-text-gray-900": !b
1908
1927
  }),
1909
1928
  style: {
1910
- background: C
1929
+ background: m
1911
1930
  },
1912
1931
  children: a.t("sheets-table.footer")
1913
1932
  }
1914
1933
  ),
1915
1934
  /* @__PURE__ */ o(
1916
- Le,
1935
+ Ee,
1917
1936
  {
1918
1937
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1919
1938
  ze,
1920
1939
  {
1921
- value: C,
1922
- onChange: (m) => {
1923
- const w = Pt("lastRowStyle", {
1940
+ value: m,
1941
+ onChange: (p) => {
1942
+ const T = Ot("lastRowStyle", {
1924
1943
  bg: {
1925
- rgb: m
1944
+ rgb: p
1926
1945
  },
1927
1946
  cl: {
1928
- rgb: new he(m).isDark() ? "#fff" : "#000"
1947
+ rgb: new de(p).isDark() ? "#fff" : "#000"
1929
1948
  }
1930
1949
  });
1931
- ee(c.getTableStyleId(), { lastRowStyle: w });
1950
+ ee(c.getTableStyleId(), { lastRowStyle: T });
1932
1951
  }
1933
1952
  }
1934
1953
  ) }),
1935
- children: /* @__PURE__ */ I(
1954
+ children: /* @__PURE__ */ w(
1936
1955
  "div",
1937
1956
  {
1938
- className: O("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", F),
1957
+ className: P("univer-flex univer-cursor-pointer univer-items-center univer-gap-2 univer-rounded-sm univer-bg-white univer-p-1", H),
1939
1958
  children: [
1940
1959
  /* @__PURE__ */ o(
1941
1960
  "div",
1942
1961
  {
1943
- className: O("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", F),
1944
- style: { background: C }
1962
+ className: P("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
1963
+ style: { background: m }
1945
1964
  }
1946
1965
  ),
1947
1966
  /* @__PURE__ */ o(Ze, { className: "univer-h-2 univer-w-2" })
@@ -1955,165 +1974,165 @@ const ki = (t) => {
1955
1974
  ] })
1956
1975
  ] })
1957
1976
  ] });
1958
- }, yn = "sheet.table.context-insert_menu-id", Rn = "sheet.table.context-remove_menu-id";
1959
- function Oi(t) {
1977
+ }, In = "sheet.table.context-insert_menu-id", yn = "sheet.table.context-remove_menu-id";
1978
+ function ki(t) {
1960
1979
  return {
1961
- id: Et.id,
1962
- type: Re.BUTTON,
1963
- icon: vn,
1980
+ id: Nt.id,
1981
+ type: ye.BUTTON,
1982
+ icon: hn,
1964
1983
  tooltip: "sheets-table.title",
1965
1984
  title: "sheets-table.title",
1966
- hidden$: gr(t, qe.UNIVER_SHEET),
1967
- disabled$: or(t, {}, !0)
1985
+ hidden$: vr(t, qe.UNIVER_SHEET),
1986
+ disabled$: lr(t, {}, !0)
1968
1987
  };
1969
1988
  }
1970
- function Di(t) {
1989
+ function Pi(t) {
1971
1990
  return {
1972
- id: yn,
1973
- type: Re.SUBITEMS,
1991
+ id: In,
1992
+ type: ye.SUBITEMS,
1974
1993
  icon: "InsertDoubleIcon",
1975
1994
  title: "sheets-table.insert.main",
1976
- hidden$: Mn(t)
1995
+ hidden$: Rn(t)
1977
1996
  };
1978
1997
  }
1979
- function Bi(t) {
1998
+ function Di(t) {
1980
1999
  return {
1981
- id: Rn,
1982
- type: Re.SUBITEMS,
2000
+ id: yn,
2001
+ type: ye.SUBITEMS,
1983
2002
  icon: "ReduceDoubleIcon",
1984
2003
  title: "sheets-table.remove.main",
1985
- hidden$: Mn(t)
2004
+ hidden$: Rn(t)
1986
2005
  };
1987
2006
  }
1988
- function Fi(t) {
2007
+ function Bi(t) {
1989
2008
  return {
1990
- id: en.id,
1991
- type: Re.BUTTON,
2009
+ id: Jt.id,
2010
+ type: ye.BUTTON,
1992
2011
  title: "sheets-table.insert.row",
1993
- hidden$: xn(t)
2012
+ hidden$: Mn(t)
1994
2013
  };
1995
2014
  }
1996
- function Hi(t) {
2015
+ function Fi(t) {
1997
2016
  return {
1998
- id: Jt.id,
2017
+ id: Kt.id,
1999
2018
  title: "sheets-table.insert.col",
2000
- type: Re.BUTTON
2019
+ type: ye.BUTTON
2001
2020
  };
2002
2021
  }
2003
- function Vi(t) {
2022
+ function Hi(t) {
2004
2023
  return {
2005
- id: Kt.id,
2006
- type: Re.BUTTON,
2024
+ id: zt.id,
2025
+ type: ye.BUTTON,
2007
2026
  title: "sheets-table.remove.row",
2008
- hidden$: xn(t)
2027
+ hidden$: Mn(t)
2009
2028
  };
2010
2029
  }
2011
- function Ai(t) {
2030
+ function Vi(t) {
2012
2031
  return {
2013
- id: zt.id,
2032
+ id: Xt.id,
2014
2033
  title: "sheets-table.remove.col",
2015
- type: Re.BUTTON
2034
+ type: ye.BUTTON
2016
2035
  };
2017
2036
  }
2018
- function Mn(t) {
2019
- const e = t.get(dt);
2020
- return t.get(fe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
2021
- Ie((i) => i ? i.activeSheet$.pipe(
2022
- Ie((a) => a ? e.selectionMoveEnd$.pipe(
2023
- Ie((s) => {
2037
+ function Rn(t) {
2038
+ const e = t.get(ut);
2039
+ return t.get(pe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
2040
+ we((i) => i ? i.activeSheet$.pipe(
2041
+ we((a) => a ? e.selectionMoveEnd$.pipe(
2042
+ we((s) => {
2024
2043
  if (!s.length || s.length > 1) return J(!0);
2025
- const d = s[0].range, u = t.get(tn).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2044
+ const d = s[0].range, u = t.get(en).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2026
2045
  return J(!u);
2027
2046
  })
2028
2047
  ) : J(!0))
2029
2048
  ) : J(!0))
2030
2049
  );
2031
2050
  }
2032
- function xn(t) {
2033
- const e = t.get(dt);
2034
- return t.get(fe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
2035
- Ie((i) => i ? i.activeSheet$.pipe(
2036
- Ie((a) => a ? e.selectionMoveEnd$.pipe(
2037
- Ie((s) => {
2051
+ function Mn(t) {
2052
+ const e = t.get(ut);
2053
+ return t.get(pe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
2054
+ we((i) => i ? i.activeSheet$.pipe(
2055
+ we((a) => a ? e.selectionMoveEnd$.pipe(
2056
+ we((s) => {
2038
2057
  if (!s.length || s.length > 1) return J(!0);
2039
- const d = s[0].range, u = t.get(tn).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2058
+ const d = s[0].range, u = t.get(en).getContainerTableWithRange(i.getUnitId(), a.getSheetId(), d);
2040
2059
  if (!u)
2041
2060
  return J(!0);
2042
- const g = u.getRange();
2043
- return d.startRow === g.startRow ? J(!0) : J(!1);
2061
+ const v = u.getRange();
2062
+ return d.startRow === v.startRow ? J(!0) : J(!1);
2044
2063
  })
2045
2064
  ) : J(!0))
2046
2065
  ) : J(!0))
2047
2066
  );
2048
2067
  }
2049
- const Ui = {
2050
- [pr.ORGANIZATION]: {
2051
- [Et.id]: {
2068
+ const Ai = {
2069
+ [mr.ORGANIZATION]: {
2070
+ [Nt.id]: {
2052
2071
  order: 0,
2053
- menuItemFactory: Oi
2072
+ menuItemFactory: ki
2054
2073
  }
2055
2074
  },
2056
- [br.MAIN_AREA]: {
2057
- [mr.LAYOUT]: {
2058
- [yn]: {
2075
+ [gr.MAIN_AREA]: {
2076
+ [br.LAYOUT]: {
2077
+ [In]: {
2059
2078
  order: 5,
2060
- menuItemFactory: Di,
2061
- [en.id]: {
2079
+ menuItemFactory: Pi,
2080
+ [Jt.id]: {
2062
2081
  order: 1,
2063
- menuItemFactory: Fi
2082
+ menuItemFactory: Bi
2064
2083
  },
2065
- [Jt.id]: {
2084
+ [Kt.id]: {
2066
2085
  order: 2,
2067
- menuItemFactory: Hi
2086
+ menuItemFactory: Fi
2068
2087
  }
2069
2088
  },
2070
- [Rn]: {
2089
+ [yn]: {
2071
2090
  order: 6,
2072
- menuItemFactory: Bi,
2073
- [Kt.id]: {
2091
+ menuItemFactory: Di,
2092
+ [zt.id]: {
2074
2093
  order: 1,
2075
- menuItemFactory: Vi
2094
+ menuItemFactory: Hi
2076
2095
  },
2077
- [zt.id]: {
2096
+ [Xt.id]: {
2078
2097
  order: 2,
2079
- menuItemFactory: Ai
2098
+ menuItemFactory: Vi
2080
2099
  }
2081
2100
  }
2082
2101
  }
2083
2102
  }
2084
2103
  };
2085
- var Wi = Object.getOwnPropertyDescriptor, ji = (t, e, n, r) => {
2086
- for (var i = r > 1 ? void 0 : r ? Wi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2104
+ var Ui = Object.getOwnPropertyDescriptor, Wi = (t, e, n, r) => {
2105
+ for (var i = r > 1 ? void 0 : r ? Ui(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2087
2106
  (s = t[a]) && (i = s(i) || i);
2088
2107
  return i;
2089
- }, jt = (t, e) => (n, r) => e(n, r, t);
2090
- let st = class extends Pe {
2108
+ }, Wt = (t, e) => (n, r) => e(n, r, t);
2109
+ let at = class extends Oe {
2091
2110
  constructor(t, e) {
2092
2111
  super(), this._componentManager = t, this._menuManagerService = e, this._initComponents(), this._initMenu();
2093
2112
  }
2094
2113
  _initComponents() {
2095
2114
  [
2096
- [vn, Tn],
2097
- [Ee, ki],
2098
- [gn, Pi]
2115
+ [hn, _n],
2116
+ [Ne, $i],
2117
+ [vn, Oi]
2099
2118
  ].forEach(([t, e]) => {
2100
2119
  this.disposeWithMe(this._componentManager.register(t, e));
2101
2120
  });
2102
2121
  }
2103
2122
  _initMenu() {
2104
- this._menuManagerService.mergeMenu(Ui);
2123
+ this._menuManagerService.mergeMenu(Ai);
2105
2124
  }
2106
2125
  };
2107
- st = ji([
2108
- jt(0, x(nn)),
2109
- jt(1, x(fr))
2110
- ], st);
2111
- var Zi = Object.getOwnPropertyDescriptor, qi = (t, e, n, r) => {
2112
- for (var i = r > 1 ? void 0 : r ? Zi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2126
+ at = Wi([
2127
+ Wt(0, x(tn)),
2128
+ Wt(1, x(pr))
2129
+ ], at);
2130
+ var ji = Object.getOwnPropertyDescriptor, Zi = (t, e, n, r) => {
2131
+ for (var i = r > 1 ? void 0 : r ? ji(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2113
2132
  (s = t[a]) && (i = s(i) || i);
2114
2133
  return i;
2115
- }, rt = (t, e) => (n, r) => e(n, r, t);
2116
- let wt = class extends Gt {
2134
+ }, nt = (t, e) => (n, r) => e(n, r, t);
2135
+ let Tt = class extends Qt {
2117
2136
  constructor(t, e, n, r, i) {
2118
2137
  super(), this._context = t, this._injector = e, this._sheetSkeletonManagerService = n, this._tableManager = r, this._sheetTableThemeUIController = i, this._initListener();
2119
2138
  }
@@ -2129,7 +2148,7 @@ let wt = class extends Gt {
2129
2148
  _initListener() {
2130
2149
  const t = this._tableManager, e = this._dirtySkeleton.bind(this);
2131
2150
  this.disposeWithMe(
2132
- yt(
2151
+ It(
2133
2152
  t.tableAdd$,
2134
2153
  t.tableDelete$,
2135
2154
  t.tableNameChanged$,
@@ -2144,18 +2163,18 @@ let wt = class extends Gt {
2144
2163
  );
2145
2164
  }
2146
2165
  };
2147
- wt = qi([
2148
- rt(1, x(Oe)),
2149
- rt(2, x(ct)),
2150
- rt(3, x(ne)),
2151
- rt(4, x(ye))
2152
- ], wt);
2153
- var Yi = Object.getOwnPropertyDescriptor, Qi = (t, e, n, r) => {
2154
- for (var i = r > 1 ? void 0 : r ? Yi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2166
+ Tt = Zi([
2167
+ nt(1, x(ke)),
2168
+ nt(2, x(ot)),
2169
+ nt(3, x(re)),
2170
+ nt(4, x(Ie))
2171
+ ], Tt);
2172
+ var qi = Object.getOwnPropertyDescriptor, Yi = (t, e, n, r) => {
2173
+ for (var i = r > 1 ? void 0 : r ? qi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2155
2174
  (s = t[a]) && (i = s(i) || i);
2156
2175
  return i;
2157
- }, ft = (t, e) => (n, r) => e(n, r, t);
2158
- let lt = class extends Pe {
2176
+ }, pt = (t, e) => (n, r) => e(n, r, t);
2177
+ let st = class extends Oe {
2159
2178
  constructor(t, e, n) {
2160
2179
  super(), this._sheetInterceptorService = t, this._univerInstanceService = e, this._tableManager = n, this._initSelectionChange();
2161
2180
  }
@@ -2163,31 +2182,31 @@ let lt = class extends Pe {
2163
2182
  this.disposeWithMe(
2164
2183
  this._sheetInterceptorService.interceptCommand({
2165
2184
  getMutations: (t) => {
2166
- if (t.id === cr.id) {
2167
- const e = ut(this._univerInstanceService);
2185
+ if (t.id === or.id) {
2186
+ const e = ct(this._univerInstanceService);
2168
2187
  if (!e)
2169
2188
  return { redos: [], undos: [] };
2170
2189
  const n = t.params, { range: r } = n, { unitId: i, subUnitId: a, worksheet: s } = e, d = this._tableManager.getTablesBySubunitId(i, a).find((h) => {
2171
2190
  const u = h.getRange();
2172
- return me.contains(u, r);
2191
+ return be.contains(u, r);
2173
2192
  });
2174
2193
  if (d) {
2175
2194
  const h = d.getRange(), u = {
2176
2195
  ...h,
2177
2196
  startRow: h.startRow + 1
2178
2197
  };
2179
- return me.equals(h, r) ? { undos: [], redos: [] } : me.equals(u, r) ? {
2198
+ return be.equals(h, r) ? { undos: [], redos: [] } : be.equals(u, r) ? {
2180
2199
  undos: [],
2181
2200
  redos: [
2182
2201
  {
2183
- id: Ft.id,
2202
+ id: Bt.id,
2184
2203
  params: {
2185
2204
  unitId: i,
2186
2205
  subUnitId: a,
2187
2206
  selections: [
2188
2207
  {
2189
2208
  range: h,
2190
- primary: Bt(h, s)
2209
+ primary: Dt(h, s)
2191
2210
  }
2192
2211
  ]
2193
2212
  }
@@ -2197,14 +2216,14 @@ let lt = class extends Pe {
2197
2216
  undos: [],
2198
2217
  redos: [
2199
2218
  {
2200
- id: Ft.id,
2219
+ id: Bt.id,
2201
2220
  params: {
2202
2221
  unitId: i,
2203
2222
  subUnitId: a,
2204
2223
  selections: [
2205
2224
  {
2206
2225
  range: u,
2207
- primary: Bt(u, s)
2226
+ primary: Dt(u, s)
2208
2227
  }
2209
2228
  ]
2210
2229
  }
@@ -2219,42 +2238,42 @@ let lt = class extends Pe {
2219
2238
  );
2220
2239
  }
2221
2240
  };
2222
- lt = Qi([
2223
- ft(0, x(un)),
2224
- ft(1, x(fe)),
2225
- ft(2, x(ne))
2226
- ], lt);
2227
- var Gi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, zi = (t, e, n) => e in t ? Gi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ki = (t, e, n, r) => {
2228
- for (var i = r > 1 ? void 0 : r ? Xi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2241
+ st = Yi([
2242
+ pt(0, x(cn)),
2243
+ pt(1, x(pe)),
2244
+ pt(2, x(re))
2245
+ ], st);
2246
+ 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) => {
2247
+ for (var i = r > 1 ? void 0 : r ? Gi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2229
2248
  (s = t[a]) && (i = s(i) || i);
2230
2249
  return i;
2231
- }, it = (t, e) => (n, r) => e(n, r, t), Nn = (t, e, n) => zi(t, typeof e != "symbol" ? e + "" : e, n);
2232
- let ot = class extends Fn {
2233
- constructor(t = Ut, e, n, r, i) {
2250
+ }, rt = (t, e) => (n, r) => e(n, r, t), xn = (t, e, n) => Xi(t, typeof e != "symbol" ? e + "" : e, n);
2251
+ let lt = class extends Bn {
2252
+ constructor(t = At, e, n, r, i) {
2234
2253
  super(), this._config = t, this._injector = e, this._commandService = n, this._configService = r, this._renderManagerService = i;
2235
- const { menu: a, ...s } = Hn(
2254
+ const { menu: a, ...s } = Fn(
2236
2255
  {},
2237
- Ut,
2256
+ At,
2238
2257
  this._config
2239
2258
  );
2240
- a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(In, s), this._initRegisterCommand();
2259
+ a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(wn, s), this._initRegisterCommand();
2241
2260
  }
2242
2261
  onStarting() {
2243
- Vn(this._injector, [
2244
- [ke],
2262
+ Hn(this._injector, [
2245
2263
  [$e],
2246
- [st],
2247
- [ye],
2248
- [lt]
2264
+ [Le],
2265
+ [at],
2266
+ [Ie],
2267
+ [st]
2249
2268
  ]);
2250
2269
  }
2251
2270
  onReady() {
2252
- An(this._injector, [
2253
- [ke],
2271
+ Vn(this._injector, [
2254
2272
  [$e],
2255
- [st],
2256
- [ye],
2257
- [lt]
2273
+ [Le],
2274
+ [at],
2275
+ [Ie],
2276
+ [st]
2258
2277
  ]);
2259
2278
  }
2260
2279
  onRendered() {
@@ -2262,29 +2281,29 @@ let ot = class extends Fn {
2262
2281
  }
2263
2282
  _registerRenderModules() {
2264
2283
  const t = [
2265
- [Tt],
2266
- [wt]
2284
+ [_t],
2285
+ [Tt]
2267
2286
  ];
2268
- this._config.hideAnchor !== !0 && t.push([at]), t.forEach((e) => {
2287
+ this._config.hideAnchor !== !0 && t.push([it]), t.forEach((e) => {
2269
2288
  this.disposeWithMe(this._renderManagerService.registerRenderModule(qe.UNIVER_SHEET, e));
2270
2289
  });
2271
2290
  }
2272
2291
  _initRegisterCommand() {
2273
2292
  [
2274
- St,
2275
- Et
2293
+ Ct,
2294
+ Nt
2276
2295
  ].forEach((t) => this._commandService.registerCommand(t));
2277
2296
  }
2278
2297
  };
2279
- Nn(ot, "pluginName", Ar);
2280
- Nn(ot, "type", qe.UNIVER_SHEET);
2281
- ot = Ki([
2282
- Bn(tr),
2283
- it(1, x(Oe)),
2284
- it(2, x(le)),
2285
- it(3, Qt),
2286
- it(4, Xt)
2287
- ], ot);
2298
+ xn(lt, "pluginName", Vr);
2299
+ xn(lt, "type", qe.UNIVER_SHEET);
2300
+ lt = zi([
2301
+ Dn(er),
2302
+ rt(1, x(ke)),
2303
+ rt(2, x(oe)),
2304
+ rt(3, Yt),
2305
+ rt(4, Gt)
2306
+ ], lt);
2288
2307
  export {
2289
- ot as UniverSheetsTableUIPlugin
2308
+ lt as UniverSheetsTableUIPlugin
2290
2309
  };