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

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