jcicl 0.0.295 → 0.0.299
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/Table/Table.d.ts +2 -0
- package/Table/Table.js +164 -162
- package/package.json +1 -1
package/Table/Table.d.ts
CHANGED
package/Table/Table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import ge, { forwardRef as Y, createElement as W, useState as C, useMemo as A } from "react";
|
|
3
3
|
import { n as a } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -7,15 +7,15 @@ import { n as a } from "../.chunks/emotion-styled.browser.esm.js";
|
|
|
7
7
|
* This source code is licensed under the ISC license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const be = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ce = (t) => t.replace(
|
|
11
11
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
12
|
-
(
|
|
13
|
-
),
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
-
},
|
|
17
|
-
for (const
|
|
18
|
-
if (
|
|
12
|
+
(r, c, f) => f ? f.toUpperCase() : c.toLowerCase()
|
|
13
|
+
), U = (t) => {
|
|
14
|
+
const r = Ce(t);
|
|
15
|
+
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
16
|
+
}, Z = (...t) => t.filter((r, c, f) => !!r && r.trim() !== "" && f.indexOf(r) === c).join(" ").trim(), ye = (t) => {
|
|
17
|
+
for (const r in t)
|
|
18
|
+
if (r.startsWith("aria-") || r === "role" || r === "title")
|
|
19
19
|
return !0;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -24,7 +24,7 @@ const xe = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ge = (
|
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
26
|
*/
|
|
27
|
-
var
|
|
27
|
+
var ke = {
|
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
29
|
width: 24,
|
|
30
30
|
height: 24,
|
|
@@ -41,32 +41,32 @@ var Ce = {
|
|
|
41
41
|
* This source code is licensed under the ISC license.
|
|
42
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
const
|
|
44
|
+
const me = Y(
|
|
45
45
|
({
|
|
46
46
|
color: t = "currentColor",
|
|
47
|
-
size:
|
|
47
|
+
size: r = 24,
|
|
48
48
|
strokeWidth: c = 2,
|
|
49
|
-
absoluteStrokeWidth:
|
|
50
|
-
className:
|
|
51
|
-
children:
|
|
52
|
-
iconNode:
|
|
53
|
-
...
|
|
54
|
-
},
|
|
49
|
+
absoluteStrokeWidth: f,
|
|
50
|
+
className: y = "",
|
|
51
|
+
children: g,
|
|
52
|
+
iconNode: i,
|
|
53
|
+
...u
|
|
54
|
+
}, B) => W(
|
|
55
55
|
"svg",
|
|
56
56
|
{
|
|
57
|
-
ref:
|
|
58
|
-
...
|
|
59
|
-
width:
|
|
60
|
-
height:
|
|
57
|
+
ref: B,
|
|
58
|
+
...ke,
|
|
59
|
+
width: r,
|
|
60
|
+
height: r,
|
|
61
61
|
stroke: t,
|
|
62
|
-
strokeWidth:
|
|
63
|
-
className:
|
|
64
|
-
...!
|
|
65
|
-
...
|
|
62
|
+
strokeWidth: f ? Number(c) * 24 / Number(r) : c,
|
|
63
|
+
className: Z("lucide", y),
|
|
64
|
+
...!g && !ye(u) && { "aria-hidden": "true" },
|
|
65
|
+
...u
|
|
66
66
|
},
|
|
67
67
|
[
|
|
68
|
-
...
|
|
69
|
-
...Array.isArray(
|
|
68
|
+
...i.map(([d, I]) => W(d, I)),
|
|
69
|
+
...Array.isArray(g) ? g : [g]
|
|
70
70
|
]
|
|
71
71
|
)
|
|
72
72
|
);
|
|
@@ -76,20 +76,20 @@ const ye = q(
|
|
|
76
76
|
* This source code is licensed under the ISC license.
|
|
77
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
78
|
*/
|
|
79
|
-
const
|
|
80
|
-
const c =
|
|
81
|
-
({ className:
|
|
82
|
-
ref:
|
|
83
|
-
iconNode:
|
|
84
|
-
className:
|
|
85
|
-
`lucide-${
|
|
79
|
+
const v = (t, r) => {
|
|
80
|
+
const c = Y(
|
|
81
|
+
({ className: f, ...y }, g) => W(me, {
|
|
82
|
+
ref: g,
|
|
83
|
+
iconNode: r,
|
|
84
|
+
className: Z(
|
|
85
|
+
`lucide-${be(U(t))}`,
|
|
86
86
|
`lucide-${t}`,
|
|
87
|
-
|
|
87
|
+
f
|
|
88
88
|
),
|
|
89
|
-
...
|
|
89
|
+
...y
|
|
90
90
|
})
|
|
91
91
|
);
|
|
92
|
-
return c.displayName =
|
|
92
|
+
return c.displayName = U(t), c;
|
|
93
93
|
};
|
|
94
94
|
/**
|
|
95
95
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -97,21 +97,21 @@ const S = (t, i) => {
|
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
99
|
*/
|
|
100
|
-
const
|
|
100
|
+
const we = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], j = v("chevron-down", we);
|
|
101
101
|
/**
|
|
102
102
|
* @license lucide-react v0.525.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
106
|
*/
|
|
107
|
-
const
|
|
107
|
+
const Se = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], q = v("chevron-up", Se);
|
|
108
108
|
/**
|
|
109
109
|
* @license lucide-react v0.525.0 - ISC
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the ISC license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
113
|
*/
|
|
114
|
-
const
|
|
114
|
+
const ve = [
|
|
115
115
|
[
|
|
116
116
|
"path",
|
|
117
117
|
{
|
|
@@ -128,14 +128,14 @@ const me = [
|
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
130
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
131
|
-
],
|
|
131
|
+
], ze = v("eye-off", ve);
|
|
132
132
|
/**
|
|
133
133
|
* @license lucide-react v0.525.0 - ISC
|
|
134
134
|
*
|
|
135
135
|
* This source code is licensed under the ISC license.
|
|
136
136
|
* See the LICENSE file in the root directory of this source tree.
|
|
137
137
|
*/
|
|
138
|
-
const
|
|
138
|
+
const Ae = [
|
|
139
139
|
[
|
|
140
140
|
"path",
|
|
141
141
|
{
|
|
@@ -144,24 +144,24 @@ const ve = [
|
|
|
144
144
|
}
|
|
145
145
|
],
|
|
146
146
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
147
|
-
],
|
|
147
|
+
], Be = v("eye", Ae);
|
|
148
148
|
/**
|
|
149
149
|
* @license lucide-react v0.525.0 - ISC
|
|
150
150
|
*
|
|
151
151
|
* This source code is licensed under the ISC license.
|
|
152
152
|
* See the LICENSE file in the root directory of this source tree.
|
|
153
153
|
*/
|
|
154
|
-
const
|
|
154
|
+
const Ie = [
|
|
155
155
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
156
156
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
157
|
-
],
|
|
157
|
+
], K = v("search", Ie);
|
|
158
158
|
/**
|
|
159
159
|
* @license lucide-react v0.525.0 - ISC
|
|
160
160
|
*
|
|
161
161
|
* This source code is licensed under the ISC license.
|
|
162
162
|
* See the LICENSE file in the root directory of this source tree.
|
|
163
163
|
*/
|
|
164
|
-
const
|
|
164
|
+
const _e = [
|
|
165
165
|
[
|
|
166
166
|
"path",
|
|
167
167
|
{
|
|
@@ -170,50 +170,52 @@ const Be = [
|
|
|
170
170
|
}
|
|
171
171
|
],
|
|
172
172
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
173
|
-
],
|
|
174
|
-
let
|
|
175
|
-
const
|
|
173
|
+
], De = v("settings", _e);
|
|
174
|
+
let S = "";
|
|
175
|
+
const We = ({
|
|
176
176
|
data: t = [],
|
|
177
|
-
columnTitles:
|
|
177
|
+
columnTitles: r = {},
|
|
178
178
|
rowsPerPage: c = 19,
|
|
179
|
-
title:
|
|
179
|
+
title: f = "Data Table",
|
|
180
|
+
onRowClick: y,
|
|
181
|
+
hiddenColumns: g = []
|
|
180
182
|
}) => {
|
|
181
|
-
const [
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}, [
|
|
185
|
-
const
|
|
186
|
-
if (!
|
|
187
|
-
const e =
|
|
188
|
-
return t.filter((
|
|
189
|
-
const x =
|
|
190
|
-
return x && x.toString().toLowerCase().includes(
|
|
183
|
+
const [i, u] = C(1), [, B] = C(""), [d, I] = C({ key: "", direction: "asc" }), [k, z] = C(/* @__PURE__ */ new Set()), [_, L] = C(/* @__PURE__ */ new Set()), [$, G] = C(!1), [N, J] = C(!1), p = A(() => t.length === 0 ? [] : Object.keys(t[0]).filter((e) => !g.includes(e)), [t]);
|
|
184
|
+
ge.useEffect(() => {
|
|
185
|
+
p.length > 0 && (L(new Set(p)), z(new Set(p)));
|
|
186
|
+
}, [p]);
|
|
187
|
+
const D = A(() => {
|
|
188
|
+
if (!S) return t;
|
|
189
|
+
const e = k.size > 0 ? k : new Set(p);
|
|
190
|
+
return t.filter((n) => Array.from(e).some((l) => {
|
|
191
|
+
const x = n[l];
|
|
192
|
+
return x && x.toString().toLowerCase().includes(S.toLowerCase());
|
|
191
193
|
}));
|
|
192
|
-
}, [t,
|
|
193
|
-
const e = (
|
|
194
|
-
return
|
|
195
|
-
}, [
|
|
196
|
-
|
|
194
|
+
}, [t, S, k, p]), m = A(() => d.key ? [...D].sort((e, n) => e[d.key] < n[d.key] ? d.direction === "asc" ? -1 : 1 : e[d.key] > n[d.key] ? d.direction === "asc" ? 1 : -1 : 0) : D, [D, d]), Q = A(() => {
|
|
195
|
+
const e = (i - 1) * c;
|
|
196
|
+
return m.slice(e, e + c);
|
|
197
|
+
}, [m, i, c]), h = Math.ceil(m.length / c), X = (e) => {
|
|
198
|
+
I((n) => ({
|
|
197
199
|
key: e,
|
|
198
|
-
direction:
|
|
200
|
+
direction: n.key === e && n.direction === "asc" ? "desc" : "asc"
|
|
199
201
|
}));
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
const l = new Set(
|
|
202
|
+
}, P = (e) => {
|
|
203
|
+
z((n) => {
|
|
204
|
+
const l = new Set(n);
|
|
203
205
|
return l.has(e) ? l.delete(e) : l.add(e), l;
|
|
204
206
|
});
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
const l = new Set(
|
|
207
|
+
}, ee = () => {
|
|
208
|
+
k.size === p.length ? z(/* @__PURE__ */ new Set()) : z(new Set(p));
|
|
209
|
+
}, oe = (e) => {
|
|
210
|
+
L((n) => {
|
|
211
|
+
const l = new Set(n);
|
|
210
212
|
return l.has(e) ? l.delete(e) : l.add(e), l;
|
|
211
213
|
});
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
+
}, te = (e) => {
|
|
215
|
+
S = e;
|
|
214
216
|
}, R = () => {
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
+
B(S);
|
|
218
|
+
}, E = p.filter((e) => _.has(e)), b = {
|
|
217
219
|
thActive: {
|
|
218
220
|
backgroundColor: "#009200",
|
|
219
221
|
color: "#ffffff"
|
|
@@ -233,7 +235,7 @@ const Te = ({
|
|
|
233
235
|
textAlign: "center",
|
|
234
236
|
marginTop: "10px"
|
|
235
237
|
}
|
|
236
|
-
},
|
|
238
|
+
}, ne = a("div")({
|
|
237
239
|
backgroundColor: "#ffffff",
|
|
238
240
|
borderRadius: "8px",
|
|
239
241
|
boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
|
|
@@ -241,29 +243,29 @@ const Te = ({
|
|
|
241
243
|
fontFamily: "Arial, sans-serif",
|
|
242
244
|
maxWidth: "100%",
|
|
243
245
|
overflow: "auto"
|
|
244
|
-
}),
|
|
246
|
+
}), re = a("div")({
|
|
245
247
|
display: "flex",
|
|
246
248
|
justifyContent: "space-between",
|
|
247
249
|
alignItems: "center",
|
|
248
250
|
marginBottom: "20px",
|
|
249
251
|
flexWrap: "wrap",
|
|
250
252
|
gap: "10px"
|
|
251
|
-
}),
|
|
253
|
+
}), ie = a("h2")({
|
|
252
254
|
fontSize: "24px",
|
|
253
255
|
fontWeight: "bold",
|
|
254
256
|
color: "#000000",
|
|
255
257
|
margin: 0
|
|
256
|
-
}),
|
|
258
|
+
}), ae = a("div")({
|
|
257
259
|
display: "flex",
|
|
258
260
|
gap: "15px",
|
|
259
261
|
alignItems: "center",
|
|
260
262
|
flexWrap: "wrap"
|
|
261
|
-
}),
|
|
263
|
+
}), se = a("div")({
|
|
262
264
|
position: "relative",
|
|
263
265
|
display: "flex",
|
|
264
266
|
alignItems: "center",
|
|
265
267
|
gap: "10px"
|
|
266
|
-
}),
|
|
268
|
+
}), ce = a(K)({
|
|
267
269
|
position: "absolute",
|
|
268
270
|
left: "13px",
|
|
269
271
|
top: "10px",
|
|
@@ -275,7 +277,7 @@ const Te = ({
|
|
|
275
277
|
cursor: "pointer",
|
|
276
278
|
color: "#009200"
|
|
277
279
|
}
|
|
278
|
-
}),
|
|
280
|
+
}), le = a("input")({
|
|
279
281
|
padding: "10px 15px 10px 40px",
|
|
280
282
|
border: "2px solid #e0e0e0",
|
|
281
283
|
borderRadius: "25px",
|
|
@@ -288,7 +290,7 @@ const Te = ({
|
|
|
288
290
|
borderColor: "#009200",
|
|
289
291
|
boxShadow: "0 0 0 3px rgba(0, 146, 0, 0.1)"
|
|
290
292
|
}
|
|
291
|
-
}),
|
|
293
|
+
}), F = a("button")({
|
|
292
294
|
padding: "10px 15px",
|
|
293
295
|
border: "2px solid #009200",
|
|
294
296
|
borderRadius: "6px",
|
|
@@ -308,7 +310,7 @@ const Te = ({
|
|
|
308
310
|
transform: "translateY(-1px)",
|
|
309
311
|
boxShadow: "0 4px 12px rgba(0, 146, 0, 0.3)"
|
|
310
312
|
}
|
|
311
|
-
}),
|
|
313
|
+
}), V = a("div")({
|
|
312
314
|
position: "absolute",
|
|
313
315
|
top: "100%",
|
|
314
316
|
right: 0,
|
|
@@ -321,7 +323,7 @@ const Te = ({
|
|
|
321
323
|
minWidth: "200px",
|
|
322
324
|
maxHeight: "300px",
|
|
323
325
|
overflowY: "auto"
|
|
324
|
-
}),
|
|
326
|
+
}), M = a("div")({
|
|
325
327
|
padding: "12px 16px",
|
|
326
328
|
display: "flex",
|
|
327
329
|
alignItems: "center",
|
|
@@ -334,18 +336,18 @@ const Te = ({
|
|
|
334
336
|
backgroundColor: "#f0f8f0",
|
|
335
337
|
color: "#005c00"
|
|
336
338
|
}
|
|
337
|
-
}),
|
|
339
|
+
}), T = a("input")({
|
|
338
340
|
width: "16px",
|
|
339
341
|
height: "16px",
|
|
340
342
|
accentColor: "#009200"
|
|
341
|
-
}),
|
|
343
|
+
}), de = a("table")({
|
|
342
344
|
width: "100%",
|
|
343
345
|
borderCollapse: "collapse",
|
|
344
346
|
backgroundColor: "#ffffff",
|
|
345
347
|
borderRadius: "8px",
|
|
346
348
|
overflow: "hidden",
|
|
347
349
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
348
|
-
}),
|
|
350
|
+
}), pe = a("th")({
|
|
349
351
|
backgroundColor: "#f8f9fa",
|
|
350
352
|
color: "#333333",
|
|
351
353
|
padding: "16px 12px",
|
|
@@ -362,22 +364,22 @@ const Te = ({
|
|
|
362
364
|
backgroundColor: "#e8f5e8",
|
|
363
365
|
color: "#005c00"
|
|
364
366
|
}
|
|
365
|
-
}),
|
|
367
|
+
}), he = a("td")({
|
|
366
368
|
padding: "14px 12px",
|
|
367
369
|
borderBottom: "1px solid #f0f0f0",
|
|
368
370
|
fontSize: "14px",
|
|
369
371
|
color: "#333333",
|
|
370
372
|
transition: "all 0.2s ease"
|
|
371
|
-
}),
|
|
373
|
+
}), fe = a("span")({
|
|
372
374
|
marginLeft: "8px",
|
|
373
375
|
opacity: 0.6
|
|
374
|
-
}),
|
|
376
|
+
}), H = a("tr")({
|
|
375
377
|
transition: "all 0.2s ease",
|
|
376
378
|
cursor: "pointer",
|
|
377
379
|
"&:focus, &:hover, &:focus-within": {
|
|
378
380
|
backgroundColor: "#f8fff8"
|
|
379
381
|
}
|
|
380
|
-
}),
|
|
382
|
+
}), ue = a("div")({
|
|
381
383
|
display: "flex",
|
|
382
384
|
justifyContent: "center",
|
|
383
385
|
alignItems: "center",
|
|
@@ -402,30 +404,30 @@ const Te = ({
|
|
|
402
404
|
opacity: 0.5,
|
|
403
405
|
cursor: "not-allowed"
|
|
404
406
|
}
|
|
405
|
-
}),
|
|
407
|
+
}), xe = a("div")({
|
|
406
408
|
fontSize: "14px",
|
|
407
409
|
color: "#666666",
|
|
408
410
|
textAlign: "center",
|
|
409
411
|
marginTop: "10px"
|
|
410
|
-
}),
|
|
412
|
+
}), O = a("span")({
|
|
411
413
|
padding: "8px 4px",
|
|
412
414
|
color: "#666666",
|
|
413
415
|
fontSize: "14px"
|
|
414
416
|
});
|
|
415
|
-
return /* @__PURE__ */ s(
|
|
416
|
-
/* @__PURE__ */ s(
|
|
417
|
-
/* @__PURE__ */ o(
|
|
418
|
-
/* @__PURE__ */ s(
|
|
419
|
-
/* @__PURE__ */ s(
|
|
417
|
+
return /* @__PURE__ */ s(ne, { children: [
|
|
418
|
+
/* @__PURE__ */ s(re, { children: [
|
|
419
|
+
/* @__PURE__ */ o(ie, { children: f }),
|
|
420
|
+
/* @__PURE__ */ s(ae, { children: [
|
|
421
|
+
/* @__PURE__ */ s(se, { children: [
|
|
420
422
|
/* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
|
|
421
|
-
/* @__PURE__ */ o(
|
|
423
|
+
/* @__PURE__ */ o(ce, { onClick: R }),
|
|
422
424
|
/* @__PURE__ */ o(
|
|
423
|
-
|
|
425
|
+
le,
|
|
424
426
|
{
|
|
425
427
|
type: "text",
|
|
426
428
|
placeholder: "Search...",
|
|
427
|
-
defaultValue:
|
|
428
|
-
onChange: (e) =>
|
|
429
|
+
defaultValue: S,
|
|
430
|
+
onChange: (e) => te(e.target.value),
|
|
429
431
|
onKeyDown: (e) => {
|
|
430
432
|
e.key === "Enter" && R();
|
|
431
433
|
}
|
|
@@ -433,18 +435,18 @@ const Te = ({
|
|
|
433
435
|
)
|
|
434
436
|
] }),
|
|
435
437
|
/* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
|
|
436
|
-
/* @__PURE__ */ s(
|
|
437
|
-
/* @__PURE__ */ o(
|
|
438
|
+
/* @__PURE__ */ s(F, { onClick: () => J(!N), children: [
|
|
439
|
+
/* @__PURE__ */ o(K, { size: 16 }),
|
|
438
440
|
"Fields",
|
|
439
|
-
/* @__PURE__ */ o(
|
|
441
|
+
/* @__PURE__ */ o(j, { size: 16 })
|
|
440
442
|
] }),
|
|
441
|
-
|
|
442
|
-
/* @__PURE__ */ s(
|
|
443
|
+
N && /* @__PURE__ */ s(V, { children: [
|
|
444
|
+
/* @__PURE__ */ s(M, { onClick: ee, children: [
|
|
443
445
|
/* @__PURE__ */ o(
|
|
444
|
-
|
|
446
|
+
T,
|
|
445
447
|
{
|
|
446
448
|
type: "checkbox",
|
|
447
|
-
checked:
|
|
449
|
+
checked: k.size === p.length,
|
|
448
450
|
onChange: () => {
|
|
449
451
|
}
|
|
450
452
|
}
|
|
@@ -452,67 +454,67 @@ const Te = ({
|
|
|
452
454
|
/* @__PURE__ */ o("span", { style: { fontWeight: "bold" }, children: "All" })
|
|
453
455
|
] }),
|
|
454
456
|
/* @__PURE__ */ o("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
|
|
455
|
-
|
|
456
|
-
/* @__PURE__ */ o(
|
|
457
|
+
p.map((e) => /* @__PURE__ */ s(M, { onClick: () => P(e), children: [
|
|
458
|
+
/* @__PURE__ */ o(T, { type: "checkbox", checked: k.has(e), onChange: () => {
|
|
457
459
|
} }),
|
|
458
|
-
/* @__PURE__ */ o("span", { children:
|
|
460
|
+
/* @__PURE__ */ o("span", { children: r[e] || e })
|
|
459
461
|
] }, e))
|
|
460
462
|
] })
|
|
461
463
|
] })
|
|
462
464
|
] }),
|
|
463
465
|
/* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
|
|
464
|
-
/* @__PURE__ */ s(
|
|
465
|
-
/* @__PURE__ */ o(
|
|
466
|
+
/* @__PURE__ */ s(F, { onClick: () => G(!$), children: [
|
|
467
|
+
/* @__PURE__ */ o(De, { size: 16 }),
|
|
466
468
|
"Columns",
|
|
467
|
-
/* @__PURE__ */ o(
|
|
469
|
+
/* @__PURE__ */ o(j, { size: 16 })
|
|
468
470
|
] }),
|
|
469
|
-
|
|
470
|
-
/* @__PURE__ */ o(
|
|
471
|
+
$ && /* @__PURE__ */ o(V, { children: p.map((e) => /* @__PURE__ */ s(M, { onClick: () => oe(e), children: [
|
|
472
|
+
/* @__PURE__ */ o(T, { type: "checkbox", checked: _.has(e), onChange: () => {
|
|
471
473
|
} }),
|
|
472
|
-
|
|
473
|
-
/* @__PURE__ */ o("span", { children:
|
|
474
|
+
_.has(e) ? /* @__PURE__ */ o(Be, { size: 16 }) : /* @__PURE__ */ o(ze, { size: 16 }),
|
|
475
|
+
/* @__PURE__ */ o("span", { children: r[e] || e })
|
|
474
476
|
] }, e)) })
|
|
475
477
|
] })
|
|
476
478
|
] })
|
|
477
479
|
] }),
|
|
478
|
-
/* @__PURE__ */ s(
|
|
479
|
-
/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(
|
|
480
|
-
|
|
480
|
+
/* @__PURE__ */ s(de, { children: [
|
|
481
|
+
/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(H, { children: E.map((e) => /* @__PURE__ */ s(
|
|
482
|
+
pe,
|
|
481
483
|
{
|
|
482
484
|
style: d.key === e ? b.thActive : {},
|
|
483
|
-
onClick: () =>
|
|
485
|
+
onClick: () => X(e),
|
|
484
486
|
children: [
|
|
485
|
-
|
|
486
|
-
/* @__PURE__ */ o(
|
|
487
|
+
r[e] || e,
|
|
488
|
+
/* @__PURE__ */ o(fe, { children: d.key === e ? d.direction === "asc" ? /* @__PURE__ */ o(q, { size: 16 }) : /* @__PURE__ */ o(j, { size: 16 }) : /* @__PURE__ */ o(q, { size: 16, style: { opacity: 0.313 } }) })
|
|
487
489
|
]
|
|
488
490
|
},
|
|
489
491
|
e
|
|
490
492
|
)) }) }),
|
|
491
|
-
/* @__PURE__ */ o("tbody", { children:
|
|
493
|
+
/* @__PURE__ */ o("tbody", { children: Q.map((e, n) => /* @__PURE__ */ o(H, { onClick: () => y && y(e), children: E.map((l) => /* @__PURE__ */ o(he, { children: e[l] }, l)) }, n)) })
|
|
492
494
|
] }),
|
|
493
|
-
/* @__PURE__ */ s(
|
|
495
|
+
/* @__PURE__ */ s(ue, { children: [
|
|
494
496
|
/* @__PURE__ */ o(
|
|
495
497
|
w,
|
|
496
498
|
{
|
|
497
|
-
style:
|
|
498
|
-
onClick: () =>
|
|
499
|
-
disabled:
|
|
499
|
+
style: i === 1 ? b.paginationButtonDisabled : {},
|
|
500
|
+
onClick: () => u(Math.max(1, i - 1)),
|
|
501
|
+
disabled: i === 1,
|
|
500
502
|
children: "Previous"
|
|
501
503
|
}
|
|
502
504
|
),
|
|
503
505
|
(() => {
|
|
504
506
|
const e = [];
|
|
505
|
-
if (
|
|
506
|
-
for (let
|
|
507
|
+
if (h <= 5)
|
|
508
|
+
for (let n = 1; n <= h; n++)
|
|
507
509
|
e.push(
|
|
508
510
|
/* @__PURE__ */ o(
|
|
509
511
|
w,
|
|
510
512
|
{
|
|
511
|
-
style:
|
|
512
|
-
onClick: () =>
|
|
513
|
-
children:
|
|
513
|
+
style: i === n ? b.paginationButtonActive : {},
|
|
514
|
+
onClick: () => u(n),
|
|
515
|
+
children: n
|
|
514
516
|
},
|
|
515
|
-
|
|
517
|
+
n
|
|
516
518
|
)
|
|
517
519
|
);
|
|
518
520
|
else {
|
|
@@ -520,35 +522,35 @@ const Te = ({
|
|
|
520
522
|
/* @__PURE__ */ o(
|
|
521
523
|
w,
|
|
522
524
|
{
|
|
523
|
-
style:
|
|
524
|
-
onClick: () =>
|
|
525
|
+
style: i === 1 ? b.paginationButtonActive : {},
|
|
526
|
+
onClick: () => u(1),
|
|
525
527
|
children: "1"
|
|
526
528
|
},
|
|
527
529
|
1
|
|
528
530
|
)
|
|
529
|
-
),
|
|
530
|
-
const
|
|
531
|
-
for (let x =
|
|
531
|
+
), i > 3 && e.push(/* @__PURE__ */ o(O, { children: "..." }, "ellipsis1"));
|
|
532
|
+
const n = Math.max(2, i - 1), l = Math.min(h - 1, i + 1);
|
|
533
|
+
for (let x = n; x <= l; x++)
|
|
532
534
|
e.push(
|
|
533
535
|
/* @__PURE__ */ o(
|
|
534
536
|
w,
|
|
535
537
|
{
|
|
536
|
-
style:
|
|
537
|
-
onClick: () =>
|
|
538
|
+
style: i === x ? b.paginationButtonActive : {},
|
|
539
|
+
onClick: () => u(x),
|
|
538
540
|
children: x
|
|
539
541
|
},
|
|
540
542
|
x
|
|
541
543
|
)
|
|
542
544
|
);
|
|
543
|
-
|
|
545
|
+
i < h - 2 && e.push(/* @__PURE__ */ o(O, { children: "..." }, "ellipsis2")), h > 1 && e.push(
|
|
544
546
|
/* @__PURE__ */ o(
|
|
545
547
|
w,
|
|
546
548
|
{
|
|
547
|
-
style:
|
|
548
|
-
onClick: () =>
|
|
549
|
-
children:
|
|
549
|
+
style: i === h ? b.paginationButtonActive : {},
|
|
550
|
+
onClick: () => u(h),
|
|
551
|
+
children: h
|
|
550
552
|
},
|
|
551
|
-
|
|
553
|
+
h
|
|
552
554
|
)
|
|
553
555
|
);
|
|
554
556
|
}
|
|
@@ -557,25 +559,25 @@ const Te = ({
|
|
|
557
559
|
/* @__PURE__ */ o(
|
|
558
560
|
w,
|
|
559
561
|
{
|
|
560
|
-
style:
|
|
561
|
-
onClick: () =>
|
|
562
|
-
disabled:
|
|
562
|
+
style: i === h ? b.paginationButtonDisabled : {},
|
|
563
|
+
onClick: () => u(Math.min(h, i + 1)),
|
|
564
|
+
disabled: i === h,
|
|
563
565
|
children: "Next"
|
|
564
566
|
}
|
|
565
567
|
)
|
|
566
568
|
] }),
|
|
567
|
-
/* @__PURE__ */ s(
|
|
569
|
+
/* @__PURE__ */ s(xe, { children: [
|
|
568
570
|
"Showing ",
|
|
569
|
-
Math.min((
|
|
571
|
+
Math.min((i - 1) * c + 1, m.length),
|
|
570
572
|
" to",
|
|
571
573
|
" ",
|
|
572
|
-
Math.min(
|
|
574
|
+
Math.min(i * c, m.length),
|
|
573
575
|
" of ",
|
|
574
|
-
|
|
576
|
+
m.length,
|
|
575
577
|
" entries"
|
|
576
578
|
] })
|
|
577
579
|
] });
|
|
578
580
|
};
|
|
579
581
|
export {
|
|
580
|
-
|
|
582
|
+
We as default
|
|
581
583
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.299",
|
|
5
5
|
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|