@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.
- package/dist/AgentHandoffPanel/index.js +1 -1
- package/dist/AppShell/index.js +3 -3
- package/dist/ArtifactCard/index.js +3 -3
- package/dist/ContrastBadge/index.js +2 -2
- package/dist/ContrastHelp/index.js +3 -3
- package/dist/DataGrid/DataGrid.d.ts +127 -41
- package/dist/DataGrid/index.d.ts +1 -1
- package/dist/DataGrid/index.js +4 -2
- package/dist/DataGrid/parts.d.ts +163 -0
- package/dist/{DataGrid-SAHEL4SN.css → DataGrid-ERDIPEWV.css} +205 -16
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/LogoSlot/index.js +3 -3
- package/dist/OrgTable/OrgTable.d.ts +5 -20
- package/dist/OrgTable/index.js +10 -3
- package/dist/{OrgTable-XYHEFI5X.css → OrgTable-5NXRECVP.css} +29 -9
- package/dist/PeekRail/index.js +2 -2
- package/dist/RailList/index.js +3 -2
- package/dist/RelatedRow/index.js +3 -2
- package/dist/SetupWizard/index.js +1 -1
- package/dist/SlideFilmstrip/index.js +2 -2
- package/dist/TableCells/TableCells.d.ts +10 -2
- package/dist/TableCells/index.js +3 -2
- package/dist/Text/index.js +2 -1
- package/dist/TreeGrid/TreeGrid.d.ts +143 -12
- package/dist/TreeGrid/index.d.ts +1 -1
- package/dist/TreeGrid/index.js +15 -2
- package/dist/{TreeGrid-H3GHMKZX.css → TreeGrid-XZCH5WCC.css} +232 -2
- package/dist/{chunk-G44KKOMB.js → chunk-2LLMUJFB.js} +1 -1
- package/dist/{chunk-BK4KUIAZ.js → chunk-AP6JSZGT.js} +12 -4
- package/dist/chunk-FL5DTFF3.js +557 -0
- package/dist/{chunk-CL3FWLDO.js → chunk-HI47TXSW.js} +1 -1
- package/dist/{chunk-XQWWA2LG.js → chunk-IQO6YDEM.js} +19 -51
- package/dist/{chunk-HTCNTCBE.js → chunk-KMMRKMBQ.js} +1 -1
- package/dist/chunk-LIRXQOTR.js +892 -0
- package/dist/{chunk-CQIODINH.js → chunk-M2DHVN6T.js} +1 -1
- package/dist/chunk-WSIJDWUG.js +10 -0
- package/dist/{chunk-O5CEG7TQ.js → chunk-XLMURU75.js} +1 -6
- package/dist/generated/index.js +61 -61
- package/dist/index.js +61 -61
- package/dist/styles.css +469 -30
- package/dist/utils/titleIfCut.d.ts +18 -0
- package/package.json +3 -3
- package/dist/chunk-CCNAGB3F.js +0 -591
- package/dist/chunk-CTQZK5J3.js +0 -8
- package/dist/chunk-ERESJG6C.js +0 -353
- package/dist/{chunk-HEXH3HQJ.js → chunk-A5ISYHW7.js} +2 -2
- package/dist/{chunk-YPXXDYTR.js → chunk-AP6SM6BL.js} +1 -1
- package/dist/{chunk-GCKHZMWG.js → chunk-E23AXDKL.js} +1 -1
- package/dist/{chunk-HBHKMFAH.js → chunk-K2GVWTHA.js} +2 -2
- package/dist/{chunk-EW4ULFHK.js → chunk-WTJU7MAG.js} +1 -1
- package/dist/{chunk-BGRYFVSK.js → chunk-XHQ2JJCB.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
|
|
361
|
-
|
|
362
|
-
.
|
|
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
|
-
|
|
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,7 +1,7 @@
|
|
|
1
|
-
export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-
|
|
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';
|
|
4
|
+
import '../chunk-JK6WLRYP.js';
|
|
5
5
|
import '../chunk-6KUOHUY5.js';
|
|
6
6
|
import '../chunk-XSPCITPN.js';
|
|
7
7
|
import '../chunk-56ES76ST.js';
|
package/dist/LogoSlot/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { LogoSlot, LogoSlotGroup } from '../chunk-
|
|
1
|
+
export { LogoSlot, LogoSlotGroup } from '../chunk-M2DHVN6T.js';
|
|
2
2
|
import '../chunk-N7H5TFQK.js';
|
|
3
|
-
import '../chunk-
|
|
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';
|
|
@@ -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:
|
|
45
|
-
export
|
|
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,
|
|
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
|
*
|
package/dist/OrgTable/index.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-IQO6YDEM.js';
|
|
2
|
+
import '../chunk-FL5DTFF3.js';
|
|
3
3
|
import '../chunk-MY374UUD.js';
|
|
4
4
|
import '../chunk-44GFQ4O3.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-LIRXQOTR.js';
|
|
6
|
+
import '../chunk-WSIJDWUG.js';
|
|
6
7
|
import '../chunk-X4HBZSXA.js';
|
|
8
|
+
import '../chunk-BVML4UVB.js';
|
|
9
|
+
import '../chunk-YJQXESOJ.js';
|
|
10
|
+
import '../chunk-I4IUX3JF.js';
|
|
7
11
|
import '../chunk-YTLWOHOY.js';
|
|
8
12
|
import '../chunk-XZY6S3UC.js';
|
|
9
13
|
import '../chunk-M6G7XLLP.js';
|
|
14
|
+
import '../chunk-PPUR46MK.js';
|
|
10
15
|
import '../chunk-DVRECWCB.js';
|
|
16
|
+
import '../chunk-6KUOHUY5.js';
|
|
17
|
+
import '../chunk-XSPCITPN.js';
|
|
11
18
|
import '../chunk-56ES76ST.js';
|
|
12
19
|
import '../chunk-NICEDVZM.js';
|
|
13
20
|
import '../chunk-PGCLHYVP.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
|
-
/*
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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 {
|
package/dist/PeekRail/index.js
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/RailList/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { RAIL_LIST_LABELS, RailList } from '../chunk-
|
|
1
|
+
export { RAIL_LIST_LABELS, RailList } from '../chunk-2LLMUJFB.js';
|
|
2
2
|
import '../chunk-IAR2ULSK.js';
|
|
3
3
|
import '../chunk-BRK3HXGZ.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-XLMURU75.js';
|
|
5
|
+
import '../chunk-WSIJDWUG.js';
|
|
5
6
|
import '../chunk-YGRTX67J.js';
|
|
6
7
|
import '../chunk-TEV5REGB.js';
|
|
7
8
|
import '../chunk-HBDA76EZ.js';
|
package/dist/RelatedRow/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { RelatedRow } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { RelatedRow } from '../chunk-HI47TXSW.js';
|
|
2
|
+
import '../chunk-XLMURU75.js';
|
|
3
3
|
import '../chunk-ZAC7SKUN.js';
|
|
4
|
+
import '../chunk-WSIJDWUG.js';
|
|
4
5
|
import '../chunk-U2IQNDDR.js';
|
|
5
6
|
import '../chunk-AV2DXAEL.js';
|
|
6
7
|
import '../chunk-D2GT3CR4.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { SetupWizard } from '../chunk-MFZBLJYF.js';
|
|
2
2
|
import '../chunk-LIDKF3LL.js';
|
|
3
3
|
import '../chunk-FPDIHEM4.js';
|
|
4
|
-
import '../chunk-QRE6JCHS.js';
|
|
5
4
|
import '../chunk-YJQXESOJ.js';
|
|
5
|
+
import '../chunk-QRE6JCHS.js';
|
|
6
6
|
import '../chunk-NAHA62WD.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
8
8
|
import '../chunk-ULYHDP7U.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { SlideFilmstrip } from '../chunk-
|
|
1
|
+
export { SlideFilmstrip } from '../chunk-E23AXDKL.js';
|
|
2
2
|
import '../chunk-O6EV6GKI.js';
|
|
3
|
-
import '../chunk-JK6WLRYP.js';
|
|
4
3
|
import '../chunk-BVML4UVB.js';
|
|
5
4
|
import '../chunk-YJQXESOJ.js';
|
|
5
|
+
import '../chunk-JK6WLRYP.js';
|
|
6
6
|
import '../chunk-CMAZZY2I.js';
|
|
7
7
|
import '../chunk-6KUOHUY5.js';
|
|
8
8
|
import '../chunk-XSPCITPN.js';
|
|
@@ -127,6 +127,13 @@ export interface TableTagsCellProps {
|
|
|
127
127
|
export declare function TableTagsCell({ tags, max, emptyLabel, labels: overrides }: TableTagsCellProps): import("react").JSX.Element;
|
|
128
128
|
export type TableTextCellProps = {
|
|
129
129
|
children: ReactNode;
|
|
130
|
+
/**
|
|
131
|
+
* The hover text. Left out, a cut value carries its own whole words on hover
|
|
132
|
+
* while it is cut, and a value that fits carries none. Given, it is the
|
|
133
|
+
* hover text whether or not the value is cut (an exact time under a
|
|
134
|
+
* relative one).
|
|
135
|
+
*/
|
|
136
|
+
title?: string | undefined;
|
|
130
137
|
} & ({
|
|
131
138
|
/**
|
|
132
139
|
* A mark every row of the column wears, such as the column's own glyph.
|
|
@@ -143,14 +150,15 @@ export type TableTextCellProps = {
|
|
|
143
150
|
mark: ReactNode;
|
|
144
151
|
});
|
|
145
152
|
/**
|
|
146
|
-
* Plain text with an optional leading mark, cut on one line
|
|
153
|
+
* Plain text with an optional leading mark, cut on one line, its whole words
|
|
154
|
+
* on hover while they are cut.
|
|
147
155
|
*
|
|
148
156
|
* TWO SPELLINGS OF ONE SLOT, because a column's mark and a row's mark are
|
|
149
157
|
* different facts: `icon` is the column's and is hidden, `mark` is the row's
|
|
150
158
|
* and is read. Exactly one of the two, enforced by the type: a cell given both
|
|
151
159
|
* would draw the column's answer over the row's.
|
|
152
160
|
*/
|
|
153
|
-
export declare function TableTextCell({ children, icon, mark }: TableTextCellProps): import("react").JSX.Element;
|
|
161
|
+
export declare function TableTextCell({ children, title, icon, mark }: TableTextCellProps): import("react").JSX.Element;
|
|
154
162
|
/** Which of a two-line cell's lines is a literal, set in the mono face. */
|
|
155
163
|
export type TableTwoLineCellMono = 'value' | 'detail' | 'both';
|
|
156
164
|
export type TableTwoLineCellProps = {
|
package/dist/TableCells/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-AP6JSZGT.js';
|
|
2
|
+
import '../chunk-XLMURU75.js';
|
|
3
3
|
import '../chunk-2PB5D4TI.js';
|
|
4
|
+
import '../chunk-WSIJDWUG.js';
|
|
4
5
|
import '../chunk-SJ3EUCFD.js';
|
|
5
6
|
import '../chunk-QRE6JCHS.js';
|
|
6
7
|
import '../chunk-EJNJMHQG.js';
|
package/dist/Text/index.js
CHANGED