@konstructio/ui 0.1.2-alpha.65 → 0.1.2-alpha.67
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/{DayPicker-PUEUVAST.js → DayPicker-CaeUXRCF.js} +475 -470
- package/dist/assets/icons/components/AlertOutline.d.ts +3 -0
- package/dist/assets/icons/components/AlertOutline.js +28 -0
- package/dist/assets/icons/components/index.d.ts +1 -0
- package/dist/assets/icons/components/index.js +126 -124
- package/dist/assets/icons/index.js +122 -120
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +51 -51
- package/dist/components/Command/Command.js +1 -1
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1 -1
- package/dist/components/Drawer/components/index.js +6 -6
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -17
- package/dist/components/ProgressBar/ProgressBar.js +38 -59
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +12 -28
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +3 -3
- package/dist/components/ProgressBar/ProgressBar.variants.js +23 -24
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.d.ts +4 -0
- package/dist/components/Spinner/Spinner.js +57 -0
- package/dist/components/Spinner/Spinner.types.d.ts +13 -0
- package/dist/components/Spinner/Spinner.variants.d.ts +6 -0
- package/dist/components/Spinner/Spinner.variants.js +54 -0
- package/dist/components/Switch/Switch.js +47 -47
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Toast/Toast.js +9 -9
- package/dist/components/VirtualizedTable/VirtualizedTable.d.ts +5 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.js +83 -71
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +56 -53
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +2 -2
- package/dist/components/VirtualizedTable/contexts/table.context.d.ts +4 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +192 -108
- package/dist/components/VirtualizedTable/contexts/table.types.d.ts +4 -1
- package/dist/components/VirtualizedTable/events/index.d.ts +12 -0
- package/dist/components/VirtualizedTable/events/index.js +29 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +98 -91
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +122 -120
- package/dist/{index-DKfEnhKr.js → index--l0zux8V.js} +2 -2
- package/dist/{index-AV6ZtGhy.js → index-3fEdeexs.js} +1 -1
- package/dist/{index-CeZcoQDw.js → index-9a-FL_6D.js} +6 -6
- package/dist/{index-Dy59FQl5.js → index-BKMaItIC.js} +1 -1
- package/dist/{index-DtEcCIrM.js → index-BRXMsxSL.js} +1 -1
- package/dist/{index-DMb4KD0b.js → index-CESXsoMn.js} +1 -1
- package/dist/{index-BG8O18ZY.js → index-CJnS4BVW.js} +1 -1
- package/dist/{index-vcSp8YRZ.js → index-Cmf-IG4l.js} +10 -10
- package/dist/{index-Byr10W8m.js → index-DPcwqB8q.js} +618 -613
- package/dist/{index-BqhYevy7.js → index-Dd_ZmIqU.js} +19 -19
- package/dist/{index-D9SSJ6om.js → index-Dfq4O3b4.js} +3 -3
- package/dist/{index-gSPwC-1I.js → index-Jr0cra7i.js} +9 -9
- package/dist/{index-BlSRBdPy.js → index-URQGEGX7.js} +1 -1
- package/dist/index.js +142 -135
- package/dist/{libphonenumber-C9G59k5J.js → libphonenumber-aZ-2KWIf.js} +3 -3
- package/dist/package.json +21 -21
- package/dist/{proxy-BhEKW5n7.js → proxy-BIRlSMN_.js} +856 -851
- package/dist/styles.css +1 -1
- package/dist/useBreadcrumb-C_Wb2cXs.js +1435 -0
- package/dist/utils/index.js +514 -355
- package/package.json +21 -21
- package/dist/useBreadcrumb-vSs0pRo3.js +0 -1412
|
@@ -1,87 +1,150 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { V as
|
|
3
|
-
import { useQuery as
|
|
4
|
-
import { u as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { cn as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as O } from "react/jsx-runtime";
|
|
2
|
+
import { V as Le } from "../../../index-BKjcReYh.js";
|
|
3
|
+
import { useQuery as Te } from "@tanstack/react-query";
|
|
4
|
+
import { u as Ae, g as Fe, a as Me } from "../../../index-CSWGJT-v.js";
|
|
5
|
+
import { useState as r, useMemo as m, useCallback as b, useEffect as N } from "react";
|
|
6
|
+
import { cn as L } from "../../../utils/index.js";
|
|
7
|
+
import { VirtualizedTableEvent as W } from "../events/index.js";
|
|
8
|
+
import { TableContext as Pe } from "./table.context.js";
|
|
9
|
+
import { C as je } from "../../../chevron-right-DvXGOiS_.js";
|
|
10
|
+
import { DEFAULT_PAGE_SIZE as _e } from "../constants/pagination.js";
|
|
11
|
+
const Re = ({
|
|
12
|
+
children: Z,
|
|
13
|
+
classNameExpandedCell: J,
|
|
14
|
+
classNameExpandedContent: Y,
|
|
15
|
+
classNameExpandedRow: k,
|
|
16
|
+
classNameExpandedHeader: D,
|
|
17
|
+
classNameActiveExpandedRow: ee,
|
|
18
|
+
classNameHoverRow: te,
|
|
19
|
+
columns: T = [],
|
|
20
|
+
data: G = [],
|
|
21
|
+
defaultExpanded: ne,
|
|
22
|
+
enableExpandedRow: i,
|
|
23
|
+
enableHoverRow: oe,
|
|
24
|
+
expandedState: Q,
|
|
24
25
|
id: s,
|
|
25
|
-
isPaginationEnabled:
|
|
26
|
-
queryOptions:
|
|
27
|
-
totalItems:
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
isPaginationEnabled: re,
|
|
27
|
+
queryOptions: se = {},
|
|
28
|
+
totalItems: B,
|
|
29
|
+
getRowId: f,
|
|
30
|
+
fetchData: l,
|
|
31
|
+
onExpandedChange: $,
|
|
32
|
+
renderExpandedRow: x,
|
|
33
|
+
keepExpandColumnVisible: a
|
|
30
34
|
}) => {
|
|
31
|
-
const [
|
|
32
|
-
() => Math.ceil(
|
|
33
|
-
[
|
|
34
|
-
), [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
e.push(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
const [H, R] = r([]), [ae, ie] = r(!!l), [A, U] = r(0), [C, le] = r(), [g, ce] = r(_e), [de, ue] = r(B), F = l ? de : B, me = m(
|
|
36
|
+
() => Math.ceil(F / g),
|
|
37
|
+
[F, g]
|
|
38
|
+
), [I, fe] = r({}), M = Te({
|
|
39
|
+
queryKey: (() => {
|
|
40
|
+
const e = typeof s == "string" || typeof s == "number" ? [s] : s;
|
|
41
|
+
return re && e.push(A, g), C && e.push(C), Object.entries(I).forEach(([t, u]) => {
|
|
42
|
+
e.push(`${t}:${u.join(",")}`);
|
|
43
|
+
}), e;
|
|
44
|
+
})(),
|
|
41
45
|
refetchOnMount: !1,
|
|
42
46
|
refetchOnWindowFocus: !1,
|
|
43
|
-
initialData:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
initialData: G,
|
|
48
|
+
enabled: !!l,
|
|
49
|
+
queryFn: async () => l({
|
|
50
|
+
page: Math.max(A + 1, 1),
|
|
51
|
+
pageSize: g,
|
|
52
|
+
termOfSearch: C,
|
|
53
|
+
...Object.keys(I).length > 0 ? I : {}
|
|
54
|
+
}).then(({ data: e, totalItemsCount: t }) => (ie(!1), t && ue(t), e)),
|
|
55
|
+
...se
|
|
56
|
+
}), h = l ? M.data : G, ge = l ? M.isLoading : !1, P = l ? M.isFetching : !1, he = b((e) => {
|
|
57
|
+
le(e), U(0);
|
|
58
|
+
}, []), pe = b((e, t) => {
|
|
59
|
+
const u = e.toLowerCase().replace(/\s+/g, "_");
|
|
60
|
+
fe((q) => ({
|
|
61
|
+
...q,
|
|
62
|
+
[u]: t
|
|
58
63
|
}));
|
|
59
|
-
}, []),
|
|
60
|
-
(e) =>
|
|
64
|
+
}, []), ye = b((e) => U(e), []), be = b(
|
|
65
|
+
(e) => ce(e),
|
|
61
66
|
[]
|
|
62
|
-
), [
|
|
63
|
-
|
|
64
|
-
),
|
|
67
|
+
), [xe, Ce] = r(
|
|
68
|
+
ne ?? {}
|
|
69
|
+
), j = Q !== void 0, c = j ? Q : xe, p = b(
|
|
65
70
|
(e) => {
|
|
66
|
-
const t = typeof e == "function" ? e(
|
|
67
|
-
|
|
71
|
+
const t = typeof e == "function" ? e(c) : e;
|
|
72
|
+
j || Ce(t), $?.(e);
|
|
68
73
|
},
|
|
69
|
-
[
|
|
70
|
-
)
|
|
74
|
+
[c, j, $]
|
|
75
|
+
);
|
|
76
|
+
N(() => {
|
|
77
|
+
if (!i) return;
|
|
78
|
+
const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(), u = (y) => {
|
|
79
|
+
const { detail: n } = y;
|
|
80
|
+
n.tableId === e && p((o) => typeof o == "boolean" ? { [n.rowId]: !0 } : { ...o, [n.rowId]: !0 });
|
|
81
|
+
}, q = (y) => {
|
|
82
|
+
const { detail: n } = y;
|
|
83
|
+
n.tableId === e && p((o) => {
|
|
84
|
+
if (typeof o == "boolean") return {};
|
|
85
|
+
const E = { ...o };
|
|
86
|
+
return delete E[n.rowId], E;
|
|
87
|
+
});
|
|
88
|
+
}, Oe = (y) => {
|
|
89
|
+
const { detail: n } = y;
|
|
90
|
+
n.tableId === e && p((o) => {
|
|
91
|
+
if (typeof o == "boolean") return { [n.rowId]: !o };
|
|
92
|
+
const E = !!o[n.rowId], z = { ...o };
|
|
93
|
+
return E ? delete z[n.rowId] : z[n.rowId] = !0, z;
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
return document.addEventListener(W.EXPAND_ROW, u, {
|
|
97
|
+
signal: t.signal
|
|
98
|
+
}), document.addEventListener(
|
|
99
|
+
W.COLLAPSE_ROW,
|
|
100
|
+
q,
|
|
101
|
+
{ signal: t.signal }
|
|
102
|
+
), document.addEventListener(W.TOGGLE_ROW, Oe, {
|
|
103
|
+
signal: t.signal
|
|
104
|
+
}), () => t.abort();
|
|
105
|
+
}, [i, s, p]);
|
|
106
|
+
const _ = m(
|
|
107
|
+
() => h.some((e) => !!e.meta?.expandedRow),
|
|
108
|
+
[h]
|
|
109
|
+
), S = m(
|
|
110
|
+
() => P ? [] : h.map(
|
|
111
|
+
(e, t) => f ? f(e, t) : String(t)
|
|
112
|
+
),
|
|
113
|
+
[h, f, P]
|
|
114
|
+
), Ie = m(() => typeof c == "boolean" ? c : S.some((e) => !!c[e]), [c, S]), Se = m(() => typeof a == "boolean" ? a : typeof a == "object" ? S.some((e) => !!a[e]) : !1, [a, S]), v = _ || x && (Ie || Se), [d, V] = r(!!v);
|
|
115
|
+
N(() => {
|
|
116
|
+
if (v) {
|
|
117
|
+
const e = requestAnimationFrame(() => V(!0));
|
|
118
|
+
return () => cancelAnimationFrame(e);
|
|
119
|
+
} else
|
|
120
|
+
V(!1);
|
|
121
|
+
}, [v]);
|
|
122
|
+
const [w, X] = r(
|
|
123
|
+
!d
|
|
124
|
+
);
|
|
125
|
+
N(() => {
|
|
126
|
+
if (d)
|
|
127
|
+
X(!1);
|
|
128
|
+
else {
|
|
129
|
+
const e = setTimeout(() => X(!0), 300);
|
|
130
|
+
return () => clearTimeout(e);
|
|
131
|
+
}
|
|
132
|
+
}, [d]);
|
|
133
|
+
const K = m(() => !i || !_ && !x ? null : {
|
|
71
134
|
id: "__expand",
|
|
72
|
-
header: () => /* @__PURE__ */
|
|
135
|
+
header: () => /* @__PURE__ */ O(Le, { children: "Expand Column" }),
|
|
73
136
|
cell: ({ row: e }) => {
|
|
74
|
-
const { meta: t } = e.original;
|
|
75
|
-
return t?.expandedRow ? /* @__PURE__ */
|
|
137
|
+
const { meta: t } = e.original, u = typeof a == "object" && !!a[e.id];
|
|
138
|
+
return !t?.expandedRow && !e.getIsExpanded() && !u ? null : /* @__PURE__ */ O(
|
|
76
139
|
"button",
|
|
77
140
|
{
|
|
78
141
|
className: "hover:cursor-pointer",
|
|
79
142
|
onClick: () => e.toggleExpanded(),
|
|
80
143
|
"aria-label": e.getIsExpanded() ? "Collapse row" : "Expand row",
|
|
81
|
-
children: /* @__PURE__ */
|
|
82
|
-
|
|
144
|
+
children: /* @__PURE__ */ O(
|
|
145
|
+
je,
|
|
83
146
|
{
|
|
84
|
-
className:
|
|
147
|
+
className: L(
|
|
85
148
|
"size-4 transition-transform text-slate-400 dark:text-metal-400",
|
|
86
149
|
{
|
|
87
150
|
"-rotate-90": e.getIsExpanded()
|
|
@@ -90,60 +153,81 @@ const Me = ({
|
|
|
90
153
|
}
|
|
91
154
|
)
|
|
92
155
|
}
|
|
93
|
-
)
|
|
156
|
+
);
|
|
94
157
|
},
|
|
95
158
|
enableSorting: !1,
|
|
96
159
|
meta: {
|
|
97
|
-
headerClassName:
|
|
98
|
-
|
|
160
|
+
headerClassName: L(
|
|
161
|
+
"transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
|
|
162
|
+
// Width: immediate change, CSS transition handles animation
|
|
163
|
+
d ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0",
|
|
164
|
+
// Border/radius: deferred on collapse so border stays during exit
|
|
165
|
+
w && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"
|
|
166
|
+
),
|
|
167
|
+
className: L(
|
|
168
|
+
"transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
|
|
169
|
+
d ? L("w-10 max-w-10 px-1 text-center", D) : "w-0 max-w-0 !p-0",
|
|
170
|
+
w && "!border-0 dark:[&+td]:border-l"
|
|
171
|
+
)
|
|
99
172
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
173
|
+
}, [
|
|
174
|
+
i,
|
|
175
|
+
_,
|
|
176
|
+
x,
|
|
177
|
+
d,
|
|
178
|
+
w,
|
|
179
|
+
a
|
|
180
|
+
]), we = m(() => K ? [K, ...T] : T, [T, K]), Ee = Ae({
|
|
181
|
+
data: h,
|
|
182
|
+
columns: we,
|
|
183
|
+
...f ? { getRowId: f } : {},
|
|
103
184
|
state: {
|
|
104
|
-
sorting:
|
|
105
|
-
...
|
|
185
|
+
sorting: H,
|
|
186
|
+
...i ? { expanded: c } : {}
|
|
106
187
|
},
|
|
107
|
-
onSortingChange:
|
|
108
|
-
...
|
|
109
|
-
onExpandedChange:
|
|
188
|
+
onSortingChange: R,
|
|
189
|
+
...i ? {
|
|
190
|
+
onExpandedChange: p,
|
|
110
191
|
manualExpanding: !0
|
|
111
192
|
} : {},
|
|
112
|
-
getCoreRowModel:
|
|
113
|
-
getSortedRowModel:
|
|
193
|
+
getCoreRowModel: Me(),
|
|
194
|
+
getSortedRowModel: Fe()
|
|
114
195
|
});
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
-
|
|
196
|
+
return /* @__PURE__ */ O(
|
|
197
|
+
Pe.Provider,
|
|
117
198
|
{
|
|
118
199
|
value: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
200
|
+
classNameActiveExpandedRow: ee,
|
|
201
|
+
classNameExpandedCell: J,
|
|
202
|
+
classNameExpandedContent: Y,
|
|
203
|
+
classNameExpandedRow: k,
|
|
204
|
+
classNameHoverRow: te,
|
|
205
|
+
enableExpandedRow: i,
|
|
206
|
+
enableHoverRow: oe,
|
|
207
|
+
isBorderOnAdjacentCell: w,
|
|
208
|
+
isExpandColumnVisible: d,
|
|
209
|
+
isFirstLoad: ae,
|
|
210
|
+
multiselectSelected: I,
|
|
211
|
+
page: A,
|
|
212
|
+
pageSize: g,
|
|
213
|
+
sortedData: H,
|
|
214
|
+
table: Ee,
|
|
215
|
+
tableFetching: P,
|
|
216
|
+
tableLoading: ge,
|
|
217
|
+
termOfSearch: C,
|
|
218
|
+
totalItems: F,
|
|
219
|
+
totalPages: me,
|
|
220
|
+
handlePage: ye,
|
|
221
|
+
onChangeTermOfSearch: he,
|
|
222
|
+
onPageSize: be,
|
|
223
|
+
onSelectMultiselect: pe,
|
|
224
|
+
onSorting: R,
|
|
225
|
+
renderExpandedRow: x
|
|
142
226
|
},
|
|
143
|
-
children:
|
|
227
|
+
children: Z
|
|
144
228
|
}
|
|
145
229
|
);
|
|
146
230
|
};
|
|
147
231
|
export {
|
|
148
|
-
|
|
232
|
+
Re as TableProvider
|
|
149
233
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnDef, ExpandedState, OnChangeFn } from '@tanstack/react-table';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { RowData, Props as TableProps } from '../VirtualizedTable.types';
|
|
4
4
|
export type Props<TData extends RowData = RowData> = PropsWithChildren & {
|
|
5
5
|
id: string | string[] | number | number[];
|
|
@@ -19,6 +19,9 @@ export type Props<TData extends RowData = RowData> = PropsWithChildren & {
|
|
|
19
19
|
enableHoverRow?: boolean;
|
|
20
20
|
classNameHoverRow?: string;
|
|
21
21
|
onExpandedChange?: OnChangeFn<ExpandedState>;
|
|
22
|
+
renderExpandedRow?: (data: TData) => ReactNode;
|
|
23
|
+
keepExpandColumnVisible?: boolean | Record<string, boolean>;
|
|
24
|
+
getRowId?: (originalRow: TData, index: number) => string;
|
|
22
25
|
fetchData?: (params: Record<string, string | number | string[] | number[] | undefined>) => Promise<{
|
|
23
26
|
data: TData[];
|
|
24
27
|
totalItemsCount?: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum VirtualizedTableEvent {
|
|
2
|
+
EXPAND_ROW = "@konstructio/VirtualizedTable/event-EXPAND_ROW",
|
|
3
|
+
COLLAPSE_ROW = "@konstructio/VirtualizedTable/event-COLLAPSE_ROW",
|
|
4
|
+
TOGGLE_ROW = "@konstructio/VirtualizedTable/event-TOGGLE_ROW"
|
|
5
|
+
}
|
|
6
|
+
export type VirtualizedTableEventDetail = {
|
|
7
|
+
tableId: string;
|
|
8
|
+
rowId: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const sendExpandRowEvent: (tableId: string, rowId: string) => void;
|
|
11
|
+
export declare const sendCollapseRowEvent: (tableId: string, rowId: string) => void;
|
|
12
|
+
export declare const sendToggleRowEvent: (tableId: string, rowId: string) => void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var n = /* @__PURE__ */ ((t) => (t.EXPAND_ROW = "@konstructio/VirtualizedTable/event-EXPAND_ROW", t.COLLAPSE_ROW = "@konstructio/VirtualizedTable/event-COLLAPSE_ROW", t.TOGGLE_ROW = "@konstructio/VirtualizedTable/event-TOGGLE_ROW", t))(n || {});
|
|
2
|
+
const o = (t, e) => {
|
|
3
|
+
document.dispatchEvent(
|
|
4
|
+
new CustomEvent(
|
|
5
|
+
"@konstructio/VirtualizedTable/event-EXPAND_ROW",
|
|
6
|
+
{ detail: { tableId: t, rowId: e } }
|
|
7
|
+
)
|
|
8
|
+
);
|
|
9
|
+
}, i = (t, e) => {
|
|
10
|
+
document.dispatchEvent(
|
|
11
|
+
new CustomEvent(
|
|
12
|
+
"@konstructio/VirtualizedTable/event-COLLAPSE_ROW",
|
|
13
|
+
{ detail: { tableId: t, rowId: e } }
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
}, s = (t, e) => {
|
|
17
|
+
document.dispatchEvent(
|
|
18
|
+
new CustomEvent(
|
|
19
|
+
"@konstructio/VirtualizedTable/event-TOGGLE_ROW",
|
|
20
|
+
{ detail: { tableId: t, rowId: e } }
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
n as VirtualizedTableEvent,
|
|
26
|
+
i as sendCollapseRowEvent,
|
|
27
|
+
o as sendExpandRowEvent,
|
|
28
|
+
s as sendToggleRowEvent
|
|
29
|
+
};
|
|
@@ -31,6 +31,7 @@ export * from './Range/Range';
|
|
|
31
31
|
export * from './Select/Select';
|
|
32
32
|
export * from './Sidebar/Sidebar';
|
|
33
33
|
export * from './Slider/Slider';
|
|
34
|
+
export * from './Spinner/Spinner';
|
|
34
35
|
export * from './Stepper/Stepper';
|
|
35
36
|
export * from './Switch/Switch';
|
|
36
37
|
export * from './Table/Table';
|
|
@@ -43,6 +44,8 @@ export * from './Toast/Toast';
|
|
|
43
44
|
export * from './Tooltip/Tooltip';
|
|
44
45
|
export * from './Typography/Typography';
|
|
45
46
|
export * from './VirtualizedTable/VirtualizedTable';
|
|
47
|
+
export { sendExpandRowEvent, sendCollapseRowEvent, sendToggleRowEvent, VirtualizedTableEvent, } from './VirtualizedTable/events';
|
|
48
|
+
export type { VirtualizedTableEventDetail } from './VirtualizedTable/events';
|
|
46
49
|
export type { ColumnDef, RowData, } from './VirtualizedTable/VirtualizedTable.types';
|
|
47
50
|
export type { Step, StepperClassNames, StepperIcons, StepperProps, StepSize, StepStatus, StepVariant, } from './Stepper/Stepper.types';
|
|
48
51
|
export { horizontalConnectorWrapperVariants, stepConnectorVariants, stepContentVariants, stepDescriptionVariants, stepIndicatorVariants, stepItemVariants, stepLabelVariants, stepListVariants, stepperVariants, stepVariants, } from './Stepper/Stepper.variants';
|