@univerjs/sheets-table-ui 0.8.3-nightly.202507021607 → 0.8.3-nightly.202507031607
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 +86 -86
- package/lib/index.css +1 -1
- package/lib/index.js +86 -86
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
4
|
+
import { Inject as x, IUniverInstanceService as fe, ICommandService as le, Disposable as Pe, ObjectMatrix as kn, cellToRange as Zt, Rectangle as me, LocaleService as oe, Injector as Oe, dayjs as de, IPermissionService as qt, IContextService as It, CommandType as Yt, IConfigService as Qt, ThemeService as Pn, RxDisposable as Gt, InterceptorEffectEnum as On, ErrorService as Dn, ColorKit as he, UniverInstanceType as qe, DependentOn as Bn, Plugin as Fn, merge as Hn, registerDependencies as Vn, touchDependencies as An } from "@univerjs/core";
|
|
5
5
|
import { IRenderManagerService as Xt, SHEET_VIEWPORT_KEY as Un, convertTransformToOffsetX as Wn, convertTransformToOffsetY as jn, Rect as Lt, Shape as Zn } from "@univerjs/engine-render";
|
|
6
|
-
import { TableManager as ne, SheetTableService as qn, SetSheetTableFilterCommand as $t, isConditionFilter as Yn, isManualFilter as Qn, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as j, TableConditionTypeEnum as B, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Xe, TableColumnFilterTypeEnum as kt, AddSheetTableCommand as Gn, SHEET_TABLE_CUSTOM_THEME_PREFIX as Xn, DeleteSheetTableCommand as zn, SetSheetTableCommand as Ct, SheetsTableButtonStateEnum as
|
|
6
|
+
import { TableManager as ne, SheetTableService as qn, SetSheetTableFilterCommand as $t, isConditionFilter as Yn, isManualFilter as Qn, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as j, TableConditionTypeEnum as B, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Xe, TableColumnFilterTypeEnum as kt, AddSheetTableCommand as Gn, SHEET_TABLE_CUSTOM_THEME_PREFIX as Xn, DeleteSheetTableCommand as zn, SetSheetTableCommand as Ct, SheetsTableButtonStateEnum as xe, processStyleWithBorderStyle as Pt, customEmptyThemeWithBorderStyle as Kn, AddTableThemeCommand as Jn, RemoveTableThemeCommand as er, SheetTableRemoveColCommand as zt, SheetTableRemoveRowCommand as Kt, SheetTableInsertColCommand as Jt, SheetTableInsertRowCommand as en, SheetsTableController as tn, UniverSheetsTablePlugin as tr } from "@univerjs/sheets-table";
|
|
7
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
8
|
import { useDependency as M, ComponentManager as nn, IDialogService as rn, ISidebarService as ur, useObservable as we, IUIPartsService as dr, BuiltInUIPart as hr, connectInjector as vr, MenuItemType as Re, getMenuHiddenObservable as gr, ContextMenuPosition as br, ContextMenuGroup as mr, RibbonDataGroup as pr, IMenuManagerService as fr } from "@univerjs/ui";
|
|
9
9
|
import { startWith as an, distinctUntilChanged as Cr, Subject as Sr, BehaviorSubject as Ot, merge as yt, filter as _r, debounceTime as Tr, switchMap as Ie, of as J, map as wr, takeUntil as Ir } from "rxjs";
|
|
10
10
|
import { jsxs as I, jsx as o, Fragment as Rt } from "react/jsx-runtime";
|
|
11
|
-
import { Dropdown as Le, clsx as O, borderClassName as F, CascaderList as yr, Input as Mt, InputNumber as bt, DatePicker as Rr, DateRangePicker as Mr, Select as
|
|
11
|
+
import { Dropdown as Le, clsx as O, borderClassName as F, CascaderList as yr, Input as Mt, InputNumber as bt, DatePicker as Rr, DateRangePicker as Mr, Select as xr, Checkbox as Dt, scrollbarClassName as Nr, ButtonGroup as Er, Button as Te, Segmented as Lr, ColorPicker as ze } from "@univerjs/design";
|
|
12
12
|
import { SetRangeValuesMutation as $r, WorkbookEditablePermission as sn, getSheetCommandTarget as ut, SheetsSelectionsService as dt, isSingleCellSelection as kr, expandToContinuousRange as Pr, SetRangeThemeMutation as ln, WorkbookPermissionService as on, SheetRangeThemeModel as cn, SheetInterceptorService as un, INTERCEPTOR_POINT as Or, RangeThemeStyle as Dr, getPrimaryForRange as Bt, SetSelectionsOperation as Ft } from "@univerjs/sheets";
|
|
13
13
|
import { SortRangeCommand as Br, SortType as Ht } from "@univerjs/sheets-sort";
|
|
14
14
|
import { forwardRef as re, useRef as Fr, createElement as ie, useState as q, useMemo as dn, useCallback as Vt, useEffect as hn } from "react";
|
|
@@ -101,14 +101,14 @@ var Jr = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none
|
|
|
101
101
|
}));
|
|
102
102
|
});
|
|
103
103
|
Cn.displayName = "GridOutlineIcon";
|
|
104
|
-
var ei = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
104
|
+
var ei = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, xt = re(function(t, e) {
|
|
105
105
|
return ie(ae, Object.assign({}, t, {
|
|
106
106
|
id: "more-down-icon",
|
|
107
107
|
ref: e,
|
|
108
108
|
icon: ei
|
|
109
109
|
}));
|
|
110
110
|
});
|
|
111
|
-
|
|
111
|
+
xt.displayName = "MoreDownIcon";
|
|
112
112
|
var ti = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Sn = re(function(t, e) {
|
|
113
113
|
return ie(ae, Object.assign({}, t, {
|
|
114
114
|
id: "paint-bucket-double-icon",
|
|
@@ -229,9 +229,9 @@ let $e = class extends Pe {
|
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
$e = ai([
|
|
232
|
-
Je(0,
|
|
233
|
-
Je(1,
|
|
234
|
-
Je(2,
|
|
232
|
+
Je(0, x(ne)),
|
|
233
|
+
Je(1, x(qn)),
|
|
234
|
+
Je(2, x(fe)),
|
|
235
235
|
Je(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 || {});
|
|
@@ -493,7 +493,7 @@ function li(t, e) {
|
|
|
493
493
|
return [];
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
const
|
|
496
|
+
const Nt = /* @__PURE__ */ new Set([
|
|
497
497
|
l.Equal,
|
|
498
498
|
l.NotEqual,
|
|
499
499
|
l.After,
|
|
@@ -502,7 +502,7 @@ const xt = /* @__PURE__ */ new Set([
|
|
|
502
502
|
l.BeforeOrEqual
|
|
503
503
|
]);
|
|
504
504
|
function oi(t, e) {
|
|
505
|
-
return e ? t === B.String ? Z.Input : t === B.Number ? e === $.Between || e === $.NotBetween ? Z.Inputs : Z.Input : t === B.Date ? e === l.Between || e === l.NotBetween ? Z.DateRange : e === l.Quarter || e === l.Month ? Z.Select :
|
|
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 ci(t) {
|
|
508
508
|
if (!t || t.filterType !== "condition")
|
|
@@ -522,7 +522,7 @@ function ci(t) {
|
|
|
522
522
|
type: n,
|
|
523
523
|
compare: r,
|
|
524
524
|
info: {}
|
|
525
|
-
} :
|
|
525
|
+
} : Nt.has(r) ? {
|
|
526
526
|
type: n,
|
|
527
527
|
compare: r,
|
|
528
528
|
info: {
|
|
@@ -565,7 +565,7 @@ function ci(t) {
|
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
567
|
const ui = (t) => {
|
|
568
|
-
var S, T, k, f,
|
|
568
|
+
var S, T, k, f, N, y, D;
|
|
569
569
|
const { conditionInfo: e, onChange: n } = t, r = M(oe), [i, a] = q(!1), s = M(Oe), c = si(s), d = (v, p, L) => {
|
|
570
570
|
n({
|
|
571
571
|
type: p != null ? p : e.type,
|
|
@@ -577,7 +577,7 @@ const ui = (t) => {
|
|
|
577
577
|
const p = v[0], L = v[1];
|
|
578
578
|
L && a(!1);
|
|
579
579
|
const R = {};
|
|
580
|
-
p === B.Date ? L === l.Quarter ? R.dateSelect = l.Q1 : L === l.Month ? R.dateSelect = l.M1 :
|
|
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 = oi(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,7 +605,7 @@ const ui = (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 hover:univer-border-primary-600 focus:univer-border-primary-600 focus:univer-outline-none focus:univer-ring-2 dark:!univer-bg-gray-700 dark:!univer-text-white", F),
|
|
606
606
|
children: [
|
|
607
607
|
/* @__PURE__ */ o("span", { children: g }),
|
|
608
|
-
/* @__PURE__ */ o(
|
|
608
|
+
/* @__PURE__ */ o(xt, {})
|
|
609
609
|
]
|
|
610
610
|
}
|
|
611
611
|
)
|
|
@@ -660,7 +660,7 @@ const ui = (t) => {
|
|
|
660
660
|
bt,
|
|
661
661
|
{
|
|
662
662
|
className: "univer-w-full",
|
|
663
|
-
value: (
|
|
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,7 +683,7 @@ const ui = (t) => {
|
|
|
683
683
|
)
|
|
684
684
|
] }),
|
|
685
685
|
u === Z.Select && /* @__PURE__ */ o(
|
|
686
|
-
|
|
686
|
+
xr,
|
|
687
687
|
{
|
|
688
688
|
className: "univer-w-full",
|
|
689
689
|
value: (D = e.info.dateSelect) != null ? D : _[0].value,
|
|
@@ -700,7 +700,7 @@ const ui = (t) => {
|
|
|
700
700
|
}), e;
|
|
701
701
|
};
|
|
702
702
|
function hi(t) {
|
|
703
|
-
const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = M(oe), h = M($e), { data: u, itemsCountMap: g, allItemsCount: _ } = h.getTableFilterItems(e, r, n, i), [S, T] = q(c === void 0 ? !0 : a.size === g.size), [k, f] = q(S ? _ : di(g)),
|
|
703
|
+
const { unitId: e, tableId: n, subUnitId: r, columnIndex: i, checkedItemSet: a, setCheckedItemSet: s, tableFilter: c } = t, d = M(oe), h = M($e), { data: u, itemsCountMap: g, allItemsCount: _ } = h.getTableFilterItems(e, r, n, i), [S, T] = q(c === void 0 ? !0 : a.size === g.size), [k, f] = q(S ? _ : di(g)), N = !S && a.size > 0, [y, D] = q(""), v = dn(() => y ? u.filter((C) => String(C.title).toLowerCase().includes(y.toLowerCase())) : u, [y, u]), p = Vt(() => {
|
|
704
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));
|
|
@@ -727,12 +727,12 @@ function hi(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",
|
|
730
|
+
className: O("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", Nr),
|
|
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
733
|
Dt,
|
|
734
734
|
{
|
|
735
|
-
indeterminate:
|
|
735
|
+
indeterminate: N,
|
|
736
736
|
disabled: u.length === 0,
|
|
737
737
|
checked: S,
|
|
738
738
|
onChange: p,
|
|
@@ -771,7 +771,7 @@ function hi(t) {
|
|
|
771
771
|
}
|
|
772
772
|
function vi() {
|
|
773
773
|
var ue;
|
|
774
|
-
const t = M(oe), e = gi(t), n = M($e), r = M(ne), i = M(le), a = M(qt), s = M(ke), c = s.getCurrentTableFilterInfo(), d = n.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: g, tableFilter: _, currentFilterBy: S, columnIndex: T } = d, { data: k } = n.getTableFilterItems(h, u, g, T), f = n.getTableFilterCheckedItems(h, g, T), [
|
|
774
|
+
const t = M(oe), e = gi(t), n = M($e), r = M(ne), i = M(le), a = M(qt), s = M(ke), c = s.getCurrentTableFilterInfo(), d = n.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: h, subUnitId: u, tableId: g, tableFilter: _, currentFilterBy: S, columnIndex: T } = d, { data: k } = n.getTableFilterItems(h, u, g, T), f = n.getTableFilterCheckedItems(h, g, T), [N, y] = q(new Set(f)), [D, v] = q(S || pe.Items), [p, L] = q(() => {
|
|
775
775
|
const b = d.tableFilter;
|
|
776
776
|
return ci(b);
|
|
777
777
|
}), R = r.getTable(h, g);
|
|
@@ -795,7 +795,7 @@ function vi() {
|
|
|
795
795
|
if (D === pe.Items) {
|
|
796
796
|
const b = [];
|
|
797
797
|
for (const Y of k)
|
|
798
|
-
|
|
798
|
+
N.has(Y.title) && b.push(Y.title);
|
|
799
799
|
const P = R.getTableFilterColumn(T);
|
|
800
800
|
if (P) {
|
|
801
801
|
if (P.values.join(",") === b.join(",")) {
|
|
@@ -837,7 +837,7 @@ function vi() {
|
|
|
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(Er, { className: "univer-mb-3 univer-w-full", children: [
|
|
840
|
+
Ce && /* @__PURE__ */ o("div", { className: "univer-mb-3 univer-flex", children: /* @__PURE__ */ I(Er, { className: "univer-mb-3 !univer-flex univer-w-full", children: [
|
|
841
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")
|
|
@@ -863,7 +863,7 @@ function vi() {
|
|
|
863
863
|
subUnitId: u,
|
|
864
864
|
tableId: g,
|
|
865
865
|
columnIndex: T,
|
|
866
|
-
checkedItemSet:
|
|
866
|
+
checkedItemSet: N,
|
|
867
867
|
setCheckedItemSet: y
|
|
868
868
|
}
|
|
869
869
|
) : /* @__PURE__ */ o(
|
|
@@ -966,10 +966,10 @@ let ke = class extends Pe {
|
|
|
966
966
|
}
|
|
967
967
|
};
|
|
968
968
|
ke = mi([
|
|
969
|
-
et(0,
|
|
969
|
+
et(0, x(nn)),
|
|
970
970
|
et(1, It),
|
|
971
|
-
et(2,
|
|
972
|
-
et(3,
|
|
971
|
+
et(2, x(nr)),
|
|
972
|
+
et(3, x(rn))
|
|
973
973
|
], ke);
|
|
974
974
|
const St = {
|
|
975
975
|
type: Yt.OPERATION,
|
|
@@ -1055,11 +1055,11 @@ let ye = class extends Pe {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
1057
|
ye = fi([
|
|
1058
|
-
Ci(0,
|
|
1058
|
+
Ci(0, x(le))
|
|
1059
1059
|
], ye);
|
|
1060
1060
|
const Si = () => {
|
|
1061
1061
|
var Ce, ue;
|
|
1062
|
-
const [t, e] = q(""), [n, r] = q(""), i = M(ur), [a, s] = q({}), c = M(Oe), d = M(at), h = we(d.anchorPosition$), u = M(le), g = M(fe), _ = M(on), S = we(_.unitPermissionInitStateChange$, !1), T = M(ne), k = M(cn), f = M(ye),
|
|
1062
|
+
const [t, e] = q(""), [n, r] = q(""), i = M(ur), [a, s] = q({}), c = M(Oe), d = M(at), h = we(d.anchorPosition$), u = M(le), g = M(fe), _ = M(on), S = we(_.unitPermissionInitStateChange$, !1), T = M(ne), k = M(cn), f = M(ye), N = we(f.refreshTable$), y = M(oe), D = M(dt), v = we(D.selectionChanged$, [{ range: Zt(0, 0), primary: null }]), [, p] = q(Math.random()), R = M(Qt).getConfig(In), C = (Ce = R == null ? void 0 : R.anchorHeight) != null ? Ce : 24, H = (ue = R == null ? void 0 : R.anchorBackgroundColor) != null ? ue : "rgb(53,91,183)", E = (b, P) => {
|
|
1063
1063
|
s((V) => ({
|
|
1064
1064
|
...V,
|
|
1065
1065
|
[b]: P
|
|
@@ -1067,7 +1067,7 @@ const Si = () => {
|
|
|
1067
1067
|
};
|
|
1068
1068
|
if (hn(() => {
|
|
1069
1069
|
p(Math.random());
|
|
1070
|
-
}, [
|
|
1070
|
+
}, [N]), !(h != null && h.length))
|
|
1071
1071
|
return null;
|
|
1072
1072
|
const Q = ut(g);
|
|
1073
1073
|
if (!Q) return null;
|
|
@@ -1228,7 +1228,7 @@ const Si = () => {
|
|
|
1228
1228
|
onOpenChange: (W) => {
|
|
1229
1229
|
E(b.tableId, W);
|
|
1230
1230
|
},
|
|
1231
|
-
children: /* @__PURE__ */ o(
|
|
1231
|
+
children: /* @__PURE__ */ o(xt, {})
|
|
1232
1232
|
},
|
|
1233
1233
|
b.tableId
|
|
1234
1234
|
)
|
|
@@ -1298,9 +1298,9 @@ let at = class extends Pe {
|
|
|
1298
1298
|
const d = a.reduce((u, g) => {
|
|
1299
1299
|
const { startRow: _, startColumn: S } = g.range, T = s.with(ct), k = sr(this._univerInstanceService, this._renderManagerService);
|
|
1300
1300
|
if (!k) return u;
|
|
1301
|
-
const { scene: f } = k,
|
|
1302
|
-
if (!
|
|
1303
|
-
const y = f == null ? void 0 : f.scaleX, D = f == null ? void 0 : f.scaleY, v = f == null ? void 0 : f.getViewportScrollXY(
|
|
1301
|
+
const { scene: f } = k, N = f.getViewport(Un.VIEW_MAIN);
|
|
1302
|
+
if (!N) return u;
|
|
1303
|
+
const y = f == null ? void 0 : f.scaleX, D = f == null ? void 0 : f.scaleY, v = f == null ? void 0 : f.getViewportScrollXY(N);
|
|
1304
1304
|
if (!y || !f || !D || !v) return u;
|
|
1305
1305
|
const p = T.getCurrentSkeleton();
|
|
1306
1306
|
if (!p) return u;
|
|
@@ -1318,33 +1318,33 @@ let at = class extends Pe {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
};
|
|
1320
1320
|
at = Ti([
|
|
1321
|
-
te(1,
|
|
1322
|
-
te(2,
|
|
1321
|
+
te(1, x(Oe)),
|
|
1322
|
+
te(2, x(ct)),
|
|
1323
1323
|
te(3, Xt),
|
|
1324
1324
|
te(4, le),
|
|
1325
1325
|
te(5, fe),
|
|
1326
1326
|
te(6, dr),
|
|
1327
|
-
te(7,
|
|
1328
|
-
te(8,
|
|
1329
|
-
te(9,
|
|
1330
|
-
te(10,
|
|
1327
|
+
te(7, x(ne)),
|
|
1328
|
+
te(8, x(rr)),
|
|
1329
|
+
te(9, x(on)),
|
|
1330
|
+
te(10, x(qt))
|
|
1331
1331
|
], at);
|
|
1332
|
-
const
|
|
1332
|
+
const Ne = 16;
|
|
1333
1333
|
new Path2D("M3.30363 3C2.79117 3 2.51457 3.60097 2.84788 3.99024L6.8 8.60593V12.5662C6.8 12.7184 6.8864 12.8575 7.02289 12.9249L8.76717 13.7863C8.96655 13.8847 9.2 13.7396 9.2 13.5173V8.60593L13.1521 3.99024C13.4854 3.60097 13.2088 3 12.6964 3H3.30363Z");
|
|
1334
1334
|
class Wt {
|
|
1335
1335
|
static drawNoSetting(e, n, r, i) {
|
|
1336
1336
|
e.save(), Lt.drawWith(e, {
|
|
1337
1337
|
radius: 2,
|
|
1338
|
-
width:
|
|
1339
|
-
height:
|
|
1338
|
+
width: Ne,
|
|
1339
|
+
height: Ne,
|
|
1340
1340
|
fill: i
|
|
1341
|
-
}), e.lineCap = "square", e.strokeStyle = r, e.scale(n /
|
|
1341
|
+
}), e.lineCap = "square", e.strokeStyle = r, e.scale(n / Ne, n / Ne), e.beginPath(), e.lineWidth = 1, e.lineCap = "round", e.moveTo(3, 4), e.lineTo(13, 4), e.moveTo(4.5, 8), e.lineTo(11.5, 8), e.moveTo(6, 12), e.lineTo(10, 12), e.stroke(), e.restore();
|
|
1342
1342
|
}
|
|
1343
1343
|
static drawIconByPath(e, n, r, i) {
|
|
1344
1344
|
e.save(), e.strokeStyle = r, e.fillStyle = i, Lt.drawWith(e, {
|
|
1345
1345
|
radius: 2,
|
|
1346
|
-
width:
|
|
1347
|
-
height:
|
|
1346
|
+
width: Ne,
|
|
1347
|
+
height: Ne,
|
|
1348
1348
|
fill: i
|
|
1349
1349
|
}), n.forEach((a) => {
|
|
1350
1350
|
const s = new Path2D(a);
|
|
@@ -1369,8 +1369,8 @@ const wi = [
|
|
|
1369
1369
|
"M2.69792 10.0113C2.40558 10.0113 2.16859 9.77429 2.16859 9.48196C2.16859 9.18962 2.40558 8.95264 2.69792 8.95264H6.67816C6.89225 8.95264 7.08526 9.0816 7.16719 9.2794C7.24912 9.47719 7.20384 9.70486 7.05245 9.85624L3.97581 12.9329H6.67816C6.9705 12.9329 7.20749 13.1699 7.20749 13.4622C7.20749 13.7545 6.9705 13.9915 6.67816 13.9915H2.69792C2.48383 13.9915 2.29082 13.8626 2.20889 13.6648C2.12696 13.467 2.17224 13.2393 2.32363 13.0879L5.40027 10.0113H2.69792Z",
|
|
1370
1370
|
"M5.5165 2.58693C5.23375 1.81542 4.1426 1.81543 3.85985 2.58693L2.13257 7.29995C2.03197 7.57443 2.17294 7.8785 2.44742 7.97909C2.7219 8.07969 3.02596 7.93872 3.12656 7.66424L3.64358 6.25351L3.64516 6.25351H5.73278L6.2498 7.66424C6.35039 7.93872 6.65446 8.07969 6.92894 7.97909C7.20342 7.8785 7.34438 7.57443 7.24379 7.29995L5.5165 2.58693ZM5.34479 5.19487L4.68818 3.40325L4.03156 5.19487H5.34479Z"
|
|
1371
1371
|
];
|
|
1372
|
-
var
|
|
1373
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1372
|
+
var xi = Object.getOwnPropertyDescriptor, Ni = (t, e, n, r) => {
|
|
1373
|
+
for (var i = r > 1 ? void 0 : r ? xi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
1374
1374
|
(s = t[a]) && (i = s(i) || i);
|
|
1375
1375
|
return i;
|
|
1376
1376
|
}, pt = (t, e) => (n, r) => e(n, r, t);
|
|
@@ -1398,21 +1398,21 @@ let _t = class extends Zn {
|
|
|
1398
1398
|
const { buttonState: c } = this._filterParams, d = this._themeService.getColorFromTheme("primary.600"), h = this._hovered ? this._themeService.getColorFromTheme("gray.50") : "rgba(255, 255, 255, 1.0)";
|
|
1399
1399
|
let u;
|
|
1400
1400
|
switch (c) {
|
|
1401
|
-
case
|
|
1401
|
+
case xe.FilteredSortNone:
|
|
1402
1402
|
u = wi;
|
|
1403
1403
|
break;
|
|
1404
|
-
case
|
|
1404
|
+
case xe.FilteredSortAsc:
|
|
1405
1405
|
u = Ii;
|
|
1406
1406
|
break;
|
|
1407
|
-
case
|
|
1407
|
+
case xe.FilteredSortDesc:
|
|
1408
1408
|
u = yi;
|
|
1409
1409
|
break;
|
|
1410
|
-
case
|
|
1410
|
+
case xe.FilterNoneSortNone:
|
|
1411
1411
|
break;
|
|
1412
|
-
case
|
|
1412
|
+
case xe.FilterNoneSortAsc:
|
|
1413
1413
|
u = Ri;
|
|
1414
1414
|
break;
|
|
1415
|
-
case
|
|
1415
|
+
case xe.FilterNoneSortDesc:
|
|
1416
1416
|
u = Mi;
|
|
1417
1417
|
break;
|
|
1418
1418
|
}
|
|
@@ -1440,10 +1440,10 @@ let _t = class extends Zn {
|
|
|
1440
1440
|
this._hovered = !1, this.makeDirty(!0);
|
|
1441
1441
|
}
|
|
1442
1442
|
};
|
|
1443
|
-
_t =
|
|
1443
|
+
_t = Ni([
|
|
1444
1444
|
pt(2, It),
|
|
1445
1445
|
pt(3, le),
|
|
1446
|
-
pt(4,
|
|
1446
|
+
pt(4, x(Pn))
|
|
1447
1447
|
], _t);
|
|
1448
1448
|
var Ei = Object.getOwnPropertyDescriptor, Li = (t, e, n, r) => {
|
|
1449
1449
|
for (var i = r > 1 ? void 0 : r ? Ei(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -1496,7 +1496,7 @@ let Tt = class extends Gt {
|
|
|
1496
1496
|
const { startRow: u, startColumn: g, endColumn: _ } = c;
|
|
1497
1497
|
this._interceptCellContent(r, a, c);
|
|
1498
1498
|
for (let S = g; S <= _; S++) {
|
|
1499
|
-
const T = `sheets-table-filter-button-${u}-${S}`, k = lr(u, S, s, i), { startX: f, startY:
|
|
1499
|
+
const T = `sheets-table-filter-button-${u}-${S}`, k = lr(u, S, s, i), { startX: f, startY: N, endX: y, endY: D } = k, v = y - f, p = D - N;
|
|
1500
1500
|
if (p <= tt || v <= tt)
|
|
1501
1501
|
continue;
|
|
1502
1502
|
const L = d[S - g], R = y - be - tt, C = D - be - tt, H = {
|
|
@@ -1534,10 +1534,10 @@ let Tt = class extends Gt {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
};
|
|
1536
1536
|
Tt = Li([
|
|
1537
|
-
nt(1,
|
|
1538
|
-
nt(2,
|
|
1539
|
-
nt(3,
|
|
1540
|
-
nt(4,
|
|
1537
|
+
nt(1, x(Oe)),
|
|
1538
|
+
nt(2, x(ct)),
|
|
1539
|
+
nt(3, x(un)),
|
|
1540
|
+
nt(4, x(ne))
|
|
1541
1541
|
], Tt);
|
|
1542
1542
|
const ki = (t) => {
|
|
1543
1543
|
const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = M(ne), [d, h] = q(r), [u, g] = q(""), _ = M(oe), S = M(fe);
|
|
@@ -1550,10 +1550,10 @@ const ki = (t) => {
|
|
|
1550
1550
|
subUnitId: n,
|
|
1551
1551
|
initialValue: At(r),
|
|
1552
1552
|
onChange: (T, k) => {
|
|
1553
|
-
const f = At(r),
|
|
1553
|
+
const f = At(r), N = Hr(k).range, y = ut(S, { unitId: e, subUnitId: n });
|
|
1554
1554
|
if (!y)
|
|
1555
1555
|
return;
|
|
1556
|
-
if (y.worksheet.getMergeData().some((E) => me.intersects(
|
|
1556
|
+
if (y.worksheet.getMergeData().some((E) => me.intersects(N, E))) {
|
|
1557
1557
|
g(_.t("sheets-table.tableRangeWithMergeError"));
|
|
1558
1558
|
return;
|
|
1559
1559
|
}
|
|
@@ -1561,12 +1561,12 @@ const ki = (t) => {
|
|
|
1561
1561
|
if (E.getId() === s)
|
|
1562
1562
|
return !1;
|
|
1563
1563
|
const Q = E.getRange();
|
|
1564
|
-
return me.intersects(
|
|
1564
|
+
return me.intersects(N, Q);
|
|
1565
1565
|
})) {
|
|
1566
1566
|
g(_.t("sheets-table.tableRangeWithOtherTableError"));
|
|
1567
1567
|
return;
|
|
1568
1568
|
}
|
|
1569
|
-
const { startRow: R, endRow: C } =
|
|
1569
|
+
const { startRow: R, endRow: C } = N;
|
|
1570
1570
|
if (R === C) {
|
|
1571
1571
|
g(_.t("sheets-table.tableRangeSingleRowError"));
|
|
1572
1572
|
return;
|
|
@@ -1576,11 +1576,11 @@ const ki = (t) => {
|
|
|
1576
1576
|
const E = c.getTableById(e, s);
|
|
1577
1577
|
if (E) {
|
|
1578
1578
|
const Q = E.getRange();
|
|
1579
|
-
if (me.intersects(
|
|
1580
|
-
h(
|
|
1579
|
+
if (me.intersects(N, Q) && Q.startRow === N.startRow) {
|
|
1580
|
+
h(N), g(""), a({
|
|
1581
1581
|
unitId: e,
|
|
1582
1582
|
subUnitId: n,
|
|
1583
|
-
range:
|
|
1583
|
+
range: N
|
|
1584
1584
|
});
|
|
1585
1585
|
return;
|
|
1586
1586
|
} else {
|
|
@@ -1589,7 +1589,7 @@ const ki = (t) => {
|
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
h(
|
|
1592
|
+
h(N), g("");
|
|
1593
1593
|
}
|
|
1594
1594
|
},
|
|
1595
1595
|
supportAcrossSheet: !1
|
|
@@ -1623,7 +1623,7 @@ const ki = (t) => {
|
|
|
1623
1623
|
unitId: e,
|
|
1624
1624
|
subUnitId: n,
|
|
1625
1625
|
tableId: r
|
|
1626
|
-
}), k = d.getRegisteredRangeThemes().filter((m) => m == null ? void 0 : m.startsWith(jr)), f = d.getALLRegisteredTheme(e).filter((m) => m == null ? void 0 : m.startsWith(mt)),
|
|
1626
|
+
}), k = d.getRegisteredRangeThemes().filter((m) => m == null ? void 0 : m.startsWith(jr)), f = d.getALLRegisteredTheme(e).filter((m) => m == null ? void 0 : m.startsWith(mt)), N = c == null ? void 0 : c.getTableStyleId(), y = f.find((m) => m === N), D = y || f[0], v = d.getCustomRangeThemeStyle(e, D), p = (Y = (V = (P = v == null ? void 0 : v.getHeaderRowStyle()) == null ? void 0 : P.bg) == null ? void 0 : V.rgb) != null ? Y : ve, L = (Qe = (Ye = (ht = v == null ? void 0 : v.getFirstRowStyle()) == null ? void 0 : ht.bg) == null ? void 0 : Ye.rgb) != null ? Qe : ve, R = (gt = (Ge = (vt = v == null ? void 0 : v.getSecondRowStyle()) == null ? void 0 : vt.bg) == null ? void 0 : Ge.rgb) != null ? gt : ve, C = (Fe = (Be = (De = v == null ? void 0 : v.getLastRowStyle()) == null ? void 0 : De.bg) == null ? void 0 : Be.rgb) != null ? Fe : ve, [H, E] = q(null), Q = (m) => {
|
|
1627
1627
|
i.executeCommand(Ct.id, {
|
|
1628
1628
|
unitId: e,
|
|
1629
1629
|
tableId: r,
|
|
@@ -1990,7 +1990,7 @@ function Fi(t) {
|
|
|
1990
1990
|
id: en.id,
|
|
1991
1991
|
type: Re.BUTTON,
|
|
1992
1992
|
title: "sheets-table.insert.row",
|
|
1993
|
-
hidden$:
|
|
1993
|
+
hidden$: xn(t)
|
|
1994
1994
|
};
|
|
1995
1995
|
}
|
|
1996
1996
|
function Hi(t) {
|
|
@@ -2005,7 +2005,7 @@ function Vi(t) {
|
|
|
2005
2005
|
id: Kt.id,
|
|
2006
2006
|
type: Re.BUTTON,
|
|
2007
2007
|
title: "sheets-table.remove.row",
|
|
2008
|
-
hidden$:
|
|
2008
|
+
hidden$: xn(t)
|
|
2009
2009
|
};
|
|
2010
2010
|
}
|
|
2011
2011
|
function Ai(t) {
|
|
@@ -2029,7 +2029,7 @@ function Mn(t) {
|
|
|
2029
2029
|
) : J(!0))
|
|
2030
2030
|
);
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function xn(t) {
|
|
2033
2033
|
const e = t.get(dt);
|
|
2034
2034
|
return t.get(fe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
|
|
2035
2035
|
Ie((i) => i ? i.activeSheet$.pipe(
|
|
@@ -2105,8 +2105,8 @@ let st = class extends Pe {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
};
|
|
2107
2107
|
st = ji([
|
|
2108
|
-
jt(0,
|
|
2109
|
-
jt(1,
|
|
2108
|
+
jt(0, x(nn)),
|
|
2109
|
+
jt(1, x(fr))
|
|
2110
2110
|
], st);
|
|
2111
2111
|
var Zi = Object.getOwnPropertyDescriptor, qi = (t, e, n, r) => {
|
|
2112
2112
|
for (var i = r > 1 ? void 0 : r ? Zi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -2145,10 +2145,10 @@ let wt = class extends Gt {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
};
|
|
2147
2147
|
wt = qi([
|
|
2148
|
-
rt(1,
|
|
2149
|
-
rt(2,
|
|
2150
|
-
rt(3,
|
|
2151
|
-
rt(4,
|
|
2148
|
+
rt(1, x(Oe)),
|
|
2149
|
+
rt(2, x(ct)),
|
|
2150
|
+
rt(3, x(ne)),
|
|
2151
|
+
rt(4, x(ye))
|
|
2152
2152
|
], wt);
|
|
2153
2153
|
var Yi = Object.getOwnPropertyDescriptor, Qi = (t, e, n, r) => {
|
|
2154
2154
|
for (var i = r > 1 ? void 0 : r ? Yi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -2220,15 +2220,15 @@ let lt = class extends Pe {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
};
|
|
2222
2222
|
lt = Qi([
|
|
2223
|
-
ft(0,
|
|
2224
|
-
ft(1,
|
|
2225
|
-
ft(2,
|
|
2223
|
+
ft(0, x(un)),
|
|
2224
|
+
ft(1, x(fe)),
|
|
2225
|
+
ft(2, x(ne))
|
|
2226
2226
|
], lt);
|
|
2227
2227
|
var Gi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, zi = (t, e, n) => e in t ? Gi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ki = (t, e, n, r) => {
|
|
2228
2228
|
for (var i = r > 1 ? void 0 : r ? Xi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
2229
2229
|
(s = t[a]) && (i = s(i) || i);
|
|
2230
2230
|
return i;
|
|
2231
|
-
}, it = (t, e) => (n, r) => e(n, r, t),
|
|
2231
|
+
}, it = (t, e) => (n, r) => e(n, r, t), Nn = (t, e, n) => zi(t, typeof e != "symbol" ? e + "" : e, n);
|
|
2232
2232
|
let ot = class extends Fn {
|
|
2233
2233
|
constructor(t = Ut, e, n, r, i) {
|
|
2234
2234
|
super(), this._config = t, this._injector = e, this._commandService = n, this._configService = r, this._renderManagerService = i;
|
|
@@ -2276,12 +2276,12 @@ let ot = class extends Fn {
|
|
|
2276
2276
|
].forEach((t) => this._commandService.registerCommand(t));
|
|
2277
2277
|
}
|
|
2278
2278
|
};
|
|
2279
|
-
|
|
2280
|
-
|
|
2279
|
+
Nn(ot, "pluginName", Ar);
|
|
2280
|
+
Nn(ot, "type", qe.UNIVER_SHEET);
|
|
2281
2281
|
ot = Ki([
|
|
2282
2282
|
Bn(tr),
|
|
2283
|
-
it(1,
|
|
2284
|
-
it(2,
|
|
2283
|
+
it(1, x(Oe)),
|
|
2284
|
+
it(2, x(le)),
|
|
2285
2285
|
it(3, Qt),
|
|
2286
2286
|
it(4, Xt)
|
|
2287
2287
|
], ot);
|
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-right-\[-3px\]{right:-3px}.univer-top-\[-3px\]{top:-3px}.univer-z-10{z-index:10}.univer-z-50{z-index:50}.univer-mb-1{margin-bottom:.25rem}.univer-mb-3{margin-bottom:.75rem}.univer-ml-1{margin-left:.25rem}.univer-ml-2{margin-left:.5rem}.univer-mr-1{margin-right:.25rem}.univer-mr-2{margin-right:.5rem}.univer-mt-1{margin-top:.25rem}.univer-mt-2{margin-top:.5rem}.univer-mt-3{margin-top:.75rem}.univer-mt-4{margin-top:1rem}.univer-box-border{box-sizing:border-box}.univer-inline-block{display:inline-block}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.univer-hidden{display:none}.\!univer-h-\[150px\]{height:150px!important}.univer-h-0{height:0px}.univer-h-10{height:2.5rem}.univer-h-2{height:.5rem}.univer-h-2\.5{height:.625rem}.univer-h-3{height:.75rem}.univer-h-4{height:1rem}.univer-h-40{height:10rem}.univer-h-5{height:1.25rem}.univer-h-60{height:15rem}.univer-h-7{height:1.75rem}.univer-h-8{height:2rem}.univer-h-9{height:2.25rem}.univer-h-\[180px\]{height:180px}.univer-h-\[18px\]{height:18px}.univer-h-full{height:100%}.univer-h-px{height:1px}.univer-max-h-\[180px\]{max-height:180px}.univer-w-0{width:0px}.univer-w-1\/2{width:50%}.univer-w-2{width:.5rem}.univer-w-3{width:.75rem}.univer-w-4{width:1rem}.univer-w-52{width:13rem}.univer-w-8{width:2rem}.univer-w-\[280px\]{width:280px}.univer-w-\[312px\]{width:312px}.univer-w-\[400px\]{width:400px}.univer-w-\[80px\]{width:80px}.univer-w-full{width:100%}.univer-min-w-16{min-width:4rem}.univer-min-w-32{min-width:8rem}.univer-max-w-24{max-width:6rem}.univer-flex-1{flex:1 1 0%}.univer-flex-shrink-0{flex-shrink:0}.univer-flex-grow{flex-grow:1}.univer-flex-grow-0{flex-grow:0}.univer-cursor-pointer{cursor:pointer}.univer-flex-col{flex-direction:column}.univer-flex-wrap{flex-wrap:wrap}.univer-items-center{align-items:center}.univer-justify-end{justify-content:flex-end}.univer-justify-between{justify-content:space-between}.univer-gap-2{gap:.5rem}.univer-overflow-hidden{overflow:hidden}.univer-overflow-y-auto{overflow-y:auto}.univer-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-text-nowrap{text-wrap:nowrap}.univer-rounded-\[10px\]{border-radius:10px}.univer-rounded-lg{border-radius:.5rem}.univer-rounded-md{border-radius:.375rem}.univer-rounded-none{border-radius:0}.univer-rounded-sm{border-radius:.125rem}.univer-rounded-xl{border-radius:.75rem}.univer-border{border-width:1px}.univer-border-solid{border-style:solid}.univer-border-blue-500{border-color:var(--univer-blue-500)}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-bg-gray-200{background-color:var(--univer-gray-200)}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-white{background-color:var(--univer-white)}.univer-p-1{padding:.25rem}.univer-p-2{padding:.5rem}.univer-p-4{padding:1rem}.univer-p-px{padding:1px}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.univer-pb-1{padding-bottom:.25rem}.univer-pb-2{padding-bottom:.5rem}.univer-pl-2{padding-left:.5rem}.univer-pr-2{padding-right:.5rem}.univer-pt-1{padding-top:.25rem}.univer-pt-2{padding-top:.5rem}.univer-text-center{text-align:center}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-leading-10{line-height:2.5rem}.univer-leading-9{line-height:2.25rem}.univer-leading-\[10px\]{line-height:10px}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-text-red-500{color:var(--univer-red-500)}.univer-text-white{color:var(--univer-white)}.univer-shadow-lg{--tw-shadow: 0px 4px 6px 0px rgba(30, 40, 77, .05), 0px 10px 15px -3px rgba(30, 40, 77, .1);--tw-shadow-colored: 0px 4px 6px 0px var(--tw-shadow-color), 0px 10px 15px -3px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 4px 6px #1e284d0d,0 10px 15px -3px #1e284d1a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-duration-200{transition-duration:.2s}.hover\:univer-border-primary-600:hover{border-color:var(--univer-primary-600)}.hover\:univer-bg-gray-200:hover{background-color:var(--univer-gray-200)}.focus\:univer-border-primary-600:focus{border-color:var(--univer-primary-600)}.focus\:univer-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:univer-ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.dark\:\!univer-border-gray-600:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-600)!important}.dark\:\!univer-bg-gray-700:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.\[\&\>div\]\:univer-box-border>div{box-sizing:border-box}.\[\&\>div\]\:univer-h-2\.5>div{height:.625rem}
|
|
1
|
+
.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-right-\[-3px\]{right:-3px}.univer-top-\[-3px\]{top:-3px}.univer-z-10{z-index:10}.univer-z-50{z-index:50}.univer-mb-1{margin-bottom:.25rem}.univer-mb-3{margin-bottom:.75rem}.univer-ml-1{margin-left:.25rem}.univer-ml-2{margin-left:.5rem}.univer-mr-1{margin-right:.25rem}.univer-mr-2{margin-right:.5rem}.univer-mt-1{margin-top:.25rem}.univer-mt-2{margin-top:.5rem}.univer-mt-3{margin-top:.75rem}.univer-mt-4{margin-top:1rem}.univer-box-border{box-sizing:border-box}.univer-inline-block{display:inline-block}.\!univer-flex{display:flex!important}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.univer-hidden{display:none}.\!univer-h-\[150px\]{height:150px!important}.univer-h-0{height:0px}.univer-h-10{height:2.5rem}.univer-h-2{height:.5rem}.univer-h-2\.5{height:.625rem}.univer-h-3{height:.75rem}.univer-h-4{height:1rem}.univer-h-40{height:10rem}.univer-h-5{height:1.25rem}.univer-h-60{height:15rem}.univer-h-7{height:1.75rem}.univer-h-8{height:2rem}.univer-h-9{height:2.25rem}.univer-h-\[180px\]{height:180px}.univer-h-\[18px\]{height:18px}.univer-h-full{height:100%}.univer-h-px{height:1px}.univer-max-h-\[180px\]{max-height:180px}.univer-w-0{width:0px}.univer-w-1\/2{width:50%}.univer-w-2{width:.5rem}.univer-w-3{width:.75rem}.univer-w-4{width:1rem}.univer-w-52{width:13rem}.univer-w-8{width:2rem}.univer-w-\[280px\]{width:280px}.univer-w-\[312px\]{width:312px}.univer-w-\[400px\]{width:400px}.univer-w-\[80px\]{width:80px}.univer-w-full{width:100%}.univer-min-w-16{min-width:4rem}.univer-min-w-32{min-width:8rem}.univer-max-w-24{max-width:6rem}.univer-flex-1{flex:1 1 0%}.univer-flex-shrink-0{flex-shrink:0}.univer-flex-grow{flex-grow:1}.univer-flex-grow-0{flex-grow:0}.univer-cursor-pointer{cursor:pointer}.univer-flex-col{flex-direction:column}.univer-flex-wrap{flex-wrap:wrap}.univer-items-center{align-items:center}.univer-justify-end{justify-content:flex-end}.univer-justify-between{justify-content:space-between}.univer-gap-2{gap:.5rem}.univer-overflow-hidden{overflow:hidden}.univer-overflow-y-auto{overflow-y:auto}.univer-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-text-nowrap{text-wrap:nowrap}.univer-rounded-\[10px\]{border-radius:10px}.univer-rounded-lg{border-radius:.5rem}.univer-rounded-md{border-radius:.375rem}.univer-rounded-none{border-radius:0}.univer-rounded-sm{border-radius:.125rem}.univer-rounded-xl{border-radius:.75rem}.univer-border{border-width:1px}.univer-border-solid{border-style:solid}.univer-border-blue-500{border-color:var(--univer-blue-500)}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-bg-gray-200{background-color:var(--univer-gray-200)}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-white{background-color:var(--univer-white)}.univer-p-1{padding:.25rem}.univer-p-2{padding:.5rem}.univer-p-4{padding:1rem}.univer-p-px{padding:1px}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.univer-pb-1{padding-bottom:.25rem}.univer-pb-2{padding-bottom:.5rem}.univer-pl-2{padding-left:.5rem}.univer-pr-2{padding-right:.5rem}.univer-pt-1{padding-top:.25rem}.univer-pt-2{padding-top:.5rem}.univer-text-center{text-align:center}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-leading-10{line-height:2.5rem}.univer-leading-9{line-height:2.25rem}.univer-leading-\[10px\]{line-height:10px}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-text-red-500{color:var(--univer-red-500)}.univer-text-white{color:var(--univer-white)}.univer-shadow-lg{--tw-shadow: 0px 4px 6px 0px rgba(30, 40, 77, .05), 0px 10px 15px -3px rgba(30, 40, 77, .1);--tw-shadow-colored: 0px 4px 6px 0px var(--tw-shadow-color), 0px 10px 15px -3px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 4px 6px #1e284d0d,0 10px 15px -3px #1e284d1a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-duration-200{transition-duration:.2s}.hover\:univer-border-primary-600:hover{border-color:var(--univer-primary-600)}.hover\:univer-bg-gray-200:hover{background-color:var(--univer-gray-200)}.focus\:univer-border-primary-600:focus{border-color:var(--univer-primary-600)}.focus\:univer-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:univer-ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.dark\:\!univer-border-gray-600:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-600)!important}.dark\:\!univer-bg-gray-700:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.\[\&\>div\]\:univer-box-border>div{box-sizing:border-box}.\[\&\>div\]\:univer-h-2\.5>div{height:.625rem}
|