@ai-matrx/records-ui 0.109.4 → 0.109.5

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.109.5
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.109.4..npm/records-ui/v0.109.5 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.109.4
4
10
  ### lane TABLE-EDITING-EDGES
5
11
 
package/dist/index.cjs CHANGED
@@ -4288,7 +4288,7 @@ function ReferenceBuilder({
4288
4288
  ] }) }),
4289
4289
  target && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
4290
4290
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_design_system10.Label, { className: "text-xs", children: "It will read" }),
4291
- preview.loading ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "Reading a few of its records\u2026" }) : (preview.data?.rows.length ?? 0) === 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "That table has no records yet, so there is nothing to show here \u2014 this column will still work, and the first record added is the first thing it offers." }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("ul", { className: "flex flex-col gap-0.5", children: (preview.data?.rows ?? []).map((row) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("li", { className: "truncate text-[11px] text-foreground", children: previewWords(
4291
+ preview.loading ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "Reading a few of its records\u2026" }) : (preview.data?.rows?.length ?? 0) === 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "That table has no records yet, so there is nothing to show here \u2014 this column will still work, and the first record added is the first thing it offers." }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("ul", { className: "flex flex-col gap-0.5", children: (preview.data?.rows ?? []).map((row) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("li", { className: "truncate text-[11px] text-foreground", children: previewWords(
4292
4292
  row.document,
4293
4293
  display,
4294
4294
  titleField
@@ -24944,7 +24944,7 @@ function GridBody({
24944
24944
  }
24945
24945
  ) : null,
24946
24946
  question.refused.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { role: "status", "data-records-filter-refused": "", className: "text-xs text-muted-foreground", children: question.refused.join(" ") }) : null,
24947
- storePaged && (serverRead.data?.sortIgnored.length ?? 0) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { role: "status", "data-records-sort-ignored": serverRead.data?.sortIgnored.join(" "), className: "text-xs text-muted-foreground", children: "Sort skipped: column not available" }) : null,
24947
+ storePaged && sortIgnoredOf(serverRead.data).length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { role: "status", "data-records-sort-ignored": sortIgnoredOf(serverRead.data).join(" "), className: "text-xs text-muted-foreground", children: "Sort skipped: column not available" }) : null,
24948
24948
  runner.outcome && !(merged && runner.outcome.kind === "ran" && runner.outcome.undo !== null) ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ActionOutcomeNotice, { outcome: runner.outcome, onUndo: () => void runner.undo(), onDismiss: runner.dismiss }) : null,
24949
24949
  duplicated ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("p", { role: "status", "data-records-duplicated": "", className: "flex items-center gap-2 rounded border border-border bg-muted/40 px-2 py-1 text-xs", children: [
24950
24950
  /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: duplicated }),
@@ -25346,6 +25346,9 @@ function withoutGoneColumns(query, liveKeys, openingSort) {
25346
25346
  const fallback = openingSort && liveKeys.has(openingSort.id) ? openingSort : null;
25347
25347
  return { ...query, sort: sortGone ? fallback : query.sort, columnFilters, page: 1 };
25348
25348
  }
25349
+ function sortIgnoredOf(answer) {
25350
+ return Array.isArray(answer?.sortIgnored) ? answer.sortIgnored : [];
25351
+ }
25349
25352
 
25350
25353
  // src/RecordsTableCard.tsx
25351
25354
  var import_data_table15 = require("@ai-matrx/design-system/data-table");
@@ -26781,7 +26784,7 @@ function columnFromName(label) {
26781
26784
  if (has(/\b(type|category|kind|tier|plan|platform|channel|source|level)\b/)) return { label, type: "select" };
26782
26785
  if (has(/\b(time|at|scheduled|starts|ends|appointment)\b/) && !has(/\b(date|day)\b/)) return { label, type: "datetime" };
26783
26786
  if (has(/\b(date|day|birthday|deadline|due|dob|born|joined|since|until|start|end|published|posted)\b/)) return { label, type: "date" };
26784
- if (has(/\b(price|cost|amount|revenue|budget|fee|fees|salary|paid|invoice|total|spend|value|rate card|mrr|arr)\b|\$/)) return { label, type: "currency" };
26787
+ if (has(/\b(price|cost|amount|revenue|budget|fee|fees|salary|paid|total|spend|value|rate card|mrr|arr)\b|\$/)) return { label, type: "currency" };
26785
26788
  if (has(/%|\b(percent|percentage|rate|ratio|margin|completion)\b/)) return { label, type: "percent" };
26786
26789
  if (has(/\b(count|qty|quantity|number of|age|score|hours|minutes|units|followers|views|likes|stars|rating|points|#)\b|^#|^no\.? /)) return { label, type: "number" };
26787
26790
  if (has(/\b(done|completed|approved|active|signed|confirmed)\b/)) return { label, type: "checkbox" };