@univerjs/sheets-table-ui 0.8.3-nightly.202507031607 → 0.8.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/LICENSE +176 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +87 -88
- package/lib/index.css +1 -1
- package/lib/index.js +87 -88
- 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 N, IUniverInstanceService as fe, ICommandService as le, Disposable as Pe, ObjectMatrix as kn, cellToRange as Zt, Rectangle as me, LocaleService as oe, Injector as Oe, dayjs as de, IPermissionService as qt, IContextService as It, CommandType as Yt, IConfigService as Qt, ThemeService as Pn, RxDisposable as Gt, InterceptorEffectEnum as On, ErrorService as 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 Ne, 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 Nr, Checkbox as Dt, scrollbarClassName as xr, 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" } }] }, Nt = 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
|
+
Nt.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, N(ne)),
|
|
233
|
+
Je(1, N(qn)),
|
|
234
|
+
Je(2, N(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 xt = /* @__PURE__ */ new Set([
|
|
497
497
|
l.Equal,
|
|
498
498
|
l.NotEqual,
|
|
499
499
|
l.After,
|
|
@@ -502,7 +502,7 @@ const Nt = /* @__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 : xt.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
|
+
} : xt.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, x, 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 : xt.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(Nt, {})
|
|
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: (x = e.info.numberRange) == null ? void 0 : x[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
|
+
Nr,
|
|
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)), x = !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", xr),
|
|
731
731
|
children: /* @__PURE__ */ I("div", { className: "univer-h-full", children: [
|
|
732
732
|
/* @__PURE__ */ o("div", { className: "univer-flex univer-items-center univer-px-2 univer-py-1", children: /* @__PURE__ */ o(
|
|
733
733
|
Dt,
|
|
734
734
|
{
|
|
735
|
-
indeterminate:
|
|
735
|
+
indeterminate: x,
|
|
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), [x, 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
|
+
x.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
|
|
840
|
+
Ce && /* @__PURE__ */ o("div", { className: "univer-mb-3 univer-flex", children: /* @__PURE__ */ I(Er, { className: "univer-mb-3 univer-w-full", children: [
|
|
841
841
|
/* @__PURE__ */ I(Te, { className: "univer-w-1/2", onClick: () => U(!0), children: [
|
|
842
842
|
/* @__PURE__ */ o(mn, { className: "univer-mr-1" }),
|
|
843
843
|
t.t("sheets-sort.general.sort-asc")
|
|
@@ -863,7 +863,7 @@ function vi() {
|
|
|
863
863
|
subUnitId: u,
|
|
864
864
|
tableId: g,
|
|
865
865
|
columnIndex: T,
|
|
866
|
-
checkedItemSet:
|
|
866
|
+
checkedItemSet: x,
|
|
867
867
|
setCheckedItemSet: y
|
|
868
868
|
}
|
|
869
869
|
) : /* @__PURE__ */ o(
|
|
@@ -956,8 +956,7 @@ let ke = class extends Pe {
|
|
|
956
956
|
onClickOutside: () => {
|
|
957
957
|
this._dialogService.close(Ur), this._contextService.setContextValue(ge, !1);
|
|
958
958
|
},
|
|
959
|
-
offset: [5, 0]
|
|
960
|
-
portal: !0
|
|
959
|
+
offset: [5, 0]
|
|
961
960
|
});
|
|
962
961
|
}
|
|
963
962
|
_closeFilterPopup() {
|
|
@@ -966,10 +965,10 @@ let ke = class extends Pe {
|
|
|
966
965
|
}
|
|
967
966
|
};
|
|
968
967
|
ke = mi([
|
|
969
|
-
et(0,
|
|
968
|
+
et(0, N(nn)),
|
|
970
969
|
et(1, It),
|
|
971
|
-
et(2,
|
|
972
|
-
et(3,
|
|
970
|
+
et(2, N(nr)),
|
|
971
|
+
et(3, N(rn))
|
|
973
972
|
], ke);
|
|
974
973
|
const St = {
|
|
975
974
|
type: Yt.OPERATION,
|
|
@@ -1055,11 +1054,11 @@ let ye = class extends Pe {
|
|
|
1055
1054
|
}
|
|
1056
1055
|
};
|
|
1057
1056
|
ye = fi([
|
|
1058
|
-
Ci(0,
|
|
1057
|
+
Ci(0, N(le))
|
|
1059
1058
|
], ye);
|
|
1060
1059
|
const Si = () => {
|
|
1061
1060
|
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),
|
|
1061
|
+
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), x = 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
1062
|
s((V) => ({
|
|
1064
1063
|
...V,
|
|
1065
1064
|
[b]: P
|
|
@@ -1067,7 +1066,7 @@ const Si = () => {
|
|
|
1067
1066
|
};
|
|
1068
1067
|
if (hn(() => {
|
|
1069
1068
|
p(Math.random());
|
|
1070
|
-
}, [
|
|
1069
|
+
}, [x]), !(h != null && h.length))
|
|
1071
1070
|
return null;
|
|
1072
1071
|
const Q = ut(g);
|
|
1073
1072
|
if (!Q) return null;
|
|
@@ -1228,7 +1227,7 @@ const Si = () => {
|
|
|
1228
1227
|
onOpenChange: (W) => {
|
|
1229
1228
|
E(b.tableId, W);
|
|
1230
1229
|
},
|
|
1231
|
-
children: /* @__PURE__ */ o(
|
|
1230
|
+
children: /* @__PURE__ */ o(Nt, {})
|
|
1232
1231
|
},
|
|
1233
1232
|
b.tableId
|
|
1234
1233
|
)
|
|
@@ -1298,9 +1297,9 @@ let at = class extends Pe {
|
|
|
1298
1297
|
const d = a.reduce((u, g) => {
|
|
1299
1298
|
const { startRow: _, startColumn: S } = g.range, T = s.with(ct), k = sr(this._univerInstanceService, this._renderManagerService);
|
|
1300
1299
|
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(
|
|
1300
|
+
const { scene: f } = k, x = f.getViewport(Un.VIEW_MAIN);
|
|
1301
|
+
if (!x) return u;
|
|
1302
|
+
const y = f == null ? void 0 : f.scaleX, D = f == null ? void 0 : f.scaleY, v = f == null ? void 0 : f.getViewportScrollXY(x);
|
|
1304
1303
|
if (!y || !f || !D || !v) return u;
|
|
1305
1304
|
const p = T.getCurrentSkeleton();
|
|
1306
1305
|
if (!p) return u;
|
|
@@ -1318,33 +1317,33 @@ let at = class extends Pe {
|
|
|
1318
1317
|
}
|
|
1319
1318
|
};
|
|
1320
1319
|
at = Ti([
|
|
1321
|
-
te(1,
|
|
1322
|
-
te(2,
|
|
1320
|
+
te(1, N(Oe)),
|
|
1321
|
+
te(2, N(ct)),
|
|
1323
1322
|
te(3, Xt),
|
|
1324
1323
|
te(4, le),
|
|
1325
1324
|
te(5, fe),
|
|
1326
1325
|
te(6, dr),
|
|
1327
|
-
te(7,
|
|
1328
|
-
te(8,
|
|
1329
|
-
te(9,
|
|
1330
|
-
te(10,
|
|
1326
|
+
te(7, N(ne)),
|
|
1327
|
+
te(8, N(rr)),
|
|
1328
|
+
te(9, N(on)),
|
|
1329
|
+
te(10, N(qt))
|
|
1331
1330
|
], at);
|
|
1332
|
-
const
|
|
1331
|
+
const xe = 16;
|
|
1333
1332
|
new Path2D("M3.30363 3C2.79117 3 2.51457 3.60097 2.84788 3.99024L6.8 8.60593V12.5662C6.8 12.7184 6.8864 12.8575 7.02289 12.9249L8.76717 13.7863C8.96655 13.8847 9.2 13.7396 9.2 13.5173V8.60593L13.1521 3.99024C13.4854 3.60097 13.2088 3 12.6964 3H3.30363Z");
|
|
1334
1333
|
class Wt {
|
|
1335
1334
|
static drawNoSetting(e, n, r, i) {
|
|
1336
1335
|
e.save(), Lt.drawWith(e, {
|
|
1337
1336
|
radius: 2,
|
|
1338
|
-
width:
|
|
1339
|
-
height:
|
|
1337
|
+
width: xe,
|
|
1338
|
+
height: xe,
|
|
1340
1339
|
fill: i
|
|
1341
|
-
}), e.lineCap = "square", e.strokeStyle = r, e.scale(n /
|
|
1340
|
+
}), e.lineCap = "square", e.strokeStyle = r, e.scale(n / xe, n / xe), e.beginPath(), e.lineWidth = 1, e.lineCap = "round", e.moveTo(3, 4), e.lineTo(13, 4), e.moveTo(4.5, 8), e.lineTo(11.5, 8), e.moveTo(6, 12), e.lineTo(10, 12), e.stroke(), e.restore();
|
|
1342
1341
|
}
|
|
1343
1342
|
static drawIconByPath(e, n, r, i) {
|
|
1344
1343
|
e.save(), e.strokeStyle = r, e.fillStyle = i, Lt.drawWith(e, {
|
|
1345
1344
|
radius: 2,
|
|
1346
|
-
width:
|
|
1347
|
-
height:
|
|
1345
|
+
width: xe,
|
|
1346
|
+
height: xe,
|
|
1348
1347
|
fill: i
|
|
1349
1348
|
}), n.forEach((a) => {
|
|
1350
1349
|
const s = new Path2D(a);
|
|
@@ -1369,8 +1368,8 @@ const wi = [
|
|
|
1369
1368
|
"M2.69792 10.0113C2.40558 10.0113 2.16859 9.77429 2.16859 9.48196C2.16859 9.18962 2.40558 8.95264 2.69792 8.95264H6.67816C6.89225 8.95264 7.08526 9.0816 7.16719 9.2794C7.24912 9.47719 7.20384 9.70486 7.05245 9.85624L3.97581 12.9329H6.67816C6.9705 12.9329 7.20749 13.1699 7.20749 13.4622C7.20749 13.7545 6.9705 13.9915 6.67816 13.9915H2.69792C2.48383 13.9915 2.29082 13.8626 2.20889 13.6648C2.12696 13.467 2.17224 13.2393 2.32363 13.0879L5.40027 10.0113H2.69792Z",
|
|
1370
1369
|
"M5.5165 2.58693C5.23375 1.81542 4.1426 1.81543 3.85985 2.58693L2.13257 7.29995C2.03197 7.57443 2.17294 7.8785 2.44742 7.97909C2.7219 8.07969 3.02596 7.93872 3.12656 7.66424L3.64358 6.25351L3.64516 6.25351H5.73278L6.2498 7.66424C6.35039 7.93872 6.65446 8.07969 6.92894 7.97909C7.20342 7.8785 7.34438 7.57443 7.24379 7.29995L5.5165 2.58693ZM5.34479 5.19487L4.68818 3.40325L4.03156 5.19487H5.34479Z"
|
|
1371
1370
|
];
|
|
1372
|
-
var
|
|
1373
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1371
|
+
var Ni = Object.getOwnPropertyDescriptor, xi = (t, e, n, r) => {
|
|
1372
|
+
for (var i = r > 1 ? void 0 : r ? Ni(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
1374
1373
|
(s = t[a]) && (i = s(i) || i);
|
|
1375
1374
|
return i;
|
|
1376
1375
|
}, pt = (t, e) => (n, r) => e(n, r, t);
|
|
@@ -1398,21 +1397,21 @@ let _t = class extends Zn {
|
|
|
1398
1397
|
const { buttonState: c } = this._filterParams, d = this._themeService.getColorFromTheme("primary.600"), h = this._hovered ? this._themeService.getColorFromTheme("gray.50") : "rgba(255, 255, 255, 1.0)";
|
|
1399
1398
|
let u;
|
|
1400
1399
|
switch (c) {
|
|
1401
|
-
case
|
|
1400
|
+
case Ne.FilteredSortNone:
|
|
1402
1401
|
u = wi;
|
|
1403
1402
|
break;
|
|
1404
|
-
case
|
|
1403
|
+
case Ne.FilteredSortAsc:
|
|
1405
1404
|
u = Ii;
|
|
1406
1405
|
break;
|
|
1407
|
-
case
|
|
1406
|
+
case Ne.FilteredSortDesc:
|
|
1408
1407
|
u = yi;
|
|
1409
1408
|
break;
|
|
1410
|
-
case
|
|
1409
|
+
case Ne.FilterNoneSortNone:
|
|
1411
1410
|
break;
|
|
1412
|
-
case
|
|
1411
|
+
case Ne.FilterNoneSortAsc:
|
|
1413
1412
|
u = Ri;
|
|
1414
1413
|
break;
|
|
1415
|
-
case
|
|
1414
|
+
case Ne.FilterNoneSortDesc:
|
|
1416
1415
|
u = Mi;
|
|
1417
1416
|
break;
|
|
1418
1417
|
}
|
|
@@ -1440,10 +1439,10 @@ let _t = class extends Zn {
|
|
|
1440
1439
|
this._hovered = !1, this.makeDirty(!0);
|
|
1441
1440
|
}
|
|
1442
1441
|
};
|
|
1443
|
-
_t =
|
|
1442
|
+
_t = xi([
|
|
1444
1443
|
pt(2, It),
|
|
1445
1444
|
pt(3, le),
|
|
1446
|
-
pt(4,
|
|
1445
|
+
pt(4, N(Pn))
|
|
1447
1446
|
], _t);
|
|
1448
1447
|
var Ei = Object.getOwnPropertyDescriptor, Li = (t, e, n, r) => {
|
|
1449
1448
|
for (var i = r > 1 ? void 0 : r ? Ei(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -1496,7 +1495,7 @@ let Tt = class extends Gt {
|
|
|
1496
1495
|
const { startRow: u, startColumn: g, endColumn: _ } = c;
|
|
1497
1496
|
this._interceptCellContent(r, a, c);
|
|
1498
1497
|
for (let S = g; S <= _; S++) {
|
|
1499
|
-
const T = `sheets-table-filter-button-${u}-${S}`, k = lr(u, S, s, i), { startX: f, startY:
|
|
1498
|
+
const T = `sheets-table-filter-button-${u}-${S}`, k = lr(u, S, s, i), { startX: f, startY: x, endX: y, endY: D } = k, v = y - f, p = D - x;
|
|
1500
1499
|
if (p <= tt || v <= tt)
|
|
1501
1500
|
continue;
|
|
1502
1501
|
const L = d[S - g], R = y - be - tt, C = D - be - tt, H = {
|
|
@@ -1534,10 +1533,10 @@ let Tt = class extends Gt {
|
|
|
1534
1533
|
}
|
|
1535
1534
|
};
|
|
1536
1535
|
Tt = Li([
|
|
1537
|
-
nt(1,
|
|
1538
|
-
nt(2,
|
|
1539
|
-
nt(3,
|
|
1540
|
-
nt(4,
|
|
1536
|
+
nt(1, N(Oe)),
|
|
1537
|
+
nt(2, N(ct)),
|
|
1538
|
+
nt(3, N(un)),
|
|
1539
|
+
nt(4, N(ne))
|
|
1541
1540
|
], Tt);
|
|
1542
1541
|
const ki = (t) => {
|
|
1543
1542
|
const { unitId: e, subUnitId: n, range: r, onCancel: i, onConfirm: a, tableId: s } = t, c = M(ne), [d, h] = q(r), [u, g] = q(""), _ = M(oe), S = M(fe);
|
|
@@ -1550,10 +1549,10 @@ const ki = (t) => {
|
|
|
1550
1549
|
subUnitId: n,
|
|
1551
1550
|
initialValue: At(r),
|
|
1552
1551
|
onChange: (T, k) => {
|
|
1553
|
-
const f = At(r),
|
|
1552
|
+
const f = At(r), x = Hr(k).range, y = ut(S, { unitId: e, subUnitId: n });
|
|
1554
1553
|
if (!y)
|
|
1555
1554
|
return;
|
|
1556
|
-
if (y.worksheet.getMergeData().some((E) => me.intersects(
|
|
1555
|
+
if (y.worksheet.getMergeData().some((E) => me.intersects(x, E))) {
|
|
1557
1556
|
g(_.t("sheets-table.tableRangeWithMergeError"));
|
|
1558
1557
|
return;
|
|
1559
1558
|
}
|
|
@@ -1561,12 +1560,12 @@ const ki = (t) => {
|
|
|
1561
1560
|
if (E.getId() === s)
|
|
1562
1561
|
return !1;
|
|
1563
1562
|
const Q = E.getRange();
|
|
1564
|
-
return me.intersects(
|
|
1563
|
+
return me.intersects(x, Q);
|
|
1565
1564
|
})) {
|
|
1566
1565
|
g(_.t("sheets-table.tableRangeWithOtherTableError"));
|
|
1567
1566
|
return;
|
|
1568
1567
|
}
|
|
1569
|
-
const { startRow: R, endRow: C } =
|
|
1568
|
+
const { startRow: R, endRow: C } = x;
|
|
1570
1569
|
if (R === C) {
|
|
1571
1570
|
g(_.t("sheets-table.tableRangeSingleRowError"));
|
|
1572
1571
|
return;
|
|
@@ -1576,11 +1575,11 @@ const ki = (t) => {
|
|
|
1576
1575
|
const E = c.getTableById(e, s);
|
|
1577
1576
|
if (E) {
|
|
1578
1577
|
const Q = E.getRange();
|
|
1579
|
-
if (me.intersects(
|
|
1580
|
-
h(
|
|
1578
|
+
if (me.intersects(x, Q) && Q.startRow === x.startRow) {
|
|
1579
|
+
h(x), g(""), a({
|
|
1581
1580
|
unitId: e,
|
|
1582
1581
|
subUnitId: n,
|
|
1583
|
-
range:
|
|
1582
|
+
range: x
|
|
1584
1583
|
});
|
|
1585
1584
|
return;
|
|
1586
1585
|
} else {
|
|
@@ -1589,7 +1588,7 @@ const ki = (t) => {
|
|
|
1589
1588
|
}
|
|
1590
1589
|
}
|
|
1591
1590
|
}
|
|
1592
|
-
h(
|
|
1591
|
+
h(x), g("");
|
|
1593
1592
|
}
|
|
1594
1593
|
},
|
|
1595
1594
|
supportAcrossSheet: !1
|
|
@@ -1623,7 +1622,7 @@ const ki = (t) => {
|
|
|
1623
1622
|
unitId: e,
|
|
1624
1623
|
subUnitId: n,
|
|
1625
1624
|
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)),
|
|
1625
|
+
}), 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)), x = c == null ? void 0 : c.getTableStyleId(), y = f.find((m) => m === x), 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
1626
|
i.executeCommand(Ct.id, {
|
|
1628
1627
|
unitId: e,
|
|
1629
1628
|
tableId: r,
|
|
@@ -1990,7 +1989,7 @@ function Fi(t) {
|
|
|
1990
1989
|
id: en.id,
|
|
1991
1990
|
type: Re.BUTTON,
|
|
1992
1991
|
title: "sheets-table.insert.row",
|
|
1993
|
-
hidden$:
|
|
1992
|
+
hidden$: Nn(t)
|
|
1994
1993
|
};
|
|
1995
1994
|
}
|
|
1996
1995
|
function Hi(t) {
|
|
@@ -2005,7 +2004,7 @@ function Vi(t) {
|
|
|
2005
2004
|
id: Kt.id,
|
|
2006
2005
|
type: Re.BUTTON,
|
|
2007
2006
|
title: "sheets-table.remove.row",
|
|
2008
|
-
hidden$:
|
|
2007
|
+
hidden$: Nn(t)
|
|
2009
2008
|
};
|
|
2010
2009
|
}
|
|
2011
2010
|
function Ai(t) {
|
|
@@ -2029,7 +2028,7 @@ function Mn(t) {
|
|
|
2029
2028
|
) : J(!0))
|
|
2030
2029
|
);
|
|
2031
2030
|
}
|
|
2032
|
-
function
|
|
2031
|
+
function Nn(t) {
|
|
2033
2032
|
const e = t.get(dt);
|
|
2034
2033
|
return t.get(fe).getCurrentTypeOfUnit$(qe.UNIVER_SHEET).pipe(
|
|
2035
2034
|
Ie((i) => i ? i.activeSheet$.pipe(
|
|
@@ -2105,8 +2104,8 @@ let st = class extends Pe {
|
|
|
2105
2104
|
}
|
|
2106
2105
|
};
|
|
2107
2106
|
st = ji([
|
|
2108
|
-
jt(0,
|
|
2109
|
-
jt(1,
|
|
2107
|
+
jt(0, N(nn)),
|
|
2108
|
+
jt(1, N(fr))
|
|
2110
2109
|
], st);
|
|
2111
2110
|
var Zi = Object.getOwnPropertyDescriptor, qi = (t, e, n, r) => {
|
|
2112
2111
|
for (var i = r > 1 ? void 0 : r ? Zi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -2145,10 +2144,10 @@ let wt = class extends Gt {
|
|
|
2145
2144
|
}
|
|
2146
2145
|
};
|
|
2147
2146
|
wt = qi([
|
|
2148
|
-
rt(1,
|
|
2149
|
-
rt(2,
|
|
2150
|
-
rt(3,
|
|
2151
|
-
rt(4,
|
|
2147
|
+
rt(1, N(Oe)),
|
|
2148
|
+
rt(2, N(ct)),
|
|
2149
|
+
rt(3, N(ne)),
|
|
2150
|
+
rt(4, N(ye))
|
|
2152
2151
|
], wt);
|
|
2153
2152
|
var Yi = Object.getOwnPropertyDescriptor, Qi = (t, e, n, r) => {
|
|
2154
2153
|
for (var i = r > 1 ? void 0 : r ? Yi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
@@ -2220,15 +2219,15 @@ let lt = class extends Pe {
|
|
|
2220
2219
|
}
|
|
2221
2220
|
};
|
|
2222
2221
|
lt = Qi([
|
|
2223
|
-
ft(0,
|
|
2224
|
-
ft(1,
|
|
2225
|
-
ft(2,
|
|
2222
|
+
ft(0, N(un)),
|
|
2223
|
+
ft(1, N(fe)),
|
|
2224
|
+
ft(2, N(ne))
|
|
2226
2225
|
], lt);
|
|
2227
2226
|
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
2227
|
for (var i = r > 1 ? void 0 : r ? Xi(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
2229
2228
|
(s = t[a]) && (i = s(i) || i);
|
|
2230
2229
|
return i;
|
|
2231
|
-
}, it = (t, e) => (n, r) => e(n, r, t),
|
|
2230
|
+
}, it = (t, e) => (n, r) => e(n, r, t), xn = (t, e, n) => zi(t, typeof e != "symbol" ? e + "" : e, n);
|
|
2232
2231
|
let ot = class extends Fn {
|
|
2233
2232
|
constructor(t = Ut, e, n, r, i) {
|
|
2234
2233
|
super(), this._config = t, this._injector = e, this._commandService = n, this._configService = r, this._renderManagerService = i;
|
|
@@ -2276,12 +2275,12 @@ let ot = class extends Fn {
|
|
|
2276
2275
|
].forEach((t) => this._commandService.registerCommand(t));
|
|
2277
2276
|
}
|
|
2278
2277
|
};
|
|
2279
|
-
|
|
2280
|
-
|
|
2278
|
+
xn(ot, "pluginName", Ar);
|
|
2279
|
+
xn(ot, "type", qe.UNIVER_SHEET);
|
|
2281
2280
|
ot = Ki([
|
|
2282
2281
|
Bn(tr),
|
|
2283
|
-
it(1,
|
|
2284
|
-
it(2,
|
|
2282
|
+
it(1, N(Oe)),
|
|
2283
|
+
it(2, N(le)),
|
|
2285
2284
|
it(3, Qt),
|
|
2286
2285
|
it(4, Xt)
|
|
2287
2286
|
], 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}
|
|
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}
|