@univerjs/sheets-table-ui 0.10.2 → 0.10.3
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/cjs/index.js +1 -1
- package/lib/es/index.js +164 -163
- package/lib/index.js +164 -163
- package/lib/types/services/sheets-table-ui-service.d.ts +3 -2
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/es/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var En = Object.defineProperty;
|
|
2
2
|
var Ln = (t, e, n) => e in t ? En(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var A = (t, e, n) => Ln(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { Inject as
|
|
4
|
+
import { Inject as x, IUniverInstanceService as pe, ICommandService as oe, LocaleService as ne, Disposable as Oe, ObjectMatrix as $n, cellToRange as jt, Rectangle as be, Injector as ke, IPermissionService as Zt, IContextService as wt, CommandType as qt, IConfigService as Yt, ThemeService as On, RxDisposable as Qt, InterceptorEffectEnum as kn, ErrorService as Pn, ColorKit as de, UniverInstanceType as qe, DependentOn as Dn, Plugin as Bn, merge as Fn, registerDependencies as Hn, touchDependencies as Vn } from "@univerjs/core";
|
|
5
5
|
import { IRenderManagerService as Gt, SHEET_VIEWPORT_KEY as An, convertTransformToOffsetX as Un, convertTransformToOffsetY as Wn, Rect as Et, Shape as jn } from "@univerjs/engine-render";
|
|
6
|
-
import { TableManager as
|
|
6
|
+
import { TableManager as re, SheetTableService as Zn, SetSheetTableFilterCommand as Lt, isConditionFilter as qn, isManualFilter as Yn, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as j, TableConditionTypeEnum as F, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Xe, TableColumnFilterTypeEnum as $t, AddSheetTableCommand as Qn, SHEET_TABLE_CUSTOM_THEME_PREFIX as Gn, DeleteSheetTableCommand as Xn, SetSheetTableCommand as ft, SheetsTableButtonStateEnum as Me, processStyleWithBorderStyle as Ot, customEmptyThemeWithBorderStyle as zn, AddTableThemeCommand as Kn, RemoveTableThemeCommand as Jn, SheetTableRemoveColCommand as Xt, SheetTableRemoveRowCommand as zt, SheetTableInsertColCommand as Kt, SheetTableInsertRowCommand as Jt, SheetsTableController as en, UniverSheetsTablePlugin as er } from "@univerjs/sheets-table";
|
|
7
7
|
import { SheetCanvasPopManagerService as tr, SheetSkeletonManagerService as ot, SheetScrollManagerService as nr, SetZoomRatioOperation as rr, SetScrollOperation as ir, getSheetObject as ar, getCoordByCell as sr, getCurrentRangeDisable$ as lr, SelectAllCommand as or } from "@univerjs/sheets-ui";
|
|
8
8
|
import { useDependency as M, ComponentManager as tn, IDialogService as nn, ISidebarService as cr, useObservable as Te, IUIPartsService as ur, BuiltInUIPart as dr, connectInjector as hr, MenuItemType as ye, getMenuHiddenObservable as vr, ContextMenuPosition as gr, ContextMenuGroup as br, RibbonDataGroup as mr, IMenuManagerService as pr } from "@univerjs/ui";
|
|
9
9
|
import { startWith as rn, distinctUntilChanged as fr, Subject as Cr, BehaviorSubject as kt, merge as It, filter as Sr, debounceTime as _r, switchMap as we, of as J, map as Tr, takeUntil as wr } from "rxjs";
|
|
10
10
|
import { jsxs as w, jsx as o, Fragment as yt } from "react/jsx-runtime";
|
|
11
|
-
import { Dropdown as Ee, clsx as P, borderClassName as H, CascaderList as Ir, Input as Rt, InputNumber as gt, DatePicker as yr, DateRangePicker as Rr, Select as Mr, Checkbox as Pt, scrollbarClassName as xr, ButtonGroup as Nr, Button as _e, Segmented as Er, ColorPicker as
|
|
11
|
+
import { Dropdown as Ee, clsx as P, borderClassName as H, CascaderList as Ir, Input as Rt, InputNumber as gt, DatePicker as yr, DateRangePicker as Rr, Select as Mr, Checkbox as Pt, scrollbarClassName as xr, ButtonGroup as Nr, Button as _e, Segmented as Er, ColorPicker as ze } from "@univerjs/design";
|
|
12
12
|
import { SetRangeValuesMutation as Lr, WorkbookEditablePermission as an, getSheetCommandTarget as ct, SheetsSelectionsService as ut, isSingleCellSelection as $r, expandToContinuousRange as Or, SetRangeThemeMutation as sn, WorkbookPermissionService as ln, SheetRangeThemeModel as on, SheetInterceptorService as cn, INTERCEPTOR_POINT as kr, RangeThemeStyle as Pr, getPrimaryForRange as Dt, SetSelectionsOperation as Bt } from "@univerjs/sheets";
|
|
13
13
|
import { SortRangeCommand as Dr, SortType as Ft } from "@univerjs/sheets-sort";
|
|
14
|
-
import { forwardRef as
|
|
14
|
+
import { forwardRef as ie, useRef as Br, createElement as ae, useState as q, useMemo as un, useCallback as Ht, useEffect as dn } from "react";
|
|
15
15
|
import { serializeRange as Vt, 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", ve = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Ar = "UNIVER_SHEET_Table_FILTER_PANEL_ID", hn = "TABLE_TOOLBAR_BUTTON", Ne = "TABLE_SELECTOR_DIALOG", Ur = "SHEET_TABLE_THEME_PANEL_ID", vn = "SHEET_TABLE_THEME_PANEL", bt = "table-custom-", Wr = "table-default-", he = "rgb(255, 255, 255)", G = "none",
|
|
17
|
+
const Vr = "SHEET_TABLE_UI_PLUGIN", ve = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", Ar = "UNIVER_SHEET_Table_FILTER_PANEL_ID", hn = "TABLE_TOOLBAR_BUTTON", Ne = "TABLE_SELECTOR_DIALOG", Ur = "SHEET_TABLE_THEME_PANEL_ID", vn = "SHEET_TABLE_THEME_PANEL", bt = "table-custom-", Wr = "table-default-", he = "rgb(255, 255, 255)", G = "none", Ke = "1px solid rgb(var(--grey-200))";
|
|
18
18
|
var X = function() {
|
|
19
19
|
return X = Object.assign || function(t) {
|
|
20
20
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
@@ -30,12 +30,12 @@ var X = function() {
|
|
|
30
30
|
for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
|
|
31
31
|
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
|
|
32
32
|
return n;
|
|
33
|
-
},
|
|
33
|
+
}, se = ie(function(t, e) {
|
|
34
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
35
|
return gn(n, "".concat(r), { defIds: n.defIds, idSuffix: d.current }, X({ ref: e, className: c }, s), a);
|
|
36
36
|
});
|
|
37
37
|
function gn(t, e, n, r, i) {
|
|
38
|
-
return
|
|
38
|
+
return ae(t.tag, X(X({ key: e }, Zr(t, n, i)), r), (qr(t, n).children || []).map(function(a, s) {
|
|
39
39
|
return gn(a, "".concat(e, "-").concat(t.tag, "-").concat(s), n, void 0, i);
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
@@ -60,73 +60,73 @@ function qr(t, e) {
|
|
|
60
60
|
function Yr() {
|
|
61
61
|
return Math.random().toString(36).substring(2, 8);
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
var Qr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, bn =
|
|
65
|
-
return
|
|
63
|
+
se.displayName = "UniverIcon";
|
|
64
|
+
var Qr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, bn = ie(function(t, e) {
|
|
65
|
+
return ae(se, Object.assign({}, t, {
|
|
66
66
|
id: "ascending-icon",
|
|
67
67
|
ref: e,
|
|
68
68
|
icon: Qr
|
|
69
69
|
}));
|
|
70
70
|
});
|
|
71
71
|
bn.displayName = "AscendingIcon";
|
|
72
|
-
var Gr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928L9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171C10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778L9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539C9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263L6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539C5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778L6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, mn =
|
|
73
|
-
return
|
|
72
|
+
var Gr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928L9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171C10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778L9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539C9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263L6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539C5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778L6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, mn = ie(function(t, e) {
|
|
73
|
+
return ae(se, Object.assign({}, t, {
|
|
74
74
|
id: "delete-icon",
|
|
75
75
|
ref: e,
|
|
76
76
|
icon: Gr
|
|
77
77
|
}));
|
|
78
78
|
});
|
|
79
79
|
mn.displayName = "DeleteIcon";
|
|
80
|
-
var Xr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pn =
|
|
81
|
-
return
|
|
80
|
+
var Xr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pn = ie(function(t, e) {
|
|
81
|
+
return ae(se, Object.assign({}, t, {
|
|
82
82
|
id: "descending-icon",
|
|
83
83
|
ref: e,
|
|
84
84
|
icon: Xr
|
|
85
85
|
}));
|
|
86
86
|
});
|
|
87
87
|
pn.displayName = "DescendingIcon";
|
|
88
|
-
var zr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z" } }] },
|
|
89
|
-
return
|
|
88
|
+
var zr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z" } }] }, Ze = ie(function(t, e) {
|
|
89
|
+
return ae(se, Object.assign({}, t, {
|
|
90
90
|
id: "dropdown-icon",
|
|
91
91
|
ref: e,
|
|
92
92
|
icon: zr
|
|
93
93
|
}));
|
|
94
94
|
});
|
|
95
|
-
|
|
96
|
-
var Kr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.33333 3.33333V6H6V3.33333H3.33333ZM2 3.238C2 2.55427 2.55427 2 3.238 2H6.09533C6.77906 2 7.33333 2.55427 7.33333 3.238V6.09533C7.33333 6.77906 6.77906 7.33333 6.09533 7.33333H3.238C2.55427 7.33333 2 6.77906 2 6.09533V3.238ZM10 3.33333V6H12.6667V3.33333H10ZM8.66667 3.238C8.66667 2.55427 9.22094 2 9.90467 2H12.762C13.4457 2 14 2.55427 14 3.238V6.09533C14 6.77906 13.4457 7.33333 12.762 7.33333H9.90467C9.22094 7.33333 8.66667 6.77906 8.66667 6.09533V3.238ZM3.33333 10V12.6667H6V10H3.33333ZM2 9.90467C2 9.22094 2.55427 8.66667 3.238 8.66667H6.09533C6.77906 8.66667 7.33333 9.22094 7.33333 9.90467V12.762C7.33333 13.4457 6.77906 14 6.09533 14H3.238C2.55427 14 2 13.4457 2 12.762V9.90467ZM10 10V12.6667H12.6667V10H10ZM8.66667 9.90467C8.66667 9.22094 9.22094 8.66667 9.90467 8.66667H12.762C13.4457 8.66667 14 9.22094 14 9.90467V12.762C14 13.4457 13.4457 14 12.762 14H9.90467C9.22094 14 8.66667 13.4457 8.66667 12.762V9.90467Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, fn =
|
|
97
|
-
return
|
|
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" } }] }, fn = ie(function(t, e) {
|
|
97
|
+
return ae(se, Object.assign({}, t, {
|
|
98
98
|
id: "grid-outline-icon",
|
|
99
99
|
ref: e,
|
|
100
100
|
icon: Kr
|
|
101
101
|
}));
|
|
102
102
|
});
|
|
103
103
|
fn.displayName = "GridOutlineIcon";
|
|
104
|
-
var Jr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Mt =
|
|
105
|
-
return
|
|
104
|
+
var Jr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Mt = ie(function(t, e) {
|
|
105
|
+
return ae(se, Object.assign({}, t, {
|
|
106
106
|
id: "more-down-icon",
|
|
107
107
|
ref: e,
|
|
108
108
|
icon: Jr
|
|
109
109
|
}));
|
|
110
110
|
});
|
|
111
111
|
Mt.displayName = "MoreDownIcon";
|
|
112
|
-
var ei = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Cn =
|
|
113
|
-
return
|
|
112
|
+
var ei = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Cn = ie(function(t, e) {
|
|
113
|
+
return ae(se, Object.assign({}, t, {
|
|
114
114
|
id: "paint-bucket-double-icon",
|
|
115
115
|
ref: e,
|
|
116
116
|
icon: ei
|
|
117
117
|
}));
|
|
118
118
|
});
|
|
119
119
|
Cn.displayName = "PaintBucketDoubleIcon";
|
|
120
|
-
var ti = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.80068 2.57257L7.27955 2.57256C7.61092 2.57256 7.87954 2.30393 7.87954 1.97256C7.87954 1.64119 7.61091 1.37256 7.27954 1.37256L3.80068 1.37257C2.36473 1.37257 1.20067 2.53665 1.20068 3.97259L1.20074 12.3001C1.20075 13.736 2.36481 14.9 3.80074 14.9H12.1282C13.5641 14.9 14.7282 13.736 14.7282 12.3V8.82116C14.7282 8.48979 14.4595 8.22116 14.1282 8.22116C13.7968 8.22116 13.5282 8.48979 13.5282 8.82116V12.3C13.5282 13.0732 12.9014 13.7 12.1282 13.7H3.80074C3.02754 13.7 2.40074 13.0732 2.40074 12.3001L2.40068 3.97258C2.40068 3.19938 3.02748 2.57257 3.80068 2.57257Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.0072 2.0955C13.0997 1.18757 11.6278 1.18794 10.7207 2.09632L6.17749 6.646C6.10294 6.72065 6.04543 6.81056 6.00889 6.90954L4.59817 10.7315C4.51713 10.951 4.57116 11.1977 4.73657 11.3633C4.90198 11.5288 5.14858 11.5831 5.36823 11.5023L9.20237 10.0916C9.30186 10.055 9.3922 9.99722 9.46714 9.92224L14.0073 5.37972C14.9139 4.47266 14.9138 3.00252 14.0072 2.0955ZM11.5698 2.94424C12.0083 2.50513 12.7198 2.50496 13.1585 2.94384C13.5968 3.38229 13.5968 4.09294 13.1585 4.53141L8.69127 9.00102L6.1742 9.92713L7.09912 7.42132L11.5698 2.94424Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Sn =
|
|
121
|
-
return
|
|
120
|
+
var ti = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.80068 2.57257L7.27955 2.57256C7.61092 2.57256 7.87954 2.30393 7.87954 1.97256C7.87954 1.64119 7.61091 1.37256 7.27954 1.37256L3.80068 1.37257C2.36473 1.37257 1.20067 2.53665 1.20068 3.97259L1.20074 12.3001C1.20075 13.736 2.36481 14.9 3.80074 14.9H12.1282C13.5641 14.9 14.7282 13.736 14.7282 12.3V8.82116C14.7282 8.48979 14.4595 8.22116 14.1282 8.22116C13.7968 8.22116 13.5282 8.48979 13.5282 8.82116V12.3C13.5282 13.0732 12.9014 13.7 12.1282 13.7H3.80074C3.02754 13.7 2.40074 13.0732 2.40074 12.3001L2.40068 3.97258C2.40068 3.19938 3.02748 2.57257 3.80068 2.57257Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.0072 2.0955C13.0997 1.18757 11.6278 1.18794 10.7207 2.09632L6.17749 6.646C6.10294 6.72065 6.04543 6.81056 6.00889 6.90954L4.59817 10.7315C4.51713 10.951 4.57116 11.1977 4.73657 11.3633C4.90198 11.5288 5.14858 11.5831 5.36823 11.5023L9.20237 10.0916C9.30186 10.055 9.3922 9.99722 9.46714 9.92224L14.0073 5.37972C14.9139 4.47266 14.9138 3.00252 14.0072 2.0955ZM11.5698 2.94424C12.0083 2.50513 12.7198 2.50496 13.1585 2.94384C13.5968 3.38229 13.5968 4.09294 13.1585 4.53141L8.69127 9.00102L6.1742 9.92713L7.09912 7.42132L11.5698 2.94424Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Sn = ie(function(t, e) {
|
|
121
|
+
return ae(se, Object.assign({}, t, {
|
|
122
122
|
id: "rename-icon",
|
|
123
123
|
ref: e,
|
|
124
124
|
icon: ti
|
|
125
125
|
}));
|
|
126
126
|
});
|
|
127
127
|
Sn.displayName = "RenameIcon";
|
|
128
|
-
var ni = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.7643 4.13354C1.7643 2.82523 2.82488 1.76465 4.13319 1.76465H11.8665C13.1748 1.76465 14.2354 2.82524 14.2354 4.13354V11.8669C14.2354 13.1752 13.1748 14.2358 11.8665 14.2358H4.13318C2.82488 14.2358 1.7643 13.1752 1.7643 11.8669V6.1462C1.76388 6.13711 1.76367 6.12797 1.76367 6.11878C1.76367 6.10959 1.76388 6.10045 1.7643 6.09136V4.13354ZM2.94652 6.70989V11.8669C2.94652 12.5222 3.47781 13.0535 4.13318 13.0535H5.52732V6.70989H2.94652ZM5.52732 5.52767H2.94652V4.13354C2.94652 3.47816 3.47781 2.94687 4.13319 2.94687H5.52732V5.52767ZM6.70954 6.70989V13.0535H11.8665C12.5219 13.0535 13.0532 12.5222 13.0532 11.8669V6.70989L6.70954 6.70989ZM13.0532 5.52767L6.70954 5.52767V2.94687H11.8665C12.5219 2.94687 13.0532 3.47816 13.0532 4.13354V5.52767Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, _n =
|
|
129
|
-
return
|
|
128
|
+
var ni = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.7643 4.13354C1.7643 2.82523 2.82488 1.76465 4.13319 1.76465H11.8665C13.1748 1.76465 14.2354 2.82524 14.2354 4.13354V11.8669C14.2354 13.1752 13.1748 14.2358 11.8665 14.2358H4.13318C2.82488 14.2358 1.7643 13.1752 1.7643 11.8669V6.1462C1.76388 6.13711 1.76367 6.12797 1.76367 6.11878C1.76367 6.10959 1.76388 6.10045 1.7643 6.09136V4.13354ZM2.94652 6.70989V11.8669C2.94652 12.5222 3.47781 13.0535 4.13318 13.0535H5.52732V6.70989H2.94652ZM5.52732 5.52767H2.94652V4.13354C2.94652 3.47816 3.47781 2.94687 4.13319 2.94687H5.52732V5.52767ZM6.70954 6.70989V13.0535H11.8665C12.5219 13.0535 13.0532 12.5222 13.0532 11.8669V6.70989L6.70954 6.70989ZM13.0532 5.52767L6.70954 5.52767V2.94687H11.8665C12.5219 2.94687 13.0532 3.47816 13.0532 4.13354V5.52767Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, _n = ie(function(t, e) {
|
|
129
|
+
return ae(se, Object.assign({}, t, {
|
|
130
130
|
id: "table-icon",
|
|
131
131
|
ref: e,
|
|
132
132
|
icon: ni
|
|
@@ -137,12 +137,12 @@ var me = /* @__PURE__ */ ((t) => (t.Items = "items", t.Condition = "condition",
|
|
|
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);
|
|
139
139
|
return i;
|
|
140
|
-
},
|
|
140
|
+
}, je = (t, e) => (n, r) => e(n, r, t);
|
|
141
141
|
let Le = class extends Oe {
|
|
142
|
-
constructor(e, n, r, i) {
|
|
142
|
+
constructor(e, n, r, i, a) {
|
|
143
143
|
super();
|
|
144
144
|
A(this, "_itemsCache", /* @__PURE__ */ new Map());
|
|
145
|
-
this._tableManager = e, this._sheetTableService = n, this._univerInstanceService = r, this._commandService = i, this._registerTableFilterChangeEvent();
|
|
145
|
+
this._tableManager = e, this._sheetTableService = n, this._univerInstanceService = r, this._commandService = i, this._localeService = a, this._registerTableFilterChangeEvent();
|
|
146
146
|
}
|
|
147
147
|
_registerTableFilterChangeEvent() {
|
|
148
148
|
this._commandService.onCommandExecuted((e) => {
|
|
@@ -218,25 +218,26 @@ let Le = class extends Oe {
|
|
|
218
218
|
for (let f = c; f <= d; f++) {
|
|
219
219
|
if (v.isRowFiltered(f))
|
|
220
220
|
continue;
|
|
221
|
-
|
|
222
|
-
C.has(
|
|
223
|
-
title:
|
|
221
|
+
let I = this._sheetTableService.getCellValueWithConditionType(v, f, u);
|
|
222
|
+
I === void 0 && (I = this._localeService.t("sheets-table.condition.empty")), C.has(I) || S.push({
|
|
223
|
+
title: I,
|
|
224
224
|
key: `${u}_${f}`,
|
|
225
225
|
leaf: !0
|
|
226
|
-
}), _++, C.set(
|
|
226
|
+
}), _++, C.set(I, (C.get(I) || 0) + 1);
|
|
227
227
|
}
|
|
228
228
|
return this._itemsCache.set(r + i, { data: S, itemsCountMap: C, allItemsCount: _ }), { data: S, itemsCountMap: C, allItemsCount: _ };
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
Le = ii([
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
je(0, x(re)),
|
|
233
|
+
je(1, x(Zn)),
|
|
234
|
+
je(2, x(pe)),
|
|
235
|
+
je(3, oe),
|
|
236
|
+
je(4, x(ne))
|
|
236
237
|
], Le);
|
|
237
238
|
var Z = /* @__PURE__ */ ((t) => (t.DatePicker = "DatePicker", t.DateRange = "DateRange", t.Input = "Input", t.Inputs = "Inputs", t.Select = "Select", t.None = "None", t))(Z || {});
|
|
238
239
|
function ai(t) {
|
|
239
|
-
const n = t.get(
|
|
240
|
+
const n = t.get(ne).t;
|
|
240
241
|
return [
|
|
241
242
|
{
|
|
242
243
|
value: F.String,
|
|
@@ -417,7 +418,7 @@ function ai(t) {
|
|
|
417
418
|
function si(t, e) {
|
|
418
419
|
if (!e)
|
|
419
420
|
return [];
|
|
420
|
-
const r = t.get(
|
|
421
|
+
const r = t.get(ne).t;
|
|
421
422
|
switch (e) {
|
|
422
423
|
case l.Quarter:
|
|
423
424
|
return [
|
|
@@ -589,19 +590,19 @@ function oi(t) {
|
|
|
589
590
|
};
|
|
590
591
|
}
|
|
591
592
|
const ci = (t) => {
|
|
592
|
-
var C, _, O, f, E,
|
|
593
|
-
const { conditionInfo: e, onChange: n } = t, r = M(
|
|
593
|
+
var C, _, O, f, E, I, D, y;
|
|
594
|
+
const { conditionInfo: e, onChange: n } = t, r = M(ne), [i, a] = q(!1), s = M(ke), c = ai(s), d = (g, N, R) => {
|
|
594
595
|
n({
|
|
595
|
-
type:
|
|
596
|
-
compare:
|
|
596
|
+
type: N != null ? N : e.type,
|
|
597
|
+
compare: R != null ? R : e.compare,
|
|
597
598
|
info: g
|
|
598
599
|
});
|
|
599
600
|
}, h = (g) => {
|
|
600
601
|
var B;
|
|
601
|
-
const
|
|
602
|
-
|
|
602
|
+
const N = g[0], R = g[1];
|
|
603
|
+
R && a(!1);
|
|
603
604
|
const m = {};
|
|
604
|
-
|
|
605
|
+
N === F.Date ? R === l.Quarter ? m.dateSelect = l.Q1 : R === l.Month ? m.dateSelect = l.M1 : xt.has(R) ? m.date = /* @__PURE__ */ new Date() : m.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : N === F.Number ? m.number = 0 : N === F.String && (m.string = ""), d(m, g[0], (B = g[1]) != null ? B : j.Equal);
|
|
605
606
|
}, u = li(e.type, e.compare);
|
|
606
607
|
let v = "";
|
|
607
608
|
e.compare ? v = `${r.t(`sheets-table.condition.${e.type}`)} - ${r.t(`sheets-table.${e.type}.compare.${e.compare}`)}` : v = r.t(`sheets-table.condition.${e.type}`);
|
|
@@ -678,10 +679,10 @@ const ci = (t) => {
|
|
|
678
679
|
gt,
|
|
679
680
|
{
|
|
680
681
|
className: "univer-w-full",
|
|
681
|
-
value: (
|
|
682
|
+
value: (I = e.info.numberRange) == null ? void 0 : I[0],
|
|
682
683
|
onChange: (g) => {
|
|
683
|
-
var
|
|
684
|
-
g !== null && d({ numberRange: [g, (
|
|
684
|
+
var N;
|
|
685
|
+
g !== null && d({ numberRange: [g, (N = e.info.numberRange) == null ? void 0 : N[1]] });
|
|
685
686
|
},
|
|
686
687
|
controls: !1
|
|
687
688
|
}
|
|
@@ -694,8 +695,8 @@ const ci = (t) => {
|
|
|
694
695
|
value: (D = e.info.numberRange) == null ? void 0 : D[1],
|
|
695
696
|
controls: !1,
|
|
696
697
|
onChange: (g) => {
|
|
697
|
-
var
|
|
698
|
-
g !== null && d({ numberRange: [(
|
|
698
|
+
var N;
|
|
699
|
+
g !== null && d({ numberRange: [(N = e.info.numberRange) == null ? void 0 : N[0], g] });
|
|
699
700
|
}
|
|
700
701
|
}
|
|
701
702
|
)
|
|
@@ -704,7 +705,7 @@ const ci = (t) => {
|
|
|
704
705
|
Mr,
|
|
705
706
|
{
|
|
706
707
|
className: "univer-w-full",
|
|
707
|
-
value: (
|
|
708
|
+
value: (y = e.info.dateSelect) != null ? y : S[0].value,
|
|
708
709
|
options: S,
|
|
709
710
|
onChange: (g) => d({ dateSelect: g })
|
|
710
711
|
}
|
|
@@ -718,15 +719,15 @@ const ci = (t) => {
|
|
|
718
719
|
}), e;
|
|
719
720
|
};
|
|
720
721
|
function di(t) {
|
|
721
|
-
const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = M(
|
|
722
|
-
C ? (a.clear(), s(new Set(a)), _(!1)) : (
|
|
722
|
+
const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = M(ne), h = M(Le), { data: u, itemsCountMap: v, allItemsCount: S } = h.getTableFilterItems(e, r, n, i), [C, _] = q(c === void 0 ? !0 : a.size === v.size), [O, f] = q(C ? S : ui(v)), E = !C && a.size > 0, [I, D] = q(""), y = un(() => I ? u.filter((m) => String(m.title).toLowerCase().includes(I.toLowerCase())) : u, [I, u]), g = Ht(() => {
|
|
723
|
+
C ? (a.clear(), s(new Set(a)), _(!1)) : (y.forEach((m) => {
|
|
723
724
|
a.add(m.title);
|
|
724
725
|
}), s(new Set(a)), _(!0));
|
|
725
|
-
}, [C]),
|
|
726
|
+
}, [C]), N = Ht((m) => {
|
|
726
727
|
m === "" ? (_(!0), u.forEach((B) => {
|
|
727
728
|
a.add(B.title);
|
|
728
729
|
}), f(S)) : (a.clear(), _(!1), f(0)), D(m);
|
|
729
|
-
}, []),
|
|
730
|
+
}, []), R = (m) => {
|
|
730
731
|
if (C) {
|
|
731
732
|
_(!1);
|
|
732
733
|
const B = /* @__PURE__ */ new Set();
|
|
@@ -737,7 +738,7 @@ function di(t) {
|
|
|
737
738
|
a.has(m) ? (a.delete(m), f(O - v.get(m))) : (a.add(m), f(O + v.get(m))), s(new Set(a));
|
|
738
739
|
};
|
|
739
740
|
return /* @__PURE__ */ w("div", { className: "univer-flex univer-h-full univer-flex-col", children: [
|
|
740
|
-
/* @__PURE__ */ o(Rt, { autoFocus: !0, value:
|
|
741
|
+
/* @__PURE__ */ o(Rt, { autoFocus: !0, value: I, placeholder: d.t("sheets-filter.panel.search-placeholder"), onChange: N }),
|
|
741
742
|
/* @__PURE__ */ o(
|
|
742
743
|
"div",
|
|
743
744
|
{
|
|
@@ -756,11 +757,11 @@ function di(t) {
|
|
|
756
757
|
onChange: g,
|
|
757
758
|
children: /* @__PURE__ */ w("div", { className: "univer-flex univer-h-5 univer-flex-1 univer-items-center univer-text-sm", children: [
|
|
758
759
|
/* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: `${d.t("sheets-filter.panel.select-all")}` }),
|
|
759
|
-
/* @__PURE__ */ o("span", { className: "univer-ml univer-text-gray-400", children: `(${O}/${
|
|
760
|
+
/* @__PURE__ */ o("span", { className: "univer-ml univer-text-gray-400", children: `(${O}/${I ? y.length : S})` })
|
|
760
761
|
] })
|
|
761
762
|
}
|
|
762
763
|
) }),
|
|
763
|
-
|
|
764
|
+
y.map((m) => /* @__PURE__ */ o(
|
|
764
765
|
"div",
|
|
765
766
|
{
|
|
766
767
|
className: "univer-flex univer-items-center univer-px-2 univer-py-1",
|
|
@@ -769,7 +770,7 @@ function di(t) {
|
|
|
769
770
|
{
|
|
770
771
|
checked: C || a.has(m.title),
|
|
771
772
|
onChange: () => {
|
|
772
|
-
|
|
773
|
+
R(m.title);
|
|
773
774
|
},
|
|
774
775
|
children: /* @__PURE__ */ w("div", { className: "univer-flex univer-h-5 univer-flex-1 univer-text-sm", children: [
|
|
775
776
|
/* @__PURE__ */ o("span", { className: "univer-inline-block univer-truncate", children: m.title }),
|
|
@@ -789,32 +790,32 @@ function di(t) {
|
|
|
789
790
|
}
|
|
790
791
|
function hi() {
|
|
791
792
|
var ue;
|
|
792
|
-
const t = M(
|
|
793
|
+
const t = M(ne), e = vi(t), n = M(Le), r = M(re), i = M(oe), a = M(Zt), s = M($e), c = s.getCurrentTableFilterInfo(), d = n.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: v, tableFilter: S, currentFilterBy: C, columnIndex: _ } = d, { data: O } = n.getTableFilterItems(h, u, v, _), f = n.getTableFilterCheckedItems(h, v, _), [E, I] = q(new Set(f)), [D, y] = q(C || me.Items), [g, N] = q(() => {
|
|
793
794
|
const b = d.tableFilter;
|
|
794
795
|
return oi(b);
|
|
795
|
-
}),
|
|
796
|
-
if (!
|
|
797
|
-
const m =
|
|
798
|
-
B.columnIndex === _ && (B.sortState,
|
|
796
|
+
}), R = r.getTable(h, v);
|
|
797
|
+
if (!R) return null;
|
|
798
|
+
const m = R.getTableFilters(), B = m.getSortState();
|
|
799
|
+
B.columnIndex === _ && (B.sortState, Xe.Asc), B.columnIndex === _ && (B.sortState, Xe.Desc);
|
|
799
800
|
const L = () => {
|
|
800
801
|
s.closeFilterPanel();
|
|
801
802
|
}, Q = () => {
|
|
802
803
|
L();
|
|
803
804
|
}, U = (b) => {
|
|
804
|
-
const k =
|
|
805
|
+
const k = R.getTableFilterRange();
|
|
805
806
|
i.executeCommand(Dr.id, {
|
|
806
807
|
unitId: h,
|
|
807
808
|
subUnitId: u,
|
|
808
809
|
range: k,
|
|
809
810
|
orderRules: [{ colIndex: _ + k.startColumn, type: b ? Ft.ASC : Ft.DESC }],
|
|
810
811
|
hasTitle: !1
|
|
811
|
-
}), m.setSortState(_, b ?
|
|
812
|
+
}), m.setSortState(_, b ? Xe.Asc : Xe.Desc), L();
|
|
812
813
|
}, ee = () => {
|
|
813
814
|
if (D === me.Items) {
|
|
814
815
|
const b = [];
|
|
815
816
|
for (const Y of O)
|
|
816
817
|
E.has(Y.title) && b.push(Y.title);
|
|
817
|
-
const k =
|
|
818
|
+
const k = R.getTableFilterColumn(_);
|
|
818
819
|
if (k) {
|
|
819
820
|
if (k.values.join(",") === b.join(",")) {
|
|
820
821
|
L();
|
|
@@ -870,7 +871,7 @@ function hi() {
|
|
|
870
871
|
{
|
|
871
872
|
value: D,
|
|
872
873
|
items: e,
|
|
873
|
-
onChange: (b) =>
|
|
874
|
+
onChange: (b) => y(b)
|
|
874
875
|
}
|
|
875
876
|
) }),
|
|
876
877
|
/* @__PURE__ */ o("div", { className: "univer-z-10 univer-h-60 univer-w-[280px]", children: /* @__PURE__ */ o("div", { className: "univer-mt-3 univer-h-full univer-w-full", children: D === me.Items ? /* @__PURE__ */ o(
|
|
@@ -882,7 +883,7 @@ function hi() {
|
|
|
882
883
|
tableId: v,
|
|
883
884
|
columnIndex: _,
|
|
884
885
|
checkedItemSet: E,
|
|
885
|
-
setCheckedItemSet:
|
|
886
|
+
setCheckedItemSet: I
|
|
886
887
|
}
|
|
887
888
|
) : /* @__PURE__ */ o(
|
|
888
889
|
ci,
|
|
@@ -893,7 +894,7 @@ function hi() {
|
|
|
893
894
|
tableId: v,
|
|
894
895
|
columnIndex: _,
|
|
895
896
|
conditionInfo: g,
|
|
896
|
-
onChange:
|
|
897
|
+
onChange: N
|
|
897
898
|
}
|
|
898
899
|
) }) }),
|
|
899
900
|
/* @__PURE__ */ w(
|
|
@@ -984,10 +985,10 @@ let $e = class extends Oe {
|
|
|
984
985
|
}
|
|
985
986
|
};
|
|
986
987
|
$e = bi([
|
|
987
|
-
Je(0,
|
|
988
|
+
Je(0, x(tn)),
|
|
988
989
|
Je(1, wt),
|
|
989
|
-
Je(2,
|
|
990
|
-
Je(3,
|
|
990
|
+
Je(2, x(tr)),
|
|
991
|
+
Je(3, x(nn))
|
|
991
992
|
], $e);
|
|
992
993
|
const Ct = {
|
|
993
994
|
type: qt.OPERATION,
|
|
@@ -995,7 +996,7 @@ const Ct = {
|
|
|
995
996
|
async handler(t, e) {
|
|
996
997
|
if (!e)
|
|
997
998
|
return !1;
|
|
998
|
-
const { row: n, col: r, unitId: i, subUnitId: a, tableId: s } = e, c = t.get(
|
|
999
|
+
const { row: n, col: r, unitId: i, subUnitId: a, tableId: s } = e, c = t.get(re), d = t.get(wt), h = t.get($e);
|
|
999
1000
|
return c.getTable(i, s) ? (d.getContextValue(ve) || (h.setCurrentTableFilterInfo({ unitId: i, subUnitId: a, row: n, tableId: s, column: r }), d.setContextValue(ve, !0)), !0) : !1;
|
|
1000
1001
|
}
|
|
1001
1002
|
}, Nt = {
|
|
@@ -1003,7 +1004,7 @@ const Ct = {
|
|
|
1003
1004
|
id: "sheet.operation.open-table-selector",
|
|
1004
1005
|
async handler(t) {
|
|
1005
1006
|
var C;
|
|
1006
|
-
const e = t.get(pe), n = t.get(
|
|
1007
|
+
const e = t.get(pe), n = t.get(oe), r = ct(e);
|
|
1007
1008
|
if (!r)
|
|
1008
1009
|
return !1;
|
|
1009
1010
|
const { unitId: i, subUnitId: a, worksheet: s } = r, d = t.get(ut).getCurrentLastSelection(), h = (C = d == null ? void 0 : d.range) != null ? C : { startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }, v = $r(d) ? Or(h, { up: !0, left: !0, right: !0, down: !0 }, s) : h, S = await Tn(t, i, a, v);
|
|
@@ -1011,7 +1012,7 @@ const Ct = {
|
|
|
1011
1012
|
}
|
|
1012
1013
|
};
|
|
1013
1014
|
async function Tn(t, e, n, r, i) {
|
|
1014
|
-
const a = t.get(nn), s = t.get(
|
|
1015
|
+
const a = t.get(nn), s = t.get(ne);
|
|
1015
1016
|
return new Promise((c) => {
|
|
1016
1017
|
const d = {
|
|
1017
1018
|
unitId: e,
|
|
@@ -1073,11 +1074,11 @@ let Ie = class extends Oe {
|
|
|
1073
1074
|
}
|
|
1074
1075
|
};
|
|
1075
1076
|
Ie = pi([
|
|
1076
|
-
fi(0,
|
|
1077
|
+
fi(0, x(oe))
|
|
1077
1078
|
], Ie);
|
|
1078
1079
|
const Ci = () => {
|
|
1079
1080
|
var fe, ue;
|
|
1080
|
-
const [t, e] = q(""), [n, r] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), d = M(it), h = Te(d.anchorPosition$), u = M(
|
|
1081
|
+
const [t, e] = q(""), [n, r] = q(""), i = M(cr), [a, s] = q({}), c = M(ke), d = M(it), h = Te(d.anchorPosition$), u = M(oe), v = M(pe), S = M(ln), C = Te(S.unitPermissionInitStateChange$, !1), _ = M(re), O = M(on), f = M(Ie), E = Te(f.refreshTable$), I = M(ne), D = M(ut), y = Te(D.selectionChanged$, [{ range: jt(0, 0), primary: null }]), [, g] = q(Math.random()), R = M(Yt).getConfig(wn), m = (fe = R == null ? void 0 : R.anchorHeight) != null ? fe : 24, B = (ue = R == null ? void 0 : R.anchorBackgroundColor) != null ? ue : "rgb(53,91,183)", L = (b, k) => {
|
|
1081
1082
|
s((V) => ({
|
|
1082
1083
|
...V,
|
|
1083
1084
|
[b]: k
|
|
@@ -1113,13 +1114,13 @@ const Ci = () => {
|
|
|
1113
1114
|
});
|
|
1114
1115
|
};
|
|
1115
1116
|
return C ? /* @__PURE__ */ o("div", { className: "univer-absolute univer-z-50 univer-h-0 univer-w-0", children: h.map((b) => {
|
|
1116
|
-
var De, Be, p, T, z, K,
|
|
1117
|
+
var De, Be, p, T, z, K, le;
|
|
1117
1118
|
const k = _.getTableById(U, b.tableId);
|
|
1118
1119
|
if (!k) return null;
|
|
1119
|
-
const V = O.getRangeThemeStyle(U, k.getTableStyleId()), Y = (p = (Be = (De = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : De.bg) == null ? void 0 : Be.rgb) != null ? p : B,
|
|
1120
|
-
if (!(
|
|
1120
|
+
const V = O.getRangeThemeStyle(U, k.getTableStyleId()), Y = (p = (Be = (De = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : De.bg) == null ? void 0 : Be.rgb) != null ? p : B, Ye = (K = (z = (T = V == null ? void 0 : V.getHeaderRowStyle()) == null ? void 0 : T.cl) == null ? void 0 : z.rgb) != null ? K : "rgb(255, 255, 255)", Qe = k.getRange();
|
|
1121
|
+
if (!(y != null && y.length))
|
|
1121
1122
|
return null;
|
|
1122
|
-
const
|
|
1123
|
+
const Ge = y[y.length - 1].range, Pe = !be.intersects(Qe, Ge) && b.y <= 20;
|
|
1123
1124
|
return /* @__PURE__ */ w(
|
|
1124
1125
|
"div",
|
|
1125
1126
|
{
|
|
@@ -1131,7 +1132,7 @@ const Ci = () => {
|
|
|
1131
1132
|
left: b.x,
|
|
1132
1133
|
top: Math.max(b.y, 0),
|
|
1133
1134
|
backgroundColor: Y,
|
|
1134
|
-
color:
|
|
1135
|
+
color: Ye,
|
|
1135
1136
|
borderWidth: "0.5px",
|
|
1136
1137
|
height: m ? `${m}px` : "24px"
|
|
1137
1138
|
},
|
|
@@ -1164,7 +1165,7 @@ const Ci = () => {
|
|
|
1164
1165
|
},
|
|
1165
1166
|
children: [
|
|
1166
1167
|
/* @__PURE__ */ o(Sn, {}),
|
|
1167
|
-
|
|
1168
|
+
I.t("sheets-table.rename")
|
|
1168
1169
|
]
|
|
1169
1170
|
}
|
|
1170
1171
|
),
|
|
@@ -1181,7 +1182,7 @@ const Ci = () => {
|
|
|
1181
1182
|
className: "univer-flex univer-min-w-32 univer-cursor-pointer univer-items-center univer-gap-2 univer-pb-1 univer-pl-2 univer-pr-2 univer-pt-1 univer-text-sm hover:univer-bg-gray-200",
|
|
1182
1183
|
children: [
|
|
1183
1184
|
/* @__PURE__ */ o(fn, {}),
|
|
1184
|
-
|
|
1185
|
+
I.t("sheets-table.updateRange")
|
|
1185
1186
|
]
|
|
1186
1187
|
}
|
|
1187
1188
|
),
|
|
@@ -1195,7 +1196,7 @@ const Ci = () => {
|
|
|
1195
1196
|
if (!W) return;
|
|
1196
1197
|
const Ce = W.getTableConfig(), Se = {
|
|
1197
1198
|
id: Ur,
|
|
1198
|
-
header: { title:
|
|
1199
|
+
header: { title: I.t("sheets-table.tableStyle") },
|
|
1199
1200
|
children: {
|
|
1200
1201
|
label: vn,
|
|
1201
1202
|
oldConfig: Ce,
|
|
@@ -1214,7 +1215,7 @@ const Ci = () => {
|
|
|
1214
1215
|
extend: { colorChannel1: "rgb(53,91,183)" }
|
|
1215
1216
|
}
|
|
1216
1217
|
),
|
|
1217
|
-
|
|
1218
|
+
I.t("sheets-table.setTheme")
|
|
1218
1219
|
]
|
|
1219
1220
|
}
|
|
1220
1221
|
),
|
|
@@ -1237,12 +1238,12 @@ const Ci = () => {
|
|
|
1237
1238
|
},
|
|
1238
1239
|
children: [
|
|
1239
1240
|
/* @__PURE__ */ o(mn, { className: "univer-mr-2" }),
|
|
1240
|
-
|
|
1241
|
+
I.t("sheets-table.removeTable")
|
|
1241
1242
|
]
|
|
1242
1243
|
}
|
|
1243
1244
|
)
|
|
1244
1245
|
] }),
|
|
1245
|
-
open: (
|
|
1246
|
+
open: (le = a[b.tableId]) != null ? le : !1,
|
|
1246
1247
|
onOpenChange: (W) => {
|
|
1247
1248
|
L(b.tableId, W);
|
|
1248
1249
|
},
|
|
@@ -1318,13 +1319,13 @@ let it = class extends Oe {
|
|
|
1318
1319
|
if (!O) return u;
|
|
1319
1320
|
const { scene: f } = O, E = f.getViewport(An.VIEW_MAIN);
|
|
1320
1321
|
if (!E) return u;
|
|
1321
|
-
const
|
|
1322
|
-
if (!
|
|
1322
|
+
const I = f == null ? void 0 : f.scaleX, D = f == null ? void 0 : f.scaleY, y = f == null ? void 0 : f.getViewportScrollXY(E);
|
|
1323
|
+
if (!I || !f || !D || !y) return u;
|
|
1323
1324
|
const g = _.getCurrentSkeleton();
|
|
1324
1325
|
if (!g) return u;
|
|
1325
|
-
const
|
|
1326
|
-
return m >= -10 &&
|
|
1327
|
-
x:
|
|
1326
|
+
const N = g.getNoMergeCellWithCoordByIndex(S, C), R = Un(N.startX, I, y), m = Wn(N.startY, D, y) - 25 - 4;
|
|
1327
|
+
return m >= -10 && R >= 45 && u.push({
|
|
1328
|
+
x: R,
|
|
1328
1329
|
y: m,
|
|
1329
1330
|
tableId: v.id,
|
|
1330
1331
|
tableName: v.name
|
|
@@ -1336,16 +1337,16 @@ let it = class extends Oe {
|
|
|
1336
1337
|
}
|
|
1337
1338
|
};
|
|
1338
1339
|
it = _i([
|
|
1339
|
-
te(1,
|
|
1340
|
-
te(2,
|
|
1340
|
+
te(1, x(ke)),
|
|
1341
|
+
te(2, x(ot)),
|
|
1341
1342
|
te(3, Gt),
|
|
1342
|
-
te(4,
|
|
1343
|
+
te(4, oe),
|
|
1343
1344
|
te(5, pe),
|
|
1344
1345
|
te(6, ur),
|
|
1345
|
-
te(7,
|
|
1346
|
-
te(8,
|
|
1347
|
-
te(9,
|
|
1348
|
-
te(10,
|
|
1346
|
+
te(7, x(re)),
|
|
1347
|
+
te(8, x(nr)),
|
|
1348
|
+
te(9, x(ln)),
|
|
1349
|
+
te(10, x(Zt))
|
|
1349
1350
|
], it);
|
|
1350
1351
|
const xe = 16;
|
|
1351
1352
|
new Path2D("M3.30363 3C2.79117 3 2.51457 3.60097 2.84788 3.99024L6.8 8.60593V12.5662C6.8 12.7184 6.8864 12.8575 7.02289 12.9249L8.76717 13.7863C8.96655 13.8847 9.2 13.7396 9.2 13.5173V8.60593L13.1521 3.99024C13.4854 3.60097 13.2088 3 12.6964 3H3.30363Z");
|
|
@@ -1460,8 +1461,8 @@ let St = class extends jn {
|
|
|
1460
1461
|
};
|
|
1461
1462
|
St = xi([
|
|
1462
1463
|
mt(2, wt),
|
|
1463
|
-
mt(3,
|
|
1464
|
-
mt(4,
|
|
1464
|
+
mt(3, oe),
|
|
1465
|
+
mt(4, x(On))
|
|
1465
1466
|
], St);
|
|
1466
1467
|
var Ni = Object.getOwnPropertyDescriptor, Ei = (t, e, n, r) => {
|
|
1467
1468
|
for (var i = r > 1 ? void 0 : r ? Ni(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -1514,18 +1515,18 @@ let _t = class extends Qt {
|
|
|
1514
1515
|
const { startRow: u, startColumn: v, endColumn: S } = c;
|
|
1515
1516
|
this._interceptCellContent(r, a, c);
|
|
1516
1517
|
for (let C = v; C <= S; C++) {
|
|
1517
|
-
const _ = `sheets-table-filter-button-${u}-${C}`, O = sr(u, C, s, i), { startX: f, startY: E, endX:
|
|
1518
|
-
if (g <= et ||
|
|
1518
|
+
const _ = `sheets-table-filter-button-${u}-${C}`, O = sr(u, C, s, i), { startX: f, startY: E, endX: I, endY: D } = O, y = I - f, g = D - E;
|
|
1519
|
+
if (g <= et || y <= et)
|
|
1519
1520
|
continue;
|
|
1520
|
-
const
|
|
1521
|
-
left:
|
|
1521
|
+
const N = d[C - v], R = I - ge - et, m = D - ge - et, B = {
|
|
1522
|
+
left: R,
|
|
1522
1523
|
top: m,
|
|
1523
1524
|
height: ge,
|
|
1524
1525
|
width: ge,
|
|
1525
1526
|
zIndex: Li,
|
|
1526
1527
|
cellHeight: g,
|
|
1527
|
-
cellWidth:
|
|
1528
|
-
filterParams: { unitId: r, subUnitId: a, row: u, col: C, buttonState:
|
|
1528
|
+
cellWidth: y,
|
|
1529
|
+
filterParams: { unitId: r, subUnitId: a, row: u, col: C, buttonState: N, tableId: h }
|
|
1529
1530
|
}, L = this._injector.createInstance(St, _, B);
|
|
1530
1531
|
this._tableFilterButtonShapes.push(L);
|
|
1531
1532
|
}
|
|
@@ -1552,13 +1553,13 @@ let _t = class extends Qt {
|
|
|
1552
1553
|
}
|
|
1553
1554
|
};
|
|
1554
1555
|
_t = Ei([
|
|
1555
|
-
tt(1,
|
|
1556
|
-
tt(2,
|
|
1557
|
-
tt(3,
|
|
1558
|
-
tt(4,
|
|
1556
|
+
tt(1, x(ke)),
|
|
1557
|
+
tt(2, x(ot)),
|
|
1558
|
+
tt(3, x(cn)),
|
|
1559
|
+
tt(4, x(re))
|
|
1559
1560
|
], _t);
|
|
1560
1561
|
const $i = (t) => {
|
|
1561
|
-
const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = M(
|
|
1562
|
+
const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = M(re), [d, h] = q(r), [u, v] = q(""), S = M(ne), C = M(pe);
|
|
1562
1563
|
return /* @__PURE__ */ w(yt, { children: [
|
|
1563
1564
|
/* @__PURE__ */ o(
|
|
1564
1565
|
Hr,
|
|
@@ -1568,10 +1569,10 @@ const $i = (t) => {
|
|
|
1568
1569
|
subUnitId: n,
|
|
1569
1570
|
initialValue: Vt(r),
|
|
1570
1571
|
onChange: (_, O) => {
|
|
1571
|
-
const f = Vt(r), E = Fr(O).range,
|
|
1572
|
-
if (!
|
|
1572
|
+
const f = Vt(r), E = Fr(O).range, I = ct(C, { unitId: e, subUnitId: n });
|
|
1573
|
+
if (!I)
|
|
1573
1574
|
return;
|
|
1574
|
-
if (
|
|
1575
|
+
if (I.worksheet.getMergeData().some((L) => be.intersects(E, L))) {
|
|
1575
1576
|
v(S.t("sheets-table.tableRangeWithMergeError"));
|
|
1576
1577
|
return;
|
|
1577
1578
|
}
|
|
@@ -1584,8 +1585,8 @@ const $i = (t) => {
|
|
|
1584
1585
|
v(S.t("sheets-table.tableRangeWithOtherTableError"));
|
|
1585
1586
|
return;
|
|
1586
1587
|
}
|
|
1587
|
-
const { startRow:
|
|
1588
|
-
if (
|
|
1588
|
+
const { startRow: R, endRow: m } = E;
|
|
1589
|
+
if (R === m) {
|
|
1589
1590
|
v(S.t("sheets-table.tableRangeSingleRowError"));
|
|
1590
1591
|
return;
|
|
1591
1592
|
}
|
|
@@ -1634,14 +1635,14 @@ const $i = (t) => {
|
|
|
1634
1635
|
] })
|
|
1635
1636
|
] });
|
|
1636
1637
|
}, Oi = (t) => {
|
|
1637
|
-
var k, V, Y, dt,
|
|
1638
|
-
const { unitId: e, subUnitId: n, tableId: r } = t, i = M(
|
|
1638
|
+
var k, V, Y, dt, Ye, Qe, ht, Ge, vt, Pe, De, Be;
|
|
1639
|
+
const { unitId: e, subUnitId: n, tableId: r } = t, i = M(oe), a = M(ne), s = M(re), c = s.getTableById(e, r), d = M(on), h = M(Ie), u = Te(d.rangeThemeMapChange$), v = Te(h.refreshTable$), S = M(Pn), [, C] = q(Math.random()), _ = Te(s.tableThemeChanged$, {
|
|
1639
1640
|
theme: c == null ? void 0 : c.getTableStyleId(),
|
|
1640
1641
|
oldTheme: c == null ? void 0 : c.getTableStyleId(),
|
|
1641
1642
|
unitId: e,
|
|
1642
1643
|
subUnitId: n,
|
|
1643
1644
|
tableId: r
|
|
1644
|
-
}), O = d.getRegisteredRangeThemes().filter((p) => p == null ? void 0 : p.startsWith(Wr)), f = d.getALLRegisteredTheme(e).filter((p) => p == null ? void 0 : p.startsWith(bt)), E = c == null ? void 0 : c.getTableStyleId(),
|
|
1645
|
+
}), O = d.getRegisteredRangeThemes().filter((p) => p == null ? void 0 : p.startsWith(Wr)), f = d.getALLRegisteredTheme(e).filter((p) => p == null ? void 0 : p.startsWith(bt)), E = c == null ? void 0 : c.getTableStyleId(), I = f.find((p) => p === E), D = I || f[0], y = d.getCustomRangeThemeStyle(e, D), g = (Y = (V = (k = y == null ? void 0 : y.getHeaderRowStyle()) == null ? void 0 : k.bg) == null ? void 0 : V.rgb) != null ? Y : he, N = (Qe = (Ye = (dt = y == null ? void 0 : y.getFirstRowStyle()) == null ? void 0 : dt.bg) == null ? void 0 : Ye.rgb) != null ? Qe : he, R = (vt = (Ge = (ht = y == null ? void 0 : y.getSecondRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : Ge.rgb) != null ? vt : he, m = (Be = (De = (Pe = y == null ? void 0 : y.getLastRowStyle()) == null ? void 0 : Pe.bg) == null ? void 0 : De.rgb) != null ? Be : he, [B, L] = q(null), Q = (p) => {
|
|
1645
1646
|
i.executeCommand(ft.id, {
|
|
1646
1647
|
unitId: e,
|
|
1647
1648
|
tableId: r,
|
|
@@ -1681,12 +1682,12 @@ const $i = (t) => {
|
|
|
1681
1682
|
if (dn(() => {
|
|
1682
1683
|
C(Math.random());
|
|
1683
1684
|
}, [u, v]), !c) return null;
|
|
1684
|
-
const ce = new de(g).isDark(), fe = new de(
|
|
1685
|
+
const ce = new de(g).isDark(), fe = new de(N).isDark(), ue = new de(R).isDark(), b = new de(m).isDark();
|
|
1685
1686
|
return /* @__PURE__ */ w("div", { children: [
|
|
1686
1687
|
/* @__PURE__ */ o("h5", { children: a.t("sheets-table.defaultStyle") }),
|
|
1687
1688
|
/* @__PURE__ */ o("div", { className: "univer-flex univer-gap-2", children: O.map((p) => {
|
|
1688
1689
|
var Ce, Se, Fe, He, Ve, Ae, Ue, We;
|
|
1689
|
-
const T = d.getDefaultRangeThemeStyle(p), z = ((Se = (Ce = T == null ? void 0 : T.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb) || he, K = ((He = (Fe = T == null ? void 0 : T.getFirstRowStyle()) == null ? void 0 : Fe.bg) == null ? void 0 : He.rgb) || he,
|
|
1690
|
+
const T = d.getDefaultRangeThemeStyle(p), z = ((Se = (Ce = T == null ? void 0 : T.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb) || he, K = ((He = (Fe = T == null ? void 0 : T.getFirstRowStyle()) == null ? void 0 : Fe.bg) == null ? void 0 : He.rgb) || he, le = ((Ae = (Ve = T == null ? void 0 : T.getSecondRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : Ae.rgb) || he, W = ((We = (Ue = T == null ? void 0 : T.getLastRowStyle()) == null ? void 0 : Ue.bg) == null ? void 0 : We.rgb) || he;
|
|
1690
1691
|
return /* @__PURE__ */ w(
|
|
1691
1692
|
"div",
|
|
1692
1693
|
{
|
|
@@ -1697,7 +1698,7 @@ const $i = (t) => {
|
|
|
1697
1698
|
children: [
|
|
1698
1699
|
/* @__PURE__ */ o("div", { style: { background: z, border: `${G}` } }),
|
|
1699
1700
|
/* @__PURE__ */ o("div", { style: { background: K, border: `${G}` } }),
|
|
1700
|
-
/* @__PURE__ */ o("div", { style: { background:
|
|
1701
|
+
/* @__PURE__ */ o("div", { style: { background: le, border: `${G}` } }),
|
|
1701
1702
|
/* @__PURE__ */ o("div", { style: { background: W, border: `${G}` } })
|
|
1702
1703
|
]
|
|
1703
1704
|
},
|
|
@@ -1717,7 +1718,7 @@ const $i = (t) => {
|
|
|
1717
1718
|
),
|
|
1718
1719
|
f.map((p) => {
|
|
1719
1720
|
var Ce, Se, Fe, He, Ve, Ae, Ue, We;
|
|
1720
|
-
const T = d.getCustomRangeThemeStyle(e, p), z = (Se = (Ce = T == null ? void 0 : T.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb, K = (He = (Fe = T == null ? void 0 : T.getFirstRowStyle()) == null ? void 0 : Fe.bg) == null ? void 0 : He.rgb,
|
|
1721
|
+
const T = d.getCustomRangeThemeStyle(e, p), z = (Se = (Ce = T == null ? void 0 : T.getHeaderRowStyle()) == null ? void 0 : Ce.bg) == null ? void 0 : Se.rgb, K = (He = (Fe = T == null ? void 0 : T.getFirstRowStyle()) == null ? void 0 : Fe.bg) == null ? void 0 : He.rgb, le = (Ae = (Ve = T == null ? void 0 : T.getSecondRowStyle()) == null ? void 0 : Ve.bg) == null ? void 0 : Ae.rgb, W = (We = (Ue = T == null ? void 0 : T.getLastRowStyle()) == null ? void 0 : Ue.bg) == null ? void 0 : We.rgb;
|
|
1721
1722
|
return /* @__PURE__ */ w(
|
|
1722
1723
|
"div",
|
|
1723
1724
|
{
|
|
@@ -1728,10 +1729,10 @@ const $i = (t) => {
|
|
|
1728
1729
|
onMouseEnter: () => L(p),
|
|
1729
1730
|
onMouseLeave: () => L(null),
|
|
1730
1731
|
children: [
|
|
1731
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z != null ? z : G, border: `${z ? G :
|
|
1732
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : G, border: `${K ? G :
|
|
1733
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background:
|
|
1734
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: W != null ? W : G, border: `${W ? G :
|
|
1732
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z != null ? z : G, border: `${z ? G : Ke}` } }),
|
|
1733
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: K != null ? K : G, border: `${K ? G : Ke}` } }),
|
|
1734
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: le != null ? le : G, border: `${le ? G : Ke}` } }),
|
|
1735
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: W != null ? W : G, border: `${W ? G : Ke}` } }),
|
|
1735
1736
|
/* @__PURE__ */ o(
|
|
1736
1737
|
"div",
|
|
1737
1738
|
{
|
|
@@ -1749,7 +1750,7 @@ const $i = (t) => {
|
|
|
1749
1750
|
);
|
|
1750
1751
|
})
|
|
1751
1752
|
] }),
|
|
1752
|
-
|
|
1753
|
+
I && /* @__PURE__ */ w(yt, { children: [
|
|
1753
1754
|
/* @__PURE__ */ o("div", { className: "univer-h-px univer-w-full univer-bg-gray-200" }),
|
|
1754
1755
|
/* @__PURE__ */ w("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
|
|
1755
1756
|
/* @__PURE__ */ w("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
|
|
@@ -1770,7 +1771,7 @@ const $i = (t) => {
|
|
|
1770
1771
|
Ee,
|
|
1771
1772
|
{
|
|
1772
1773
|
overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
|
|
1773
|
-
|
|
1774
|
+
ze,
|
|
1774
1775
|
{
|
|
1775
1776
|
value: g,
|
|
1776
1777
|
onChange: (p) => {
|
|
@@ -1803,7 +1804,7 @@ const $i = (t) => {
|
|
|
1803
1804
|
}
|
|
1804
1805
|
}
|
|
1805
1806
|
),
|
|
1806
|
-
/* @__PURE__ */ o(
|
|
1807
|
+
/* @__PURE__ */ o(Ze, { className: "univer-h-2 univer-w-2" })
|
|
1807
1808
|
]
|
|
1808
1809
|
}
|
|
1809
1810
|
)
|
|
@@ -1819,7 +1820,7 @@ const $i = (t) => {
|
|
|
1819
1820
|
"univer-text-gray-900": !fe
|
|
1820
1821
|
}),
|
|
1821
1822
|
style: {
|
|
1822
|
-
background:
|
|
1823
|
+
background: N
|
|
1823
1824
|
},
|
|
1824
1825
|
children: a.t("sheets-table.firstLine")
|
|
1825
1826
|
}
|
|
@@ -1828,9 +1829,9 @@ const $i = (t) => {
|
|
|
1828
1829
|
Ee,
|
|
1829
1830
|
{
|
|
1830
1831
|
overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
|
|
1831
|
-
|
|
1832
|
+
ze,
|
|
1832
1833
|
{
|
|
1833
|
-
value:
|
|
1834
|
+
value: N,
|
|
1834
1835
|
onChange: (p) => {
|
|
1835
1836
|
ee(c.getTableStyleId(), {
|
|
1836
1837
|
firstRowStyle: {
|
|
@@ -1854,10 +1855,10 @@ const $i = (t) => {
|
|
|
1854
1855
|
"div",
|
|
1855
1856
|
{
|
|
1856
1857
|
className: P("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
|
|
1857
|
-
style: { background:
|
|
1858
|
+
style: { background: N }
|
|
1858
1859
|
}
|
|
1859
1860
|
),
|
|
1860
|
-
/* @__PURE__ */ o(
|
|
1861
|
+
/* @__PURE__ */ o(Ze, { className: "univer-h-2 univer-w-2" })
|
|
1861
1862
|
]
|
|
1862
1863
|
}
|
|
1863
1864
|
)
|
|
@@ -1873,7 +1874,7 @@ const $i = (t) => {
|
|
|
1873
1874
|
"univer-text-gray-900": !ue
|
|
1874
1875
|
}),
|
|
1875
1876
|
style: {
|
|
1876
|
-
background:
|
|
1877
|
+
background: R
|
|
1877
1878
|
},
|
|
1878
1879
|
children: a.t("sheets-table.secondLine")
|
|
1879
1880
|
}
|
|
@@ -1882,9 +1883,9 @@ const $i = (t) => {
|
|
|
1882
1883
|
Ee,
|
|
1883
1884
|
{
|
|
1884
1885
|
overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
|
|
1885
|
-
|
|
1886
|
+
ze,
|
|
1886
1887
|
{
|
|
1887
|
-
value:
|
|
1888
|
+
value: R,
|
|
1888
1889
|
onChange: (p) => ee(c.getTableStyleId(), {
|
|
1889
1890
|
secondRowStyle: {
|
|
1890
1891
|
bg: {
|
|
@@ -1906,10 +1907,10 @@ const $i = (t) => {
|
|
|
1906
1907
|
"div",
|
|
1907
1908
|
{
|
|
1908
1909
|
className: P("univer-h-4 univer-w-4 univer-rounded-lg univer-bg-gray-400", H),
|
|
1909
|
-
style: { background:
|
|
1910
|
+
style: { background: R }
|
|
1910
1911
|
}
|
|
1911
1912
|
),
|
|
1912
|
-
/* @__PURE__ */ o(
|
|
1913
|
+
/* @__PURE__ */ o(Ze, { className: "univer-h-2 univer-w-2" })
|
|
1913
1914
|
]
|
|
1914
1915
|
}
|
|
1915
1916
|
)
|
|
@@ -1934,7 +1935,7 @@ const $i = (t) => {
|
|
|
1934
1935
|
Ee,
|
|
1935
1936
|
{
|
|
1936
1937
|
overlay: /* @__PURE__ */ o("div", { className: "univer-p-2", children: /* @__PURE__ */ o(
|
|
1937
|
-
|
|
1938
|
+
ze,
|
|
1938
1939
|
{
|
|
1939
1940
|
value: m,
|
|
1940
1941
|
onChange: (p) => {
|
|
@@ -1962,7 +1963,7 @@ const $i = (t) => {
|
|
|
1962
1963
|
style: { background: m }
|
|
1963
1964
|
}
|
|
1964
1965
|
),
|
|
1965
|
-
/* @__PURE__ */ o(
|
|
1966
|
+
/* @__PURE__ */ o(Ze, { className: "univer-h-2 univer-w-2" })
|
|
1966
1967
|
]
|
|
1967
1968
|
}
|
|
1968
1969
|
)
|
|
@@ -1981,7 +1982,7 @@ function ki(t) {
|
|
|
1981
1982
|
icon: hn,
|
|
1982
1983
|
tooltip: "sheets-table.title",
|
|
1983
1984
|
title: "sheets-table.title",
|
|
1984
|
-
hidden$: vr(t,
|
|
1985
|
+
hidden$: vr(t, qe.UNIVER_SHEET),
|
|
1985
1986
|
disabled$: lr(t, {}, !0)
|
|
1986
1987
|
};
|
|
1987
1988
|
}
|
|
@@ -2035,7 +2036,7 @@ function Vi(t) {
|
|
|
2035
2036
|
}
|
|
2036
2037
|
function Rn(t) {
|
|
2037
2038
|
const e = t.get(ut);
|
|
2038
|
-
return t.get(pe).getCurrentTypeOfUnit$(
|
|
2039
|
+
return t.get(pe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
|
|
2039
2040
|
we((i) => i ? i.activeSheet$.pipe(
|
|
2040
2041
|
we((a) => a ? e.selectionMoveEnd$.pipe(
|
|
2041
2042
|
we((s) => {
|
|
@@ -2049,7 +2050,7 @@ function Rn(t) {
|
|
|
2049
2050
|
}
|
|
2050
2051
|
function Mn(t) {
|
|
2051
2052
|
const e = t.get(ut);
|
|
2052
|
-
return t.get(pe).getCurrentTypeOfUnit$(
|
|
2053
|
+
return t.get(pe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
|
|
2053
2054
|
we((i) => i ? i.activeSheet$.pipe(
|
|
2054
2055
|
we((a) => a ? e.selectionMoveEnd$.pipe(
|
|
2055
2056
|
we((s) => {
|
|
@@ -2123,8 +2124,8 @@ let at = class extends Oe {
|
|
|
2123
2124
|
}
|
|
2124
2125
|
};
|
|
2125
2126
|
at = Wi([
|
|
2126
|
-
Wt(0,
|
|
2127
|
-
Wt(1,
|
|
2127
|
+
Wt(0, x(tn)),
|
|
2128
|
+
Wt(1, x(pr))
|
|
2128
2129
|
], at);
|
|
2129
2130
|
var ji = Object.getOwnPropertyDescriptor, Zi = (t, e, n, r) => {
|
|
2130
2131
|
for (var i = r > 1 ? void 0 : r ? ji(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -2163,10 +2164,10 @@ let Tt = class extends Qt {
|
|
|
2163
2164
|
}
|
|
2164
2165
|
};
|
|
2165
2166
|
Tt = Zi([
|
|
2166
|
-
nt(1,
|
|
2167
|
-
nt(2,
|
|
2168
|
-
nt(3,
|
|
2169
|
-
nt(4,
|
|
2167
|
+
nt(1, x(ke)),
|
|
2168
|
+
nt(2, x(ot)),
|
|
2169
|
+
nt(3, x(re)),
|
|
2170
|
+
nt(4, x(Ie))
|
|
2170
2171
|
], Tt);
|
|
2171
2172
|
var qi = Object.getOwnPropertyDescriptor, Yi = (t, e, n, r) => {
|
|
2172
2173
|
for (var i = r > 1 ? void 0 : r ? qi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -2238,9 +2239,9 @@ let st = class extends Oe {
|
|
|
2238
2239
|
}
|
|
2239
2240
|
};
|
|
2240
2241
|
st = Yi([
|
|
2241
|
-
pt(0,
|
|
2242
|
-
pt(1,
|
|
2243
|
-
pt(2,
|
|
2242
|
+
pt(0, x(cn)),
|
|
2243
|
+
pt(1, x(pe)),
|
|
2244
|
+
pt(2, x(re))
|
|
2244
2245
|
], st);
|
|
2245
2246
|
var Qi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, Xi = (t, e, n) => e in t ? Qi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, zi = (t, e, n, r) => {
|
|
2246
2247
|
for (var i = r > 1 ? void 0 : r ? Gi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -2284,7 +2285,7 @@ let lt = class extends Bn {
|
|
|
2284
2285
|
[Tt]
|
|
2285
2286
|
];
|
|
2286
2287
|
this._config.hideAnchor !== !0 && t.push([it]), t.forEach((e) => {
|
|
2287
|
-
this.disposeWithMe(this._renderManagerService.registerRenderModule(
|
|
2288
|
+
this.disposeWithMe(this._renderManagerService.registerRenderModule(qe.UNIVER_SHEET, e));
|
|
2288
2289
|
});
|
|
2289
2290
|
}
|
|
2290
2291
|
_initRegisterCommand() {
|
|
@@ -2295,11 +2296,11 @@ let lt = class extends Bn {
|
|
|
2295
2296
|
}
|
|
2296
2297
|
};
|
|
2297
2298
|
xn(lt, "pluginName", Vr);
|
|
2298
|
-
xn(lt, "type",
|
|
2299
|
+
xn(lt, "type", qe.UNIVER_SHEET);
|
|
2299
2300
|
lt = zi([
|
|
2300
2301
|
Dn(er),
|
|
2301
|
-
rt(1,
|
|
2302
|
-
rt(2,
|
|
2302
|
+
rt(1, x(ke)),
|
|
2303
|
+
rt(2, x(oe)),
|
|
2303
2304
|
rt(3, Yt),
|
|
2304
2305
|
rt(4, Gt)
|
|
2305
2306
|
], lt);
|