@crewlethq/ui 0.100.2 → 0.102.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 (102) hide show
  1. package/dist/AgentHandoffPanel/index.js +6 -6
  2. package/dist/AppShell/index.js +3 -3
  3. package/dist/ArrangeList/index.js +1 -1
  4. package/dist/ArtifactBar/index.js +1 -1
  5. package/dist/ArtifactCard/index.js +2 -2
  6. package/dist/AuthLayout/index.js +1 -1
  7. package/dist/AvatarPicker/index.js +3 -3
  8. package/dist/BriefCard/index.js +1 -1
  9. package/dist/CharacterPicker/index.js +2 -2
  10. package/dist/Combobox/index.js +2 -2
  11. package/dist/CommandPalette/index.js +4 -4
  12. package/dist/CommentThread/index.js +6 -6
  13. package/dist/Composer/index.js +2 -2
  14. package/dist/DataGrid/DataGrid.d.ts +145 -41
  15. package/dist/DataGrid/index.d.ts +2 -2
  16. package/dist/DataGrid/index.js +7 -5
  17. package/dist/DataGrid/parts.d.ts +163 -0
  18. package/dist/{DataGrid-SAHEL4SN.css → DataGrid-YNLCEH3E.css} +228 -19
  19. package/dist/DataTable/index.js +4 -4
  20. package/dist/DataView/index.js +6 -6
  21. package/dist/DatasetSource/index.js +1 -1
  22. package/dist/DeepWorkCard/index.js +1 -1
  23. package/dist/DocTabsEditor/index.js +4 -4
  24. package/dist/EditingStatus/index.js +2 -2
  25. package/dist/EntityList/index.js +1 -1
  26. package/dist/InlineEditor/index.js +3 -3
  27. package/dist/KeyValueRows/index.js +3 -3
  28. package/dist/ListInput/index.js +4 -4
  29. package/dist/OpenInAppCard/index.js +1 -1
  30. package/dist/OrgTable/OrgTable.d.ts +5 -20
  31. package/dist/OrgTable/index.js +10 -3
  32. package/dist/{OrgTable-XYHEFI5X.css → OrgTable-5NXRECVP.css} +29 -9
  33. package/dist/PeekRail/index.js +2 -2
  34. package/dist/PrincipalPicker/index.js +3 -3
  35. package/dist/ProposalCard/index.js +3 -3
  36. package/dist/RailList/index.js +3 -2
  37. package/dist/RefusalCard/index.js +1 -1
  38. package/dist/RelatedRow/index.js +3 -2
  39. package/dist/ResultTableCard/index.js +1 -1
  40. package/dist/RichEditor/index.js +1 -1
  41. package/dist/SetupWizard/index.js +1 -1
  42. package/dist/ShareDialog/index.js +2 -2
  43. package/dist/SheetColumnEditor/index.js +5 -5
  44. package/dist/SheetGrid/index.js +3 -3
  45. package/dist/SlideFilmstrip/index.js +2 -2
  46. package/dist/StatusCard/index.js +1 -1
  47. package/dist/Switcher/index.js +4 -4
  48. package/dist/TableCells/TableCells.d.ts +10 -2
  49. package/dist/TableCells/index.js +4 -3
  50. package/dist/Text/index.js +2 -1
  51. package/dist/ThreadSummary/index.js +1 -1
  52. package/dist/TimeRangePicker/index.js +4 -4
  53. package/dist/TimeWindowPicker/index.js +4 -4
  54. package/dist/TreeGrid/TreeGrid.d.ts +143 -12
  55. package/dist/TreeGrid/index.d.ts +1 -1
  56. package/dist/TreeGrid/index.js +15 -2
  57. package/dist/{TreeGrid-H3GHMKZX.css → TreeGrid-XZCH5WCC.css} +232 -2
  58. package/dist/ValueField/index.js +3 -3
  59. package/dist/{chunk-G44KKOMB.js → chunk-2LLMUJFB.js} +1 -1
  60. package/dist/{chunk-BK4KUIAZ.js → chunk-AP6JSZGT.js} +12 -4
  61. package/dist/chunk-BZUBONYA.js +557 -0
  62. package/dist/{chunk-PCXMJZTE.js → chunk-DBH7ORCH.js} +1 -1
  63. package/dist/{chunk-MKTHLT4E.js → chunk-EMXUREKE.js} +1 -1
  64. package/dist/{chunk-CL3FWLDO.js → chunk-HI47TXSW.js} +1 -1
  65. package/dist/{chunk-PXYDEDNN.js → chunk-J3QFTG4B.js} +1 -1
  66. package/dist/{chunk-G6QKJGQQ.js → chunk-L72GPZ56.js} +1 -1
  67. package/dist/{chunk-HYVYYODN.js → chunk-M6EVTMTK.js} +1 -1
  68. package/dist/chunk-MO5YV3XV.js +899 -0
  69. package/dist/{chunk-XQWWA2LG.js → chunk-PAJAGGSE.js} +19 -51
  70. package/dist/{chunk-NHQ7O4DG.js → chunk-PF6X74C5.js} +3 -3
  71. package/dist/{chunk-SBVTOIFP.js → chunk-PMO6W5NE.js} +2 -2
  72. package/dist/chunk-WSIJDWUG.js +10 -0
  73. package/dist/{chunk-O5CEG7TQ.js → chunk-XLMURU75.js} +1 -6
  74. package/dist/{chunk-V3QWPHY4.js → chunk-XRKBPNX4.js} +1 -1
  75. package/dist/generated/index.js +77 -77
  76. package/dist/index.js +77 -77
  77. package/dist/styles.css +492 -33
  78. package/dist/utils/titleIfCut.d.ts +18 -0
  79. package/package.json +3 -3
  80. package/dist/chunk-CCNAGB3F.js +0 -591
  81. package/dist/chunk-CTQZK5J3.js +0 -8
  82. package/dist/chunk-ERESJG6C.js +0 -353
  83. package/dist/{Editor-XRI2NOO5.js → Editor-YHHCK5SJ.js} +2 -2
  84. package/dist/{chunk-NRMF2PKX.js → chunk-3Z2BSKS5.js} +1 -1
  85. package/dist/{chunk-6IAW2ZIE.js → chunk-5KJOG5YP.js} +2 -2
  86. package/dist/{chunk-HBHKMFAH.js → chunk-7L6JJ7VJ.js} +1 -1
  87. package/dist/{chunk-HEXH3HQJ.js → chunk-A5ISYHW7.js} +2 -2
  88. package/dist/{chunk-CRRW4UGJ.js → chunk-AC255TMQ.js} +1 -1
  89. package/dist/{chunk-YPXXDYTR.js → chunk-AP6SM6BL.js} +1 -1
  90. package/dist/{chunk-QCCWXOKK.js → chunk-DK7CXQFY.js} +1 -1
  91. package/dist/{chunk-GCKHZMWG.js → chunk-E23AXDKL.js} +1 -1
  92. package/dist/{chunk-V6CVW6PF.js → chunk-GA773IOZ.js} +1 -1
  93. package/dist/{chunk-TXQ6FZJL.js → chunk-HU5PAZMU.js} +1 -1
  94. package/dist/{chunk-CTHZHMVG.js → chunk-IA3NL54W.js} +1 -1
  95. package/dist/{chunk-3JE6YIG5.js → chunk-JZADK2FT.js} +2 -2
  96. package/dist/{chunk-S4JRQJEP.js → chunk-LNQSNXGJ.js} +1 -1
  97. package/dist/{chunk-HR5O6PSR.js → chunk-MTKHMGJH.js} +1 -1
  98. package/dist/{chunk-NIZRR2NN.js → chunk-OAKECTYH.js} +1 -1
  99. package/dist/{chunk-I2GJLUU3.js → chunk-OU6ZSWEJ.js} +1 -1
  100. package/dist/{chunk-LNXL22Y7.js → chunk-RSI6EJSH.js} +1 -1
  101. package/dist/{chunk-BGRYFVSK.js → chunk-XHQ2JJCB.js} +1 -1
  102. package/dist/{chunk-CQAR3F33.js → chunk-XLVWSNW3.js} +1 -1
@@ -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);
@@ -412,17 +547,53 @@ button.crewlet-data-grid__row-link {
412
547
  .crewlet-data-grid__cell--shrink {
413
548
  white-space: nowrap;
414
549
  overflow: clip;
550
+ /* A control's focus ring stands up to 4px off it (2px at a 2px offset):
551
+ clipped at the cell's edge, a More button's ring was cut to specks. */
552
+ overflow-clip-margin: 4px;
415
553
  }
416
554
 
417
555
  /* 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. */
556
+ "53s ago" and "12h ago" end on one edge and their digits stand in columns.
557
+ `safe`: a value wider than its clipped track keeps its start and is cut at
558
+ its end, where end alignment overflowed the start ("1d ago" read "ago"). */
419
559
  .crewlet-data-grid__cell--right {
420
- justify-content: flex-end;
560
+ justify-content: safe flex-end;
421
561
  font-variant-numeric: tabular-nums;
422
562
  }
423
563
 
424
564
  .crewlet-data-grid__cell--center {
425
- justify-content: center;
565
+ justify-content: safe center;
566
+ }
567
+
568
+ /* A PROSE COLUMN (`overflow: 'wrap'`) breaks over as many lines as it takes,
569
+ anywhere it must, and its row grows to hold it. */
570
+ .crewlet-data-grid__cell--wrap {
571
+ white-space: normal;
572
+ overflow-wrap: anywhere;
573
+ padding-block: var(--spacing-2);
574
+ }
575
+
576
+ /*
577
+ * A COMPACT GRID (`density="compact"`) is a step shorter in its head and in
578
+ * every row, for a grid in a drawer or a side panel read beside something
579
+ * else. The type stays; only the rows' height and their air give.
580
+ */
581
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__head,
582
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__row {
583
+ min-height: var(--size-row-sm);
584
+ }
585
+
586
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__th {
587
+ padding-block: var(--spacing-1);
588
+ }
589
+
590
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__sort {
591
+ margin-block: calc(-1 * var(--spacing-1));
592
+ padding-block: var(--spacing-1);
593
+ }
594
+
595
+ .crewlet-data-grid[data-density='compact'] .crewlet-data-grid__cell {
596
+ padding-block: 0;
426
597
  }
427
598
 
428
599
 
@@ -508,8 +679,6 @@ button.crewlet-data-grid__row-link {
508
679
  .crewlet-data-grid__foot {
509
680
  display: flex;
510
681
  align-items: center;
511
- flex-wrap: wrap;
512
- gap: var(--spacing-1) var(--spacing-3);
513
682
  min-height: var(--size-control-sm);
514
683
  padding: var(--spacing-1) var(--crewlet-data-grid-edge);
515
684
  border-top: 1px solid var(--color-border-default);
@@ -519,6 +688,24 @@ button.crewlet-data-grid__row-link {
519
688
  line-height: var(--font-line-height-tight);
520
689
  }
521
690
 
691
+ /* THE FOOT IS THE TABLE'S OWN ROW GROUP (a tfoot): one row, one cell across
692
+ every column, which lays the caller's words and the grid's notes out on
693
+ one line that wraps. */
694
+ .crewlet-data-grid__foot-group {
695
+ display: block;
696
+ grid-column: 1 / -1;
697
+ min-width: 0;
698
+ }
699
+
700
+ .crewlet-data-grid__foot-cell {
701
+ display: flex;
702
+ flex: 1 1 auto;
703
+ align-items: center;
704
+ flex-wrap: wrap;
705
+ gap: var(--spacing-1) var(--spacing-3);
706
+ min-width: 0;
707
+ }
708
+
522
709
  .crewlet-data-grid__foot-spacer {
523
710
  flex: 1 1 auto;
524
711
  }
@@ -530,8 +717,7 @@ button.crewlet-data-grid__row-link {
530
717
 
531
718
  .crewlet-data-grid__cols-reset {
532
719
  all: unset;
533
- /* After the reset, which takes `grid-column` too. */
534
- grid-column: 1 / -1;
720
+ display: block;
535
721
  padding: var(--spacing-1) var(--crewlet-data-grid-edge);
536
722
  font-size: var(--font-size-2xs);
537
723
  color: var(--color-brand-accent-ink);
@@ -582,7 +768,8 @@ button.crewlet-data-grid__row-link {
582
768
  @media (prefers-reduced-motion: reduce) {
583
769
  .crewlet-data-grid__th,
584
770
  .crewlet-data-grid__row,
585
- .crewlet-data-grid__sort-mark {
771
+ .crewlet-data-grid__sort-mark,
772
+ .crewlet-data-grid__expander svg {
586
773
  transition: none;
587
774
  }
588
775
  }
@@ -616,10 +803,15 @@ button.crewlet-data-grid__row-link {
616
803
  }
617
804
 
618
805
  :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__body,
619
- :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__band {
806
+ :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__band,
807
+ :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__subrow {
620
808
  display: block;
621
809
  }
622
810
 
811
+ :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__subrow-cell {
812
+ padding-inline: var(--crewlet-data-grid-edge);
813
+ }
814
+
623
815
  :where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__row {
624
816
  display: block;
625
817
  padding: var(--spacing-2) var(--crewlet-data-grid-edge);
@@ -729,7 +921,9 @@ button.crewlet-data-grid__row-link {
729
921
  .crewlet-data-grid[data-phone-rows='compact']:where([data-stacked]) .crewlet-data-grid__row {
730
922
  display: flex;
731
923
  flex-wrap: wrap;
732
- align-items: center;
924
+ /* Words stand on one baseline, a key's and a title's and a figure's; a
925
+ control (a box, a handle) is centred on its line. */
926
+ align-items: first baseline;
733
927
  gap: var(--spacing-1) var(--spacing-2);
734
928
  }
735
929
 
@@ -751,9 +945,24 @@ button.crewlet-data-grid__row-link {
751
945
  order: 0;
752
946
  }
753
947
 
754
- /* The title takes the rest of the first line, beside the key. */
948
+ /* The title takes the rest of the first line, beside the key. A control the
949
+ grid draws (selection, handle, expander), a shrink cell and a figure keep
950
+ their own width: taking an equal share, a 16px box stood alone in a third
951
+ of the line and the title wrapped to six narrow lines. */
952
+ .crewlet-data-grid[data-phone-rows='compact']:where([data-stacked]) .crewlet-data-grid__cell--action {
953
+ align-self: center;
954
+ }
955
+
956
+ .crewlet-data-grid[data-phone-rows='compact']:where([data-stacked])
957
+ .crewlet-data-grid__cell[data-lead]:has(.crewlet-table-cell__key) {
958
+ /* Keys of different lengths, so every title starts at one x. */
959
+ min-width: 7ch;
960
+ }
961
+
755
962
  .crewlet-data-grid[data-phone-rows='compact']
756
- .crewlet-data-grid__cell[data-lead]:not(.crewlet-data-grid__cell--shrink) {
963
+ .crewlet-data-grid__cell[data-lead]:not(.crewlet-data-grid__cell--shrink):not(
964
+ .crewlet-data-grid__cell--action
965
+ ):not(.crewlet-data-grid__cell--right):not(.crewlet-data-grid__cell--center) {
757
966
  flex: 1 1 0;
758
967
  min-width: 0;
759
968
  font-weight: var(--font-weight-medium);
@@ -1,16 +1,16 @@
1
- export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-LNXL22Y7.js';
1
+ export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-RSI6EJSH.js';
2
2
  import '../chunk-EMDRNB23.js';
3
3
  import '../chunk-STJ7QBC3.js';
4
4
  import '../chunk-DTIW4CHZ.js';
5
- import '../chunk-JK6WLRYP.js';
6
5
  import '../chunk-RE3FBGQQ.js';
7
6
  import '../chunk-AV2DXAEL.js';
8
7
  import '../chunk-M6G7XLLP.js';
9
- import '../chunk-6KUOHUY5.js';
10
- import '../chunk-XSPCITPN.js';
8
+ import '../chunk-JK6WLRYP.js';
11
9
  import '../chunk-56ES76ST.js';
12
10
  import '../chunk-NICEDVZM.js';
13
11
  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,8 +1,8 @@
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';
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';
2
2
  import '../chunk-FPDIHEM4.js';
3
3
  import '../chunk-AEFR4M2W.js';
4
4
  import '../chunk-63NRTOGO.js';
5
- import '../chunk-LNXL22Y7.js';
5
+ import '../chunk-RSI6EJSH.js';
6
6
  import '../chunk-EMDRNB23.js';
7
7
  import '../chunk-YGRTX67J.js';
8
8
  import '../chunk-STJ7QBC3.js';
@@ -10,17 +10,17 @@ import '../chunk-DTIW4CHZ.js';
10
10
  import '../chunk-NXFTCPF6.js';
11
11
  import '../chunk-EE3DJMSQ.js';
12
12
  import '../chunk-LCAKSEMB.js';
13
- import '../chunk-JK6WLRYP.js';
14
13
  import '../chunk-EJNJMHQG.js';
15
14
  import '../chunk-RE3FBGQQ.js';
16
15
  import '../chunk-AV2DXAEL.js';
17
16
  import '../chunk-M6G7XLLP.js';
18
- import '../chunk-CMAZZY2I.js';
19
- import '../chunk-6KUOHUY5.js';
20
- import '../chunk-XSPCITPN.js';
17
+ import '../chunk-JK6WLRYP.js';
21
18
  import '../chunk-56ES76ST.js';
22
19
  import '../chunk-NICEDVZM.js';
23
20
  import '../chunk-PGCLHYVP.js';
21
+ import '../chunk-CMAZZY2I.js';
22
+ import '../chunk-6KUOHUY5.js';
23
+ import '../chunk-XSPCITPN.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';
4
3
  import '../chunk-EJNJMHQG.js';
5
4
  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';
8
7
  import '../chunk-U2IQNDDR.js';
9
8
  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';
@@ -1,12 +1,12 @@
1
- export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-YPXXDYTR.js';
2
- import '../chunk-JK6WLRYP.js';
1
+ export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-AP6SM6BL.js';
3
2
  import '../chunk-BVML4UVB.js';
4
3
  import '../chunk-YJQXESOJ.js';
5
- import '../chunk-6KUOHUY5.js';
6
- import '../chunk-XSPCITPN.js';
4
+ import '../chunk-JK6WLRYP.js';
7
5
  import '../chunk-56ES76ST.js';
8
6
  import '../chunk-NICEDVZM.js';
9
7
  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-I2GJLUU3.js';
2
- import '../chunk-QRE6JCHS.js';
1
+ export { EditingStatus } from '../chunk-OU6ZSWEJ.js';
3
2
  import '../chunk-EJNJMHQG.js';
4
3
  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';
5
4
  import '../chunk-U2IQNDDR.js';
6
5
  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-HYVYYODN.js';
2
- import '../chunk-I2GJLUU3.js';
3
- import '../chunk-QRE6JCHS.js';
1
+ export { INLINE_EDITOR_LABELS, InlineEditor } from '../chunk-M6EVTMTK.js';
2
+ import '../chunk-OU6ZSWEJ.js';
4
3
  import '../chunk-EJNJMHQG.js';
5
4
  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-TXQ6FZJL.js';
2
- import '../chunk-6KUOHUY5.js';
3
- import '../chunk-XSPCITPN.js';
1
+ export { KeyValueRows, keyValueRowsLabels } from '../chunk-HU5PAZMU.js';
4
2
  import '../chunk-56ES76ST.js';
5
3
  import '../chunk-NICEDVZM.js';
6
4
  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-3JE6YIG5.js';
1
+ export { ListInput, withDraft } from '../chunk-JZADK2FT.js';
2
2
  import '../chunk-BVML4UVB.js';
3
3
  import '../chunk-YJQXESOJ.js';
4
- import '../chunk-CMAZZY2I.js';
5
- import '../chunk-6KUOHUY5.js';
6
- import '../chunk-XSPCITPN.js';
7
4
  import '../chunk-56ES76ST.js';
8
5
  import '../chunk-NICEDVZM.js';
9
6
  import '../chunk-PGCLHYVP.js';
7
+ import '../chunk-CMAZZY2I.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';
@@ -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';
9
8
  import '../chunk-U2IQNDDR.js';
10
9
  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';
@@ -28,7 +28,7 @@ import { type ReactNode, type Ref } from 'react';
28
28
  import { type AddPillProps } from '../AddPill/index.js';
29
29
  import { type OrgLabelContent } from '../OrgLabel/index.js';
30
30
  import { type TreeViewHandle } from '../Tree/index.js';
31
- import { type TreeGridLabels, type TreeGridProps } from '../TreeGrid/index.js';
31
+ import { type TreeGridLabels, type TreeGridProps, type TreeGridSelection } from '../TreeGrid/index.js';
32
32
  import type { TreeCardTone } from '../TreeCanvas/TreeCanvas.js';
33
33
  /**
34
34
  * The hue a row is marked with. The SAME six a `TreeCanvas` card is tinted
@@ -41,19 +41,9 @@ export interface OrgTableLabels extends TreeGridLabels {
41
41
  expandAll: string;
42
42
  collapseAll: string;
43
43
  }
44
- /** A select box before each row's name: see [OrgTableProps.selection]. */
45
- export interface OrgTableSelection {
46
- /**
47
- * Whether a row is picked: `true`, `false`, `'mixed'` for a group only some
48
- * of whose rows are picked, or `null` for a row with no box.
49
- */
50
- checked: (id: string) => boolean | 'mixed' | null;
51
- /** The box's accessible name: "Select Product Lead", "Select every agent in Engineering". */
52
- label: (id: string) => string;
53
- /** A press on a row's box, with the state it asks for. */
54
- onCheckedChange: (id: string, checked: boolean) => void;
55
- }
56
- export interface OrgTableProps extends Omit<TreeGridProps, 'className' | 'labels' | 'ref'> {
44
+ /** A select box before each row's name: `TreeGrid`'s own, drawn after the row's wires. */
45
+ export type OrgTableSelection = TreeGridSelection;
46
+ export interface OrgTableProps extends Omit<TreeGridProps, 'className' | 'labels' | 'ref' | 'renderIndent'> {
57
47
  /**
58
48
  * The hue this row is marked with, or nothing for a neutral row. Asked per
59
49
  * row, because a chart derives it from the node's own identity.
@@ -65,16 +55,11 @@ export interface OrgTableProps extends Omit<TreeGridProps, 'className' | 'labels
65
55
  * walk a level at a time.
66
56
  */
67
57
  controls?: boolean | undefined;
68
- /**
69
- * A select box before each row's name, after its indent, in a slot every row
70
- * keeps so the names stay in line whichever rows have a box.
71
- */
72
- selection?: OrgTableSelection | undefined;
73
58
  labels?: Partial<OrgTableLabels> | undefined;
74
59
  ref?: Ref<TreeViewHandle> | undefined;
75
60
  className?: string | undefined;
76
61
  }
77
- export declare function OrgTable({ rows, renderCell, tone, controls, selection, cellHasControl, layout, labels, ref, className, ...rest }: OrgTableProps): import("react").JSX.Element;
62
+ export declare function OrgTable({ rows, tone, controls, selection, layout, labels, ref, className, ...rest }: OrgTableProps): import("react").JSX.Element;
78
63
  /**
79
64
  * A row's mark, name and what kind of thing it is: the org table's name cell.
80
65
  *
@@ -1,16 +1,23 @@
1
- export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-XQWWA2LG.js';
2
- import '../chunk-ERESJG6C.js';
1
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-PAJAGGSE.js';
2
+ import '../chunk-BZUBONYA.js';
3
3
  import '../chunk-MY374UUD.js';
4
4
  import '../chunk-44GFQ4O3.js';
5
- import '../chunk-CTQZK5J3.js';
5
+ import '../chunk-MO5YV3XV.js';
6
+ import '../chunk-WSIJDWUG.js';
6
7
  import '../chunk-X4HBZSXA.js';
8
+ import '../chunk-I4IUX3JF.js';
7
9
  import '../chunk-YTLWOHOY.js';
8
10
  import '../chunk-XZY6S3UC.js';
11
+ import '../chunk-BVML4UVB.js';
9
12
  import '../chunk-M6G7XLLP.js';
13
+ import '../chunk-YJQXESOJ.js';
14
+ import '../chunk-PPUR46MK.js';
10
15
  import '../chunk-DVRECWCB.js';
11
16
  import '../chunk-56ES76ST.js';
12
17
  import '../chunk-NICEDVZM.js';
13
18
  import '../chunk-PGCLHYVP.js';
19
+ import '../chunk-6KUOHUY5.js';
20
+ import '../chunk-XSPCITPN.js';
14
21
  import '../chunk-WDLAAZFZ.js';
15
22
  import '../chunk-TDFLCUBE.js';
16
23
  import '../chunk-QZKGFBAR.js';
@@ -92,23 +92,32 @@
92
92
  min-width: 0;
93
93
  }
94
94
 
95
- /* THE NAME COLUMN'S HEADING STANDS OVER THE NAMES, not over the chevrons. */
95
+ /* THE NAME COLUMN'S HEADING STANDS OVER THE NAMES, not over the chevrons.
96
+ Its start inset too, so a sort button filling the head takes the same
97
+ inset back and the whole cell stays the target. */
96
98
  .crewlet-org-table [role='columnheader'][aria-colindex='1'] {
99
+ --crewlet-tree-grid-cell-start: var(--crewlet-org-table-name-start);
100
+
97
101
  padding-inline-start: var(--crewlet-org-table-name-start);
98
102
  }
99
103
 
100
104
  /* With a select box, the names start one slot and one gap further in. */
101
105
  .crewlet-org-table[data-select] [role='columnheader'][aria-colindex='1'] {
106
+ --crewlet-tree-grid-cell-start: calc(
107
+ var(--crewlet-org-table-name-start) + var(--size-target-min) + var(--spacing-2)
108
+ );
109
+
102
110
  padding-inline-start: calc(var(--crewlet-org-table-name-start) + var(--size-target-min) + var(--spacing-2));
103
111
  }
104
112
 
105
- /* THE SELECT BOX'S SLOT, kept on every row, so a row with no box keeps its name in line. */
106
- .crewlet-org-table__select {
107
- display: inline-flex;
108
- flex: none;
109
- align-items: center;
110
- justify-content: center;
111
- width: var(--size-target-min);
113
+ /* A ROW DRAWN AS A CARD (`phoneRows`) starts its values' lines under its
114
+ name: the cell's inset, the chevron, the wire's level and its gap. Set on
115
+ the row, which carries its depth; its cells inherit the length. */
116
+ .crewlet-org-table [role='row'] {
117
+ --crewlet-tree-grid-value-indent: calc(
118
+ var(--spacing-2) * 2 + var(--size-control-sm) + var(--crewlet-org-table-indent) *
119
+ var(--crewlet-tree-grid-depth, 0)
120
+ );
112
121
  }
113
122
 
114
123
  /* A CONTAINER-WIDTH TABLE steps its indent in as it narrows, so a nested
@@ -207,7 +216,18 @@
207
216
  */
208
217
  .crewlet-org-table [role='gridcell']:last-child,
209
218
  .crewlet-org-table [role='columnheader']:last-child {
210
- justify-content: flex-end;
219
+ justify-content: safe flex-end;
220
+ }
221
+
222
+ /* AND A LAST HEAD THAT SORTS ENDS WITH ITS VALUES: its button fills the head,
223
+ so the button takes the end, and its arrow goes before the word, as a
224
+ right-aligned head's does, so the word stays on the column's edge. */
225
+ .crewlet-org-table [role='columnheader']:last-child > .crewlet-data-grid__sort {
226
+ justify-content: safe flex-end;
227
+ }
228
+
229
+ .crewlet-org-table [role='columnheader']:last-child .crewlet-data-grid__sort-mark {
230
+ order: -1;
211
231
  }
212
232
 
213
233
  .crewlet-org-table__wire {
@@ -1,7 +1,7 @@
1
- export { PEEK_RAIL_LABELS, PEEK_RAIL_MAX_WIDTH, PEEK_RAIL_MIN_WIDTH, PEEK_RAIL_WIDTH, PeekHost, PeekNeighbours, PeekRail, isPlainPress, peekClickHandler, peekRowActivation, usePeekNeighbours, usePeekOrder, usePeekStep } from '../chunk-BGRYFVSK.js';
1
+ export { PEEK_RAIL_LABELS, PEEK_RAIL_MAX_WIDTH, PEEK_RAIL_MIN_WIDTH, PEEK_RAIL_WIDTH, PeekHost, PeekNeighbours, PeekRail, isPlainPress, peekClickHandler, peekRowActivation, usePeekNeighbours, usePeekOrder, usePeekStep } from '../chunk-XHQ2JJCB.js';
2
+ import '../chunk-PIYJNCN7.js';
2
3
  import '../chunk-6KUOHUY5.js';
3
4
  import '../chunk-XSPCITPN.js';
4
- import '../chunk-PIYJNCN7.js';
5
5
  import '../chunk-2YTOOH3A.js';
6
6
  import '../chunk-WDLAAZFZ.js';
7
7
  import '../chunk-TDFLCUBE.js';