@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,63 +1,65 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { f as
|
|
1
|
+
import { jsx as a, jsxs as A } from "react/jsx-runtime";
|
|
2
|
+
import { f as B } from "../../../../index-CSWGJT-v.js";
|
|
3
3
|
import { Fragment as H } from "react";
|
|
4
4
|
import { Skeleton as M } from "../Skeleton/Skeleton.js";
|
|
5
|
-
import { cn as
|
|
6
|
-
import { ExpandableRow as
|
|
7
|
-
import { useTableContext as
|
|
8
|
-
const
|
|
9
|
-
isLoading:
|
|
5
|
+
import { cn as l } from "../../../../utils/index.js";
|
|
6
|
+
import { ExpandableRow as O } from "../ExpandableRow/ExpandableRow.js";
|
|
7
|
+
import { useTableContext as V } from "../../contexts/table.hook.js";
|
|
8
|
+
const U = ({
|
|
9
|
+
isLoading: g,
|
|
10
10
|
showPagination: t
|
|
11
11
|
}) => {
|
|
12
12
|
const {
|
|
13
|
-
table:
|
|
14
|
-
pageSize:
|
|
15
|
-
tableFetching:
|
|
16
|
-
enableExpandedRow:
|
|
17
|
-
classNameExpandedRow:
|
|
18
|
-
classNameExpandedCell:
|
|
19
|
-
classNameExpandedContent:
|
|
13
|
+
table: i,
|
|
14
|
+
pageSize: h,
|
|
15
|
+
tableFetching: w,
|
|
16
|
+
enableExpandedRow: N,
|
|
17
|
+
classNameExpandedRow: R,
|
|
18
|
+
classNameExpandedCell: k,
|
|
19
|
+
classNameExpandedContent: E,
|
|
20
20
|
enableHoverRow: p,
|
|
21
|
-
classNameHoverRow:
|
|
21
|
+
classNameHoverRow: C,
|
|
22
22
|
classNameActiveExpandedRow: v,
|
|
23
|
-
renderExpandedRow:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
renderExpandedRow: b,
|
|
24
|
+
isBorderOnAdjacentCell: D,
|
|
25
|
+
isExpandColumnVisible: y
|
|
26
|
+
} = V();
|
|
27
|
+
if (g || w)
|
|
28
|
+
return /* @__PURE__ */ a(M, { numberOfRows: h, table: i });
|
|
29
|
+
const d = i.getRowModel().rows ?? [];
|
|
28
30
|
return /* @__PURE__ */ a(
|
|
29
31
|
"tbody",
|
|
30
32
|
{
|
|
31
|
-
className:
|
|
33
|
+
className: l(
|
|
32
34
|
"text-slate-800",
|
|
33
35
|
"text-sm",
|
|
34
36
|
"font-normal",
|
|
35
37
|
"relative",
|
|
36
38
|
"dark:border-x"
|
|
37
39
|
),
|
|
38
|
-
children:
|
|
39
|
-
const { id:
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
children: d.map((x, s) => {
|
|
41
|
+
const { id: m, original: c, getVisibleCells: j } = x, { meta: o = {} } = c, n = j(), e = N && x.getIsExpanded(), z = !!o.expandedRow || !!b, u = n[0]?.column.id !== "__expand" || y ? 0 : D ? 1 : null;
|
|
42
|
+
return /* @__PURE__ */ A(H, { children: [
|
|
41
43
|
/* @__PURE__ */ a(
|
|
42
44
|
"tr",
|
|
43
45
|
{
|
|
44
|
-
className:
|
|
46
|
+
className: l(
|
|
45
47
|
{ "group/row": p },
|
|
46
48
|
"border-b",
|
|
47
49
|
"border-b-gray-200",
|
|
48
50
|
"dark:text-metal-50",
|
|
49
51
|
"dark:border-b-metal-700",
|
|
50
52
|
"bg-transparent",
|
|
51
|
-
|
|
53
|
+
o.className
|
|
52
54
|
),
|
|
53
|
-
"data-row-id":
|
|
54
|
-
...
|
|
55
|
-
children:
|
|
56
|
-
const
|
|
55
|
+
"data-row-id": m,
|
|
56
|
+
...o.attributes ?? {},
|
|
57
|
+
children: n.map(({ id: F, column: r, getContext: S }, f) => {
|
|
58
|
+
const _ = typeof r.columnDef.meta?.className == "function" ? r.columnDef.meta?.className(c) : r.columnDef.meta?.className;
|
|
57
59
|
return /* @__PURE__ */ a(
|
|
58
60
|
"td",
|
|
59
61
|
{
|
|
60
|
-
className:
|
|
62
|
+
className: l(
|
|
61
63
|
"px-4",
|
|
62
64
|
"py-1",
|
|
63
65
|
"text-sm",
|
|
@@ -69,46 +71,46 @@ const J = ({
|
|
|
69
71
|
"dark:last:border-r",
|
|
70
72
|
{
|
|
71
73
|
"group-hover/row:bg-zinc-100 dark:group-hover/row:bg-metal-800": p,
|
|
72
|
-
[
|
|
74
|
+
[l(
|
|
73
75
|
"bg-zinc-100 dark:bg-metal-800",
|
|
74
76
|
v
|
|
75
77
|
)]: !!e
|
|
76
78
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
C,
|
|
80
|
+
_,
|
|
79
81
|
{
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
+
"rounded-bl-lg": s === d.length - 1 && u !== null && f === u && !t && !e,
|
|
83
|
+
"rounded-br-lg": s === d.length - 1 && f === n.length - 1 && !t && !e,
|
|
82
84
|
"dark:[tr:last-child_&]:border-b": !t
|
|
83
85
|
}
|
|
84
86
|
),
|
|
85
87
|
"data-expanded": e ? !0 : void 0,
|
|
86
88
|
...r.columnDef.meta?.attributes ?? {},
|
|
87
|
-
children:
|
|
89
|
+
children: B(r.columnDef.cell, S())
|
|
88
90
|
},
|
|
89
|
-
|
|
91
|
+
F
|
|
90
92
|
);
|
|
91
93
|
})
|
|
92
94
|
}
|
|
93
95
|
),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
z && /* @__PURE__ */ a(
|
|
97
|
+
O,
|
|
96
98
|
{
|
|
97
|
-
classNameExpandedCell:
|
|
98
|
-
classNameExpandedContent:
|
|
99
|
-
classNameExpandedRow:
|
|
100
|
-
colSpan:
|
|
101
|
-
id:
|
|
99
|
+
classNameExpandedCell: k,
|
|
100
|
+
classNameExpandedContent: E,
|
|
101
|
+
classNameExpandedRow: R,
|
|
102
|
+
colSpan: n.length,
|
|
103
|
+
id: m,
|
|
102
104
|
isExpanded: !!e,
|
|
103
|
-
isLastRow:
|
|
104
|
-
children:
|
|
105
|
+
isLastRow: s === d.length - 1 && !t,
|
|
106
|
+
children: o.expandedRow ?? b?.(c)
|
|
105
107
|
}
|
|
106
108
|
)
|
|
107
|
-
] },
|
|
109
|
+
] }, m);
|
|
108
110
|
})
|
|
109
111
|
}
|
|
110
112
|
);
|
|
111
113
|
};
|
|
112
114
|
export {
|
|
113
|
-
|
|
115
|
+
U as Body
|
|
114
116
|
};
|
|
@@ -20,6 +20,8 @@ export type ContextType<TData extends RowData = RowData> = {
|
|
|
20
20
|
classNameActiveExpandedRow?: string;
|
|
21
21
|
enableHoverRow?: boolean;
|
|
22
22
|
classNameHoverRow?: string;
|
|
23
|
+
isBorderOnAdjacentCell?: boolean;
|
|
24
|
+
isExpandColumnVisible?: boolean;
|
|
23
25
|
renderExpandedRow?: (data: RowData) => ReactNode;
|
|
24
26
|
handlePage: (newPage: number) => void;
|
|
25
27
|
onPageSize: (newPageSize: number) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import { V as Le } from "../../../index-BKjcReYh.js";
|
|
3
3
|
import { useQuery as Te } from "@tanstack/react-query";
|
|
4
4
|
import { u as Ae, g as Fe, a as Me } from "../../../index-CSWGJT-v.js";
|
|
5
|
-
import { useState as r, useMemo as
|
|
6
|
-
import { cn as
|
|
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
7
|
import { VirtualizedTableEvent as W } from "../events/index.js";
|
|
8
8
|
import { TableContext as Pe } from "./table.context.js";
|
|
9
9
|
import { C as je } from "../../../chevron-right-DvXGOiS_.js";
|
|
@@ -16,7 +16,7 @@ const Re = ({
|
|
|
16
16
|
classNameExpandedHeader: D,
|
|
17
17
|
classNameActiveExpandedRow: ee,
|
|
18
18
|
classNameHoverRow: te,
|
|
19
|
-
columns:
|
|
19
|
+
columns: T = [],
|
|
20
20
|
data: G = [],
|
|
21
21
|
defaultExpanded: ne,
|
|
22
22
|
enableExpandedRow: i,
|
|
@@ -32,14 +32,14 @@ const Re = ({
|
|
|
32
32
|
renderExpandedRow: x,
|
|
33
33
|
keepExpandColumnVisible: a
|
|
34
34
|
}) => {
|
|
35
|
-
const [H, R] = r([]), [ae, ie] = r(!!l), [
|
|
36
|
-
() => Math.ceil(
|
|
37
|
-
[
|
|
38
|
-
), [I, fe] = r({}),
|
|
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
39
|
queryKey: (() => {
|
|
40
40
|
const e = typeof s == "string" || typeof s == "number" ? [s] : s;
|
|
41
|
-
return re && e.push(
|
|
42
|
-
e.push(`${t}:${
|
|
41
|
+
return re && e.push(A, g), C && e.push(C), Object.entries(I).forEach(([t, u]) => {
|
|
42
|
+
e.push(`${t}:${u.join(",")}`);
|
|
43
43
|
}), e;
|
|
44
44
|
})(),
|
|
45
45
|
refetchOnMount: !1,
|
|
@@ -47,53 +47,53 @@ const Re = ({
|
|
|
47
47
|
initialData: G,
|
|
48
48
|
enabled: !!l,
|
|
49
49
|
queryFn: async () => l({
|
|
50
|
-
page: Math.max(
|
|
50
|
+
page: Math.max(A + 1, 1),
|
|
51
51
|
pageSize: g,
|
|
52
52
|
termOfSearch: C,
|
|
53
53
|
...Object.keys(I).length > 0 ? I : {}
|
|
54
54
|
}).then(({ data: e, totalItemsCount: t }) => (ie(!1), t && ue(t), e)),
|
|
55
55
|
...se
|
|
56
|
-
}), h = l ?
|
|
56
|
+
}), h = l ? M.data : G, ge = l ? M.isLoading : !1, P = l ? M.isFetching : !1, he = b((e) => {
|
|
57
57
|
le(e), U(0);
|
|
58
58
|
}, []), pe = b((e, t) => {
|
|
59
|
-
const
|
|
59
|
+
const u = e.toLowerCase().replace(/\s+/g, "_");
|
|
60
60
|
fe((q) => ({
|
|
61
61
|
...q,
|
|
62
|
-
[
|
|
62
|
+
[u]: t
|
|
63
63
|
}));
|
|
64
64
|
}, []), ye = b((e) => U(e), []), be = b(
|
|
65
65
|
(e) => ce(e),
|
|
66
66
|
[]
|
|
67
67
|
), [xe, Ce] = r(
|
|
68
68
|
ne ?? {}
|
|
69
|
-
),
|
|
69
|
+
), j = Q !== void 0, c = j ? Q : xe, p = b(
|
|
70
70
|
(e) => {
|
|
71
71
|
const t = typeof e == "function" ? e(c) : e;
|
|
72
|
-
|
|
72
|
+
j || Ce(t), $?.(e);
|
|
73
73
|
},
|
|
74
|
-
[c,
|
|
74
|
+
[c, j, $]
|
|
75
75
|
);
|
|
76
76
|
N(() => {
|
|
77
77
|
if (!i) return;
|
|
78
|
-
const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(),
|
|
78
|
+
const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(), u = (y) => {
|
|
79
79
|
const { detail: n } = y;
|
|
80
80
|
n.tableId === e && p((o) => typeof o == "boolean" ? { [n.rowId]: !0 } : { ...o, [n.rowId]: !0 });
|
|
81
81
|
}, q = (y) => {
|
|
82
82
|
const { detail: n } = y;
|
|
83
83
|
n.tableId === e && p((o) => {
|
|
84
84
|
if (typeof o == "boolean") return {};
|
|
85
|
-
const
|
|
86
|
-
return delete
|
|
85
|
+
const E = { ...o };
|
|
86
|
+
return delete E[n.rowId], E;
|
|
87
87
|
});
|
|
88
88
|
}, Oe = (y) => {
|
|
89
89
|
const { detail: n } = y;
|
|
90
90
|
n.tableId === e && p((o) => {
|
|
91
91
|
if (typeof o == "boolean") return { [n.rowId]: !o };
|
|
92
|
-
const
|
|
93
|
-
return
|
|
92
|
+
const E = !!o[n.rowId], z = { ...o };
|
|
93
|
+
return E ? delete z[n.rowId] : z[n.rowId] = !0, z;
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
return document.addEventListener(W.EXPAND_ROW,
|
|
96
|
+
return document.addEventListener(W.EXPAND_ROW, u, {
|
|
97
97
|
signal: t.signal
|
|
98
98
|
}), document.addEventListener(
|
|
99
99
|
W.COLLAPSE_ROW,
|
|
@@ -103,48 +103,48 @@ const Re = ({
|
|
|
103
103
|
signal: t.signal
|
|
104
104
|
}), () => t.abort();
|
|
105
105
|
}, [i, s, p]);
|
|
106
|
-
const
|
|
106
|
+
const _ = m(
|
|
107
107
|
() => h.some((e) => !!e.meta?.expandedRow),
|
|
108
108
|
[h]
|
|
109
|
-
), S =
|
|
110
|
-
() =>
|
|
109
|
+
), S = m(
|
|
110
|
+
() => P ? [] : h.map(
|
|
111
111
|
(e, t) => f ? f(e, t) : String(t)
|
|
112
112
|
),
|
|
113
|
-
[h, f,
|
|
114
|
-
), Ie =
|
|
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
115
|
N(() => {
|
|
116
|
-
if (
|
|
116
|
+
if (v) {
|
|
117
117
|
const e = requestAnimationFrame(() => V(!0));
|
|
118
118
|
return () => cancelAnimationFrame(e);
|
|
119
119
|
} else
|
|
120
120
|
V(!1);
|
|
121
|
-
}, [
|
|
122
|
-
const [
|
|
123
|
-
!
|
|
121
|
+
}, [v]);
|
|
122
|
+
const [w, X] = r(
|
|
123
|
+
!d
|
|
124
124
|
);
|
|
125
125
|
N(() => {
|
|
126
|
-
if (
|
|
126
|
+
if (d)
|
|
127
127
|
X(!1);
|
|
128
128
|
else {
|
|
129
129
|
const e = setTimeout(() => X(!0), 300);
|
|
130
130
|
return () => clearTimeout(e);
|
|
131
131
|
}
|
|
132
|
-
}, [
|
|
133
|
-
const K =
|
|
132
|
+
}, [d]);
|
|
133
|
+
const K = m(() => !i || !_ && !x ? null : {
|
|
134
134
|
id: "__expand",
|
|
135
|
-
header: () => /* @__PURE__ */
|
|
135
|
+
header: () => /* @__PURE__ */ O(Le, { children: "Expand Column" }),
|
|
136
136
|
cell: ({ row: e }) => {
|
|
137
|
-
const { meta: t } = e.original,
|
|
138
|
-
return !t?.expandedRow && !e.getIsExpanded() && !
|
|
137
|
+
const { meta: t } = e.original, u = typeof a == "object" && !!a[e.id];
|
|
138
|
+
return !t?.expandedRow && !e.getIsExpanded() && !u ? null : /* @__PURE__ */ O(
|
|
139
139
|
"button",
|
|
140
140
|
{
|
|
141
141
|
className: "hover:cursor-pointer",
|
|
142
142
|
onClick: () => e.toggleExpanded(),
|
|
143
143
|
"aria-label": e.getIsExpanded() ? "Collapse row" : "Expand row",
|
|
144
|
-
children: /* @__PURE__ */
|
|
144
|
+
children: /* @__PURE__ */ O(
|
|
145
145
|
je,
|
|
146
146
|
{
|
|
147
|
-
className:
|
|
147
|
+
className: L(
|
|
148
148
|
"size-4 transition-transform text-slate-400 dark:text-metal-400",
|
|
149
149
|
{
|
|
150
150
|
"-rotate-90": e.getIsExpanded()
|
|
@@ -157,27 +157,27 @@ const Re = ({
|
|
|
157
157
|
},
|
|
158
158
|
enableSorting: !1,
|
|
159
159
|
meta: {
|
|
160
|
-
headerClassName:
|
|
160
|
+
headerClassName: L(
|
|
161
161
|
"transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
|
|
162
162
|
// Width: immediate change, CSS transition handles animation
|
|
163
|
-
|
|
163
|
+
d ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0",
|
|
164
164
|
// Border/radius: deferred on collapse so border stays during exit
|
|
165
|
-
|
|
165
|
+
w && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"
|
|
166
166
|
),
|
|
167
|
-
className:
|
|
167
|
+
className: L(
|
|
168
168
|
"transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
|
|
169
|
-
|
|
170
|
-
|
|
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
171
|
)
|
|
172
172
|
}
|
|
173
173
|
}, [
|
|
174
174
|
i,
|
|
175
|
-
|
|
175
|
+
_,
|
|
176
176
|
x,
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
d,
|
|
178
|
+
w,
|
|
179
179
|
a
|
|
180
|
-
]), we =
|
|
180
|
+
]), we = m(() => K ? [K, ...T] : T, [T, K]), Ee = Ae({
|
|
181
181
|
data: h,
|
|
182
182
|
columns: we,
|
|
183
183
|
...f ? { getRowId: f } : {},
|
|
@@ -193,34 +193,36 @@ const Re = ({
|
|
|
193
193
|
getCoreRowModel: Me(),
|
|
194
194
|
getSortedRowModel: Fe()
|
|
195
195
|
});
|
|
196
|
-
return /* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ O(
|
|
197
197
|
Pe.Provider,
|
|
198
198
|
{
|
|
199
199
|
value: {
|
|
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,
|
|
200
213
|
sortedData: H,
|
|
201
214
|
table: Ee,
|
|
202
|
-
tableFetching:
|
|
215
|
+
tableFetching: P,
|
|
203
216
|
tableLoading: ge,
|
|
204
|
-
totalItems: A,
|
|
205
217
|
termOfSearch: C,
|
|
206
|
-
|
|
207
|
-
multiselectSelected: I,
|
|
208
|
-
pageSize: g,
|
|
218
|
+
totalItems: F,
|
|
209
219
|
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
220
|
handlePage: ye,
|
|
220
|
-
onPageSize: be,
|
|
221
221
|
onChangeTermOfSearch: he,
|
|
222
|
+
onPageSize: be,
|
|
223
|
+
onSelectMultiselect: pe,
|
|
222
224
|
onSorting: R,
|
|
223
|
-
|
|
225
|
+
renderExpandedRow: x
|
|
224
226
|
},
|
|
225
227
|
children: Z
|
|
226
228
|
}
|
|
@@ -7,6 +7,6 @@ export type VirtualizedTableEventDetail = {
|
|
|
7
7
|
tableId: string;
|
|
8
8
|
rowId: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const sendExpandRowEvent: (tableId: string, rowId: string) =>
|
|
11
|
-
export declare const sendCollapseRowEvent: (tableId: string, rowId: string) =>
|
|
12
|
-
export declare const sendToggleRowEvent: (tableId: string, rowId: string) =>
|
|
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;
|
|
@@ -1,20 +1,26 @@
|
|
|
1
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
};
|
|
18
24
|
export {
|
|
19
25
|
n as VirtualizedTableEvent,
|
|
20
26
|
i as sendCollapseRowEvent,
|
package/dist/components/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { Filter as k } from "./Filter/Filter.js";
|
|
|
17
17
|
import { ImageUpload as F } from "./ImageUpload/ImageUpload.js";
|
|
18
18
|
import { Input as M } from "./Input/Input.js";
|
|
19
19
|
import { Loading as y } from "./Loading/Loading.js";
|
|
20
|
-
import { M as U } from "../Modal
|
|
20
|
+
import { M as U } from "../Modal-mwLmWbnA.js";
|
|
21
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";
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AccountsIcon, AddChartIcon, AlertOutlineIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BookOpenIcon, CalendarMonthIcon, CheckIcon, CheckCircleIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, ClustersIcon, CogOutlineIcon, CopyIcon, CpuIcon, CubeIcon, DatacenterIcon, DeleteIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, GitIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, HomeIcon, IdIcon, InformationOutlineIcon, InvoiceListIcon, KeyIcon, LoaderIcon, LightBulbIcon, NetworkIcon, PagesStackIcon, PageviewIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, ReceiptLongIcon, RefreshIcon, ScatterPlotIcon, SearchIcon, ServerIcon, StartIcon, TabNewIcon, TeamsIcon, WarningIcon, XIcon, } from './assets/icons/components';
|
|
1
|
+
export { AccountsIcon, AddChartIcon, AlertOutlineIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BookOpenIcon, CalendarMonthIcon, CheckIcon, CheckCircleIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, CloudLockOutlineIcon, ClustersIcon, CogOutlineIcon, CopyIcon, CpuIcon, CubeIcon, DatacenterIcon, DeleteIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, GitIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, HomeIcon, IdIcon, InformationOutlineIcon, InvoiceListIcon, KeyIcon, LoaderIcon, LightBulbIcon, NetworkIcon, PagesStackIcon, PageviewIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, ReceiptLongIcon, RefreshIcon, ScatterPlotIcon, SearchIcon, ServerIcon, StartIcon, TabNewIcon, TeamsIcon, WarningIcon, XIcon, } from './assets/icons/components';
|
|
2
2
|
export type { IconProps, IconComponent } from './assets/icons/components';
|