@memobit/libs 3.26.4 → 3.28.0
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/components/Banner/Banner2.js +15 -13
- package/dist/components/BoldText/BoldText.js +5 -0
- package/dist/components/Calendar/Calendar2.js +108 -135
- package/dist/components/ColorPicker/ColorPicker.css +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +114 -114
- package/dist/components/ConfirmDialog/ConfirmDialog2.js +13 -11
- package/dist/components/ConfirmPopover/ConfirmPopover2.js +26 -24
- package/dist/components/ContextMenu/ContextMenu2.js +46 -33
- package/dist/components/ControlPanel/ControlPanel2.js +95 -93
- package/dist/components/ControlPanel/ControlPanelFilter.js +205 -193
- package/dist/components/ControlPanel/ControlPanelOptions.js +190 -185
- package/dist/components/DataView/DataView.CardView.js +83 -81
- package/dist/components/DataView/DataView.ColumnSelector.js +27 -25
- package/dist/components/DataView/DataView.TableView.js +74 -72
- package/dist/components/DataView/DataView2.js +169 -167
- package/dist/components/DatePicker/DatePicker2.js +71 -69
- package/dist/components/Drawer/Drawer2.js +58 -55
- package/dist/components/Dropdown/Dropdown2.js +187 -189
- package/dist/components/InputDate/InputDate2.js +43 -41
- package/dist/components/InputSearch/InputSearch2.js +27 -25
- package/dist/components/MenuBar/MenuBar.css +1 -0
- package/dist/components/MenuBar/MenuBar2.js +46 -0
- package/dist/components/Modal/Modal2.js +49 -47
- package/dist/components/Pagination/Pagination2.js +44 -47
- package/dist/components/ScrollToTop/ScrollToTop2.js +18 -16
- package/dist/components/ThemeSettings/ThemeSettings2.js +131 -123
- package/dist/components/TipsOfTheDay/TipsOfTheDay2.js +16 -12
- package/dist/components/Toast/Toast2.js +38 -33
- package/dist/components/ToolButton/ToolButton.css +1 -0
- package/dist/components/ToolButton/ToolButton2.js +36 -0
- package/dist/components/ToolPalette/ToolPalette.css +1 -0
- package/dist/components/ToolPalette/ToolPalette2.js +83 -0
- package/dist/components/Toolbar/Toolbar2.js +58 -56
- package/dist/contexts/LanguageContext/LanguageContext.context.js +9 -0
- package/dist/contexts/LanguageContext/LanguageContext.js +19 -0
- package/dist/contexts/LanguageContext/libMessages.js +240 -0
- package/dist/helpers/Datetime.js +84 -68
- package/dist/helpers/Language.js +8 -0
- package/dist/helpers/Pagination.js +5 -4
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/hooks/useLanguage.js +16 -0
- package/dist/index.d.ts +133 -6
- package/dist/index.js +417 -399
- package/dist/memobit-icons.json +4 -0
- package/dist/version.js +2 -2
- package/dist/version.json +4 -4
- package/package.json +1 -1
|
@@ -1,55 +1,57 @@
|
|
|
1
1
|
import './DataView.css';
|
|
2
|
-
import { Icon as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
2
|
+
import { Icon as mt } from "../Icon/Icon2.js";
|
|
3
|
+
import { libMessages as pt } from "../../contexts/LanguageContext/libMessages.js";
|
|
4
|
+
import { useLanguage as gt, useMessages as ht } from "../../hooks/useLanguage.js";
|
|
5
|
+
import { Button as vt } from "../Button/Button2.js";
|
|
6
|
+
import { Tooltip as wt } from "../Tooltip/Tooltip2.js";
|
|
7
|
+
import { Checkbox as bt } from "../Checkbox/Checkbox2.js";
|
|
8
|
+
import { Dropdown as St } from "../Dropdown/Dropdown2.js";
|
|
9
|
+
import { useBreakpoint as yt } from "../../hooks/useBreakpoint.js";
|
|
10
|
+
import { getResultsCount as Ct } from "../../helpers/Pagination.js";
|
|
11
|
+
import { useListMotion as _t } from "../../hooks/useListMotion/useListMotion.js";
|
|
12
|
+
import { EmptyState as Mt } from "../EmptyState/EmptyState2.js";
|
|
13
|
+
import { Pagination as kt } from "../Pagination/Pagination2.js";
|
|
14
|
+
import { calculateTimelineMarkers as Tt } from "../TimelineMarkers/calculateTimelineMarkers.js";
|
|
15
|
+
import { DEFAULT_PAGE_SIZES as De, getColumnLabel as Nt } from "./DataView.helpers.js";
|
|
16
|
+
import { CardView as Et } from "./DataView.CardView.js";
|
|
17
|
+
import { DataViewColumnSelector as Dt } from "./DataView.ColumnSelector.js";
|
|
18
|
+
import { DataViewMiniSort as Gt } from "./DataView.MiniSort.js";
|
|
19
|
+
import { TableView as Pt } from "./DataView.TableView.js";
|
|
18
20
|
/* empty css */
|
|
19
|
-
import { useCallback as Ge, useEffect as
|
|
20
|
-
import { Fragment as
|
|
21
|
-
function
|
|
22
|
-
const { isMobile:
|
|
23
|
-
enabled:
|
|
21
|
+
import { useCallback as Ge, useEffect as Lt, useMemo as D, useRef as Pe, useState as _ } from "react";
|
|
22
|
+
import { Fragment as Vt, jsx as r, jsxs as M } from "react/jsx-runtime";
|
|
23
|
+
function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1, onSelectionChange: Le, selectedIds: ee, pageSizeOptions: Ve = De, initialPageSize: Ae = De[1], showPageSize: U = !0, card: Be, actions: te, actionsWidth: Re, timeline: h, onRowClick: oe, rowHref: ne, rowClassName: se, rowDetail: xe, empty: re, initialSortKey: $e = null, initialSortDirection: ze = "asc", sortKey: K, sortDirection: ie, onSortChange: Fe, miniSort: B, showCardSortControls: We = !0, desktopView: ae = "table", cardMaxWidth: Ue, className: k, onPageChange: le, onPageSizeChange: Ke, currentPage: X, totalItems: ce, group: i, showResultsCount: Xe = !0, totalCount: je, itemNoun: Oe, columnSelector: j, animateChanges: He = !0, highlightIds: v }) {
|
|
24
|
+
const f = ht(pt), { language: Ze } = gt(), { isMobile: de } = yt(), R = Pe(null), x = _t(R, {
|
|
25
|
+
enabled: He && W !== void 0,
|
|
24
26
|
highlightKeys: v
|
|
25
|
-
}), [
|
|
26
|
-
|
|
27
|
+
}), [qe, Je] = _($e), [Qe, Ye] = _(ze), [Ie, et] = _([]), m = ee ?? Ie, [tt, ot] = _(1), O = X ?? tt, [w, nt] = _(Ae), [ue, st] = _(() => l.reduce((e, t) => (t.width && (e[t.key] = t.width), e), {})), [fe, rt] = _(/* @__PURE__ */ new Set()), me = (e) => {
|
|
28
|
+
x.forceNext(), rt((t) => {
|
|
27
29
|
const s = new Set(t);
|
|
28
30
|
return s.has(e) ? s.delete(e) : s.add(e), s;
|
|
29
31
|
});
|
|
30
|
-
}, c = Ge((e, t) =>
|
|
31
|
-
e !==
|
|
32
|
+
}, c = Ge((e, t) => W?.(e, t) ?? t, [W]), P = Ge((e) => {
|
|
33
|
+
e !== O && x.skipNext(), X === void 0 && ot(e), le?.(e);
|
|
32
34
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
]), d =
|
|
38
|
-
|
|
35
|
+
X,
|
|
36
|
+
O,
|
|
37
|
+
x,
|
|
38
|
+
le
|
|
39
|
+
]), d = K !== void 0 ? K : qe, u = ie ?? Qe, T = (e, t) => {
|
|
40
|
+
K === void 0 && Je(e), ie === void 0 && Ye(t), Fe?.({
|
|
39
41
|
key: e,
|
|
40
42
|
direction: t
|
|
41
|
-
}),
|
|
42
|
-
}, $ =
|
|
43
|
-
let e =
|
|
43
|
+
}), P(1);
|
|
44
|
+
}, $ = D(() => new Set(g ?? []), [g]), H = D(() => {
|
|
45
|
+
let e = A;
|
|
44
46
|
if (d) {
|
|
45
47
|
const o = l.find((n) => n.key === d);
|
|
46
48
|
if (o) {
|
|
47
|
-
const n = o.sortAccessor || o.accessor || ((
|
|
48
|
-
const
|
|
49
|
-
return typeof
|
|
50
|
-
}), a = [...
|
|
51
|
-
const V = n(
|
|
52
|
-
return typeof V == "number" && typeof
|
|
49
|
+
const n = o.sortAccessor || o.accessor || ((L) => {
|
|
50
|
+
const y = L[o.key];
|
|
51
|
+
return typeof y == "string" || typeof y == "number" ? y : "";
|
|
52
|
+
}), a = [...A].sort((L, y) => {
|
|
53
|
+
const V = n(L), C = n(y);
|
|
54
|
+
return typeof V == "number" && typeof C == "number" ? V - C : String(V).localeCompare(String(C));
|
|
53
55
|
});
|
|
54
56
|
e = u === "asc" ? a : a.reverse();
|
|
55
57
|
}
|
|
@@ -58,23 +60,23 @@ function Ht({ columns: l, data: L, rowKey: F, pinnedIds: p, selectable: G = !1,
|
|
|
58
60
|
const t = [], s = [];
|
|
59
61
|
if (e.forEach((o, n) => {
|
|
60
62
|
$.has(c(o, n)) ? t.push(o) : s.push(o);
|
|
61
|
-
}),
|
|
62
|
-
const o = new Map(
|
|
63
|
+
}), g && g.length > 1 && t.length > 1) {
|
|
64
|
+
const o = new Map(g.map((n, a) => [n, a]));
|
|
63
65
|
t.sort((n, a) => (o.get(c(n, 0)) ?? 0) - (o.get(c(a, 0)) ?? 0));
|
|
64
66
|
}
|
|
65
67
|
return [...t, ...s];
|
|
66
68
|
}, [
|
|
67
69
|
l,
|
|
68
|
-
|
|
70
|
+
A,
|
|
69
71
|
u,
|
|
70
72
|
d,
|
|
71
73
|
$,
|
|
72
|
-
|
|
74
|
+
g,
|
|
73
75
|
c
|
|
74
|
-
]), N =
|
|
75
|
-
if (!i || N) return
|
|
76
|
+
]), N = ce !== void 0, b = D(() => {
|
|
77
|
+
if (!i || N) return H;
|
|
76
78
|
const e = /* @__PURE__ */ new Map(), t = [];
|
|
77
|
-
|
|
79
|
+
H.forEach((o) => {
|
|
78
80
|
const n = i.groupBy(o), a = e.get(n);
|
|
79
81
|
a ? a.push(o) : (e.set(n, [o]), t.push(n));
|
|
80
82
|
});
|
|
@@ -91,35 +93,35 @@ function Ht({ columns: l, data: L, rowKey: F, pinnedIds: p, selectable: G = !1,
|
|
|
91
93
|
}, [
|
|
92
94
|
i,
|
|
93
95
|
N,
|
|
94
|
-
|
|
95
|
-
]),
|
|
96
|
-
|
|
97
|
-
if (!v || v.length === 0 || N ||
|
|
98
|
-
const e =
|
|
96
|
+
H
|
|
97
|
+
]), z = N ? ce : b.length, pe = Math.max(1, Math.ceil(z / w)), E = Math.min(O, pe), S = N ? b : b.slice((E - 1) * w, E * w), ge = Pe(void 0);
|
|
98
|
+
Lt(() => {
|
|
99
|
+
if (!v || v.length === 0 || N || ge.current === v) return;
|
|
100
|
+
const e = b.findIndex((s, o) => v.includes(c(s, o)));
|
|
99
101
|
if (e === -1) return;
|
|
100
|
-
|
|
101
|
-
const t = Math.floor(e /
|
|
102
|
-
t !==
|
|
102
|
+
ge.current = v;
|
|
103
|
+
const t = Math.floor(e / w) + 1;
|
|
104
|
+
t !== E && P(t);
|
|
103
105
|
}, [
|
|
104
|
-
|
|
106
|
+
P,
|
|
105
107
|
v,
|
|
106
108
|
N,
|
|
109
|
+
b,
|
|
107
110
|
w,
|
|
108
|
-
g,
|
|
109
111
|
c,
|
|
110
|
-
|
|
112
|
+
E
|
|
111
113
|
]);
|
|
112
|
-
const Z =
|
|
114
|
+
const Z = Xe ? Ct(w, z, je ?? z, E, Oe, Ze) : null, q = D(() => {
|
|
113
115
|
if (!i) return null;
|
|
114
116
|
const e = /* @__PURE__ */ new Map();
|
|
115
|
-
return
|
|
117
|
+
return b.forEach((t) => {
|
|
116
118
|
const s = i.groupBy(t);
|
|
117
119
|
e.set(s, (e.get(s) ?? 0) + 1);
|
|
118
120
|
}), e;
|
|
119
|
-
}, [i,
|
|
121
|
+
}, [i, b]), he = D(() => {
|
|
120
122
|
if (!i || !q) return null;
|
|
121
123
|
const e = /* @__PURE__ */ new Map(), t = [];
|
|
122
|
-
|
|
124
|
+
S.forEach((o) => {
|
|
123
125
|
const n = i.groupBy(o), a = e.get(n);
|
|
124
126
|
a ? a.push(o) : (e.set(n, [o]), t.push(n));
|
|
125
127
|
});
|
|
@@ -133,202 +135,202 @@ function Ht({ columns: l, data: L, rowKey: F, pinnedIds: p, selectable: G = !1,
|
|
|
133
135
|
}, [
|
|
134
136
|
i,
|
|
135
137
|
q,
|
|
136
|
-
|
|
137
|
-
]), ve =
|
|
138
|
+
S
|
|
139
|
+
]), ve = D(() => {
|
|
138
140
|
if (!h) return /* @__PURE__ */ new Map();
|
|
139
|
-
const e =
|
|
141
|
+
const e = S.map((t) => ({
|
|
140
142
|
id: h.idAccessor(t),
|
|
141
143
|
date: h.dateAccessor(t)
|
|
142
144
|
}));
|
|
143
|
-
return
|
|
144
|
-
}, [
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
e.sortable && (d === e.key ?
|
|
150
|
-
},
|
|
145
|
+
return Tt(e, h.granularity);
|
|
146
|
+
}, [S, h]), F = (e) => {
|
|
147
|
+
ee === void 0 && et(e), Le?.(A.filter((t, s) => e.includes(c(t, s))));
|
|
148
|
+
}, we = (e, t) => {
|
|
149
|
+
F(t ? [...m, e] : m.filter((s) => s !== e));
|
|
150
|
+
}, it = (e) => {
|
|
151
|
+
e.sortable && (d === e.key ? T(e.key, u === "asc" ? "desc" : "asc") : T(e.key, "asc"));
|
|
152
|
+
}, at = (e, t) => {
|
|
151
153
|
e.preventDefault();
|
|
152
|
-
const s = e.clientX, o =
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
...
|
|
156
|
-
[t]: Math.max(V, o +
|
|
154
|
+
const s = e.clientX, o = ue[t] ?? 150, n = (L) => {
|
|
155
|
+
const y = L.clientX - s, V = l.find((C) => C.key === t)?.minWidth ?? 120;
|
|
156
|
+
st((C) => ({
|
|
157
|
+
...C,
|
|
158
|
+
[t]: Math.max(V, o + y)
|
|
157
159
|
}));
|
|
158
160
|
}, a = () => {
|
|
159
161
|
window.removeEventListener("mousemove", n), window.removeEventListener("mouseup", a);
|
|
160
162
|
};
|
|
161
163
|
window.addEventListener("mousemove", n), window.addEventListener("mouseup", a);
|
|
162
|
-
},
|
|
163
|
-
label:
|
|
164
|
+
}, be = l.some((e) => e.filter), J = l.filter((e) => e.sortable), lt = J.map((e) => ({
|
|
165
|
+
label: Nt(e),
|
|
164
166
|
value: e.key
|
|
165
|
-
})),
|
|
167
|
+
})), ct = J.length > 0, Q = d ? J.find((e) => e.key === d) : void 0, dt = B?.align ?? "left", Se = (B?.columns ?? B?.column ?? []).length > 0 ? /* @__PURE__ */ r(Gt, {
|
|
166
168
|
columns: l,
|
|
167
|
-
config:
|
|
169
|
+
config: B,
|
|
168
170
|
sortKey: d,
|
|
169
171
|
sortDirection: u,
|
|
170
|
-
onSort:
|
|
171
|
-
}) : null,
|
|
172
|
-
|
|
173
|
-
},
|
|
172
|
+
onSort: T
|
|
173
|
+
}) : null, ye = j && j.options.length > 0 ? /* @__PURE__ */ r(Dt, { config: j }) : null, p = S.map(c), Y = p.filter((e) => m.includes(e)).length, I = !!G && p.length > 0 && Y === p.length, Ce = !!G && Y > 0 && Y < p.length, _e = (e) => {
|
|
174
|
+
F(e ? [...m, ...p.filter((t) => !m.includes(t))] : m.filter((t) => !p.includes(t)));
|
|
175
|
+
}, ut = G && p.length > 0 ? /* @__PURE__ */ M("label", {
|
|
174
176
|
className: "data-view__select-all",
|
|
175
|
-
children: [/* @__PURE__ */ r(
|
|
176
|
-
checked:
|
|
177
|
-
indeterminate:
|
|
178
|
-
onChange:
|
|
179
|
-
}), /* @__PURE__ */ r("span", { children:
|
|
180
|
-
}) : null,
|
|
181
|
-
className: `data-view__top-row data-view__top-row--mini-${
|
|
177
|
+
children: [/* @__PURE__ */ r(bt, {
|
|
178
|
+
checked: I,
|
|
179
|
+
indeterminate: Ce,
|
|
180
|
+
onChange: _e
|
|
181
|
+
}), /* @__PURE__ */ r("span", { children: I ? f.clearSelection : f.selectThese(p.length) })]
|
|
182
|
+
}) : null, Me = (e) => Z || Se || ye || e ? /* @__PURE__ */ M("div", {
|
|
183
|
+
className: `data-view__top-row data-view__top-row--mini-${dt}`,
|
|
182
184
|
children: [
|
|
183
185
|
Z && /* @__PURE__ */ r("div", {
|
|
184
186
|
className: "data-view__results-count",
|
|
185
187
|
children: Z
|
|
186
188
|
}),
|
|
187
189
|
e,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
Se,
|
|
191
|
+
ye
|
|
190
192
|
]
|
|
191
|
-
}) : null, ke =
|
|
192
|
-
currentPage:
|
|
193
|
-
totalPages:
|
|
194
|
-
totalItems:
|
|
195
|
-
onPageChange:
|
|
193
|
+
}) : null, ke = Me(), Te = /* @__PURE__ */ r(kt, {
|
|
194
|
+
currentPage: E,
|
|
195
|
+
totalPages: pe,
|
|
196
|
+
totalItems: z,
|
|
197
|
+
onPageChange: P,
|
|
196
198
|
pageSizeOptions: U ? Ve : void 0,
|
|
197
|
-
pageSize: U ?
|
|
199
|
+
pageSize: U ? w : void 0,
|
|
198
200
|
onPageSizeChange: U ? (e) => {
|
|
199
|
-
|
|
201
|
+
x.skipNext(), nt(e), P(1), Ke?.(e);
|
|
200
202
|
} : void 0
|
|
201
203
|
});
|
|
202
|
-
if (
|
|
204
|
+
if (ae !== "cards" && l.length === 0) return /* @__PURE__ */ M("div", {
|
|
203
205
|
className: `data-view${k ? ` ${k}` : ""}`,
|
|
204
|
-
ref:
|
|
206
|
+
ref: R,
|
|
205
207
|
children: [ke, /* @__PURE__ */ r("div", {
|
|
206
208
|
className: "data-view__wrapper data-view__wrapper--empty",
|
|
207
|
-
children: /* @__PURE__ */ r(
|
|
208
|
-
title:
|
|
209
|
-
description:
|
|
209
|
+
children: /* @__PURE__ */ r(Mt, {
|
|
210
|
+
title: f.noColumnsTitle,
|
|
211
|
+
description: f.noColumnsHint
|
|
210
212
|
})
|
|
211
213
|
})]
|
|
212
214
|
});
|
|
213
|
-
if (
|
|
215
|
+
if (ae === "cards") return /* @__PURE__ */ M("div", {
|
|
214
216
|
className: `data-view data-view--cards${k ? ` ${k}` : ""}`,
|
|
215
|
-
ref:
|
|
217
|
+
ref: R,
|
|
216
218
|
children: [
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
Me(ut),
|
|
220
|
+
We && ct && /* @__PURE__ */ M("div", {
|
|
219
221
|
className: "data-view__card-sort-bar",
|
|
220
222
|
children: [/* @__PURE__ */ r("div", {
|
|
221
223
|
className: "data-view__card-sort-field",
|
|
222
|
-
children: /* @__PURE__ */ r(
|
|
224
|
+
children: /* @__PURE__ */ r(St, {
|
|
223
225
|
name: "data-view-card-sort",
|
|
224
|
-
label:
|
|
225
|
-
options:
|
|
226
|
+
label: f.sortBy,
|
|
227
|
+
options: lt,
|
|
226
228
|
value: d,
|
|
227
|
-
placeholder:
|
|
229
|
+
placeholder: f.sortByPlaceholder,
|
|
228
230
|
searchable: !1,
|
|
229
231
|
usePortal: !1,
|
|
230
232
|
onChange: (e) => {
|
|
231
233
|
if (!e || Array.isArray(e)) {
|
|
232
|
-
|
|
234
|
+
T(null, u);
|
|
233
235
|
return;
|
|
234
236
|
}
|
|
235
237
|
const t = String(e.value);
|
|
236
|
-
|
|
238
|
+
T(t, d === t ? u : "asc");
|
|
237
239
|
}
|
|
238
240
|
})
|
|
239
|
-
}), /* @__PURE__ */ r(
|
|
240
|
-
title: u === "asc" ?
|
|
241
|
-
children: /* @__PURE__ */ r(
|
|
241
|
+
}), /* @__PURE__ */ r(wt, {
|
|
242
|
+
title: u === "asc" ? f.sortDescending : f.sortAscending,
|
|
243
|
+
children: /* @__PURE__ */ r(vt, {
|
|
242
244
|
className: "data-view__card-sort-direction",
|
|
243
|
-
disabled: !
|
|
245
|
+
disabled: !Q,
|
|
244
246
|
onClick: () => {
|
|
245
|
-
|
|
247
|
+
Q && T(Q.key, u === "asc" ? "desc" : "asc");
|
|
246
248
|
},
|
|
247
249
|
variant: "ghost",
|
|
248
|
-
children: /* @__PURE__ */ r(
|
|
250
|
+
children: /* @__PURE__ */ r(mt, { name: u === "asc" ? "arrow-up" : "arrow-down" })
|
|
249
251
|
})
|
|
250
252
|
})]
|
|
251
253
|
}),
|
|
252
|
-
|
|
254
|
+
be && /* @__PURE__ */ r("div", {
|
|
253
255
|
className: "data-view__filter-bar",
|
|
254
256
|
children: l.filter((e) => e.filter).map((e) => /* @__PURE__ */ r("div", {
|
|
255
257
|
className: "data-view__filter-bar-item",
|
|
256
258
|
children: e.filter
|
|
257
259
|
}, e.key))
|
|
258
260
|
}),
|
|
259
|
-
/* @__PURE__ */ r(
|
|
260
|
-
data:
|
|
261
|
+
/* @__PURE__ */ r(Et, {
|
|
262
|
+
data: S,
|
|
261
263
|
columns: l,
|
|
262
264
|
rowKey: c,
|
|
263
|
-
card:
|
|
264
|
-
actions:
|
|
265
|
+
card: Be,
|
|
266
|
+
actions: te,
|
|
265
267
|
timeline: h,
|
|
266
|
-
onRowClick:
|
|
267
|
-
rowHref:
|
|
268
|
-
rowClassName:
|
|
269
|
-
empty:
|
|
268
|
+
onRowClick: oe,
|
|
269
|
+
rowHref: ne,
|
|
270
|
+
rowClassName: se,
|
|
271
|
+
empty: re,
|
|
270
272
|
selectable: G,
|
|
271
|
-
selectedIds:
|
|
272
|
-
pinnedIds:
|
|
273
|
+
selectedIds: m,
|
|
274
|
+
pinnedIds: g,
|
|
273
275
|
cardMaxWidth: Ue,
|
|
274
|
-
isMobile:
|
|
276
|
+
isMobile: de,
|
|
275
277
|
groups: he ?? void 0,
|
|
276
278
|
showGroupCount: i?.showCount !== !1,
|
|
277
279
|
collapsible: i?.collapsible,
|
|
278
|
-
collapsedGroups:
|
|
279
|
-
onToggleGroup:
|
|
280
|
-
onToggleSelect:
|
|
280
|
+
collapsedGroups: fe,
|
|
281
|
+
onToggleGroup: me,
|
|
282
|
+
onToggleSelect: we
|
|
281
283
|
}),
|
|
282
|
-
|
|
284
|
+
Te
|
|
283
285
|
]
|
|
284
286
|
});
|
|
285
|
-
const
|
|
287
|
+
const ft = l.filter((e) => !e.hideInTable && !(de && e.hideInMobile)), Ne = h && ve.size > 0, Ee = /* @__PURE__ */ M(Vt, { children: [
|
|
286
288
|
ke,
|
|
287
289
|
/* @__PURE__ */ r("div", {
|
|
288
290
|
className: "data-view__wrapper",
|
|
289
|
-
children: /* @__PURE__ */ r(
|
|
290
|
-
data:
|
|
291
|
-
columns:
|
|
291
|
+
children: /* @__PURE__ */ r(Pt, {
|
|
292
|
+
data: S,
|
|
293
|
+
columns: ft,
|
|
292
294
|
rowKey: c,
|
|
293
|
-
columnWidths:
|
|
294
|
-
onResizeStart:
|
|
295
|
+
columnWidths: ue,
|
|
296
|
+
onResizeStart: at,
|
|
295
297
|
sortKey: d,
|
|
296
298
|
sortDirection: u,
|
|
297
|
-
onToggleSort:
|
|
298
|
-
hasFilters:
|
|
299
|
+
onToggleSort: it,
|
|
300
|
+
hasFilters: be,
|
|
299
301
|
showTimeline: !!Ne,
|
|
300
302
|
timelineMarkers: ve,
|
|
301
303
|
selectable: G,
|
|
302
|
-
selectedIds:
|
|
303
|
-
allVisibleSelected:
|
|
304
|
-
someVisibleSelected:
|
|
305
|
-
onToggleVisibleSelection:
|
|
306
|
-
onToggleSelect:
|
|
304
|
+
selectedIds: m,
|
|
305
|
+
allVisibleSelected: I,
|
|
306
|
+
someVisibleSelected: Ce,
|
|
307
|
+
onToggleVisibleSelection: _e,
|
|
308
|
+
onToggleSelect: we,
|
|
307
309
|
pinnedSet: $,
|
|
308
|
-
actions:
|
|
309
|
-
actionsWidth:
|
|
310
|
-
onRowClick:
|
|
311
|
-
rowHref:
|
|
312
|
-
rowClassName:
|
|
313
|
-
rowDetail:
|
|
314
|
-
empty:
|
|
310
|
+
actions: te,
|
|
311
|
+
actionsWidth: Re,
|
|
312
|
+
onRowClick: oe,
|
|
313
|
+
rowHref: ne,
|
|
314
|
+
rowClassName: se,
|
|
315
|
+
rowDetail: xe,
|
|
316
|
+
empty: re,
|
|
315
317
|
groups: he,
|
|
316
318
|
group: i,
|
|
317
|
-
collapsedGroups:
|
|
318
|
-
onToggleGroup:
|
|
319
|
+
collapsedGroups: fe,
|
|
320
|
+
onToggleGroup: me
|
|
319
321
|
})
|
|
320
322
|
}),
|
|
321
|
-
|
|
323
|
+
Te
|
|
322
324
|
] });
|
|
323
325
|
return /* @__PURE__ */ r("div", {
|
|
324
326
|
className: `data-view${k ? ` ${k}` : ""}`,
|
|
325
|
-
ref:
|
|
326
|
-
children: Ne ? /* @__PURE__ */
|
|
327
|
+
ref: R,
|
|
328
|
+
children: Ne ? /* @__PURE__ */ M("div", {
|
|
327
329
|
className: "timeline-markers",
|
|
328
|
-
children: [/* @__PURE__ */ r("div", { className: "timeline-markers__track" }),
|
|
329
|
-
}) :
|
|
330
|
+
children: [/* @__PURE__ */ r("div", { className: "timeline-markers__track" }), Ee]
|
|
331
|
+
}) : Ee
|
|
330
332
|
});
|
|
331
333
|
}
|
|
332
334
|
export {
|
|
333
|
-
|
|
335
|
+
oo as DataView
|
|
334
336
|
};
|