@konstructio/ui 0.1.2-alpha.65 → 0.1.2-alpha.66
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/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/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.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.js +71 -65
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +42 -41
- 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 +2 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +190 -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 +23 -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 +2 -2
- 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 +2 -2
- 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 E } 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 u, useCallback as b, useEffect as N } from "react";
|
|
6
|
+
import { cn as O } 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: L = [],
|
|
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), [T, U] = r(0), [C, le] = r(), [g, ce] = r(_e), [de, ue] = r(B), A = l ? de : B, me = u(
|
|
36
|
+
() => Math.ceil(A / g),
|
|
37
|
+
[A, g]
|
|
38
|
+
), [I, fe] = r({}), F = Te({
|
|
39
|
+
queryKey: (() => {
|
|
40
|
+
const e = typeof s == "string" || typeof s == "number" ? [s] : s;
|
|
41
|
+
return re && e.push(T, g), C && e.push(C), Object.entries(I).forEach(([t, d]) => {
|
|
42
|
+
e.push(`${t}:${d.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(T + 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 ? F.data : G, ge = l ? F.isLoading : !1, M = l ? F.isFetching : !1, he = b((e) => {
|
|
57
|
+
le(e), U(0);
|
|
58
|
+
}, []), pe = b((e, t) => {
|
|
59
|
+
const d = e.toLowerCase().replace(/\s+/g, "_");
|
|
60
|
+
fe((q) => ({
|
|
61
|
+
...q,
|
|
62
|
+
[d]: 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
|
+
), P = Q !== void 0, c = P ? 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
|
+
P || Ce(t), $?.(e);
|
|
68
73
|
},
|
|
69
|
-
[
|
|
70
|
-
)
|
|
74
|
+
[c, P, $]
|
|
75
|
+
);
|
|
76
|
+
N(() => {
|
|
77
|
+
if (!i) return;
|
|
78
|
+
const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(), d = (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 w = { ...o };
|
|
86
|
+
return delete w[n.rowId], w;
|
|
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 w = !!o[n.rowId], z = { ...o };
|
|
93
|
+
return w ? delete z[n.rowId] : z[n.rowId] = !0, z;
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
return document.addEventListener(W.EXPAND_ROW, d, {
|
|
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 j = u(
|
|
107
|
+
() => h.some((e) => !!e.meta?.expandedRow),
|
|
108
|
+
[h]
|
|
109
|
+
), S = u(
|
|
110
|
+
() => M ? [] : h.map(
|
|
111
|
+
(e, t) => f ? f(e, t) : String(t)
|
|
112
|
+
),
|
|
113
|
+
[h, f, M]
|
|
114
|
+
), Ie = u(() => typeof c == "boolean" ? c : S.some((e) => !!c[e]), [c, S]), Se = u(() => typeof a == "boolean" ? a : typeof a == "object" ? S.some((e) => !!a[e]) : !1, [a, S]), _ = j || x && (Ie || Se), [m, V] = r(!!_);
|
|
115
|
+
N(() => {
|
|
116
|
+
if (_) {
|
|
117
|
+
const e = requestAnimationFrame(() => V(!0));
|
|
118
|
+
return () => cancelAnimationFrame(e);
|
|
119
|
+
} else
|
|
120
|
+
V(!1);
|
|
121
|
+
}, [_]);
|
|
122
|
+
const [v, X] = r(
|
|
123
|
+
!m
|
|
124
|
+
);
|
|
125
|
+
N(() => {
|
|
126
|
+
if (m)
|
|
127
|
+
X(!1);
|
|
128
|
+
else {
|
|
129
|
+
const e = setTimeout(() => X(!0), 300);
|
|
130
|
+
return () => clearTimeout(e);
|
|
131
|
+
}
|
|
132
|
+
}, [m]);
|
|
133
|
+
const K = u(() => !i || !j && !x ? null : {
|
|
71
134
|
id: "__expand",
|
|
72
|
-
header: () => /* @__PURE__ */
|
|
135
|
+
header: () => /* @__PURE__ */ E(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, d = typeof a == "object" && !!a[e.id];
|
|
138
|
+
return !t?.expandedRow && !e.getIsExpanded() && !d ? null : /* @__PURE__ */ E(
|
|
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__ */ E(
|
|
145
|
+
je,
|
|
83
146
|
{
|
|
84
|
-
className:
|
|
147
|
+
className: O(
|
|
85
148
|
"size-4 transition-transform text-slate-400 dark:text-metal-400",
|
|
86
149
|
{
|
|
87
150
|
"-rotate-90": e.getIsExpanded()
|
|
@@ -90,60 +153,79 @@ const Me = ({
|
|
|
90
153
|
}
|
|
91
154
|
)
|
|
92
155
|
}
|
|
93
|
-
)
|
|
156
|
+
);
|
|
94
157
|
},
|
|
95
158
|
enableSorting: !1,
|
|
96
159
|
meta: {
|
|
97
|
-
headerClassName:
|
|
98
|
-
|
|
160
|
+
headerClassName: O(
|
|
161
|
+
"transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
|
|
162
|
+
// Width: immediate change, CSS transition handles animation
|
|
163
|
+
m ? "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
|
+
v && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"
|
|
166
|
+
),
|
|
167
|
+
className: O(
|
|
168
|
+
"transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
|
|
169
|
+
m ? O("w-10 max-w-10 px-1 text-center", D) : "w-0 max-w-0 !p-0",
|
|
170
|
+
v && "!border-0 dark:[&+td]:border-l"
|
|
171
|
+
)
|
|
99
172
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
173
|
+
}, [
|
|
174
|
+
i,
|
|
175
|
+
j,
|
|
176
|
+
x,
|
|
177
|
+
m,
|
|
178
|
+
v,
|
|
179
|
+
a
|
|
180
|
+
]), we = u(() => K ? [K, ...L] : L, [L, 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__ */ E(
|
|
197
|
+
Pe.Provider,
|
|
117
198
|
{
|
|
118
199
|
value: {
|
|
119
|
-
sortedData:
|
|
120
|
-
table:
|
|
121
|
-
tableFetching:
|
|
122
|
-
tableLoading:
|
|
123
|
-
totalItems:
|
|
124
|
-
termOfSearch:
|
|
125
|
-
page:
|
|
126
|
-
multiselectSelected:
|
|
127
|
-
pageSize:
|
|
128
|
-
totalPages:
|
|
129
|
-
isFirstLoad:
|
|
130
|
-
enableExpandedRow:
|
|
131
|
-
classNameExpandedRow:
|
|
132
|
-
classNameExpandedCell:
|
|
133
|
-
classNameExpandedContent:
|
|
134
|
-
classNameActiveExpandedRow:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
200
|
+
sortedData: H,
|
|
201
|
+
table: Ee,
|
|
202
|
+
tableFetching: M,
|
|
203
|
+
tableLoading: ge,
|
|
204
|
+
totalItems: A,
|
|
205
|
+
termOfSearch: C,
|
|
206
|
+
page: T,
|
|
207
|
+
multiselectSelected: I,
|
|
208
|
+
pageSize: g,
|
|
209
|
+
totalPages: me,
|
|
210
|
+
isFirstLoad: ae,
|
|
211
|
+
enableExpandedRow: i,
|
|
212
|
+
classNameExpandedRow: k,
|
|
213
|
+
classNameExpandedCell: J,
|
|
214
|
+
classNameExpandedContent: Y,
|
|
215
|
+
classNameActiveExpandedRow: ee,
|
|
216
|
+
renderExpandedRow: x,
|
|
217
|
+
enableHoverRow: oe,
|
|
218
|
+
classNameHoverRow: te,
|
|
219
|
+
handlePage: ye,
|
|
220
|
+
onPageSize: be,
|
|
221
|
+
onChangeTermOfSearch: he,
|
|
222
|
+
onSorting: R,
|
|
223
|
+
onSelectMultiselect: pe
|
|
142
224
|
},
|
|
143
|
-
children:
|
|
225
|
+
children: Z
|
|
144
226
|
}
|
|
145
227
|
);
|
|
146
228
|
};
|
|
147
229
|
export {
|
|
148
|
-
|
|
230
|
+
Re as TableProvider
|
|
149
231
|
};
|
|
@@ -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) => boolean;
|
|
11
|
+
export declare const sendCollapseRowEvent: (tableId: string, rowId: string) => boolean;
|
|
12
|
+
export declare const sendToggleRowEvent: (tableId: string, rowId: string) => boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
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) => document.dispatchEvent(
|
|
3
|
+
new CustomEvent(
|
|
4
|
+
"@konstructio/VirtualizedTable/event-EXPAND_ROW",
|
|
5
|
+
{ detail: { tableId: t, rowId: e } }
|
|
6
|
+
)
|
|
7
|
+
), i = (t, e) => document.dispatchEvent(
|
|
8
|
+
new CustomEvent(
|
|
9
|
+
"@konstructio/VirtualizedTable/event-COLLAPSE_ROW",
|
|
10
|
+
{ detail: { tableId: t, rowId: e } }
|
|
11
|
+
)
|
|
12
|
+
), s = (t, e) => document.dispatchEvent(
|
|
13
|
+
new CustomEvent(
|
|
14
|
+
"@konstructio/VirtualizedTable/event-TOGGLE_ROW",
|
|
15
|
+
{ detail: { tableId: t, rowId: e } }
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
n as VirtualizedTableEvent,
|
|
20
|
+
i as sendCollapseRowEvent,
|
|
21
|
+
o as sendExpandRowEvent,
|
|
22
|
+
s as sendToggleRowEvent
|
|
23
|
+
};
|
|
@@ -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';
|
package/dist/components/index.js
CHANGED
|
@@ -1,95 +1,97 @@
|
|
|
1
|
-
import { Alert as
|
|
1
|
+
import { Alert as e } from "./Alert/Alert.js";
|
|
2
2
|
import { AlertDialog as p } from "./AlertDialog/AlertDialog.js";
|
|
3
3
|
import { Autocomplete as m } from "./Autocomplete/Autocomplete.js";
|
|
4
4
|
import { Badge as f } from "./Badge/Badge.js";
|
|
5
|
-
import { Breadcrumb as
|
|
5
|
+
import { Breadcrumb as i } from "./Breadcrumb/Breadcrumb.js";
|
|
6
6
|
import { Button as d } from "./Button/Button.js";
|
|
7
|
-
import { ButtonGroup as
|
|
7
|
+
import { ButtonGroup as g } from "./ButtonGroup/ButtonGroup.js";
|
|
8
8
|
import { Card as c } from "./Card/Card.js";
|
|
9
|
-
import { Checkbox as
|
|
9
|
+
import { Checkbox as D } from "./Checkbox/Checkbox.js";
|
|
10
10
|
import { Counter as V, Counter as S } from "./Counter/Counter.js";
|
|
11
11
|
import { DatePicker as w } from "./Datepicker/DatePicker.js";
|
|
12
|
-
import { DateRangePicker as
|
|
13
|
-
import { Divider as
|
|
14
|
-
import { Drawer as
|
|
15
|
-
import { DropdownButton as
|
|
16
|
-
import { Filter as
|
|
17
|
-
import { ImageUpload as
|
|
18
|
-
import { Input as
|
|
19
|
-
import { Loading as
|
|
20
|
-
import { M as
|
|
21
|
-
import { MultiSelectDropdown as
|
|
12
|
+
import { DateRangePicker as v } from "./DateRangePicker/DateRangePicker.js";
|
|
13
|
+
import { Divider as h } from "./Divider/Divider.js";
|
|
14
|
+
import { Drawer as N } from "./Drawer/Drawer.js";
|
|
15
|
+
import { DropdownButton as E } from "./DropdownButton/DropdownButton.js";
|
|
16
|
+
import { Filter as k } from "./Filter/Filter.js";
|
|
17
|
+
import { ImageUpload as F } from "./ImageUpload/ImageUpload.js";
|
|
18
|
+
import { Input as M } from "./Input/Input.js";
|
|
19
|
+
import { Loading as y } from "./Loading/Loading.js";
|
|
20
|
+
import { M as U } from "../Modal--z642-Wv.js";
|
|
21
|
+
import { MultiSelectDropdown as j } from "./MultiSelectDropdown/MultiSelectDropdown.js";
|
|
22
22
|
import { PhoneNumberInput as H } from "./PhoneNumberInput/PhoneNumberInput.js";
|
|
23
23
|
import { PieChart as K } from "./PieChart/PieChart.js";
|
|
24
24
|
import { ProgressBar as X } from "./ProgressBar/ProgressBar.js";
|
|
25
25
|
import { Radio as Z } from "./Radio/Radio.js";
|
|
26
26
|
import { RadioCard as $ } from "./RadioCard/RadioCard.js";
|
|
27
27
|
import { RadioCardGroup as or } from "./RadioCardGroup/RadioCardGroup.js";
|
|
28
|
-
import { RadioGroup as
|
|
28
|
+
import { RadioGroup as tr } from "./RadioGroup/RadioGroup.js";
|
|
29
29
|
import { Range as ar } from "./Range/Range.js";
|
|
30
30
|
import { Select as xr, Select as fr } from "./Select/Select.js";
|
|
31
|
-
import { Sidebar as
|
|
31
|
+
import { Sidebar as ir } from "./Sidebar/Sidebar.js";
|
|
32
32
|
import { Slider as dr } from "./Slider/Slider.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
33
|
+
import { Spinner as gr } from "./Spinner/Spinner.js";
|
|
34
|
+
import { Stepper as cr } from "./Stepper/Stepper.js";
|
|
35
|
+
import { Switch as Dr } from "./Switch/Switch.js";
|
|
36
|
+
import { Table as Vr } from "./Table/Table.js";
|
|
37
|
+
import { Tabs as br } from "./Tabs/Tabs.js";
|
|
38
|
+
import { Tag as Rr } from "./Tag/Tag.js";
|
|
38
39
|
import { TagSelect as Br } from "./TagSelect/TagSelect.js";
|
|
39
|
-
import { TextArea as
|
|
40
|
-
import { TimePicker as
|
|
41
|
-
import { Toast as
|
|
42
|
-
import { Tooltip as
|
|
43
|
-
import { Typography as
|
|
44
|
-
import { VirtualizedTable as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
40
|
+
import { TextArea as Ir } from "./TextArea/TextArea.js";
|
|
41
|
+
import { TimePicker as Pr } from "./TimePicker/TimePicker.js";
|
|
42
|
+
import { Toast as Lr } from "./Toast/Toast.js";
|
|
43
|
+
import { Tooltip as Ar } from "./Tooltip/Tooltip.js";
|
|
44
|
+
import { Typography as Gr } from "./Typography/Typography.js";
|
|
45
|
+
import { VirtualizedTable as zr } from "./VirtualizedTable/VirtualizedTable.js";
|
|
46
|
+
import { VirtualizedTableEvent as Or, sendCollapseRowEvent as Ur, sendExpandRowEvent as Wr, sendToggleRowEvent as jr } from "./VirtualizedTable/events/index.js";
|
|
47
|
+
import { horizontalConnectorWrapperVariants as Hr, stepConnectorVariants as Jr, stepContentVariants as Kr, stepDescriptionVariants as Qr, stepIndicatorVariants as Xr, stepItemVariants as Yr, stepLabelVariants as Zr, stepListVariants as _r, stepVariants as $r, stepperVariants as ro } from "./Stepper/Stepper.variants.js";
|
|
48
|
+
import { BadgeMultiSelect as eo } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
49
|
+
import { Content as po } from "./Tabs/components/Content.js";
|
|
50
|
+
import { DateFilterDropdown as mo } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
51
|
+
import { DateRangeFilterDropdown as fo } from "./Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
|
|
52
|
+
import { Footer as io } from "./Sidebar/components/Footer/Footer.js";
|
|
53
|
+
import { List as lo } from "./Tabs/components/List.js";
|
|
54
|
+
import { Logo as uo } from "./Sidebar/components/Logo/Logo.js";
|
|
55
|
+
import { Navigation as To } from "./Sidebar/components/Navigation/Navigation.js";
|
|
56
|
+
import { NavigationGroup as Co } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
57
|
+
import { NavigationOption as So } from "./Sidebar/components/NavigationOption/NavigationOption.js";
|
|
58
|
+
import { NavigationSeparator as wo } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
59
|
+
import { Trigger as vo } from "./Tabs/components/Trigger.js";
|
|
60
|
+
import { TruncateText as ho } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
59
61
|
export {
|
|
60
|
-
|
|
62
|
+
e as Alert,
|
|
61
63
|
p as AlertDialog,
|
|
62
64
|
m as Autocomplete,
|
|
63
65
|
f as Badge,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
eo as BadgeMultiSelect,
|
|
67
|
+
i as Breadcrumb,
|
|
66
68
|
d as Button,
|
|
67
|
-
|
|
69
|
+
g as ButtonGroup,
|
|
68
70
|
c as Card,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
D as Checkbox,
|
|
72
|
+
po as Content,
|
|
71
73
|
V as Counter,
|
|
72
|
-
|
|
74
|
+
mo as DateFilterDropdown,
|
|
73
75
|
w as DatePicker,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
fo as DateRangeFilterDropdown,
|
|
77
|
+
v as DateRangePicker,
|
|
78
|
+
h as Divider,
|
|
79
|
+
N as Drawer,
|
|
78
80
|
xr as Dropdown,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
E as DropdownButton,
|
|
82
|
+
k as Filter,
|
|
83
|
+
io as Footer,
|
|
84
|
+
F as ImageUpload,
|
|
85
|
+
M as Input,
|
|
86
|
+
lo as List,
|
|
87
|
+
y as Loading,
|
|
88
|
+
uo as Logo,
|
|
89
|
+
U as Modal,
|
|
90
|
+
j as MultiSelectDropdown,
|
|
91
|
+
To as Navigation,
|
|
92
|
+
Co as NavigationGroup,
|
|
93
|
+
So as NavigationOption,
|
|
94
|
+
wo as NavigationSeparator,
|
|
93
95
|
S as NumberInput,
|
|
94
96
|
H as PhoneNumberInput,
|
|
95
97
|
K as PieChart,
|
|
@@ -97,33 +99,38 @@ export {
|
|
|
97
99
|
Z as Radio,
|
|
98
100
|
$ as RadioCard,
|
|
99
101
|
or as RadioCardGroup,
|
|
100
|
-
|
|
102
|
+
tr as RadioGroup,
|
|
101
103
|
ar as Range,
|
|
102
104
|
fr as Select,
|
|
103
|
-
|
|
105
|
+
ir as Sidebar,
|
|
104
106
|
dr as Slider,
|
|
105
|
-
|
|
106
|
-
cr as
|
|
107
|
-
|
|
108
|
-
Vr as
|
|
109
|
-
br as
|
|
107
|
+
gr as Spinner,
|
|
108
|
+
cr as Stepper,
|
|
109
|
+
Dr as Switch,
|
|
110
|
+
Vr as Table,
|
|
111
|
+
br as Tabs,
|
|
112
|
+
Rr as Tag,
|
|
110
113
|
Br as TagSelect,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
Ur as
|
|
122
|
-
Wr as
|
|
123
|
-
jr as
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
114
|
+
Ir as TextArea,
|
|
115
|
+
Pr as TimePicker,
|
|
116
|
+
Lr as Toast,
|
|
117
|
+
Ar as Tooltip,
|
|
118
|
+
vo as Trigger,
|
|
119
|
+
ho as TruncateText,
|
|
120
|
+
Gr as Typography,
|
|
121
|
+
zr as VirtualizedTable,
|
|
122
|
+
Or as VirtualizedTableEvent,
|
|
123
|
+
Hr as horizontalConnectorWrapperVariants,
|
|
124
|
+
Ur as sendCollapseRowEvent,
|
|
125
|
+
Wr as sendExpandRowEvent,
|
|
126
|
+
jr as sendToggleRowEvent,
|
|
127
|
+
Jr as stepConnectorVariants,
|
|
128
|
+
Kr as stepContentVariants,
|
|
129
|
+
Qr as stepDescriptionVariants,
|
|
130
|
+
Xr as stepIndicatorVariants,
|
|
131
|
+
Yr as stepItemVariants,
|
|
132
|
+
Zr as stepLabelVariants,
|
|
133
|
+
_r as stepListVariants,
|
|
134
|
+
$r as stepVariants,
|
|
135
|
+
ro as stepperVariants
|
|
129
136
|
};
|