@univerjs/sheets-table-ui 0.7.0-nightly.202505051607 → 0.7.0-nightly.202505061607
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 +10 -13
- package/lib/es/index.js +102 -104
- package/lib/index.css +1 -1
- package/lib/index.js +102 -104
- package/lib/umd/index.js +21 -24
- package/package.json +13 -13
package/lib/es/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Ir = Object.defineProperty;
|
|
2
2
|
var Mr = (r, e, t) => e in r ? Ir(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var F = (r, e, t) => Mr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Inject as
|
|
4
|
+
import { Inject as x, IUniverInstanceService as Ce, ICommandService as ee, Disposable as Be, ObjectMatrix as Rr, cellToRange as Ht, Rectangle as pe, LocaleService as oe, Injector as Fe, dayjs as ve, IPermissionService as Vt, IContextService as ft, CommandType as At, IConfigService as Ut, ThemeService as jt, RxDisposable as Wt, InterceptorEffectEnum as Nr, ErrorService as xr, ColorKit as le, UniverInstanceType as tt, Plugin as Er, registerDependencies as Lr, touchDependencies as $r } from "@univerjs/core";
|
|
5
5
|
import { IRenderManagerService as Zt, SHEET_VIEWPORT_KEY as kr, convertTransformToOffsetX as Or, convertTransformToOffsetY as Pr, Rect as wt, Shape as Dr } from "@univerjs/engine-render";
|
|
6
6
|
import { TableManager as te, SheetTableService as Br, SetSheetTableFilterCommand as It, isConditionFilter as Fr, isManualFilter as Hr, TableDateCompareTypeEnum as l, TableStringCompareTypeEnum as U, TableConditionTypeEnum as H, TableNumberCompareTypeEnum as $, SheetsTableSortStateEnum as Ye, TableColumnFilterTypeEnum as Mt, AddSheetTableCommand as Vr, SHEET_TABLE_CUSTOM_THEME_PREFIX as Ar, DeleteSheetTableCommand as Ur, SetSheetTableCommand as vt, SheetsTableButtonStateEnum as Le, processStyleWithBorderStyle as Rt, customEmptyThemeWithBorderStyle as jr, AddTableThemeCommand as Wr, RemoveTableThemeCommand as Zr, SheetTableRemoveColCommand as qt, SheetTableRemoveRowCommand as Yt, SheetTableInsertColCommand as Qt, SheetTableInsertRowCommand as zt, SheetsTableController as Gt } from "@univerjs/sheets-table";
|
|
7
7
|
import { SheetCanvasPopManagerService as qr, SheetSkeletonManagerService as at, SheetScrollManagerService as Yr, SetZoomRatioOperation as Qr, SetScrollOperation as zr, getSheetObject as Gr, ISheetSelectionRenderService as Xr, getCoordByCell as Kr, SelectAllCommand as Jr } from "@univerjs/sheets-ui";
|
|
8
|
-
import { useDependency as R, ComponentManager as Xt, IDialogService as Kt, ISidebarService as en, useObservable as Me, IUIPartsService as tn, BuiltInUIPart as rn, connectInjector as nn, MenuItemType as
|
|
9
|
-
import { startWith as Jt, distinctUntilChanged as cn, Subject as un, BehaviorSubject as
|
|
8
|
+
import { useDependency as R, ComponentManager as Xt, IDialogService as Kt, ISidebarService as en, useObservable as Me, IUIPartsService as tn, BuiltInUIPart as rn, connectInjector as nn, MenuItemType as xe, ContextMenuPosition as an, ContextMenuGroup as sn, RibbonStartGroup as ln, IMenuManagerService as on } from "@univerjs/ui";
|
|
9
|
+
import { startWith as Jt, distinctUntilChanged as cn, Subject as un, BehaviorSubject as Nt, merge as Ct, filter as dn, debounceTime as hn, switchMap as Re, of as X, map as vn, takeUntil as bn } from "rxjs";
|
|
10
10
|
import { jsxs as T, jsx as o, Fragment as St } from "react/jsx-runtime";
|
|
11
|
-
import { LegacySelect as gn, CascaderList as mn, Input as _t, InputNumber as ct, DatePicker as pn, DateRangePicker as fn, Select as Cn, clsx as Sn, Checkbox as
|
|
11
|
+
import { LegacySelect as gn, CascaderList as mn, Input as _t, InputNumber as ct, DatePicker as pn, DateRangePicker as fn, Select as Cn, clsx as Sn, Checkbox as xt, scrollbarClassName as _n, Segmented as Tn, Button as We, Dropdown as Ue, ColorPicker as Qe } from "@univerjs/design";
|
|
12
12
|
import { SetRangeValuesMutation as yn, WorkbookEditablePermission as er, getSheetCommandTarget as st, SheetsSelectionsService as lt, isSingleCellSelection as wn, expandToContinuousRange as In, SetRangeThemeMutation as tr, WorkbookPermissionService as rr, SheetRangeThemeModel as nr, SheetInterceptorService as ir, INTERCEPTOR_POINT as Mn, RangeThemeStyle as Rn, getPrimaryForRange as Et, SetSelectionsOperation as Lt } from "@univerjs/sheets";
|
|
13
|
-
import { SortRangeCommand as
|
|
14
|
-
import { forwardRef as re, useRef as
|
|
13
|
+
import { SortRangeCommand as Nn, SortType as $t } from "@univerjs/sheets-sort";
|
|
14
|
+
import { forwardRef as re, useRef as xn, createElement as ne, useState as W, useMemo as ar, useCallback as kt, useEffect as sr } from "react";
|
|
15
15
|
import { serializeRange as Ot, deserializeRangeWithSheet as En } from "@univerjs/engine-formula";
|
|
16
16
|
import { RangeSelector as Ln } from "@univerjs/sheets-formula-ui";
|
|
17
17
|
const $n = "SHEET_TABLE_UI_PLUGIN", ge = "SHEETS_TABLE_FILTER_PANEL_OPENED_KEY", kn = "UNIVER_SHEET_Table_FILTER_PANEL_ID", lr = "TABLE_TOOLBAR_BUTTON", Oe = "TABLE_SELECTOR_DIALOG", On = "SHEET_TABLE_THEME_PANEL_ID", or = "SHEET_TABLE_THEME_PANEL", ut = "table-custom-", Pn = "table-default-", be = "rgb(255, 255, 255)", Y = "none", $e = "1px solid rgb(var(--grey-200))", Pt = "1px solid rgb(var(--blue-500))";
|
|
@@ -31,7 +31,7 @@ var Q = function() {
|
|
|
31
31
|
e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]);
|
|
32
32
|
return t;
|
|
33
33
|
}, ie = re(function(r, e) {
|
|
34
|
-
var t = r.icon, n = r.id, i = r.className, a = r.extend, s = Dn(r, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), h =
|
|
34
|
+
var t = r.icon, n = r.id, i = r.className, a = r.extend, s = Dn(r, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), h = xn("_".concat(Hn()));
|
|
35
35
|
return cr(t, "".concat(n), { defIds: t.defIds, idSuffix: h.current }, Q({ ref: e, className: c }, s), a);
|
|
36
36
|
});
|
|
37
37
|
function cr(r, e, t, n, i) {
|
|
@@ -229,9 +229,9 @@ let Pe = class extends Be {
|
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
Pe = Gn([
|
|
232
|
-
ze(0,
|
|
233
|
-
ze(1,
|
|
234
|
-
ze(2,
|
|
232
|
+
ze(0, x(te)),
|
|
233
|
+
ze(1, x(Br)),
|
|
234
|
+
ze(2, x(Ce)),
|
|
235
235
|
ze(3, ee)
|
|
236
236
|
], Pe);
|
|
237
237
|
var j = /* @__PURE__ */ ((r) => (r.DatePicker = "DatePicker", r.DateRange = "DateRange", r.Input = "Input", r.Inputs = "Inputs", r.Select = "Select", r.None = "None", r))(j || {});
|
|
@@ -731,7 +731,7 @@ function ni(r) {
|
|
|
731
731
|
className: "univer-flex univer-items-center univer-px-2 univer-py-1",
|
|
732
732
|
children: [
|
|
733
733
|
/* @__PURE__ */ o(
|
|
734
|
-
|
|
734
|
+
xt,
|
|
735
735
|
{
|
|
736
736
|
indeterminate: E,
|
|
737
737
|
disabled: u.length === 0,
|
|
@@ -759,7 +759,7 @@ function ni(r) {
|
|
|
759
759
|
{
|
|
760
760
|
className: "univer-flex univer-items-center univer-px-2 univer-py-1",
|
|
761
761
|
children: [
|
|
762
|
-
/* @__PURE__ */ o(
|
|
762
|
+
/* @__PURE__ */ o(xt, { checked: C || a.has(f.title), onChange: () => {
|
|
763
763
|
M(f.title);
|
|
764
764
|
} }),
|
|
765
765
|
/* @__PURE__ */ T(
|
|
@@ -789,49 +789,49 @@ function ni(r) {
|
|
|
789
789
|
function ii() {
|
|
790
790
|
var V;
|
|
791
791
|
const r = R(oe), e = ai(r), t = R(Pe), n = R(te), i = R(ee), a = R(Vt), s = R(De), c = s.getCurrentTableFilterInfo(), h = t.getTableFilterPanelInitProps(c.unitId, c.subUnitId, c.tableId, c.column), { unitId: d, subUnitId: u, tableId: v, tableFilter: S, currentFilterBy: C, columnIndex: _ } = h, { data: k } = t.getTableFilterItems(d, u, v, _), p = t.getTableFilterCheckedItems(d, v, _), [E, I] = W(new Set(p)), [P, b] = W(C || fe.Items), [m, L] = W(() => {
|
|
792
|
-
const
|
|
793
|
-
return ei(
|
|
792
|
+
const N = h.tableFilter;
|
|
793
|
+
return ei(N);
|
|
794
794
|
}), M = n.getTable(d, v);
|
|
795
795
|
if (!M) return null;
|
|
796
796
|
const f = M.getTableFilters(), A = f.getSortState(), O = A.columnIndex === _ && A.sortState === Ye.Asc, q = A.columnIndex === _ && A.sortState === Ye.Desc, D = () => {
|
|
797
797
|
s.closeFilterPanel();
|
|
798
798
|
}, K = () => {
|
|
799
799
|
D();
|
|
800
|
-
}, Se = (
|
|
800
|
+
}, Se = (N) => {
|
|
801
801
|
const B = M.getTableFilterRange();
|
|
802
|
-
i.executeCommand(
|
|
802
|
+
i.executeCommand(Nn.id, {
|
|
803
803
|
unitId: d,
|
|
804
804
|
subUnitId: u,
|
|
805
805
|
range: B,
|
|
806
|
-
orderRules: [{ colIndex: _ + B.startColumn, type:
|
|
806
|
+
orderRules: [{ colIndex: _ + B.startColumn, type: N ? $t.ASC : $t.DESC }],
|
|
807
807
|
hasTitle: !1
|
|
808
|
-
}), f.setSortState(_,
|
|
808
|
+
}), f.setSortState(_, N ? Ye.Asc : Ye.Desc), D();
|
|
809
809
|
}, Ee = () => {
|
|
810
810
|
if (P === fe.Items) {
|
|
811
|
-
const
|
|
811
|
+
const N = [];
|
|
812
812
|
for (const ce of k)
|
|
813
|
-
E.has(ce.title) &&
|
|
813
|
+
E.has(ce.title) && N.push(ce.title);
|
|
814
814
|
const B = M.getTableFilterColumn(_);
|
|
815
815
|
if (B) {
|
|
816
|
-
if (B.values.join(",") ===
|
|
816
|
+
if (B.values.join(",") === N.join(",")) {
|
|
817
817
|
D();
|
|
818
818
|
return;
|
|
819
819
|
}
|
|
820
|
-
} else if (
|
|
820
|
+
} else if (N.length === 0) {
|
|
821
821
|
D();
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
824
|
const He = {
|
|
825
825
|
filterType: Mt.manual,
|
|
826
|
-
values:
|
|
826
|
+
values: N
|
|
827
827
|
};
|
|
828
828
|
t.setTableFilter(d, v, _, He);
|
|
829
829
|
} else {
|
|
830
|
-
let
|
|
831
|
-
m.compare === l.Quarter || m.compare === l.Month ?
|
|
830
|
+
let N;
|
|
831
|
+
m.compare === l.Quarter || m.compare === l.Month ? N = {
|
|
832
832
|
conditionType: m.type,
|
|
833
833
|
compareType: Object.values(m.info)[0]
|
|
834
|
-
} :
|
|
834
|
+
} : N = {
|
|
835
835
|
conditionType: m.type,
|
|
836
836
|
compareType: m.compare,
|
|
837
837
|
expectedValue: Object.values(m.info)[0]
|
|
@@ -839,7 +839,7 @@ function ii() {
|
|
|
839
839
|
const B = {
|
|
840
840
|
filterType: Mt.condition,
|
|
841
841
|
// @ts-ignore
|
|
842
|
-
filterInfo:
|
|
842
|
+
filterInfo: N
|
|
843
843
|
};
|
|
844
844
|
t.setTableFilter(d, v, _, B);
|
|
845
845
|
}
|
|
@@ -896,7 +896,7 @@ function ii() {
|
|
|
896
896
|
{
|
|
897
897
|
value: P,
|
|
898
898
|
items: e,
|
|
899
|
-
onChange: (
|
|
899
|
+
onChange: (N) => b(N)
|
|
900
900
|
}
|
|
901
901
|
) }),
|
|
902
902
|
/* @__PURE__ */ o("div", { className: "univer-z-10 univer-h-60 univer-w-[280px]", children: /* @__PURE__ */ o("div", { className: "univer-mt-3 univer-h-full univer-w-full", children: P === fe.Items ? /* @__PURE__ */ o(
|
|
@@ -1012,10 +1012,10 @@ let De = class extends Be {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
1014
|
De = li([
|
|
1015
|
-
Ge(0,
|
|
1015
|
+
Ge(0, x(Xt)),
|
|
1016
1016
|
Ge(1, ft),
|
|
1017
|
-
Ge(2,
|
|
1018
|
-
Ge(3,
|
|
1017
|
+
Ge(2, x(qr)),
|
|
1018
|
+
Ge(3, x(Kt))
|
|
1019
1019
|
], De);
|
|
1020
1020
|
const bt = {
|
|
1021
1021
|
type: At.OPERATION,
|
|
@@ -1079,7 +1079,7 @@ var oi = Object.getOwnPropertyDescriptor, ci = (r, e, t, n) => {
|
|
|
1079
1079
|
(s = r[a]) && (i = s(i) || i);
|
|
1080
1080
|
return i;
|
|
1081
1081
|
}, ui = (r, e) => (t, n) => e(t, n, r);
|
|
1082
|
-
let
|
|
1082
|
+
let Ne = class extends Be {
|
|
1083
1083
|
constructor(e) {
|
|
1084
1084
|
super();
|
|
1085
1085
|
F(this, "_refreshTable", new un());
|
|
@@ -1097,14 +1097,14 @@ let xe = class extends Be {
|
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
|
-
|
|
1101
|
-
ui(0,
|
|
1102
|
-
],
|
|
1100
|
+
Ne = ci([
|
|
1101
|
+
ui(0, x(ee))
|
|
1102
|
+
], Ne);
|
|
1103
1103
|
const di = () => {
|
|
1104
1104
|
var _e, Te;
|
|
1105
|
-
const [r, e] = W(""), [t, n] = W(""), i = R(en), [a, s] = W({}), c = R(Fe), h = R(rt), d = Me(h.anchorPosition$), u = R(ee), v = R(Ce), S = R(rr), C = Me(S.unitPermissionInitStateChange$, !1), _ = R(te), k = R(nr), p = R(
|
|
1106
|
-
s((
|
|
1107
|
-
...
|
|
1105
|
+
const [r, e] = W(""), [t, n] = W(""), i = R(en), [a, s] = W({}), c = R(Fe), h = R(rt), d = Me(h.anchorPosition$), u = R(ee), v = R(Ce), S = R(rr), C = Me(S.unitPermissionInitStateChange$, !1), _ = R(te), k = R(nr), p = R(Ne), E = Me(p.refreshTable$), I = R(oe), P = R(lt), b = Me(P.selectionChanged$, [{ range: Ht(0, 0), primary: null }]), [, m] = W(Math.random()), M = R(Ut).getConfig(Cr), f = (_e = M == null ? void 0 : M.anchorHeight) != null ? _e : 24, A = (Te = M == null ? void 0 : M.anchorBackgroundColor) != null ? Te : "rgb(53,91,183)", O = (w, V) => {
|
|
1106
|
+
s((N) => ({
|
|
1107
|
+
...N,
|
|
1108
1108
|
[w]: V
|
|
1109
1109
|
}));
|
|
1110
1110
|
};
|
|
@@ -1128,7 +1128,7 @@ const di = () => {
|
|
|
1128
1128
|
}, Ee = async (w) => {
|
|
1129
1129
|
const V = _.getTableById(D, w);
|
|
1130
1130
|
if (!V) return;
|
|
1131
|
-
const
|
|
1131
|
+
const N = V.getRange(), B = await fr(c, D, K, N, w);
|
|
1132
1132
|
B && u.executeCommand(vt.id, {
|
|
1133
1133
|
tableId: w,
|
|
1134
1134
|
unitId: D,
|
|
@@ -1146,7 +1146,7 @@ const di = () => {
|
|
|
1146
1146
|
var z, G, ae, se, ue, de, he;
|
|
1147
1147
|
const V = _.getTableById(D, w.tableId);
|
|
1148
1148
|
if (!V) return null;
|
|
1149
|
-
const
|
|
1149
|
+
const N = k.getRangeThemeStyle(D, V.getTableStyleId()), B = (ae = (G = (z = N == null ? void 0 : N.getHeaderRowStyle()) == null ? void 0 : z.bg) == null ? void 0 : G.rgb) != null ? ae : A, ce = (de = (ue = (se = N == null ? void 0 : N.getHeaderRowStyle()) == null ? void 0 : se.cl) == null ? void 0 : ue.rgb) != null ? de : "rgb(255, 255, 255)", Ze = V.getRange();
|
|
1150
1150
|
if (!(b != null && b.length))
|
|
1151
1151
|
return null;
|
|
1152
1152
|
const qe = b[b.length - 1].range, y = !pe.intersects(Ze, qe) && w.y <= 20;
|
|
@@ -1154,12 +1154,9 @@ const di = () => {
|
|
|
1154
1154
|
"div",
|
|
1155
1155
|
{
|
|
1156
1156
|
className: `
|
|
1157
|
-
univer-absolute univer-box-border univer-flex
|
|
1158
|
-
|
|
1159
|
-
univer-
|
|
1160
|
-
` : "univer-h-[24px]"}
|
|
1161
|
-
univer-cursor-pointer univer-items-center univer-rounded-xl univer-border univer-border-solid
|
|
1162
|
-
univer-border-gray-500 univer-pl-2 univer-pr-2 univer-shadow-xs
|
|
1157
|
+
univer-absolute univer-box-border univer-flex univer-cursor-pointer univer-items-center
|
|
1158
|
+
univer-rounded-xl univer-border univer-border-solid univer-border-gray-500 univer-pl-2
|
|
1159
|
+
univer-pr-2 univer-shadow-xs
|
|
1163
1160
|
`,
|
|
1164
1161
|
style: {
|
|
1165
1162
|
left: w.x,
|
|
@@ -1167,7 +1164,8 @@ const di = () => {
|
|
|
1167
1164
|
backgroundColor: B,
|
|
1168
1165
|
color: ce,
|
|
1169
1166
|
borderWidth: "0.5px",
|
|
1170
|
-
display: y ? "none" : "flex"
|
|
1167
|
+
display: y ? "none" : "flex",
|
|
1168
|
+
height: f ? `${f}px` : "24px"
|
|
1171
1169
|
},
|
|
1172
1170
|
children: [
|
|
1173
1171
|
/* @__PURE__ */ o("div", { className: "univer-text-nowrap", children: r === w.tableId ? /* @__PURE__ */ o(
|
|
@@ -1213,7 +1211,7 @@ const di = () => {
|
|
|
1213
1211
|
"div",
|
|
1214
1212
|
{
|
|
1215
1213
|
className: `
|
|
1216
|
-
univer-mb-1 univer-mt-1 univer-h-
|
|
1214
|
+
univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200
|
|
1217
1215
|
`
|
|
1218
1216
|
}
|
|
1219
1217
|
),
|
|
@@ -1274,7 +1272,7 @@ const di = () => {
|
|
|
1274
1272
|
"div",
|
|
1275
1273
|
{
|
|
1276
1274
|
className: `
|
|
1277
|
-
univer-mb-1 univer-mt-1 univer-h-
|
|
1275
|
+
univer-mb-1 univer-mt-1 univer-h-px univer-w-full univer-bg-gray-200
|
|
1278
1276
|
`
|
|
1279
1277
|
}
|
|
1280
1278
|
),
|
|
@@ -1321,9 +1319,9 @@ var hi = Object.getOwnPropertyDescriptor, vi = (r, e, t, n) => {
|
|
|
1321
1319
|
let rt = class extends Be {
|
|
1322
1320
|
constructor(e, t, n, i, a, s, c, h, d, u, v) {
|
|
1323
1321
|
super();
|
|
1324
|
-
F(this, "_anchorVisible$", new
|
|
1322
|
+
F(this, "_anchorVisible$", new Nt(!0));
|
|
1325
1323
|
F(this, "_timer");
|
|
1326
|
-
F(this, "_anchorPosition$", new
|
|
1324
|
+
F(this, "_anchorPosition$", new Nt([]));
|
|
1327
1325
|
F(this, "anchorPosition$", this._anchorPosition$.asObservable());
|
|
1328
1326
|
this._context = e, this._injector = t, this._sheetSkeletonManagerService = n, this._renderManagerService = i, this._commandService = a, this._univerInstanceService = s, this._uiPartsService = c, this._tableManager = h, this._scrollManagerService = d, this._workbookPermissionService = u, this._permissionService = v, this._initUI(), this._initListener(), this._initTableAnchor();
|
|
1329
1327
|
}
|
|
@@ -1393,16 +1391,16 @@ let rt = class extends Be {
|
|
|
1393
1391
|
}
|
|
1394
1392
|
};
|
|
1395
1393
|
rt = vi([
|
|
1396
|
-
J(1,
|
|
1397
|
-
J(2,
|
|
1394
|
+
J(1, x(Fe)),
|
|
1395
|
+
J(2, x(at)),
|
|
1398
1396
|
J(3, Zt),
|
|
1399
1397
|
J(4, ee),
|
|
1400
1398
|
J(5, Ce),
|
|
1401
1399
|
J(6, tn),
|
|
1402
|
-
J(7,
|
|
1403
|
-
J(8,
|
|
1404
|
-
J(9,
|
|
1405
|
-
J(10,
|
|
1400
|
+
J(7, x(te)),
|
|
1401
|
+
J(8, x(Yr)),
|
|
1402
|
+
J(9, x(rr)),
|
|
1403
|
+
J(10, x(Vt))
|
|
1406
1404
|
], rt);
|
|
1407
1405
|
const ke = 16;
|
|
1408
1406
|
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");
|
|
@@ -1470,7 +1468,7 @@ let gt = class extends Dr {
|
|
|
1470
1468
|
e.save();
|
|
1471
1469
|
const s = new Path2D();
|
|
1472
1470
|
s.rect(i, a, n, t), e.clip(s);
|
|
1473
|
-
const { buttonState: c } = this._filterParams, h = this._themeService.
|
|
1471
|
+
const { buttonState: c } = this._filterParams, h = this._themeService.getColorFromTheme("primary.600"), d = this._hovered ? this._themeService.getColorFromTheme("gray.50") : "rgba(255, 255, 255, 1.0)";
|
|
1474
1472
|
let u;
|
|
1475
1473
|
switch (c) {
|
|
1476
1474
|
case Le.FilteredSortNone:
|
|
@@ -1518,7 +1516,7 @@ let gt = class extends Dr {
|
|
|
1518
1516
|
gt = Si([
|
|
1519
1517
|
dt(2, ft),
|
|
1520
1518
|
dt(3, ee),
|
|
1521
|
-
dt(4,
|
|
1519
|
+
dt(4, x(jt))
|
|
1522
1520
|
], gt);
|
|
1523
1521
|
var _i = Object.getOwnPropertyDescriptor, Ti = (r, e, t, n) => {
|
|
1524
1522
|
for (var i = n > 1 ? void 0 : n ? _i(e, t) : e, a = r.length - 1, s; a >= 0; a--)
|
|
@@ -1592,7 +1590,7 @@ let mt = class extends Wt {
|
|
|
1592
1590
|
_interceptCellContent(e, t, n) {
|
|
1593
1591
|
const { startRow: i, startColumn: a, endColumn: s } = n;
|
|
1594
1592
|
this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Mn.CELL_CONTENT, {
|
|
1595
|
-
effect:
|
|
1593
|
+
effect: Nr.Style,
|
|
1596
1594
|
handler: (c, h, d) => {
|
|
1597
1595
|
const { row: u, col: v, unitId: S, subUnitId: C } = h;
|
|
1598
1596
|
return S !== e || C !== t || u !== i || v < a || v > s ? d(c) : d({
|
|
@@ -1612,13 +1610,13 @@ let mt = class extends Wt {
|
|
|
1612
1610
|
}
|
|
1613
1611
|
};
|
|
1614
1612
|
mt = Ti([
|
|
1615
|
-
Ie(1,
|
|
1616
|
-
Ie(2,
|
|
1617
|
-
Ie(3,
|
|
1618
|
-
Ie(4,
|
|
1613
|
+
Ie(1, x(Fe)),
|
|
1614
|
+
Ie(2, x(at)),
|
|
1615
|
+
Ie(3, x(jt)),
|
|
1616
|
+
Ie(4, x(ir)),
|
|
1619
1617
|
Ie(5, ee),
|
|
1620
1618
|
Ie(6, Xr),
|
|
1621
|
-
Ie(7,
|
|
1619
|
+
Ie(7, x(te))
|
|
1622
1620
|
], mt);
|
|
1623
1621
|
const wi = (r) => {
|
|
1624
1622
|
const { unitId: e, subUnitId: t, range: n, onCancel: i, onConfirm: a, tableId: s } = r, c = R(te), [h, d] = W(n), [u, v] = W(""), S = R(oe), C = R(Ce);
|
|
@@ -1697,14 +1695,14 @@ const wi = (r) => {
|
|
|
1697
1695
|
] })
|
|
1698
1696
|
] });
|
|
1699
1697
|
}, Ii = (r) => {
|
|
1700
|
-
var Ee, _e, Te, w, V,
|
|
1701
|
-
const { unitId: e, subUnitId: t, tableId: n } = r, i = R(ee), a = R(oe), s = R(te), c = s.getTableById(e, n), h = R(nr), d = R(
|
|
1698
|
+
var Ee, _e, Te, w, V, N, B, He, ce, Ze, ot, qe;
|
|
1699
|
+
const { unitId: e, subUnitId: t, tableId: n } = r, i = R(ee), a = R(oe), s = R(te), c = s.getTableById(e, n), h = R(nr), d = R(Ne), u = Me(h.rangeThemeMapChange$), v = Me(d.refreshTable$), S = R(xr), [, C] = W(Math.random()), _ = Me(s.tableThemeChanged$, {
|
|
1702
1700
|
theme: c == null ? void 0 : c.getTableStyleId(),
|
|
1703
1701
|
oldTheme: c == null ? void 0 : c.getTableStyleId(),
|
|
1704
1702
|
unitId: e,
|
|
1705
1703
|
subUnitId: t,
|
|
1706
1704
|
tableId: n
|
|
1707
|
-
}), k = h.getRegisteredRangeThemes().filter((g) => g == null ? void 0 : g.startsWith(Pn)), p = h.getALLRegisteredTheme(e).filter((g) => g == null ? void 0 : g.startsWith(ut)), E = c == null ? void 0 : c.getTableStyleId(), I = p.find((g) => g === E), P = I || p[0], b = h.getCustomRangeThemeStyle(e, P), m = (Te = (_e = (Ee = b == null ? void 0 : b.getHeaderRowStyle()) == null ? void 0 : Ee.bg) == null ? void 0 : _e.rgb) != null ? Te : be, L = (
|
|
1705
|
+
}), k = h.getRegisteredRangeThemes().filter((g) => g == null ? void 0 : g.startsWith(Pn)), p = h.getALLRegisteredTheme(e).filter((g) => g == null ? void 0 : g.startsWith(ut)), E = c == null ? void 0 : c.getTableStyleId(), I = p.find((g) => g === E), P = I || p[0], b = h.getCustomRangeThemeStyle(e, P), m = (Te = (_e = (Ee = b == null ? void 0 : b.getHeaderRowStyle()) == null ? void 0 : Ee.bg) == null ? void 0 : _e.rgb) != null ? Te : be, L = (N = (V = (w = b == null ? void 0 : b.getFirstRowStyle()) == null ? void 0 : w.bg) == null ? void 0 : V.rgb) != null ? N : be, M = (ce = (He = (B = b == null ? void 0 : b.getSecondRowStyle()) == null ? void 0 : B.bg) == null ? void 0 : He.rgb) != null ? ce : be, f = (qe = (ot = (Ze = b == null ? void 0 : b.getLastRowStyle()) == null ? void 0 : Ze.bg) == null ? void 0 : ot.rgb) != null ? qe : be, [A, O] = W(null), q = (g) => {
|
|
1708
1706
|
i.executeCommand(vt.id, {
|
|
1709
1707
|
unitId: e,
|
|
1710
1708
|
tableId: n,
|
|
@@ -1751,16 +1749,16 @@ const wi = (r) => {
|
|
|
1751
1749
|
return /* @__PURE__ */ T(
|
|
1752
1750
|
"div",
|
|
1753
1751
|
{
|
|
1754
|
-
className: "univer-h-10 univer-w-8 univer-cursor-pointer univer-p-
|
|
1752
|
+
className: "univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px",
|
|
1755
1753
|
onClick: () => q(g),
|
|
1756
1754
|
style: {
|
|
1757
1755
|
border: g === _.theme ? Pt : $e
|
|
1758
1756
|
},
|
|
1759
1757
|
children: [
|
|
1760
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1761
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1762
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1763
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1758
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z, border: `${Y}` } }),
|
|
1759
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: G, border: `${Y}` } }),
|
|
1760
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: ae, border: `${Y}` } }),
|
|
1761
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se, border: `${Y}` } })
|
|
1764
1762
|
]
|
|
1765
1763
|
},
|
|
1766
1764
|
g
|
|
@@ -1774,7 +1772,7 @@ const wi = (r) => {
|
|
|
1774
1772
|
{
|
|
1775
1773
|
className: `
|
|
1776
1774
|
univer-h-10 univer-w-8 univer-cursor-pointer univer-border univer-border-solid
|
|
1777
|
-
univer-border-gray-200 univer-p-
|
|
1775
|
+
univer-border-gray-200 univer-p-px univer-text-center univer-leading-10
|
|
1778
1776
|
`,
|
|
1779
1777
|
onClick: D,
|
|
1780
1778
|
children: "+"
|
|
@@ -1786,7 +1784,7 @@ const wi = (r) => {
|
|
|
1786
1784
|
return /* @__PURE__ */ T(
|
|
1787
1785
|
"div",
|
|
1788
1786
|
{
|
|
1789
|
-
className: "univer-relative univer-h-10 univer-w-8 univer-cursor-pointer univer-p-
|
|
1787
|
+
className: "univer-relative univer-h-10 univer-w-8 univer-cursor-pointer univer-p-px",
|
|
1790
1788
|
onClick: () => q(g),
|
|
1791
1789
|
style: {
|
|
1792
1790
|
border: g === _.theme ? Pt : $e
|
|
@@ -1794,10 +1792,10 @@ const wi = (r) => {
|
|
|
1794
1792
|
onMouseEnter: () => O(g),
|
|
1795
1793
|
onMouseLeave: () => O(null),
|
|
1796
1794
|
children: [
|
|
1797
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1798
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1799
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1800
|
-
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-
|
|
1795
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: z != null ? z : Y, border: `${z ? Y : $e}` } }),
|
|
1796
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: G != null ? G : Y, border: `${G ? Y : $e}` } }),
|
|
1797
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: ae != null ? ae : Y, border: `${ae ? Y : $e}` } }),
|
|
1798
|
+
/* @__PURE__ */ o("div", { className: "univer-box-border univer-h-2.5", style: { background: se != null ? se : Y, border: `${se ? Y : $e}` } }),
|
|
1801
1799
|
/* @__PURE__ */ o(
|
|
1802
1800
|
"div",
|
|
1803
1801
|
{
|
|
@@ -1820,7 +1818,7 @@ const wi = (r) => {
|
|
|
1820
1818
|
})
|
|
1821
1819
|
] }),
|
|
1822
1820
|
I && /* @__PURE__ */ T(St, { children: [
|
|
1823
|
-
/* @__PURE__ */ o("div", { className: "univer-h-
|
|
1821
|
+
/* @__PURE__ */ o("div", { className: "univer-h-px univer-w-full univer-bg-gray-200" }),
|
|
1824
1822
|
/* @__PURE__ */ T("div", { className: "univer-flex univer-flex-col univer-gap-2 univer-p-2", children: [
|
|
1825
1823
|
/* @__PURE__ */ T("div", { className: "univer-flex univer-h-9 univer-gap-2", children: [
|
|
1826
1824
|
/* @__PURE__ */ o(
|
|
@@ -2077,7 +2075,7 @@ const wi = (r) => {
|
|
|
2077
2075
|
function Mi(r) {
|
|
2078
2076
|
return {
|
|
2079
2077
|
id: yt.id,
|
|
2080
|
-
type:
|
|
2078
|
+
type: xe.BUTTON,
|
|
2081
2079
|
icon: lr,
|
|
2082
2080
|
tooltip: "sheets-table.title",
|
|
2083
2081
|
title: "sheets-table.title"
|
|
@@ -2086,25 +2084,25 @@ function Mi(r) {
|
|
|
2086
2084
|
function Ri(r) {
|
|
2087
2085
|
return {
|
|
2088
2086
|
id: Sr,
|
|
2089
|
-
type:
|
|
2087
|
+
type: xe.SUBITEMS,
|
|
2090
2088
|
icon: "Insert",
|
|
2091
2089
|
title: "sheets-table.insert.main",
|
|
2092
2090
|
hidden$: Tr(r)
|
|
2093
2091
|
};
|
|
2094
2092
|
}
|
|
2095
|
-
function
|
|
2093
|
+
function Ni(r) {
|
|
2096
2094
|
return {
|
|
2097
2095
|
id: _r,
|
|
2098
|
-
type:
|
|
2096
|
+
type: xe.SUBITEMS,
|
|
2099
2097
|
icon: "Reduce",
|
|
2100
2098
|
title: "sheets-table.remove.main",
|
|
2101
2099
|
hidden$: Tr(r)
|
|
2102
2100
|
};
|
|
2103
2101
|
}
|
|
2104
|
-
function
|
|
2102
|
+
function xi(r) {
|
|
2105
2103
|
return {
|
|
2106
2104
|
id: zt.id,
|
|
2107
|
-
type:
|
|
2105
|
+
type: xe.BUTTON,
|
|
2108
2106
|
title: "sheets-table.insert.row",
|
|
2109
2107
|
hidden$: yr(r)
|
|
2110
2108
|
};
|
|
@@ -2113,13 +2111,13 @@ function Ei(r) {
|
|
|
2113
2111
|
return {
|
|
2114
2112
|
id: Qt.id,
|
|
2115
2113
|
title: "sheets-table.insert.col",
|
|
2116
|
-
type:
|
|
2114
|
+
type: xe.BUTTON
|
|
2117
2115
|
};
|
|
2118
2116
|
}
|
|
2119
2117
|
function Li(r) {
|
|
2120
2118
|
return {
|
|
2121
2119
|
id: Yt.id,
|
|
2122
|
-
type:
|
|
2120
|
+
type: xe.BUTTON,
|
|
2123
2121
|
title: "sheets-table.remove.row",
|
|
2124
2122
|
hidden$: yr(r)
|
|
2125
2123
|
};
|
|
@@ -2128,7 +2126,7 @@ function $i(r) {
|
|
|
2128
2126
|
return {
|
|
2129
2127
|
id: qt.id,
|
|
2130
2128
|
title: "sheets-table.remove.col",
|
|
2131
|
-
type:
|
|
2129
|
+
type: xe.BUTTON
|
|
2132
2130
|
};
|
|
2133
2131
|
}
|
|
2134
2132
|
function Tr(r) {
|
|
@@ -2176,7 +2174,7 @@ const ki = {
|
|
|
2176
2174
|
menuItemFactory: Ri,
|
|
2177
2175
|
[zt.id]: {
|
|
2178
2176
|
order: 1,
|
|
2179
|
-
menuItemFactory:
|
|
2177
|
+
menuItemFactory: xi
|
|
2180
2178
|
},
|
|
2181
2179
|
[Qt.id]: {
|
|
2182
2180
|
order: 2,
|
|
@@ -2185,7 +2183,7 @@ const ki = {
|
|
|
2185
2183
|
},
|
|
2186
2184
|
[_r]: {
|
|
2187
2185
|
order: 6,
|
|
2188
|
-
menuItemFactory:
|
|
2186
|
+
menuItemFactory: Ni,
|
|
2189
2187
|
[Yt.id]: {
|
|
2190
2188
|
order: 1,
|
|
2191
2189
|
menuItemFactory: Li
|
|
@@ -2221,8 +2219,8 @@ let nt = class extends Be {
|
|
|
2221
2219
|
}
|
|
2222
2220
|
};
|
|
2223
2221
|
nt = Pi([
|
|
2224
|
-
Bt(0,
|
|
2225
|
-
Bt(1,
|
|
2222
|
+
Bt(0, x(Xt)),
|
|
2223
|
+
Bt(1, x(on))
|
|
2226
2224
|
], nt);
|
|
2227
2225
|
var Di = Object.getOwnPropertyDescriptor, Bi = (r, e, t, n) => {
|
|
2228
2226
|
for (var i = n > 1 ? void 0 : n ? Di(e, t) : e, a = r.length - 1, s; a >= 0; a--)
|
|
@@ -2261,10 +2259,10 @@ let pt = class extends Wt {
|
|
|
2261
2259
|
}
|
|
2262
2260
|
};
|
|
2263
2261
|
pt = Bi([
|
|
2264
|
-
Ke(1,
|
|
2265
|
-
Ke(2,
|
|
2266
|
-
Ke(3,
|
|
2267
|
-
Ke(4,
|
|
2262
|
+
Ke(1, x(Fe)),
|
|
2263
|
+
Ke(2, x(at)),
|
|
2264
|
+
Ke(3, x(te)),
|
|
2265
|
+
Ke(4, x(Ne))
|
|
2268
2266
|
], pt);
|
|
2269
2267
|
var Fi = Object.getOwnPropertyDescriptor, Hi = (r, e, t, n) => {
|
|
2270
2268
|
for (var i = n > 1 ? void 0 : n ? Fi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
|
|
@@ -2336,9 +2334,9 @@ let it = class extends Be {
|
|
|
2336
2334
|
}
|
|
2337
2335
|
};
|
|
2338
2336
|
it = Hi([
|
|
2339
|
-
ht(0,
|
|
2340
|
-
ht(1,
|
|
2341
|
-
ht(2,
|
|
2337
|
+
ht(0, x(ir)),
|
|
2338
|
+
ht(1, x(Ce)),
|
|
2339
|
+
ht(2, x(te))
|
|
2342
2340
|
], it);
|
|
2343
2341
|
var Vi = Object.getOwnPropertyDescriptor, Ai = (r, e, t, n) => {
|
|
2344
2342
|
for (var i = n > 1 ? void 0 : n ? Vi(e, t) : e, a = r.length - 1, s; a >= 0; a--)
|
|
@@ -2354,7 +2352,7 @@ let Ft = (et = class extends Er {
|
|
|
2354
2352
|
[De],
|
|
2355
2353
|
[Pe],
|
|
2356
2354
|
[nt],
|
|
2357
|
-
[
|
|
2355
|
+
[Ne],
|
|
2358
2356
|
[it]
|
|
2359
2357
|
]);
|
|
2360
2358
|
}
|
|
@@ -2363,7 +2361,7 @@ let Ft = (et = class extends Er {
|
|
|
2363
2361
|
[De],
|
|
2364
2362
|
[Pe],
|
|
2365
2363
|
[nt],
|
|
2366
|
-
[
|
|
2364
|
+
[Ne],
|
|
2367
2365
|
[it]
|
|
2368
2366
|
]);
|
|
2369
2367
|
}
|
|
@@ -2387,8 +2385,8 @@ let Ft = (et = class extends Er {
|
|
|
2387
2385
|
}
|
|
2388
2386
|
}, F(et, "pluginName", $n), F(et, "type", tt.UNIVER_SHEET), et);
|
|
2389
2387
|
Ft = Ai([
|
|
2390
|
-
Je(1,
|
|
2391
|
-
Je(2,
|
|
2388
|
+
Je(1, x(Fe)),
|
|
2389
|
+
Je(2, x(ee)),
|
|
2392
2390
|
Je(3, Ut),
|
|
2393
2391
|
Je(4, Zt)
|
|
2394
2392
|
], Ft);
|
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:4px}.univer-mb-3{margin-bottom:12px}.univer-ml-1{margin-left:4px}.univer-ml-2{margin-left:8px}.univer-mr-1{margin-right:4px}.univer-mr-2{margin-right:8px}.univer-mt-1{margin-top:4px}.univer-mt-2{margin-top:8px}.univer-mt-3{margin-top:12px}.univer-mt-4{margin-top:16px}.univer-box-border{box-sizing:border-box}.univer-inline-block{display:inline-block}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.\!univer-h-\[150px\]{height:150px!important}.univer-h-0{height:0px}.univer-h-10{height:40px}.univer-h-2{height:8px}.univer-h-3{height:12px}.univer-h-4{height:16px}.univer-h-40{height:160px}.univer-h-5{height:20px}.univer-h-60{height:240px}.univer-h-7{height:28px}.univer-h-9{height:36px}.univer-h-\[
|
|
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:4px}.univer-mb-3{margin-bottom:12px}.univer-ml-1{margin-left:4px}.univer-ml-2{margin-left:8px}.univer-mr-1{margin-right:4px}.univer-mr-2{margin-right:8px}.univer-mt-1{margin-top:4px}.univer-mt-2{margin-top:8px}.univer-mt-3{margin-top:12px}.univer-mt-4{margin-top:16px}.univer-box-border{box-sizing:border-box}.univer-inline-block{display:inline-block}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.\!univer-h-\[150px\]{height:150px!important}.univer-h-0{height:0px}.univer-h-10{height:40px}.univer-h-2{height:8px}.univer-h-2\.5{height:10px}.univer-h-3{height:12px}.univer-h-4{height:16px}.univer-h-40{height:160px}.univer-h-5{height:20px}.univer-h-60{height:240px}.univer-h-7{height:28px}.univer-h-9{height:36px}.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-2{width:8px}.univer-w-3{width:12px}.univer-w-4{width:16px}.univer-w-52{width:208px}.univer-w-8{width:32px}.univer-w-\[140px\]{width:140px}.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:64px}.univer-min-w-32{min-width:128px}.univer-max-w-24{max-width:96px}.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-default{cursor:default}.univer-cursor-pointer{cursor:pointer}.univer-flex-col{flex-direction:column}.univer-flex-wrap{flex-wrap:wrap}.univer-items-start{align-items:flex-start}.univer-items-center{align-items:center}.univer-justify-end{justify-content:flex-end}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-1{gap:4px}.univer-gap-2{gap:8px}.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-\[8px\]{border-radius:8px}.univer-rounded-md{border-radius:6px}.univer-rounded-none{border-radius:0}.univer-rounded-sm{border-radius:2px}.univer-rounded-xl{border-radius:12px}.univer-rounded-l-md{border-top-left-radius:6px;border-bottom-left-radius:6px}.univer-rounded-r-md{border-top-right-radius:6px;border-bottom-right-radius:6px}.univer-border{border-width:1px}.univer-border-solid{border-style:solid}.univer-border-gray-200{--tw-border-opacity: 1;border-color:#e3e5ea;border-color:rgba(227,229,234,var(--tw-border-opacity, 1))}.univer-border-gray-500{--tw-border-opacity: 1;border-color:#4e5565;border-color:rgba(78,85,101,var(--tw-border-opacity, 1))}.univer-bg-gray-100{--tw-bg-opacity: 1;background-color:#eeeff1;background-color:rgba(238,239,241,var(--tw-bg-opacity, 1))}.univer-bg-gray-200{--tw-bg-opacity: 1;background-color:#e3e5ea;background-color:rgba(227,229,234,var(--tw-bg-opacity, 1))}.univer-bg-slate-400{--tw-bg-opacity: 1;background-color:#94a3b8;background-color:rgba(148,163,184,var(--tw-bg-opacity, 1))}.univer-bg-white{--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity, 1))}.univer-p-1{padding:4px}.univer-p-2{padding:8px}.univer-p-4{padding:16px}.univer-p-px{padding:1px}.univer-px-2{padding-left:8px;padding-right:8px}.univer-py-1{padding-top:4px;padding-bottom:4px}.univer-py-1\.5{padding-top:6px;padding-bottom:6px}.univer-pb-1{padding-bottom:4px}.univer-pb-2{padding-bottom:8px}.univer-pl-2{padding-left:8px}.univer-pr-2{padding-right:8px}.univer-pt-1{padding-top:4px}.univer-pt-2{padding-top:8px}.univer-text-center{text-align:center}.univer-text-\[13px\]{font-size:13px}.univer-text-base{font-size:16px;line-height:24px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-xs{font-size:12px;line-height:16px}.univer-font-normal{font-weight:400}.univer-leading-10{line-height:40px}.univer-leading-9{line-height:36px}.univer-leading-\[10px\]{line-height:10px}.univer-text-gray-400{--tw-text-opacity: 1;color:#7d8698;color:rgba(125,134,152,var(--tw-text-opacity, 1))}.univer-text-red-500{--tw-text-opacity: 1;color:#f05252;color:rgba(240,82,82,var(--tw-text-opacity, 1))}.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)}.hover\:univer-cursor-pointer:hover{cursor:pointer}.hover\:univer-bg-gray-100:hover{--tw-bg-opacity: 1;background-color:#eeeff1;background-color:rgba(238,239,241,var(--tw-bg-opacity, 1))}.hover\:univer-bg-gray-200:hover{--tw-bg-opacity: 1;background-color:#e3e5ea;background-color:rgba(227,229,234,var(--tw-bg-opacity, 1))}
|