@crewlethq/ui 0.100.1 → 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 (107) hide show
  1. package/dist/AgentHandoffPanel/index.js +5 -5
  2. package/dist/ArrangeList/index.js +1 -1
  3. package/dist/ArtifactBar/index.js +1 -1
  4. package/dist/ArtifactCard/index.js +2 -2
  5. package/dist/AuthLayout/index.js +1 -1
  6. package/dist/AvatarPicker/index.js +3 -3
  7. package/dist/BriefCard/index.js +1 -1
  8. package/dist/CharacterPicker/index.js +2 -2
  9. package/dist/ChatDay/index.js +1 -1
  10. package/dist/{ChatDay-E3FF5HWF.css → ChatDay-CTX2VI6P.css} +2 -0
  11. package/dist/ChatThread/index.js +1 -1
  12. package/dist/Combobox/index.js +2 -2
  13. package/dist/CommandPalette/index.js +4 -4
  14. package/dist/CommentThread/index.js +6 -6
  15. package/dist/Composer/index.js +2 -2
  16. package/dist/ContrastBadge/index.js +2 -2
  17. package/dist/ContrastHelp/index.js +3 -3
  18. package/dist/DataGrid/DataGrid.d.ts +127 -41
  19. package/dist/DataGrid/index.d.ts +1 -1
  20. package/dist/DataGrid/index.js +7 -5
  21. package/dist/DataGrid/parts.d.ts +163 -0
  22. package/dist/{DataGrid-SAHEL4SN.css → DataGrid-ERDIPEWV.css} +205 -16
  23. package/dist/DataTable/index.js +4 -4
  24. package/dist/DataView/index.js +7 -7
  25. package/dist/DatasetSource/index.js +1 -1
  26. package/dist/DeepWorkCard/index.js +1 -1
  27. package/dist/DocTabsEditor/index.js +2 -2
  28. package/dist/EditingStatus/index.js +2 -2
  29. package/dist/EntityList/index.js +1 -1
  30. package/dist/InlineEditor/index.js +3 -3
  31. package/dist/KeyValueRows/index.js +3 -3
  32. package/dist/ListInput/index.js +4 -4
  33. package/dist/LogoSlot/index.js +3 -3
  34. package/dist/OpenInAppCard/index.js +1 -1
  35. package/dist/OrgTable/OrgTable.d.ts +5 -20
  36. package/dist/OrgTable/index.js +10 -3
  37. package/dist/{OrgTable-XYHEFI5X.css → OrgTable-5NXRECVP.css} +29 -9
  38. package/dist/PrincipalPicker/index.js +3 -3
  39. package/dist/ProposalCard/index.js +3 -3
  40. package/dist/RailList/index.js +4 -3
  41. package/dist/RefusalCard/index.js +1 -1
  42. package/dist/RelatedRow/index.js +3 -2
  43. package/dist/ResultTableCard/index.js +1 -1
  44. package/dist/RichEditor/index.js +1 -1
  45. package/dist/SetupWizard/index.js +2 -2
  46. package/dist/ShareDialog/index.js +3 -3
  47. package/dist/SheetColumnEditor/index.js +5 -5
  48. package/dist/SheetGrid/index.js +3 -3
  49. package/dist/StatusCard/index.js +1 -1
  50. package/dist/Switcher/index.js +4 -4
  51. package/dist/TableCells/TableCells.d.ts +10 -2
  52. package/dist/TableCells/index.js +4 -3
  53. package/dist/Text/index.js +2 -1
  54. package/dist/ThreadSummary/index.js +1 -1
  55. package/dist/TimeRangePicker/index.js +4 -4
  56. package/dist/TimeWindowPicker/index.js +4 -4
  57. package/dist/TreeGrid/TreeGrid.d.ts +143 -12
  58. package/dist/TreeGrid/index.d.ts +1 -1
  59. package/dist/TreeGrid/index.js +15 -2
  60. package/dist/{TreeGrid-H3GHMKZX.css → TreeGrid-XZCH5WCC.css} +232 -2
  61. package/dist/ValueField/index.js +3 -3
  62. package/dist/{chunk-G44KKOMB.js → chunk-2LLMUJFB.js} +1 -1
  63. package/dist/{chunk-ONHYFU7D.js → chunk-AGJBHLPE.js} +1 -1
  64. package/dist/{chunk-BK4KUIAZ.js → chunk-AP6JSZGT.js} +12 -4
  65. package/dist/chunk-FL5DTFF3.js +557 -0
  66. package/dist/{chunk-L72GPZ56.js → chunk-G6QKJGQQ.js} +1 -1
  67. package/dist/{chunk-CL3FWLDO.js → chunk-HI47TXSW.js} +1 -1
  68. package/dist/{chunk-M6EVTMTK.js → chunk-HYVYYODN.js} +1 -1
  69. package/dist/{chunk-XQWWA2LG.js → chunk-IQO6YDEM.js} +19 -51
  70. package/dist/{chunk-HTCNTCBE.js → chunk-KMMRKMBQ.js} +1 -1
  71. package/dist/chunk-LIRXQOTR.js +892 -0
  72. package/dist/{chunk-CQIODINH.js → chunk-M2DHVN6T.js} +1 -1
  73. package/dist/{chunk-EMXUREKE.js → chunk-MKTHLT4E.js} +1 -1
  74. package/dist/{chunk-PF6X74C5.js → chunk-NHQ7O4DG.js} +3 -3
  75. package/dist/{chunk-DBH7ORCH.js → chunk-PCXMJZTE.js} +1 -1
  76. package/dist/{chunk-J3QFTG4B.js → chunk-PXYDEDNN.js} +1 -1
  77. package/dist/{chunk-PMO6W5NE.js → chunk-SBVTOIFP.js} +2 -2
  78. package/dist/{chunk-3NCIQO2P.js → chunk-U5Y335HH.js} +8 -4
  79. package/dist/{chunk-XRKBPNX4.js → chunk-V3QWPHY4.js} +1 -1
  80. package/dist/chunk-WSIJDWUG.js +10 -0
  81. package/dist/{chunk-O5CEG7TQ.js → chunk-XLMURU75.js} +1 -6
  82. package/dist/generated/index.js +90 -90
  83. package/dist/index.js +90 -90
  84. package/dist/styles.css +472 -31
  85. package/dist/utils/titleIfCut.d.ts +18 -0
  86. package/package.json +3 -3
  87. package/dist/chunk-CTQZK5J3.js +0 -8
  88. package/dist/chunk-ERESJG6C.js +0 -353
  89. package/dist/chunk-Z346ESBB.js +0 -591
  90. package/dist/{Editor-YHHCK5SJ.js → Editor-XRI2NOO5.js} +2 -2
  91. package/dist/{chunk-JZADK2FT.js → chunk-3JE6YIG5.js} +2 -2
  92. package/dist/{chunk-5KJOG5YP.js → chunk-6IAW2ZIE.js} +2 -2
  93. package/dist/{chunk-XLVWSNW3.js → chunk-CQAR3F33.js} +1 -1
  94. package/dist/{chunk-AC255TMQ.js → chunk-CRRW4UGJ.js} +1 -1
  95. package/dist/{chunk-IA3NL54W.js → chunk-CTHZHMVG.js} +1 -1
  96. package/dist/{chunk-MTKHMGJH.js → chunk-HR5O6PSR.js} +1 -1
  97. package/dist/{chunk-OU6ZSWEJ.js → chunk-I2GJLUU3.js} +1 -1
  98. package/dist/{chunk-7L6JJ7VJ.js → chunk-K2GVWTHA.js} +1 -1
  99. package/dist/{chunk-RSI6EJSH.js → chunk-LNXL22Y7.js} +1 -1
  100. package/dist/{chunk-NGRSGJM3.js → chunk-MFZBLJYF.js} +1 -1
  101. package/dist/{chunk-OAKECTYH.js → chunk-NIZRR2NN.js} +1 -1
  102. package/dist/{chunk-3Z2BSKS5.js → chunk-NRMF2PKX.js} +1 -1
  103. package/dist/{chunk-DK7CXQFY.js → chunk-QCCWXOKK.js} +1 -1
  104. package/dist/{chunk-LNQSNXGJ.js → chunk-S4JRQJEP.js} +1 -1
  105. package/dist/{chunk-HU5PAZMU.js → chunk-TXQ6FZJL.js} +1 -1
  106. package/dist/{chunk-GA773IOZ.js → chunk-V6CVW6PF.js} +1 -1
  107. package/dist/{chunk-EW4ULFHK.js → chunk-WTJU7MAG.js} +1 -1
@@ -0,0 +1,163 @@
1
+ /**
2
+ * The parts DataGrid and TreeGrid draw alike: a column's head, the foot under
3
+ * the rows, the comparator, and the measurement the give-way fit reads.
4
+ *
5
+ * ONE COPY, BECAUSE TWO DRIFT. TreeGrid drew a head of its own (a word, no
6
+ * button, no order said) and no foot, so a tree table could not look or
7
+ * behave like the list beside it. Both grids now draw these parts from here,
8
+ * with DataGrid's class names, so a change to a head or a foot reaches both.
9
+ * Not exported from the package: a grid is the public shape, not its parts.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ /** The edge a column's head and values share. */
13
+ export type GridAlign = 'left' | 'right' | 'center';
14
+ /** The track an `icon` column is drawn in: the target size and the cell's inset either side. */
15
+ export declare const GRID_ICON_TRACK = "calc(var(--size-target-min) + var(--spacing-3) * 2)";
16
+ /** What a head is drawn from: the part of a column both grids share. */
17
+ export interface GridHeadColumn {
18
+ key: string;
19
+ header: ReactNode;
20
+ align?: GridAlign | undefined;
21
+ icon?: boolean | undefined;
22
+ label?: string | undefined;
23
+ action?: boolean | undefined;
24
+ shrink?: boolean | undefined;
25
+ }
26
+ /** The edge a column is drawn on: `center` for an icon column unless it says otherwise. */
27
+ export declare function alignOf(column: Pick<GridHeadColumn, 'align' | 'icon'>): GridAlign;
28
+ /** A head that is a word, or nothing. */
29
+ export declare function headerWord(column: Pick<GridHeadColumn, 'header'>): string;
30
+ /** What a reader calls the column: its head's word, else its `label`, else its key. */
31
+ export declare function columnName(column: Pick<GridHeadColumn, 'header' | 'label' | 'key'>): string;
32
+ /** `-updated` as `{key: "updated", desc: true}`. */
33
+ export declare function parseGridSort(raw: string): {
34
+ key: string;
35
+ desc: boolean;
36
+ } | null;
37
+ /**
38
+ * The sort a press on a column's head asks for: ascending, then descending,
39
+ * then back to the default. PURE, so the cycle is held without a render.
40
+ *
41
+ * Against the EFFECTIVE sort (the reader's, else the default), because a head
42
+ * that reads "descending" must take its next press as one more step from
43
+ * descending, whoever chose it. Two rules keep every press a visible change:
44
+ *
45
+ * - a column already at its DEFAULT descending turns ascending, where the
46
+ * cycle's "back to the default" would have changed nothing;
47
+ * - a step that lands on the default is written as `''`, so the address holds
48
+ * only what the reader chose and the default can change under it.
49
+ */
50
+ export declare function nextGridSort(column: string, sort: string, defaultSort?: string): string;
51
+ /**
52
+ * `items` in a new array, ordered by `get`. An absent value sorts last in both
53
+ * directions, since it is not a value. Never sorts the caller's array in place.
54
+ */
55
+ export declare function sortByValue<T>(items: readonly T[], get: (item: T) => string | number | null | undefined, desc: boolean): T[];
56
+ /** The words the head and the foot say, for an application that says them otherwise. */
57
+ export interface GridFootLabels {
58
+ /** "Hidden to fit: Due and Updated". */
59
+ hiddenToFit: (names: string) => string;
60
+ loadMore: string;
61
+ showEveryColumn: string;
62
+ /** Joins the last two names of a list: "Due and Updated". */
63
+ and: string;
64
+ }
65
+ export declare const GRID_FOOT_LABELS: GridFootLabels;
66
+ /** "Due and Updated": the columns a fit dropped, by the names a reader knows them by. */
67
+ export declare function droppedNames(columns: readonly Pick<GridHeadColumn, 'header' | 'label' | 'key'>[], dropped: readonly string[], and: string): string;
68
+ export interface GridHeadCellProps {
69
+ column: GridHeadColumn;
70
+ /** The sort in force, the reader's or the default. */
71
+ sort: {
72
+ key: string;
73
+ desc: boolean;
74
+ } | null;
75
+ /** Whether a press on this head changes the sort. */
76
+ sortable: boolean;
77
+ onSort: () => void;
78
+ /** The head's word is READ BUT NOT SEEN: a column of controls that name themselves. */
79
+ hidden?: boolean | undefined;
80
+ /** `aria-colindex`, for a grid that counts its columns (a treegrid). */
81
+ colIndex?: number | undefined;
82
+ }
83
+ /**
84
+ * One column head: the micro label, its edge, and where it sorts a button
85
+ * filling the head with the order's mark.
86
+ *
87
+ * A COLUMN THAT CANNOT BE SORTED IS NOT A BUTTON. The order in force is said
88
+ * on its head too (`aria-sort`): a grid sorted by its default, with nothing to
89
+ * press. A glyph head is still a named column: its `label`, said and shown on
90
+ * hover.
91
+ */
92
+ export declare function GridHeadCell({ column, sort, sortable, onSort, hidden, colIndex }: GridHeadCellProps): import("react").JSX.Element;
93
+ export interface GridFootProps {
94
+ footer?: ReactNode;
95
+ /** The names a fit dropped, joined; empty when it dropped none. */
96
+ dropped: string;
97
+ loadedNote?: string | undefined;
98
+ onLoadMore?: (() => void) | undefined;
99
+ /** The way back from a column set; set only while one is in force. */
100
+ onReset?: (() => void) | undefined;
101
+ labels: GridFootLabels;
102
+ /**
103
+ * How many columns the table has, where the foot is the TABLE'S OWN ROWS (a
104
+ * `rowgroup`, as a `tfoot`). Left out, the foot is a caption under a grid
105
+ * whose rows are a hierarchy (a treegrid), outside it.
106
+ */
107
+ columns?: number | undefined;
108
+ }
109
+ /**
110
+ * The foot: the caller's words, what the width dropped, what is loaded, and
111
+ * the way to more; then the way back from a column set.
112
+ *
113
+ * TABLE CONTENT OR NONE. A table may own rows and row groups and nothing
114
+ * else, and the foot sat in one as a bare box, so a list a caller put in it
115
+ * was content the table did not allow. In a table it is now a row group of
116
+ * rows of one cell across every column; under a treegrid it is outside it.
117
+ */
118
+ export declare function GridFoot({ footer, dropped, loadedNote, onLoadMore, onReset, labels, columns }: GridFootProps): import("react").JSX.Element | null;
119
+ /**
120
+ * The hover text of what lies under the pointer BENEATH a row's link: the
121
+ * title a cell's value carries, or a cut value's whole words. Null where
122
+ * there is none.
123
+ *
124
+ * WHY THE LINK ASKS. The row's link is stretched over the row and above its
125
+ * text, so the pointer is over the link wherever it is on a value: a cut
126
+ * value's words, and every title a cell carries, never reached the pointer
127
+ * in a row that links. The link takes the title of what it covers, read at
128
+ * the point the pointer is, so a linked row reads on hover as a plain one.
129
+ * A title the caller gave wins over a measured one.
130
+ */
131
+ export declare function titleBeneath(link: HTMLElement, x: number, y: number): string | null;
132
+ /** `onMouseMove` and `onMouseLeave` for a row's link: see [titleBeneath]. */
133
+ export declare const rowLinkTitle: {
134
+ onMouseMove: (event: {
135
+ currentTarget: HTMLElement;
136
+ clientX: number;
137
+ clientY: number;
138
+ }) => void;
139
+ onMouseLeave: (event: {
140
+ currentTarget: HTMLElement;
141
+ }) => void;
142
+ };
143
+ /** Whether the tracks run past the box's inner edge, read off the head's last cell. */
144
+ export declare function overrunning(box: HTMLElement, head: Element | null | undefined): boolean;
145
+ /**
146
+ * Whether a content-sized column has been SQUEEZED: drawn narrower than its
147
+ * cap AND cutting a value short, or its HEAD. The quieter way a grid fails to
148
+ * fit: rather than overrun, it shrinks a status pill to a letter, or every
149
+ * head of a row of counts to its first letter over values that still fit,
150
+ * while the columns that could have gone stay. Read over the head and the
151
+ * first screen of rows. `leading` is how many of the grid's own columns (a
152
+ * selection box, a handle) are drawn before the caller's.
153
+ *
154
+ * `'values'` where a value is cut short (the grid cannot be read: drop, then
155
+ * stack), `'heads'` where only a head is (drop a column if one may go, but a
156
+ * grid whose every value reads is not turned into cards for a head), and
157
+ * null where nothing is.
158
+ */
159
+ export declare function squeezedCells(width: number, heads: readonly Element[], rows: readonly Element[], cellsOf: (row: Element) => readonly Element[], visible: readonly {
160
+ shrink?: boolean | undefined;
161
+ width?: string | undefined;
162
+ icon?: boolean | undefined;
163
+ }[], leading?: number): 'values' | 'heads' | null;
@@ -199,11 +199,11 @@
199
199
  * sorts is a button filling its head, and takes the same edge.
200
200
  */
201
201
  .crewlet-data-grid__th--right .crewlet-data-grid__sort {
202
- justify-content: flex-end;
202
+ justify-content: safe flex-end;
203
203
  }
204
204
 
205
205
  .crewlet-data-grid__th--center .crewlet-data-grid__sort {
206
- justify-content: center;
206
+ justify-content: safe center;
207
207
  }
208
208
 
209
209
  .crewlet-data-grid__th:not(.crewlet-data-grid__th--plain):hover,
@@ -264,11 +264,11 @@
264
264
  }
265
265
 
266
266
  .crewlet-data-grid__th--right {
267
- justify-content: flex-end;
267
+ justify-content: safe flex-end;
268
268
  }
269
269
 
270
270
  .crewlet-data-grid__th--center {
271
- justify-content: center;
271
+ justify-content: safe center;
272
272
  }
273
273
 
274
274
  .crewlet-data-grid__sort:focus-visible,
@@ -357,12 +357,147 @@ button.crewlet-data-grid__row-link {
357
357
  box-shadow: inset 2px 0 0 var(--color-brand-accent);
358
358
  }
359
359
 
360
- /* A FAILED ROW IS MARKED ON ITS EDGE, not tinted: the status column already
361
- says so, and two signals for one fact teach a reader to trust neither. */
362
- .crewlet-data-grid__row--failed {
360
+ /* A ROW'S TONE IS MARKED ON ITS EDGE, not tinted: the row's own cells
361
+ already say the state in words, and two loud signals for one fact teach a
362
+ reader to trust neither. The edge runs down the lines under the row too,
363
+ so the record reads as one. `--failed` is the danger tone's old name. */
364
+ .crewlet-data-grid__row--failed,
365
+ .crewlet-data-grid__row[data-tone='danger'],
366
+ .crewlet-data-grid__subrow[data-tone='danger'] {
363
367
  box-shadow: inset 2px 0 0 var(--color-feedback-danger-ink);
364
368
  }
365
369
 
370
+ .crewlet-data-grid__row[data-tone='warning'],
371
+ .crewlet-data-grid__subrow[data-tone='warning'] {
372
+ box-shadow: inset 2px 0 0 var(--color-feedback-warning-ink);
373
+ }
374
+
375
+ .crewlet-data-grid__row[data-tone='info'],
376
+ .crewlet-data-grid__subrow[data-tone='info'] {
377
+ box-shadow: inset 2px 0 0 var(--color-feedback-info-ink);
378
+ }
379
+
380
+ /*
381
+ * A ROW AND THE LINES UNDER IT ARE ONE RECORD: the accessory line that says
382
+ * what the row cannot, the detail an open row shows. No rule between them;
383
+ * the last of them draws the record's rule. They start on the first of the
384
+ * caller's columns (the cell's own `grid-column`), past the grid's own.
385
+ */
386
+ .crewlet-data-grid__row[data-continued] {
387
+ border-bottom-color: transparent;
388
+ }
389
+
390
+ .crewlet-data-grid__subrow {
391
+ display: grid;
392
+ grid-template-columns: subgrid;
393
+ grid-column: 1 / -1;
394
+ border-bottom: 1px solid var(--color-border-default);
395
+ }
396
+
397
+ .crewlet-data-grid__subrow:not(:last-child):has(+ .crewlet-data-grid__subrow) {
398
+ border-bottom-color: transparent;
399
+ }
400
+
401
+ .crewlet-data-grid__subrow:last-child {
402
+ border-bottom: none;
403
+ }
404
+
405
+ .crewlet-data-grid__subrow-cell {
406
+ min-width: 0;
407
+ padding-block: 0 var(--spacing-2);
408
+ padding-inline: var(--spacing-3) var(--crewlet-data-grid-edge);
409
+ font-size: var(--font-size-xs);
410
+ color: var(--color-text-secondary);
411
+ }
412
+
413
+ .crewlet-data-grid__subrow-cell[data-first] {
414
+ padding-inline-start: var(--crewlet-data-grid-edge);
415
+ }
416
+
417
+ /* AN OPEN ROW'S DETAIL is its own ground, a step in from the row's, so it
418
+ reads as the inside of the row above it and not as one more row. */
419
+ .crewlet-data-grid__subrow--detail {
420
+ background: var(--color-surface-inset);
421
+ }
422
+
423
+ .crewlet-data-grid__subrow--detail > .crewlet-data-grid__subrow-cell {
424
+ padding-block: var(--spacing-3);
425
+ font-size: var(--font-size-compact);
426
+ color: inherit;
427
+ }
428
+
429
+ /* THE CHEVRON TURNS to point at the open row's detail, as a tree's does. */
430
+ .crewlet-data-grid__expander {
431
+ display: inline-flex;
432
+ }
433
+
434
+ .crewlet-data-grid__expander svg {
435
+ transition: transform var(--motion-duration-fast) var(--motion-easing-default);
436
+ }
437
+
438
+ .crewlet-data-grid__expander[data-open] svg {
439
+ transform: rotate(90deg);
440
+ }
441
+
442
+ /* A ROW MOVED BY HAND: the handle says it can be carried, the row being
443
+ carried is a gap outlined where it will land, and a move still being
444
+ saved is quieter until it lands. */
445
+ .crewlet-data-grid__handle {
446
+ cursor: grab;
447
+ color: var(--color-text-tertiary);
448
+ }
449
+
450
+ .crewlet-data-grid__handle:active {
451
+ cursor: grabbing;
452
+ }
453
+
454
+ .crewlet-data-grid__row[data-reorder='dragging'] {
455
+ background: transparent;
456
+ outline: 1px dashed var(--color-border-strong);
457
+ outline-offset: -1px;
458
+ }
459
+
460
+ .crewlet-data-grid__row[data-reorder='dragging'] > *,
461
+ .crewlet-data-grid__row[data-pending] > * {
462
+ opacity: 0.5;
463
+ }
464
+
465
+ /*
466
+ * A SUMMARY ROW IS NOT A RECORD: a total under the rows or the whole above
467
+ * its parts. On the same tracks, so its figures stand under their heads; in
468
+ * the weight a total takes; with no pointer, since it opens nothing.
469
+ */
470
+ .crewlet-data-grid__row--summary,
471
+ .crewlet-data-grid__row--summary:hover {
472
+ cursor: default;
473
+ background: var(--color-surface-elevated);
474
+ font-weight: var(--font-weight-medium);
475
+ }
476
+
477
+ .crewlet-data-grid__row--summary[data-position='top'] {
478
+ border-bottom-color: var(--color-border-hover);
479
+ }
480
+
481
+ .crewlet-data-grid__row--summary[data-position='bottom'] {
482
+ border-top: 1px solid var(--color-border-hover);
483
+ }
484
+
485
+ .crewlet-data-grid__row--summary + .crewlet-data-grid__row--summary[data-position='bottom'] {
486
+ border-top: none;
487
+ }
488
+
489
+ /* A ROW STILL ON ITS WAY: the head's tracks, a sweeping line in each cell. */
490
+ .crewlet-data-grid__row--loading,
491
+ .crewlet-data-grid__row--loading:hover {
492
+ cursor: default;
493
+ background: transparent;
494
+ }
495
+
496
+ .crewlet-data-grid__row--loading .crewlet-data-grid__cell > * {
497
+ flex: 1 1 auto;
498
+ max-width: 10rem;
499
+ }
500
+
366
501
  .crewlet-data-grid__cell {
367
502
  padding-block: var(--spacing-1);
368
503
  padding-inline: var(--crewlet-data-grid-cell-start) var(--crewlet-data-grid-cell-end);
@@ -415,14 +550,47 @@ button.crewlet-data-grid__row-link {
415
550
  }
416
551
 
417
552
  /* A RIGHT-ALIGNED COLUMN holds figures, times and dates: tabular digits, so
418
- "53s ago" and "12h ago" end on one edge and their digits stand in columns. */
553
+ "53s ago" and "12h ago" end on one edge and their digits stand in columns.
554
+ `safe`: a value wider than its clipped track keeps its start and is cut at
555
+ its end, where end alignment overflowed the start ("1d ago" read "ago"). */
419
556
  .crewlet-data-grid__cell--right {
420
- justify-content: flex-end;
557
+ justify-content: safe flex-end;
421
558
  font-variant-numeric: tabular-nums;
422
559
  }
423
560
 
424
561
  .crewlet-data-grid__cell--center {
425
- justify-content: center;
562
+ justify-content: safe center;
563
+ }
564
+
565
+ /* A PROSE COLUMN (`overflow: 'wrap'`) breaks over as many lines as it takes,
566
+ anywhere it must, and its row grows to hold it. */
567
+ .crewlet-data-grid__cell--wrap {
568
+ white-space: normal;
569
+ overflow-wrap: anywhere;
570
+ padding-block: var(--spacing-2);
571
+ }
572
+
573
+ /*
574
+ * A COMPACT GRID (`density="compact"`) is a step shorter in its head and in
575
+ * every row, for a grid in a drawer or a side panel read beside something
576
+ * else. The type stays; only the rows' height and their air give.
577
+ */
578
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__head,
579
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__row {
580
+ min-height: var(--size-row-sm);
581
+ }
582
+
583
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__th {
584
+ padding-block: var(--spacing-1);
585
+ }
586
+
587
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__sort {
588
+ margin-block: calc(-1 * var(--spacing-1));
589
+ padding-block: var(--spacing-1);
590
+ }
591
+
592
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__cell {
593
+ padding-block: 0;
426
594
  }
427
595
 
428
596
 
@@ -508,8 +676,6 @@ button.crewlet-data-grid__row-link {
508
676
  .crewlet-data-grid__foot {
509
677
  display: flex;
510
678
  align-items: center;
511
- flex-wrap: wrap;
512
- gap: var(--spacing-1) var(--spacing-3);
513
679
  min-height: var(--size-control-sm);
514
680
  padding: var(--spacing-1) var(--crewlet-data-grid-edge);
515
681
  border-top: 1px solid var(--color-border-default);
@@ -519,6 +685,24 @@ button.crewlet-data-grid__row-link {
519
685
  line-height: var(--font-line-height-tight);
520
686
  }
521
687
 
688
+ /* THE FOOT IS THE TABLE'S OWN ROW GROUP (a tfoot): one row, one cell across
689
+ every column, which lays the caller's words and the grid's notes out on
690
+ one line that wraps. */
691
+ .crewlet-data-grid__foot-group {
692
+ display: block;
693
+ grid-column: 1 / -1;
694
+ min-width: 0;
695
+ }
696
+
697
+ .crewlet-data-grid__foot-cell {
698
+ display: flex;
699
+ flex: 1 1 auto;
700
+ align-items: center;
701
+ flex-wrap: wrap;
702
+ gap: var(--spacing-1) var(--spacing-3);
703
+ min-width: 0;
704
+ }
705
+
522
706
  .crewlet-data-grid__foot-spacer {
523
707
  flex: 1 1 auto;
524
708
  }
@@ -530,8 +714,7 @@ button.crewlet-data-grid__row-link {
530
714
 
531
715
  .crewlet-data-grid__cols-reset {
532
716
  all: unset;
533
- /* After the reset, which takes `grid-column` too. */
534
- grid-column: 1 / -1;
717
+ display: block;
535
718
  padding: var(--spacing-1) var(--crewlet-data-grid-edge);
536
719
  font-size: var(--font-size-2xs);
537
720
  color: var(--color-brand-accent-ink);
@@ -582,7 +765,8 @@ button.crewlet-data-grid__row-link {
582
765
  @media (prefers-reduced-motion: reduce) {
583
766
  .crewlet-data-grid__th,
584
767
  .crewlet-data-grid__row,
585
- .crewlet-data-grid__sort-mark {
768
+ .crewlet-data-grid__sort-mark,
769
+ .crewlet-data-grid__expander svg {
586
770
  transition: none;
587
771
  }
588
772
  }
@@ -616,10 +800,15 @@ button.crewlet-data-grid__row-link {
616
800
  }
617
801
 
618
802
  :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__body,
619
- :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__band {
803
+ :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__band,
804
+ :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__subrow {
620
805
  display: block;
621
806
  }
622
807
 
808
+ :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__subrow-cell {
809
+ padding-inline: var(--crewlet-data-grid-edge);
810
+ }
811
+
623
812
  :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__row {
624
813
  display: block;
625
814
  padding: var(--spacing-2) var(--crewlet-data-grid-edge);
@@ -1,16 +1,16 @@
1
- export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-RSI6EJSH.js';
1
+ export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-LNXL22Y7.js';
2
2
  import '../chunk-EMDRNB23.js';
3
3
  import '../chunk-STJ7QBC3.js';
4
4
  import '../chunk-DTIW4CHZ.js';
5
+ import '../chunk-JK6WLRYP.js';
5
6
  import '../chunk-RE3FBGQQ.js';
6
7
  import '../chunk-AV2DXAEL.js';
7
8
  import '../chunk-M6G7XLLP.js';
8
- import '../chunk-JK6WLRYP.js';
9
+ import '../chunk-6KUOHUY5.js';
10
+ import '../chunk-XSPCITPN.js';
9
11
  import '../chunk-56ES76ST.js';
10
12
  import '../chunk-NICEDVZM.js';
11
13
  import '../chunk-PGCLHYVP.js';
12
- import '../chunk-6KUOHUY5.js';
13
- import '../chunk-XSPCITPN.js';
14
14
  import '../chunk-WDLAAZFZ.js';
15
15
  import '../chunk-TDFLCUBE.js';
16
16
  import '../chunk-QZKGFBAR.js';
@@ -1,26 +1,26 @@
1
- export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-PF6X74C5.js';
1
+ export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-NHQ7O4DG.js';
2
2
  import '../chunk-FPDIHEM4.js';
3
3
  import '../chunk-AEFR4M2W.js';
4
4
  import '../chunk-63NRTOGO.js';
5
- import '../chunk-RSI6EJSH.js';
5
+ import '../chunk-LNXL22Y7.js';
6
6
  import '../chunk-EMDRNB23.js';
7
+ import '../chunk-YGRTX67J.js';
7
8
  import '../chunk-STJ7QBC3.js';
8
9
  import '../chunk-DTIW4CHZ.js';
9
- import '../chunk-YGRTX67J.js';
10
10
  import '../chunk-NXFTCPF6.js';
11
11
  import '../chunk-EE3DJMSQ.js';
12
12
  import '../chunk-LCAKSEMB.js';
13
+ import '../chunk-JK6WLRYP.js';
13
14
  import '../chunk-EJNJMHQG.js';
14
15
  import '../chunk-RE3FBGQQ.js';
15
16
  import '../chunk-AV2DXAEL.js';
16
17
  import '../chunk-M6G7XLLP.js';
17
- import '../chunk-JK6WLRYP.js';
18
- import '../chunk-56ES76ST.js';
19
- import '../chunk-NICEDVZM.js';
20
- import '../chunk-PGCLHYVP.js';
21
18
  import '../chunk-CMAZZY2I.js';
22
19
  import '../chunk-6KUOHUY5.js';
23
20
  import '../chunk-XSPCITPN.js';
21
+ import '../chunk-56ES76ST.js';
22
+ import '../chunk-NICEDVZM.js';
23
+ import '../chunk-PGCLHYVP.js';
24
24
  import '../chunk-WDLAAZFZ.js';
25
25
  import '../chunk-TDFLCUBE.js';
26
26
  import '../chunk-QZKGFBAR.js';
@@ -1,8 +1,8 @@
1
1
  export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-C2HIMGFI.js';
2
2
  import '../chunk-SJ3EUCFD.js';
3
+ import '../chunk-QRE6JCHS.js';
3
4
  import '../chunk-EJNJMHQG.js';
4
5
  import '../chunk-RE3FBGQQ.js';
5
- import '../chunk-QRE6JCHS.js';
6
6
  import '../chunk-2YTOOH3A.js';
7
7
  import '../chunk-UT6CW3C7.js';
8
8
  import '../chunk-ODEQTPFM.js';
@@ -4,9 +4,9 @@ import '../chunk-YS4PWTNL.js';
4
4
  import '../chunk-RQFRRPV6.js';
5
5
  import '../chunk-4BEMS6Q7.js';
6
6
  import '../chunk-SJ3EUCFD.js';
7
+ import '../chunk-QRE6JCHS.js';
7
8
  import '../chunk-U2IQNDDR.js';
8
9
  import '../chunk-AV2DXAEL.js';
9
- import '../chunk-QRE6JCHS.js';
10
10
  import '../chunk-NAHA62WD.js';
11
11
  import '../chunk-6KUOHUY5.js';
12
12
  import '../chunk-XSPCITPN.js';
@@ -2,11 +2,11 @@ export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-AP6SM6BL.js';
2
2
  import '../chunk-BVML4UVB.js';
3
3
  import '../chunk-YJQXESOJ.js';
4
4
  import '../chunk-JK6WLRYP.js';
5
+ import '../chunk-6KUOHUY5.js';
6
+ import '../chunk-XSPCITPN.js';
5
7
  import '../chunk-56ES76ST.js';
6
8
  import '../chunk-NICEDVZM.js';
7
9
  import '../chunk-PGCLHYVP.js';
8
- import '../chunk-6KUOHUY5.js';
9
- import '../chunk-XSPCITPN.js';
10
10
  import '../chunk-WDLAAZFZ.js';
11
11
  import '../chunk-TDFLCUBE.js';
12
12
  import '../chunk-QZKGFBAR.js';
@@ -1,6 +1,6 @@
1
- export { EditingStatus } from '../chunk-OU6ZSWEJ.js';
1
+ export { EditingStatus } from '../chunk-I2GJLUU3.js';
2
+ import '../chunk-QRE6JCHS.js';
2
3
  import '../chunk-EJNJMHQG.js';
3
4
  import '../chunk-RE3FBGQQ.js';
4
- import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-UT6CW3C7.js';
6
6
  import '../chunk-ODEQTPFM.js';
@@ -1,9 +1,9 @@
1
1
  export { EntityList } from '../chunk-TN3BH3Q4.js';
2
2
  import '../chunk-4BEMS6Q7.js';
3
3
  import '../chunk-SJ3EUCFD.js';
4
+ import '../chunk-QRE6JCHS.js';
4
5
  import '../chunk-U2IQNDDR.js';
5
6
  import '../chunk-AV2DXAEL.js';
6
- import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-D2GT3CR4.js';
8
8
  import '../chunk-PQADV6P6.js';
9
9
  import '../chunk-UT6CW3C7.js';
@@ -1,8 +1,8 @@
1
- export { INLINE_EDITOR_LABELS, InlineEditor } from '../chunk-M6EVTMTK.js';
2
- import '../chunk-OU6ZSWEJ.js';
1
+ export { INLINE_EDITOR_LABELS, InlineEditor } from '../chunk-HYVYYODN.js';
2
+ import '../chunk-I2GJLUU3.js';
3
+ import '../chunk-QRE6JCHS.js';
3
4
  import '../chunk-EJNJMHQG.js';
4
5
  import '../chunk-RE3FBGQQ.js';
5
- import '../chunk-QRE6JCHS.js';
6
6
  import '../chunk-CMAZZY2I.js';
7
7
  import '../chunk-6KUOHUY5.js';
8
8
  import '../chunk-XSPCITPN.js';
@@ -1,9 +1,9 @@
1
- export { KeyValueRows, keyValueRowsLabels } from '../chunk-HU5PAZMU.js';
1
+ export { KeyValueRows, keyValueRowsLabels } from '../chunk-TXQ6FZJL.js';
2
+ import '../chunk-6KUOHUY5.js';
3
+ import '../chunk-XSPCITPN.js';
2
4
  import '../chunk-56ES76ST.js';
3
5
  import '../chunk-NICEDVZM.js';
4
6
  import '../chunk-PGCLHYVP.js';
5
- import '../chunk-6KUOHUY5.js';
6
- import '../chunk-XSPCITPN.js';
7
7
  import '../chunk-WDLAAZFZ.js';
8
8
  import '../chunk-TDFLCUBE.js';
9
9
  import '../chunk-QZKGFBAR.js';
@@ -1,12 +1,12 @@
1
- export { ListInput, withDraft } from '../chunk-JZADK2FT.js';
1
+ export { ListInput, withDraft } from '../chunk-3JE6YIG5.js';
2
2
  import '../chunk-BVML4UVB.js';
3
3
  import '../chunk-YJQXESOJ.js';
4
- import '../chunk-56ES76ST.js';
5
- import '../chunk-NICEDVZM.js';
6
- import '../chunk-PGCLHYVP.js';
7
4
  import '../chunk-CMAZZY2I.js';
8
5
  import '../chunk-6KUOHUY5.js';
9
6
  import '../chunk-XSPCITPN.js';
7
+ import '../chunk-56ES76ST.js';
8
+ import '../chunk-NICEDVZM.js';
9
+ import '../chunk-PGCLHYVP.js';
10
10
  import '../chunk-WDLAAZFZ.js';
11
11
  import '../chunk-TDFLCUBE.js';
12
12
  import '../chunk-QZKGFBAR.js';
@@ -1,8 +1,8 @@
1
- export { LogoSlot, LogoSlotGroup } from '../chunk-CQIODINH.js';
1
+ export { LogoSlot, LogoSlotGroup } from '../chunk-M2DHVN6T.js';
2
2
  import '../chunk-N7H5TFQK.js';
3
- import '../chunk-EW4ULFHK.js';
4
- import '../chunk-7W3LYIOC.js';
3
+ import '../chunk-WTJU7MAG.js';
5
4
  import '../chunk-SJ3EUCFD.js';
5
+ import '../chunk-7W3LYIOC.js';
6
6
  import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-6KUOHUY5.js';
8
8
  import '../chunk-XSPCITPN.js';
@@ -5,9 +5,9 @@ import '../chunk-3LI4TRUR.js';
5
5
  import '../chunk-YS4PWTNL.js';
6
6
  import '../chunk-4BEMS6Q7.js';
7
7
  import '../chunk-SJ3EUCFD.js';
8
+ import '../chunk-QRE6JCHS.js';
8
9
  import '../chunk-U2IQNDDR.js';
9
10
  import '../chunk-AV2DXAEL.js';
10
- import '../chunk-QRE6JCHS.js';
11
11
  import '../chunk-6KUOHUY5.js';
12
12
  import '../chunk-XSPCITPN.js';
13
13
  import '../chunk-TDFLCUBE.js';