@ai-matrx/records-ui 0.116.119 → 0.116.121

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,9 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.116.121
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the package-input comparison could not be made (git diff 2a305be7c5..bc1fc5c3ce failed (commit not in this checkout)). Whether package inputs changed is unknown; consumer action is unknown.
6
+ Check: `git diff 2a305be7c5 bc1fc5c3ce -- apps/shared/records-ui`
7
+
8
+ ## 0.116.120
9
+
10
+ - Tags the Grid current cell, the row-action editor (and each step formula) and the table details draft/description with `data-surface-value` so agent writes show their place on screen. Attributes only; no API change. Consumer action: none.
11
+
3
12
  ## 0.116.119
4
13
 
5
- UNVERIFIED: this release has no Unreleased entry and the package-input comparison could not be made (the caller supplied no source comparison). Whether package inputs changed is unknown; consumer action is unknown.
6
- Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui`.
14
+ - New light entry `@ai-matrx/records-ui/decision-gate`: `DecisionGate` and the pure decision-spec helpers (read a `decision` spec off a run's question, say what still blocks it, build the resume body), moved here from matrx-frontend so the main app and workflow-studio draw the same human gate. Suggested answers show in full and "Confirm all" confirms every untouched suggestion in one click. The `check-light-entries` guard and `tsup.config.ts` now include the new entry; no existing export changed. Consumer action: none required; import from `@ai-matrx/records-ui/decision-gate` to replace any local copy of the decision gate.
7
15
 
8
16
  ## 0.116.118
9
17
 
@@ -52,7 +52,7 @@ function skeletonColumnsFor(groups, pageSize) {
52
52
  import { createContext, useContext, useMemo, useSyncExternalStore } from "react";
53
53
  import { cn } from "@ai-matrx/design-system/cn";
54
54
  import { Skeleton } from "@ai-matrx/design-system/skeleton";
55
- import { MatrxDataTable } from "@ai-matrx/design-system/data-table";
55
+ import { MatrxDataTable } from "@ai-matrx/design-system/data-table/lazy";
56
56
 
57
57
  // src/rememberedRows.ts
58
58
  var PREFIX = "records-ui:rows:";
@@ -304,4 +304,4 @@ export {
304
304
  RecordsSkeleton,
305
305
  TablePageSkeleton
306
306
  };
307
- //# sourceMappingURL=chunk-ESOQXQAE.js.map
307
+ //# sourceMappingURL=chunk-7J7AUZ25.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/skeletonLayout.ts","../src/RecordsSkeleton.tsx","../src/rememberedRows.ts"],"sourcesContent":["// src/skeletonLayout.ts — @ai-matrx/records-ui · the skeleton's layout words, with no React\n//\n// Pure, so `/helpers` carries `skeletonLayoutFor` and a host can choose a loading frame before it\n// loads any screen (records-ui front door, 2026-10-16). `RecordsSkeleton.tsx` re-exports all of it.\n\n/** Every place a records surface shows while its first read is out. */\nexport type RecordsSkeletonLayout =\n | \"grid\"\n | \"kanban\"\n | \"gallery\"\n | \"list\"\n | \"calendar\"\n | \"timeline\"\n | \"map\"\n | \"orgchart\"\n | \"pivot\"\n | \"swipe\"\n | \"form\"\n | \"record\"\n | \"chart\"\n | \"home\";\n\nexport const RECORDS_SKELETON_LAYOUTS: readonly RecordsSkeletonLayout[] = [\n \"grid\",\n \"kanban\",\n \"gallery\",\n \"list\",\n \"calendar\",\n \"timeline\",\n \"map\",\n \"orgchart\",\n \"pivot\",\n \"swipe\",\n \"form\",\n \"record\",\n \"chart\",\n \"home\",\n];\n\n/** A layout word the address or a view carries, as the skeleton that stands for it. */\nexport function skeletonLayoutFor(layout: string | null | undefined): RecordsSkeletonLayout {\n if (layout === \"board\" || layout === \"pipeline\") return \"kanban\";\n return (RECORDS_SKELETON_LAYOUTS as readonly string[]).includes(layout ?? \"\")\n ? (layout as RecordsSkeletonLayout)\n : \"grid\";\n}\n\n/**\n * THE GEOMETRY OF AN EMBEDDED GRID, MEASURED ON A LIVE SPACES PAGE (lane SKELETON-HEIGHT, 2026-10-17).\n * A loading frame that is not the loaded frame moves everything under it when the rows land. The\n * embedded grid is: a 12px wrap (the body's 4px padding twice plus its 4px gap), the data table's 36px\n * header, one 37px row per record, and the footer line (44.5px: the add-row line) when there is a row.\n * Pure numbers, so a host can size a frame before it loads any screen.\n */\nexport const EMBEDDED_ROW_PX = 37;\nexport const EMBEDDED_HEADER_PX = 36;\nexport const EMBEDDED_FOOTER_PX = 44.5;\nexport const EMBEDDED_WRAP_PX = 12;\n/** An embedded table reads this many rows at a time (the same number as `EMBEDDED_PAGE_SIZE`, firstPage.ts; a test holds them equal). */\nexport const SKELETON_EMBEDDED_PAGE_ROWS = 50;\n/** A full page's grid reads this many rows at a time (the page's own `pageSize`). */\nexport const SKELETON_PAGE_ROWS = 100;\n\n/**\n * THE ROWS A LOADING FRAME DRAWS WHEN THE SERVER KNOWS HOW MANY THE PERSON SEES: min(rows, page size).\n * `rowsVisible` is the count the store gave (`custom.where_id_opens` / the table bundle: the caller's own\n * visible rows, capped), `pageSize` the rows the surface reads first. Null/undefined/invalid = not known.\n */\nexport function skeletonRowsFor(rowsVisible: number | null | undefined, pageSize: number): number | null {\n if (typeof rowsVisible !== \"number\" || !Number.isFinite(rowsVisible) || rowsVisible < 0) return null;\n return Math.min(Math.floor(rowsVisible), pageSize);\n}\n\n/** The height (px) of an embedded grid's body with `rows` rows drawn: the loaded body's own height. */\nexport function embeddedGridBodyPx(rows: number): number {\n return EMBEDDED_WRAP_PX + EMBEDDED_HEADER_PX + EMBEDDED_ROW_PX * rows + (rows > 0 ? EMBEDDED_FOOTER_PX : 0);\n}\n\n/**\n * THE CARDS EACH BOARD COLUMN DRAWS WHEN THE SERVER KNOWS THEM (lane SKELETON-HEIGHT-2): the store's\n * per-group counts (`opening_view.groups`), each min(cards, page size). Null = not known (empty or invalid),\n * so the board skeleton keeps its stand-in columns. A column with no card still draws (its header).\n */\nexport function skeletonColumnsFor(groups: readonly number[] | null | undefined, pageSize: number): number[] | null {\n if (!Array.isArray(groups) || groups.length === 0) return null;\n const out: number[] = [];\n for (const g of groups) {\n if (typeof g !== \"number\" || !Number.isFinite(g) || g < 0) return null;\n out.push(Math.min(Math.floor(g), pageSize));\n }\n return out;\n}\n","/**\n * THE LOADING FRAME OF EVERY RECORDS SURFACE (lane STABLE-TABLES).\n *\n * Arman, 2026-10-06: \"The tables do not properly show a loading state so they are jumpy … They\n * must properly show skeletons and they should not cause shifts … all must have proper loading,\n * empty state, etc.\" Measured before this file: a table page went route placeholder → a line of\n * text → a 160px gray box → a grid frame with 23px rows and its footer under them → the real grid\n * with 35px rows and its footer 580px lower. Four frames, four geometries.\n *\n * ONE skeleton per surface, chosen by a named option, drawn in the frame the loaded surface uses:\n * · the toolbar row is the page's own toolbar row (`TABLE_TOOLBAR_ROW_CLASS`), at its height;\n * · `grid` is the data table itself in its loading state — the same header, the same row\n * height, the same pinned footer — so its geometry is the loaded grid's by construction;\n * · `kanban`, `gallery`, `list`, `calendar`, `timeline` paint their columns, cards, rows or\n * cells where the loaded layout puts them;\n * · `form` and `record` paint the field stack and the body; `chart` reserves the chart's box.\n *\n * THE COUNT WHEN NOBODY KNOWS IT. A page frame fills to its edge (Airtable's rule: the grid never\n * starts short and grows); an embedded frame paints the rows the table had last time, else five\n * (Notion's inline database paints a short run) — see `rememberedRows.ts`.\n *\n * Hosts never style a placeholder of their own: they render this, with a layout.\n */\n\nimport { createContext, useContext, useMemo, useSyncExternalStore, type ReactNode } from \"react\";\nimport { cn } from \"@ai-matrx/design-system/cn\";\nimport { Skeleton } from \"@ai-matrx/design-system/skeleton\";\nimport { MatrxDataTable } from \"@ai-matrx/design-system/data-table/lazy\";\nimport type { MatrxColumnDef } from \"@ai-matrx/design-system/data-table/types\";\n\nimport { EMBEDDED_PLAIN_FOOTER_CLASS, EMBEDDED_TABLE_CLASS } from \"./embeddedLook\";\nimport { rememberedLayout, rememberedRowCount } from \"./rememberedRows\";\nimport {\n EMBEDDED_FOOTER_PX,\n EMBEDDED_ROW_PX,\n EMBEDDED_WRAP_PX,\n SKELETON_EMBEDDED_PAGE_ROWS,\n SKELETON_PAGE_ROWS,\n skeletonLayoutFor,\n skeletonColumnsFor,\n skeletonRowsFor,\n type RecordsSkeletonLayout,\n} from \"./skeletonLayout\";\n\n// The layout words and their chooser are pure, so `/helpers` carries them too (records-ui front door, 2026-10-16).\nexport {\n EMBEDDED_FOOTER_PX,\n EMBEDDED_HEADER_PX,\n EMBEDDED_ROW_PX,\n EMBEDDED_WRAP_PX,\n RECORDS_SKELETON_LAYOUTS,\n SKELETON_EMBEDDED_PAGE_ROWS,\n SKELETON_PAGE_ROWS,\n embeddedGridBodyPx,\n skeletonColumnsFor,\n skeletonLayoutFor,\n skeletonRowsFor,\n type RecordsSkeletonLayout,\n} from \"./skeletonLayout\";\n\ninterface Expected {\n rows: number | null;\n /** A board's cards per column (the store's opening view): a board skeleton draws these columns. */\n groups: number[] | null;\n}\nconst ExpectedRowsContext = createContext<Expected>({ rows: null, groups: null });\n\n/**\n * HOW MANY ROWS THE SERVER SAYS THIS PERSON SEES (lane SKELETON-HEIGHT). A host that knows the count\n * before the table loads (`rows_visible` from the store's `where_id_opens` / table bundle) wraps the table in\n * this; every loading frame below — the skeleton, the page skeleton, the grid's own first frame — then paints\n * min(rows, its page size) rows, the height the loaded table will have, and nothing under it moves.\n * `groups` (lane SKELETON-HEIGHT-2) is the cards each board column holds (`opening_view.groups`): a board's\n * skeleton then draws that many columns, each min(cards, page size) tall; a gallery's draws `rows` cards.\n */\nexport function ExpectedRows({ rows, groups, children }: { rows: number | null | undefined; groups?: readonly number[] | null | undefined; children: ReactNode }) {\n const value = useMemo<Expected>(\n () => ({ rows: typeof rows === \"number\" && rows >= 0 ? rows : null, groups: skeletonColumnsFor(groups, Number.MAX_SAFE_INTEGER) }),\n [rows, groups],\n );\n return <ExpectedRowsContext.Provider value={value}>{children}</ExpectedRowsContext.Provider>;\n}\n\n/** The rows a loading frame draws from what the host said it knows (null = nobody told it). */\nexport function useExpectedRows(embedded: boolean): number | null {\n return skeletonRowsFor(useContext(ExpectedRowsContext).rows, embedded ? SKELETON_EMBEDDED_PAGE_ROWS : SKELETON_PAGE_ROWS);\n}\n\n/** The cards each board column draws (page size capped), or null when the host did not say. */\nexport function useExpectedColumns(embedded: boolean): number[] | null {\n return skeletonColumnsFor(useContext(ExpectedRowsContext).groups, embedded ? SKELETON_EMBEDDED_PAGE_ROWS : SKELETON_PAGE_ROWS);\n}\n\nconst NEVER = () => () => {};\n\n/**\n * THE ROWS A TABLE PAGE PAINTED LAST VISIT, for a frame drawn before the table is known (the\n * route's own loading frame, the page's first-read frame). The server render and the first client\n * paint agree (\"fill\"); a browser that remembers the table then settles on its count with no\n * hydration mismatch. The key is the one the grid writes (`<tableId>:page:last`).\n */\nexport function useRememberedPageRows(tableId: string | undefined): number | \"fill\" {\n return useSyncExternalStore(\n NEVER,\n () => (tableId ? rememberedRowCount(`${tableId}:page:last`, 100, \"fill\" as const) : \"fill\"),\n () => \"fill\" as const,\n );\n}\n\n/**\n * THE LAYOUT A TABLE PAGE SETTLED ON LAST VISIT (null before a browser remembers one, and on the\n * server). Server render and first client paint agree (null); a browser that remembers the table\n * then settles on its layout with no hydration mismatch.\n */\nexport function useRememberedLayout(tableId: string | undefined): string | null {\n return useSyncExternalStore(\n NEVER,\n () => (tableId ? rememberedLayout(tableId) : null),\n () => null,\n );\n}\n\n/** The box a map or an org chart reserves from the first frame: the skeleton and the loaded layout share it. */\nexport const SPATIAL_LAYOUT_BOX = \"h-[60vh] min-h-[22rem]\";\n\n/**\n * THE TABLE PAGE'S TOOLBAR ROW — one class for the loaded row and its skeleton, so the two are\n * the same height from the first frame. The row holds tap buttons and tap groups, whose footprint is\n * the design system's tap box (38px: the 32px pill plus its gap), so the row is that tall before the\n * toolbar mounts — at 32px the first paint was 6px short and the whole grid moved down when the\n * toolbar's controls arrived (CLS on /data/<table>, admin and member alike). A chip that arrives\n * later can never make it taller or shorter.\n */\nexport const TABLE_TOOLBAR_ROW_CLASS =\n \"flex min-h-[var(--matrx-tap-box,2.375rem)] min-w-0 shrink-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\";\n\n/** The table page's frame: the same two boxes `TablePage` draws round its toolbar and records. */\nexport const TABLE_PAGE_FRAME_CLASS = \"flex h-full min-h-0 gap-4\";\nexport const TABLE_PAGE_COLUMN_CLASS = \"flex min-h-0 min-w-0 flex-1 flex-col gap-2\";\n\ntype Row = { id: string };\nconst PLACEHOLDER_COLUMNS: MatrxColumnDef<Row>[] = [\"a\", \"b\", \"c\", \"d\", \"e\", \"f\"].map((id) => ({\n id,\n header: \"\",\n accessorFn: () => \"\",\n}));\nconst NO_ROWS: Row[] = [];\n\n/**\n * THE GRID'S SKELETON IS THE GRID. The data table in its loading state, with the records grid's\n * own row height (35px: the condensed row round its 32px action strip), header and footer.\n */\nfunction GridSkeleton({ embedded, rows }: { embedded: boolean; rows: number | \"fill\" }) {\n const table = (\n <MatrxDataTable<Row>\n {...(embedded ? {} : { className: \"min-h-0 flex-1\" })}\n data={NO_ROWS}\n columns={PLACEHOLDER_COLUMNS}\n getRowId={(r) => r.id}\n isLoading\n density=\"condensed\"\n loadingRowHeight={embedded ? EMBEDDED_ROW_PX : RECORDS_GRID_ROW_PX}\n hideToolbar\n viewTabs={false}\n stickyHeader\n frameHeight={embedded ? \"content\" : \"fill\"}\n loadingRows={rows}\n copy={false}\n {...(embedded\n ? {\n appearance: \"embedded\" as const,\n hidePagination: true,\n tableClassName: cn(EMBEDDED_TABLE_CLASS, EMBEDDED_PLAIN_FOOTER_CLASS),\n }\n : {})}\n />\n );\n if (!embedded) return table;\n // The loaded embedded grid: the body's wrap (6px above and below) and, once there is a row, the add-row footer.\n return (\n <div style={{ paddingBlock: EMBEDDED_WRAP_PX / 2 }} data-records-skeleton-part=\"embedded-grid\">\n {table}\n {rows === \"fill\" || rows > 0 ? <div style={{ height: EMBEDDED_FOOTER_PX }} data-records-skeleton-part=\"footer\" /> : null}\n </div>\n );\n}\n\n/** A chart block's plot height (`ChartBlock`'s HEIGHT): the box a chart skeleton reserves. */\nexport const CHART_PLOT_PX = 140;\n\n/** The records grid's row: condensed, round the 32px row action strip, plus its rule. */\nexport const RECORDS_GRID_ROW_PX = 35;\n\nfunction Cards({ count, className }: { count: number; className: string }) {\n return (\n <>\n {Array.from({ length: count }, (_, i) => (\n <Skeleton key={i} shape=\"block\" className={className} />\n ))}\n </>\n );\n}\n\nfunction BodySkeleton({ layout, embedded, rows, columns, known }: { layout: RecordsSkeletonLayout; embedded: boolean; rows: number | \"fill\"; columns?: number[] | null; known?: number | \"fill\" | undefined }) {\n const lineCount = rows === \"fill\" ? 12 : rows;\n switch (layout) {\n case \"grid\":\n case \"home\":\n return <GridSkeleton embedded={embedded} rows={rows} />;\n case \"kanban\":\n return (\n <div className=\"flex min-h-0 flex-1 gap-2 overflow-hidden pb-2\" data-records-skeleton-part=\"body\">\n {(columns ?? [3, 2, 3, 2]).map((cards, c) => (\n <div key={c} className=\"flex w-64 shrink-0 flex-col gap-2 rounded-lg bg-muted/40 p-2\" data-records-skeleton-part=\"column\">\n <Skeleton shape=\"line\" width=\"1/2\" className=\"my-1.5\" />\n <Cards count={cards} className=\"h-24\" />\n </div>\n ))}\n </div>\n );\n case \"gallery\":\n return (\n <div\n className=\"grid min-h-0 flex-1 auto-rows-min grid-cols-[repeat(auto-fill,minmax(14rem,1fr))] gap-3 overflow-hidden\"\n data-records-skeleton-part=\"body\"\n >\n <Cards count={typeof known === \"number\" ? known : 8} className=\"h-48\" />\n </div>\n );\n case \"list\":\n return (\n <div className=\"flex min-h-0 flex-1 flex-col overflow-hidden\" data-records-skeleton-part=\"body\">\n {Array.from({ length: lineCount }, (_, i) => (\n <div key={i} className=\"flex h-9 items-center gap-3 border-b border-border/60 px-2\">\n <Skeleton className=\"size-4\" />\n <Skeleton shape=\"line\" width={i % 3 === 0 ? \"1/2\" : i % 3 === 1 ? \"2/3\" : \"1/3\"} />\n </div>\n ))}\n </div>\n );\n case \"calendar\":\n return (\n <div className=\"flex min-h-0 flex-1 flex-col gap-2 overflow-hidden\" data-records-skeleton-part=\"body\">\n <div className=\"grid grid-cols-7 gap-px\">\n {Array.from({ length: 7 }, (_, i) => (\n <Skeleton key={i} shape=\"line\" width=\"1/3\" className=\"mx-auto my-1\" />\n ))}\n </div>\n <div className=\"grid flex-1 grid-cols-7 grid-rows-5 gap-px overflow-hidden rounded-md border border-border bg-border\">\n {Array.from({ length: 35 }, (_, i) => (\n <div key={i} className=\"bg-card p-1.5\">\n <Skeleton shape=\"line\" width=\"1/3\" />\n </div>\n ))}\n </div>\n </div>\n );\n case \"timeline\":\n return (\n <div className=\"flex min-h-0 flex-1 flex-col overflow-hidden rounded-md border border-border\" data-records-skeleton-part=\"body\">\n <div className=\"flex h-9 items-center gap-6 border-b border-border px-3\">\n {Array.from({ length: 6 }, (_, i) => (\n <Skeleton key={i} shape=\"line\" width=\"sm\" className=\"w-16\" />\n ))}\n </div>\n {Array.from({ length: Math.min(lineCount, 8) }, (_, i) => (\n <div key={i} className=\"flex h-10 items-center border-b border-border/60 px-3\">\n <Skeleton className=\"h-6 rounded-md\" style={{ marginLeft: `${(i * 13) % 45}%`, width: `${20 + ((i * 7) % 25)}%` }} />\n </div>\n ))}\n </div>\n );\n case \"pivot\":\n // The box the pivot layout reserves (`PIVOT_BOX`, PivotLayout.tsx): the skeleton and the loaded table share it.\n return <Skeleton className=\"min-h-[16rem] w-full rounded-md\" data-records-skeleton-part=\"body\" />;\n case \"map\":\n case \"orgchart\":\n case \"swipe\":\n // The same box the loaded layout reserves (`SPATIAL_LAYOUT_BOX`), so nothing moves when it lands.\n return <Skeleton className={`w-full rounded-md ${SPATIAL_LAYOUT_BOX}`} data-records-skeleton-part=\"body\" />;\n case \"record\":\n // THE RECORD PAGE'S OWN GEOMETRY (STABLE-2, field list moved down on landing): RecordPanel's header\n // is a 32px title, an actions row (38px), a rule, then the field list — each `gap-2` apart; the\n // field rows are 28px with 2px between. Same boxes here, so the first field is at the same y\n // whether the record has landed or not.\n return (\n <div className=\"flex min-h-0 flex-1 flex-col gap-2 overflow-hidden\" data-records-skeleton-part=\"body\">\n <Skeleton shape=\"title\" width=\"1/2\" className=\"h-8\" data-records-skeleton-part=\"title\" />\n <div className=\"flex h-[38px] items-center gap-2\" data-records-skeleton-part=\"actions\">\n <Skeleton shape=\"control\" width=\"sm\" className=\"h-8\" />\n <Skeleton shape=\"control\" width=\"sm\" className=\"h-8\" />\n </div>\n <div className=\"h-px w-full shrink-0 bg-border\" />\n <div className=\"grid grid-cols-[minmax(6rem,12rem)_1fr] gap-x-3 gap-y-0.5\" data-records-skeleton-part=\"fields\">\n {Array.from({ length: 6 }, (_, i) => (\n <div key={i} className=\"contents\">\n <Skeleton shape=\"line\" width=\"2/3\" className=\"my-[7px]\" />\n <Skeleton shape=\"row\" className=\"h-7\" />\n </div>\n ))}\n </div>\n <Skeleton shape=\"block\" height=\"lg\" />\n </div>\n );\n case \"form\":\n return (\n <div className=\"flex min-h-0 flex-1 flex-col gap-4 overflow-hidden\" data-records-skeleton-part=\"body\">\n <Skeleton shape=\"title\" width=\"1/2\" />\n <div className=\"grid grid-cols-[minmax(6rem,12rem)_1fr] gap-x-3 gap-y-1.5\">\n {Array.from({ length: 6 }, (_, i) => (\n <div key={i} className=\"contents\">\n <Skeleton shape=\"line\" width=\"2/3\" className=\"my-1.5\" />\n <Skeleton shape=\"row\" className=\"h-7\" />\n </div>\n ))}\n </div>\n <Skeleton shape=\"control\" width=\"sm\" />\n </div>\n );\n case \"chart\":\n // The chart's box: its title line, then the plot at the plot's own height (`CHART_PLOT_PX`).\n return (\n <div className=\"flex flex-col gap-2\" data-records-skeleton-part=\"body\">\n {embedded ? null : <Skeleton shape=\"line\" width=\"1/3\" />}\n <Skeleton shape=\"block\" style={{ height: CHART_PLOT_PX }} />\n </div>\n );\n }\n}\n\nexport interface RecordsSkeletonProps {\n /** Which surface is coming. Default `grid`. */\n layout?: RecordsSkeletonLayout;\n /** Inside a page (a Spaces block): no frame, the data table's embedded look, content height. */\n embedded?: boolean;\n /** Rows to paint; default — page: to the frame's edge, embedded: five. */\n rows?: number | \"fill\";\n /** The table this page is for: a page frame then paints the rows that table showed last visit. */\n tableId?: string;\n className?: string;\n}\n\n/** The body of a layout while its first read is out — where the loaded layout's body will be. */\nexport function RecordsSkeleton({ layout = \"grid\", embedded = false, rows, className }: RecordsSkeletonProps) {\n const expected = useExpectedRows(embedded);\n const columns = useExpectedColumns(embedded);\n return (\n <div\n role=\"status\"\n aria-label=\"Loading\"\n aria-busy=\"true\"\n data-records-skeleton={layout}\n className={cn(\"flex min-h-0 flex-col\", !embedded && \"flex-1\", className)}\n >\n <BodySkeleton layout={layout} embedded={embedded} rows={rows ?? expected ?? (embedded ? 5 : \"fill\")} columns={columns} known={rows ?? expected ?? undefined} />\n </div>\n );\n}\n\n/**\n * A WHOLE TABLE PAGE while the table itself is being read: the page's own frame, its toolbar row\n * at its height (the view, the layout, filter, then the search and the add buttons at the end),\n * and the layout's body skeleton below — the boxes the loaded page fills, nothing else.\n */\nexport function TablePageSkeleton({\n layout: layoutAsked,\n embedded = false,\n rows,\n tableId,\n className,\n}: RecordsSkeletonProps) {\n const remembered = useRememberedPageRows(embedded ? undefined : tableId);\n // No layout named (the route's loading frame): the layout this table settled on last visit, else the grid.\n const rememberedFace = useRememberedLayout(embedded || layoutAsked ? undefined : tableId);\n const layout: RecordsSkeletonLayout = layoutAsked ?? skeletonLayoutFor(rememberedFace);\n const expected = useExpectedRows(embedded);\n // What the server said this person sees outranks what this browser remembers from last visit.\n const painted = rows ?? expected ?? (remembered === \"fill\" ? undefined : remembered);\n return (\n <div className={cn(TABLE_PAGE_FRAME_CLASS, className)} data-records-skeleton-page={layout}>\n <div className={TABLE_PAGE_COLUMN_CLASS}>\n <div className={TABLE_TOOLBAR_ROW_CLASS} data-table-toolbar=\"\" data-records-skeleton-part=\"toolbar\" aria-hidden=\"true\">\n <Skeleton shape=\"control\" width=\"sm\" className=\"w-28\" />\n <Skeleton shape=\"control\" className=\"w-16\" />\n <Skeleton shape=\"control\" className=\"w-16\" />\n <div className=\"ml-auto flex items-center gap-1.5\">\n <Skeleton shape=\"control\" width=\"md\" />\n <Skeleton shape=\"control\" className=\"w-24\" />\n </div>\n </div>\n <div className=\"flex min-h-0 flex-1 flex-col gap-2\" data-table-records=\"\">\n <RecordsSkeleton layout={layout} embedded={embedded} {...(painted !== undefined ? { rows: painted } : {})} />\n </div>\n </div>\n </div>\n );\n}\n","/**\n * HOW MANY ROWS A TABLE HAD LAST TIME (lane STABLE-TABLES, Arman 2026-10-06: \"if a table renders\n * with an unknown number of rows, we'll have to figure out the best way to handle that by\n * following the best apps in the world\").\n *\n * The champions' rule for a count nobody knows yet: Airtable paints placeholder rows to the\n * frame's edge; Notion's inline database paints a short fixed run. Both still jump once the real\n * count lands. Linear does not, because it paints from its local cache. This is the cache-sized\n * part of Linear's answer: the count a table showed the last time this browser opened it (per\n * table and per place), so a return visit paints exactly the rows it will get and nothing moves.\n * A first visit falls back to the champions' rule (`fallback`). Pure storage; never throws.\n */\n\nconst PREFIX = \"records-ui:rows:\";\nconst MAX = 100;\n\nfunction storage(): Storage | null {\n try {\n return typeof window !== \"undefined\" && window.localStorage ? window.localStorage : null;\n } catch {\n return null;\n }\n}\n\n/** The rows to paint while a first read is out: last time's count (capped at `cap`), else `fallback`. */\nexport function rememberedRowCount<F extends number | \"fill\">(key: string, cap: number, fallback: F): number | F {\n const held = storage()?.getItem(PREFIX + key);\n const n = held == null ? NaN : Number(held);\n if (!Number.isFinite(n) || n < 0) return fallback;\n return Math.max(1, Math.min(cap, MAX, Math.round(n)));\n}\n\n/** Keep the count the table just showed. Zero is kept as one row: the empty state's own frame. */\nexport function rememberRowCount(key: string, count: number): void {\n try {\n storage()?.setItem(PREFIX + key, String(Math.max(0, Math.min(MAX, Math.round(count)))));\n } catch {\n // A full or refused storage only costs the next visit its exact count.\n }\n}\n\nconst LAYOUT_PREFIX = \"records-ui:layout:\";\n\n/**\n * THE LAYOUT A TABLE SHOWED LAST TIME (lane TAIL-FIX). A frame drawn before the table's saved view,\n * look and host layouts are read (the route's loading frame, the page's first-read frame) cannot know\n * whether this person opens it as a grid or a board, so it painted the grid and then switched, 300 to\n * 450ms later (Cleanings, 3 of 3 loads). The layout the page settled on is kept per table in this\n * browser, so a return visit's first frame already is the final layout. A first visit has nothing to\n * remember and keeps the grid skeleton. Pure storage; never throws.\n */\nexport function rememberedLayout(tableId: string): string | null {\n const held = storage()?.getItem(LAYOUT_PREFIX + tableId);\n return held && /^[a-z_-]{2,24}$/.test(held) ? held : null;\n}\n\n/** Keep the layout the table just settled on. */\nexport function rememberLayout(tableId: string, layout: string): void {\n try {\n storage()?.setItem(LAYOUT_PREFIX + tableId, layout);\n } catch {\n // A full or refused storage only costs the next visit its first-frame layout.\n }\n}\n"],"mappings":";;;;;;;AAsBO,IAAM,2BAA6D;AAAA,EACxE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,SAAS,kBAAkB,QAA0D;AAC1F,MAAI,WAAW,WAAW,WAAW,WAAY,QAAO;AACxD,SAAQ,yBAA+C,SAAS,UAAU,EAAE,IACvE,SACD;AACN;AASO,IAAM,kBAAkB;AACxB,IAAM,qBAAqB;AAC3B,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB;AAEzB,IAAM,8BAA8B;AAEpC,IAAM,qBAAqB;AAO3B,SAAS,gBAAgB,aAAwC,UAAiC;AACvG,MAAI,OAAO,gBAAgB,YAAY,CAAC,OAAO,SAAS,WAAW,KAAK,cAAc,EAAG,QAAO;AAChG,SAAO,KAAK,IAAI,KAAK,MAAM,WAAW,GAAG,QAAQ;AACnD;AAGO,SAAS,mBAAmB,MAAsB;AACvD,SAAO,mBAAmB,qBAAqB,kBAAkB,QAAQ,OAAO,IAAI,qBAAqB;AAC3G;AAOO,SAAS,mBAAmB,QAA8C,UAAmC;AAClH,MAAI,CAAC,M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AAA;AAAA,EAC/J;AAEJ;AAOO,SAAS,kBAAkB;AAAA,EAChC,QAAQ;AAAA,EACR,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AACF,GAAyB;AACvB,QAAM,aAAa,sBAAsB,WAAW,SAAY,OAAO;AAEvE,QAAM,iBAAiB,oBAAoB,YAAY,cAAc,SAAY,OAAO;AACxF,QAAM,SAAgC,eAAe,kBAAkB,cAAc;AACrF,QAAM,WAAW,gBAAgB,QAAQ;AAEzC,QAAM,UAAU,QAAQ,aAAa,eAAe,SAAS,SAAY;AACzE,SACE,oBAAC,SAAI,WAAW,GAAG,wBAAwB,SAAS,GAAG,8BAA4B,QACjF,+BAAC,SAAI,WAAW,yBACd;AAAA,yBAAC,SAAI,WAAW,yBAAyB,sBAAmB,IAAG,8BAA2B,WAAU,eAAY,QAC9G;AAAA,0BAAC,YAAS,OAAM,WAAU,OAAM,MAAK,WAAU,QAAO;AAAA,MACtD,oBAAC,YAAS,OAAM,WAAU,WAAU,QAAO;AAAA,MAC3C,oBAAC,YAAS,OAAM,WAAU,WAAU,QAAO;AAAA,MAC3C,qBAAC,SAAI,WAAU,qCACb;AAAA,4BAAC,YAAS,OAAM,WAAU,OAAM,MAAK;AAAA,QACrC,oBAAC,YAAS,OAAM,WAAU,WAAU,QAAO;AAAA,SAC7C;AAAA,OACF;AAAA,IACA,oBAAC,SAAI,WAAU,sCAAqC,sBAAmB,IACrE,8BAAC,mBAAgB,QAAgB,UAAqB,GAAI,YAAY,SAAY,EAAE,MAAM,QAAQ,IAAI,CAAC,GAAI,GAC7G;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -6966,6 +6966,24 @@ function FieldFormatPicker({
6966
6966
  }
6967
6967
  )
6968
6968
  ),
6969
+ option(
6970
+ "durationStyle",
6971
+ "Shown as",
6972
+ /* @__PURE__ */ jsx33(
6973
+ PickOne,
6974
+ {
6975
+ label: "Shown as",
6976
+ attrs: { "data-records-format-option": "durationStyle" },
6977
+ className: SELECT,
6978
+ value: options.durationStyle ?? "clock",
6979
+ onChange: (picked) => setOption("durationStyle", picked),
6980
+ options: [
6981
+ { value: "clock", label: "Clock (1:30:00)" },
6982
+ { value: "readable", label: "Words (1 hr 30 min)" }
6983
+ ]
6984
+ }
6985
+ )
6986
+ ),
6969
6987
  option(
6970
6988
  "precision",
6971
6989
  "Decimals",
@@ -14340,4 +14358,4 @@ export {
14340
14358
  RecordNameText,
14341
14359
  HeldChangeDecision
14342
14360
  };
14343
- //# sourceMappingURL=chunk-ZFNJTEIB.js.map
14361
+ //# sourceMappingURL=chunk-U2B3TLDZ.js.map