@ai-matrx/records-ui 0.115.37 → 0.115.38

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/index.js CHANGED
@@ -34862,6 +34862,9 @@ function packRows(bars) {
34862
34862
  return { ...bar, row };
34863
34863
  });
34864
34864
  }
34865
+ function shortDay(day2) {
34866
+ return dayAt(day2).toLocaleDateString(void 0, { month: "short", day: "numeric" });
34867
+ }
34865
34868
  function windowStart(anchor, zoom, firstDay) {
34866
34869
  const from = dayAt(addDays(anchor, -WINDOW[zoom].lead));
34867
34870
  if (zoom === "day" || zoom === "week") from.setDate(from.getDate() - daysSinceWeekStart(from.getDay(), firstDay));
@@ -35199,7 +35202,7 @@ function TimelineView({
35199
35202
  try {
35200
35203
  const make = async (current, key, label) => {
35201
35204
  if (current) return current.key;
35202
- const made = await knobClient.fieldDeclare({ table_id: tableId, spec: { key, label, type: "date" } });
35205
+ const made = await knobClient.fieldDeclare({ table_id: tableId, spec: { key, label, type: "datetime", kind: "date" } });
35203
35206
  if (!made.ok) {
35204
35207
  moves.say(refusalSentence(made.error));
35205
35208
  return null;
@@ -35720,8 +35723,8 @@ function TimelineView({
35720
35723
  const slip = slipDays(baselineOf(b.p.row)?.last ?? null, at.last);
35721
35724
  return /* @__PURE__ */ jsxs109("div", { "data-timeline-list-row": b.p.row.id, className: "flex items-center gap-1 px-1.5 text-xs", style: { height: ROW_PX }, children: [
35722
35725
  /* @__PURE__ */ jsx120("button", { type: "button", className: "min-w-0 flex-1 truncate text-left hover:underline", onClick: () => onOpenRecord?.(b.p.row.id), children: titleOf(b.p.row) }),
35723
- /* @__PURE__ */ jsx120("span", { className: "w-12 shrink-0 tabular-nums text-muted-foreground", children: calendarDayLabel(at.first) }),
35724
- /* @__PURE__ */ jsx120("span", { className: "w-12 shrink-0 tabular-nums text-muted-foreground", children: calendarDayLabel(at.last) }),
35726
+ /* @__PURE__ */ jsx120("span", { className: "w-12 shrink-0 whitespace-nowrap tabular-nums text-muted-foreground", children: shortDay(at.first) }),
35727
+ /* @__PURE__ */ jsx120("span", { className: "w-12 shrink-0 whitespace-nowrap tabular-nums text-muted-foreground", children: shortDay(at.last) }),
35725
35728
  /* @__PURE__ */ jsxs109("span", { className: "w-14 shrink-0 text-right tabular-nums", title: slip !== null ? slipWords(slip) : void 0, children: [
35726
35729
  daysBetween(at.first, at.last) + 1,
35727
35730
  "d",