laif-ds 0.1.44 → 0.1.46
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/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/app-multiple-select-dropdown.js +40 -42
- package/dist/components/ui/button.js +23 -33
- package/dist/components/ui/command.js +14 -14
- package/dist/components/ui/data-table.js +180 -102
- package/dist/components/ui/table.js +30 -30
- package/dist/index.d.ts +27 -3
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
|
@@ -1,134 +1,212 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useReactTable as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Input as
|
|
8
|
-
import { ScrollArea as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
3
|
+
import { useReactTable as K, flexRender as k } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
4
|
+
import q, { useState as b, useEffect as J } from "react";
|
|
5
|
+
import { Checkbox as D } from "./checkbox.js";
|
|
6
|
+
import { cn as Q } from "../../lib/utils.js";
|
|
7
|
+
import { Input as U } from "./input.js";
|
|
8
|
+
import { ScrollArea as A, ScrollBar as x } from "./scroll-area.js";
|
|
9
|
+
import { AppMultipleSelectDropdown as X } from "./app-multiple-select-dropdown.js";
|
|
10
|
+
import { Table as Y, TableHeader as Z, TableRow as w, TableHead as B, TableBody as ee, TableCell as C } from "./table.js";
|
|
11
|
+
import { Skeleton as le } from "./skeleton.js";
|
|
12
|
+
import { getFilteredRowModel as te, getSortedRowModel as oe, getPaginationRowModel as ne, getCoreRowModel as ae } from "../../node_modules/@tanstack/table-core/build/lib/index.js";
|
|
13
|
+
function ce(r, s, n, d) {
|
|
14
|
+
const i = r.getValue(s), u = d == null ? void 0 : d.find((o) => o.column === s), m = (u == null ? void 0 : u.innerFiltersMode) ?? "OR";
|
|
15
|
+
if (Array.isArray(i))
|
|
16
|
+
return m === "AND" ? n.every((o) => i.includes(o)) : n.some((o) => i.includes(o));
|
|
17
|
+
switch (m) {
|
|
18
|
+
case "AND":
|
|
19
|
+
return n.every((o) => String(i) === o);
|
|
20
|
+
case "OR":
|
|
21
|
+
default:
|
|
22
|
+
return n.some((o) => String(i) === o);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function ie(r) {
|
|
26
|
+
return r.reduce(
|
|
27
|
+
(s, n) => (n.filterFn && (s[n.column] = (d, i, u) => {
|
|
28
|
+
const m = d.getValue(i);
|
|
29
|
+
switch (n.innerFiltersMode ?? "OR") {
|
|
30
|
+
case "AND":
|
|
31
|
+
return u.every(
|
|
32
|
+
(g) => n.filterFn(m, [g])
|
|
33
|
+
);
|
|
34
|
+
case "OR":
|
|
35
|
+
default:
|
|
36
|
+
return u.some(
|
|
37
|
+
(g) => n.filterFn(m, [g])
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
}), s),
|
|
41
|
+
{}
|
|
42
|
+
) || {};
|
|
43
|
+
}
|
|
44
|
+
function we({
|
|
45
|
+
columns: r,
|
|
46
|
+
data: s,
|
|
47
|
+
loading: n = !1,
|
|
48
|
+
emptyComponent: d,
|
|
49
|
+
className: i,
|
|
50
|
+
rowSelection: u = {},
|
|
51
|
+
onRowSelectionChange: m,
|
|
52
|
+
checkable: o = !1,
|
|
53
|
+
onCheckedRowsChange: g,
|
|
54
|
+
notFoundMessage: V = "Nessun risultato trovato.",
|
|
55
|
+
searchBar: f = void 0,
|
|
56
|
+
dropdownFilters: a = void 0
|
|
57
|
+
// outerFiltersMode = EFiltersMode.AND,
|
|
25
58
|
}) {
|
|
26
|
-
var
|
|
27
|
-
const [
|
|
59
|
+
var v;
|
|
60
|
+
const [T, z] = b([]), [$, H] = b([]), [P, j] = b({}), [y, F] = b(""), [L, O] = b({}), N = m ? u : L, _ = m || O, G = q.useMemo(() => o ? [
|
|
28
61
|
{
|
|
29
62
|
id: "select",
|
|
30
|
-
header: ({ table:
|
|
31
|
-
|
|
63
|
+
header: ({ table: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
|
|
64
|
+
D,
|
|
32
65
|
{
|
|
33
|
-
checked:
|
|
34
|
-
onCheckedChange: (
|
|
66
|
+
checked: e.getIsAllPageRowsSelected(),
|
|
67
|
+
onCheckedChange: (l) => e.toggleAllPageRowsSelected(!!l),
|
|
35
68
|
"aria-label": "Seleziona tutti"
|
|
36
69
|
}
|
|
37
70
|
) }),
|
|
38
|
-
cell: ({ row:
|
|
39
|
-
|
|
71
|
+
cell: ({ row: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
|
|
72
|
+
D,
|
|
40
73
|
{
|
|
41
|
-
checked:
|
|
42
|
-
onCheckedChange: (
|
|
74
|
+
checked: e.getIsSelected(),
|
|
75
|
+
onCheckedChange: (l) => e.toggleSelected(!!l),
|
|
43
76
|
"aria-label": "Seleziona riga"
|
|
44
77
|
}
|
|
45
78
|
) }),
|
|
46
79
|
enableSorting: !1,
|
|
47
80
|
enableHiding: !1
|
|
48
81
|
},
|
|
49
|
-
...
|
|
50
|
-
] :
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
82
|
+
...r
|
|
83
|
+
] : r, [r, o]).map((e) => {
|
|
84
|
+
const l = a == null ? void 0 : a.find(
|
|
85
|
+
(c) => c.column === (e == null ? void 0 : e.accessorKey)
|
|
86
|
+
);
|
|
87
|
+
return {
|
|
88
|
+
...e,
|
|
89
|
+
filterFn: l != null && l.filterFn ? l.column : "multiValue"
|
|
90
|
+
};
|
|
91
|
+
}), I = {
|
|
92
|
+
data: s,
|
|
93
|
+
columns: G,
|
|
94
|
+
getCoreRowModel: ae(),
|
|
95
|
+
getPaginationRowModel: ne(),
|
|
96
|
+
onSortingChange: z,
|
|
97
|
+
getSortedRowModel: oe(),
|
|
98
|
+
onColumnVisibilityChange: j,
|
|
99
|
+
onRowSelectionChange: _,
|
|
100
|
+
getFilteredRowModel: te(),
|
|
101
|
+
globalFilterFn: (e, l, c) => c ? (f == null ? void 0 : f.columns.some((S) => {
|
|
102
|
+
const R = e.getValue(S);
|
|
103
|
+
return String(R).toLowerCase().includes(c.toLowerCase());
|
|
104
|
+
})) ?? !1 : !0,
|
|
105
|
+
filterFns: {
|
|
106
|
+
multiValue: (e, l, c) => ce(e, l, c, a),
|
|
107
|
+
...ie(a ?? [])
|
|
108
|
+
},
|
|
61
109
|
state: {
|
|
62
|
-
sorting:
|
|
63
|
-
columnFilters:
|
|
64
|
-
columnVisibility:
|
|
65
|
-
rowSelection:
|
|
110
|
+
sorting: T,
|
|
111
|
+
columnFilters: $,
|
|
112
|
+
columnVisibility: P,
|
|
113
|
+
rowSelection: N,
|
|
114
|
+
globalFilter: y
|
|
66
115
|
}
|
|
67
|
-
});
|
|
68
|
-
return
|
|
69
|
-
if (
|
|
70
|
-
const
|
|
71
|
-
|
|
116
|
+
}, h = K(I);
|
|
117
|
+
return J(() => {
|
|
118
|
+
if (g && o) {
|
|
119
|
+
const e = h.getFilteredSelectedRowModel().rows.map((l) => l.original);
|
|
120
|
+
g(e);
|
|
72
121
|
}
|
|
73
|
-
}, [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
122
|
+
}, [h, g, o, N]), /* @__PURE__ */ p("div", { className: Q("flex h-full w-full flex-col gap-2", i), children: [
|
|
123
|
+
(f || (a == null ? void 0 : a.length)) && /* @__PURE__ */ p("div", { className: "flex flex-row items-end justify-between gap-2", children: [
|
|
124
|
+
f && /* @__PURE__ */ t(
|
|
125
|
+
U,
|
|
126
|
+
{
|
|
127
|
+
iconLeft: "Search",
|
|
128
|
+
placeholder: f.placeholder ?? "Cerca...",
|
|
129
|
+
value: y,
|
|
130
|
+
onChange: (e) => {
|
|
131
|
+
F(e.target.value || "");
|
|
132
|
+
},
|
|
133
|
+
className: "max-w-sm min-w-64"
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ t("div", { className: "flex h-full min-w-0 flex-1 items-center", children: a && a.length > 0 && /* @__PURE__ */ p(A, { className: "h-full w-full", children: [
|
|
137
|
+
/* @__PURE__ */ t(x, { orientation: "horizontal" }),
|
|
138
|
+
/* @__PURE__ */ t("div", { className: "flex w-full max-w-full min-w-0 items-center justify-end gap-2", children: a.map((e, l) => {
|
|
139
|
+
const [c, S] = b([]);
|
|
140
|
+
return /* @__PURE__ */ t(
|
|
141
|
+
X,
|
|
142
|
+
{
|
|
143
|
+
className: "w-[250px]",
|
|
144
|
+
options: e.items,
|
|
145
|
+
value: c,
|
|
146
|
+
placeholder: e.placeholder,
|
|
147
|
+
label: e.label,
|
|
148
|
+
onChange: (R) => {
|
|
149
|
+
S(R), H((W) => {
|
|
150
|
+
const M = W.filter(
|
|
151
|
+
(E) => E.id !== e.column
|
|
152
|
+
);
|
|
153
|
+
return R.length === 0 ? M : [
|
|
154
|
+
...M,
|
|
155
|
+
{ id: e.column, value: R }
|
|
156
|
+
];
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
l
|
|
161
|
+
);
|
|
162
|
+
}) })
|
|
163
|
+
] }) })
|
|
164
|
+
] }),
|
|
165
|
+
/* @__PURE__ */ p(A, { className: "border-d-border h-full min-h-0 w-full rounded-md border", children: [
|
|
166
|
+
/* @__PURE__ */ t(x, { orientation: "horizontal" }),
|
|
167
|
+
/* @__PURE__ */ t(x, { orientation: "vertical" }),
|
|
168
|
+
/* @__PURE__ */ p(Y, { children: [
|
|
169
|
+
/* @__PURE__ */ t(Z, { children: h.getHeaderGroups().map((e) => /* @__PURE__ */ t(w, { children: e.headers.map((l) => /* @__PURE__ */ t(
|
|
170
|
+
B,
|
|
93
171
|
{
|
|
94
|
-
className:
|
|
95
|
-
children:
|
|
96
|
-
|
|
97
|
-
|
|
172
|
+
className: `bg-d-secondary sticky top-0 z-10 ${l.column.columnDef.sticky ? "left-0" : ""}`,
|
|
173
|
+
children: l.isPlaceholder ? null : k(
|
|
174
|
+
l.column.columnDef.header,
|
|
175
|
+
l.getContext()
|
|
98
176
|
)
|
|
99
177
|
},
|
|
100
|
-
|
|
101
|
-
)) },
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
178
|
+
l.id
|
|
179
|
+
)) }, e.id)) }),
|
|
180
|
+
/* @__PURE__ */ t(ee, { children: n ? Array.from({ length: s.length || 8 }).map((e, l) => /* @__PURE__ */ t(w, { children: h.getHeaderGroups()[0].headers.map((c, S) => /* @__PURE__ */ t(
|
|
181
|
+
C,
|
|
104
182
|
{
|
|
105
|
-
className: `w-full ${
|
|
106
|
-
children: /* @__PURE__ */
|
|
183
|
+
className: `w-full ${c.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
|
|
184
|
+
children: /* @__PURE__ */ t(le, { className: "h-6 w-full" })
|
|
107
185
|
},
|
|
108
|
-
`skeleton-cell-${
|
|
109
|
-
)) }, `skeleton-row-${
|
|
110
|
-
|
|
186
|
+
`skeleton-cell-${l}-${S}`
|
|
187
|
+
)) }, `skeleton-row-${l}`)) : (v = h.getRowModel().rows) != null && v.length ? h.getRowModel().rows.map((e) => /* @__PURE__ */ t(
|
|
188
|
+
w,
|
|
111
189
|
{
|
|
112
|
-
"data-state":
|
|
113
|
-
children:
|
|
114
|
-
|
|
190
|
+
"data-state": e.getIsSelected() && "selected",
|
|
191
|
+
children: e.getVisibleCells().map((l) => /* @__PURE__ */ t(
|
|
192
|
+
C,
|
|
115
193
|
{
|
|
116
|
-
className: `${
|
|
117
|
-
children:
|
|
118
|
-
|
|
119
|
-
|
|
194
|
+
className: `${l.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
|
|
195
|
+
children: k(
|
|
196
|
+
l.column.columnDef.cell,
|
|
197
|
+
l.getContext()
|
|
120
198
|
)
|
|
121
199
|
},
|
|
122
|
-
|
|
200
|
+
l.id
|
|
123
201
|
))
|
|
124
202
|
},
|
|
125
|
-
|
|
126
|
-
)) : /* @__PURE__ */
|
|
127
|
-
|
|
203
|
+
e.id
|
|
204
|
+
)) : /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(
|
|
205
|
+
C,
|
|
128
206
|
{
|
|
129
|
-
colSpan:
|
|
130
|
-
className: "
|
|
131
|
-
children:
|
|
207
|
+
colSpan: r.length,
|
|
208
|
+
className: "pt-4 text-center",
|
|
209
|
+
children: d || V
|
|
132
210
|
}
|
|
133
211
|
) }) })
|
|
134
212
|
] })
|
|
@@ -136,5 +214,5 @@ function se({
|
|
|
136
214
|
] });
|
|
137
215
|
}
|
|
138
216
|
export {
|
|
139
|
-
|
|
217
|
+
we as DataTable
|
|
140
218
|
};
|
|
@@ -1,111 +1,111 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { cn as o } from "../../lib/utils.js";
|
|
4
|
-
function
|
|
4
|
+
function d({ className: e, ...t }) {
|
|
5
5
|
return /* @__PURE__ */ a(
|
|
6
6
|
"table",
|
|
7
7
|
{
|
|
8
8
|
"data-slot": "table-container",
|
|
9
9
|
className: o(
|
|
10
10
|
"relative w-full caption-bottom overflow-x-auto text-sm",
|
|
11
|
-
|
|
11
|
+
e
|
|
12
12
|
),
|
|
13
|
-
...
|
|
13
|
+
...t
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function n({ className: e, ...t }) {
|
|
18
18
|
return /* @__PURE__ */ a(
|
|
19
19
|
"thead",
|
|
20
20
|
{
|
|
21
21
|
"data-slot": "table-header",
|
|
22
|
-
className: o("[&_tr]:border-b",
|
|
23
|
-
...
|
|
22
|
+
className: o("[&_tr]:border-b", e),
|
|
23
|
+
...t
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function s({ className: e, ...t }) {
|
|
28
28
|
return /* @__PURE__ */ a(
|
|
29
29
|
"tbody",
|
|
30
30
|
{
|
|
31
31
|
"data-slot": "table-body",
|
|
32
|
-
className: o("[&_tr:last-child]:border-0",
|
|
33
|
-
...
|
|
32
|
+
className: o("[&_tr:last-child]:border-0", e),
|
|
33
|
+
...t
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
function c({ className:
|
|
37
|
+
function c({ className: e, ...t }) {
|
|
38
38
|
return /* @__PURE__ */ a(
|
|
39
39
|
"tfoot",
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "table-footer",
|
|
42
42
|
className: o(
|
|
43
43
|
"bg-d-secondary/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
44
|
-
|
|
44
|
+
e
|
|
45
45
|
),
|
|
46
|
-
...
|
|
46
|
+
...t
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
function b({ className:
|
|
50
|
+
function b({ className: e, ...t }) {
|
|
51
51
|
return /* @__PURE__ */ a(
|
|
52
52
|
"tr",
|
|
53
53
|
{
|
|
54
54
|
"data-slot": "table-row",
|
|
55
55
|
className: o(
|
|
56
|
-
"hover:bg-d-secondary/50 data-[state=selected]:bg-d-secondary border-b transition-colors",
|
|
57
|
-
|
|
56
|
+
"hover:bg-d-secondary/50 data-[state=selected]:bg-d-secondary border-d-border border-b transition-colors",
|
|
57
|
+
e
|
|
58
58
|
),
|
|
59
|
-
...
|
|
59
|
+
...t
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
function i({ className:
|
|
63
|
+
function i({ className: e, ...t }) {
|
|
64
64
|
return /* @__PURE__ */ a(
|
|
65
65
|
"th",
|
|
66
66
|
{
|
|
67
67
|
"data-slot": "table-head",
|
|
68
68
|
className: o(
|
|
69
|
-
"text-d-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
70
|
-
|
|
69
|
+
"text-d-foreground border-d-border h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
70
|
+
e
|
|
71
71
|
),
|
|
72
|
-
...
|
|
72
|
+
...t
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
function u({ className:
|
|
76
|
+
function u({ className: e, ...t }) {
|
|
77
77
|
return /* @__PURE__ */ a(
|
|
78
78
|
"td",
|
|
79
79
|
{
|
|
80
80
|
"data-slot": "table-cell",
|
|
81
81
|
className: o(
|
|
82
82
|
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
83
|
-
|
|
83
|
+
e
|
|
84
84
|
),
|
|
85
|
-
...
|
|
85
|
+
...t
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
89
|
function m({
|
|
90
|
-
className:
|
|
91
|
-
...
|
|
90
|
+
className: e,
|
|
91
|
+
...t
|
|
92
92
|
}) {
|
|
93
93
|
return /* @__PURE__ */ a(
|
|
94
94
|
"caption",
|
|
95
95
|
{
|
|
96
96
|
"data-slot": "table-caption",
|
|
97
|
-
className: o("text-d-secondary-foreground mt-4 text-sm",
|
|
98
|
-
...
|
|
97
|
+
className: o("text-d-secondary-foreground mt-4 text-sm", e),
|
|
98
|
+
...t
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
102
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
d as Table,
|
|
104
|
+
s as TableBody,
|
|
105
105
|
m as TableCaption,
|
|
106
106
|
u as TableCell,
|
|
107
107
|
c as TableFooter,
|
|
108
108
|
i as TableHead,
|
|
109
|
-
|
|
109
|
+
n as TableHeader,
|
|
110
110
|
b as TableRow
|
|
111
111
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -668,7 +668,7 @@ export declare enum DataRepeatTypes {
|
|
|
668
668
|
MONTH = "MONTH"
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
-
export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage,
|
|
671
|
+
export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage, searchBar, dropdownFilters, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
672
672
|
|
|
673
673
|
declare interface DataTableProps<TData, TValue> {
|
|
674
674
|
columns: ColumnDef<TData, TValue>[];
|
|
@@ -681,8 +681,8 @@ declare interface DataTableProps<TData, TValue> {
|
|
|
681
681
|
checkable?: boolean;
|
|
682
682
|
onCheckedRowsChange?: (checkedRows: TData[]) => void;
|
|
683
683
|
notFoundMessage?: string;
|
|
684
|
-
|
|
685
|
-
|
|
684
|
+
searchBar?: SearchBarProps;
|
|
685
|
+
dropdownFilters?: DropdownFilterProp[];
|
|
686
686
|
}
|
|
687
687
|
|
|
688
688
|
export declare function DatePicker({ value, onChange, placeholder, dateFormat, className, buttonVariant, disabled, size, }: DatePickerProps): JSX.Element;
|
|
@@ -738,6 +738,20 @@ export declare function DrawerTitle({ className, ...props }: React_2.ComponentPr
|
|
|
738
738
|
|
|
739
739
|
export declare function DrawerTrigger({ ...props }: React_2.ComponentProps<typeof Drawer_2.Trigger>): JSX.Element;
|
|
740
740
|
|
|
741
|
+
declare interface DropdownFilterItem {
|
|
742
|
+
label: string;
|
|
743
|
+
value: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
declare interface DropdownFilterProp {
|
|
747
|
+
column: string;
|
|
748
|
+
placeholder: string;
|
|
749
|
+
label?: string;
|
|
750
|
+
innerFiltersMode?: ELogicalFilterOperator;
|
|
751
|
+
items: DropdownFilterItem[];
|
|
752
|
+
filterFn?: (rowValue: unknown, filterValue: string[]) => boolean;
|
|
753
|
+
}
|
|
754
|
+
|
|
741
755
|
export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
742
756
|
|
|
743
757
|
export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -754,6 +768,11 @@ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Om
|
|
|
754
768
|
|
|
755
769
|
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
756
770
|
|
|
771
|
+
declare enum ELogicalFilterOperator {
|
|
772
|
+
AND = "AND",
|
|
773
|
+
OR = "OR"
|
|
774
|
+
}
|
|
775
|
+
|
|
757
776
|
export declare const FilePreview: default_3.ForwardRefExoticComponent<FilePreviewProps & default_3.RefAttributes<HTMLDivElement>>;
|
|
758
777
|
|
|
759
778
|
declare interface FilePreviewProps {
|
|
@@ -1297,6 +1316,11 @@ export declare function ScrollArea({ className, children, ...props }: React_2.Co
|
|
|
1297
1316
|
|
|
1298
1317
|
export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
|
|
1299
1318
|
|
|
1319
|
+
declare interface SearchBarProps {
|
|
1320
|
+
placeholder?: string;
|
|
1321
|
+
columns: string[];
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1300
1324
|
export declare function Select({ size, label, labelClassName, ...props }: SelectProps): JSX.Element;
|
|
1301
1325
|
|
|
1302
1326
|
export declare function SelectContent({ className, children, position, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index5.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __module as e } from "../../_virtual/
|
|
2
|
+
import { __module as e } from "../../_virtual/index4.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.production.min.js";
|
|
4
4
|
import { __require as o } from "./cjs/react-is.development.js";
|
|
5
5
|
var r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { bail as P } from "../../bail/index.js";
|
|
3
|
-
import y from "../../../_virtual/
|
|
3
|
+
import y from "../../../_virtual/index6.js";
|
|
4
4
|
import z from "../../is-plain-obj/index.js";
|
|
5
5
|
import { CallableInstance as C } from "./callable-instance.js";
|
|
6
6
|
import { trough as A } from "../../trough/lib/index.js";
|