@konstructio/ui 0.1.2-alpha.66 → 0.1.2-alpha.68
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/AdditionalOptions-C2FDVZhu.js +45 -0
- package/dist/{DayPicker-PUEUVAST.js → DayPicker-CaeUXRCF.js} +475 -470
- package/dist/{Modal--z642-Wv.js → Modal-mwLmWbnA.js} +23 -20
- package/dist/assets/icons/components/CloudLockOutline.d.ts +3 -0
- package/dist/assets/icons/components/CloudLockOutline.js +28 -0
- package/dist/assets/icons/components/index.d.ts +1 -0
- package/dist/assets/icons/components/index.js +106 -104
- package/dist/assets/icons/index.js +106 -104
- package/dist/components/ButtonGroup/ButtonGroup.js +65 -61
- package/dist/components/ButtonGroup/ButtonGroup.types.d.ts +6 -0
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +32 -30
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +3 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +4 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +37 -17
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Select/Select.d.ts +1 -0
- package/dist/components/Select/Select.js +54 -40
- package/dist/components/Select/Select.types.d.ts +18 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.d.ts +3 -0
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +11 -0
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +4 -0
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.d.ts +1 -0
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +26 -0
- package/dist/components/Select/components/List/List.js +131 -132
- package/dist/components/Select/components/List/List.types.d.ts +1 -0
- package/dist/components/Select/components/List/List.variants.d.ts +1 -0
- package/dist/components/Select/components/List/List.variants.js +17 -2
- package/dist/components/Select/components/Wrapper.d.ts +3 -1
- package/dist/components/Select/components/Wrapper.js +65 -63
- package/dist/components/Select/components/index.d.ts +1 -0
- package/dist/components/Select/components/index.js +8 -6
- package/dist/components/VirtualizedTable/VirtualizedTable.d.ts +5 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.js +86 -80
- package/dist/components/VirtualizedTable/components/Body/Body.js +51 -49
- package/dist/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +69 -67
- package/dist/components/VirtualizedTable/events/index.d.ts +3 -3
- package/dist/components/VirtualizedTable/events/index.js +22 -16
- package/dist/components/index.js +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +106 -104
- package/dist/index.js +1 -1
- package/dist/package.json +21 -21
- package/dist/styles.css +1 -1
- package/package.json +21 -21
|
@@ -1,98 +1,99 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Typography as
|
|
2
|
+
import { forwardRef as ae, useId as re, useRef as w, useMemo as ne, useImperativeHandle as le, useEffect as se } from "react";
|
|
3
|
+
import { Typography as oe } from "../../Typography/Typography.js";
|
|
4
4
|
import { cn as n } from "../../../utils/index.js";
|
|
5
|
-
import { labelVariants as
|
|
6
|
-
import { useSelect as
|
|
7
|
-
import { List as
|
|
8
|
-
import { c as
|
|
9
|
-
import { LoaderIcon as
|
|
10
|
-
import { C as
|
|
11
|
-
import { useSelectContext as
|
|
12
|
-
const
|
|
5
|
+
import { labelVariants as ce, inputVariants as ie, selectVariants as me } from "../Select.variants.js";
|
|
6
|
+
import { useSelect as pe } from "../hooks/useSelect.js";
|
|
7
|
+
import { List as ue } from "./List/List.js";
|
|
8
|
+
import { c as fe } from "../../../createLucideIcon-CP-mMPfa.js";
|
|
9
|
+
import { LoaderIcon as de } from "../../../assets/icons/components/Loader.js";
|
|
10
|
+
import { C as xe } from "../../../chevron-up-IlDPxR7j.js";
|
|
11
|
+
import { useSelectContext as he } from "../contexts/select.hook.js";
|
|
12
|
+
const ve = [
|
|
13
13
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
14
14
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
15
|
-
],
|
|
15
|
+
], Ne = fe("search", ve), Oe = ae(
|
|
16
16
|
({
|
|
17
17
|
additionalOptions: z,
|
|
18
18
|
className: O,
|
|
19
19
|
defaultValue: x,
|
|
20
20
|
disabled: t = !1,
|
|
21
21
|
error: f,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
groupedOptions: R,
|
|
23
|
+
iconClassName: F,
|
|
24
|
+
inputClassName: S,
|
|
25
|
+
isInfiniteScrollEnabled: T = !1,
|
|
25
26
|
isLoading: g,
|
|
26
27
|
isRequired: h,
|
|
27
28
|
label: v,
|
|
28
|
-
labelAction:
|
|
29
|
-
labelClassName:
|
|
30
|
-
labelWrapperClassName:
|
|
31
|
-
listClassName:
|
|
32
|
-
listItemClassName:
|
|
33
|
-
listItemSecondRowClassName:
|
|
29
|
+
labelAction: E,
|
|
30
|
+
labelClassName: M,
|
|
31
|
+
labelWrapperClassName: W,
|
|
32
|
+
listClassName: _,
|
|
33
|
+
listItemClassName: $,
|
|
34
|
+
listItemSecondRowClassName: H,
|
|
34
35
|
name: d,
|
|
35
|
-
noOptionsText:
|
|
36
|
+
noOptionsText: P,
|
|
36
37
|
placeholder: N,
|
|
37
38
|
searchable: k = !1,
|
|
38
39
|
showSearchIcon: C,
|
|
39
|
-
theme:
|
|
40
|
-
wrapperClassName:
|
|
41
|
-
onFetchMoreOptions:
|
|
42
|
-
onBlur:
|
|
43
|
-
onSearchChange:
|
|
40
|
+
theme: U,
|
|
41
|
+
wrapperClassName: q,
|
|
42
|
+
onFetchMoreOptions: A,
|
|
43
|
+
onBlur: B,
|
|
44
|
+
onSearchChange: D,
|
|
44
45
|
...y
|
|
45
|
-
},
|
|
46
|
-
const I =
|
|
46
|
+
}, G) => {
|
|
47
|
+
const I = re(), c = w(null), j = w(null), J = w(0), {
|
|
47
48
|
isOpen: i,
|
|
48
49
|
options: l,
|
|
49
|
-
searchTerm:
|
|
50
|
+
searchTerm: K,
|
|
50
51
|
value: s,
|
|
51
|
-
setCanFilter:
|
|
52
|
-
setSearchTerm:
|
|
52
|
+
setCanFilter: Q,
|
|
53
|
+
setSearchTerm: X,
|
|
53
54
|
setValue: m,
|
|
54
|
-
toggleOpen:
|
|
55
|
-
} =
|
|
55
|
+
toggleOpen: Y
|
|
56
|
+
} = he(), e = ne(() => l.find(({ value: a }) => a === s), [l, s]), { wrapperRef: Z, wrapperInputRef: L, handleOpen: V } = pe({
|
|
56
57
|
ulRef: j,
|
|
57
58
|
inputRef: c,
|
|
58
59
|
disabled: t,
|
|
59
60
|
internalValue: e,
|
|
60
|
-
onBlur:
|
|
61
|
+
onBlur: B
|
|
61
62
|
}), p = d ? `${I}-${d}` : I;
|
|
62
|
-
|
|
63
|
+
le(G, () => c.current, [c]), se(() => {
|
|
63
64
|
if (x && !s) {
|
|
64
65
|
const a = l && l.find((u) => u.value === x);
|
|
65
66
|
a && m(a.value);
|
|
66
67
|
}
|
|
67
68
|
}, [x, l, m, s]);
|
|
68
|
-
const
|
|
69
|
+
const ee = (a) => {
|
|
69
70
|
const u = a.target.value;
|
|
70
|
-
|
|
71
|
+
Q(!0), m(""), X(u ?? ""), D?.(u);
|
|
71
72
|
const b = l.find(
|
|
72
|
-
(
|
|
73
|
+
(te) => te.value.toLocaleLowerCase() === u.toLocaleLowerCase()
|
|
73
74
|
);
|
|
74
75
|
m(b ? b.value : e?.value ?? "");
|
|
75
76
|
};
|
|
76
77
|
return /* @__PURE__ */ o(
|
|
77
78
|
"div",
|
|
78
79
|
{
|
|
79
|
-
ref:
|
|
80
|
-
className: n("flex flex-col gap-2 w-full relative",
|
|
81
|
-
"data-theme":
|
|
80
|
+
ref: Z,
|
|
81
|
+
className: n("flex flex-col gap-2 w-full relative", q),
|
|
82
|
+
"data-theme": U,
|
|
82
83
|
children: [
|
|
83
84
|
v ? /* @__PURE__ */ o(
|
|
84
85
|
"div",
|
|
85
86
|
{
|
|
86
87
|
className: n(
|
|
87
88
|
"flex items-center justify-between",
|
|
88
|
-
|
|
89
|
+
W
|
|
89
90
|
),
|
|
90
91
|
children: [
|
|
91
92
|
/* @__PURE__ */ o(
|
|
92
93
|
"label",
|
|
93
94
|
{
|
|
94
95
|
id: p,
|
|
95
|
-
className: n(
|
|
96
|
+
className: n(ce({ className: M })),
|
|
96
97
|
htmlFor: p,
|
|
97
98
|
onClick: () => !t && V(),
|
|
98
99
|
children: [
|
|
@@ -101,7 +102,7 @@ const he = [
|
|
|
101
102
|
]
|
|
102
103
|
}
|
|
103
104
|
),
|
|
104
|
-
|
|
105
|
+
E
|
|
105
106
|
]
|
|
106
107
|
}
|
|
107
108
|
) : null,
|
|
@@ -111,18 +112,18 @@ const he = [
|
|
|
111
112
|
ref: L,
|
|
112
113
|
id: p,
|
|
113
114
|
className: n(
|
|
114
|
-
|
|
115
|
+
me({ className: O, hasError: !!f, disabled: t })
|
|
115
116
|
),
|
|
116
117
|
role: "combobox",
|
|
117
|
-
onClick: () => !t &&
|
|
118
|
+
onClick: () => !t && Y(!i),
|
|
118
119
|
"aria-expanded": i,
|
|
119
|
-
tabIndex:
|
|
120
|
+
tabIndex: J.current,
|
|
120
121
|
"aria-labelledby": p,
|
|
121
122
|
children: [
|
|
122
123
|
/* @__PURE__ */ o("div", { className: "flex gap-2.5 items-center flex-1", children: [
|
|
123
124
|
e?.leftIcon && !C && /* @__PURE__ */ r("span", { className: "w-4 h-4 flex justify-center items-center dark:text-metal-50", children: e.leftIcon }),
|
|
124
125
|
C && /* @__PURE__ */ r(
|
|
125
|
-
|
|
126
|
+
Ne,
|
|
126
127
|
{
|
|
127
128
|
className: n(
|
|
128
129
|
"w-4",
|
|
@@ -140,10 +141,10 @@ const he = [
|
|
|
140
141
|
"input",
|
|
141
142
|
{
|
|
142
143
|
type: "text",
|
|
143
|
-
value: i ?
|
|
144
|
-
onChange:
|
|
144
|
+
value: i ? K : e?.label ?? s ?? "",
|
|
145
|
+
onChange: ee,
|
|
145
146
|
placeholder: N,
|
|
146
|
-
className: n(
|
|
147
|
+
className: n(ie({ className: S }), {
|
|
147
148
|
"text-red-700 placeholder:text-red-700": !!f
|
|
148
149
|
}),
|
|
149
150
|
onClick: (a) => {
|
|
@@ -159,7 +160,7 @@ const he = [
|
|
|
159
160
|
...y
|
|
160
161
|
}
|
|
161
162
|
) : /* @__PURE__ */ o(
|
|
162
|
-
|
|
163
|
+
oe,
|
|
163
164
|
{
|
|
164
165
|
variant: "body2",
|
|
165
166
|
className: n(
|
|
@@ -181,18 +182,18 @@ const he = [
|
|
|
181
182
|
)
|
|
182
183
|
] }),
|
|
183
184
|
g ? /* @__PURE__ */ r(
|
|
184
|
-
|
|
185
|
+
de,
|
|
185
186
|
{
|
|
186
187
|
size: 16,
|
|
187
188
|
className: "text-metal-400 animate-spin select-none"
|
|
188
189
|
}
|
|
189
190
|
) : !C && /* @__PURE__ */ r(
|
|
190
|
-
|
|
191
|
+
xe,
|
|
191
192
|
{
|
|
192
193
|
"data-state": i ? "open" : "closed",
|
|
193
194
|
className: n(
|
|
194
195
|
"w-4 h-4 text-zinc-500 transition-all duration-100 data-[state=open]:rotate-0 data-[state=closed]:rotate-180 select-none dark:group-focus-within:text-metal-50",
|
|
195
|
-
|
|
196
|
+
F,
|
|
196
197
|
{
|
|
197
198
|
"text-red-700": !!f,
|
|
198
199
|
"text-metal-400/50 dark:group-focus-within:text-zinc-500": t
|
|
@@ -218,22 +219,23 @@ const he = [
|
|
|
218
219
|
}
|
|
219
220
|
),
|
|
220
221
|
i && /* @__PURE__ */ r(
|
|
221
|
-
|
|
222
|
+
ue,
|
|
222
223
|
{
|
|
223
224
|
ref: j,
|
|
224
225
|
additionalOptions: z,
|
|
225
|
-
className:
|
|
226
|
-
|
|
226
|
+
className: _,
|
|
227
|
+
groupedOptions: R,
|
|
228
|
+
itemClassName: $,
|
|
227
229
|
name: d,
|
|
228
230
|
wrapperInputRef: L,
|
|
229
231
|
inputRef: c,
|
|
230
232
|
options: l,
|
|
231
233
|
isLoading: !!g,
|
|
232
234
|
searchable: k,
|
|
233
|
-
listItemSecondRowClassName:
|
|
234
|
-
isInfiniteScrollEnabled:
|
|
235
|
-
onFetchMoreOptions:
|
|
236
|
-
noOptionsText:
|
|
235
|
+
listItemSecondRowClassName: H,
|
|
236
|
+
isInfiniteScrollEnabled: T,
|
|
237
|
+
onFetchMoreOptions: A,
|
|
238
|
+
noOptionsText: P
|
|
237
239
|
}
|
|
238
240
|
)
|
|
239
241
|
]
|
|
@@ -242,5 +244,5 @@ const he = [
|
|
|
242
244
|
}
|
|
243
245
|
);
|
|
244
246
|
export {
|
|
245
|
-
|
|
247
|
+
Oe as Wrapper
|
|
246
248
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { A as t } from "../../../AdditionalOptions-C2FDVZhu.js";
|
|
2
|
+
import { EmptyList as e } from "./EmptyList.js";
|
|
3
|
+
import { List as m } from "./List/List.js";
|
|
4
|
+
import { Wrapper as s } from "./Wrapper.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
e as
|
|
7
|
-
|
|
6
|
+
t as AdditionalOptions,
|
|
7
|
+
e as EmptyList,
|
|
8
|
+
m as List,
|
|
9
|
+
s as Wrapper
|
|
8
10
|
};
|
|
@@ -5,6 +5,11 @@ import { Props as ActionProps } from './components/Actions/Actions.types';
|
|
|
5
5
|
type VirtualizedTableCompound = (<TData extends RowData>(props: Props<TData>) => JSX.Element) & {
|
|
6
6
|
TruncateText: typeof TruncateText;
|
|
7
7
|
Actions: <TData extends RowData>(props: ActionProps<TData>) => JSX.Element | null;
|
|
8
|
+
Events: {
|
|
9
|
+
sendExpandRowEvent: (tableId: string, rowId: string) => void;
|
|
10
|
+
sendCollapseRowEvent: (tableId: string, rowId: string) => void;
|
|
11
|
+
sendToggleRowEvent: (tableId: string, rowId: string) => void;
|
|
12
|
+
};
|
|
8
13
|
displayName?: string;
|
|
9
14
|
};
|
|
10
15
|
declare const VirtualizedTable: VirtualizedTableCompound;
|
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as U } from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
import { cn as s } from "../../utils/index.js";
|
|
4
|
+
import { sendToggleRowEvent as X, sendCollapseRowEvent as Y, sendExpandRowEvent as Z } from "./events/index.js";
|
|
5
|
+
import { TableProvider as _ } from "./contexts/table.provider.js";
|
|
6
|
+
import { Filter as $ } from "./components/Filter/Filter.js";
|
|
7
|
+
import { WrapperBody as D } from "./components/WrapperBody/WrapperBody.js";
|
|
8
|
+
import { Header as L } from "./components/Header/Header.js";
|
|
9
|
+
import { Body as rr } from "./components/Body/Body.js";
|
|
10
|
+
import { Pagination as er } from "./components/Pagination/Pagination.js";
|
|
11
|
+
import { TruncateText as or } from "./components/TruncateText/TruncateText.js";
|
|
12
|
+
import { Actions as ar } from "./components/Actions/Actions.js";
|
|
13
|
+
const tr = ({
|
|
14
|
+
id: c,
|
|
14
15
|
ariaLabel: p,
|
|
15
16
|
columns: d,
|
|
16
17
|
data: f,
|
|
17
18
|
totalItems: u = -1 / 0,
|
|
18
19
|
className: b,
|
|
19
20
|
classNameHeaderActiveArrows: T,
|
|
20
|
-
classNameHeaderArrows:
|
|
21
|
+
classNameHeaderArrows: v,
|
|
21
22
|
classNameHeaderTable: x,
|
|
22
|
-
classNameTable:
|
|
23
|
-
classNameWrapperTable:
|
|
23
|
+
classNameTable: E,
|
|
24
|
+
classNameWrapperTable: N,
|
|
24
25
|
isLoading: a,
|
|
25
|
-
getRowId:
|
|
26
|
-
fetchData:
|
|
27
|
-
queryOptions:
|
|
26
|
+
getRowId: w,
|
|
27
|
+
fetchData: A,
|
|
28
|
+
queryOptions: y,
|
|
28
29
|
// Pagination
|
|
29
|
-
showPagination:
|
|
30
|
+
showPagination: h,
|
|
30
31
|
showTotalItems: t,
|
|
31
32
|
showDropdownPagination: i,
|
|
32
33
|
showDotPagination: l,
|
|
33
34
|
showFormPagination: m,
|
|
34
|
-
pageSizes:
|
|
35
|
+
pageSizes: z,
|
|
35
36
|
// Filter
|
|
36
|
-
showFilter:
|
|
37
|
-
showFilterInput:
|
|
38
|
-
filterSearchPlaceholder:
|
|
39
|
-
multiSelectFilter:
|
|
40
|
-
filterActions:
|
|
41
|
-
showResetButton:
|
|
42
|
-
resetButtonClassName:
|
|
37
|
+
showFilter: B = !1,
|
|
38
|
+
showFilterInput: R,
|
|
39
|
+
filterSearchPlaceholder: V = "",
|
|
40
|
+
multiSelectFilter: g,
|
|
41
|
+
filterActions: j,
|
|
42
|
+
showResetButton: k = !0,
|
|
43
|
+
resetButtonClassName: P,
|
|
43
44
|
// Hover row
|
|
44
|
-
enableHoverRow:
|
|
45
|
-
classNameHoverRow:
|
|
45
|
+
enableHoverRow: C,
|
|
46
|
+
classNameHoverRow: H,
|
|
46
47
|
// Expandable rows
|
|
47
|
-
enableExpandedRow:
|
|
48
|
-
expandedState:
|
|
49
|
-
defaultExpanded:
|
|
50
|
-
classNameExpandedRow:
|
|
51
|
-
classNameExpandedCell:
|
|
52
|
-
classNameExpandedContent:
|
|
53
|
-
classNameExpandedHeader:
|
|
54
|
-
classNameActiveExpandedRow:
|
|
55
|
-
onExpandedChange:
|
|
56
|
-
renderExpandedRow:
|
|
48
|
+
enableExpandedRow: I,
|
|
49
|
+
expandedState: K,
|
|
50
|
+
defaultExpanded: M,
|
|
51
|
+
classNameExpandedRow: W,
|
|
52
|
+
classNameExpandedCell: q,
|
|
53
|
+
classNameExpandedContent: F,
|
|
54
|
+
classNameExpandedHeader: G,
|
|
55
|
+
classNameActiveExpandedRow: J,
|
|
56
|
+
onExpandedChange: O,
|
|
57
|
+
renderExpandedRow: Q,
|
|
57
58
|
keepExpandColumnVisible: S
|
|
58
59
|
}) => {
|
|
59
60
|
const e = U(
|
|
60
|
-
() =>
|
|
61
|
+
() => h || [
|
|
61
62
|
t,
|
|
62
63
|
i,
|
|
63
64
|
l,
|
|
@@ -66,90 +67,95 @@ const er = ({
|
|
|
66
67
|
[]
|
|
67
68
|
);
|
|
68
69
|
return /* @__PURE__ */ r(
|
|
69
|
-
|
|
70
|
+
_,
|
|
70
71
|
{
|
|
71
|
-
id:
|
|
72
|
+
id: c,
|
|
72
73
|
columns: d,
|
|
73
74
|
data: f,
|
|
74
|
-
getRowId:
|
|
75
|
-
fetchData:
|
|
75
|
+
getRowId: w,
|
|
76
|
+
fetchData: A,
|
|
76
77
|
totalItems: u,
|
|
77
|
-
queryOptions:
|
|
78
|
+
queryOptions: y,
|
|
78
79
|
isPaginationEnabled: e,
|
|
79
|
-
enableExpandedRow:
|
|
80
|
-
expandedState:
|
|
81
|
-
onExpandedChange:
|
|
82
|
-
defaultExpanded:
|
|
83
|
-
classNameExpandedRow:
|
|
84
|
-
classNameExpandedCell:
|
|
85
|
-
classNameExpandedContent:
|
|
86
|
-
classNameExpandedHeader:
|
|
87
|
-
classNameActiveExpandedRow:
|
|
88
|
-
enableHoverRow:
|
|
89
|
-
classNameHoverRow:
|
|
90
|
-
renderExpandedRow:
|
|
80
|
+
enableExpandedRow: I,
|
|
81
|
+
expandedState: K,
|
|
82
|
+
onExpandedChange: O,
|
|
83
|
+
defaultExpanded: M,
|
|
84
|
+
classNameExpandedRow: W,
|
|
85
|
+
classNameExpandedCell: q,
|
|
86
|
+
classNameExpandedContent: F,
|
|
87
|
+
classNameExpandedHeader: G,
|
|
88
|
+
classNameActiveExpandedRow: J,
|
|
89
|
+
enableHoverRow: C,
|
|
90
|
+
classNameHoverRow: H,
|
|
91
|
+
renderExpandedRow: Q,
|
|
91
92
|
keepExpandColumnVisible: S,
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
children: /* @__PURE__ */ n("section", { className: s("w-full min-w-fit", b), children: [
|
|
94
|
+
B && /* @__PURE__ */ r(
|
|
95
|
+
$,
|
|
95
96
|
{
|
|
96
|
-
actions:
|
|
97
|
-
multiSelectFilter:
|
|
98
|
-
placeholder:
|
|
99
|
-
showFilterInput:
|
|
100
|
-
showResetButton:
|
|
101
|
-
resetButtonClassName:
|
|
97
|
+
actions: j,
|
|
98
|
+
multiSelectFilter: g,
|
|
99
|
+
placeholder: V,
|
|
100
|
+
showFilterInput: R,
|
|
101
|
+
showResetButton: k,
|
|
102
|
+
resetButtonClassName: P
|
|
102
103
|
}
|
|
103
104
|
),
|
|
104
105
|
/* @__PURE__ */ r(
|
|
105
|
-
|
|
106
|
+
D,
|
|
106
107
|
{
|
|
107
108
|
showPagination: e,
|
|
108
|
-
classNameWrapperTable:
|
|
109
|
+
classNameWrapperTable: N,
|
|
109
110
|
isLoading: a,
|
|
110
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ n(
|
|
111
112
|
"table",
|
|
112
113
|
{
|
|
113
|
-
className:
|
|
114
|
+
className: s(
|
|
114
115
|
"w-full border-collapse table-auto",
|
|
115
116
|
"dark:border-separate dark:border-spacing-0",
|
|
116
|
-
|
|
117
|
+
E
|
|
117
118
|
),
|
|
118
119
|
"aria-label": p,
|
|
119
120
|
children: [
|
|
120
121
|
/* @__PURE__ */ r(
|
|
121
|
-
|
|
122
|
+
L,
|
|
122
123
|
{
|
|
123
124
|
className: x,
|
|
124
|
-
classNameArrows:
|
|
125
|
+
classNameArrows: v,
|
|
125
126
|
classNameActiveArrows: T
|
|
126
127
|
}
|
|
127
128
|
),
|
|
128
|
-
/* @__PURE__ */ r(
|
|
129
|
+
/* @__PURE__ */ r(rr, { isLoading: a, showPagination: e })
|
|
129
130
|
]
|
|
130
131
|
}
|
|
131
132
|
)
|
|
132
133
|
}
|
|
133
134
|
),
|
|
134
135
|
e && /* @__PURE__ */ r(
|
|
135
|
-
|
|
136
|
+
er,
|
|
136
137
|
{
|
|
137
138
|
showTotalItems: t,
|
|
138
139
|
showDropdownPagination: i,
|
|
139
140
|
showDotPagination: l,
|
|
140
141
|
showFormPagination: m,
|
|
141
|
-
pageSizes:
|
|
142
|
+
pageSizes: z,
|
|
142
143
|
isLoading: a
|
|
143
144
|
}
|
|
144
145
|
)
|
|
145
146
|
] })
|
|
146
147
|
}
|
|
147
148
|
);
|
|
148
|
-
}, o =
|
|
149
|
+
}, o = tr;
|
|
149
150
|
o.displayName = "KonstructVirtualizedTable";
|
|
150
|
-
o.TruncateText =
|
|
151
|
-
o.Actions =
|
|
151
|
+
o.TruncateText = or;
|
|
152
|
+
o.Actions = ar;
|
|
153
|
+
o.Events = {
|
|
154
|
+
sendExpandRowEvent: Z,
|
|
155
|
+
sendCollapseRowEvent: Y,
|
|
156
|
+
sendToggleRowEvent: X
|
|
157
|
+
};
|
|
152
158
|
export {
|
|
153
|
-
|
|
159
|
+
or as TruncateText,
|
|
154
160
|
o as VirtualizedTable
|
|
155
161
|
};
|