@hybr1d-tech/charizard 1.1.105 → 1.1.106
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/hybr1d-ui.js +31 -21
- package/dist/hybr1d-ui.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -9550,33 +9550,43 @@ S1.Item = Sm;
|
|
|
9550
9550
|
S1.DragHandle = Rm;
|
|
9551
9551
|
function Gm({ checkedState: e, setCheckedState: l, search: n }) {
|
|
9552
9552
|
const c = g.useMemo(() => {
|
|
9553
|
-
const
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9553
|
+
const i = {};
|
|
9554
|
+
let o = 0;
|
|
9555
|
+
return e.forEach((u) => {
|
|
9556
|
+
const m = u.group || "Ungrouped";
|
|
9557
|
+
m in i || (i[m] = o++);
|
|
9558
|
+
}), i;
|
|
9558
9559
|
}, [e]), t = g.useMemo(() => {
|
|
9559
|
-
const
|
|
9560
|
-
return
|
|
9561
|
-
const
|
|
9562
|
-
|
|
9560
|
+
const i = {};
|
|
9561
|
+
return e.forEach((o) => {
|
|
9562
|
+
const u = o.group || "Ungrouped";
|
|
9563
|
+
i[u] || (i[u] = []), i[u].push(o);
|
|
9564
|
+
}), i;
|
|
9565
|
+
}, [e]), s = g.useMemo(() => {
|
|
9566
|
+
const i = {};
|
|
9567
|
+
return Object.entries(t).forEach(([o, u]) => {
|
|
9568
|
+
const m = u.filter(
|
|
9569
|
+
(d) => d.label.toLowerCase().includes(n.toLowerCase())
|
|
9563
9570
|
);
|
|
9564
|
-
|
|
9565
|
-
}),
|
|
9566
|
-
}, [
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9571
|
+
m.length > 0 && (i[o] = m);
|
|
9572
|
+
}), i;
|
|
9573
|
+
}, [t, n]), r = g.useMemo(() => Object.entries(s).sort(([i], [o]) => {
|
|
9574
|
+
const u = c[i] ?? Number.MAX_VALUE, m = c[o] ?? Number.MAX_VALUE;
|
|
9575
|
+
return u - m;
|
|
9576
|
+
}), [s, c]);
|
|
9577
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: r.map(([i, o]) => /* @__PURE__ */ a.jsxs("div", { children: [
|
|
9578
|
+
/* @__PURE__ */ a.jsx("h3", { className: l2.groupTitle, children: i }),
|
|
9579
|
+
o.map((u) => /* @__PURE__ */ a.jsx("div", { className: l2.option, children: /* @__PURE__ */ a.jsx(
|
|
9570
9580
|
E1,
|
|
9571
9581
|
{
|
|
9572
|
-
label:
|
|
9573
|
-
id:
|
|
9574
|
-
checked:
|
|
9582
|
+
label: u.label,
|
|
9583
|
+
id: u.id,
|
|
9584
|
+
checked: u.checked,
|
|
9575
9585
|
setCheckedState: l,
|
|
9576
|
-
disabled:
|
|
9586
|
+
disabled: u.id === "name"
|
|
9577
9587
|
}
|
|
9578
|
-
) },
|
|
9579
|
-
] },
|
|
9588
|
+
) }, u.id))
|
|
9589
|
+
] }, i)) });
|
|
9580
9590
|
}
|
|
9581
9591
|
function Fm({
|
|
9582
9592
|
customColumnConfig: e,
|