@pibit.ai/cure-design-system 0.6.4 → 0.6.6
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/dist/applications/date-picker/calendar.d.ts +1 -1
- package/dist/applications/date-picker/calendar.d.ts.map +1 -1
- package/dist/applications/date-picker/calendar.js +162 -157
- package/dist/applications/date-picker/cell.d.ts.map +1 -1
- package/dist/applications/date-picker/cell.js +58 -51
- package/dist/applications/date-picker/date-input.d.ts +2 -2
- package/dist/applications/date-picker/date-input.d.ts.map +1 -1
- package/dist/applications/date-picker/date-input.js +21 -17
- package/dist/applications/date-picker/date-picker.d.ts +4 -1
- package/dist/applications/date-picker/date-picker.d.ts.map +1 -1
- package/dist/applications/date-picker/date-picker.js +136 -116
- package/dist/applications/date-picker/date-range-picker.d.ts +4 -0
- package/dist/applications/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/applications/date-picker/date-range-picker.js +245 -197
- package/dist/applications/date-picker/date-time-calendar.d.ts +1 -1
- package/dist/applications/date-picker/date-time-calendar.d.ts.map +1 -1
- package/dist/applications/date-picker/date-time-calendar.js +70 -60
- package/dist/applications/date-picker/range-calendar.d.ts +1 -1
- package/dist/applications/date-picker/range-calendar.d.ts.map +1 -1
- package/dist/applications/date-picker/range-calendar.js +99 -90
- package/dist/applications/date-picker/range-preset.d.ts +4 -1
- package/dist/applications/date-picker/range-preset.d.ts.map +1 -1
- package/dist/applications/date-picker/range-preset.js +23 -17
- package/dist/applications/date-picker/sizes.d.ts +12 -0
- package/dist/applications/date-picker/sizes.d.ts.map +1 -0
- package/dist/applications/date-picker/sizes.js +22 -0
- package/dist/applications/date-picker/styles.js +1 -1
- package/dist/applications/date-picker/time-field.js +21 -21
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +167 -166
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +122 -121
- package/dist/patterns/table/toolbar/ToolbarRadio.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/ToolbarRadio.js +17 -16
- package/dist/patterns/table-component/TableComponent.d.ts.map +1 -1
- package/dist/patterns/table-component/TableComponent.js +100 -99
- package/dist/primitives/checkbox/checkbox.d.ts +53 -19
- package/dist/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/dist/primitives/checkbox/checkbox.js +164 -45
- package/dist/primitives/checkbox/index.d.ts +1 -1
- package/dist/primitives/checkbox/index.d.ts.map +1 -1
- package/dist/primitives/dropdown/dropdown.d.ts.map +1 -1
- package/dist/primitives/dropdown/dropdown.js +18 -18
- package/dist/primitives/select/multi-select.d.ts.map +1 -1
- package/dist/primitives/select/multi-select.js +419 -422
- package/dist/primitives/toggle/toggle.d.ts.map +1 -1
- package/dist/primitives/toggle/toggle.js +4 -1
- package/dist/styles/components.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarRadio.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/ToolbarRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAGL,KAAK,eAAe,IAAI,mBAAmB,EAC3C,KAAK,UAAU,IAAI,cAAc,EAClC,MAAM,uBAAuB,CAAC;AAG/B,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AAwCD,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ToolbarRadio.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/ToolbarRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAGL,KAAK,eAAe,IAAI,mBAAmB,EAC3C,KAAK,UAAU,IAAI,cAAc,EAClC,MAAM,uBAAuB,CAAC;AAG/B,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AAwCD,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA6B5C,CAAC;AAEF,UAAU,eAAgB,SAAQ,qBAAqB,EAAE,mBAAmB;IAC1E,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAM1C,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { jsx as n, jsxs as c, Fragment as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as f, useContext as p } from "react";
|
|
3
3
|
import { RadioGroup as g, Radio as b } from "react-aria-components";
|
|
4
4
|
import { cx as a } from "../../../utils/cn.js";
|
|
5
|
-
const
|
|
5
|
+
const l = f(null), x = ({
|
|
6
6
|
className: r,
|
|
7
|
-
isFocusVisible:
|
|
8
|
-
isSelected:
|
|
7
|
+
isFocusVisible: o,
|
|
8
|
+
isSelected: e,
|
|
9
9
|
isDisabled: i,
|
|
10
10
|
size: t = "sm"
|
|
11
11
|
}) => /* @__PURE__ */ n(
|
|
@@ -14,9 +14,9 @@ const d = f(null), x = ({
|
|
|
14
14
|
className: a(
|
|
15
15
|
"flex size-4 min-h-4 min-w-4 cursor-pointer appearance-none items-center justify-center rounded-full bg-primary ring-1 ring-primary ring-inset",
|
|
16
16
|
t === "md" && "size-5 min-h-5 min-w-5",
|
|
17
|
-
|
|
17
|
+
e && !i && "bg-brand-solid ring-bg-brand-solid",
|
|
18
18
|
i && "cursor-not-allowed border-disabled bg-disabled_subtle",
|
|
19
|
-
|
|
19
|
+
o && "outline-2 outline-offset-2 outline-focus-ring",
|
|
20
20
|
r
|
|
21
21
|
),
|
|
22
22
|
children: /* @__PURE__ */ n(
|
|
@@ -26,29 +26,30 @@ const d = f(null), x = ({
|
|
|
26
26
|
"size-1.5 rounded-full bg-fg-white opacity-0 transition-inherit-all",
|
|
27
27
|
t === "md" && "size-2",
|
|
28
28
|
i && "bg-fg-disabled_subtle",
|
|
29
|
-
|
|
29
|
+
e && "opacity-100"
|
|
30
30
|
)
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
}
|
|
34
|
-
),
|
|
35
|
-
const t = p(
|
|
36
|
-
return
|
|
34
|
+
), w = ({ label: r, className: o, size: e = "sm", ...i }) => {
|
|
35
|
+
const t = p(l);
|
|
36
|
+
return e = (t == null ? void 0 : t.size) ?? e, /* @__PURE__ */ n(
|
|
37
37
|
b,
|
|
38
38
|
{
|
|
39
39
|
...i,
|
|
40
40
|
className: (s) => a(
|
|
41
|
-
|
|
41
|
+
// `relative` keeps React Aria's hidden input inside the label, so focusing it never scrolls the page.
|
|
42
|
+
"relative flex items-center gap-2",
|
|
42
43
|
s.isDisabled && "cursor-not-allowed",
|
|
43
|
-
typeof
|
|
44
|
+
typeof o == "function" ? o(s) : o
|
|
44
45
|
),
|
|
45
|
-
children: ({ isSelected: s, isDisabled:
|
|
46
|
+
children: ({ isSelected: s, isDisabled: d, isFocusVisible: m }) => /* @__PURE__ */ c(u, { children: [
|
|
46
47
|
/* @__PURE__ */ n(
|
|
47
48
|
x,
|
|
48
49
|
{
|
|
49
|
-
size:
|
|
50
|
+
size: e,
|
|
50
51
|
isSelected: s,
|
|
51
|
-
isDisabled:
|
|
52
|
+
isDisabled: d,
|
|
52
53
|
isFocusVisible: m
|
|
53
54
|
}
|
|
54
55
|
),
|
|
@@ -56,8 +57,8 @@ const d = f(null), x = ({
|
|
|
56
57
|
] })
|
|
57
58
|
}
|
|
58
59
|
);
|
|
59
|
-
}, G = ({ children: r, className:
|
|
60
|
+
}, G = ({ children: r, className: o, size: e = "sm", ...i }) => /* @__PURE__ */ n(l.Provider, { value: { size: e }, children: /* @__PURE__ */ n(g, { ...i, className: a("flex flex-col gap-4", o), children: r }) });
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
w as RadioButton,
|
|
62
63
|
G as RadioGroup
|
|
63
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableComponent.d.ts","sourceRoot":"","sources":["../../../src/patterns/table-component/TableComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAYL,KAAK,YAAY,EAKjB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAqEf,OAAO,KAAK,EAIV,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA8VjB,iBAAS,mBAAmB,CAAC,KAAK,SAAS,MAAM,EAC/C,EACE,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,IAAW,EACX,OAAe,EACf,eAA2C,EAC3C,UAA4B,EAC5B,WAAmB,EACnB,gBAAwB,EACxB,SAAiB,EACjB,IAAI,EACJ,YAAoB,EACpB,SAAS,EACT,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EAAE,2BAA2B,EAC9C,wBAA6B,EAC7B,yBAAyB,EACzB,aAAqB,EACrB,OAAO,EAAE,iBAAiB,EAC1B,cAAmB,EACnB,eAAe,EACf,gBAAgB,EAAE,0BAA0B,EAC5C,uBAA4B,EAC5B,wBAAwB,EACxB,WAAW,EAAE,qBAAqB,EAClC,kBAAuB,EACvB,mBAAmB,EACnB,mBAA2B,EAC3B,kBAA0B,EAC1B,YAAiB,EACjB,oBAAoB,EACpB,aAAsB,EACtB,YAAY,EAAE,sBAAsB,EACpC,mBAAwB,EACxB,oBAAoB,EACpB,QAAQ,EAAE,kBAAkB,EAC5B,eAAoB,EACpB,gBAAgB,EAChB,aAA0B,EAC1B,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,GACtB,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAC7B,GAAG,EAAE,YAAY,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"TableComponent.d.ts","sourceRoot":"","sources":["../../../src/patterns/table-component/TableComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAYL,KAAK,YAAY,EAKjB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAqEf,OAAO,KAAK,EAIV,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA8VjB,iBAAS,mBAAmB,CAAC,KAAK,SAAS,MAAM,EAC/C,EACE,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,IAAW,EACX,OAAe,EACf,eAA2C,EAC3C,UAA4B,EAC5B,WAAmB,EACnB,gBAAwB,EACxB,SAAiB,EACjB,IAAI,EACJ,YAAoB,EACpB,SAAS,EACT,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EAAE,2BAA2B,EAC9C,wBAA6B,EAC7B,yBAAyB,EACzB,aAAqB,EACrB,OAAO,EAAE,iBAAiB,EAC1B,cAAmB,EACnB,eAAe,EACf,gBAAgB,EAAE,0BAA0B,EAC5C,uBAA4B,EAC5B,wBAAwB,EACxB,WAAW,EAAE,qBAAqB,EAClC,kBAAuB,EACvB,mBAAmB,EACnB,mBAA2B,EAC3B,kBAA0B,EAC1B,YAAiB,EACjB,oBAAoB,EACpB,aAAsB,EACtB,YAAY,EAAE,sBAAsB,EACpC,mBAAwB,EACxB,oBAAoB,EACpB,QAAQ,EAAE,kBAAkB,EAC5B,eAAoB,EACpB,gBAAgB,EAChB,aAA0B,EAC1B,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,GACtB,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAC7B,GAAG,EAAE,YAAY,CAAC,cAAc,CAAC,2CA4iDlC;AAED,eAAO,MAAM,cAAc,EAAsC,CAC/D,KAAK,SAAS,MAAM,EAEpB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,KAC9D,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE5C,eAAe,cAAc,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as x, Fragment as Bt } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as jt, useCallback as f, useMemo as M, useRef as S, useState as K, useLayoutEffect as Pt, useSyncExternalStore as or, useEffect as ir, Fragment as sr, useImperativeHandle as lr } from "react";
|
|
3
3
|
import { createPortal as nt } from "react-dom";
|
|
4
4
|
import { functionalUpdate as Yt, useTable as ar } from "@tanstack/react-table";
|
|
5
|
-
import { ArrowDown as
|
|
5
|
+
import { ArrowDown as dr, ChevronSelectorVertical as cr, ChevronRight as Wt } from "@untitledui/icons";
|
|
6
6
|
import { Checkbox as Ot } from "../../primitives/checkbox/checkbox.js";
|
|
7
7
|
import { ShimmerLine as ur } from "../../primitives/shimmer/shimmer.js";
|
|
8
8
|
import { cn as w } from "../../utils/cn.js";
|
|
@@ -13,12 +13,12 @@ import { GridNavProvider as br } from "../table/useGridKeyboardNavigation.js";
|
|
|
13
13
|
import { ROW_DRAG_SOURCE_STYLE as wr, ROW_SOURCE_INDEX_ATTR as xr, ROW_REORDER_ATTR as yr, FloatingRowPreview as vr, DropIndicatorLine as Cr } from "../table/rowReorderDrag.js";
|
|
14
14
|
import { buildTableComponentColumns as Sr } from "./buildTableColumns.js";
|
|
15
15
|
import { resolveColumnDropTarget as Ir, getRenderedColumnPreviewValues as Er, previewCellValue as Lr, getColumnDragViewport as Rr, COLUMN_REORDER_PARENT_ATTR as Nr, COLUMN_REORDER_ID_ATTR as Tr, getColumnDragScrollDelta as Dr, COLUMN_DRAG_THRESHOLD_PX as Mt } from "./columnReorderDrag.js";
|
|
16
|
-
import { HEADER_PADDING_CLASS as _r, ROW_HEIGHT_CLASS as
|
|
16
|
+
import { HEADER_PADDING_CLASS as _r, ROW_HEIGHT_CLASS as At, CELL_PADDING_CLASS as kt } from "./rowMetrics.js";
|
|
17
17
|
import { tableComponentFeatures as zr } from "./tableFeatures.js";
|
|
18
18
|
import { TableZoomControl as Pr } from "../table/TableZoomControl.js";
|
|
19
19
|
import { useFitTableToViewport as Wr } from "../table/useFitTableToViewport.js";
|
|
20
20
|
import { useTableZoomState as Or } from "../table/useTableZoomState.js";
|
|
21
|
-
import { DEFAULT_TABLE_ZOOM_MIN as Mr, parsePxValue as De, DEFAULT_ZOOMABLE_COLUMN_MIN_WIDTH as Qe, supportsCssZoom as
|
|
21
|
+
import { DEFAULT_TABLE_ZOOM_MIN as Mr, parsePxValue as De, DEFAULT_ZOOMABLE_COLUMN_MIN_WIDTH as Qe, supportsCssZoom as Ar, computeFillBaseWidth as kr, computeEffectiveTableWidth as Fr, computeFlexColumnWidth as Vr, getTableZoomFontSize as $r, computeNeedsHorizontalScroll as Hr, DEFAULT_COLUMN_MAX_WIDTH as Xr } from "../table/tableZoomLayout.js";
|
|
22
22
|
const Ur = 5, Br = 120, jr = 800, Yr = ({ preview: o }) => nt(
|
|
23
23
|
/* @__PURE__ */ x(
|
|
24
24
|
"div",
|
|
@@ -70,8 +70,8 @@ const Ur = 5, Br = 120, jr = 800, Yr = ({ preview: o }) => nt(
|
|
|
70
70
|
u,
|
|
71
71
|
() => ({
|
|
72
72
|
show: (g, E) => {
|
|
73
|
-
const h = I.current,
|
|
74
|
-
!h || !
|
|
73
|
+
const h = I.current, k = y.current;
|
|
74
|
+
!h || !k || (h.style.display = "", h.style.left = `${g.lineLeft}px`, h.style.top = `${g.top}px`, h.style.height = `${g.height}px`, h.style.opacity = E ? "1" : "0.7", k.style.display = E ? "" : "none", k.style.left = `${g.columnLeft}px`, k.style.top = `${g.top}px`, k.style.height = `${g.height}px`);
|
|
75
75
|
},
|
|
76
76
|
hide: () => {
|
|
77
77
|
I.current && (I.current.style.display = "none"), y.current && (y.current.style.display = "none");
|
|
@@ -108,7 +108,7 @@ const Ur = 5, Br = 120, jr = 800, Yr = ({ preview: o }) => nt(
|
|
|
108
108
|
},
|
|
109
109
|
() => !0,
|
|
110
110
|
() => !1
|
|
111
|
-
), qr =
|
|
111
|
+
), qr = Ar(), Jr = (o) => o === "center" ? "text-center" : o === "right" ? "text-right" : "text-left", Ft = (o) => o === "center" ? "justify-center" : o === "right" ? "justify-end" : "justify-start", Te = (o, l) => {
|
|
112
112
|
const u = o.__sourceIndex;
|
|
113
113
|
return typeof u == "number" ? u : Number.isFinite(l) ? l : null;
|
|
114
114
|
}, Vt = (o) => o instanceof HTMLElement && !!o.closest(
|
|
@@ -116,7 +116,7 @@ const Ur = 5, Br = 120, jr = 800, Yr = ({ preview: o }) => nt(
|
|
|
116
116
|
), ne = (o, l, u) => {
|
|
117
117
|
const [y, I] = K(l), g = o ?? y, E = S(g), h = S(u);
|
|
118
118
|
E.current = g, h.current = u;
|
|
119
|
-
const
|
|
119
|
+
const k = f(
|
|
120
120
|
(_) => {
|
|
121
121
|
var z;
|
|
122
122
|
const V = Yt(_, E.current);
|
|
@@ -124,7 +124,7 @@ const Ur = 5, Br = 120, jr = 800, Yr = ({ preview: o }) => nt(
|
|
|
124
124
|
},
|
|
125
125
|
[o]
|
|
126
126
|
);
|
|
127
|
-
return [g,
|
|
127
|
+
return [g, k];
|
|
128
128
|
}, $t = (o, l) => {
|
|
129
129
|
if (!o) return;
|
|
130
130
|
const u = o.sticky ? {
|
|
@@ -175,7 +175,7 @@ function to({
|
|
|
175
175
|
size: g = "xs",
|
|
176
176
|
loading: E = !1,
|
|
177
177
|
loadingRowCount: h = Ur,
|
|
178
|
-
emptyState:
|
|
178
|
+
emptyState: k = "No data found",
|
|
179
179
|
showBorders: _ = !1,
|
|
180
180
|
removeRowBorders: V = !1,
|
|
181
181
|
fillWidth: z = !1,
|
|
@@ -202,8 +202,8 @@ function to({
|
|
|
202
202
|
defaultSorting: sn = [],
|
|
203
203
|
onSortingChange: ln,
|
|
204
204
|
columnVisibility: an,
|
|
205
|
-
defaultColumnVisibility:
|
|
206
|
-
onColumnVisibilityChange:
|
|
205
|
+
defaultColumnVisibility: dn = {},
|
|
206
|
+
onColumnVisibilityChange: cn,
|
|
207
207
|
columnOrder: un,
|
|
208
208
|
defaultColumnOrder: mn = [],
|
|
209
209
|
onColumnOrderChange: pn,
|
|
@@ -219,9 +219,9 @@ function to({
|
|
|
219
219
|
defaultExpanded: yn = {},
|
|
220
220
|
onExpandedChange: vn,
|
|
221
221
|
expansionMode: Me = "multiple",
|
|
222
|
-
getRowCanExpand:
|
|
222
|
+
getRowCanExpand: Ae,
|
|
223
223
|
renderExpandedContent: fe,
|
|
224
|
-
onCellClick:
|
|
224
|
+
onCellClick: ke,
|
|
225
225
|
onCellDoubleClick: Fe,
|
|
226
226
|
onCellActivate: Z,
|
|
227
227
|
cellSelection: ge,
|
|
@@ -240,8 +240,8 @@ function to({
|
|
|
240
240
|
ln
|
|
241
241
|
), [Dn, _n] = ne(
|
|
242
242
|
an,
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
dn,
|
|
244
|
+
cn
|
|
245
245
|
), [zn, Ve] = ne(
|
|
246
246
|
un,
|
|
247
247
|
mn,
|
|
@@ -259,7 +259,7 @@ function to({
|
|
|
259
259
|
Me,
|
|
260
260
|
void 0,
|
|
261
261
|
$e
|
|
262
|
-
),
|
|
262
|
+
), An = f(
|
|
263
263
|
(t) => {
|
|
264
264
|
at(
|
|
265
265
|
(e) => Ut(
|
|
@@ -271,18 +271,18 @@ function to({
|
|
|
271
271
|
);
|
|
272
272
|
},
|
|
273
273
|
[Me, $e, at]
|
|
274
|
-
), [
|
|
274
|
+
), [dt, ct] = ne(
|
|
275
275
|
tn,
|
|
276
276
|
nn,
|
|
277
277
|
rn
|
|
278
278
|
), He = M(
|
|
279
|
-
() => new Set(
|
|
280
|
-
[
|
|
281
|
-
),
|
|
282
|
-
(t) =>
|
|
279
|
+
() => new Set(dt),
|
|
280
|
+
[dt]
|
|
281
|
+
), kn = f(
|
|
282
|
+
(t) => ct(
|
|
283
283
|
(e) => e.includes(t) ? e.filter((r) => r !== t) : [...e, t]
|
|
284
284
|
),
|
|
285
|
-
[
|
|
285
|
+
[ct]
|
|
286
286
|
), F = S(null), [ae, ut] = K(null), Fn = Wr({
|
|
287
287
|
containerRef: F,
|
|
288
288
|
zoomConfig: $,
|
|
@@ -312,8 +312,8 @@ function to({
|
|
|
312
312
|
const a = Xt(oe, i.id);
|
|
313
313
|
return a === void 0 ? void 0 : et(i, a, le);
|
|
314
314
|
}, e = l.reduce((i, a) => {
|
|
315
|
-
const
|
|
316
|
-
return
|
|
315
|
+
const c = t(a);
|
|
316
|
+
return c !== void 0 ? i + c : tt(a) ? i + De(a.maxWidth) : i;
|
|
317
317
|
}, 0), r = l.filter(
|
|
318
318
|
(i) => t(i) === void 0 && !tt(i)
|
|
319
319
|
);
|
|
@@ -325,7 +325,7 @@ function to({
|
|
|
325
325
|
0
|
|
326
326
|
) + e, fixedTotal: e, flexibleCount: r.length };
|
|
327
327
|
}, [z, l, oe, R, le]), Xe = M(
|
|
328
|
-
() => N ?
|
|
328
|
+
() => N ? kr(ae, N.minTableWidth) : null,
|
|
329
329
|
[ae, N]
|
|
330
330
|
), Ue = Hr(
|
|
331
331
|
Xe,
|
|
@@ -355,7 +355,7 @@ function to({
|
|
|
355
355
|
width: `${mt}px`,
|
|
356
356
|
minWidth: t.minWidth ?? (R ? Qe : `${_e}px`)
|
|
357
357
|
};
|
|
358
|
-
},
|
|
358
|
+
}, de = M(
|
|
359
359
|
() => new Map(l.map((t) => [t.id, t])),
|
|
360
360
|
[l]
|
|
361
361
|
), Vn = M(
|
|
@@ -370,7 +370,7 @@ function to({
|
|
|
370
370
|
enableCellSpanning: !0,
|
|
371
371
|
enableRowSelection: pe !== "none",
|
|
372
372
|
enableMultiRowSelection: pe === "multiple",
|
|
373
|
-
getRowCanExpand:
|
|
373
|
+
getRowCanExpand: Ae && fe ? (t) => Ae(t.original) : () => !1,
|
|
374
374
|
state: {
|
|
375
375
|
sorting: Nn,
|
|
376
376
|
columnVisibility: Dn,
|
|
@@ -382,12 +382,12 @@ function to({
|
|
|
382
382
|
onColumnVisibilityChange: _n,
|
|
383
383
|
onColumnOrderChange: Ve,
|
|
384
384
|
onRowSelectionChange: Wn,
|
|
385
|
-
onExpandedChange:
|
|
386
|
-
}), [Be, pt] = K(null), [ft, gt] = K(null), [ht, je] = K(null), X = S(null),
|
|
385
|
+
onExpandedChange: An
|
|
386
|
+
}), [Be, pt] = K(null), [ft, gt] = K(null), [ht, je] = K(null), X = S(null), ce = S(null), B = S(0), Ye = fn && l.length > 1, ye = gn && !!me, T = S(null), j = S(null), bt = S(oe);
|
|
387
387
|
bt.current = oe;
|
|
388
|
-
const [wt, xt] = K(null), G = S(null),
|
|
388
|
+
const [wt, xt] = K(null), G = S(null), A = S(null), $n = Gr(), Y = C.getRowModel().rows, q = f(() => {
|
|
389
389
|
var t;
|
|
390
|
-
(t =
|
|
390
|
+
(t = ce.current) == null || t.call(ce), ce.current = null, B.current && (cancelAnimationFrame(B.current), B.current = 0);
|
|
391
391
|
}, []), yt = f(() => {
|
|
392
392
|
X.current = null, pt(null), gt(null), je(null);
|
|
393
393
|
}, []), vt = f(
|
|
@@ -395,14 +395,14 @@ function to({
|
|
|
395
395
|
if (t === e) return;
|
|
396
396
|
const n = C.getAllLeafColumns().map((p) => p.id), i = n.indexOf(t), a = n.indexOf(e);
|
|
397
397
|
if (i < 0 || a < 0) return;
|
|
398
|
-
const
|
|
398
|
+
const c = n.filter(
|
|
399
399
|
(p) => p !== t
|
|
400
|
-
), P =
|
|
401
|
-
|
|
400
|
+
), P = c.indexOf(e);
|
|
401
|
+
c.splice(
|
|
402
402
|
P + (r === "after" ? 1 : 0),
|
|
403
403
|
0,
|
|
404
404
|
t
|
|
405
|
-
), Ve(
|
|
405
|
+
), Ve(c);
|
|
406
406
|
},
|
|
407
407
|
[Ve, C]
|
|
408
408
|
), ve = f(
|
|
@@ -452,7 +452,7 @@ function to({
|
|
|
452
452
|
ir(
|
|
453
453
|
() => () => {
|
|
454
454
|
var t, e;
|
|
455
|
-
q(), (t = T.current) == null || t.call(T), T.current = null, (e =
|
|
455
|
+
q(), (t = T.current) == null || t.call(T), T.current = null, (e = A.current) == null || e.call(A), A.current = null, j.current = null, X.current = null;
|
|
456
456
|
},
|
|
457
457
|
[q]
|
|
458
458
|
);
|
|
@@ -488,15 +488,15 @@ function to({
|
|
|
488
488
|
t && ((e = G.current) == null || e.show(t, !0));
|
|
489
489
|
}, [Et, J]), D = f(() => {
|
|
490
490
|
var t, e;
|
|
491
|
-
(t =
|
|
491
|
+
(t = A.current) == null || t.call(A), A.current = null, (e = G.current) == null || e.hide();
|
|
492
492
|
}, []), Lt = f(
|
|
493
493
|
(t) => {
|
|
494
494
|
var n;
|
|
495
495
|
if (j.current) return;
|
|
496
496
|
const e = It(t);
|
|
497
|
-
if (!e || ((n = G.current) == null || n.show(e, !1),
|
|
497
|
+
if (!e || ((n = G.current) == null || n.show(e, !1), A.current)) return;
|
|
498
498
|
const r = { capture: !0, passive: !0 };
|
|
499
|
-
window.addEventListener("scroll", D, r), window.addEventListener("wheel", D, r), window.addEventListener("touchmove", D, r), window.addEventListener("resize", D),
|
|
499
|
+
window.addEventListener("scroll", D, r), window.addEventListener("wheel", D, r), window.addEventListener("touchmove", D, r), window.addEventListener("resize", D), A.current = () => {
|
|
500
500
|
window.removeEventListener("scroll", D, r), window.removeEventListener("wheel", D, r), window.removeEventListener("touchmove", D, r), window.removeEventListener("resize", D);
|
|
501
501
|
};
|
|
502
502
|
},
|
|
@@ -513,18 +513,18 @@ function to({
|
|
|
513
513
|
e.preventDefault(), e.stopPropagation(), (Ne = T.current) == null || Ne.call(T);
|
|
514
514
|
const r = e.currentTarget.closest("th");
|
|
515
515
|
if (!r) return;
|
|
516
|
-
const n =
|
|
516
|
+
const n = de.get(t), i = r.getBoundingClientRect().width / H, a = e.clientX, c = e.pointerId, P = document.body.style.cursor, p = document.body.style.userSelect;
|
|
517
517
|
document.body.style.userSelect = "none";
|
|
518
518
|
const m = document.createElement("style");
|
|
519
519
|
m.textContent = "*, *::before, *::after { cursor: col-resize !important; }", document.head.appendChild(m), D(), j.current = r, xt(t);
|
|
520
|
-
const
|
|
521
|
-
|
|
520
|
+
const d = J(r);
|
|
521
|
+
d && ((zt = G.current) == null || zt.show(d, !0));
|
|
522
522
|
let b = null;
|
|
523
523
|
const W = () => {
|
|
524
524
|
var U, te;
|
|
525
525
|
(U = T.current) == null || U.call(T), T.current = null, j.current = null, xt(null), (te = G.current) == null || te.hide();
|
|
526
526
|
}, O = (U) => {
|
|
527
|
-
if (U.pointerId !==
|
|
527
|
+
if (U.pointerId !== c) return;
|
|
528
528
|
U.preventDefault();
|
|
529
529
|
const te = et(
|
|
530
530
|
n,
|
|
@@ -533,7 +533,7 @@ function to({
|
|
|
533
533
|
);
|
|
534
534
|
te !== b && (b = te, me({ ...bt.current, [t]: te }));
|
|
535
535
|
}, v = (U) => {
|
|
536
|
-
U.pointerId ===
|
|
536
|
+
U.pointerId === c && W();
|
|
537
537
|
};
|
|
538
538
|
window.addEventListener("pointermove", O), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), window.addEventListener("scroll", Se, !0), window.addEventListener("blur", W), T.current = () => {
|
|
539
539
|
window.removeEventListener("pointermove", O), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v), window.removeEventListener("scroll", Se, !0), window.removeEventListener("blur", W), m.remove(), document.body.style.cursor = P, document.body.style.userSelect = p;
|
|
@@ -541,7 +541,7 @@ function to({
|
|
|
541
541
|
},
|
|
542
542
|
[
|
|
543
543
|
ye,
|
|
544
|
-
|
|
544
|
+
de,
|
|
545
545
|
D,
|
|
546
546
|
J,
|
|
547
547
|
me,
|
|
@@ -582,12 +582,12 @@ function to({
|
|
|
582
582
|
}
|
|
583
583
|
const a = (m) => {
|
|
584
584
|
var W;
|
|
585
|
-
const
|
|
586
|
-
if (!
|
|
587
|
-
|
|
588
|
-
const b = Math.abs(m.clientX -
|
|
589
|
-
if (!(!
|
|
590
|
-
if (m.preventDefault(),
|
|
585
|
+
const d = X.current;
|
|
586
|
+
if (!d || d.pointerId !== m.pointerId) return;
|
|
587
|
+
d.currentX = m.clientX, d.currentY = m.clientY;
|
|
588
|
+
const b = Math.abs(m.clientX - d.startX) > Mt || Math.abs(m.clientY - d.startY) > Mt;
|
|
589
|
+
if (!(!d.started && !b)) {
|
|
590
|
+
if (m.preventDefault(), d.started)
|
|
591
591
|
je(
|
|
592
592
|
(O) => O && {
|
|
593
593
|
...O,
|
|
@@ -596,34 +596,34 @@ function to({
|
|
|
596
596
|
}
|
|
597
597
|
);
|
|
598
598
|
else {
|
|
599
|
-
|
|
600
|
-
const O = ((W =
|
|
599
|
+
d.started = !0;
|
|
600
|
+
const O = ((W = d.tableViewport) == null ? void 0 : W.height) || d.bounds.height || 36, v = d.bounds.height || 36, Ne = Math.max(
|
|
601
601
|
1,
|
|
602
602
|
Math.ceil(
|
|
603
603
|
(O - v) / v
|
|
604
604
|
)
|
|
605
605
|
);
|
|
606
|
-
pt(
|
|
607
|
-
columnId:
|
|
608
|
-
label:
|
|
609
|
-
values: St(
|
|
606
|
+
pt(d.columnId), je({
|
|
607
|
+
columnId: d.columnId,
|
|
608
|
+
label: d.label,
|
|
609
|
+
values: St(d.columnId, Ne),
|
|
610
610
|
left: m.clientX,
|
|
611
611
|
top: m.clientY,
|
|
612
|
-
width:
|
|
612
|
+
width: d.bounds.width,
|
|
613
613
|
height: O
|
|
614
614
|
}), Ct();
|
|
615
615
|
}
|
|
616
|
-
ve(m.clientX, m.clientY,
|
|
616
|
+
ve(m.clientX, m.clientY, d);
|
|
617
617
|
}
|
|
618
|
-
},
|
|
619
|
-
const
|
|
620
|
-
!
|
|
618
|
+
}, c = (m) => {
|
|
619
|
+
const d = X.current;
|
|
620
|
+
!d || d.pointerId !== m.pointerId || Ce(!0);
|
|
621
621
|
}, P = (m) => {
|
|
622
|
-
const
|
|
623
|
-
!
|
|
622
|
+
const d = X.current;
|
|
623
|
+
!d || d.pointerId !== m.pointerId || Ce(!1);
|
|
624
624
|
}, p = () => Ce(!1);
|
|
625
|
-
window.addEventListener("pointermove", a), window.addEventListener("pointerup",
|
|
626
|
-
window.removeEventListener("pointermove", a), window.removeEventListener("pointerup",
|
|
625
|
+
window.addEventListener("pointermove", a), window.addEventListener("pointerup", c), window.addEventListener("pointercancel", P), window.addEventListener("blur", p), ce.current = () => {
|
|
626
|
+
window.removeEventListener("pointermove", a), window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", P), window.removeEventListener("blur", p);
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
};
|
|
@@ -636,7 +636,7 @@ function to({
|
|
|
636
636
|
St,
|
|
637
637
|
Ct
|
|
638
638
|
]
|
|
639
|
-
), Ie = pe !== "none", Un = !!(
|
|
639
|
+
), Ie = pe !== "none", Un = !!(Ae && fe), Bn = Ie ? 1 : 0, jn = C.getVisibleLeafColumns().length, Ee = Math.max(
|
|
640
640
|
jn + Bn,
|
|
641
641
|
1
|
|
642
642
|
), Yn = Math.max(C.getHeaderGroups().length, 1), Ke = R && $ ? /* @__PURE__ */ s(
|
|
@@ -758,7 +758,7 @@ function to({
|
|
|
758
758
|
e.has(n.id) || r.push({ kind: "row", row: n });
|
|
759
759
|
return r;
|
|
760
760
|
}, [re, Y, He]), rr = (t) => {
|
|
761
|
-
const e = He.has(t.id), r = () =>
|
|
761
|
+
const e = He.has(t.id), r = () => kn(t.id);
|
|
762
762
|
return /* @__PURE__ */ s("tr", { className: "bg-secondary_subtle", children: /* @__PURE__ */ s(
|
|
763
763
|
"td",
|
|
764
764
|
{
|
|
@@ -854,8 +854,9 @@ function to({
|
|
|
854
854
|
children: /* @__PURE__ */ s(
|
|
855
855
|
Ot,
|
|
856
856
|
{
|
|
857
|
-
|
|
858
|
-
|
|
857
|
+
isSelected: C.getIsAllRowsSelected(),
|
|
858
|
+
isIndeterminate: C.getIsSomeRowsSelected(),
|
|
859
|
+
onChange: (r) => C.toggleAllRowsSelected(r),
|
|
859
860
|
"aria-label": "Select all rows",
|
|
860
861
|
className: "items-center justify-center"
|
|
861
862
|
}
|
|
@@ -865,9 +866,9 @@ function to({
|
|
|
865
866
|
}
|
|
866
867
|
) : null,
|
|
867
868
|
t.headers.map((r) => {
|
|
868
|
-
var
|
|
869
|
+
var d;
|
|
869
870
|
if (r.rowSpan === 0) return null;
|
|
870
|
-
const n =
|
|
871
|
+
const n = de.get(r.column.id), i = r.column.getIsSorted(), a = it && !r.isPlaceholder && r.column.getCanSort(), c = Ye && !r.isPlaceholder && r.subHeaders.length === 0, P = ye && !r.isPlaceholder && r.subHeaders.length === 0 && !(n != null && n.sticky) && !(n != null && n.width), p = n != null && n.renderHeader ? n.renderHeader({
|
|
871
872
|
columnId: n.id,
|
|
872
873
|
label: n.header
|
|
873
874
|
}) : r.isPlaceholder ? null : C.FlexRender({ header: r }), m = a && !(n != null && n.renderHeader);
|
|
@@ -879,16 +880,16 @@ function to({
|
|
|
879
880
|
scope: r.colSpan > 1 ? "colgroup" : "col",
|
|
880
881
|
"aria-sort": i === "asc" ? "ascending" : i === "desc" ? "descending" : void 0,
|
|
881
882
|
style: xe(n, !0),
|
|
882
|
-
...
|
|
883
|
+
...c ? Xn(
|
|
883
884
|
r.column.id,
|
|
884
|
-
((
|
|
885
|
+
((d = r.column.parent) == null ? void 0 : d.id) ?? "",
|
|
885
886
|
p
|
|
886
887
|
) : void 0,
|
|
887
888
|
className: w(
|
|
888
889
|
"relative overflow-hidden p-0 outline-hidden focus-within:z-1 focus-within:ring-2 focus-within:ring-focus-ring focus-within:ring-inset",
|
|
889
890
|
_r[g],
|
|
890
891
|
_ && "border-r border-secondary last:border-r-0",
|
|
891
|
-
|
|
892
|
+
c && "cursor-grab touch-none select-none active:cursor-grabbing",
|
|
892
893
|
wt === r.column.id && "select-none",
|
|
893
894
|
Be === r.column.id && "opacity-40 blur-[1.5px]",
|
|
894
895
|
n == null ? void 0 : n.headerClassName
|
|
@@ -907,7 +908,7 @@ function to({
|
|
|
907
908
|
children: [
|
|
908
909
|
/* @__PURE__ */ s("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap text-xs font-medium text-secondary", children: p }),
|
|
909
910
|
i ? /* @__PURE__ */ s(
|
|
910
|
-
|
|
911
|
+
dr,
|
|
911
912
|
{
|
|
912
913
|
className: w(
|
|
913
914
|
"size-3 shrink-0 stroke-[3px] text-fg-quaternary",
|
|
@@ -915,7 +916,7 @@ function to({
|
|
|
915
916
|
)
|
|
916
917
|
}
|
|
917
918
|
) : /* @__PURE__ */ s(
|
|
918
|
-
|
|
919
|
+
cr,
|
|
919
920
|
{
|
|
920
921
|
size: 12,
|
|
921
922
|
strokeWidth: 3,
|
|
@@ -970,7 +971,7 @@ function to({
|
|
|
970
971
|
E ? Array.from({ length: h }, (t, e) => /* @__PURE__ */ x(
|
|
971
972
|
"tr",
|
|
972
973
|
{
|
|
973
|
-
className:
|
|
974
|
+
className: At[g],
|
|
974
975
|
"aria-hidden": "true",
|
|
975
976
|
children: [
|
|
976
977
|
Ie ? /* @__PURE__ */ s(
|
|
@@ -984,14 +985,14 @@ function to({
|
|
|
984
985
|
}
|
|
985
986
|
) : null,
|
|
986
987
|
C.getVisibleLeafColumns().map((r) => {
|
|
987
|
-
const n =
|
|
988
|
+
const n = de.get(r.id);
|
|
988
989
|
return /* @__PURE__ */ s(
|
|
989
990
|
"td",
|
|
990
991
|
{
|
|
991
992
|
style: xe(n, !1),
|
|
992
993
|
className: w(
|
|
993
994
|
"relative overflow-hidden text-secondary",
|
|
994
|
-
|
|
995
|
+
kt[g],
|
|
995
996
|
_ && "border-r border-secondary last:border-r-0",
|
|
996
997
|
!V && "border-b border-tertiary",
|
|
997
998
|
Be === r.id && "opacity-40 blur-[1.5px]",
|
|
@@ -1017,7 +1018,7 @@ function to({
|
|
|
1017
1018
|
{
|
|
1018
1019
|
colSpan: Ee,
|
|
1019
1020
|
className: "border-b border-secondary px-3 py-3 text-left text-xs text-placeholder_subtle",
|
|
1020
|
-
children:
|
|
1021
|
+
children: k
|
|
1021
1022
|
}
|
|
1022
1023
|
) }) : nr.map((t) => {
|
|
1023
1024
|
var a;
|
|
@@ -1040,13 +1041,13 @@ function to({
|
|
|
1040
1041
|
// `focus-within` also fires for anything inside it, so an open cell
|
|
1041
1042
|
// editor outlined the entire row.
|
|
1042
1043
|
"relative outline-focus-ring transition-colors hover:bg-secondary_subtle focus-visible:outline-2 focus-visible:-outline-offset-2",
|
|
1043
|
-
|
|
1044
|
+
At[g],
|
|
1044
1045
|
e.getIsSelected() && "bg-secondary",
|
|
1045
1046
|
Pe && "cursor-pointer",
|
|
1046
1047
|
ze == null ? void 0 : ze(e.original)
|
|
1047
1048
|
),
|
|
1048
|
-
onClick: (
|
|
1049
|
-
!Pe || Vt(
|
|
1049
|
+
onClick: (c) => {
|
|
1050
|
+
!Pe || Vt(c.target) || Pe(e.original);
|
|
1050
1051
|
},
|
|
1051
1052
|
onMouseEnter: ue ? () => ue(e.original, !0) : void 0,
|
|
1052
1053
|
onMouseLeave: ue ? () => ue(e.original, !1) : void 0,
|
|
@@ -1065,13 +1066,13 @@ function to({
|
|
|
1065
1066
|
"div",
|
|
1066
1067
|
{
|
|
1067
1068
|
className: "flex items-center justify-center",
|
|
1068
|
-
onClick: (
|
|
1069
|
-
onKeyDown: (
|
|
1069
|
+
onClick: (c) => c.stopPropagation(),
|
|
1070
|
+
onKeyDown: (c) => c.stopPropagation(),
|
|
1070
1071
|
children: /* @__PURE__ */ s(
|
|
1071
1072
|
Ot,
|
|
1072
1073
|
{
|
|
1073
|
-
|
|
1074
|
-
|
|
1074
|
+
isSelected: e.getIsSelected(),
|
|
1075
|
+
onChange: (c) => e.toggleSelected(c),
|
|
1075
1076
|
"aria-label": `Select row ${e.id}`,
|
|
1076
1077
|
className: "items-center justify-center"
|
|
1077
1078
|
}
|
|
@@ -1080,15 +1081,15 @@ function to({
|
|
|
1080
1081
|
)
|
|
1081
1082
|
}
|
|
1082
1083
|
) : null,
|
|
1083
|
-
i.map((
|
|
1084
|
-
if (
|
|
1085
|
-
const p =
|
|
1084
|
+
i.map((c, P) => {
|
|
1085
|
+
if (c.getIsCovered()) return null;
|
|
1086
|
+
const p = de.get(c.column.id);
|
|
1086
1087
|
if (!p) return null;
|
|
1087
1088
|
const m = tr(
|
|
1088
1089
|
e,
|
|
1089
1090
|
p.id,
|
|
1090
|
-
|
|
1091
|
-
),
|
|
1091
|
+
c.getValue()
|
|
1092
|
+
), d = p.renderCell ? p.renderCell(m) : String(c.getValue() ?? ""), b = ee ? pr(
|
|
1092
1093
|
ge,
|
|
1093
1094
|
e.id,
|
|
1094
1095
|
p.id,
|
|
@@ -1098,8 +1099,8 @@ function to({
|
|
|
1098
1099
|
return /* @__PURE__ */ s(
|
|
1099
1100
|
"td",
|
|
1100
1101
|
{
|
|
1101
|
-
colSpan:
|
|
1102
|
-
rowSpan:
|
|
1102
|
+
colSpan: c.getColSpan(),
|
|
1103
|
+
rowSpan: c.getRowSpan(),
|
|
1103
1104
|
style: W && b ? {
|
|
1104
1105
|
...xe(p, !1),
|
|
1105
1106
|
boxShadow: fr(
|
|
@@ -1122,7 +1123,7 @@ function to({
|
|
|
1122
1123
|
// multi-line value has to be visible, and the row only grows
|
|
1123
1124
|
// around content the cell is allowed to show.
|
|
1124
1125
|
O ? "z-1 overflow-visible" : "overflow-hidden",
|
|
1125
|
-
|
|
1126
|
+
kt[g],
|
|
1126
1127
|
Jr(p.align),
|
|
1127
1128
|
_ && "border-r border-secondary last:border-r-0",
|
|
1128
1129
|
!V && !n && !W && "border-b border-tertiary",
|
|
@@ -1132,7 +1133,7 @@ function to({
|
|
|
1132
1133
|
Be === p.id && "opacity-40 blur-[1.5px]"
|
|
1133
1134
|
),
|
|
1134
1135
|
onClick: (v) => {
|
|
1135
|
-
|
|
1136
|
+
ke == null || ke(m), P === 0 && r && Vt(v.target) && v.stopPropagation();
|
|
1136
1137
|
},
|
|
1137
1138
|
onDoubleClick: () => Fe == null ? void 0 : Fe(m),
|
|
1138
1139
|
onKeyDown: (v) => {
|
|
@@ -1156,10 +1157,10 @@ function to({
|
|
|
1156
1157
|
children: /* @__PURE__ */ s(Wt, { className: "size-4 text-fg-quaternary" })
|
|
1157
1158
|
}
|
|
1158
1159
|
) : null,
|
|
1159
|
-
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children:
|
|
1160
|
+
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: d })
|
|
1160
1161
|
] })
|
|
1161
1162
|
},
|
|
1162
|
-
|
|
1163
|
+
c.id
|
|
1163
1164
|
);
|
|
1164
1165
|
})
|
|
1165
1166
|
]
|