@crewlethq/ui 0.100.2 → 0.101.0

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.
Files changed (51) hide show
  1. package/dist/AgentHandoffPanel/index.js +1 -1
  2. package/dist/AppShell/index.js +3 -3
  3. package/dist/ArtifactCard/index.js +3 -3
  4. package/dist/ContrastBadge/index.js +2 -2
  5. package/dist/ContrastHelp/index.js +3 -3
  6. package/dist/DataGrid/DataGrid.d.ts +127 -41
  7. package/dist/DataGrid/index.d.ts +1 -1
  8. package/dist/DataGrid/index.js +4 -2
  9. package/dist/DataGrid/parts.d.ts +163 -0
  10. package/dist/{DataGrid-SAHEL4SN.css → DataGrid-ERDIPEWV.css} +205 -16
  11. package/dist/DocTabsEditor/index.js +2 -2
  12. package/dist/LogoSlot/index.js +3 -3
  13. package/dist/OrgTable/OrgTable.d.ts +5 -20
  14. package/dist/OrgTable/index.js +10 -3
  15. package/dist/{OrgTable-XYHEFI5X.css → OrgTable-5NXRECVP.css} +29 -9
  16. package/dist/PeekRail/index.js +2 -2
  17. package/dist/RailList/index.js +3 -2
  18. package/dist/RelatedRow/index.js +3 -2
  19. package/dist/SetupWizard/index.js +1 -1
  20. package/dist/SlideFilmstrip/index.js +2 -2
  21. package/dist/TableCells/TableCells.d.ts +10 -2
  22. package/dist/TableCells/index.js +3 -2
  23. package/dist/Text/index.js +2 -1
  24. package/dist/TreeGrid/TreeGrid.d.ts +143 -12
  25. package/dist/TreeGrid/index.d.ts +1 -1
  26. package/dist/TreeGrid/index.js +15 -2
  27. package/dist/{TreeGrid-H3GHMKZX.css → TreeGrid-XZCH5WCC.css} +232 -2
  28. package/dist/{chunk-G44KKOMB.js → chunk-2LLMUJFB.js} +1 -1
  29. package/dist/{chunk-BK4KUIAZ.js → chunk-AP6JSZGT.js} +12 -4
  30. package/dist/chunk-FL5DTFF3.js +557 -0
  31. package/dist/{chunk-CL3FWLDO.js → chunk-HI47TXSW.js} +1 -1
  32. package/dist/{chunk-XQWWA2LG.js → chunk-IQO6YDEM.js} +19 -51
  33. package/dist/{chunk-HTCNTCBE.js → chunk-KMMRKMBQ.js} +1 -1
  34. package/dist/chunk-LIRXQOTR.js +892 -0
  35. package/dist/{chunk-CQIODINH.js → chunk-M2DHVN6T.js} +1 -1
  36. package/dist/chunk-WSIJDWUG.js +10 -0
  37. package/dist/{chunk-O5CEG7TQ.js → chunk-XLMURU75.js} +1 -6
  38. package/dist/generated/index.js +61 -61
  39. package/dist/index.js +61 -61
  40. package/dist/styles.css +469 -30
  41. package/dist/utils/titleIfCut.d.ts +18 -0
  42. package/package.json +3 -3
  43. package/dist/chunk-CCNAGB3F.js +0 -591
  44. package/dist/chunk-CTQZK5J3.js +0 -8
  45. package/dist/chunk-ERESJG6C.js +0 -353
  46. package/dist/{chunk-HEXH3HQJ.js → chunk-A5ISYHW7.js} +2 -2
  47. package/dist/{chunk-YPXXDYTR.js → chunk-AP6SM6BL.js} +1 -1
  48. package/dist/{chunk-GCKHZMWG.js → chunk-E23AXDKL.js} +1 -1
  49. package/dist/{chunk-HBHKMFAH.js → chunk-K2GVWTHA.js} +2 -2
  50. package/dist/{chunk-EW4ULFHK.js → chunk-WTJU7MAG.js} +1 -1
  51. package/dist/{chunk-BGRYFVSK.js → chunk-XHQ2JJCB.js} +1 -1
@@ -29,16 +29,41 @@
29
29
  * Ported from the generic half of the engine dashboard's org builder outline.
30
30
  */
31
31
  import { type KeyboardEvent, type MouseEvent, type ReactNode, type Ref } from 'react';
32
- import { type TreeDefaultExpanded, type TreeInput, type TreeItemAction, type TreeViewHandle } from '../Tree/index.js';
32
+ import { type GridAlign, type GridFootLabels } from '../DataGrid/parts.js';
33
+ import { type TreeDefaultExpanded, type TreeInput, type TreeItemAction, type TreeModel, type TreeViewHandle } from '../Tree/index.js';
33
34
  export interface TreeGridColumn {
34
35
  key: string;
35
- /** The column's name. */
36
- header: string;
36
+ /** The column's name: a word, or a glyph named by `label`. */
37
+ header: ReactNode;
37
38
  /**
38
39
  * Read but not seen, for a column whose heading would be noise in the sight
39
40
  * of it and is still the only thing a screen reader has (an actions column).
40
41
  */
41
42
  headerHidden?: boolean | undefined;
43
+ /**
44
+ * The value a row is ordered by among its SIBLINGS, never across parents:
45
+ * the hierarchy stays the order, and a sort orders each level of it.
46
+ */
47
+ sortValue?: ((id: string) => string | number | null | undefined) | undefined;
48
+ /**
49
+ * Whether the head is a sort button. Defaults to whether `sortValue` is set;
50
+ * a `serverSorted` grid sets it alone, its source ordering each level.
51
+ */
52
+ sortable?: boolean | undefined;
53
+ /**
54
+ * Which edge the column's values and its head share, as a DataGrid column's:
55
+ * `right` for figures, times and dates, `center` for one mark per row.
56
+ */
57
+ align?: GridAlign | undefined;
58
+ /** A column of ONE MARK per row: a fixed track, its head and cells centred. Name it with `label`. */
59
+ icon?: boolean | undefined;
60
+ /** The column's name where `header` cannot carry one: a glyph head, a hidden one, the phone's card. */
61
+ label?: string | undefined;
62
+ /**
63
+ * A column of ROW CONTROLS that name themselves: its head is read but not
64
+ * seen, it never sorts, and a phone's card draws no name beside it.
65
+ */
66
+ action?: boolean | undefined;
42
67
  /**
43
68
  * An exact track, in place of the default flexible one. A column whose values a
44
69
  * live push changes takes a length: the track list is the whole table's, so a
@@ -57,9 +82,20 @@ export interface TreeGridColumn {
57
82
  * the point of the list, which at zero gave way to every column beside it.
58
83
  */
59
84
  floor?: string | undefined;
85
+ /**
86
+ * The order this column GIVES WAY in when the grid cannot draw every column
87
+ * at its size, as a DataGrid column's: the lowest number goes first, a
88
+ * column without one never goes, and the foot names what went.
89
+ */
90
+ drop?: number | undefined;
91
+ /** Hidden unless the column set (`cols`) names it. */
92
+ optional?: boolean | undefined;
60
93
  /**
61
94
  * The grid's own width, in CSS pixels, below which this column is left out
62
95
  * with its header. A cell's words can then move into another column's.
96
+ *
97
+ * @deprecated Use `drop`, which gives way by measurement and says so in the
98
+ * foot; a pixel width says nothing to the reader.
63
99
  */
64
100
  hideBelow?: number | undefined;
65
101
  /**
@@ -75,6 +111,18 @@ export interface TreeGridAddRow {
75
111
  /** How many cells it has, which is what End and Right count to. */
76
112
  cells: number;
77
113
  }
114
+ /** A select box before each row's name, after its indent: see [TreeGridProps.selection]. */
115
+ export interface TreeGridSelection {
116
+ /**
117
+ * Whether a row is picked: `true`, `false`, `'mixed'` for a group only some
118
+ * of whose rows are picked, or `null` for a row with no box.
119
+ */
120
+ checked: (id: string) => boolean | 'mixed' | null;
121
+ /** The box's accessible name: "Select Product Lead", "Select every agent in Engineering". */
122
+ label: (id: string) => string;
123
+ /** A press on a row's box, with the state it asks for. */
124
+ onCheckedChange: (id: string, checked: boolean) => void;
125
+ }
78
126
  /** What a cell needs from the grid it is drawn in. */
79
127
  export interface TreeGridContext {
80
128
  expanded(id: string): boolean;
@@ -98,15 +146,23 @@ export interface TreeGridContext {
98
146
  setMenuOpen(id: string, open: boolean): void;
99
147
  /** The key of the column drawn at this one based position, which moves as columns are left out. */
100
148
  columnKey(column: number): string | undefined;
101
- /** Whether the column with this key is drawn at the grid's width (`hideBelow`). */
149
+ /** Whether the column with this key is drawn at the grid's width (`drop`, `hideBelow`, `cols`). */
102
150
  shown(key: string): boolean;
151
+ /** The hierarchy AS DRAWN, each level in the order in force: a drawing that follows it (wires) reads this. */
152
+ tree: TreeModel;
103
153
  }
104
154
  /** Every string the grid renders on its own. */
105
- export interface TreeGridLabels {
155
+ export interface TreeGridLabels extends GridFootLabels {
106
156
  /** The pointer-only chevron's tooltip, given the row's own label. */
107
157
  expand: (label: string) => string;
108
158
  collapse: (label: string) => string;
109
159
  }
160
+ /**
161
+ * The forest with every level ordered by `get`, its pinned rows (an add row,
162
+ * a "more" row) kept last in their level in their own order. PURE, and it
163
+ * never moves a row to another parent: a sort orders siblings.
164
+ */
165
+ export declare function sortTreeLevels(forest: readonly TreeInput[], get: (id: string) => string | number | null | undefined, desc: boolean, pinned?: (id: string) => boolean): TreeInput[];
110
166
  export interface TreeGridProps {
111
167
  /** The accessible name of the grid, such as "Organization outline". */
112
168
  label: string;
@@ -121,10 +177,18 @@ export interface TreeGridProps {
121
177
  rows: readonly TreeInput[];
122
178
  /**
123
179
  * Draws one cell. `column` is its one based position, which is also its
124
- * `aria-colindex`, so a caller reads its own `columns` by `column - 1`. The
125
- * first cell is drawn after the chevron strip, inside the same cell.
180
+ * `aria-colindex`; columns left out (`cols`, `drop`) move it, so a caller
181
+ * reads which column it is with `grid.columnKey(column)`. The first cell is
182
+ * drawn after the chevron strip, inside the same cell.
126
183
  */
127
184
  renderCell: (id: string, column: number, grid: TreeGridContext) => ReactNode;
185
+ /**
186
+ * Draws the row's level in its first cell, after the chevron and before the
187
+ * select box and the caller's content, in place of the cell's own indent: a
188
+ * drawing of the hierarchy (an org table's wires). Left out, the first cell
189
+ * is indented by the row's level.
190
+ */
191
+ renderIndent?: ((id: string, grid: TreeGridContext) => ReactNode) | undefined;
128
192
  /**
129
193
  * Whether a cell holds a control that takes the grid's tab stop for itself
130
194
  * (a menu trigger, a chooser, a button). It is asked per row as well as per
@@ -134,7 +198,8 @@ export interface TreeGridProps {
134
198
  cellHasControl?: ((id: string, column: number, key: string) => boolean) | undefined;
135
199
  /**
136
200
  * Carries out Enter (activate) or Delete and Backspace (remove) on a row.
137
- * Return false when the row has no such action, so the key travels on.
201
+ * Return false when the row has no such action, so the key travels on (to
202
+ * the row's link, where it has one).
138
203
  *
139
204
  * Called only while the ROW itself holds focus, never from inside a cell,
140
205
  * and never on an add row. The Menu key is not here: which menu is open is
@@ -153,7 +218,8 @@ export interface TreeGridProps {
153
218
  /**
154
219
  * Whether a row is an add row, and what it is called. An add row is a row of
155
220
  * the grid like any other, so it counts in its siblings' position and set
156
- * size; it just holds controls rather than a node's own data.
221
+ * size; it just holds controls rather than a node's own data. A sort keeps
222
+ * it last in its level.
157
223
  */
158
224
  addRow?: ((id: string) => TreeGridAddRow | null) | undefined;
159
225
  /** The selected row, drawn as `aria-selected`. */
@@ -163,6 +229,21 @@ export interface TreeGridProps {
163
229
  * row, which names no node.
164
230
  */
165
231
  onSelect?: ((id: string) => void) | undefined;
232
+ /**
233
+ * A select box before each row's name, after its indent, in a slot every row
234
+ * keeps so the names stay in line whichever rows have a box. The box is a
235
+ * control in the first cell, so that cell hands its tab stop to it.
236
+ */
237
+ selection?: TreeGridSelection | undefined;
238
+ /**
239
+ * The row's object's page: a real link stretched over the row, as a
240
+ * DataGrid row's, so a new tab and copying it work. Enter on the row follows
241
+ * it where `onRowKey` does not take the key, and a modified Enter opens it
242
+ * elsewhere. The row itself stays the keyboard's way in.
243
+ */
244
+ rowHref?: ((id: string) => string | undefined) | undefined;
245
+ /** A failed row, marked on its edge as a DataGrid's. Its cells say why. */
246
+ isFailed?: ((id: string) => boolean) | undefined;
166
247
  /** Sets `aria-readonly`: the rows can be read and navigated but not edited. */
167
248
  readOnly?: boolean | undefined;
168
249
  /**
@@ -178,6 +259,44 @@ export interface TreeGridProps {
178
259
  expanded?: ReadonlySet<string> | undefined;
179
260
  /** The open rows a toggle has just produced, whether or not the caller holds them. */
180
261
  onExpandedChange?: ((expanded: ReadonlySet<string>) => void) | undefined;
262
+ /**
263
+ * The sort as `key` or `-key`, empty for the hierarchy's own order, which is
264
+ * the default: no head is marked while it is in force. A sort orders each
265
+ * row's children among themselves and never moves a row to another parent.
266
+ * Controlled, as a DataGrid's.
267
+ */
268
+ sort?: string | undefined;
269
+ /** The order each level takes while `sort` is empty, drawn on its head. Empty for the tree's own order. */
270
+ defaultSort?: string | undefined;
271
+ /** A sortable head pressed: ascending, descending, then back to the default (`''`). */
272
+ onSortChange?: ((sort: string) => void) | undefined;
273
+ /** Each level arrives ordered by its source; the grid marks the head and reorders nothing. */
274
+ serverSorted?: boolean | undefined;
275
+ /** The column set as `key,key`, in the order to draw it; empty for every column not `optional`. */
276
+ cols?: string | undefined;
277
+ /** The way back from a column set: drawn as "Show every column" while one is set. */
278
+ onColsChange?: ((cols: string) => void) | undefined;
279
+ /** What an empty grid says, and the one control that is its next step. */
280
+ empty?: {
281
+ title: ReactNode;
282
+ hint?: ReactNode;
283
+ icon?: ReactNode;
284
+ action?: ReactNode;
285
+ } | undefined;
286
+ /** The caller's words under the rows, beside what the width dropped and what is loaded. */
287
+ footer?: ReactNode;
288
+ /** "40 of 312 loaded". */
289
+ loadedNote?: string | undefined;
290
+ onLoadMore?: (() => void) | undefined;
291
+ /**
292
+ * HOW A ROW IS DRAWN WHERE COLUMNS DO NOT FIT (a phone, or a grid whose
293
+ * give-way columns have all gone): `labelled`, a line per value under the
294
+ * row's name, or `compact`, the name then its values on one line. Left out,
295
+ * the grid keeps its columns and scrolls sideways (`layout="scroll"`).
296
+ */
297
+ phoneRows?: 'labelled' | 'compact' | undefined;
298
+ /** The grid is a card's body: no frame of its own, the card's inset at its edges. */
299
+ flush?: boolean | undefined;
181
300
  /**
182
301
  * The column names are READ BUT NOT SEEN: an outline whose cells say what
183
302
  * they are in the sight of them (a title, a face, a time) and want no
@@ -188,8 +307,8 @@ export interface TreeGridProps {
188
307
  /**
189
308
  * `scroll` (the default) keeps a minimum width and scrolls sideways below
190
309
  * it. `container` never scrolls sideways: it fills its container, leaves out
191
- * the columns its width cannot hold (`hideBelow`), and its header holds at
192
- * the top of the page's scroll as the rows pass under it.
310
+ * the columns its width cannot hold (`drop`), and its header holds at the
311
+ * top of the page's scroll as the rows pass under it.
193
312
  */
194
313
  layout?: 'scroll' | 'container' | undefined;
195
314
  /** The grid's own width, in CSS pixels, as it is measured and whenever it changes. */
@@ -198,4 +317,16 @@ export interface TreeGridProps {
198
317
  ref?: Ref<TreeViewHandle> | undefined;
199
318
  className?: string | undefined;
200
319
  }
201
- export declare function TreeGrid({ label, columns, rows: forest, renderCell, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, readOnly, defaultExpanded, expanded: held, onExpandedChange, headless, layout, onWidthChange, labels, ref, className, }: TreeGridProps): import("react").JSX.Element;
320
+ /**
321
+ * A hierarchy on DataGrid's terms: the same head (sort buttons, marks, edges,
322
+ * plain heads), the same give-way columns and foot, the same row link and
323
+ * failed edge, so a tree table reads and behaves like the list beside it.
324
+ *
325
+ * A SORT ORDERS SIBLINGS. The hierarchy is the answer a tree gives, so a sort
326
+ * never lifts a row out of its parent: each level is ordered among itself,
327
+ * an add row stays last in its level, and with no sort chosen the rows are in
328
+ * the tree's own order with no head marked. The model is built over the
329
+ * sorted forest, so a row's position, the keys and the wires follow what is
330
+ * drawn.
331
+ */
332
+ export declare function TreeGrid({ label, columns, rows: forest, renderCell, renderIndent, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, selection, rowHref, isFailed, readOnly, defaultExpanded, expanded: held, onExpandedChange, sort: sortRaw, defaultSort, onSortChange, serverSorted, cols: colsRaw, onColsChange, empty, footer, loadedNote, onLoadMore, phoneRows, flush, headless, layout, onWidthChange, labels, ref, className, }: TreeGridProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './TreeGrid.css';
2
2
  export { TreeGrid } from './TreeGrid.js';
3
- export type { TreeGridAddRow, TreeGridColumn, TreeGridContext, TreeGridLabels, TreeGridProps, } from './TreeGrid.js';
3
+ export type { TreeGridAddRow, TreeGridColumn, TreeGridContext, TreeGridLabels, TreeGridProps, TreeGridSelection, } from './TreeGrid.js';
@@ -1,7 +1,18 @@
1
- export { TreeGrid } from '../chunk-ERESJG6C.js';
1
+ export { TreeGrid } from '../chunk-FL5DTFF3.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-CTQZK5J3.js';
3
+ import '../chunk-LIRXQOTR.js';
4
+ import '../chunk-WSIJDWUG.js';
4
5
  import '../chunk-X4HBZSXA.js';
6
+ import '../chunk-BVML4UVB.js';
7
+ import '../chunk-YJQXESOJ.js';
8
+ import '../chunk-I4IUX3JF.js';
9
+ import '../chunk-M6G7XLLP.js';
10
+ import '../chunk-PPUR46MK.js';
11
+ import '../chunk-6KUOHUY5.js';
12
+ import '../chunk-XSPCITPN.js';
13
+ import '../chunk-56ES76ST.js';
14
+ import '../chunk-NICEDVZM.js';
15
+ import '../chunk-PGCLHYVP.js';
5
16
  import '../chunk-WDLAAZFZ.js';
6
17
  import '../chunk-TDFLCUBE.js';
7
18
  import '../chunk-QZKGFBAR.js';
@@ -10,5 +21,7 @@ import '../chunk-HTS5RJ7S.js';
10
21
  import '../chunk-FIX72ZEC.js';
11
22
  import '../chunk-TUEM2XIW.js';
12
23
  import '../chunk-4ITETIGZ.js';
24
+ import '../chunk-PQADV6P6.js';
25
+ import '../chunk-2G355KDJ.js';
13
26
  import '../chunk-UT6CW3C7.js';
14
27
  import '../chunk-ODEQTPFM.js';
@@ -10,8 +10,15 @@
10
10
  own in a flush card. */
11
11
  --crewlet-tree-grid-inset: var(--spacing-3);
12
12
  --crewlet-tree-grid-edge: var(--spacing-3);
13
+ /* THE HEAD AND THE FOOT ARE DATAGRID'S OWN PARTS (DataGrid/parts.tsx), so
14
+ they read this grid's edge through DataGrid's name for it. */
15
+ --crewlet-data-grid-edge: var(--crewlet-tree-grid-edge);
13
16
 
14
17
  position: relative;
18
+ /* A flex or grid item that may shrink below its content, as DataGrid's
19
+ frame: at its automatic minimum a tree widened its parent to its
20
+ longest line. */
21
+ min-width: 0;
15
22
  }
16
23
 
17
24
  /*
@@ -76,14 +83,15 @@
76
83
 
77
84
  .crewlet-tree-grid--container .crewlet-tree-grid__head {
78
85
  position: sticky;
79
- top: 0;
86
+ /* At the offset an application gives its grids' heads, as a DataGrid's. */
87
+ top: var(--crewlet-data-grid-sticky-top, var(--spacing-0));
80
88
  z-index: var(--z-index-sticky);
81
89
  border-start-start-radius: calc(var(--radius-md) - 1px);
82
90
  border-start-end-radius: calc(var(--radius-md) - 1px);
83
91
  }
84
92
 
85
93
  /*
86
- * INSIDE A FLUSH CARD THE CARD IS THE FRAME. A flush card exists so that a
94
+ * INSIDE A FLUSH CARD THE CARD IS THE FRAME, and so with `flush`. A flush card exists so that a
87
95
  * table's rows reach its edges (Card.css), and a grid that drew its own border
88
96
  * and corner there was a second rounded box one pixel inside the first, with
89
97
  * the card's footer hanging outside it. The rows keep their own hairlines, and
@@ -99,6 +107,22 @@
99
107
  border-radius: 0;
100
108
  }
101
109
 
110
+ /* `flush` outside a flush card: the card's body, with one rule above its head. */
111
+ .crewlet-tree-grid[data-flush] {
112
+ --crewlet-tree-grid-edge: var(--spacing-4);
113
+ }
114
+
115
+ .crewlet-tree-grid[data-flush] .crewlet-tree-grid__scroller {
116
+ background: none;
117
+ border: none;
118
+ border-top: 1px solid var(--color-border-default);
119
+ border-radius: 0;
120
+ }
121
+
122
+ .crewlet-card__header + .crewlet-tree-grid[data-flush] .crewlet-tree-grid__scroller {
123
+ border-top: 0;
124
+ }
125
+
102
126
  .crewlet-tree-grid__row {
103
127
  align-items: center;
104
128
  min-height: var(--size-row-md);
@@ -163,6 +187,40 @@
163
187
  --crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-edge);
164
188
  }
165
189
 
190
+ /*
191
+ * THE HEAD IS DATAGRID'S HEAD CELL (its sort button, marks and edges), on this
192
+ * grid's insets: the button takes back exactly the padding its head has.
193
+ */
194
+ .crewlet-tree-grid__head > .crewlet-tree-grid__row > .crewlet-data-grid__th {
195
+ --crewlet-data-grid-cell-start: var(--crewlet-tree-grid-cell-start);
196
+ --crewlet-data-grid-cell-end: var(--crewlet-tree-grid-cell-end);
197
+ }
198
+
199
+ /* AN ICON COLUMN keeps the cells' own step on both sides wherever it stands, as a DataGrid's. */
200
+ .crewlet-tree-grid__row > .crewlet-data-grid__th.crewlet-data-grid__th--icon,
201
+ .crewlet-tree-grid__row > .crewlet-tree-grid__cell.crewlet-tree-grid__cell--icon {
202
+ --crewlet-tree-grid-cell-start: var(--crewlet-tree-grid-inset);
203
+ --crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-inset);
204
+ }
205
+
206
+ /* ONE EDGE PER COLUMN, shared by its head and its values, as a DataGrid's:
207
+ figures and times on the right in tabular digits, one mark centred, and
208
+ (`safe`) a value wider than its track cut at its end, never its start. */
209
+ .crewlet-tree-grid__cell--right {
210
+ justify-content: safe flex-end;
211
+ font-variant-numeric: tabular-nums;
212
+ }
213
+
214
+ .crewlet-tree-grid__cell--center {
215
+ justify-content: safe center;
216
+ }
217
+
218
+ /* A SHRINK COLUMN does not wrap inside its capped track, nor paint past it. */
219
+ .crewlet-tree-grid__cell--shrink {
220
+ white-space: nowrap;
221
+ overflow: clip;
222
+ }
223
+
166
224
  /* A COLUMN OF VALUES READ AFTER THE NAME takes the caption's size, a step under the name's. */
167
225
  .crewlet-tree-grid__cell[data-size='sm'] {
168
226
  font-size: var(--font-size-2xs);
@@ -250,7 +308,179 @@
250
308
  white-space: nowrap;
251
309
  }
252
310
 
311
+ /* THE SELECT BOX'S SLOT, kept on every row, so a row with no box keeps its name in line. */
312
+ .crewlet-tree-grid__select {
313
+ display: inline-flex;
314
+ flex: none;
315
+ align-items: center;
316
+ justify-content: center;
317
+ width: var(--size-target-min);
318
+ }
319
+
320
+ /*
321
+ * THE ROW'S OWN LINK, STRETCHED OVER IT (`rowHref`), out of flow so it takes
322
+ * no track. The row is its containing block. The cells' own controls sit
323
+ * above it, positioned and later in the document; `:where` keeps that at no
324
+ * weight, so a control that positions itself keeps its own rule.
325
+ */
326
+ .crewlet-tree-grid__row[data-linked] {
327
+ position: relative;
328
+ cursor: pointer;
329
+ }
330
+
331
+ .crewlet-tree-grid__row-link {
332
+ position: absolute;
333
+ inset: 0;
334
+ }
335
+
336
+ :where(
337
+ .crewlet-tree-grid__row[data-linked]
338
+ :is(a, button, input, label, [data-above-row]):not(.crewlet-tree-grid__row-link)
339
+ ) {
340
+ position: relative;
341
+ }
342
+
343
+ /* A FAILED ROW IS MARKED ON ITS EDGE, as a DataGrid's: its cells say why. */
344
+ .crewlet-tree-grid__row[data-failed] {
345
+ box-shadow: inset 2px 0 0 var(--color-feedback-danger-ink);
346
+ }
347
+
253
348
  /* The selection is where the reader is, so it takes the accent. */
254
349
  .crewlet-tree-grid__row[aria-selected='true'] {
255
350
  box-shadow: inset 2px 0 0 var(--color-brand-accent);
256
351
  }
352
+
353
+ /*
354
+ * THE FOOT IS DATAGRID'S (what the width dropped, what is loaded, the way to
355
+ * more), under the rows inside the frame. It holds still while the rows
356
+ * scroll sideways, so its words stay in view.
357
+ */
358
+ .crewlet-tree-grid__scroller > .crewlet-data-grid__foot-group {
359
+ position: sticky;
360
+ inset-inline-start: 0;
361
+ }
362
+
363
+ /* ---- WHERE COLUMNS DO NOT FIT, A ROW IS A CARD (`phoneRows`) ----------------
364
+ Set on a phone and where the give-way columns have all gone. The row keeps
365
+ its first cell (its chevron, its level and its name) and every other value
366
+ becomes a line under it, named, at the name's indent, so the hierarchy still
367
+ reads down the left. The head stays for a screen reader, unseen. */
368
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__scroller {
369
+ overflow-x: visible;
370
+ }
371
+
372
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__grid {
373
+ display: block;
374
+ min-width: 0;
375
+ }
376
+
377
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__head {
378
+ position: absolute;
379
+ width: 1px;
380
+ height: 1px;
381
+ overflow: hidden;
382
+ clip-path: inset(50%);
383
+ white-space: nowrap;
384
+ }
385
+
386
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__body,
387
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__row {
388
+ display: block;
389
+ }
390
+
391
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__row {
392
+ padding-block: var(--spacing-1);
393
+ }
394
+
395
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell {
396
+ align-items: baseline;
397
+ gap: var(--spacing-3);
398
+ white-space: normal;
399
+ justify-content: flex-start;
400
+ }
401
+
402
+ /* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES: past the edge, the chevron
403
+ and the row's level. A drawn indent (an org table's wires) sets its own. */
404
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:not(:first-child) {
405
+ padding-block: 1px;
406
+ padding-inline: var(
407
+ --crewlet-tree-grid-value-indent,
408
+ calc(
409
+ var(--crewlet-tree-grid-edge) + var(--size-control-sm) + var(--spacing-2) + var(--spacing-5) *
410
+ var(--crewlet-tree-grid-depth, 0)
411
+ )
412
+ )
413
+ var(--crewlet-tree-grid-edge);
414
+ }
415
+
416
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:first-child {
417
+ align-items: center;
418
+ }
419
+
420
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:empty {
421
+ display: none;
422
+ }
423
+
424
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell[data-label]::before {
425
+ content: attr(data-label);
426
+ flex: 0 0 7rem;
427
+ overflow-wrap: anywhere;
428
+ font-size: var(--font-size-2xs);
429
+ text-transform: uppercase;
430
+ letter-spacing: var(--font-letter-spacing-wide);
431
+ color: var(--color-text-tertiary);
432
+ }
433
+
434
+ /* THE COMPACT CARD: the name, then its values as one run of marks under it.
435
+ The row is indented to its values' line and the name takes that back, so
436
+ a value that wraps to a new line still starts under the name. A zero-height
437
+ break after the name ends its line, as DataGrid's compact row does. */
438
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__row {
439
+ display: flex;
440
+ flex-wrap: wrap;
441
+ align-items: center;
442
+ column-gap: var(--spacing-2);
443
+ padding-inline: var(
444
+ --crewlet-tree-grid-value-indent,
445
+ calc(
446
+ var(--crewlet-tree-grid-edge) + var(--size-control-sm) + var(--spacing-2) + var(--spacing-5) *
447
+ var(--crewlet-tree-grid-depth, 0)
448
+ )
449
+ )
450
+ var(--crewlet-tree-grid-edge);
451
+ }
452
+
453
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell:not(:first-child) {
454
+ padding: 0;
455
+ }
456
+
457
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__row::after {
458
+ content: '';
459
+ order: 1;
460
+ flex-basis: 100%;
461
+ height: 0;
462
+ }
463
+
464
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell {
465
+ order: 2;
466
+ }
467
+
468
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell:first-child {
469
+ flex: 1 1 auto;
470
+ order: 0;
471
+ margin-inline: calc(
472
+ -1 *
473
+ var(
474
+ --crewlet-tree-grid-value-indent,
475
+ calc(
476
+ var(--crewlet-tree-grid-edge) + var(--size-control-sm) + var(--spacing-2) + var(--spacing-5) *
477
+ var(--crewlet-tree-grid-depth, 0)
478
+ )
479
+ )
480
+ )
481
+ calc(-1 * var(--crewlet-tree-grid-edge));
482
+ }
483
+
484
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell[data-label]::before {
485
+ content: none;
486
+ }
@@ -1,6 +1,6 @@
1
1
  import { Select } from './chunk-IAR2ULSK.js';
2
2
  import { SidebarNav, NavItem } from './chunk-BRK3HXGZ.js';
3
- import { Text } from './chunk-O5CEG7TQ.js';
3
+ import { Text } from './chunk-XLMURU75.js';
4
4
  import { Card } from './chunk-U2IQNDDR.js';
5
5
  import './RailList-N2ZBPRM2.css';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,5 +1,6 @@
1
- import { Text } from './chunk-O5CEG7TQ.js';
1
+ import { Text } from './chunk-XLMURU75.js';
2
2
  import { Link } from './chunk-2PB5D4TI.js';
3
+ import { titleIfCut } from './chunk-WSIJDWUG.js';
3
4
  import { Tag } from './chunk-SJ3EUCFD.js';
4
5
  import { RelativeTime } from './chunk-EJNJMHQG.js';
5
6
  import { EmptyValue } from './chunk-RE3FBGQQ.js';
@@ -79,10 +80,17 @@ function TableTagsCell({ tags, max = 3, emptyLabel = "No tags", labels: override
79
80
  ] })
80
81
  ] });
81
82
  }
82
- function TableTextCell({ children, icon, mark }) {
83
- return /* @__PURE__ */ jsxs("span", { className: "crewlet-table-cell__text", children: [
83
+ function TableTextCell({ children, title, icon, mark }) {
84
+ return /* @__PURE__ */ jsxs("span", { className: "crewlet-table-cell__text", title, children: [
84
85
  mark ?? (icon !== void 0 && icon !== null ? /* @__PURE__ */ jsx("span", { className: "crewlet-table-cell__icon", "aria-hidden": "true", children: icon }) : null),
85
- /* @__PURE__ */ jsx("span", { className: "crewlet-table-cell__truncate", children })
86
+ /* @__PURE__ */ jsx(
87
+ "span",
88
+ {
89
+ className: "crewlet-table-cell__truncate",
90
+ onMouseEnter: title === void 0 ? (event) => titleIfCut(event.currentTarget) : void 0,
91
+ children
92
+ }
93
+ )
86
94
  ] });
87
95
  }
88
96
  function TableTwoLineCell({