@pibit.ai/cure-design-system 0.3.21 → 0.3.24
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/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +157 -136
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +330 -323
- package/dist/patterns/table/index.d.ts +5 -2
- package/dist/patterns/table/index.d.ts.map +1 -1
- package/dist/patterns/table/integrateTableUndoRedo.d.ts +41 -0
- package/dist/patterns/table/integrateTableUndoRedo.d.ts.map +1 -0
- package/dist/patterns/table/integrateTableUndoRedo.js +63 -0
- package/dist/patterns/table/storyHelpers/useMockTableState.d.ts +3 -1
- package/dist/patterns/table/storyHelpers/useMockTableState.d.ts.map +1 -1
- package/dist/patterns/table/table.d.ts +2 -1
- package/dist/patterns/table/table.d.ts.map +1 -1
- package/dist/patterns/table/table.js +181 -155
- package/dist/patterns/table/tableUndoRedo.d.ts +38 -0
- package/dist/patterns/table/tableUndoRedo.d.ts.map +1 -0
- package/dist/patterns/table/tableUndoRedo.js +147 -0
- package/dist/patterns/table/toolbar/AlignDropdown.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/AlignDropdown.js +5 -11
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts +4 -0
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.js +81 -77
- package/dist/patterns/table/toolbar/GroupByDropdown.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/GroupByDropdown.js +48 -43
- package/dist/patterns/table/toolbar/TableToolbar.d.ts +12 -1
- package/dist/patterns/table/toolbar/TableToolbar.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/TableToolbar.js +164 -114
- package/dist/patterns/table/toolbar/index.d.ts +2 -2
- package/dist/patterns/table/toolbar/index.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/tableToolbarHelpers.d.ts +10 -1
- package/dist/patterns/table/toolbar/tableToolbarHelpers.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/tableToolbarHelpers.js +116 -116
- package/dist/patterns/table/toolbar/useUndoRedoShortcuts.d.ts +9 -0
- package/dist/patterns/table/toolbar/useUndoRedoShortcuts.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/useUndoRedoShortcuts.js +21 -0
- package/dist/patterns/table/types.d.ts +5 -1
- package/dist/patterns/table/types.d.ts.map +1 -1
- package/dist/patterns/table/useTableUndoRedo.d.ts +41 -0
- package/dist/patterns/table/useTableUndoRedo.d.ts.map +1 -0
- package/dist/patterns/table/useTableUndoRedo.js +168 -0
- package/dist/primitives/badge/badge.js +5 -5
- package/dist/primitives/input/input.d.ts +1 -1
- package/dist/primitives/input/input.d.ts.map +1 -1
- package/dist/primitives/input/input.js +63 -62
- package/dist/primitives/multi-chips-select/MultiChipsSelect.d.ts +20 -0
- package/dist/primitives/multi-chips-select/MultiChipsSelect.d.ts.map +1 -0
- package/dist/primitives/multi-chips-select/MultiChipsSelect.js +233 -0
- package/dist/primitives/multi-chips-select/index.d.ts +3 -0
- package/dist/primitives/multi-chips-select/index.d.ts.map +1 -0
- package/dist/primitives/multi-chips-select/tagKeyFromLabel.d.ts +3 -0
- package/dist/primitives/multi-chips-select/tagKeyFromLabel.d.ts.map +1 -0
- package/dist/primitives/multi-chips-select/tagKeyFromLabel.js +6 -0
- package/dist/primitives/select/ExpandableSearchInput.d.ts +3 -1
- package/dist/primitives/select/ExpandableSearchInput.d.ts.map +1 -1
- package/dist/primitives/select/ExpandableSearchInput.js +100 -78
- package/dist/primitives/select/SearchInput.d.ts +5 -1
- package/dist/primitives/select/SearchInput.d.ts.map +1 -1
- package/dist/primitives/select/SearchInput.js +101 -80
- package/dist/primitives/select/combobox.d.ts.map +1 -1
- package/dist/primitives/select/combobox.js +48 -47
- package/dist/primitives/select/multi-select.d.ts.map +1 -1
- package/dist/primitives/select/multi-select.js +50 -49
- package/dist/styles/components.css +1 -1
- package/dist/utils/keyboard-shortcut.d.ts +4 -0
- package/dist/utils/keyboard-shortcut.d.ts.map +1 -0
- package/dist/utils/keyboard-shortcut.js +29 -0
- package/package.json +1 -1
|
@@ -10,16 +10,27 @@ export type FilterToolConfig = LegacyFilterToolConfig;
|
|
|
10
10
|
export interface SearchToolConfig {
|
|
11
11
|
value: string;
|
|
12
12
|
onChange: (value: string) => void;
|
|
13
|
+
/** When true, registers the platform-specific primary shortcut for this table search. Default false — use page-level search shortcuts instead. */
|
|
14
|
+
shortcut?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export type RowHeightToolConfig = RowHeightDropdownProps;
|
|
15
17
|
export type HideFieldsToolConfig = HideFieldsDropdownProps;
|
|
16
18
|
export type AlignToolConfig = AlignDropdownProps;
|
|
17
19
|
export type GroupByToolConfig = GroupByDropdownProps;
|
|
18
20
|
export type SummaryToolConfig = ShowSummaryDropdownProps;
|
|
21
|
+
export interface UndoRedoToolConfig {
|
|
22
|
+
canUndo: boolean;
|
|
23
|
+
canRedo: boolean;
|
|
24
|
+
onUndo: () => void;
|
|
25
|
+
onRedo: () => void;
|
|
26
|
+
/** Register Cmd/Ctrl+Z and redo shortcuts. Default true when undoRedo is provided. */
|
|
27
|
+
shortcut?: boolean;
|
|
28
|
+
isDisabled?: boolean;
|
|
29
|
+
}
|
|
19
30
|
export interface TableToolbarProps {
|
|
20
31
|
className?: string;
|
|
21
32
|
fallbackTitle?: string;
|
|
22
|
-
|
|
33
|
+
undoRedo?: UndoRedoToolConfig;
|
|
23
34
|
sort?: SortToolConfig;
|
|
24
35
|
filter?: FilterToolConfig;
|
|
25
36
|
search?: SearchToolConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/TableToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,M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tB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B,GAAG;IACF,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B,CAMA"}
|
|
@@ -1,37 +1,80 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as D, useRef as
|
|
3
|
-
import { FlipBackward as
|
|
4
|
-
import { cx as
|
|
5
|
-
import { AlignDropdown as
|
|
2
|
+
import { useMemo as D, isValidElement as L, cloneElement as M, useRef as A, useState as I, useEffect as K, useLayoutEffect as O } from "react";
|
|
3
|
+
import { FlipBackward as W, FlipForward as j, ChevronSelectorVertical as F, DotsHorizontal as P } from "@untitledui/icons";
|
|
4
|
+
import { cx as N } from "../../../utils/cn.js";
|
|
5
|
+
import { AlignDropdown as H } from "./AlignDropdown.js";
|
|
6
6
|
import { GroupByDropdown as T } from "./GroupByDropdown.js";
|
|
7
|
-
import { HideFieldsDropdown as
|
|
8
|
-
import { RowHeightDropdown as
|
|
9
|
-
import { ShowSummaryDropdown as
|
|
10
|
-
import { resolveColumnLabel as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
import { HideFieldsDropdown as G } from "./HideFieldsDropdown.js";
|
|
8
|
+
import { RowHeightDropdown as _ } from "./RowHeightDropdown.js";
|
|
9
|
+
import { ShowSummaryDropdown as B } from "./ShowSummaryDropdown.js";
|
|
10
|
+
import { resolveColumnLabel as V } from "./tableToolbarHelpers.js";
|
|
11
|
+
import { useUndoRedoShortcuts as $ } from "./useUndoRedoShortcuts.js";
|
|
12
|
+
import { ExpandableSearchInput as q } from "../../../primitives/select/ExpandableSearchInput.js";
|
|
13
|
+
import { Button as y } from "../../../primitives/button/button.js";
|
|
14
|
+
import { Dropdown as x } from "../../../primitives/dropdown/dropdown.js";
|
|
15
|
+
import { Icon as E } from "../../../primitives/icon/icon.js";
|
|
16
|
+
function J(e, i) {
|
|
17
|
+
return L(e) ? M(e, {
|
|
18
|
+
onApply: i.onApply,
|
|
19
|
+
onClear: i.onClear,
|
|
20
|
+
clearAllSorts: i.onClear
|
|
21
|
+
}) : e;
|
|
22
|
+
}
|
|
23
|
+
function Q(e, i) {
|
|
24
|
+
return L(e) ? M(e, {
|
|
25
|
+
onApply: i.onApply,
|
|
26
|
+
onClearAll: i.onClearAll
|
|
27
|
+
}) : e;
|
|
28
|
+
}
|
|
29
|
+
const X = ({ config: e }) => ($({
|
|
30
|
+
enabled: e.shortcut ?? !0,
|
|
31
|
+
canUndo: e.canUndo,
|
|
32
|
+
canRedo: e.canRedo,
|
|
33
|
+
onUndo: e.onUndo,
|
|
34
|
+
onRedo: e.onRedo,
|
|
35
|
+
isDisabled: e.isDisabled
|
|
36
|
+
}), /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
y,
|
|
39
|
+
{
|
|
40
|
+
size: "xs",
|
|
41
|
+
color: "secondary",
|
|
42
|
+
iconLeading: /* @__PURE__ */ o(W, { size: 16 }),
|
|
43
|
+
"aria-label": "Undo",
|
|
44
|
+
title: "Undo",
|
|
45
|
+
isDisabled: e.isDisabled || !e.canUndo,
|
|
46
|
+
onClick: e.onUndo
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ o(
|
|
50
|
+
y,
|
|
51
|
+
{
|
|
52
|
+
size: "xs",
|
|
53
|
+
color: "secondary",
|
|
54
|
+
iconLeading: /* @__PURE__ */ o(j, { size: 16 }),
|
|
55
|
+
"aria-label": "Redo",
|
|
56
|
+
title: "Redo",
|
|
57
|
+
isDisabled: e.isDisabled || !e.canRedo,
|
|
58
|
+
onClick: e.onRedo
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] })), Y = ({ config: e, content: i }) => {
|
|
62
|
+
const l = e.sorts.some((r) => r.field !== "" && r.direction !== "");
|
|
20
63
|
return /* @__PURE__ */ p(
|
|
21
|
-
|
|
64
|
+
x.Root,
|
|
22
65
|
{
|
|
23
66
|
isOpen: e.isOpen,
|
|
24
|
-
onOpenChange: (
|
|
25
|
-
|
|
67
|
+
onOpenChange: (r) => {
|
|
68
|
+
r && e.onSortsChange(e.sorts.map((t) => ({ ...t }))), e.onOpenChange(r);
|
|
26
69
|
},
|
|
27
70
|
children: [
|
|
28
71
|
/* @__PURE__ */ p(
|
|
29
|
-
|
|
72
|
+
y,
|
|
30
73
|
{
|
|
31
74
|
size: "xs",
|
|
32
75
|
color: "secondary",
|
|
33
|
-
iconLeading: /* @__PURE__ */ o(
|
|
34
|
-
className:
|
|
76
|
+
iconLeading: /* @__PURE__ */ o(F, { size: 12 }),
|
|
77
|
+
className: N(
|
|
35
78
|
l && "ring-1 ring-brand-600 bg-brand-primary text-brand-600 hover:bg-brand-primary hover:text-brand-600"
|
|
36
79
|
),
|
|
37
80
|
children: [
|
|
@@ -40,20 +83,20 @@ const $ = () => /* @__PURE__ */ p("div", { className: "flex items-center gap-2",
|
|
|
40
83
|
]
|
|
41
84
|
}
|
|
42
85
|
),
|
|
43
|
-
/* @__PURE__ */ o(
|
|
86
|
+
/* @__PURE__ */ o(x.Popover, { className: "w-auto min-w-[300px]", children: i })
|
|
44
87
|
]
|
|
45
88
|
}
|
|
46
89
|
);
|
|
47
|
-
},
|
|
90
|
+
}, Z = ({ config: e, content: i }) => {
|
|
48
91
|
const l = e.meaningfulConditionsCount > 0;
|
|
49
|
-
return /* @__PURE__ */ p(
|
|
92
|
+
return /* @__PURE__ */ p(x.Root, { isOpen: e.isOpen, onOpenChange: e.onOpenChange, children: [
|
|
50
93
|
/* @__PURE__ */ p(
|
|
51
|
-
|
|
94
|
+
y,
|
|
52
95
|
{
|
|
53
96
|
size: "xs",
|
|
54
97
|
color: "secondary",
|
|
55
|
-
iconLeading: /* @__PURE__ */ o(
|
|
56
|
-
className:
|
|
98
|
+
iconLeading: /* @__PURE__ */ o(E, { name: "FilterLines", size: 12 }),
|
|
99
|
+
className: N(
|
|
57
100
|
l && "ring-1 ring-brand-600 bg-brand-primary text-brand-600 hover:bg-brand-primary hover:text-brand-600"
|
|
58
101
|
),
|
|
59
102
|
children: [
|
|
@@ -62,166 +105,173 @@ const $ = () => /* @__PURE__ */ p("div", { className: "flex items-center gap-2",
|
|
|
62
105
|
]
|
|
63
106
|
}
|
|
64
107
|
),
|
|
65
|
-
/* @__PURE__ */ o(
|
|
108
|
+
/* @__PURE__ */ o(x.Popover, { className: "w-auto min-w-[300px]", children: i })
|
|
66
109
|
] });
|
|
67
|
-
},
|
|
110
|
+
}, be = ({
|
|
68
111
|
className: e,
|
|
69
|
-
fallbackTitle:
|
|
70
|
-
|
|
71
|
-
sort:
|
|
72
|
-
filter:
|
|
73
|
-
search:
|
|
74
|
-
rowHeight:
|
|
75
|
-
hideFields:
|
|
112
|
+
fallbackTitle: i,
|
|
113
|
+
undoRedo: l,
|
|
114
|
+
sort: r,
|
|
115
|
+
filter: t,
|
|
116
|
+
search: u,
|
|
117
|
+
rowHeight: C,
|
|
118
|
+
hideFields: v,
|
|
76
119
|
align: h,
|
|
77
120
|
groupBy: m,
|
|
78
121
|
summary: g,
|
|
79
|
-
trailing:
|
|
80
|
-
searchCollapsible:
|
|
122
|
+
trailing: z,
|
|
123
|
+
searchCollapsible: R,
|
|
81
124
|
disableExtendedTools: n = !1,
|
|
82
|
-
sortContent:
|
|
83
|
-
filterContent:
|
|
125
|
+
sortContent: s,
|
|
126
|
+
filterContent: a
|
|
84
127
|
}) => {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
128
|
+
const d = D(
|
|
129
|
+
() => r && s ? J(s, r) : s,
|
|
130
|
+
[r, s]
|
|
131
|
+
), b = D(
|
|
132
|
+
() => t && a ? Q(a, t) : a,
|
|
133
|
+
[t, a]
|
|
134
|
+
), S = D(() => {
|
|
135
|
+
const c = [];
|
|
136
|
+
if (l && c.push({ id: "undo-redo", node: /* @__PURE__ */ o(X, { config: l }) }), r && d) {
|
|
137
|
+
const w = r.sorts.some((f) => f.field !== "" && f.direction !== "");
|
|
138
|
+
c.push({
|
|
90
139
|
id: "sort",
|
|
91
|
-
widthKey:
|
|
92
|
-
node: /* @__PURE__ */ o(
|
|
140
|
+
widthKey: w ? String(r.sorts.length) : "",
|
|
141
|
+
node: /* @__PURE__ */ o(Y, { config: r, content: d })
|
|
93
142
|
});
|
|
94
143
|
}
|
|
95
|
-
if (
|
|
144
|
+
if (t && b && c.push({
|
|
96
145
|
id: "filter",
|
|
97
|
-
widthKey:
|
|
98
|
-
node: /* @__PURE__ */ o(
|
|
99
|
-
}),
|
|
146
|
+
widthKey: t.meaningfulConditionsCount > 0 ? String(t.meaningfulConditionsCount) : "",
|
|
147
|
+
node: /* @__PURE__ */ o(Z, { config: t, content: b })
|
|
148
|
+
}), C && c.push({
|
|
100
149
|
id: "row-height",
|
|
101
|
-
node: /* @__PURE__ */ o(
|
|
102
|
-
}),
|
|
150
|
+
node: /* @__PURE__ */ o(_, { ...C, isDisabled: n })
|
|
151
|
+
}), v && c.push({
|
|
103
152
|
id: "hide-fields",
|
|
104
|
-
widthKey:
|
|
105
|
-
node: /* @__PURE__ */ o(
|
|
106
|
-
}), h &&
|
|
107
|
-
const
|
|
108
|
-
|
|
153
|
+
widthKey: v.hiddenColumns.size > 0 ? String(v.hiddenColumns.size) : "",
|
|
154
|
+
node: /* @__PURE__ */ o(G, { ...v, isDisabled: n })
|
|
155
|
+
}), h && c.push({ id: "align", node: /* @__PURE__ */ o(H, { ...h, isDisabled: n }) }), m) {
|
|
156
|
+
const w = m.value ? m.schema.find((k) => k.value === m.value) : void 0, f = w ? V(w, m.labelMeta) : "";
|
|
157
|
+
c.push({
|
|
109
158
|
id: "group-by",
|
|
110
|
-
widthKey:
|
|
159
|
+
widthKey: f,
|
|
111
160
|
node: /* @__PURE__ */ o(T, { ...m, isDisabled: n })
|
|
112
161
|
});
|
|
113
162
|
}
|
|
114
|
-
return g &&
|
|
163
|
+
return g && c.push({
|
|
115
164
|
id: "summary",
|
|
116
|
-
node: /* @__PURE__ */ o(
|
|
117
|
-
}),
|
|
165
|
+
node: /* @__PURE__ */ o(B, { ...g, isDisabled: n })
|
|
166
|
+
}), c;
|
|
118
167
|
}, [
|
|
119
168
|
l,
|
|
120
|
-
i,
|
|
121
169
|
r,
|
|
122
170
|
d,
|
|
123
171
|
t,
|
|
124
172
|
b,
|
|
125
|
-
|
|
173
|
+
C,
|
|
174
|
+
v,
|
|
126
175
|
h,
|
|
127
176
|
m,
|
|
128
177
|
g,
|
|
129
178
|
n
|
|
130
179
|
]);
|
|
131
|
-
return /* @__PURE__ */ p("div", { className:
|
|
132
|
-
|
|
180
|
+
return /* @__PURE__ */ p("div", { className: N("flex justify-between items-center gap-2", e), children: [
|
|
181
|
+
S.length > 0 ? /* @__PURE__ */ o(ne, { items: S }) : i ? /* @__PURE__ */ o("h4", { className: "text-sm font-normal text-secondary", children: i }) : /* @__PURE__ */ o("div", {}),
|
|
133
182
|
/* @__PURE__ */ p("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
134
|
-
|
|
135
|
-
|
|
183
|
+
u && /* @__PURE__ */ o(
|
|
184
|
+
q,
|
|
136
185
|
{
|
|
137
186
|
size: "sm",
|
|
138
187
|
placeholder: "Search",
|
|
139
|
-
value:
|
|
140
|
-
onChange:
|
|
141
|
-
collapsible:
|
|
142
|
-
isDisabled: n
|
|
188
|
+
value: u.value,
|
|
189
|
+
onChange: u.onChange,
|
|
190
|
+
collapsible: R,
|
|
191
|
+
isDisabled: n,
|
|
192
|
+
shortcut: u.shortcut
|
|
143
193
|
}
|
|
144
194
|
),
|
|
145
|
-
|
|
195
|
+
z
|
|
146
196
|
] })
|
|
147
197
|
] });
|
|
148
|
-
},
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}, [
|
|
153
|
-
if (
|
|
198
|
+
}, ee = 40, U = 8, ne = ({ items: e }) => {
|
|
199
|
+
const i = A(null), l = A(/* @__PURE__ */ new Map()), [r, t] = I(() => /* @__PURE__ */ new Map()), [u, C] = I(null), v = D(() => e.map((n) => `${n.id}:${n.widthKey ?? ""}`).join("|"), [e]);
|
|
200
|
+
K(() => {
|
|
201
|
+
t(/* @__PURE__ */ new Map());
|
|
202
|
+
}, [v]), O(() => {
|
|
203
|
+
if (r.size === e.length) return;
|
|
154
204
|
const n = /* @__PURE__ */ new Map();
|
|
155
|
-
for (const
|
|
156
|
-
const
|
|
157
|
-
|
|
205
|
+
for (const s of e) {
|
|
206
|
+
const a = l.current.get(s.id);
|
|
207
|
+
a && n.set(s.id, a.getBoundingClientRect().width);
|
|
158
208
|
}
|
|
159
|
-
n.size === e.length &&
|
|
160
|
-
}, [e,
|
|
161
|
-
const n =
|
|
209
|
+
n.size === e.length && t(n);
|
|
210
|
+
}, [e, r]), O(() => {
|
|
211
|
+
const n = i.current;
|
|
162
212
|
if (!n) return;
|
|
163
|
-
const
|
|
164
|
-
|
|
213
|
+
const s = () => {
|
|
214
|
+
i.current && C(i.current.clientWidth);
|
|
165
215
|
};
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
return
|
|
216
|
+
s();
|
|
217
|
+
const a = new ResizeObserver(s);
|
|
218
|
+
return a.observe(n), () => a.disconnect();
|
|
169
219
|
}, []);
|
|
170
|
-
const h =
|
|
171
|
-
if (!h ||
|
|
220
|
+
const h = r.size === e.length, { visibleIds: m, overflowIds: g } = D(() => {
|
|
221
|
+
if (!h || u == null)
|
|
172
222
|
return {
|
|
173
|
-
visibleIds: new Set(e.map((
|
|
223
|
+
visibleIds: new Set(e.map((d) => d.id)),
|
|
174
224
|
overflowIds: /* @__PURE__ */ new Set()
|
|
175
225
|
};
|
|
176
226
|
let n = 0;
|
|
177
|
-
const
|
|
178
|
-
for (let
|
|
179
|
-
const
|
|
180
|
-
if (n +
|
|
181
|
-
for (let
|
|
227
|
+
const s = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
228
|
+
for (let d = 0; d < e.length; d++) {
|
|
229
|
+
const b = e[d].id, S = r.get(b) ?? 0, w = e.length - d - 1 > 0 ? ee + U : 0;
|
|
230
|
+
if (n + S + w > u) {
|
|
231
|
+
for (let f = d; f < e.length; f++) a.add(e[f].id);
|
|
182
232
|
break;
|
|
183
233
|
}
|
|
184
|
-
n +=
|
|
234
|
+
n += S + U, s.add(b);
|
|
185
235
|
}
|
|
186
|
-
return { visibleIds:
|
|
187
|
-
}, [e,
|
|
236
|
+
return { visibleIds: s, overflowIds: a };
|
|
237
|
+
}, [e, r, u, h]), z = e.filter((n) => m.has(n.id)), R = e.filter((n) => g.has(n.id));
|
|
188
238
|
return /* @__PURE__ */ p(
|
|
189
239
|
"div",
|
|
190
240
|
{
|
|
191
|
-
ref:
|
|
241
|
+
ref: i,
|
|
192
242
|
className: "flex items-center gap-2 min-w-0 flex-1 overflow-hidden",
|
|
193
243
|
style: h ? void 0 : { visibility: "hidden" },
|
|
194
244
|
children: [
|
|
195
|
-
(h ?
|
|
245
|
+
(h ? z : e).map((n) => /* @__PURE__ */ o(
|
|
196
246
|
"div",
|
|
197
247
|
{
|
|
198
|
-
ref: (
|
|
199
|
-
l.current.set(n.id,
|
|
248
|
+
ref: (s) => {
|
|
249
|
+
l.current.set(n.id, s);
|
|
200
250
|
},
|
|
201
251
|
className: "shrink-0",
|
|
202
252
|
children: n.node
|
|
203
253
|
},
|
|
204
254
|
n.id
|
|
205
255
|
)),
|
|
206
|
-
h &&
|
|
256
|
+
h && R.length > 0 && /* @__PURE__ */ p(x.Root, { children: [
|
|
207
257
|
/* @__PURE__ */ o(
|
|
208
|
-
|
|
258
|
+
y,
|
|
209
259
|
{
|
|
210
260
|
size: "xs",
|
|
211
261
|
color: "secondary",
|
|
212
|
-
iconLeading: /* @__PURE__ */ o(
|
|
262
|
+
iconLeading: /* @__PURE__ */ o(P, { size: 16 }),
|
|
213
263
|
"aria-label": "More tools",
|
|
214
264
|
title: "More tools",
|
|
215
265
|
className: "shrink-0"
|
|
216
266
|
}
|
|
217
267
|
),
|
|
218
|
-
/* @__PURE__ */ o(
|
|
268
|
+
/* @__PURE__ */ o(x.Popover, { className: "w-auto", children: /* @__PURE__ */ o("div", { className: "flex flex-col items-stretch gap-2 p-2 min-w-[180px]", children: R.map((n) => /* @__PURE__ */ o("div", { className: "[&>*]:w-full", children: n.node }, n.id)) }) })
|
|
219
269
|
] })
|
|
220
270
|
]
|
|
221
271
|
}
|
|
222
272
|
);
|
|
223
273
|
};
|
|
224
|
-
function
|
|
274
|
+
function we(e) {
|
|
225
275
|
return {
|
|
226
276
|
sort: e.sort,
|
|
227
277
|
filter: e.filter,
|
|
@@ -229,6 +279,6 @@ function he(e) {
|
|
|
229
279
|
};
|
|
230
280
|
}
|
|
231
281
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
282
|
+
be as TableToolbar,
|
|
283
|
+
we as pickCoreToolbarProps
|
|
234
284
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { TableToolbar, pickCoreToolbarProps } from './TableToolbar';
|
|
2
|
-
export type { TableToolbarProps, SortToolConfig, FilterToolConfig, SearchToolConfig, RowHeightToolConfig, HideFieldsToolConfig, AlignToolConfig, GroupByToolConfig, SummaryToolConfig, } from './TableToolbar';
|
|
2
|
+
export type { TableToolbarProps, SortToolConfig, FilterToolConfig, SearchToolConfig, RowHeightToolConfig, HideFieldsToolConfig, AlignToolConfig, GroupByToolConfig, SummaryToolConfig, UndoRedoToolConfig, } from './TableToolbar';
|
|
3
3
|
export { RowHeightDropdown } from './RowHeightDropdown';
|
|
4
4
|
export type { RowHeightOption } from './RowHeightDropdown';
|
|
5
5
|
export { ROW_HEIGHT_CLASS } from './tableToolbarHelpers';
|
|
@@ -19,6 +19,6 @@ export type { ToolbarExtensionComponents } from './toolbarExtensions';
|
|
|
19
19
|
export type { LegacySortToolConfig, LegacyFilterToolConfig, LegacySortColumn, LegacySort, } from './legacyToolbarTypes';
|
|
20
20
|
export { BasicSortPanel } from './BasicSortPanel';
|
|
21
21
|
export { LegacySortTool, LegacyFilterTool } from './LegacySortFilterTools';
|
|
22
|
-
export { applyHideAndReorder, getDefaultAlignmentForType, getEffectiveAlignment, alignmentClass, getAggregationsForType, computeAggregation, groupRows, resolveColumnLabel, AGGREGATION_LABELS, } from './tableToolbarHelpers';
|
|
22
|
+
export { applyHideAndReorder, getDefaultAlignmentForType, getEffectiveAlignment, alignmentClass, getAggregationsForType, computeAggregation, groupRows, resolveColumnLabel, resolveSummaryDisplayValueType, AGGREGATION_LABELS, } from './tableToolbarHelpers';
|
|
23
23
|
export type { CellAlignment, AggregationType, AggregationOption, RowGroup } from './tableToolbarHelpers';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACpE,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO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,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,8BAA8B,EAC9B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -23,9 +23,18 @@ export declare const AGGREGATION_LABELS: Record<AggregationType, string>;
|
|
|
23
23
|
export declare const AGGREGATION_CELL_LABELS: Record<AggregationType, string>;
|
|
24
24
|
export declare function mapOmDataTypeToAggregationValueType(omDataType: string | undefined): TableColumnValueType | undefined;
|
|
25
25
|
export declare function resolveAggregationValueType(column: Pick<TableColumnSchema, "value" | "value_type" | "data_type">, fieldDataTypeMap?: Readonly<Record<string, string>>): TableColumnValueType | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Resolves the value type used to *format* a summary aggregation result (currency symbol,
|
|
28
|
+
* percent suffix, etc.). Unlike {@link resolveAggregationValueType} — which collapses
|
|
29
|
+
* percent/currency into "number" to decide which aggregations are offered — this preserves
|
|
30
|
+
* the display type. Prefers the schema's own currency/percentage type, then the OM data type.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveSummaryDisplayValueType(column: Pick<TableColumnSchema, "value" | "value_type" | "data_type">, fieldDataTypeMap?: Readonly<Record<string, string>>): TableColumnValueType | undefined;
|
|
26
33
|
export declare function getAggregationsForType(valueType: TableColumnValueType | undefined): AggregationOption[];
|
|
27
34
|
export declare function getRowColumnValue(row: Record<string, unknown>, key: string): unknown;
|
|
28
|
-
export declare function computeAggregation(rows: ReadonlyArray<Record<string, unknown>>, columnValueKey: string, aggregation: AggregationType
|
|
35
|
+
export declare function computeAggregation(rows: ReadonlyArray<Record<string, unknown>>, columnValueKey: string, aggregation: AggregationType,
|
|
36
|
+
/** Display type used to format numeric results (currency symbol, percent suffix, …). */
|
|
37
|
+
valueType?: TableColumnValueType): string;
|
|
29
38
|
export interface RowGroup<T> {
|
|
30
39
|
key: string;
|
|
31
40
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableToolbarHelpers.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/tableToolbarHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAK5D,CAAC;AAYF,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CA6BvG;AAED,uDAAuD;AACvD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAmBjH;AAED,+CAA+C;AAC/C,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAOzF;AAED,6DAA6D;AAC7D,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,iBAAiB,EAAE,EAC3B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,iBAAiB,EAAE,CAarB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,wBAAg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