jcicl 0.0.313 → 0.0.317
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/Button/Button.d.ts +5 -1
- package/Button/Button.js +174 -112
- package/LabeledCheckbox/LabeledCheckbox.js +55 -61
- package/Table/Table.js +151 -150
- package/package.json +1 -1
- package/theme.d.ts +2 -0
- package/theme.js +2 -0
package/Table/Table.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import ve, { forwardRef as Q, createElement as N, useState as m, useMemo as D } from "react";
|
|
3
|
+
import B from "../theme.js";
|
|
3
4
|
import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
-
import { Button as
|
|
5
|
+
import { Button as ze } from "../Button/Button.js";
|
|
5
6
|
/**
|
|
6
7
|
* @license lucide-react v0.525.0 - ISC
|
|
7
8
|
*
|
|
8
9
|
* This source code is licensed under the ISC license.
|
|
9
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
11
|
*/
|
|
11
|
-
const
|
|
12
|
+
const Ae = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), je = (n) => n.replace(
|
|
12
13
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
13
14
|
(r, l, u) => u ? u.toUpperCase() : l.toLowerCase()
|
|
14
|
-
),
|
|
15
|
-
const r =
|
|
15
|
+
), Z = (n) => {
|
|
16
|
+
const r = je(n);
|
|
16
17
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
17
|
-
},
|
|
18
|
+
}, X = (...n) => n.filter((r, l, u) => !!r && r.trim() !== "" && u.indexOf(r) === l).join(" ").trim(), Be = (n) => {
|
|
18
19
|
for (const r in n)
|
|
19
20
|
if (r.startsWith("aria-") || r === "role" || r === "title")
|
|
20
21
|
return !0;
|
|
@@ -25,7 +26,7 @@ const ze = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ae = (
|
|
|
25
26
|
* This source code is licensed under the ISC license.
|
|
26
27
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
28
|
*/
|
|
28
|
-
var
|
|
29
|
+
var Ie = {
|
|
29
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
31
|
width: 24,
|
|
31
32
|
height: 24,
|
|
@@ -42,7 +43,7 @@ var Be = {
|
|
|
42
43
|
* This source code is licensed under the ISC license.
|
|
43
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
45
|
*/
|
|
45
|
-
const
|
|
46
|
+
const _e = Q(
|
|
46
47
|
({
|
|
47
48
|
color: n = "currentColor",
|
|
48
49
|
size: r = 24,
|
|
@@ -50,23 +51,23 @@ const Ie = J(
|
|
|
50
51
|
absoluteStrokeWidth: u,
|
|
51
52
|
className: C = "",
|
|
52
53
|
children: g,
|
|
53
|
-
iconNode:
|
|
54
|
+
iconNode: M,
|
|
54
55
|
...i
|
|
55
|
-
}, b) =>
|
|
56
|
+
}, b) => N(
|
|
56
57
|
"svg",
|
|
57
58
|
{
|
|
58
59
|
ref: b,
|
|
59
|
-
...
|
|
60
|
+
...Ie,
|
|
60
61
|
width: r,
|
|
61
62
|
height: r,
|
|
62
63
|
stroke: n,
|
|
63
64
|
strokeWidth: u ? Number(l) * 24 / Number(r) : l,
|
|
64
|
-
className:
|
|
65
|
-
...!g && !
|
|
65
|
+
className: X("lucide", C),
|
|
66
|
+
...!g && !Be(i) && { "aria-hidden": "true" },
|
|
66
67
|
...i
|
|
67
68
|
},
|
|
68
69
|
[
|
|
69
|
-
...
|
|
70
|
+
...M.map(([T, d]) => N(T, d)),
|
|
70
71
|
...Array.isArray(g) ? g : [g]
|
|
71
72
|
]
|
|
72
73
|
)
|
|
@@ -78,19 +79,19 @@ const Ie = J(
|
|
|
78
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
80
|
*/
|
|
80
81
|
const z = (n, r) => {
|
|
81
|
-
const l =
|
|
82
|
-
({ className: u, ...C }, g) =>
|
|
82
|
+
const l = Q(
|
|
83
|
+
({ className: u, ...C }, g) => N(_e, {
|
|
83
84
|
ref: g,
|
|
84
85
|
iconNode: r,
|
|
85
|
-
className:
|
|
86
|
-
`lucide-${
|
|
86
|
+
className: X(
|
|
87
|
+
`lucide-${Ae(Z(n))}`,
|
|
87
88
|
`lucide-${n}`,
|
|
88
89
|
u
|
|
89
90
|
),
|
|
90
91
|
...C
|
|
91
92
|
})
|
|
92
93
|
);
|
|
93
|
-
return l.displayName =
|
|
94
|
+
return l.displayName = Z(n), l;
|
|
94
95
|
};
|
|
95
96
|
/**
|
|
96
97
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -98,21 +99,21 @@ const z = (n, r) => {
|
|
|
98
99
|
* This source code is licensed under the ISC license.
|
|
99
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
101
|
*/
|
|
101
|
-
const
|
|
102
|
+
const De = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], E = z("chevron-down", De);
|
|
102
103
|
/**
|
|
103
104
|
* @license lucide-react v0.525.0 - ISC
|
|
104
105
|
*
|
|
105
106
|
* This source code is licensed under the ISC license.
|
|
106
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
107
108
|
*/
|
|
108
|
-
const
|
|
109
|
+
const Me = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], G = z("chevron-up", Me);
|
|
109
110
|
/**
|
|
110
111
|
* @license lucide-react v0.525.0 - ISC
|
|
111
112
|
*
|
|
112
113
|
* This source code is licensed under the ISC license.
|
|
113
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
114
115
|
*/
|
|
115
|
-
const
|
|
116
|
+
const Te = [
|
|
116
117
|
[
|
|
117
118
|
"path",
|
|
118
119
|
{
|
|
@@ -129,14 +130,14 @@ const Me = [
|
|
|
129
130
|
}
|
|
130
131
|
],
|
|
131
132
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
132
|
-
],
|
|
133
|
+
], Le = z("eye-off", Te);
|
|
133
134
|
/**
|
|
134
135
|
* @license lucide-react v0.525.0 - ISC
|
|
135
136
|
*
|
|
136
137
|
* This source code is licensed under the ISC license.
|
|
137
138
|
* See the LICENSE file in the root directory of this source tree.
|
|
138
139
|
*/
|
|
139
|
-
const
|
|
140
|
+
const Re = [
|
|
140
141
|
[
|
|
141
142
|
"path",
|
|
142
143
|
{
|
|
@@ -145,24 +146,24 @@ const Le = [
|
|
|
145
146
|
}
|
|
146
147
|
],
|
|
147
148
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
148
|
-
],
|
|
149
|
+
], We = z("eye", Re);
|
|
149
150
|
/**
|
|
150
151
|
* @license lucide-react v0.525.0 - ISC
|
|
151
152
|
*
|
|
152
153
|
* This source code is licensed under the ISC license.
|
|
153
154
|
* See the LICENSE file in the root directory of this source tree.
|
|
154
155
|
*/
|
|
155
|
-
const
|
|
156
|
+
const $e = [
|
|
156
157
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
157
158
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
158
|
-
],
|
|
159
|
+
], J = z("search", $e);
|
|
159
160
|
/**
|
|
160
161
|
* @license lucide-react v0.525.0 - ISC
|
|
161
162
|
*
|
|
162
163
|
* This source code is licensed under the ISC license.
|
|
163
164
|
* See the LICENSE file in the root directory of this source tree.
|
|
164
165
|
*/
|
|
165
|
-
const
|
|
166
|
+
const Ee = [
|
|
166
167
|
[
|
|
167
168
|
"path",
|
|
168
169
|
{
|
|
@@ -171,73 +172,73 @@ const $e = [
|
|
|
171
172
|
}
|
|
172
173
|
],
|
|
173
174
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
174
|
-
],
|
|
175
|
+
], Ne = z("settings", Ee);
|
|
175
176
|
let v = "";
|
|
176
|
-
const
|
|
177
|
+
const qe = ({
|
|
177
178
|
data: n = [],
|
|
178
179
|
columnTitles: r = {},
|
|
179
180
|
rowsPerPage: l = 19,
|
|
180
181
|
title: u = "Data Table",
|
|
181
182
|
onRowClick: C,
|
|
182
183
|
hiddenColumns: g = [],
|
|
183
|
-
defaultSort:
|
|
184
|
+
defaultSort: M = { key: "", direction: "asc" }
|
|
184
185
|
}) => {
|
|
185
|
-
const [i, b] = m(1), [,
|
|
186
|
-
|
|
187
|
-
p.length > 0 && (
|
|
186
|
+
const [i, b] = m(1), [, T] = m(""), [d, P] = m(M), [w, I] = m(/* @__PURE__ */ new Set()), [L, V] = m(/* @__PURE__ */ new Set()), [F, ee] = m(!1), [U, oe] = m(!1), p = D(() => n.length === 0 ? [] : Object.keys(n[0]).filter((e) => !g.includes(e)), [n]);
|
|
187
|
+
ve.useEffect(() => {
|
|
188
|
+
p.length > 0 && (V(new Set(p)), I(new Set(p)));
|
|
188
189
|
}, [p]);
|
|
189
|
-
const
|
|
190
|
+
const R = D(() => {
|
|
190
191
|
if (!v) return n;
|
|
191
192
|
const e = w.size > 0 ? w : new Set(p);
|
|
192
|
-
return n.filter((
|
|
193
|
-
const
|
|
194
|
-
return
|
|
193
|
+
return n.filter((t) => Array.from(e).some((a) => {
|
|
194
|
+
const f = t[a];
|
|
195
|
+
return f && f.toString().toLowerCase().includes(v.toLowerCase());
|
|
195
196
|
}));
|
|
196
|
-
}, [n, v, w, p]), x =
|
|
197
|
+
}, [n, v, w, p]), x = D(() => d.key ? [...R].sort((e, t) => e[d.key] < t[d.key] ? d.direction === "asc" ? -1 : 1 : e[d.key] > t[d.key] ? d.direction === "asc" ? 1 : -1 : 0) : R, [R, d]), _ = p.filter((e) => L.has(e)), te = () => {
|
|
197
198
|
if (!Array.isArray(x) || x.length === 0) return;
|
|
198
|
-
const e =
|
|
199
|
+
const e = _.map((S) => r[S] || S), t = (S) => {
|
|
199
200
|
const j = String(S ?? "");
|
|
200
201
|
return /[",\n]/.test(j) ? `"${j.replace(/"/g, '""')}"` : j;
|
|
201
|
-
},
|
|
202
|
+
}, f = [
|
|
202
203
|
e.join(","),
|
|
203
204
|
// header row
|
|
204
|
-
...x.map((S) =>
|
|
205
|
+
...x.map((S) => _.map((j) => t(S[j])).join(","))
|
|
205
206
|
].join(`
|
|
206
|
-
`),
|
|
207
|
-
A.href = URL.createObjectURL(
|
|
208
|
-
},
|
|
207
|
+
`), Se = new Blob([f], { type: "text/csv;charset=utf-8;" }), A = document.createElement("a");
|
|
208
|
+
A.href = URL.createObjectURL(Se), A.download = "data.csv", document.body.appendChild(A), A.click(), document.body.removeChild(A);
|
|
209
|
+
}, ne = D(() => {
|
|
209
210
|
const e = (i - 1) * l;
|
|
210
211
|
return x.slice(e, e + l);
|
|
211
|
-
}, [x, i, l]),
|
|
212
|
-
|
|
212
|
+
}, [x, i, l]), h = Math.ceil(x.length / l), re = (e) => {
|
|
213
|
+
P((t) => ({
|
|
213
214
|
key: e,
|
|
214
|
-
direction:
|
|
215
|
+
direction: t.key === e && t.direction === "asc" ? "desc" : "asc"
|
|
215
216
|
}));
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
const a = new Set(
|
|
217
|
+
}, ie = (e) => {
|
|
218
|
+
I((t) => {
|
|
219
|
+
const a = new Set(t);
|
|
219
220
|
return a.has(e) ? a.delete(e) : a.add(e), a;
|
|
220
221
|
});
|
|
221
|
-
},
|
|
222
|
-
w.size === p.length ?
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
const a = new Set(
|
|
222
|
+
}, se = () => {
|
|
223
|
+
w.size === p.length ? I(/* @__PURE__ */ new Set()) : I(new Set(p));
|
|
224
|
+
}, ae = (e) => {
|
|
225
|
+
V((t) => {
|
|
226
|
+
const a = new Set(t);
|
|
226
227
|
return a.has(e) ? a.delete(e) : a.add(e), a;
|
|
227
228
|
});
|
|
228
|
-
},
|
|
229
|
+
}, ce = (e) => {
|
|
229
230
|
v = e;
|
|
230
|
-
},
|
|
231
|
-
|
|
231
|
+
}, O = () => {
|
|
232
|
+
T(v);
|
|
232
233
|
}, y = {
|
|
233
234
|
thActive: {
|
|
234
|
-
backgroundColor:
|
|
235
|
-
color:
|
|
235
|
+
backgroundColor: B.colors.green,
|
|
236
|
+
color: B.colors.white
|
|
236
237
|
},
|
|
237
238
|
paginationButtonActive: {
|
|
238
|
-
backgroundColor:
|
|
239
|
-
color:
|
|
240
|
-
borderColor:
|
|
239
|
+
backgroundColor: B.colors.green,
|
|
240
|
+
color: B.colors.white,
|
|
241
|
+
borderColor: B.colors.green
|
|
241
242
|
},
|
|
242
243
|
paginationButtonDisabled: {
|
|
243
244
|
opacity: 0.5,
|
|
@@ -249,7 +250,7 @@ const Oe = ({
|
|
|
249
250
|
textAlign: "center",
|
|
250
251
|
marginTop: "10px"
|
|
251
252
|
}
|
|
252
|
-
},
|
|
253
|
+
}, le = s("div")({
|
|
253
254
|
backgroundColor: "#ffffff",
|
|
254
255
|
borderRadius: "8px",
|
|
255
256
|
boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
|
|
@@ -257,7 +258,7 @@ const Oe = ({
|
|
|
257
258
|
fontFamily: "Arial, sans-serif",
|
|
258
259
|
maxWidth: "100%",
|
|
259
260
|
overflow: "auto"
|
|
260
|
-
}),
|
|
261
|
+
}), de = s("div")({
|
|
261
262
|
display: "flex",
|
|
262
263
|
flexDirection: "column",
|
|
263
264
|
justifyContent: "space-between",
|
|
@@ -265,12 +266,12 @@ const Oe = ({
|
|
|
265
266
|
marginBottom: "20px",
|
|
266
267
|
flexWrap: "wrap",
|
|
267
268
|
gap: "9px"
|
|
268
|
-
}),
|
|
269
|
+
}), pe = s("div")({
|
|
269
270
|
display: "flex",
|
|
270
271
|
justifyContent: "space-between",
|
|
271
272
|
width: "100%",
|
|
272
273
|
alignItems: "center"
|
|
273
|
-
}),
|
|
274
|
+
}), he = s("h2")({
|
|
274
275
|
fontSize: "24px",
|
|
275
276
|
fontWeight: "bold",
|
|
276
277
|
color: "#000000",
|
|
@@ -282,12 +283,12 @@ const Oe = ({
|
|
|
282
283
|
gap: "15px",
|
|
283
284
|
alignItems: "center",
|
|
284
285
|
flexWrap: "wrap"
|
|
285
|
-
}),
|
|
286
|
+
}), ue = s("div")({
|
|
286
287
|
position: "relative",
|
|
287
288
|
display: "flex",
|
|
288
289
|
alignItems: "center",
|
|
289
290
|
flexGrow: 1
|
|
290
|
-
}),
|
|
291
|
+
}), xe = s(J)({
|
|
291
292
|
position: "absolute",
|
|
292
293
|
left: "13px",
|
|
293
294
|
top: "10px",
|
|
@@ -299,7 +300,7 @@ const Oe = ({
|
|
|
299
300
|
cursor: "pointer",
|
|
300
301
|
color: "#009200"
|
|
301
302
|
}
|
|
302
|
-
}),
|
|
303
|
+
}), ge = s("input")({
|
|
303
304
|
padding: "10px 15px 10px 40px",
|
|
304
305
|
border: "2px solid #e0e0e0",
|
|
305
306
|
borderRadius: "25px",
|
|
@@ -313,7 +314,7 @@ const Oe = ({
|
|
|
313
314
|
borderColor: "#009200",
|
|
314
315
|
boxShadow: "0 0 0 3px rgba(0, 146, 0, 0.1)"
|
|
315
316
|
}
|
|
316
|
-
}),
|
|
317
|
+
}), H = s("button")({
|
|
317
318
|
padding: "10px 15px",
|
|
318
319
|
border: "2px solid #009200",
|
|
319
320
|
borderRadius: "6px",
|
|
@@ -333,7 +334,7 @@ const Oe = ({
|
|
|
333
334
|
transform: "translateY(-1px)",
|
|
334
335
|
boxShadow: "0 4px 12px rgba(0, 146, 0, 0.3)"
|
|
335
336
|
}
|
|
336
|
-
}),
|
|
337
|
+
}), q = s("div")({
|
|
337
338
|
position: "absolute",
|
|
338
339
|
top: "100%",
|
|
339
340
|
right: 0,
|
|
@@ -346,7 +347,7 @@ const Oe = ({
|
|
|
346
347
|
minWidth: "200px",
|
|
347
348
|
maxHeight: "300px",
|
|
348
349
|
overflowY: "auto"
|
|
349
|
-
}),
|
|
350
|
+
}), W = s("div")({
|
|
350
351
|
padding: "12px 16px",
|
|
351
352
|
display: "flex",
|
|
352
353
|
alignItems: "center",
|
|
@@ -359,18 +360,18 @@ const Oe = ({
|
|
|
359
360
|
backgroundColor: "#f0f8f0",
|
|
360
361
|
color: "#005c00"
|
|
361
362
|
}
|
|
362
|
-
}),
|
|
363
|
+
}), $ = s("input")({
|
|
363
364
|
width: "16px",
|
|
364
365
|
height: "16px",
|
|
365
366
|
accentColor: "#009200"
|
|
366
|
-
}),
|
|
367
|
+
}), be = s("table")({
|
|
367
368
|
width: "100%",
|
|
368
369
|
borderCollapse: "collapse",
|
|
369
370
|
backgroundColor: "#ffffff",
|
|
370
371
|
borderRadius: "8px",
|
|
371
372
|
overflow: "hidden",
|
|
372
373
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
373
|
-
}),
|
|
374
|
+
}), Ce = s("th")({
|
|
374
375
|
backgroundColor: "#f8f9fa",
|
|
375
376
|
color: "#333333",
|
|
376
377
|
padding: "16px 12px",
|
|
@@ -387,16 +388,16 @@ const Oe = ({
|
|
|
387
388
|
backgroundColor: "#e8f5e8",
|
|
388
389
|
color: "#005c00"
|
|
389
390
|
}
|
|
390
|
-
}),
|
|
391
|
+
}), ye = s("td")({
|
|
391
392
|
padding: "14px 12px",
|
|
392
393
|
borderBottom: "1px solid #f0f0f0",
|
|
393
394
|
fontSize: "14px",
|
|
394
395
|
color: "#333333",
|
|
395
396
|
transition: "all 0.2s ease"
|
|
396
|
-
}),
|
|
397
|
+
}), me = s("span")({
|
|
397
398
|
marginLeft: "8px",
|
|
398
399
|
opacity: 0.6
|
|
399
|
-
}),
|
|
400
|
+
}), K = s("tr")(({ interactableRow: e }) => ({
|
|
400
401
|
transition: "all 0.2s ease",
|
|
401
402
|
...e && {
|
|
402
403
|
"&:focus, &:hover, &:focus-within": {
|
|
@@ -404,7 +405,7 @@ const Oe = ({
|
|
|
404
405
|
cursor: "pointer"
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
|
-
})),
|
|
408
|
+
})), we = s("div")({
|
|
408
409
|
display: "flex",
|
|
409
410
|
justifyContent: "center",
|
|
410
411
|
alignItems: "center",
|
|
@@ -429,48 +430,48 @@ const Oe = ({
|
|
|
429
430
|
opacity: 0.5,
|
|
430
431
|
cursor: "not-allowed"
|
|
431
432
|
}
|
|
432
|
-
}),
|
|
433
|
+
}), ke = s("div")({
|
|
433
434
|
fontSize: "14px",
|
|
434
435
|
color: "#666666",
|
|
435
436
|
textAlign: "center",
|
|
436
437
|
marginTop: "10px"
|
|
437
|
-
}),
|
|
438
|
+
}), Y = s("span")({
|
|
438
439
|
padding: "8px 4px",
|
|
439
440
|
color: "#666666",
|
|
440
441
|
fontSize: "14px"
|
|
441
442
|
});
|
|
442
|
-
return /* @__PURE__ */ c(
|
|
443
|
-
/* @__PURE__ */ c(
|
|
444
|
-
/* @__PURE__ */ c(
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ c(le, { children: [
|
|
444
|
+
/* @__PURE__ */ c(de, { children: [
|
|
445
|
+
/* @__PURE__ */ c(pe, { children: [
|
|
446
|
+
/* @__PURE__ */ o(he, { children: u }),
|
|
447
|
+
/* @__PURE__ */ o(ze, { onClick: te, children: "Export to CSV" })
|
|
447
448
|
] }),
|
|
448
449
|
/* @__PURE__ */ c(fe, { children: [
|
|
449
|
-
/* @__PURE__ */ c(
|
|
450
|
-
/* @__PURE__ */
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
-
|
|
450
|
+
/* @__PURE__ */ c(ue, { children: [
|
|
451
|
+
/* @__PURE__ */ o(xe, { onClick: O }),
|
|
452
|
+
/* @__PURE__ */ o(
|
|
453
|
+
ge,
|
|
453
454
|
{
|
|
454
455
|
type: "text",
|
|
455
456
|
placeholder: "Search...",
|
|
456
457
|
defaultValue: v,
|
|
457
|
-
onChange: (e) =>
|
|
458
|
+
onChange: (e) => ce(e.target.value),
|
|
458
459
|
onKeyDown: (e) => {
|
|
459
|
-
e.key === "Enter" &&
|
|
460
|
+
e.key === "Enter" && O();
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
463
|
)
|
|
463
464
|
] }),
|
|
464
465
|
/* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
|
|
465
|
-
/* @__PURE__ */ c(
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ c(H, { onClick: () => oe(!U), children: [
|
|
467
|
+
/* @__PURE__ */ o(J, { size: 16 }),
|
|
467
468
|
"Fields",
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ o(E, { size: 16 })
|
|
469
470
|
] }),
|
|
470
|
-
|
|
471
|
-
/* @__PURE__ */ c(
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
|
|
471
|
+
U && /* @__PURE__ */ c(q, { children: [
|
|
472
|
+
/* @__PURE__ */ c(W, { onClick: se, children: [
|
|
473
|
+
/* @__PURE__ */ o(
|
|
474
|
+
$,
|
|
474
475
|
{
|
|
475
476
|
type: "checkbox",
|
|
476
477
|
checked: w.size === p.length,
|
|
@@ -478,48 +479,48 @@ const Oe = ({
|
|
|
478
479
|
}
|
|
479
480
|
}
|
|
480
481
|
),
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
+
/* @__PURE__ */ o("span", { style: { fontWeight: "bold" }, children: "All" })
|
|
482
483
|
] }),
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
p.map((e) => /* @__PURE__ */ c(
|
|
485
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ o("div", { style: { height: "1px", backgroundColor: "#e0e0e0", margin: "4px 0" } }),
|
|
485
|
+
p.map((e) => /* @__PURE__ */ c(W, { onClick: () => ie(e), children: [
|
|
486
|
+
/* @__PURE__ */ o($, { type: "checkbox", checked: w.has(e), onChange: () => {
|
|
486
487
|
} }),
|
|
487
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ o("span", { children: r[e] || e })
|
|
488
489
|
] }, e))
|
|
489
490
|
] })
|
|
490
491
|
] }),
|
|
491
492
|
/* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
|
|
492
|
-
/* @__PURE__ */ c(
|
|
493
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ c(H, { onClick: () => ee(!F), children: [
|
|
494
|
+
/* @__PURE__ */ o(Ne, { size: 16 }),
|
|
494
495
|
"Columns",
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
+
/* @__PURE__ */ o(E, { size: 16 })
|
|
496
497
|
] }),
|
|
497
|
-
|
|
498
|
-
/* @__PURE__ */
|
|
498
|
+
F && /* @__PURE__ */ o(q, { children: p.map((e) => /* @__PURE__ */ c(W, { onClick: () => ae(e), children: [
|
|
499
|
+
/* @__PURE__ */ o($, { type: "checkbox", checked: L.has(e), onChange: () => {
|
|
499
500
|
} }),
|
|
500
|
-
|
|
501
|
-
/* @__PURE__ */
|
|
501
|
+
L.has(e) ? /* @__PURE__ */ o(We, { size: 16 }) : /* @__PURE__ */ o(Le, { size: 16 }),
|
|
502
|
+
/* @__PURE__ */ o("span", { children: r[e] || e })
|
|
502
503
|
] }, e)) })
|
|
503
504
|
] })
|
|
504
505
|
] })
|
|
505
506
|
] }),
|
|
506
|
-
/* @__PURE__ */ c(
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
|
|
507
|
+
/* @__PURE__ */ c(be, { children: [
|
|
508
|
+
/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ o(K, { interactableRow: !1, children: _.map((e) => /* @__PURE__ */ c(
|
|
509
|
+
Ce,
|
|
509
510
|
{
|
|
510
511
|
style: d.key === e ? y.thActive : {},
|
|
511
|
-
onClick: () =>
|
|
512
|
+
onClick: () => re(e),
|
|
512
513
|
children: [
|
|
513
514
|
r[e] || e,
|
|
514
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ o(me, { children: d.key === e ? d.direction === "asc" ? /* @__PURE__ */ o(G, { size: 16 }) : /* @__PURE__ */ o(E, { size: 16 }) : /* @__PURE__ */ o(G, { size: 16, style: { opacity: 0.313 } }) })
|
|
515
516
|
]
|
|
516
517
|
},
|
|
517
518
|
e
|
|
518
519
|
)) }) }),
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ o("tbody", { children: ne.map((e, t) => /* @__PURE__ */ o(K, { onClick: () => C && C(e), interactableRow: !!C, children: _.map((a) => /* @__PURE__ */ o(ye, { children: e[a] }, a)) }, t)) })
|
|
520
521
|
] }),
|
|
521
|
-
/* @__PURE__ */ c(
|
|
522
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ c(we, { children: [
|
|
523
|
+
/* @__PURE__ */ o(
|
|
523
524
|
k,
|
|
524
525
|
{
|
|
525
526
|
style: i === 1 ? y.paginationButtonDisabled : {},
|
|
@@ -530,22 +531,22 @@ const Oe = ({
|
|
|
530
531
|
),
|
|
531
532
|
(() => {
|
|
532
533
|
const e = [];
|
|
533
|
-
if (
|
|
534
|
-
for (let
|
|
534
|
+
if (h <= 5)
|
|
535
|
+
for (let t = 1; t <= h; t++)
|
|
535
536
|
e.push(
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ o(
|
|
537
538
|
k,
|
|
538
539
|
{
|
|
539
|
-
style: i ===
|
|
540
|
-
onClick: () => b(
|
|
541
|
-
children:
|
|
540
|
+
style: i === t ? y.paginationButtonActive : {},
|
|
541
|
+
onClick: () => b(t),
|
|
542
|
+
children: t
|
|
542
543
|
},
|
|
543
|
-
|
|
544
|
+
t
|
|
544
545
|
)
|
|
545
546
|
);
|
|
546
547
|
else {
|
|
547
548
|
e.push(
|
|
548
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ o(
|
|
549
550
|
k,
|
|
550
551
|
{
|
|
551
552
|
style: i === 1 ? y.paginationButtonActive : {},
|
|
@@ -554,45 +555,45 @@ const Oe = ({
|
|
|
554
555
|
},
|
|
555
556
|
1
|
|
556
557
|
)
|
|
557
|
-
), i > 3 && e.push(/* @__PURE__ */
|
|
558
|
-
const
|
|
559
|
-
for (let
|
|
558
|
+
), i > 3 && e.push(/* @__PURE__ */ o(Y, { children: "..." }, "ellipsis1"));
|
|
559
|
+
const t = Math.max(2, i - 1), a = Math.min(h - 1, i + 1);
|
|
560
|
+
for (let f = t; f <= a; f++)
|
|
560
561
|
e.push(
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ o(
|
|
562
563
|
k,
|
|
563
564
|
{
|
|
564
|
-
style: i ===
|
|
565
|
-
onClick: () => b(
|
|
566
|
-
children:
|
|
565
|
+
style: i === f ? y.paginationButtonActive : {},
|
|
566
|
+
onClick: () => b(f),
|
|
567
|
+
children: f
|
|
567
568
|
},
|
|
568
|
-
|
|
569
|
+
f
|
|
569
570
|
)
|
|
570
571
|
);
|
|
571
|
-
i <
|
|
572
|
-
/* @__PURE__ */
|
|
572
|
+
i < h - 2 && e.push(/* @__PURE__ */ o(Y, { children: "..." }, "ellipsis2")), h > 1 && e.push(
|
|
573
|
+
/* @__PURE__ */ o(
|
|
573
574
|
k,
|
|
574
575
|
{
|
|
575
|
-
style: i ===
|
|
576
|
-
onClick: () => b(
|
|
577
|
-
children:
|
|
576
|
+
style: i === h ? y.paginationButtonActive : {},
|
|
577
|
+
onClick: () => b(h),
|
|
578
|
+
children: h
|
|
578
579
|
},
|
|
579
|
-
|
|
580
|
+
h
|
|
580
581
|
)
|
|
581
582
|
);
|
|
582
583
|
}
|
|
583
584
|
return e;
|
|
584
585
|
})(),
|
|
585
|
-
/* @__PURE__ */
|
|
586
|
+
/* @__PURE__ */ o(
|
|
586
587
|
k,
|
|
587
588
|
{
|
|
588
|
-
style: i ===
|
|
589
|
-
onClick: () => b(Math.min(
|
|
590
|
-
disabled: i ===
|
|
589
|
+
style: i === h ? y.paginationButtonDisabled : {},
|
|
590
|
+
onClick: () => b(Math.min(h, i + 1)),
|
|
591
|
+
disabled: i === h,
|
|
591
592
|
children: "Next"
|
|
592
593
|
}
|
|
593
594
|
)
|
|
594
595
|
] }),
|
|
595
|
-
/* @__PURE__ */ c(
|
|
596
|
+
/* @__PURE__ */ c(ke, { children: [
|
|
596
597
|
"Showing ",
|
|
597
598
|
Math.min((i - 1) * l + 1, x.length),
|
|
598
599
|
" to",
|
|
@@ -605,5 +606,5 @@ const Oe = ({
|
|
|
605
606
|
] });
|
|
606
607
|
};
|
|
607
608
|
export {
|
|
608
|
-
|
|
609
|
+
qe as default
|
|
609
610
|
};
|
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.317",
|
|
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",
|