@univerjs/sheets-table-ui 0.8.0-beta.0 → 0.8.0-beta.1

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/es/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  var Ln = Object.defineProperty;
2
2
  var $n = (t, e, n) => e in t ? Ln(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var A = (t, e, n) => $n(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { Inject as N, IUniverInstanceService as fe, ICommandService as le, Disposable as Pe, ObjectMatrix as kn, cellToRange as Zt, Rectangle as me, LocaleService as oe, Injector as Oe, dayjs as de, IPermissionService as qt, IContextService as It, CommandType as Yt, IConfigService as Qt, ThemeService as Pn, RxDisposable as Gt, InterceptorEffectEnum as On, ErrorService as Bn, ColorKit as he, UniverInstanceType as ot, DependentOn as Dn, Plugin as Fn, merge as Hn, registerDependencies as Vn, touchDependencies as An } from "@univerjs/core";
5
- import { IRenderManagerService as zt, SHEET_VIEWPORT_KEY as Un, convertTransformToOffsetX as Wn, convertTransformToOffsetY as jn, Rect as Lt, Shape as Zn } from "@univerjs/engine-render";
6
- import { TableManager as ne, SheetTableService as qn, SetSheetTableFilterCommand as $t, isConditionFilter as Yn, isManualFilter as Qn, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as j, TableConditionTypeEnum as D, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Ge, TableColumnFilterTypeEnum as kt, AddSheetTableCommand as Gn, SHEET_TABLE_CUSTOM_THEME_PREFIX as zn, DeleteSheetTableCommand as Xn, SetSheetTableCommand as Ct, SheetsTableButtonStateEnum as Ne, processStyleWithBorderStyle as Pt, customEmptyThemeWithBorderStyle as Kn, AddTableThemeCommand as Jn, RemoveTableThemeCommand as er, SheetTableRemoveColCommand as Xt, SheetTableRemoveRowCommand as Kt, SheetTableInsertColCommand as Jt, SheetTableInsertRowCommand as en, SheetsTableController as tn, UniverSheetsTablePlugin as tr } from "@univerjs/sheets-table";
4
+ import { Inject as x, IUniverInstanceService as fe, ICommandService as le, Disposable as Pe, ObjectMatrix as kn, cellToRange as Zt, Rectangle as me, LocaleService as oe, Injector as Oe, dayjs as de, IPermissionService as qt, IContextService as It, CommandType as Yt, IConfigService as Qt, ThemeService as Pn, RxDisposable as Gt, InterceptorEffectEnum as On, ErrorService as Dn, ColorKit as he, UniverInstanceType as ot, DependentOn as Bn, Plugin as Fn, merge as Hn, registerDependencies as Vn, touchDependencies as An } from "@univerjs/core";
5
+ import { IRenderManagerService as Xt, SHEET_VIEWPORT_KEY as Un, convertTransformToOffsetX as Wn, convertTransformToOffsetY as jn, Rect as Lt, Shape as Zn } from "@univerjs/engine-render";
6
+ import { TableManager as ne, SheetTableService as qn, SetSheetTableFilterCommand as $t, isConditionFilter as Yn, isManualFilter as Qn, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as j, TableConditionTypeEnum as B, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Ge, TableColumnFilterTypeEnum as kt, AddSheetTableCommand as Gn, SHEET_TABLE_CUSTOM_THEME_PREFIX as Xn, DeleteSheetTableCommand as zn, SetSheetTableCommand as Ct, SheetsTableButtonStateEnum as xe, processStyleWithBorderStyle as Pt, customEmptyThemeWithBorderStyle as Kn, AddTableThemeCommand as Jn, RemoveTableThemeCommand as er, SheetTableRemoveColCommand as zt, SheetTableRemoveRowCommand as Kt, SheetTableInsertColCommand as Jt, SheetTableInsertRowCommand as en, SheetsTableController as tn, UniverSheetsTablePlugin as tr } from "@univerjs/sheets-table";
7
7
  import { SheetCanvasPopManagerService as nr, SheetSkeletonManagerService as ct, SheetScrollManagerService as rr, SetZoomRatioOperation as ir, SetScrollOperation as ar, getSheetObject as sr, getCoordByCell as lr, getCurrentRangeDisable$ as or, SelectAllCommand as cr } from "@univerjs/sheets-ui";
8
- import { useDependency as R, ComponentManager as nn, IDialogService as rn, ISidebarService as ur, useObservable as we, IUIPartsService as dr, BuiltInUIPart as hr, connectInjector as vr, MenuItemType as Me, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
8
+ import { useDependency as M, ComponentManager as nn, IDialogService as rn, ISidebarService as ur, useObservable as we, IUIPartsService as dr, BuiltInUIPart as hr, connectInjector as vr, MenuItemType as Re, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
9
9
  import { startWith as an, distinctUntilChanged as fr, Subject as Cr, BehaviorSubject as Ot, merge as yt, filter as Sr, debounceTime as _r, switchMap as Ie, of as J, map as Tr, takeUntil as wr } from "rxjs";
10
- import { jsxs as I, jsx as o, Fragment as Mt } from "react/jsx-runtime";
11
- import { Dropdown as Le, clsx as O, borderClassName as F, CascaderList as Ir, Input as Rt, InputNumber as bt, DatePicker as yr, DateRangePicker as Mr, Select as Rr, Checkbox as Bt, scrollbarClassName as Nr, ButtonGroup as xr, Button as Te, Segmented as Er, ColorPicker as ze } from "@univerjs/design";
12
- import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as sn, getSheetCommandTarget as ut, SheetsSelectionsService as dt, isSingleCellSelection as $r, expandToContinuousRange as kr, SetRangeThemeMutation as ln, WorkbookPermissionService as on, SheetRangeThemeModel as cn, SheetInterceptorService as un, INTERCEPTOR_POINT as Pr, RangeThemeStyle as Or, getPrimaryForRange as Dt, SetSelectionsOperation as Ft } from "@univerjs/sheets";
13
- import { SortRangeCommand as Br, SortType as Ht } from "@univerjs/sheets-sort";
14
- import { forwardRef as re, useRef as Dr, createElement as ie, useState as q, useMemo as dn, useCallback as Vt, useEffect as hn } from "react";
10
+ import { jsxs as I, jsx as o, Fragment as Rt } from "react/jsx-runtime";
11
+ import { Dropdown as Le, clsx as O, borderClassName as F, CascaderList as Ir, Input as Mt, InputNumber as bt, DatePicker as yr, DateRangePicker as Rr, Select as Mr, Checkbox as Dt, scrollbarClassName as xr, ButtonGroup as Nr, Button as Te, Segmented as Er, ColorPicker as Xe } from "@univerjs/design";
12
+ import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as sn, getSheetCommandTarget as ut, SheetsSelectionsService as dt, isSingleCellSelection as $r, expandToContinuousRange as kr, SetRangeThemeMutation as ln, WorkbookPermissionService as on, SheetRangeThemeModel as cn, SheetInterceptorService as un, INTERCEPTOR_POINT as Pr, RangeThemeStyle as Or, getPrimaryForRange as Bt, SetSelectionsOperation as Ft } from "@univerjs/sheets";
13
+ import { SortRangeCommand as Dr, SortType as Ht } from "@univerjs/sheets-sort";
14
+ import { forwardRef as re, useRef as Br, createElement as ie, useState as q, useMemo as dn, useCallback as Vt, useEffect as hn } from "react";
15
15
  import { serializeRange as At, deserializeRangeWithSheet as Fr } from "@univerjs/engine-formula";
16
16
  import { RangeSelector as Hr } from "@univerjs/sheets-formula-ui";
17
- const Vr = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Ar = "UNIVER_SHEET_Table_FILTER_PANEL_ID", vn = "TABLE_TOOLBAR_BUTTON", Ee = "TABLE_SELECTOR_DIALOG", Ur = "SHEET_TABLE_THEME_PANEL_ID", gn = "SHEET_TABLE_THEME_PANEL", mt = "table-custom-", Wr = "table-default-", ve = "rgb(255, 255, 255)", G = "none", Xe = "1px solid rgb(var(--grey-200))";
18
- var z = function() {
19
- return z = Object.assign || function(t) {
17
+ const Vr = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Ar = "UNIVER_SHEET_Table_FILTER_PANEL_ID", vn = "TABLE_TOOLBAR_BUTTON", Ee = "TABLE_SELECTOR_DIALOG", Ur = "SHEET_TABLE_THEME_PANEL_ID", gn = "SHEET_TABLE_THEME_PANEL", mt = "table-custom-", Wr = "table-default-", ve = "rgb(255, 255, 255)", G = "none", ze = "1px solid rgb(var(--grey-200))";
18
+ var X = function() {
19
+ return X = Object.assign || function(t) {
20
20
  for (var e, n = 1, r = arguments.length; n < r; n++) {
21
21
  e = arguments[n];
22
22
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
23
23
  }
24
24
  return t;
25
- }, z.apply(this, arguments);
25
+ }, X.apply(this, arguments);
26
26
  }, jr = function(t, e) {
27
27
  var n = {};
28
28
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
@@ -31,16 +31,16 @@ var z = function() {
31
31
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
32
32
  return n;
33
33
  }, ae = re(function(t, e) {
34
- var n = t.icon, r = t.id, i = t.className, a = t.extend, s = jr(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), d = Dr("_".concat(Yr()));
35
- return bn(n, "".concat(r), { defIds: n.defIds, idSuffix: d.current }, z({ ref: e, className: c }, s), a);
34
+ var n = t.icon, r = t.id, i = t.className, a = t.extend, s = jr(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), d = Br("_".concat(Yr()));
35
+ return bn(n, "".concat(r), { defIds: n.defIds, idSuffix: d.current }, X({ ref: e, className: c }, s), a);
36
36
  });
37
37
  function bn(t, e, n, r, i) {
38
- return ie(t.tag, z(z({ key: e }, Zr(t, n, i)), r), (qr(t, n).children || []).map(function(a, s) {
38
+ return ie(t.tag, X(X({ key: e }, Zr(t, n, i)), r), (qr(t, n).children || []).map(function(a, s) {
39
39
  return bn(a, "".concat(e, "-").concat(t.tag, "-").concat(s), n, void 0, i);
40
40
  }));
41
41
  }
42
42
  function Zr(t, e, n) {
43
- var r = z({}, t.attrs);
43
+ var r = X({}, t.attrs);
44
44
  n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1), t.tag === "mask" && r.id && (r.id = r.id + e.idSuffix), Object.entries(r).forEach(function(a) {
45
45
  var s = a[0], c = a[1];
46
46
  s === "mask" && typeof c == "string" && (r[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
@@ -53,86 +53,86 @@ function Zr(t, e, n) {
53
53
  }
54
54
  function qr(t, e) {
55
55
  var n, r = e.defIds;
56
- return !r || r.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? z(z({}, t), { children: t.children.map(function(i) {
57
- return typeof i.attrs.id == "string" && r && r.indexOf(i.attrs.id) > -1 ? z(z({}, i), { attrs: z(z({}, i.attrs), { id: i.attrs.id + e.idSuffix }) }) : i;
56
+ return !r || r.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? X(X({}, t), { children: t.children.map(function(i) {
57
+ return typeof i.attrs.id == "string" && r && r.includes(i.attrs.id) ? X(X({}, i), { attrs: X(X({}, i.attrs), { id: i.attrs.id + e.idSuffix }) }) : i;
58
58
  }) }) : t;
59
59
  }
60
60
  function Yr() {
61
61
  return Math.random().toString(36).substring(2, 8);
62
62
  }
63
63
  ae.displayName = "UniverIcon";
64
- var Qr = { 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" } }] }, mn = re(function(t, e) {
64
+ var Qr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, mn = re(function(t, e) {
65
65
  return ie(ae, Object.assign({}, t, {
66
- id: "ascending- single",
66
+ id: "ascending-icon",
67
67
  ref: e,
68
68
  icon: Qr
69
69
  }));
70
70
  });
71
- mn.displayName = "AscendingSingle";
72
- var Gr = { 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" } }] }, pn = re(function(t, e) {
71
+ mn.displayName = "AscendingIcon";
72
+ var Gr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928L9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171C10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778L9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539C9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263L6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539C5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778L6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pn = re(function(t, e) {
73
73
  return ie(ae, Object.assign({}, t, {
74
- id: "delete-single",
74
+ id: "delete-icon",
75
75
  ref: e,
76
76
  icon: Gr
77
77
  }));
78
78
  });
79
- pn.displayName = "DeleteSingle";
80
- var zr = { 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" } }] }, fn = re(function(t, e) {
79
+ pn.displayName = "DeleteIcon";
80
+ var Xr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, fn = re(function(t, e) {
81
81
  return ie(ae, Object.assign({}, t, {
82
- id: "descending-single",
82
+ id: "descending-icon",
83
83
  ref: e,
84
- icon: zr
84
+ icon: Xr
85
85
  }));
86
86
  });
87
- fn.displayName = "DescendingSingle";
88
- var Xr = { 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" } }] }, Ze = re(function(t, e) {
87
+ fn.displayName = "DescendingIcon";
88
+ var zr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z" } }] }, Ze = re(function(t, e) {
89
89
  return ie(ae, Object.assign({}, t, {
90
- id: "dropdown-single",
90
+ id: "dropdown-icon",
91
91
  ref: e,
92
- icon: Xr
92
+ icon: zr
93
93
  }));
94
94
  });
95
- Ze.displayName = "DropdownSingle";
96
- var Kr = { 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" } }] }, Cn = re(function(t, e) {
95
+ Ze.displayName = "DropdownIcon";
96
+ var Kr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.33333 3.33333V6H6V3.33333H3.33333ZM2 3.238C2 2.55427 2.55427 2 3.238 2H6.09533C6.77906 2 7.33333 2.55427 7.33333 3.238V6.09533C7.33333 6.77906 6.77906 7.33333 6.09533 7.33333H3.238C2.55427 7.33333 2 6.77906 2 6.09533V3.238ZM10 3.33333V6H12.6667V3.33333H10ZM8.66667 3.238C8.66667 2.55427 9.22094 2 9.90467 2H12.762C13.4457 2 14 2.55427 14 3.238V6.09533C14 6.77906 13.4457 7.33333 12.762 7.33333H9.90467C9.22094 7.33333 8.66667 6.77906 8.66667 6.09533V3.238ZM3.33333 10V12.6667H6V10H3.33333ZM2 9.90467C2 9.22094 2.55427 8.66667 3.238 8.66667H6.09533C6.77906 8.66667 7.33333 9.22094 7.33333 9.90467V12.762C7.33333 13.4457 6.77906 14 6.09533 14H3.238C2.55427 14 2 13.4457 2 12.762V9.90467ZM10 10V12.6667H12.6667V10H10ZM8.66667 9.90467C8.66667 9.22094 9.22094 8.66667 9.90467 8.66667H12.762C13.4457 8.66667 14 9.22094 14 9.90467V12.762C14 13.4457 13.4457 14 12.762 14H9.90467C9.22094 14 8.66667 13.4457 8.66667 12.762V9.90467Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Cn = re(function(t, e) {
97
97
  return ie(ae, Object.assign({}, t, {
98
- id: "grid-outline-single",
98
+ id: "grid-outline-icon",
99
99
  ref: e,
100
100
  icon: Kr
101
101
  }));
102
102
  });
103
- Cn.displayName = "GridOutlineSingle";
104
- var Jr = { 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" } }] }, Nt = re(function(t, e) {
103
+ Cn.displayName = "GridOutlineIcon";
104
+ var Jr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, xt = re(function(t, e) {
105
105
  return ie(ae, Object.assign({}, t, {
106
- id: "more-down-single",
106
+ id: "more-down-icon",
107
107
  ref: e,
108
108
  icon: Jr
109
109
  }));
110
110
  });
111
- Nt.displayName = "MoreDownSingle";
112
- var ei = { 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" } }] }, Sn = re(function(t, e) {
111
+ xt.displayName = "MoreDownIcon";
112
+ var ei = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Sn = re(function(t, e) {
113
113
  return ie(ae, Object.assign({}, t, {
114
- id: "paint-bucket",
114
+ id: "paint-bucket-double-icon",
115
115
  ref: e,
116
116
  icon: ei
117
117
  }));
118
118
  });
119
- Sn.displayName = "PaintBucket";
120
- var ti = { 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" } }] }, _n = re(function(t, e) {
119
+ Sn.displayName = "PaintBucketDoubleIcon";
120
+ var ti = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.80068 2.57257L7.27955 2.57256C7.61092 2.57256 7.87954 2.30393 7.87954 1.97256C7.87954 1.64119 7.61091 1.37256 7.27954 1.37256L3.80068 1.37257C2.36473 1.37257 1.20067 2.53665 1.20068 3.97259L1.20074 12.3001C1.20075 13.736 2.36481 14.9 3.80074 14.9H12.1282C13.5641 14.9 14.7282 13.736 14.7282 12.3V8.82116C14.7282 8.48979 14.4595 8.22116 14.1282 8.22116C13.7968 8.22116 13.5282 8.48979 13.5282 8.82116V12.3C13.5282 13.0732 12.9014 13.7 12.1282 13.7H3.80074C3.02754 13.7 2.40074 13.0732 2.40074 12.3001L2.40068 3.97258C2.40068 3.19938 3.02748 2.57257 3.80068 2.57257Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.0072 2.0955C13.0997 1.18757 11.6278 1.18794 10.7207 2.09632L6.17749 6.646C6.10294 6.72065 6.04543 6.81056 6.00889 6.90954L4.59817 10.7315C4.51713 10.951 4.57116 11.1977 4.73657 11.3633C4.90198 11.5288 5.14858 11.5831 5.36823 11.5023L9.20237 10.0916C9.30186 10.055 9.3922 9.99722 9.46714 9.92224L14.0073 5.37972C14.9139 4.47266 14.9138 3.00252 14.0072 2.0955ZM11.5698 2.94424C12.0083 2.50513 12.7198 2.50496 13.1585 2.94384C13.5968 3.38229 13.5968 4.09294 13.1585 4.53141L8.69127 9.00102L6.1742 9.92713L7.09912 7.42132L11.5698 2.94424Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, _n = re(function(t, e) {
121
121
  return ie(ae, Object.assign({}, t, {
122
- id: "rename-single",
122
+ id: "rename-icon",
123
123
  ref: e,
124
124
  icon: ti
125
125
  }));
126
126
  });
127
- _n.displayName = "RenameSingle";
128
- var ni = { 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" } }] }, Tn = re(function(t, e) {
127
+ _n.displayName = "RenameIcon";
128
+ var ni = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.7643 4.13354C1.7643 2.82523 2.82488 1.76465 4.13319 1.76465H11.8665C13.1748 1.76465 14.2354 2.82524 14.2354 4.13354V11.8669C14.2354 13.1752 13.1748 14.2358 11.8665 14.2358H4.13318C2.82488 14.2358 1.7643 13.1752 1.7643 11.8669V6.1462C1.76388 6.13711 1.76367 6.12797 1.76367 6.11878C1.76367 6.10959 1.76388 6.10045 1.7643 6.09136V4.13354ZM2.94652 6.70989V11.8669C2.94652 12.5222 3.47781 13.0535 4.13318 13.0535H5.52732V6.70989H2.94652ZM5.52732 5.52767H2.94652V4.13354C2.94652 3.47816 3.47781 2.94687 4.13319 2.94687H5.52732V5.52767ZM6.70954 6.70989V13.0535H11.8665C12.5219 13.0535 13.0532 12.5222 13.0532 11.8669V6.70989L6.70954 6.70989ZM13.0532 5.52767L6.70954 5.52767V2.94687H11.8665C12.5219 2.94687 13.0532 3.47816 13.0532 4.13354V5.52767Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Tn = re(function(t, e) {
129
129
  return ie(ae, Object.assign({}, t, {
130
- id: "table-single",
130
+ id: "table-icon",
131
131
  ref: e,
132
132
  icon: ni
133
133
  }));
134
134
  });
135
- Tn.displayName = "TableSingle";
135
+ Tn.displayName = "TableIcon";
136
136
  var pe = /* @__PURE__ */ ((t) => (t.Items = "items", t.Condition = "condition", t))(pe || {}), ri = Object.getOwnPropertyDescriptor, ii = (t, e, n, r) => {
137
137
  for (var i = r > 1 ? void 0 : r ? ri(e, n) : e, a = t.length - 1, s; a >= 0; a--)
138
138
  (s = t[a]) && (i = s(i) || i);
@@ -229,9 +229,9 @@ let $e = class extends Pe {
229
229
  }
230
230
  };
231
231
  $e = ii([
232
- Ke(0, N(ne)),
233
- Ke(1, N(qn)),
234
- Ke(2, N(fe)),
232
+ Ke(0, x(ne)),
233
+ Ke(1, x(qn)),
234
+ Ke(2, x(fe)),
235
235
  Ke(3, le)
236
236
  ], $e);
237
237
  var Z = /* @__PURE__ */ ((t) => (t.DatePicker = "DatePicker", t.DateRange = "DateRange", t.Input = "Input", t.Inputs = "Inputs", t.Select = "Select", t.None = "None", t))(Z || {});
@@ -239,8 +239,8 @@ function ai(t) {
239
239
  const n = t.get(oe).t;
240
240
  return [
241
241
  {
242
- value: D.String,
243
- label: n(`sheets-table.condition.${D.String}`),
242
+ value: B.String,
243
+ label: n(`sheets-table.condition.${B.String}`),
244
244
  children: [
245
245
  {
246
246
  value: j.Equal,
@@ -269,8 +269,8 @@ function ai(t) {
269
269
  ]
270
270
  },
271
271
  {
272
- value: D.Number,
273
- label: n(`sheets-table.condition.${D.Number}`),
272
+ value: B.Number,
273
+ label: n(`sheets-table.condition.${B.Number}`),
274
274
  children: [
275
275
  {
276
276
  value: $.Equal,
@@ -319,8 +319,8 @@ function ai(t) {
319
319
  ]
320
320
  },
321
321
  {
322
- value: D.Date,
323
- label: n(`sheets-table.condition.${D.Date}`),
322
+ value: B.Date,
323
+ label: n(`sheets-table.condition.${B.Date}`),
324
324
  children: [
325
325
  {
326
326
  value: l.Equal,
@@ -493,7 +493,7 @@ function si(t, e) {
493
493
  return [];
494
494
  }
495
495
  }
496
- const xt = /* @__PURE__ */ new Set([
496
+ const Nt = /* @__PURE__ */ new Set([
497
497
  l.Equal,
498
498
  l.NotEqual,
499
499
  l.After,
@@ -502,17 +502,17 @@ const xt = /* @__PURE__ */ new Set([
502
502
  l.BeforeOrEqual
503
503
  ]);
504
504
  function li(t, e) {
505
- return e ? t === D.String ? Z.Input : t === D.Number ? e === $.Between || e === $.NotBetween ? Z.Inputs : Z.Input : t === D.Date ? e === l.Between || e === l.NotBetween ? Z.DateRange : e === l.Quarter || e === l.Month ? Z.Select : xt.has(e) ? Z.DatePicker : Z.None : Z.None : Z.None;
505
+ return e ? t === B.String ? Z.Input : t === B.Number ? e === $.Between || e === $.NotBetween ? Z.Inputs : Z.Input : t === B.Date ? e === l.Between || e === l.NotBetween ? Z.DateRange : e === l.Quarter || e === l.Month ? Z.Select : Nt.has(e) ? Z.DatePicker : Z.None : Z.None : Z.None;
506
506
  }
507
507
  function oi(t) {
508
508
  if (!t || t.filterType !== "condition")
509
509
  return {
510
- type: D.String,
510
+ type: B.String,
511
511
  compareType: j.Equal,
512
512
  info: {}
513
513
  };
514
514
  const e = t.filterInfo, { conditionType: n, compareType: r } = e;
515
- return n === D.Date ? r === l.Between || r === l.NotBetween ? {
515
+ return n === B.Date ? r === l.Between || r === l.NotBetween ? {
516
516
  type: n,
517
517
  compare: r,
518
518
  info: {
@@ -522,7 +522,7 @@ function oi(t) {
522
522
  type: n,
523
523
  compare: r,
524
524
  info: {}
525
- } : xt.has(r) ? {
525
+ } : Nt.has(r) ? {
526
526
  type: n,
527
527
  compare: r,
528
528
  info: {
@@ -540,7 +540,7 @@ function oi(t) {
540
540
  info: {
541
541
  dateSelect: e.compareType
542
542
  }
543
- } : n === D.Number ? r === $.Between || r === $.NotBetween ? {
543
+ } : n === B.Number ? r === $.Between || r === $.NotBetween ? {
544
544
  type: n,
545
545
  compare: r,
546
546
  info: {
@@ -552,21 +552,21 @@ function oi(t) {
552
552
  info: {
553
553
  number: e.expectedValue
554
554
  }
555
- } : n === D.String ? {
555
+ } : n === B.String ? {
556
556
  type: n,
557
557
  compare: r,
558
558
  info: {
559
559
  string: e.expectedValue
560
560
  }
561
561
  } : {
562
- type: D.String,
562
+ type: B.String,
563
563
  compare: j.Equal,
564
564
  info: {}
565
565
  };
566
566
  }
567
567
  const ci = (t) => {
568
- var S, T, k, f, x, y, B;
569
- const { conditionInfo: e, onChange: n } = t, r = R(oe), [i, a] = q(!1), s = R(Oe), c = ai(s), d = (v, p, L) => {
568
+ var S, T, k, f, N, y, D;
569
+ const { conditionInfo: e, onChange: n } = t, r = M(oe), [i, a] = q(!1), s = M(Oe), c = ai(s), d = (v, p, L) => {
570
570
  n({
571
571
  type: p != null ? p : e.type,
572
572
  compare: L != null ? L : e.compare,
@@ -576,8 +576,8 @@ const ci = (t) => {
576
576
  var C;
577
577
  const p = v[0], L = v[1];
578
578
  L && a(!1);
579
- const M = {};
580
- p === D.Date ? L === l.Quarter ? M.dateSelect = l.Q1 : L === l.Month ? M.dateSelect = l.M1 : xt.has(L) ? M.date = /* @__PURE__ */ new Date() : M.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : p === D.Number ? M.number = 0 : p === D.String && (M.string = ""), d(M, v[0], (C = v[1]) != null ? C : j.Equal);
579
+ const R = {};
580
+ p === B.Date ? L === l.Quarter ? R.dateSelect = l.Q1 : L === l.Month ? R.dateSelect = l.M1 : Nt.has(L) ? R.date = /* @__PURE__ */ new Date() : R.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : p === B.Number ? R.number = 0 : p === B.String && (R.string = ""), d(R, v[0], (C = v[1]) != null ? C : j.Equal);
581
581
  }, u = li(e.type, e.compare);
582
582
  let g = "";
583
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}`);
@@ -605,15 +605,15 @@ const ci = (t) => {
605
605
  className: O("univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-between univer-rounded-md univer-bg-white univer-px-2 univer-text-sm univer-transition-colors univer-duration-200 dark:!univer-bg-gray-700 dark:!univer-text-white focus:univer-border-primary-600 focus:univer-outline-none focus:univer-ring-2 hover:univer-border-primary-600", F),
606
606
  children: [
607
607
  /* @__PURE__ */ o("span", { children: g }),
608
- /* @__PURE__ */ o(Nt, {})
608
+ /* @__PURE__ */ o(xt, {})
609
609
  ]
610
610
  }
611
611
  )
612
612
  }
613
613
  ),
614
614
  /* @__PURE__ */ I("div", { className: "univer-mt-3 univer-w-full", children: [
615
- u === Z.Input && /* @__PURE__ */ o(Mt, { children: e.type === D.String ? /* @__PURE__ */ o(
616
- Rt,
615
+ u === Z.Input && /* @__PURE__ */ o(Rt, { children: e.type === B.String ? /* @__PURE__ */ o(
616
+ Mt,
617
617
  {
618
618
  className: "univer-w-full",
619
619
  placeholder: "请输入",
@@ -643,7 +643,7 @@ const ci = (t) => {
643
643
  }
644
644
  ) }),
645
645
  u === Z.DateRange && /* @__PURE__ */ o("div", { id: "univer-table-date-range-wrapper", children: /* @__PURE__ */ o(
646
- Mr,
646
+ Rr,
647
647
  {
648
648
  value: [(T = de((S = e.info.dateRange) == null ? void 0 : S[0])) != null ? T : de(), (f = de((k = e.info.dateRange) == null ? void 0 : k[1])) != null ? f : de()],
649
649
  defaultPickerValue: [de(), de()],
@@ -660,7 +660,7 @@ const ci = (t) => {
660
660
  bt,
661
661
  {
662
662
  className: "univer-w-full",
663
- value: (x = e.info.numberRange) == null ? void 0 : x[0],
663
+ value: (N = e.info.numberRange) == null ? void 0 : N[0],
664
664
  onChange: (v) => {
665
665
  var p;
666
666
  v !== null && d({ numberRange: [v, (p = e.info.numberRange) == null ? void 0 : p[1]] });
@@ -683,10 +683,10 @@ const ci = (t) => {
683
683
  )
684
684
  ] }),
685
685
  u === Z.Select && /* @__PURE__ */ o(
686
- Rr,
686
+ Mr,
687
687
  {
688
688
  className: "univer-w-full",
689
- value: (B = e.info.dateSelect) != null ? B : _[0].value,
689
+ value: (D = e.info.dateSelect) != null ? D : _[0].value,
690
690
  options: _,
691
691
  onChange: (v) => d({ dateSelect: v })
692
692
  }
@@ -700,15 +700,15 @@ const ci = (t) => {
700
700
  }), e;
701
701
  };
702
702
  function di(t) {
703
- const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = R(oe), h = R($e), { data: u, itemsCountMap: g, allItemsCount: _ } = h.getTableFilterItems(e, r, n, i), [S, T] = q(c === void 0 ? !0 : a.size === g.size), [k, f] = q(S ? _ : ui(g)), x = !S && a.size > 0, [y, B] = q(""), v = dn(() => y ? u.filter((C) => String(C.title).toLowerCase().includes(y.toLowerCase())) : u, [y, u]), p = Vt(() => {
703
+ const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = M(oe), h = M($e), { data: u, itemsCountMap: g, allItemsCount: _ } = h.getTableFilterItems(e, r, n, i), [S, T] = q(c === void 0 ? !0 : a.size === g.size), [k, f] = q(S ? _ : ui(g)), N = !S && a.size > 0, [y, D] = q(""), v = dn(() => y ? u.filter((C) => String(C.title).toLowerCase().includes(y.toLowerCase())) : u, [y, u]), p = Vt(() => {
704
704
  S ? (a.clear(), s(new Set(a)), T(!1)) : (v.forEach((C) => {
705
705
  a.add(C.title);
706
706
  }), s(new Set(a)), T(!0));
707
707
  }, [S]), L = Vt((C) => {
708
708
  C === "" ? (T(!0), u.forEach((H) => {
709
709
  a.add(H.title);
710
- }), f(_)) : (a.clear(), T(!1), f(0)), B(C);
711
- }, []), M = (C) => {
710
+ }), f(_)) : (a.clear(), T(!1), f(0)), D(C);
711
+ }, []), R = (C) => {
712
712
  if (S) {
713
713
  T(!1);
714
714
  const H = /* @__PURE__ */ new Set();
@@ -719,7 +719,7 @@ function di(t) {
719
719
  a.has(C) ? (a.delete(C), f(k - g.get(C))) : (a.add(C), f(k + g.get(C))), s(new Set(a));
720
720
  };
721
721
  return /* @__PURE__ */ I("div", { className: "univer-flex univer-h-full univer-flex-col", children: [
722
- /* @__PURE__ */ o(Rt, { autoFocus: !0, value: y, placeholder: d.t("sheets-filter.panel.search-placeholder"), onChange: L }),
722
+ /* @__PURE__ */ o(Mt, { autoFocus: !0, value: y, placeholder: d.t("sheets-filter.panel.search-placeholder"), onChange: L }),
723
723
  /* @__PURE__ */ o(
724
724
  "div",
725
725
  {
@@ -727,12 +727,12 @@ function di(t) {
727
727
  children: /* @__PURE__ */ o(
728
728
  "div",
729
729
  {
730
- className: O("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", Nr),
730
+ className: O("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", xr),
731
731
  children: /* @__PURE__ */ I("div", { className: "univer-h-full", children: [
732
732
  /* @__PURE__ */ o("div", { className: "univer-flex univer-items-center univer-px-2 univer-py-1", children: /* @__PURE__ */ o(
733
- Bt,
733
+ Dt,
734
734
  {
735
- indeterminate: x,
735
+ indeterminate: N,
736
736
  disabled: u.length === 0,
737
737
  checked: S,
738
738
  onChange: p,
@@ -747,11 +747,11 @@ function di(t) {
747
747
  {
748
748
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
749
749
  children: /* @__PURE__ */ o(
750
- Bt,
750
+ Dt,
751
751
  {
752
752
  checked: S || a.has(C.title),
753
753
  onChange: () => {
754
- M(C.title);
754
+ R(C.title);
755
755
  },
756
756
  children: /* @__PURE__ */ I("div", { className: "univer-flex univer-h-5 univer-flex-1 univer-text-sm", children: [
757
757
  /* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: C.title }),
@@ -771,20 +771,20 @@ function di(t) {
771
771
  }
772
772
  function hi() {
773
773
  var ue;
774
- const t = R(oe), e = vi(t), n = R($e), r = R(ne), i = R(le), a = R(qt), s = R(ke), c = s.getCurrentTableFilterInfo(), d = n.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: g, tableFilter: _, currentFilterBy: S, columnIndex: T } = d, { data: k } = n.getTableFilterItems(h, u, g, T), f = n.getTableFilterCheckedItems(h, g, T), [x, y] = q(new Set(f)), [B, v] = q(S || pe.Items), [p, L] = q(() => {
774
+ const t = M(oe), e = vi(t), n = M($e), r = M(ne), i = M(le), a = M(qt), s = M(ke), c = s.getCurrentTableFilterInfo(), d = n.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: g, tableFilter: _, currentFilterBy: S, columnIndex: T } = d, { data: k } = n.getTableFilterItems(h, u, g, T), f = n.getTableFilterCheckedItems(h, g, T), [N, y] = q(new Set(f)), [D, v] = q(S || pe.Items), [p, L] = q(() => {
775
775
  const b = d.tableFilter;
776
776
  return oi(b);
777
- }), M = r.getTable(h, g);
778
- if (!M) return null;
779
- const C = M.getTableFilters(), H = C.getSortState();
777
+ }), R = r.getTable(h, g);
778
+ if (!R) return null;
779
+ const C = R.getTableFilters(), H = C.getSortState();
780
780
  H.columnIndex === T && (H.sortState, Ge.Asc), H.columnIndex === T && (H.sortState, Ge.Desc);
781
781
  const E = () => {
782
782
  s.closeFilterPanel();
783
783
  }, Q = () => {
784
784
  E();
785
785
  }, U = (b) => {
786
- const P = M.getTableFilterRange();
787
- i.executeCommand(Br.id, {
786
+ const P = R.getTableFilterRange();
787
+ i.executeCommand(Dr.id, {
788
788
  unitId: h,
789
789
  subUnitId: u,
790
790
  range: P,
@@ -792,11 +792,11 @@ function hi() {
792
792
  hasTitle: !1
793
793
  }), C.setSortState(T, b ? Ge.Asc : Ge.Desc), E();
794
794
  }, ee = () => {
795
- if (B === pe.Items) {
795
+ if (D === pe.Items) {
796
796
  const b = [];
797
797
  for (const Y of k)
798
- x.has(Y.title) && b.push(Y.title);
799
- const P = M.getTableFilterColumn(T);
798
+ N.has(Y.title) && b.push(Y.title);
799
+ const P = R.getTableFilterColumn(T);
800
800
  if (P) {
801
801
  if (P.values.join(",") === b.join(",")) {
802
802
  E();
@@ -829,7 +829,7 @@ function hi() {
829
829
  n.setTableFilter(h, g, T, P);
830
830
  }
831
831
  E();
832
- }, Re = () => {
832
+ }, Me = () => {
833
833
  n.setTableFilter(h, g, T, void 0), E();
834
834
  }, ce = new sn(h).id, Ce = (ue = a.getPermissionPoint(ce)) == null ? void 0 : ue.value;
835
835
  return /* @__PURE__ */ I(
@@ -837,7 +837,7 @@ function hi() {
837
837
  {
838
838
  className: "univer-box-border univer-flex univer-w-[312px] univer-flex-col univer-rounded-[10px] univer-bg-white univer-p-4 univer-shadow-lg dark:!univer-border-gray-600 dark:!univer-bg-gray-700",
839
839
  children: [
840
- Ce && /* @__PURE__ */ o("div", { className: "univer-mb-3 univer-flex", children: /* @__PURE__ */ I(xr, { className: "univer-mb-3 univer-w-full", children: [
840
+ Ce && /* @__PURE__ */ o("div", { className: "univer-mb-3 univer-flex", children: /* @__PURE__ */ I(Nr, { className: "univer-mb-3 univer-w-full", children: [
841
841
  /* @__PURE__ */ I(Te, { className: "univer-w-1/2", onClick: () => U(!0), children: [
842
842
  /* @__PURE__ */ o(mn, { className: "univer-mr-1" }),
843
843
  t.t("sheets-sort.general.sort-asc")
@@ -850,12 +850,12 @@ function hi() {
850
850
  /* @__PURE__ */ o("div", { className: "univer-w-full", children: /* @__PURE__ */ o(
851
851
  Er,
852
852
  {
853
- value: B,
853
+ value: D,
854
854
  items: e,
855
855
  onChange: (b) => v(b)
856
856
  }
857
857
  ) }),
858
- /* @__PURE__ */ o("div", { className: "univer-z-10 univer-h-60 univer-w-[280px]", children: /* @__PURE__ */ o("div", { className: "univer-mt-3 univer-h-full univer-w-full", children: B === pe.Items ? /* @__PURE__ */ o(
858
+ /* @__PURE__ */ o("div", { className: "univer-z-10 univer-h-60 univer-w-[280px]", children: /* @__PURE__ */ o("div", { className: "univer-mt-3 univer-h-full univer-w-full", children: D === pe.Items ? /* @__PURE__ */ o(
859
859
  di,
860
860
  {
861
861
  tableFilter: _,
@@ -863,7 +863,7 @@ function hi() {
863
863
  subUnitId: u,
864
864
  tableId: g,
865
865
  columnIndex: T,
866
- checkedItemSet: x,
866
+ checkedItemSet: N,
867
867
  setCheckedItemSet: y
868
868
  }
869
869
  ) : /* @__PURE__ */ o(
@@ -887,7 +887,7 @@ function hi() {
887
887
  Te,
888
888
  {
889
889
  disabled: _ === void 0,
890
- onClick: Re,
890
+ onClick: Me,
891
891
  children: t.t("sheets-filter.panel.clear-filter")
892
892
  }
893
893
  ),
@@ -965,10 +965,10 @@ let ke = class extends Pe {
965
965
  }
966
966
  };
967
967
  ke = bi([
968
- Je(0, N(nn)),
968
+ Je(0, x(nn)),
969
969
  Je(1, It),
970
- Je(2, N(nr)),
971
- Je(3, N(rn))
970
+ Je(2, x(nr)),
971
+ Je(3, x(rn))
972
972
  ], ke);
973
973
  const St = {
974
974
  type: Yt.OPERATION,
@@ -1047,18 +1047,18 @@ let ye = class extends Pe {
1047
1047
  this._commandService.onCommandExecuted((e) => {
1048
1048
  if (e.id === ln.id) {
1049
1049
  const n = e.params, { styleName: r } = n;
1050
- r.startsWith(zn) && this._refreshTable.next(Math.random());
1050
+ r.startsWith(Xn) && this._refreshTable.next(Math.random());
1051
1051
  }
1052
1052
  })
1053
1053
  );
1054
1054
  }
1055
1055
  };
1056
1056
  ye = pi([
1057
- fi(0, N(le))
1057
+ fi(0, x(le))
1058
1058
  ], ye);
1059
1059
  const Ci = () => {
1060
1060
  var Ce, ue;
1061
- const [t, e] = q(""), [n, r] = q(""), i = R(ur), [a, s] = q({}), c = R(Oe), d = R(it), h = we(d.anchorPosition$), u = R(le), g = R(fe), _ = R(on), S = we(_.unitPermissionInitStateChange$, !1), T = R(ne), k = R(cn), f = R(ye), x = we(f.refreshTable$), y = R(oe), B = R(dt), v = we(B.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, p] = q(Math.random()), M = R(Qt).getConfig(In), C = (Ce = M == null ? void 0 : M.anchorHeight) != null ? Ce : 24, H = (ue = M == null ? void 0 : M.anchorBackgroundColor) != null ? ue : "rgb(53,91,183)", E = (b, P) => {
1061
+ const [t, e] = q(""), [n, r] = q(""), i = M(ur), [a, s] = q({}), c = M(Oe), d = M(it), h = we(d.anchorPosition$), u = M(le), g = M(fe), _ = M(on), S = we(_.unitPermissionInitStateChange$, !1), T = M(ne), k = M(cn), f = M(ye), N = we(f.refreshTable$), y = M(oe), D = M(dt), v = we(D.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, p] = q(Math.random()), R = M(Qt).getConfig(In), C = (Ce = R == null ? void 0 : R.anchorHeight) != null ? Ce : 24, H = (ue = R == null ? void 0 : R.anchorBackgroundColor) != null ? ue : "rgb(53,91,183)", E = (b, P) => {
1062
1062
  s((V) => ({
1063
1063
  ...V,
1064
1064
  [b]: P
@@ -1066,11 +1066,11 @@ const Ci = () => {
1066
1066
  };
1067
1067
  if (hn(() => {
1068
1068
  p(Math.random());
1069
- }, [x]), !(h != null && h.length))
1069
+ }, [N]), !(h != null && h.length))
1070
1070
  return null;
1071
1071
  const Q = ut(g);
1072
1072
  if (!Q) return null;
1073
- const { unitId: U, subUnitId: ee } = Q, Re = (b, P) => {
1073
+ const { unitId: U, subUnitId: ee } = Q, Me = (b, P) => {
1074
1074
  var Y;
1075
1075
  if (((Y = T.getTableById(U, b)) == null ? void 0 : Y.getDisplayName()) === P) {
1076
1076
  e(""), r("");
@@ -1094,19 +1094,19 @@ const Ci = () => {
1094
1094
  });
1095
1095
  };
1096
1096
  return S ? /* @__PURE__ */ o("div", { className: "univer-absolute univer-z-50 univer-h-0 univer-w-0", children: h.map((b) => {
1097
- var De, Fe, m, w, X, K, se;
1097
+ var Be, Fe, m, w, z, K, se;
1098
1098
  const P = T.getTableById(U, b.tableId);
1099
1099
  if (!P) return null;
1100
- const V = k.getRangeThemeStyle(U, P.getTableStyleId()), Y = (m = (Fe = (De = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : De.bg) == null ? void 0 : Fe.rgb) != null ? m : H, qe = (K = (X = (w = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : w.cl) == null ? void 0 : X.rgb) != null ? K : "rgb(255, 255, 255)", Ye = P.getRange();
1100
+ const V = k.getRangeThemeStyle(U, P.getTableStyleId()), Y = (m = (Fe = (Be = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : Be.bg) == null ? void 0 : Fe.rgb) != null ? m : H, qe = (K = (z = (w = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : w.cl) == null ? void 0 : z.rgb) != null ? K : "rgb(255, 255, 255)", Ye = P.getRange();
1101
1101
  if (!(v != null && v.length))
1102
1102
  return null;
1103
- const Qe = v[v.length - 1].range, Be = !me.intersects(Ye, Qe) && b.y <= 20;
1103
+ const Qe = v[v.length - 1].range, De = !me.intersects(Ye, Qe) && b.y <= 20;
1104
1104
  return /* @__PURE__ */ I(
1105
1105
  "div",
1106
1106
  {
1107
1107
  className: O("univer-absolute univer-box-border univer-cursor-pointer univer-items-center univer-rounded-xl univer-pl-2 univer-pr-2 univer-shadow-xs", F, {
1108
- "univer-flex": !Be,
1109
- "univer-hidden": Be
1108
+ "univer-flex": !De,
1109
+ "univer-hidden": De
1110
1110
  }),
1111
1111
  style: {
1112
1112
  left: b.x,
@@ -1118,15 +1118,15 @@ const Ci = () => {
1118
1118
  },
1119
1119
  children: [
1120
1120
  /* @__PURE__ */ o("div", { className: "univer-text-nowrap", children: t === b.tableId ? /* @__PURE__ */ o(
1121
- Rt,
1121
+ Mt,
1122
1122
  {
1123
1123
  className: "univer-h-[18px] univer-min-w-16 univer-rounded-none",
1124
1124
  inputClass: "univer-h-[18px] univer-w-[80px]",
1125
1125
  value: n,
1126
1126
  onChange: (W) => r(W),
1127
- onBlur: () => Re(b.tableId, n),
1127
+ onBlur: () => Me(b.tableId, n),
1128
1128
  onKeyDown: (W) => {
1129
- W.key === "Enter" && Re(b.tableId, n);
1129
+ W.key === "Enter" && Me(b.tableId, n);
1130
1130
  },
1131
1131
  autoFocus: t === b.tableId
1132
1132
  }
@@ -1210,7 +1210,7 @@ const Ci = () => {
1210
1210
  {
1211
1211
  className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-pb-1 univer-pl-2 univer-pr-2 univer-pt-1 univer-text-sm hover:univer-bg-gray-200",
1212
1212
  onClick: () => {
1213
- E(b.tableId, !1), u.executeCommand(Xn.id, {
1213
+ E(b.tableId, !1), u.executeCommand(zn.id, {
1214
1214
  tableId: b.tableId,
1215
1215
  subUnitId: ee,
1216
1216
  unitId: U
@@ -1227,7 +1227,7 @@ const Ci = () => {
1227
1227
  onOpenChange: (W) => {
1228
1228
  E(b.tableId, W);
1229
1229
  },
1230
- children: /* @__PURE__ */ o(Nt, {})
1230
+ children: /* @__PURE__ */ o(xt, {})
1231
1231
  },
1232
1232
  b.tableId
1233
1233
  )
@@ -1297,15 +1297,15 @@ let it = class extends Pe {
1297
1297
  const d = a.reduce((u, g) => {
1298
1298
  const { startRow: _, startColumn: S } = g.range, T = s.with(ct), k = sr(this._univerInstanceService, this._renderManagerService);
1299
1299
  if (!k) return u;
1300
- const { scene: f } = k, x = f.getViewport(Un.VIEW_MAIN);
1301
- if (!x) return u;
1302
- const y = f == null ? void 0 : f.scaleX, B = f == null ? void 0 : f.scaleY, v = f == null ? void 0 : f.getViewportScrollXY(x);
1303
- if (!y || !f || !B || !v) return u;
1300
+ const { scene: f } = k, N = f.getViewport(Un.VIEW_MAIN);
1301
+ if (!N) return u;
1302
+ const y = f == null ? void 0 : f.scaleX, D = f == null ? void 0 : f.scaleY, v = f == null ? void 0 : f.getViewportScrollXY(N);
1303
+ if (!y || !f || !D || !v) return u;
1304
1304
  const p = T.getCurrentSkeleton();
1305
1305
  if (!p) return u;
1306
- const L = p.getNoMergeCellWithCoordByIndex(_, S), M = Wn(L.startX, y, v), C = jn(L.startY, B, v) - 25 - 4;
1307
- return C >= -10 && M >= 45 && u.push({
1308
- x: M,
1306
+ const L = p.getNoMergeCellWithCoordByIndex(_, S), R = Wn(L.startX, y, v), C = jn(L.startY, D, v) - 25 - 4;
1307
+ return C >= -10 && R >= 45 && u.push({
1308
+ x: R,
1309
1309
  y: C,
1310
1310
  tableId: g.id,
1311
1311
  tableName: g.name
@@ -1317,33 +1317,33 @@ let it = class extends Pe {
1317
1317
  }
1318
1318
  };
1319
1319
  it = _i([
1320
- te(1, N(Oe)),
1321
- te(2, N(ct)),
1322
- te(3, zt),
1320
+ te(1, x(Oe)),
1321
+ te(2, x(ct)),
1322
+ te(3, Xt),
1323
1323
  te(4, le),
1324
1324
  te(5, fe),
1325
1325
  te(6, dr),
1326
- te(7, N(ne)),
1327
- te(8, N(rr)),
1328
- te(9, N(on)),
1329
- te(10, N(qt))
1326
+ te(7, x(ne)),
1327
+ te(8, x(rr)),
1328
+ te(9, x(on)),
1329
+ te(10, x(qt))
1330
1330
  ], it);
1331
- const xe = 16;
1331
+ const Ne = 16;
1332
1332
  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");
1333
1333
  class Wt {
1334
1334
  static drawNoSetting(e, n, r, i) {
1335
1335
  e.save(), Lt.drawWith(e, {
1336
1336
  radius: 2,
1337
- width: xe,
1338
- height: xe,
1337
+ width: Ne,
1338
+ height: Ne,
1339
1339
  fill: i
1340
- }), e.lineCap = "square", e.strokeStyle = r, e.scale(n / xe, n / xe), e.beginPath(), e.lineWidth = 1, e.lineCap = "round", e.moveTo(3, 4), e.lineTo(13, 4), e.moveTo(4.5, 8), e.lineTo(11.5, 8), e.moveTo(6, 12), e.lineTo(10, 12), e.stroke(), e.restore();
1340
+ }), e.lineCap = "square", e.strokeStyle = r, e.scale(n / Ne, n / Ne), e.beginPath(), e.lineWidth = 1, e.lineCap = "round", e.moveTo(3, 4), e.lineTo(13, 4), e.moveTo(4.5, 8), e.lineTo(11.5, 8), e.moveTo(6, 12), e.lineTo(10, 12), e.stroke(), e.restore();
1341
1341
  }
1342
1342
  static drawIconByPath(e, n, r, i) {
1343
1343
  e.save(), e.strokeStyle = r, e.fillStyle = i, Lt.drawWith(e, {
1344
1344
  radius: 2,
1345
- width: xe,
1346
- height: xe,
1345
+ width: Ne,
1346
+ height: Ne,
1347
1347
  fill: i
1348
1348
  }), n.forEach((a) => {
1349
1349
  const s = new Path2D(a);
@@ -1363,13 +1363,13 @@ const Ti = [
1363
1363
  "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",
1364
1364
  "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",
1365
1365
  "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"
1366
- ], Mi = [
1366
+ ], Ri = [
1367
1367
  "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",
1368
1368
  "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",
1369
1369
  "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"
1370
1370
  ];
1371
- var Ri = Object.getOwnPropertyDescriptor, Ni = (t, e, n, r) => {
1372
- for (var i = r > 1 ? void 0 : r ? Ri(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1371
+ var Mi = Object.getOwnPropertyDescriptor, xi = (t, e, n, r) => {
1372
+ for (var i = r > 1 ? void 0 : r ? Mi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1373
1373
  (s = t[a]) && (i = s(i) || i);
1374
1374
  return i;
1375
1375
  }, pt = (t, e) => (n, r) => e(n, r, t);
@@ -1397,22 +1397,22 @@ let _t = class extends Zn {
1397
1397
  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)";
1398
1398
  let u;
1399
1399
  switch (c) {
1400
- case Ne.FilteredSortNone:
1400
+ case xe.FilteredSortNone:
1401
1401
  u = Ti;
1402
1402
  break;
1403
- case Ne.FilteredSortAsc:
1403
+ case xe.FilteredSortAsc:
1404
1404
  u = wi;
1405
1405
  break;
1406
- case Ne.FilteredSortDesc:
1406
+ case xe.FilteredSortDesc:
1407
1407
  u = Ii;
1408
1408
  break;
1409
- case Ne.FilterNoneSortNone:
1409
+ case xe.FilterNoneSortNone:
1410
1410
  break;
1411
- case Ne.FilterNoneSortAsc:
1411
+ case xe.FilterNoneSortAsc:
1412
1412
  u = yi;
1413
1413
  break;
1414
- case Ne.FilterNoneSortDesc:
1415
- u = Mi;
1414
+ case xe.FilterNoneSortDesc:
1415
+ u = Ri;
1416
1416
  break;
1417
1417
  }
1418
1418
  u ? Wt.drawIconByPath(e, u, d, h) : c !== void 0 && Wt.drawNoSetting(e, be, d, h), e.restore();
@@ -1439,13 +1439,13 @@ let _t = class extends Zn {
1439
1439
  this._hovered = !1, this.makeDirty(!0);
1440
1440
  }
1441
1441
  };
1442
- _t = Ni([
1442
+ _t = xi([
1443
1443
  pt(2, It),
1444
1444
  pt(3, le),
1445
- pt(4, N(Pn))
1445
+ pt(4, x(Pn))
1446
1446
  ], _t);
1447
- var xi = Object.getOwnPropertyDescriptor, Ei = (t, e, n, r) => {
1448
- for (var i = r > 1 ? void 0 : r ? xi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1447
+ var Ni = Object.getOwnPropertyDescriptor, Ei = (t, e, n, r) => {
1448
+ for (var i = r > 1 ? void 0 : r ? Ni(e, n) : e, a = t.length - 1, s; a >= 0; a--)
1449
1449
  (s = t[a]) && (i = s(i) || i);
1450
1450
  return i;
1451
1451
  }, tt = (t, e) => (n, r) => e(n, r, t);
@@ -1495,11 +1495,11 @@ let Tt = class extends Gt {
1495
1495
  const { startRow: u, startColumn: g, endColumn: _ } = c;
1496
1496
  this._interceptCellContent(r, a, c);
1497
1497
  for (let S = g; S <= _; S++) {
1498
- const T = `sheets-table-filter-button-${u}-${S}`, k = lr(u, S, s, i), { startX: f, startY: x, endX: y, endY: B } = k, v = y - f, p = B - x;
1498
+ const T = `sheets-table-filter-button-${u}-${S}`, k = lr(u, S, s, i), { startX: f, startY: N, endX: y, endY: D } = k, v = y - f, p = D - N;
1499
1499
  if (p <= et || v <= et)
1500
1500
  continue;
1501
- const L = d[S - g], M = y - be - et, C = B - be - et, H = {
1502
- left: M,
1501
+ const L = d[S - g], R = y - be - et, C = D - be - et, H = {
1502
+ left: R,
1503
1503
  top: C,
1504
1504
  height: be,
1505
1505
  width: be,
@@ -1519,13 +1519,10 @@ let Tt = class extends Gt {
1519
1519
  effect: On.Style,
1520
1520
  handler: (c, d, h) => {
1521
1521
  const { row: u, col: g, unitId: _, subUnitId: S } = d;
1522
- return _ !== e || S !== n || u !== i || g < a || g > s ? h(c) : h({
1523
- ...c,
1524
- fontRenderExtension: {
1525
- ...c == null ? void 0 : c.fontRenderExtension,
1526
- rightOffset: be
1527
- }
1528
- });
1522
+ return _ !== e || S !== n || u !== i || g < a || g > s || ((!c || c === d.rawData) && (c = { ...d.rawData }), c.fontRenderExtension = {
1523
+ ...c == null ? void 0 : c.fontRenderExtension,
1524
+ rightOffset: be
1525
+ }), h(c);
1529
1526
  },
1530
1527
  priority: 10
1531
1528
  });
@@ -1536,14 +1533,14 @@ let Tt = class extends Gt {
1536
1533
  }
1537
1534
  };
1538
1535
  Tt = Ei([
1539
- tt(1, N(Oe)),
1540
- tt(2, N(ct)),
1541
- tt(3, N(un)),
1542
- tt(4, N(ne))
1536
+ tt(1, x(Oe)),
1537
+ tt(2, x(ct)),
1538
+ tt(3, x(un)),
1539
+ tt(4, x(ne))
1543
1540
  ], Tt);
1544
1541
  const $i = (t) => {
1545
- const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = R(ne), [d, h] = q(r), [u, g] = q(""), _ = R(oe), S = R(fe);
1546
- return /* @__PURE__ */ I(Mt, { children: [
1542
+ const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = M(ne), [d, h] = q(r), [u, g] = q(""), _ = M(oe), S = M(fe);
1543
+ return /* @__PURE__ */ I(Rt, { children: [
1547
1544
  /* @__PURE__ */ o(
1548
1545
  Hr,
1549
1546
  {
@@ -1552,10 +1549,10 @@ const $i = (t) => {
1552
1549
  subUnitId: n,
1553
1550
  initialValue: At(r),
1554
1551
  onChange: (T, k) => {
1555
- const f = At(r), x = Fr(k).range, y = ut(S, { unitId: e, subUnitId: n });
1552
+ const f = At(r), N = Fr(k).range, y = ut(S, { unitId: e, subUnitId: n });
1556
1553
  if (!y)
1557
1554
  return;
1558
- if (y.worksheet.getMergeData().some((E) => me.intersects(x, E))) {
1555
+ if (y.worksheet.getMergeData().some((E) => me.intersects(N, E))) {
1559
1556
  g(_.t("sheets-table.tableRangeWithMergeError"));
1560
1557
  return;
1561
1558
  }
@@ -1563,13 +1560,13 @@ const $i = (t) => {
1563
1560
  if (E.getId() === s)
1564
1561
  return !1;
1565
1562
  const Q = E.getRange();
1566
- return me.intersects(x, Q);
1563
+ return me.intersects(N, Q);
1567
1564
  })) {
1568
1565
  g(_.t("sheets-table.tableRangeWithOtherTableError"));
1569
1566
  return;
1570
1567
  }
1571
- const { startRow: M, endRow: C } = x;
1572
- if (M === C) {
1568
+ const { startRow: R, endRow: C } = N;
1569
+ if (R === C) {
1573
1570
  g(_.t("sheets-table.tableRangeSingleRowError"));
1574
1571
  return;
1575
1572
  }
@@ -1578,11 +1575,11 @@ const $i = (t) => {
1578
1575
  const E = c.getTableById(e, s);
1579
1576
  if (E) {
1580
1577
  const Q = E.getRange();
1581
- if (me.intersects(x, Q) && Q.startRow === x.startRow) {
1582
- h(x), g(""), a({
1578
+ if (me.intersects(N, Q) && Q.startRow === N.startRow) {
1579
+ h(N), g(""), a({
1583
1580
  unitId: e,
1584
1581
  subUnitId: n,
1585
- range: x
1582
+ range: N
1586
1583
  });
1587
1584
  return;
1588
1585
  } else {
@@ -1591,7 +1588,7 @@ const $i = (t) => {
1591
1588
  }
1592
1589
  }
1593
1590
  }
1594
- h(x), g("");
1591
+ h(N), g("");
1595
1592
  }
1596
1593
  },
1597
1594
  supportAcrossSheet: !1
@@ -1618,14 +1615,14 @@ const $i = (t) => {
1618
1615
  ] })
1619
1616
  ] });
1620
1617
  }, ki = (t) => {
1621
- var P, V, Y, ht, qe, Ye, vt, Qe, gt, Be, De, Fe;
1622
- const { unitId: e, subUnitId: n, tableId: r } = t, i = R(le), a = R(oe), s = R(ne), c = s.getTableById(e, r), d = R(cn), h = R(ye), u = we(d.rangeThemeMapChange$), g = we(h.refreshTable$), _ = R(Bn), [, S] = q(Math.random()), T = we(s.tableThemeChanged$, {
1618
+ var P, V, Y, ht, qe, Ye, vt, Qe, gt, De, Be, Fe;
1619
+ const { unitId: e, subUnitId: n, tableId: r } = t, i = M(le), a = M(oe), s = M(ne), c = s.getTableById(e, r), d = M(cn), h = M(ye), u = we(d.rangeThemeMapChange$), g = we(h.refreshTable$), _ = M(Dn), [, S] = q(Math.random()), T = we(s.tableThemeChanged$, {
1623
1620
  theme: c == null ? void 0 : c.getTableStyleId(),
1624
1621
  oldTheme: c == null ? void 0 : c.getTableStyleId(),
1625
1622
  unitId: e,
1626
1623
  subUnitId: n,
1627
1624
  tableId: r
1628
- }), k = d.getRegisteredRangeThemes().filter((m) => m == null ? void 0 : m.startsWith(Wr)), f = d.getALLRegisteredTheme(e).filter((m) => m == null ? void 0 : m.startsWith(mt)), x = c == null ? void 0 : c.getTableStyleId(), y = f.find((m) => m === x), B = y || f[0], v = d.getCustomRangeThemeStyle(e, B), p = (Y = (V = (P = v == null ? void 0 : v.getHeaderRowStyle()) == null ? void 0 : P.bg) == null ? void 0 : V.rgb) != null ? Y : ve, L = (Ye = (qe = (ht = v == null ? void 0 : v.getFirstRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : qe.rgb) != null ? Ye : ve, M = (gt = (Qe = (vt = v == null ? void 0 : v.getSecondRowStyle()) == null ? void 0 : vt.bg) == null ? void 0 : Qe.rgb) != null ? gt : ve, C = (Fe = (De = (Be = v == null ? void 0 : v.getLastRowStyle()) == null ? void 0 : Be.bg) == null ? void 0 : De.rgb) != null ? Fe : ve, [H, E] = q(null), Q = (m) => {
1625
+ }), k = d.getRegisteredRangeThemes().filter((m) => m == null ? void 0 : m.startsWith(Wr)), f = d.getALLRegisteredTheme(e).filter((m) => m == null ? void 0 : m.startsWith(mt)), N = c == null ? void 0 : c.getTableStyleId(), y = f.find((m) => m === N), D = y || f[0], v = d.getCustomRangeThemeStyle(e, D), p = (Y = (V = (P = v == null ? void 0 : v.getHeaderRowStyle()) == null ? void 0 : P.bg) == null ? void 0 : V.rgb) != null ? Y : ve, L = (Ye = (qe = (ht = v == null ? void 0 : v.getFirstRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : qe.rgb) != null ? Ye : ve, R = (gt = (Qe = (vt = v == null ? void 0 : v.getSecondRowStyle()) == null ? void 0 : vt.bg) == null ? void 0 : Qe.rgb) != null ? gt : ve, C = (Fe = (Be = (De = v == null ? void 0 : v.getLastRowStyle()) == null ? void 0 : De.bg) == null ? void 0 : Be.rgb) != null ? Fe : ve, [H, E] = q(null), Q = (m) => {
1629
1626
  i.executeCommand(Ct.id, {
1630
1627
  unitId: e,
1631
1628
  tableId: r,
@@ -1642,11 +1639,11 @@ const $i = (t) => {
1642
1639
  const K = Number(m.split("-")[2]);
1643
1640
  w = `${mt}${K + 1}`;
1644
1641
  }
1645
- const X = new Or(w, { ...Kn });
1642
+ const z = new Or(w, { ...Kn });
1646
1643
  i.executeCommand(Jn.id, {
1647
1644
  unitId: e,
1648
1645
  tableId: r,
1649
- themeStyle: X
1646
+ themeStyle: z
1650
1647
  });
1651
1648
  }, ee = (m, w) => {
1652
1649
  i.executeCommand(ln.id, {
@@ -1655,7 +1652,7 @@ const $i = (t) => {
1655
1652
  styleName: m,
1656
1653
  style: w
1657
1654
  });
1658
- }, Re = (m) => {
1655
+ }, Me = (m) => {
1659
1656
  i.executeCommand(er.id, {
1660
1657
  unitId: e,
1661
1658
  tableId: r,
@@ -1665,12 +1662,12 @@ const $i = (t) => {
1665
1662
  if (hn(() => {
1666
1663
  S(Math.random());
1667
1664
  }, [u, g]), !c) return null;
1668
- const ce = new he(p).isDark(), Ce = new he(L).isDark(), ue = new he(M).isDark(), b = new he(C).isDark();
1665
+ const ce = new he(p).isDark(), Ce = new he(L).isDark(), ue = new he(R).isDark(), b = new he(C).isDark();
1669
1666
  return /* @__PURE__ */ I("div", { children: [
1670
1667
  /* @__PURE__ */ o("h5", { children: a.t("sheets-table.defaultStyle") }),
1671
1668
  /* @__PURE__ */ o("div", { className: "univer-flex univer-gap-2", children: k.map((m) => {
1672
1669
  var Se, _e, He, Ve, Ae, Ue, We, je;
1673
- const w = d.getDefaultRangeThemeStyle(m), X = ((_e = (Se = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : Se.bg) == null ? void 0 : _e.rgb) || ve, K = ((Ve = (He = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : He.bg) == null ? void 0 : Ve.rgb) || ve, se = ((Ue = (Ae = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb) || ve, W = ((je = (We = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : We.bg) == null ? void 0 : je.rgb) || ve;
1670
+ const w = d.getDefaultRangeThemeStyle(m), z = ((_e = (Se = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : Se.bg) == null ? void 0 : _e.rgb) || ve, K = ((Ve = (He = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : He.bg) == null ? void 0 : Ve.rgb) || ve, se = ((Ue = (Ae = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb) || ve, W = ((je = (We = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : We.bg) == null ? void 0 : je.rgb) || ve;
1674
1671
  return /* @__PURE__ */ I(
1675
1672
  "div",
1676
1673
  {
@@ -1679,7 +1676,7 @@ const $i = (t) => {
1679
1676
  }),
1680
1677
  onClick: () => Q(m),
1681
1678
  children: [
1682
- /* @__PURE__ */ o("div", { style: { background: X, border: `${G}` } }),
1679
+ /* @__PURE__ */ o("div", { style: { background: z, border: `${G}` } }),
1683
1680
  /* @__PURE__ */ o("div", { style: { background: K, border: `${G}` } }),
1684
1681
  /* @__PURE__ */ o("div", { style: { background: se, border: `${G}` } }),
1685
1682
  /* @__PURE__ */ o("div", { style: { background: W, border: `${G}` } })
@@ -1701,7 +1698,7 @@ const $i = (t) => {
1701
1698
  ),
1702
1699
  f.map((m) => {
1703
1700
  var Se, _e, He, Ve, Ae, Ue, We, je;
1704
- const w = d.getCustomRangeThemeStyle(e, m), X = (_e = (Se = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : Se.bg) == null ? void 0 : _e.rgb, K = (Ve = (He = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : He.bg) == null ? void 0 : Ve.rgb, se = (Ue = (Ae = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb, W = (je = (We = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : We.bg) == null ? void 0 : je.rgb;
1701
+ const w = d.getCustomRangeThemeStyle(e, m), z = (_e = (Se = w == null ? void 0 : w.getHeaderRowStyle()) == null ? void 0 : Se.bg) == null ? void 0 : _e.rgb, K = (Ve = (He = w == null ? void 0 : w.getFirstRowStyle()) == null ? void 0 : He.bg) == null ? void 0 : Ve.rgb, se = (Ue = (Ae = w == null ? void 0 : w.getSecondRowStyle()) == null ? void 0 : Ae.bg) == null ? void 0 : Ue.rgb, W = (je = (We = w == null ? void 0 : w.getLastRowStyle()) == null ? void 0 : We.bg) == null ? void 0 : je.rgb;
1705
1702
  return /* @__PURE__ */ I(
1706
1703
  "div",
1707
1704
  {
@@ -1712,17 +1709,17 @@ const $i = (t) => {
1712
1709
  onMouseEnter: () => E(m),
1713
1710
  onMouseLeave: () => E(null),
1714
1711
  children: [
1715
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: X != null ? X : G, border: `${X ? G : Xe}` } }),
1716
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : G, border: `${K ? G : Xe}` } }),
1717
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : G, border: `${se ? G : Xe}` } }),
1718
- /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: W != null ? W : G, border: `${W ? G : Xe}` } }),
1712
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z != null ? z : G, border: `${z ? G : ze}` } }),
1713
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : G, border: `${K ? G : ze}` } }),
1714
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : G, border: `${se ? G : ze}` } }),
1715
+ /* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: W != null ? W : G, border: `${W ? G : ze}` } }),
1719
1716
  /* @__PURE__ */ o(
1720
1717
  "div",
1721
1718
  {
1722
1719
  className: "univer-absolute univer-right-[-3px] univer-top-[-3px] univer-h-3 univer-w-3 univer-rounded-md univer-bg-gray-200 univer-text-center univer-text-xs univer-leading-[10px]",
1723
1720
  style: { display: H === m ? "block" : "none" },
1724
1721
  onClick: (En) => {
1725
- En.stopPropagation(), Re(m);
1722
+ En.stopPropagation(), Me(m);
1726
1723
  },
1727
1724
  children: "x"
1728
1725
  }
@@ -1733,7 +1730,7 @@ const $i = (t) => {
1733
1730
  );
1734
1731
  })
1735
1732
  ] }),
1736
- y && /* @__PURE__ */ I(Mt, { children: [
1733
+ y && /* @__PURE__ */ I(Rt, { children: [
1737
1734
  /* @__PURE__ */ o("div", { className: "univer-h-px univer-w-full univer-bg-gray-200" }),
1738
1735
  /* @__PURE__ */ I("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
1739
1736
  /* @__PURE__ */ I("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
@@ -1754,7 +1751,7 @@ const $i = (t) => {
1754
1751
  Le,
1755
1752
  {
1756
1753
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1757
- ze,
1754
+ Xe,
1758
1755
  {
1759
1756
  value: p,
1760
1757
  onChange: (m) => {
@@ -1812,7 +1809,7 @@ const $i = (t) => {
1812
1809
  Le,
1813
1810
  {
1814
1811
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1815
- ze,
1812
+ Xe,
1816
1813
  {
1817
1814
  value: L,
1818
1815
  onChange: (m) => {
@@ -1857,7 +1854,7 @@ const $i = (t) => {
1857
1854
  "univer-text-gray-900": !ue
1858
1855
  }),
1859
1856
  style: {
1860
- background: M
1857
+ background: R
1861
1858
  },
1862
1859
  children: a.t("sheets-table.secondLine")
1863
1860
  }
@@ -1866,9 +1863,9 @@ const $i = (t) => {
1866
1863
  Le,
1867
1864
  {
1868
1865
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1869
- ze,
1866
+ Xe,
1870
1867
  {
1871
- value: M,
1868
+ value: R,
1872
1869
  onChange: (m) => ee(c.getTableStyleId(), {
1873
1870
  secondRowStyle: {
1874
1871
  bg: {
@@ -1890,7 +1887,7 @@ const $i = (t) => {
1890
1887
  "div",
1891
1888
  {
1892
1889
  className: O("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", F),
1893
- style: { background: M }
1890
+ style: { background: R }
1894
1891
  }
1895
1892
  ),
1896
1893
  /* @__PURE__ */ o(Ze, { className: "univer-h-2 univer-w-2" })
@@ -1918,7 +1915,7 @@ const $i = (t) => {
1918
1915
  Le,
1919
1916
  {
1920
1917
  overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
1921
- ze,
1918
+ Xe,
1922
1919
  {
1923
1920
  value: C,
1924
1921
  onChange: (m) => {
@@ -1957,11 +1954,11 @@ const $i = (t) => {
1957
1954
  ] })
1958
1955
  ] })
1959
1956
  ] });
1960
- }, yn = "sheet.table.context-insert_menu-id", Mn = "sheet.table.context-remove_menu-id";
1957
+ }, yn = "sheet.table.context-insert_menu-id", Rn = "sheet.table.context-remove_menu-id";
1961
1958
  function Pi(t) {
1962
1959
  return {
1963
1960
  id: Et.id,
1964
- type: Me.BUTTON,
1961
+ type: Re.BUTTON,
1965
1962
  icon: vn,
1966
1963
  tooltip: "sheets-table.title",
1967
1964
  title: "sheets-table.title",
@@ -1971,52 +1968,52 @@ function Pi(t) {
1971
1968
  function Oi(t) {
1972
1969
  return {
1973
1970
  id: yn,
1974
- type: Me.SUBITEMS,
1975
- icon: "Insert",
1971
+ type: Re.SUBITEMS,
1972
+ icon: "InsertDoubleIcon",
1976
1973
  title: "sheets-table.insert.main",
1977
- hidden$: Rn(t)
1974
+ hidden$: Mn(t)
1978
1975
  };
1979
1976
  }
1980
- function Bi(t) {
1977
+ function Di(t) {
1981
1978
  return {
1982
- id: Mn,
1983
- type: Me.SUBITEMS,
1984
- icon: "Reduce",
1979
+ id: Rn,
1980
+ type: Re.SUBITEMS,
1981
+ icon: "ReduceDoubleIcon",
1985
1982
  title: "sheets-table.remove.main",
1986
- hidden$: Rn(t)
1983
+ hidden$: Mn(t)
1987
1984
  };
1988
1985
  }
1989
- function Di(t) {
1986
+ function Bi(t) {
1990
1987
  return {
1991
1988
  id: en.id,
1992
- type: Me.BUTTON,
1989
+ type: Re.BUTTON,
1993
1990
  title: "sheets-table.insert.row",
1994
- hidden$: Nn(t)
1991
+ hidden$: xn(t)
1995
1992
  };
1996
1993
  }
1997
1994
  function Fi(t) {
1998
1995
  return {
1999
1996
  id: Jt.id,
2000
1997
  title: "sheets-table.insert.col",
2001
- type: Me.BUTTON
1998
+ type: Re.BUTTON
2002
1999
  };
2003
2000
  }
2004
2001
  function Hi(t) {
2005
2002
  return {
2006
2003
  id: Kt.id,
2007
- type: Me.BUTTON,
2004
+ type: Re.BUTTON,
2008
2005
  title: "sheets-table.remove.row",
2009
- hidden$: Nn(t)
2006
+ hidden$: xn(t)
2010
2007
  };
2011
2008
  }
2012
2009
  function Vi(t) {
2013
2010
  return {
2014
- id: Xt.id,
2011
+ id: zt.id,
2015
2012
  title: "sheets-table.remove.col",
2016
- type: Me.BUTTON
2013
+ type: Re.BUTTON
2017
2014
  };
2018
2015
  }
2019
- function Rn(t) {
2016
+ function Mn(t) {
2020
2017
  const e = t.get(dt);
2021
2018
  return t.get(fe).getCurrentTypeOfUnit$(ot.UNIVER_SHEET).pipe(
2022
2019
  Ie((i) => i ? i.activeSheet$.pipe(
@@ -2030,7 +2027,7 @@ function Rn(t) {
2030
2027
  ) : J(!0))
2031
2028
  );
2032
2029
  }
2033
- function Nn(t) {
2030
+ function xn(t) {
2034
2031
  const e = t.get(dt);
2035
2032
  return t.get(fe).getCurrentTypeOfUnit$(ot.UNIVER_SHEET).pipe(
2036
2033
  Ie((i) => i ? i.activeSheet$.pipe(
@@ -2061,21 +2058,21 @@ const Ai = {
2061
2058
  menuItemFactory: Oi,
2062
2059
  [en.id]: {
2063
2060
  order: 1,
2064
- menuItemFactory: Di
2061
+ menuItemFactory: Bi
2065
2062
  },
2066
2063
  [Jt.id]: {
2067
2064
  order: 2,
2068
2065
  menuItemFactory: Fi
2069
2066
  }
2070
2067
  },
2071
- [Mn]: {
2068
+ [Rn]: {
2072
2069
  order: 6,
2073
- menuItemFactory: Bi,
2070
+ menuItemFactory: Di,
2074
2071
  [Kt.id]: {
2075
2072
  order: 1,
2076
2073
  menuItemFactory: Hi
2077
2074
  },
2078
- [Xt.id]: {
2075
+ [zt.id]: {
2079
2076
  order: 2,
2080
2077
  menuItemFactory: Vi
2081
2078
  }
@@ -2106,8 +2103,8 @@ let at = class extends Pe {
2106
2103
  }
2107
2104
  };
2108
2105
  at = Wi([
2109
- jt(0, N(nn)),
2110
- jt(1, N(pr))
2106
+ jt(0, x(nn)),
2107
+ jt(1, x(pr))
2111
2108
  ], at);
2112
2109
  var ji = Object.getOwnPropertyDescriptor, Zi = (t, e, n, r) => {
2113
2110
  for (var i = r > 1 ? void 0 : r ? ji(e, n) : e, a = t.length - 1, s; a >= 0; a--)
@@ -2146,10 +2143,10 @@ let wt = class extends Gt {
2146
2143
  }
2147
2144
  };
2148
2145
  wt = Zi([
2149
- nt(1, N(Oe)),
2150
- nt(2, N(ct)),
2151
- nt(3, N(ne)),
2152
- nt(4, N(ye))
2146
+ nt(1, x(Oe)),
2147
+ nt(2, x(ct)),
2148
+ nt(3, x(ne)),
2149
+ nt(4, x(ye))
2153
2150
  ], wt);
2154
2151
  var qi = Object.getOwnPropertyDescriptor, Yi = (t, e, n, r) => {
2155
2152
  for (var i = r > 1 ? void 0 : r ? qi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
@@ -2188,7 +2185,7 @@ let st = class extends Pe {
2188
2185
  selections: [
2189
2186
  {
2190
2187
  range: h,
2191
- primary: Dt(h, s)
2188
+ primary: Bt(h, s)
2192
2189
  }
2193
2190
  ]
2194
2191
  }
@@ -2205,7 +2202,7 @@ let st = class extends Pe {
2205
2202
  selections: [
2206
2203
  {
2207
2204
  range: u,
2208
- primary: Dt(u, s)
2205
+ primary: Bt(u, s)
2209
2206
  }
2210
2207
  ]
2211
2208
  }
@@ -2221,15 +2218,15 @@ let st = class extends Pe {
2221
2218
  }
2222
2219
  };
2223
2220
  st = Yi([
2224
- ft(0, N(un)),
2225
- ft(1, N(fe)),
2226
- ft(2, N(ne))
2221
+ ft(0, x(un)),
2222
+ ft(1, x(fe)),
2223
+ ft(2, x(ne))
2227
2224
  ], st);
2228
- var Qi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, zi = (t, e, n) => e in t ? Qi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Xi = (t, e, n, r) => {
2225
+ var Qi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, Xi = (t, e, n) => e in t ? Qi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, zi = (t, e, n, r) => {
2229
2226
  for (var i = r > 1 ? void 0 : r ? Gi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
2230
2227
  (s = t[a]) && (i = s(i) || i);
2231
2228
  return i;
2232
- }, rt = (t, e) => (n, r) => e(n, r, t), xn = (t, e, n) => zi(t, typeof e != "symbol" ? e + "" : e, n);
2229
+ }, rt = (t, e) => (n, r) => e(n, r, t), Nn = (t, e, n) => Xi(t, typeof e != "symbol" ? e + "" : e, n);
2233
2230
  let lt = class extends Fn {
2234
2231
  constructor(t = Ut, e, n, r, i) {
2235
2232
  super(), this._config = t, this._injector = e, this._commandService = n, this._configService = r, this._renderManagerService = i;
@@ -2277,14 +2274,14 @@ let lt = class extends Fn {
2277
2274
  ].forEach((t) => this._commandService.registerCommand(t));
2278
2275
  }
2279
2276
  };
2280
- xn(lt, "pluginName", Vr);
2281
- xn(lt, "type", ot.UNIVER_SHEET);
2282
- lt = Xi([
2283
- Dn(tr),
2284
- rt(1, N(Oe)),
2285
- rt(2, N(le)),
2277
+ Nn(lt, "pluginName", Vr);
2278
+ Nn(lt, "type", ot.UNIVER_SHEET);
2279
+ lt = zi([
2280
+ Bn(tr),
2281
+ rt(1, x(Oe)),
2282
+ rt(2, x(le)),
2286
2283
  rt(3, Qt),
2287
- rt(4, zt)
2284
+ rt(4, Xt)
2288
2285
  ], lt);
2289
2286
  export {
2290
2287
  lt as UniverSheetsTableUIPlugin