@ai-matrx/records-ui 0.93.62 → 0.93.64
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/CHANGELOG.md +13 -3
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -3583,7 +3583,7 @@ declare function revokeConsequence(person: PortalPrincipal, portalTitle: string)
|
|
|
3583
3583
|
* THE LINE ABOVE A PREVIEW, and why it is not decoration.
|
|
3584
3584
|
*
|
|
3585
3585
|
* A preview a screen assembled for itself would be a second implementation of
|
|
3586
|
-
*
|
|
3586
|
+
* read access, and the first time the two disagreed nobody would know which one
|
|
3587
3587
|
* was lying. This one is the store's own answer to the store's own question, so
|
|
3588
3588
|
* the screen can say whose eyes these are and be right.
|
|
3589
3589
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3583,7 +3583,7 @@ declare function revokeConsequence(person: PortalPrincipal, portalTitle: string)
|
|
|
3583
3583
|
* THE LINE ABOVE A PREVIEW, and why it is not decoration.
|
|
3584
3584
|
*
|
|
3585
3585
|
* A preview a screen assembled for itself would be a second implementation of
|
|
3586
|
-
*
|
|
3586
|
+
* read access, and the first time the two disagreed nobody would know which one
|
|
3587
3587
|
* was lying. This one is the store's own answer to the store's own question, so
|
|
3588
3588
|
* the screen can say whose eyes these are and be right.
|
|
3589
3589
|
*/
|
package/dist/index.js
CHANGED
|
@@ -18617,15 +18617,19 @@ function Kanban({
|
|
|
18617
18617
|
}) {
|
|
18618
18618
|
const groupFields = useMemo31(() => [groupField], [groupField]);
|
|
18619
18619
|
const labels = useRecordLabels(groupFields);
|
|
18620
|
+
const options = useChoiceOptions(groupFields, isChoiceField(groupField) ? [groupField.key] : []).get(groupField.key);
|
|
18620
18621
|
const columns = useMemo31(() => {
|
|
18621
18622
|
const map = /* @__PURE__ */ new Map();
|
|
18623
|
+
const order = (options ?? []).map((o) => o.label);
|
|
18624
|
+
for (const label of order) map.set(label, []);
|
|
18622
18625
|
for (const row of rows) {
|
|
18623
18626
|
const raw = (row.document ?? {})[groupField.key];
|
|
18624
18627
|
const key = raw === null || raw === void 0 || raw === "" ? "No value" : scalarText(groupField, raw, labels);
|
|
18625
18628
|
map.set(key, [...map.get(key) ?? [], row]);
|
|
18626
18629
|
}
|
|
18627
|
-
|
|
18628
|
-
|
|
18630
|
+
const rank = (name) => name === "No value" ? Number.MAX_SAFE_INTEGER : order.includes(name) ? order.indexOf(name) : order.length;
|
|
18631
|
+
return [...map.entries()].sort((a, b) => rank(a[0]) - rank(b[0]) || a[0].localeCompare(b[0]));
|
|
18632
|
+
}, [rows, groupField, labels, options]);
|
|
18629
18633
|
return /* @__PURE__ */ jsxs56("div", { className: "flex min-h-0 flex-col gap-2", children: [
|
|
18630
18634
|
/* @__PURE__ */ jsx64(Note, { children: note }),
|
|
18631
18635
|
/* @__PURE__ */ jsx64("div", { className: "flex min-h-0 gap-2 overflow-x-auto pb-2", children: columns.map(([name, cards]) => /* @__PURE__ */ jsxs56("section", { className: "flex w-64 shrink-0 flex-col rounded border bg-muted/30", children: [
|