laif-ds 0.1.33 → 0.1.35
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.
|
@@ -112,7 +112,7 @@ function ie({
|
|
|
112
112
|
//NOTE Cell is responsible for rendering the cell of his column
|
|
113
113
|
cell: (e) => {
|
|
114
114
|
const t = e.getValue();
|
|
115
|
-
return t ? t.render ? t.render(t.fromId, t.toId) : /* @__PURE__ */ o("div", { children: t.value }) : null;
|
|
115
|
+
return t ? t.render ? t.render(t.fromId, t.toId, t.id) : /* @__PURE__ */ o("div", { children: t.value }) : null;
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
}), n;
|
|
@@ -14,17 +14,17 @@ function se({
|
|
|
14
14
|
data: g,
|
|
15
15
|
loading: C = !1,
|
|
16
16
|
emptyComponent: R,
|
|
17
|
-
className:
|
|
18
|
-
rowSelection:
|
|
17
|
+
className: x,
|
|
18
|
+
rowSelection: k = {},
|
|
19
19
|
onRowSelectionChange: u,
|
|
20
20
|
checkable: a = !1,
|
|
21
21
|
onCheckedRowsChange: c,
|
|
22
|
-
notFoundMessage:
|
|
22
|
+
notFoundMessage: M = "Nessun risultato trovato.",
|
|
23
23
|
clientFilter: s = null,
|
|
24
|
-
clientFilterPlaceholder:
|
|
24
|
+
clientFilterPlaceholder: N = "Cerca..."
|
|
25
25
|
}) {
|
|
26
26
|
var h, S;
|
|
27
|
-
const [
|
|
27
|
+
const [y, v] = i([]), [T, z] = i([]), [D, F] = i({}), [V, $] = i({}), f = u ? k : V, A = u || $, H = j.useMemo(() => a ? [
|
|
28
28
|
{
|
|
29
29
|
id: "select",
|
|
30
30
|
header: ({ table: t }) => /* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l(
|
|
@@ -59,7 +59,7 @@ function se({
|
|
|
59
59
|
onColumnVisibilityChange: F,
|
|
60
60
|
onRowSelectionChange: A,
|
|
61
61
|
state: {
|
|
62
|
-
sorting:
|
|
62
|
+
sorting: y,
|
|
63
63
|
columnFilters: T,
|
|
64
64
|
columnVisibility: D,
|
|
65
65
|
rowSelection: f
|
|
@@ -70,12 +70,12 @@ function se({
|
|
|
70
70
|
const t = o.getFilteredSelectedRowModel().rows.map((e) => e.original);
|
|
71
71
|
c(t);
|
|
72
72
|
}
|
|
73
|
-
}, [o, c, a, f]), /* @__PURE__ */ d("div", { className: L("h-full w-full",
|
|
74
|
-
s && /* @__PURE__ */ l("div", { className: "flex items-center
|
|
73
|
+
}, [o, c, a, f]), /* @__PURE__ */ d("div", { className: L("flex h-full w-full flex-col gap-2", x), children: [
|
|
74
|
+
s && /* @__PURE__ */ l("div", { className: "flex items-center", children: /* @__PURE__ */ l(
|
|
75
75
|
E,
|
|
76
76
|
{
|
|
77
77
|
iconLeft: "Search",
|
|
78
|
-
placeholder:
|
|
78
|
+
placeholder: N ?? "Cerca...",
|
|
79
79
|
value: (h = o.getColumn(s)) == null ? void 0 : h.getFilterValue(),
|
|
80
80
|
onChange: (t) => {
|
|
81
81
|
var e;
|
|
@@ -128,7 +128,7 @@ function se({
|
|
|
128
128
|
{
|
|
129
129
|
colSpan: n.length,
|
|
130
130
|
className: "h-24 text-center",
|
|
131
|
-
children: R ||
|
|
131
|
+
children: R || M
|
|
132
132
|
}
|
|
133
133
|
) }) })
|
|
134
134
|
] })
|
package/dist/index.d.ts
CHANGED
|
@@ -552,11 +552,12 @@ declare type CopyButtonProps = {
|
|
|
552
552
|
};
|
|
553
553
|
|
|
554
554
|
export declare interface CrossTableCell {
|
|
555
|
-
render?: (fromId: string, toId: string) => ReactNode;
|
|
555
|
+
render?: (fromId: string, toId: string, id?: string) => ReactNode;
|
|
556
556
|
value?: number | string | null;
|
|
557
557
|
color?: string;
|
|
558
558
|
fromId: string;
|
|
559
559
|
toId: string;
|
|
560
|
+
id?: string;
|
|
560
561
|
}
|
|
561
562
|
|
|
562
563
|
declare interface CrossTableData {
|