jcicl 0.0.341 → 0.0.345
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/.chunks/createLucideIcon.js +94 -0
- package/ContactCard/ContactCard.d.ts +10 -0
- package/ContactCard/ContactCard.js +97 -0
- package/ContactCard/index.d.ts +1 -0
- package/ContactCard/index.js +4 -0
- package/DetailItemWithIcon/DetailItemWithIcon.d.ts +10 -0
- package/DetailItemWithIcon/DetailItemWithIcon.js +31 -0
- package/DetailItemWithIcon/index.d.ts +1 -0
- package/DetailItemWithIcon/index.js +4 -0
- package/DetailPageComponents/DetailPageComponents.d.ts +24 -0
- package/DetailPageComponents/DetailPageComponents.js +127 -0
- package/DetailPageComponents/index.d.ts +1 -0
- package/DetailPageComponents/index.js +8 -0
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +15 -0
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +125 -0
- package/EditableDetailItemWithIcon/index.d.ts +1 -0
- package/EditableDetailItemWithIcon/index.js +4 -0
- package/Memo/Memo.d.ts +8 -0
- package/Memo/Memo.js +44 -0
- package/Memo/index.d.ts +1 -0
- package/Memo/index.js +4 -0
- package/README.md +106 -106
- package/SquareIcon/SquareIcon.d.ts +10 -0
- package/SquareIcon/SquareIcon.js +27 -0
- package/SquareIcon/index.d.ts +1 -0
- package/SquareIcon/index.js +4 -0
- package/SquareIconButton/SquareIconButton.d.ts +13 -0
- package/SquareIconButton/SquareIconButton.js +43 -0
- package/SquareIconButton/index.d.ts +1 -0
- package/SquareIconButton/index.js +4 -0
- package/Table/Table.d.ts +2 -2
- package/Table/Table.js +399 -501
- package/package.json +1 -1
- package/utils.d.ts +7 -0
- package/utils.js +8 -3
package/Table/Table.js
CHANGED
|
@@ -1,121 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b, useMemo as N, useEffect as R } from "react";
|
|
3
3
|
import o from "../theme.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { n as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Flex as
|
|
4
|
+
import { c as r } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
|
|
6
|
+
import { Button as ce } from "../Button/Button.js";
|
|
7
|
+
import { Flex as ae } from "../Flex/Flex.js";
|
|
8
|
+
import { c as v } from "../.chunks/createLucideIcon.js";
|
|
8
9
|
/**
|
|
9
10
|
* @license lucide-react v0.525.0 - ISC
|
|
10
11
|
*
|
|
11
12
|
* This source code is licensed under the ISC license.
|
|
12
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
13
14
|
*/
|
|
14
|
-
const
|
|
15
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
16
|
-
(s, p, f) => f ? f.toUpperCase() : p.toLowerCase()
|
|
17
|
-
), J = (r) => {
|
|
18
|
-
const s = Ne(r);
|
|
19
|
-
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
20
|
-
}, ee = (...r) => r.filter((s, p, f) => !!s && s.trim() !== "" && f.indexOf(s) === p).join(" ").trim(), Be = (r) => {
|
|
21
|
-
for (const s in r)
|
|
22
|
-
if (s.startsWith("aria-") || s === "role" || s === "title")
|
|
23
|
-
return !0;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @license lucide-react v0.525.0 - ISC
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the ISC license.
|
|
29
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
var De = {
|
|
32
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
-
width: 24,
|
|
34
|
-
height: 24,
|
|
35
|
-
viewBox: "0 0 24 24",
|
|
36
|
-
fill: "none",
|
|
37
|
-
stroke: "currentColor",
|
|
38
|
-
strokeWidth: 2,
|
|
39
|
-
strokeLinecap: "round",
|
|
40
|
-
strokeLinejoin: "round"
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* @license lucide-react v0.525.0 - ISC
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the ISC license.
|
|
46
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/
|
|
48
|
-
const _e = P(
|
|
49
|
-
({
|
|
50
|
-
color: r = "currentColor",
|
|
51
|
-
size: s = 24,
|
|
52
|
-
strokeWidth: p = 2,
|
|
53
|
-
absoluteStrokeWidth: f,
|
|
54
|
-
className: y = "",
|
|
55
|
-
children: w,
|
|
56
|
-
iconNode: M,
|
|
57
|
-
...A
|
|
58
|
-
}, a) => R(
|
|
59
|
-
"svg",
|
|
60
|
-
{
|
|
61
|
-
ref: a,
|
|
62
|
-
...De,
|
|
63
|
-
width: s,
|
|
64
|
-
height: s,
|
|
65
|
-
stroke: r,
|
|
66
|
-
strokeWidth: f ? Number(p) * 24 / Number(s) : p,
|
|
67
|
-
className: ee("lucide", y),
|
|
68
|
-
...!w && !Be(A) && { "aria-hidden": "true" },
|
|
69
|
-
...A
|
|
70
|
-
},
|
|
71
|
-
[
|
|
72
|
-
...M.map(([m, E]) => R(m, E)),
|
|
73
|
-
...Array.isArray(w) ? w : [w]
|
|
74
|
-
]
|
|
75
|
-
)
|
|
76
|
-
);
|
|
77
|
-
/**
|
|
78
|
-
* @license lucide-react v0.525.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/
|
|
83
|
-
const z = (r, s) => {
|
|
84
|
-
const p = P(
|
|
85
|
-
({ className: f, ...y }, w) => R(_e, {
|
|
86
|
-
ref: w,
|
|
87
|
-
iconNode: s,
|
|
88
|
-
className: ee(
|
|
89
|
-
`lucide-${Te(J(r))}`,
|
|
90
|
-
`lucide-${r}`,
|
|
91
|
-
f
|
|
92
|
-
),
|
|
93
|
-
...y
|
|
94
|
-
})
|
|
95
|
-
);
|
|
96
|
-
return p.displayName = J(r), p;
|
|
97
|
-
};
|
|
15
|
+
const le = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], M = v("chevron-down", le);
|
|
98
16
|
/**
|
|
99
17
|
* @license lucide-react v0.525.0 - ISC
|
|
100
18
|
*
|
|
101
19
|
* This source code is licensed under the ISC license.
|
|
102
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
103
21
|
*/
|
|
104
|
-
const
|
|
22
|
+
const de = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], U = v("chevron-up", de);
|
|
105
23
|
/**
|
|
106
24
|
* @license lucide-react v0.525.0 - ISC
|
|
107
25
|
*
|
|
108
26
|
* This source code is licensed under the ISC license.
|
|
109
27
|
* See the LICENSE file in the root directory of this source tree.
|
|
110
28
|
*/
|
|
111
|
-
const
|
|
112
|
-
/**
|
|
113
|
-
* @license lucide-react v0.525.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/
|
|
118
|
-
const Le = [
|
|
29
|
+
const pe = [
|
|
119
30
|
[
|
|
120
31
|
"path",
|
|
121
32
|
{
|
|
@@ -132,14 +43,14 @@ const Le = [
|
|
|
132
43
|
}
|
|
133
44
|
],
|
|
134
45
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
135
|
-
],
|
|
46
|
+
], he = v("eye-off", pe);
|
|
136
47
|
/**
|
|
137
48
|
* @license lucide-react v0.525.0 - ISC
|
|
138
49
|
*
|
|
139
50
|
* This source code is licensed under the ISC license.
|
|
140
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
52
|
*/
|
|
142
|
-
const
|
|
53
|
+
const ge = [
|
|
143
54
|
[
|
|
144
55
|
"path",
|
|
145
56
|
{
|
|
@@ -148,24 +59,24 @@ const Ie = [
|
|
|
148
59
|
}
|
|
149
60
|
],
|
|
150
61
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
151
|
-
],
|
|
62
|
+
], xe = v("eye", ge);
|
|
152
63
|
/**
|
|
153
64
|
* @license lucide-react v0.525.0 - ISC
|
|
154
65
|
*
|
|
155
66
|
* This source code is licensed under the ISC license.
|
|
156
67
|
* See the LICENSE file in the root directory of this source tree.
|
|
157
68
|
*/
|
|
158
|
-
const
|
|
69
|
+
const ue = [
|
|
159
70
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
160
71
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
161
|
-
],
|
|
72
|
+
], K = v("search", ue);
|
|
162
73
|
/**
|
|
163
74
|
* @license lucide-react v0.525.0 - ISC
|
|
164
75
|
*
|
|
165
76
|
* This source code is licensed under the ISC license.
|
|
166
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
167
78
|
*/
|
|
168
|
-
const
|
|
79
|
+
const be = [
|
|
169
80
|
[
|
|
170
81
|
"path",
|
|
171
82
|
{
|
|
@@ -174,376 +85,363 @@ const Re = [
|
|
|
174
85
|
}
|
|
175
86
|
],
|
|
176
87
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
177
|
-
],
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
88
|
+
], fe = v("settings", be), f = {
|
|
89
|
+
thActive: {
|
|
90
|
+
backgroundColor: o.colors.green,
|
|
91
|
+
color: o.colors.white
|
|
92
|
+
},
|
|
93
|
+
paginationButtonActive: {
|
|
94
|
+
backgroundColor: o.colors.green,
|
|
95
|
+
color: o.colors.white,
|
|
96
|
+
borderColor: o.colors.green
|
|
97
|
+
},
|
|
98
|
+
paginationButtonDisabled: {
|
|
99
|
+
opacity: 0.5,
|
|
100
|
+
cursor: "not-allowed"
|
|
101
|
+
},
|
|
102
|
+
info: {
|
|
103
|
+
fontSize: "14px",
|
|
104
|
+
color: o.colors.gray3,
|
|
105
|
+
textAlign: "center",
|
|
106
|
+
marginTop: "10px"
|
|
107
|
+
}
|
|
108
|
+
}, me = s("div")(() => ({
|
|
109
|
+
...r`
|
|
110
|
+
background-color: ${o.colors.white};
|
|
111
|
+
border-radius: 8px;
|
|
112
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
113
|
+
padding: 20px;
|
|
114
|
+
font-family: Arial, sans-serif;
|
|
115
|
+
width: 100%;
|
|
116
|
+
overflow: auto;
|
|
117
|
+
`
|
|
118
|
+
})), ye = s("div")(() => ({
|
|
119
|
+
...r`
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
align-items: center;
|
|
124
|
+
margin-bottom: 20px;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
gap: 9px;
|
|
127
|
+
`
|
|
128
|
+
})), we = s("div")(() => ({
|
|
129
|
+
...r`
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: space-between;
|
|
132
|
+
width: 100%;
|
|
133
|
+
align-items: center;
|
|
134
|
+
`
|
|
135
|
+
})), ke = s("h2")(() => ({
|
|
136
|
+
...r`
|
|
137
|
+
font-size: 24px;
|
|
138
|
+
font-weight: bold;
|
|
139
|
+
color: ${o.colors.black};
|
|
140
|
+
margin: 0;
|
|
141
|
+
`
|
|
142
|
+
})), ve = s("div")(() => ({
|
|
143
|
+
...r`
|
|
144
|
+
display: flex;
|
|
145
|
+
justify-content: flex-end;
|
|
146
|
+
width: 100%;
|
|
147
|
+
gap: 15px;
|
|
148
|
+
align-items: center;
|
|
149
|
+
flex-wrap: wrap;
|
|
150
|
+
`
|
|
151
|
+
})), Ce = s("div")(() => ({
|
|
152
|
+
...r`
|
|
153
|
+
position: relative;
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
flex-grow: 1;
|
|
157
|
+
`
|
|
158
|
+
})), Se = s(K)(() => ({
|
|
159
|
+
...r`
|
|
160
|
+
position: absolute;
|
|
161
|
+
left: 13px;
|
|
162
|
+
top: 10px;
|
|
163
|
+
color: ${o.colors.gray3};
|
|
164
|
+
width: 19px;
|
|
165
|
+
height: 19px;
|
|
166
|
+
transition: all 313ms ease;
|
|
167
|
+
`
|
|
168
|
+
})), $e = s("input")(() => ({
|
|
169
|
+
...r`
|
|
170
|
+
padding: 10px 15px 10px 40px;
|
|
171
|
+
border: 2px solid ${o.colors.gray4};
|
|
172
|
+
border-radius: 25px;
|
|
173
|
+
font-size: 14px;
|
|
174
|
+
min-width: 270px;
|
|
175
|
+
width: 100%;
|
|
176
|
+
transition: all 313ms ease;
|
|
177
|
+
outline: none;
|
|
178
|
+
background-color: ${o.colors.white};
|
|
179
|
+
:focus,
|
|
180
|
+
:hover,
|
|
181
|
+
:focus-within {
|
|
182
|
+
border-color: ${o.colors.green};
|
|
183
|
+
box-shadow: 0 0 0 3px rgba(0, 146, 0, 0.1);
|
|
184
|
+
}
|
|
185
|
+
`
|
|
186
|
+
})), q = s("button")(() => ({
|
|
187
|
+
...r`
|
|
188
|
+
padding: 10px 15px;
|
|
189
|
+
border: 2px solid ${o.colors.green};
|
|
190
|
+
border-radius: 6px;
|
|
191
|
+
background-color: ${o.colors.white};
|
|
192
|
+
color: ${o.colors.green};
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: 8px;
|
|
197
|
+
font-size: 14px;
|
|
198
|
+
font-weight: 500;
|
|
199
|
+
transition: all 0.3s ease;
|
|
200
|
+
outline: none;
|
|
201
|
+
:focus,
|
|
202
|
+
:hover,
|
|
203
|
+
:focus-within {
|
|
204
|
+
background-color: ${o.colors.green};
|
|
205
|
+
color: ${o.colors.white};
|
|
206
|
+
transform: translateY(-1px);
|
|
207
|
+
box-shadow: 0 4px 12px rgba(0, 146, 0, 0.3);
|
|
208
|
+
}
|
|
209
|
+
`
|
|
210
|
+
})), W = s("div")(() => ({
|
|
211
|
+
...r`
|
|
212
|
+
position: absolute;
|
|
213
|
+
top: 100%;
|
|
214
|
+
right: 0;
|
|
215
|
+
margin-top: 5px;
|
|
216
|
+
background-color: ${o.colors.white};
|
|
217
|
+
border: 1px solid ${o.colors.gray4};
|
|
218
|
+
border-radius: 6px;
|
|
219
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
220
|
+
z-index: 1000;
|
|
221
|
+
min-width: 200px;
|
|
222
|
+
max-height: 300px;
|
|
223
|
+
overflow-y: auto;
|
|
224
|
+
`
|
|
225
|
+
})), _ = s("div")(() => ({
|
|
226
|
+
...r`
|
|
227
|
+
padding: 12px 16px;
|
|
228
|
+
display: flex;
|
|
229
|
+
align-items: center;
|
|
230
|
+
gap: 10px;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
font-size: 14px;
|
|
233
|
+
color: ${o.colors.slate};
|
|
234
|
+
transition: all 0.2s ease;
|
|
235
|
+
:focus,
|
|
236
|
+
:hover,
|
|
237
|
+
:focus-within {
|
|
238
|
+
background-color: ${o.colors.whiteGreenB};
|
|
239
|
+
color: ${o.colors.darkGreen};
|
|
240
|
+
}
|
|
241
|
+
`
|
|
242
|
+
})), E = s("input")(() => ({
|
|
243
|
+
...r`
|
|
244
|
+
width: 16px;
|
|
245
|
+
height: 16px;
|
|
246
|
+
accent-color: ${o.colors.green};
|
|
247
|
+
`
|
|
248
|
+
})), ze = s("table")(() => ({
|
|
249
|
+
...r`
|
|
250
|
+
width: 100%;
|
|
251
|
+
border-collapse: collapse;
|
|
252
|
+
background-color: ${o.colors.white};
|
|
253
|
+
border-radius: 8px;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
256
|
+
`
|
|
257
|
+
})), je = s("th")(() => ({
|
|
258
|
+
...r`
|
|
259
|
+
background-color: ${o.colors.whiteBlue};
|
|
260
|
+
color: ${o.colors.slate};
|
|
261
|
+
padding: 16px 12px;
|
|
262
|
+
text-align: left;
|
|
263
|
+
font-size: 14px;
|
|
264
|
+
font-weight: 600;
|
|
265
|
+
border-bottom: 2px solid ${o.colors.gray4};
|
|
266
|
+
cursor: pointer;
|
|
267
|
+
user-select: none;
|
|
268
|
+
transition: all 0.2s ease;
|
|
269
|
+
position: relative;
|
|
270
|
+
white-space: nowrap;
|
|
271
|
+
:focus,
|
|
272
|
+
:hover,
|
|
273
|
+
:focus-within {
|
|
274
|
+
background-color: ${o.colors.whiteGreenC};
|
|
275
|
+
color: ${o.colors.darkGreen};
|
|
276
|
+
}
|
|
277
|
+
`
|
|
278
|
+
})), Te = s("td")(() => ({
|
|
279
|
+
...r`
|
|
280
|
+
padding: 14px 12px;
|
|
281
|
+
border-bottom: 1px solid ${o.colors.almostWhite};
|
|
282
|
+
font-size: 14px;
|
|
283
|
+
color: ${o.colors.slate};
|
|
284
|
+
transition: all 0.2s ease;
|
|
285
|
+
`
|
|
286
|
+
})), Ne = s("span")(() => ({
|
|
287
|
+
...r`
|
|
288
|
+
margin-left: 8px;
|
|
289
|
+
opacity: 0.6;
|
|
290
|
+
`
|
|
291
|
+
})), Y = s("tr")(({ interactableRow: x }) => ({
|
|
292
|
+
...r`
|
|
293
|
+
transition: all 0.2s ease;
|
|
294
|
+
${x && r`
|
|
295
|
+
:focus,
|
|
296
|
+
:hover,
|
|
297
|
+
:focus-within {
|
|
298
|
+
background-color: ${o.colors.whiteGreenD};
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
}
|
|
301
|
+
`}
|
|
302
|
+
`
|
|
303
|
+
})), Ae = s("div")(() => ({
|
|
304
|
+
...r`
|
|
305
|
+
display: flex;
|
|
306
|
+
justify-content: center;
|
|
307
|
+
align-items: center;
|
|
308
|
+
margin-top: 20px;
|
|
309
|
+
gap: 10px;
|
|
310
|
+
`
|
|
311
|
+
})), k = s("button")(() => ({
|
|
312
|
+
...r`
|
|
313
|
+
padding: 8px 12px;
|
|
314
|
+
border: 1px solid ${o.colors.gray4};
|
|
315
|
+
border-radius: 4px;
|
|
316
|
+
background-color: ${o.colors.white};
|
|
317
|
+
color: ${o.colors.slate};
|
|
318
|
+
cursor: pointer;
|
|
319
|
+
font-size: 14px;
|
|
320
|
+
transition: all 0.2s ease;
|
|
321
|
+
outline: none;
|
|
322
|
+
:focus,
|
|
323
|
+
:hover,
|
|
324
|
+
:focus-within {
|
|
325
|
+
background-color: ${o.colors.green};
|
|
326
|
+
color: ${o.colors.white};
|
|
327
|
+
border-color: ${o.colors.green};
|
|
328
|
+
}
|
|
329
|
+
:disabled {
|
|
330
|
+
opacity: 0.5;
|
|
331
|
+
cursor: not-allowed;
|
|
332
|
+
}
|
|
333
|
+
`
|
|
334
|
+
})), De = s("div")(() => ({
|
|
335
|
+
...r`
|
|
336
|
+
font-size: 14px;
|
|
337
|
+
color: ${o.colors.gray3};
|
|
338
|
+
text-align: center;
|
|
339
|
+
margin-top: 10px;
|
|
340
|
+
`
|
|
341
|
+
})), J = s("span")(() => ({
|
|
342
|
+
...r`
|
|
343
|
+
padding: 8px 4px;
|
|
344
|
+
color: ${o.colors.gray3};
|
|
345
|
+
font-size: 14px;
|
|
346
|
+
`
|
|
347
|
+
})), Ge = ({
|
|
348
|
+
data: x = [],
|
|
349
|
+
columnTitles: $ = {},
|
|
350
|
+
rowsPerPage: m = 19,
|
|
351
|
+
title: Q = "Data Table",
|
|
352
|
+
onRowClick: A,
|
|
353
|
+
hiddenColumns: X = [],
|
|
354
|
+
defaultSort: F = { key: "", direction: "asc" },
|
|
355
|
+
extraActions: I
|
|
188
356
|
}) => {
|
|
189
|
-
const [
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}, [
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
357
|
+
const [i, u] = b(1), [z, L] = b(""), [p, V] = b(F), [y, j] = b(/* @__PURE__ */ new Set()), [D, G] = b(/* @__PURE__ */ new Set()), [H, Z] = b(!1), [O, P] = b(!1), l = N(() => x.length === 0 ? [] : Object.keys(x[0]).filter((e) => !X.includes(e)), [x]);
|
|
358
|
+
R(() => {
|
|
359
|
+
l.length > 0 && (G(new Set(l)), j(new Set(l)));
|
|
360
|
+
}, [l]), R(() => {
|
|
361
|
+
L(""), V(F), u(1);
|
|
362
|
+
}, []);
|
|
363
|
+
const B = N(() => {
|
|
364
|
+
if (!z) return x;
|
|
365
|
+
const e = y.size > 0 ? y : new Set(l);
|
|
366
|
+
return x.filter((n) => Array.from(e).some((a) => {
|
|
367
|
+
const h = n[a];
|
|
368
|
+
return h && h.toString().toLowerCase().includes(z.toLowerCase());
|
|
199
369
|
}));
|
|
200
|
-
}, [
|
|
201
|
-
if (!Array.isArray(
|
|
202
|
-
const e =
|
|
203
|
-
const
|
|
204
|
-
return /[",\n]/.test(
|
|
205
|
-
},
|
|
370
|
+
}, [x, z, y, l]), g = N(() => p.key ? [...B].sort((e, n) => e[p.key] < n[p.key] ? p.direction === "asc" ? -1 : 1 : e[p.key] > n[p.key] ? p.direction === "asc" ? 1 : -1 : 0) : B, [B, p]), T = l.filter((e) => D.has(e)), ee = () => {
|
|
371
|
+
if (!Array.isArray(g) || g.length === 0) return;
|
|
372
|
+
const e = T.map((w) => $[w] || w), n = (w) => {
|
|
373
|
+
const S = String(w ?? "");
|
|
374
|
+
return /[",\n]/.test(S) ? `"${S.replace(/"/g, '""')}"` : S;
|
|
375
|
+
}, h = [
|
|
206
376
|
e.join(","),
|
|
207
377
|
// header row
|
|
208
|
-
...
|
|
378
|
+
...g.map((w) => T.map((S) => n(w[S])).join(","))
|
|
209
379
|
].join(`
|
|
210
|
-
`),
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
const e = (
|
|
214
|
-
return
|
|
215
|
-
}, [
|
|
216
|
-
|
|
380
|
+
`), ie = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a");
|
|
381
|
+
C.href = URL.createObjectURL(ie), C.download = "data.csv", document.body.appendChild(C), C.click(), document.body.removeChild(C);
|
|
382
|
+
}, oe = N(() => {
|
|
383
|
+
const e = (i - 1) * m;
|
|
384
|
+
return g.slice(e, e + m);
|
|
385
|
+
}, [g, i, m]), d = Math.ceil(g.length / m), te = (e) => {
|
|
386
|
+
V((n) => ({
|
|
217
387
|
key: e,
|
|
218
388
|
direction: n.key === e && n.direction === "asc" ? "desc" : "asc"
|
|
219
389
|
}));
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
return
|
|
390
|
+
}, ne = (e) => {
|
|
391
|
+
j((n) => {
|
|
392
|
+
const a = new Set(n);
|
|
393
|
+
return a.has(e) ? a.delete(e) : a.add(e), a;
|
|
224
394
|
});
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
const
|
|
230
|
-
return
|
|
395
|
+
}, re = () => {
|
|
396
|
+
y.size === l.length ? j(/* @__PURE__ */ new Set()) : j(new Set(l));
|
|
397
|
+
}, se = (e) => {
|
|
398
|
+
G((n) => {
|
|
399
|
+
const a = new Set(n);
|
|
400
|
+
return a.has(e) ? a.delete(e) : a.add(e), a;
|
|
231
401
|
});
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
},
|
|
241
|
-
paginationButtonActive: {
|
|
242
|
-
backgroundColor: o.colors.green,
|
|
243
|
-
color: o.colors.white,
|
|
244
|
-
borderColor: o.colors.green
|
|
245
|
-
},
|
|
246
|
-
paginationButtonDisabled: {
|
|
247
|
-
opacity: 0.5,
|
|
248
|
-
cursor: "not-allowed"
|
|
249
|
-
},
|
|
250
|
-
info: {
|
|
251
|
-
fontSize: "14px",
|
|
252
|
-
color: o.colors.gray3,
|
|
253
|
-
textAlign: "center",
|
|
254
|
-
marginTop: "10px"
|
|
255
|
-
}
|
|
256
|
-
}, pe = c("div")(() => ({
|
|
257
|
-
...i`
|
|
258
|
-
background-color: ${o.colors.white};
|
|
259
|
-
border-radius: 8px;
|
|
260
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
261
|
-
padding: 20px;
|
|
262
|
-
font-family: Arial, sans-serif;
|
|
263
|
-
width: 100%;
|
|
264
|
-
overflow: auto;
|
|
265
|
-
`
|
|
266
|
-
})), he = c("div")(() => ({
|
|
267
|
-
...i`
|
|
268
|
-
display: flex;
|
|
269
|
-
flex-direction: column;
|
|
270
|
-
justify-content: space-between;
|
|
271
|
-
align-items: center;
|
|
272
|
-
margin-bottom: 20px;
|
|
273
|
-
flex-wrap: wrap;
|
|
274
|
-
gap: 9px;
|
|
275
|
-
`
|
|
276
|
-
})), ge = c("div")(() => ({
|
|
277
|
-
...i`
|
|
278
|
-
display: flex;
|
|
279
|
-
justify-content: space-between;
|
|
280
|
-
width: 100%;
|
|
281
|
-
align-items: center;
|
|
282
|
-
`
|
|
283
|
-
})), ue = c("h2")(() => ({
|
|
284
|
-
...i`
|
|
285
|
-
font-size: 24px;
|
|
286
|
-
font-weight: bold;
|
|
287
|
-
color: ${o.colors.black};
|
|
288
|
-
margin: 0;
|
|
289
|
-
`
|
|
290
|
-
})), xe = c("div")(() => ({
|
|
291
|
-
...i`
|
|
292
|
-
display: flex;
|
|
293
|
-
justify-content: flex-end;
|
|
294
|
-
width: 100%;
|
|
295
|
-
gap: 15px;
|
|
296
|
-
align-items: center;
|
|
297
|
-
flex-wrap: wrap;
|
|
298
|
-
`
|
|
299
|
-
})), fe = c("div")(() => ({
|
|
300
|
-
...i`
|
|
301
|
-
position: relative;
|
|
302
|
-
display: flex;
|
|
303
|
-
align-items: center;
|
|
304
|
-
flex-grow: 1;
|
|
305
|
-
`
|
|
306
|
-
})), be = c(X)(() => ({
|
|
307
|
-
...i`
|
|
308
|
-
position: absolute;
|
|
309
|
-
left: 13px;
|
|
310
|
-
top: 10px;
|
|
311
|
-
color: ${o.colors.gray3};
|
|
312
|
-
width: 19px;
|
|
313
|
-
height: 19px;
|
|
314
|
-
transition: all 313ms ease;
|
|
315
|
-
:focus,
|
|
316
|
-
:hover,
|
|
317
|
-
:focus-within {
|
|
318
|
-
cursor: pointer;
|
|
319
|
-
color: ${o.colors.green};
|
|
320
|
-
}
|
|
321
|
-
`
|
|
322
|
-
})), we = c("input")(() => ({
|
|
323
|
-
...i`
|
|
324
|
-
padding: 10px 15px 10px 40px;
|
|
325
|
-
border: 2px solid ${o.colors.gray4};
|
|
326
|
-
border-radius: 25px;
|
|
327
|
-
font-size: 14px;
|
|
328
|
-
min-width: 270px;
|
|
329
|
-
width: 100%;
|
|
330
|
-
transition: all 313ms ease;
|
|
331
|
-
outline: none;
|
|
332
|
-
background-color: ${o.colors.white};
|
|
333
|
-
:focus,
|
|
334
|
-
:hover,
|
|
335
|
-
:focus-within {
|
|
336
|
-
border-color: ${o.colors.green};
|
|
337
|
-
box-shadow: 0 0 0 3px rgba(0, 146, 0, 0.1);
|
|
338
|
-
}
|
|
339
|
-
`
|
|
340
|
-
})), q = c("button")(() => ({
|
|
341
|
-
...i`
|
|
342
|
-
padding: 10px 15px;
|
|
343
|
-
border: 2px solid ${o.colors.green};
|
|
344
|
-
border-radius: 6px;
|
|
345
|
-
background-color: ${o.colors.white};
|
|
346
|
-
color: ${o.colors.green};
|
|
347
|
-
cursor: pointer;
|
|
348
|
-
display: flex;
|
|
349
|
-
align-items: center;
|
|
350
|
-
gap: 8px;
|
|
351
|
-
font-size: 14px;
|
|
352
|
-
font-weight: 500;
|
|
353
|
-
transition: all 0.3s ease;
|
|
354
|
-
outline: none;
|
|
355
|
-
:focus,
|
|
356
|
-
:hover,
|
|
357
|
-
:focus-within {
|
|
358
|
-
background-color: ${o.colors.green};
|
|
359
|
-
color: ${o.colors.white};
|
|
360
|
-
transform: translateY(-1px);
|
|
361
|
-
box-shadow: 0 4px 12px rgba(0, 146, 0, 0.3);
|
|
362
|
-
}
|
|
363
|
-
`
|
|
364
|
-
})), K = c("div")(() => ({
|
|
365
|
-
...i`
|
|
366
|
-
position: absolute;
|
|
367
|
-
top: 100%;
|
|
368
|
-
right: 0;
|
|
369
|
-
margin-top: 5px;
|
|
370
|
-
background-color: ${o.colors.white};
|
|
371
|
-
border: 1px solid ${o.colors.gray4};
|
|
372
|
-
border-radius: 6px;
|
|
373
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
374
|
-
z-index: 1000;
|
|
375
|
-
min-width: 200px;
|
|
376
|
-
max-height: 300px;
|
|
377
|
-
overflow-y: auto;
|
|
378
|
-
`
|
|
379
|
-
})), I = c("div")(() => ({
|
|
380
|
-
...i`
|
|
381
|
-
padding: 12px 16px;
|
|
382
|
-
display: flex;
|
|
383
|
-
align-items: center;
|
|
384
|
-
gap: 10px;
|
|
385
|
-
cursor: pointer;
|
|
386
|
-
font-size: 14px;
|
|
387
|
-
color: ${o.colors.slate};
|
|
388
|
-
transition: all 0.2s ease;
|
|
389
|
-
:focus,
|
|
390
|
-
:hover,
|
|
391
|
-
:focus-within {
|
|
392
|
-
background-color: ${o.colors.whiteGreenB};
|
|
393
|
-
color: ${o.colors.darkGreen};
|
|
394
|
-
}
|
|
395
|
-
`
|
|
396
|
-
})), V = c("input")(() => ({
|
|
397
|
-
...i`
|
|
398
|
-
width: 16px;
|
|
399
|
-
height: 16px;
|
|
400
|
-
accent-color: ${o.colors.green};
|
|
401
|
-
`
|
|
402
|
-
})), me = c("table")(() => ({
|
|
403
|
-
...i`
|
|
404
|
-
width: 100%;
|
|
405
|
-
border-collapse: collapse;
|
|
406
|
-
background-color: ${o.colors.white};
|
|
407
|
-
border-radius: 8px;
|
|
408
|
-
overflow: hidden;
|
|
409
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
410
|
-
`
|
|
411
|
-
})), ye = c("th")(() => ({
|
|
412
|
-
...i`
|
|
413
|
-
background-color: ${o.colors.whiteBlue};
|
|
414
|
-
color: ${o.colors.slate};
|
|
415
|
-
padding: 16px 12px;
|
|
416
|
-
text-align: left;
|
|
417
|
-
font-size: 14px;
|
|
418
|
-
font-weight: 600;
|
|
419
|
-
border-bottom: 2px solid ${o.colors.gray4};
|
|
420
|
-
cursor: pointer;
|
|
421
|
-
user-select: none;
|
|
422
|
-
transition: all 0.2s ease;
|
|
423
|
-
position: relative;
|
|
424
|
-
white-space: nowrap;
|
|
425
|
-
:focus,
|
|
426
|
-
:hover,
|
|
427
|
-
:focus-within {
|
|
428
|
-
background-color: ${o.colors.whiteGreenC};
|
|
429
|
-
color: ${o.colors.darkGreen};
|
|
430
|
-
}
|
|
431
|
-
`
|
|
432
|
-
})), ke = c("td")(() => ({
|
|
433
|
-
...i`
|
|
434
|
-
padding: 14px 12px;
|
|
435
|
-
border-bottom: 1px solid ${o.colors.almostWhite};
|
|
436
|
-
font-size: 14px;
|
|
437
|
-
color: ${o.colors.slate};
|
|
438
|
-
transition: all 0.2s ease;
|
|
439
|
-
`
|
|
440
|
-
})), Ce = c("span")(() => ({
|
|
441
|
-
...i`
|
|
442
|
-
margin-left: 8px;
|
|
443
|
-
opacity: 0.6;
|
|
444
|
-
`
|
|
445
|
-
})), Z = c("tr")(({ interactableRow: e }) => ({
|
|
446
|
-
...i`
|
|
447
|
-
transition: all 0.2s ease;
|
|
448
|
-
${e && i`
|
|
449
|
-
:focus,
|
|
450
|
-
:hover,
|
|
451
|
-
:focus-within {
|
|
452
|
-
background-color: ${o.colors.whiteGreenD};
|
|
453
|
-
cursor: pointer;
|
|
454
|
-
}
|
|
455
|
-
`}
|
|
456
|
-
`
|
|
457
|
-
})), ve = c("div")(() => ({
|
|
458
|
-
...i`
|
|
459
|
-
display: flex;
|
|
460
|
-
justify-content: center;
|
|
461
|
-
align-items: center;
|
|
462
|
-
margin-top: 20px;
|
|
463
|
-
gap: 10px;
|
|
464
|
-
`
|
|
465
|
-
})), S = c("button")(() => ({
|
|
466
|
-
...i`
|
|
467
|
-
padding: 8px 12px;
|
|
468
|
-
border: 1px solid ${o.colors.gray4};
|
|
469
|
-
border-radius: 4px;
|
|
470
|
-
background-color: ${o.colors.white};
|
|
471
|
-
color: ${o.colors.slate};
|
|
472
|
-
cursor: pointer;
|
|
473
|
-
font-size: 14px;
|
|
474
|
-
transition: all 0.2s ease;
|
|
475
|
-
outline: none;
|
|
476
|
-
:focus,
|
|
477
|
-
:hover,
|
|
478
|
-
:focus-within {
|
|
479
|
-
background-color: ${o.colors.green};
|
|
480
|
-
color: ${o.colors.white};
|
|
481
|
-
border-color: ${o.colors.green};
|
|
482
|
-
}
|
|
483
|
-
:disabled {
|
|
484
|
-
opacity: 0.5;
|
|
485
|
-
cursor: not-allowed;
|
|
486
|
-
}
|
|
487
|
-
`
|
|
488
|
-
})), Se = c("div")(() => ({
|
|
489
|
-
...i`
|
|
490
|
-
font-size: 14px;
|
|
491
|
-
color: ${o.colors.gray3};
|
|
492
|
-
text-align: center;
|
|
493
|
-
margin-top: 10px;
|
|
494
|
-
`
|
|
495
|
-
})), Y = c("span")(() => ({
|
|
496
|
-
...i`
|
|
497
|
-
padding: 8px 4px;
|
|
498
|
-
color: ${o.colors.gray3};
|
|
499
|
-
font-size: 14px;
|
|
500
|
-
`
|
|
501
|
-
}));
|
|
502
|
-
return /* @__PURE__ */ l(pe, { className: "jcTableContainer", children: [
|
|
503
|
-
/* @__PURE__ */ l(he, { className: "jcTableHeader", children: [
|
|
504
|
-
/* @__PURE__ */ l(ge, { className: "jcTableTitleAndActions", children: [
|
|
505
|
-
/* @__PURE__ */ t(ue, { children: f }),
|
|
506
|
-
/* @__PURE__ */ l(Ae, { className: "jcTableExtraComponentsBox", gap: "9px", children: [
|
|
507
|
-
A && A,
|
|
508
|
-
/* @__PURE__ */ t(ze, { onClick: re, children: "Export to CSV" })
|
|
402
|
+
};
|
|
403
|
+
return /* @__PURE__ */ c(me, { className: "jcTableContainer", children: [
|
|
404
|
+
/* @__PURE__ */ c(ye, { className: "jcTableHeader", children: [
|
|
405
|
+
/* @__PURE__ */ c(we, { className: "jcTableTitleAndActions", children: [
|
|
406
|
+
/* @__PURE__ */ t(ke, { children: Q }),
|
|
407
|
+
/* @__PURE__ */ c(ae, { className: "jcTableExtraComponentsBox", gap: "9px", children: [
|
|
408
|
+
I && I,
|
|
409
|
+
/* @__PURE__ */ t(ce, { onClick: ee, children: "Export to CSV" })
|
|
509
410
|
] })
|
|
510
411
|
] }),
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
-
/* @__PURE__ */ t(
|
|
412
|
+
/* @__PURE__ */ c(ve, { className: "jcTableControls", children: [
|
|
413
|
+
/* @__PURE__ */ c(Ce, { className: "jcTableSearchContainer", children: [
|
|
414
|
+
/* @__PURE__ */ t(Se, {}),
|
|
514
415
|
/* @__PURE__ */ t(
|
|
515
|
-
|
|
416
|
+
$e,
|
|
516
417
|
{
|
|
517
418
|
type: "text",
|
|
518
419
|
placeholder: "Search...",
|
|
519
|
-
|
|
520
|
-
onChange: (e) =>
|
|
521
|
-
onKeyDown: (e) => {
|
|
522
|
-
e.key === "Enter" && H();
|
|
523
|
-
}
|
|
420
|
+
value: z,
|
|
421
|
+
onChange: (e) => L(e.target.value)
|
|
524
422
|
}
|
|
525
423
|
)
|
|
526
424
|
] }),
|
|
527
|
-
/* @__PURE__ */
|
|
528
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
|
|
426
|
+
/* @__PURE__ */ c(
|
|
529
427
|
q,
|
|
530
428
|
{
|
|
531
429
|
className: "jcTableSearchFields",
|
|
532
|
-
onClick: () =>
|
|
430
|
+
onClick: () => P(!O),
|
|
533
431
|
children: [
|
|
534
|
-
/* @__PURE__ */ t(
|
|
432
|
+
/* @__PURE__ */ t(K, { size: 16 }),
|
|
535
433
|
"Fields",
|
|
536
|
-
/* @__PURE__ */ t(
|
|
434
|
+
/* @__PURE__ */ t(M, { size: 16 })
|
|
537
435
|
]
|
|
538
436
|
}
|
|
539
437
|
),
|
|
540
|
-
|
|
541
|
-
/* @__PURE__ */
|
|
438
|
+
O && /* @__PURE__ */ c(W, { className: "jcTableSearchFieldsDropdown", children: [
|
|
439
|
+
/* @__PURE__ */ c(_, { onClick: re, children: [
|
|
542
440
|
/* @__PURE__ */ t(
|
|
543
|
-
|
|
441
|
+
E,
|
|
544
442
|
{
|
|
545
443
|
type: "checkbox",
|
|
546
|
-
checked:
|
|
444
|
+
checked: y.size === l.length,
|
|
547
445
|
onChange: () => {
|
|
548
446
|
}
|
|
549
447
|
}
|
|
@@ -551,70 +449,70 @@ const Je = ({
|
|
|
551
449
|
/* @__PURE__ */ t("span", { style: { fontWeight: "bold" }, children: "All" })
|
|
552
450
|
] }),
|
|
553
451
|
/* @__PURE__ */ t("div", { style: { height: "1px", backgroundColor: o.colors.gray4, margin: "4px 0" } }),
|
|
554
|
-
|
|
555
|
-
/* @__PURE__ */ t(
|
|
452
|
+
l.map((e) => /* @__PURE__ */ c(_, { onClick: () => ne(e), children: [
|
|
453
|
+
/* @__PURE__ */ t(E, { type: "checkbox", checked: y.has(e), onChange: () => {
|
|
556
454
|
} }),
|
|
557
|
-
/* @__PURE__ */ t("span", { children:
|
|
455
|
+
/* @__PURE__ */ t("span", { children: $[e] || e })
|
|
558
456
|
] }, e))
|
|
559
457
|
] })
|
|
560
458
|
] }),
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
|
|
460
|
+
/* @__PURE__ */ c(
|
|
563
461
|
q,
|
|
564
462
|
{
|
|
565
463
|
className: "jcTableColumnSettings",
|
|
566
|
-
onClick: () =>
|
|
464
|
+
onClick: () => Z(!H),
|
|
567
465
|
children: [
|
|
568
|
-
/* @__PURE__ */ t(
|
|
466
|
+
/* @__PURE__ */ t(fe, { size: 16 }),
|
|
569
467
|
"Columns",
|
|
570
|
-
/* @__PURE__ */ t(
|
|
468
|
+
/* @__PURE__ */ t(M, { size: 16 })
|
|
571
469
|
]
|
|
572
470
|
}
|
|
573
471
|
),
|
|
574
|
-
|
|
575
|
-
/* @__PURE__ */ t(
|
|
472
|
+
H && /* @__PURE__ */ t(W, { className: "jcTableColumnSettingsDropdown", children: l.map((e) => /* @__PURE__ */ c(_, { onClick: () => se(e), children: [
|
|
473
|
+
/* @__PURE__ */ t(E, { type: "checkbox", checked: D.has(e), onChange: () => {
|
|
576
474
|
} }),
|
|
577
|
-
|
|
578
|
-
/* @__PURE__ */ t("span", { children:
|
|
475
|
+
D.has(e) ? /* @__PURE__ */ t(xe, { size: 16 }) : /* @__PURE__ */ t(he, { size: 16 }),
|
|
476
|
+
/* @__PURE__ */ t("span", { children: $[e] || e })
|
|
579
477
|
] }, e)) })
|
|
580
478
|
] })
|
|
581
479
|
] })
|
|
582
480
|
] }),
|
|
583
|
-
/* @__PURE__ */
|
|
584
|
-
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t(
|
|
585
|
-
|
|
481
|
+
/* @__PURE__ */ c(ze, { className: "jcTableContent", children: [
|
|
482
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t(Y, { interactableRow: !1, children: T.map((e) => /* @__PURE__ */ c(
|
|
483
|
+
je,
|
|
586
484
|
{
|
|
587
|
-
style:
|
|
588
|
-
onClick: () =>
|
|
485
|
+
style: p.key === e ? f.thActive : {},
|
|
486
|
+
onClick: () => te(e),
|
|
589
487
|
children: [
|
|
590
|
-
|
|
591
|
-
/* @__PURE__ */ t(
|
|
488
|
+
$[e] || e,
|
|
489
|
+
/* @__PURE__ */ t(Ne, { children: p.key === e ? p.direction === "asc" ? /* @__PURE__ */ t(U, { size: 16 }) : /* @__PURE__ */ t(M, { size: 16 }) : /* @__PURE__ */ t(U, { size: 16, style: { opacity: 0.313 } }) })
|
|
592
490
|
]
|
|
593
491
|
},
|
|
594
492
|
e
|
|
595
493
|
)) }) }),
|
|
596
|
-
/* @__PURE__ */ t("tbody", { children:
|
|
494
|
+
/* @__PURE__ */ t("tbody", { children: oe.map((e, n) => /* @__PURE__ */ t(Y, { onClick: () => A && A(e), interactableRow: !!A, children: T.map((a) => /* @__PURE__ */ t(Te, { children: e[a] }, a)) }, n)) })
|
|
597
495
|
] }),
|
|
598
|
-
/* @__PURE__ */
|
|
496
|
+
/* @__PURE__ */ c(Ae, { children: [
|
|
599
497
|
/* @__PURE__ */ t(
|
|
600
|
-
|
|
498
|
+
k,
|
|
601
499
|
{
|
|
602
|
-
style:
|
|
603
|
-
onClick: () =>
|
|
604
|
-
disabled:
|
|
500
|
+
style: i === 1 ? f.paginationButtonDisabled : {},
|
|
501
|
+
onClick: () => u(Math.max(1, i - 1)),
|
|
502
|
+
disabled: i === 1,
|
|
605
503
|
children: "Previous"
|
|
606
504
|
}
|
|
607
505
|
),
|
|
608
506
|
(() => {
|
|
609
507
|
const e = [];
|
|
610
|
-
if (
|
|
611
|
-
for (let n = 1; n <=
|
|
508
|
+
if (d <= 5)
|
|
509
|
+
for (let n = 1; n <= d; n++)
|
|
612
510
|
e.push(
|
|
613
511
|
/* @__PURE__ */ t(
|
|
614
|
-
|
|
512
|
+
k,
|
|
615
513
|
{
|
|
616
|
-
style:
|
|
617
|
-
onClick: () =>
|
|
514
|
+
style: i === n ? f.paginationButtonActive : {},
|
|
515
|
+
onClick: () => u(n),
|
|
618
516
|
children: n
|
|
619
517
|
},
|
|
620
518
|
n
|
|
@@ -623,64 +521,64 @@ const Je = ({
|
|
|
623
521
|
else {
|
|
624
522
|
e.push(
|
|
625
523
|
/* @__PURE__ */ t(
|
|
626
|
-
|
|
524
|
+
k,
|
|
627
525
|
{
|
|
628
|
-
style:
|
|
629
|
-
onClick: () =>
|
|
526
|
+
style: i === 1 ? f.paginationButtonActive : {},
|
|
527
|
+
onClick: () => u(1),
|
|
630
528
|
children: "1"
|
|
631
529
|
},
|
|
632
530
|
1
|
|
633
531
|
)
|
|
634
|
-
),
|
|
635
|
-
const n = Math.max(2,
|
|
636
|
-
for (let
|
|
532
|
+
), i > 3 && e.push(/* @__PURE__ */ t(J, { children: "..." }, "ellipsis1"));
|
|
533
|
+
const n = Math.max(2, i - 1), a = Math.min(d - 1, i + 1);
|
|
534
|
+
for (let h = n; h <= a; h++)
|
|
637
535
|
e.push(
|
|
638
536
|
/* @__PURE__ */ t(
|
|
639
|
-
|
|
537
|
+
k,
|
|
640
538
|
{
|
|
641
|
-
style:
|
|
642
|
-
onClick: () =>
|
|
643
|
-
children:
|
|
539
|
+
style: i === h ? f.paginationButtonActive : {},
|
|
540
|
+
onClick: () => u(h),
|
|
541
|
+
children: h
|
|
644
542
|
},
|
|
645
|
-
|
|
543
|
+
h
|
|
646
544
|
)
|
|
647
545
|
);
|
|
648
|
-
|
|
546
|
+
i < d - 2 && e.push(/* @__PURE__ */ t(J, { children: "..." }, "ellipsis2")), d > 1 && e.push(
|
|
649
547
|
/* @__PURE__ */ t(
|
|
650
|
-
|
|
548
|
+
k,
|
|
651
549
|
{
|
|
652
|
-
style:
|
|
653
|
-
onClick: () =>
|
|
654
|
-
children:
|
|
550
|
+
style: i === d ? f.paginationButtonActive : {},
|
|
551
|
+
onClick: () => u(d),
|
|
552
|
+
children: d
|
|
655
553
|
},
|
|
656
|
-
|
|
554
|
+
d
|
|
657
555
|
)
|
|
658
556
|
);
|
|
659
557
|
}
|
|
660
558
|
return e;
|
|
661
559
|
})(),
|
|
662
560
|
/* @__PURE__ */ t(
|
|
663
|
-
|
|
561
|
+
k,
|
|
664
562
|
{
|
|
665
|
-
style:
|
|
666
|
-
onClick: () =>
|
|
667
|
-
disabled:
|
|
563
|
+
style: i === d ? f.paginationButtonDisabled : {},
|
|
564
|
+
onClick: () => u(Math.min(d, i + 1)),
|
|
565
|
+
disabled: i === d,
|
|
668
566
|
children: "Next"
|
|
669
567
|
}
|
|
670
568
|
)
|
|
671
569
|
] }),
|
|
672
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ c(De, { children: [
|
|
673
571
|
"Showing ",
|
|
674
|
-
Math.min((
|
|
572
|
+
Math.min((i - 1) * m + 1, g.length),
|
|
675
573
|
" to",
|
|
676
574
|
" ",
|
|
677
|
-
Math.min(
|
|
575
|
+
Math.min(i * m, g.length),
|
|
678
576
|
" of ",
|
|
679
|
-
|
|
577
|
+
g.length,
|
|
680
578
|
" entries"
|
|
681
579
|
] })
|
|
682
580
|
] });
|
|
683
581
|
};
|
|
684
582
|
export {
|
|
685
|
-
|
|
583
|
+
Ge as default
|
|
686
584
|
};
|