@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
@@ -1,13 +1,13 @@
1
- export { PrincipalPicker } from '../chunk-G6QKJGQQ.js';
2
- import '../chunk-CRRW4UGJ.js';
1
+ export { PrincipalPicker } from '../chunk-L72GPZ56.js';
2
+ import '../chunk-AC255TMQ.js';
3
3
  import '../chunk-YGRTX67J.js';
4
4
  import '../chunk-HF5L56YQ.js';
5
5
  import '../chunk-YTLWOHOY.js';
6
6
  import '../chunk-XZY6S3UC.js';
7
- import '../chunk-2YTOOH3A.js';
8
7
  import '../chunk-56ES76ST.js';
9
8
  import '../chunk-NICEDVZM.js';
10
9
  import '../chunk-PGCLHYVP.js';
10
+ import '../chunk-2YTOOH3A.js';
11
11
  import '../chunk-WDLAAZFZ.js';
12
12
  import '../chunk-TDFLCUBE.js';
13
13
  import '../chunk-QZKGFBAR.js';
@@ -4,16 +4,16 @@ import '../chunk-U4JZ2EXG.js';
4
4
  import '../chunk-LR4IWUWQ.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';
10
9
  import '../chunk-M6G7XLLP.js';
10
+ import '../chunk-QRE6JCHS.js';
11
11
  import '../chunk-NAHA62WD.js';
12
- import '../chunk-6KUOHUY5.js';
13
- import '../chunk-XSPCITPN.js';
14
12
  import '../chunk-56ES76ST.js';
15
13
  import '../chunk-NICEDVZM.js';
16
14
  import '../chunk-PGCLHYVP.js';
15
+ import '../chunk-6KUOHUY5.js';
16
+ import '../chunk-XSPCITPN.js';
17
17
  import '../chunk-WDLAAZFZ.js';
18
18
  import '../chunk-TDFLCUBE.js';
19
19
  import '../chunk-QZKGFBAR.js';
@@ -1,7 +1,8 @@
1
- export { RAIL_LIST_LABELS, RailList } from '../chunk-G44KKOMB.js';
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-O5CEG7TQ.js';
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';
@@ -1,9 +1,9 @@
1
1
  export { REFUSAL_CARD_LABELS, RefusalCard } from '../chunk-GKBH5JHE.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,6 +1,7 @@
1
- export { RelatedRow } from '../chunk-CL3FWLDO.js';
2
- import '../chunk-O5CEG7TQ.js';
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';
@@ -5,9 +5,9 @@ import '../chunk-YNRKVY7X.js';
5
5
  import '../chunk-DTIW4CHZ.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';
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-V3QWPHY4.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-XRKBPNX4.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KBZO4B33.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,4 +1,4 @@
1
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-HR5O6PSR.js';
1
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-MTKHMGJH.js';
2
2
  import '../chunk-IAR2ULSK.js';
3
3
  import '../chunk-EMDRNB23.js';
4
4
  import '../chunk-YGRTX67J.js';
@@ -6,10 +6,10 @@ import '../chunk-ZGKGSW42.js';
6
6
  import '../chunk-STJ7QBC3.js';
7
7
  import '../chunk-DTIW4CHZ.js';
8
8
  import '../chunk-BPCY7ZID.js';
9
- import '../chunk-YJQXESOJ.js';
10
9
  import '../chunk-HF5L56YQ.js';
11
10
  import '../chunk-YTLWOHOY.js';
12
11
  import '../chunk-XZY6S3UC.js';
12
+ import '../chunk-YJQXESOJ.js';
13
13
  import '../chunk-6KUOHUY5.js';
14
14
  import '../chunk-XSPCITPN.js';
15
15
  import '../chunk-2YTOOH3A.js';
@@ -1,4 +1,4 @@
1
- export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-6IAW2ZIE.js';
1
+ export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-5KJOG5YP.js';
2
2
  import '../chunk-IAR2ULSK.js';
3
3
  import '../chunk-FFMCMSJB.js';
4
4
  import '../chunk-YGRTX67J.js';
@@ -6,19 +6,19 @@ import '../chunk-LFSIKGRQ.js';
6
6
  import '../chunk-Z7JYG5TF.js';
7
7
  import '../chunk-PJMDZEWY.js';
8
8
  import '../chunk-AYKXMIOR.js';
9
+ import '../chunk-M6G7XLLP.js';
9
10
  import '../chunk-FP6OFRAU.js';
10
11
  import '../chunk-IYJCJOHW.js';
11
12
  import '../chunk-EGMQURBR.js';
12
13
  import '../chunk-QRE6JCHS.js';
13
14
  import '../chunk-JK6WLRYP.js';
14
- import '../chunk-M6G7XLLP.js';
15
+ import '../chunk-56ES76ST.js';
16
+ import '../chunk-NICEDVZM.js';
17
+ import '../chunk-PGCLHYVP.js';
15
18
  import '../chunk-CMAZZY2I.js';
16
19
  import '../chunk-6KUOHUY5.js';
17
20
  import '../chunk-XSPCITPN.js';
18
21
  import '../chunk-2YTOOH3A.js';
19
- import '../chunk-56ES76ST.js';
20
- import '../chunk-NICEDVZM.js';
21
- import '../chunk-PGCLHYVP.js';
22
22
  import '../chunk-WDLAAZFZ.js';
23
23
  import '../chunk-TDFLCUBE.js';
24
24
  import '../chunk-QZKGFBAR.js';
@@ -1,4 +1,4 @@
1
- export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-NIZRR2NN.js';
1
+ export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-OAKECTYH.js';
2
2
  import '../chunk-UEOEBOBR.js';
3
3
  import '../chunk-CENOOTAV.js';
4
4
  import '../chunk-MMCYH5LB.js';
@@ -9,10 +9,10 @@ import '../chunk-Z7JYG5TF.js';
9
9
  import '../chunk-SJ3EUCFD.js';
10
10
  import '../chunk-LCAKSEMB.js';
11
11
  import '../chunk-AYKXMIOR.js';
12
- import '../chunk-QRE6JCHS.js';
13
- import '../chunk-JK6WLRYP.js';
14
12
  import '../chunk-YTLWOHOY.js';
15
13
  import '../chunk-XZY6S3UC.js';
14
+ import '../chunk-QRE6JCHS.js';
15
+ import '../chunk-JK6WLRYP.js';
16
16
  import '../chunk-6KUOHUY5.js';
17
17
  import '../chunk-XSPCITPN.js';
18
18
  import '../chunk-WDLAAZFZ.js';
@@ -1,8 +1,8 @@
1
- export { SlideFilmstrip } from '../chunk-GCKHZMWG.js';
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';
@@ -1,8 +1,8 @@
1
1
  export { StatusCard } from '../chunk-4BEMS6Q7.js';
2
2
  import '../chunk-SJ3EUCFD.js';
3
- import '../chunk-QRE6JCHS.js';
4
3
  import '../chunk-U2IQNDDR.js';
5
4
  import '../chunk-AV2DXAEL.js';
5
+ import '../chunk-QRE6JCHS.js';
6
6
  import '../chunk-D2GT3CR4.js';
7
7
  import '../chunk-PQADV6P6.js';
8
8
  import '../chunk-UT6CW3C7.js';
@@ -1,15 +1,15 @@
1
- export { Switcher } from '../chunk-CQAR3F33.js';
1
+ export { Switcher } from '../chunk-XLVWSNW3.js';
2
2
  import '../chunk-EMDRNB23.js';
3
3
  import '../chunk-YGRTX67J.js';
4
4
  import '../chunk-HBDA76EZ.js';
5
5
  import '../chunk-LCAKSEMB.js';
6
- import '../chunk-YJQXESOJ.js';
7
6
  import '../chunk-I4IUX3JF.js';
8
- import '../chunk-6KUOHUY5.js';
9
- import '../chunk-XSPCITPN.js';
7
+ import '../chunk-YJQXESOJ.js';
10
8
  import '../chunk-56ES76ST.js';
11
9
  import '../chunk-NICEDVZM.js';
12
10
  import '../chunk-PGCLHYVP.js';
11
+ import '../chunk-6KUOHUY5.js';
12
+ import '../chunk-XSPCITPN.js';
13
13
  import '../chunk-WDLAAZFZ.js';
14
14
  import '../chunk-TDFLCUBE.js';
15
15
  import '../chunk-QZKGFBAR.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 = {
@@ -1,11 +1,12 @@
1
- export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-BK4KUIAZ.js';
2
- import '../chunk-O5CEG7TQ.js';
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
- import '../chunk-QRE6JCHS.js';
6
6
  import '../chunk-EJNJMHQG.js';
7
7
  import '../chunk-RE3FBGQQ.js';
8
8
  import '../chunk-YTLWOHOY.js';
9
9
  import '../chunk-XZY6S3UC.js';
10
+ import '../chunk-QRE6JCHS.js';
10
11
  import '../chunk-UT6CW3C7.js';
11
12
  import '../chunk-ODEQTPFM.js';
@@ -1,2 +1,3 @@
1
- export { Text } from '../chunk-O5CEG7TQ.js';
1
+ export { Text } from '../chunk-XLMURU75.js';
2
+ import '../chunk-WSIJDWUG.js';
2
3
  import '../chunk-ODEQTPFM.js';
@@ -1,6 +1,6 @@
1
1
  export { THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-JXDJVUWN.js';
2
2
  import '../chunk-SJ3EUCFD.js';
3
- import '../chunk-QRE6JCHS.js';
4
3
  import '../chunk-YTLWOHOY.js';
5
4
  import '../chunk-XZY6S3UC.js';
5
+ import '../chunk-QRE6JCHS.js';
6
6
  import '../chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-CTHZHMVG.js';
1
+ export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-IA3NL54W.js';
2
2
  import '../chunk-EMDRNB23.js';
3
3
  import '../chunk-BPCY7ZID.js';
4
4
  import '../chunk-XOVSHJTZ.js';
@@ -7,12 +7,12 @@ import '../chunk-IYJCJOHW.js';
7
7
  import '../chunk-EGMQURBR.js';
8
8
  import '../chunk-QRE6JCHS.js';
9
9
  import '../chunk-JK6WLRYP.js';
10
- import '../chunk-6KUOHUY5.js';
11
- import '../chunk-XSPCITPN.js';
12
- import '../chunk-2YTOOH3A.js';
13
10
  import '../chunk-56ES76ST.js';
14
11
  import '../chunk-NICEDVZM.js';
15
12
  import '../chunk-PGCLHYVP.js';
13
+ import '../chunk-6KUOHUY5.js';
14
+ import '../chunk-XSPCITPN.js';
15
+ import '../chunk-2YTOOH3A.js';
16
16
  import '../chunk-WDLAAZFZ.js';
17
17
  import '../chunk-TDFLCUBE.js';
18
18
  import '../chunk-QZKGFBAR.js';
@@ -1,14 +1,14 @@
1
- export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-NRMF2PKX.js';
1
+ export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-3Z2BSKS5.js';
2
2
  import '../chunk-IAR2ULSK.js';
3
3
  import '../chunk-YGRTX67J.js';
4
4
  import '../chunk-EE3DJMSQ.js';
5
5
  import '../chunk-LCAKSEMB.js';
6
- import '../chunk-6KUOHUY5.js';
7
- import '../chunk-XSPCITPN.js';
8
- import '../chunk-2YTOOH3A.js';
9
6
  import '../chunk-56ES76ST.js';
10
7
  import '../chunk-NICEDVZM.js';
11
8
  import '../chunk-PGCLHYVP.js';
9
+ import '../chunk-6KUOHUY5.js';
10
+ import '../chunk-XSPCITPN.js';
11
+ import '../chunk-2YTOOH3A.js';
12
12
  import '../chunk-WDLAAZFZ.js';
13
13
  import '../chunk-TDFLCUBE.js';
14
14
  import '../chunk-QZKGFBAR.js';
@@ -29,16 +29,41 @@
29
29
  * Ported from the generic half of the engine dashboard's org builder outline.
30
30
  */
31
31
  import { type KeyboardEvent, type MouseEvent, type ReactNode, type Ref } from 'react';
32
- import { type TreeDefaultExpanded, type TreeInput, type TreeItemAction, type TreeViewHandle } from '../Tree/index.js';
32
+ import { type GridAlign, type GridFootLabels } from '../DataGrid/parts.js';
33
+ import { type TreeDefaultExpanded, type TreeInput, type TreeItemAction, type TreeModel, type TreeViewHandle } from '../Tree/index.js';
33
34
  export interface TreeGridColumn {
34
35
  key: string;
35
- /** The column's name. */
36
- header: string;
36
+ /** The column's name: a word, or a glyph named by `label`. */
37
+ header: ReactNode;
37
38
  /**
38
39
  * Read but not seen, for a column whose heading would be noise in the sight
39
40
  * of it and is still the only thing a screen reader has (an actions column).
40
41
  */
41
42
  headerHidden?: boolean | undefined;
43
+ /**
44
+ * The value a row is ordered by among its SIBLINGS, never across parents:
45
+ * the hierarchy stays the order, and a sort orders each level of it.
46
+ */
47
+ sortValue?: ((id: string) => string | number | null | undefined) | undefined;
48
+ /**
49
+ * Whether the head is a sort button. Defaults to whether `sortValue` is set;
50
+ * a `serverSorted` grid sets it alone, its source ordering each level.
51
+ */
52
+ sortable?: boolean | undefined;
53
+ /**
54
+ * Which edge the column's values and its head share, as a DataGrid column's:
55
+ * `right` for figures, times and dates, `center` for one mark per row.
56
+ */
57
+ align?: GridAlign | undefined;
58
+ /** A column of ONE MARK per row: a fixed track, its head and cells centred. Name it with `label`. */
59
+ icon?: boolean | undefined;
60
+ /** The column's name where `header` cannot carry one: a glyph head, a hidden one, the phone's card. */
61
+ label?: string | undefined;
62
+ /**
63
+ * A column of ROW CONTROLS that name themselves: its head is read but not
64
+ * seen, it never sorts, and a phone's card draws no name beside it.
65
+ */
66
+ action?: boolean | undefined;
42
67
  /**
43
68
  * An exact track, in place of the default flexible one. A column whose values a
44
69
  * live push changes takes a length: the track list is the whole table's, so a
@@ -57,9 +82,20 @@ export interface TreeGridColumn {
57
82
  * the point of the list, which at zero gave way to every column beside it.
58
83
  */
59
84
  floor?: string | undefined;
85
+ /**
86
+ * The order this column GIVES WAY in when the grid cannot draw every column
87
+ * at its size, as a DataGrid column's: the lowest number goes first, a
88
+ * column without one never goes, and the foot names what went.
89
+ */
90
+ drop?: number | undefined;
91
+ /** Hidden unless the column set (`cols`) names it. */
92
+ optional?: boolean | undefined;
60
93
  /**
61
94
  * The grid's own width, in CSS pixels, below which this column is left out
62
95
  * with its header. A cell's words can then move into another column's.
96
+ *
97
+ * @deprecated Use `drop`, which gives way by measurement and says so in the
98
+ * foot; a pixel width says nothing to the reader.
63
99
  */
64
100
  hideBelow?: number | undefined;
65
101
  /**
@@ -75,6 +111,18 @@ export interface TreeGridAddRow {
75
111
  /** How many cells it has, which is what End and Right count to. */
76
112
  cells: number;
77
113
  }
114
+ /** A select box before each row's name, after its indent: see [TreeGridProps.selection]. */
115
+ export interface TreeGridSelection {
116
+ /**
117
+ * Whether a row is picked: `true`, `false`, `'mixed'` for a group only some
118
+ * of whose rows are picked, or `null` for a row with no box.
119
+ */
120
+ checked: (id: string) => boolean | 'mixed' | null;
121
+ /** The box's accessible name: "Select Product Lead", "Select every agent in Engineering". */
122
+ label: (id: string) => string;
123
+ /** A press on a row's box, with the state it asks for. */
124
+ onCheckedChange: (id: string, checked: boolean) => void;
125
+ }
78
126
  /** What a cell needs from the grid it is drawn in. */
79
127
  export interface TreeGridContext {
80
128
  expanded(id: string): boolean;
@@ -98,15 +146,23 @@ export interface TreeGridContext {
98
146
  setMenuOpen(id: string, open: boolean): void;
99
147
  /** The key of the column drawn at this one based position, which moves as columns are left out. */
100
148
  columnKey(column: number): string | undefined;
101
- /** Whether the column with this key is drawn at the grid's width (`hideBelow`). */
149
+ /** Whether the column with this key is drawn at the grid's width (`drop`, `hideBelow`, `cols`). */
102
150
  shown(key: string): boolean;
151
+ /** The hierarchy AS DRAWN, each level in the order in force: a drawing that follows it (wires) reads this. */
152
+ tree: TreeModel;
103
153
  }
104
154
  /** Every string the grid renders on its own. */
105
- export interface TreeGridLabels {
155
+ export interface TreeGridLabels extends GridFootLabels {
106
156
  /** The pointer-only chevron's tooltip, given the row's own label. */
107
157
  expand: (label: string) => string;
108
158
  collapse: (label: string) => string;
109
159
  }
160
+ /**
161
+ * The forest with every level ordered by `get`, its pinned rows (an add row,
162
+ * a "more" row) kept last in their level in their own order. PURE, and it
163
+ * never moves a row to another parent: a sort orders siblings.
164
+ */
165
+ export declare function sortTreeLevels(forest: readonly TreeInput[], get: (id: string) => string | number | null | undefined, desc: boolean, pinned?: (id: string) => boolean): TreeInput[];
110
166
  export interface TreeGridProps {
111
167
  /** The accessible name of the grid, such as "Organization outline". */
112
168
  label: string;
@@ -121,10 +177,18 @@ export interface TreeGridProps {
121
177
  rows: readonly TreeInput[];
122
178
  /**
123
179
  * Draws one cell. `column` is its one based position, which is also its
124
- * `aria-colindex`, so a caller reads its own `columns` by `column - 1`. The
125
- * first cell is drawn after the chevron strip, inside the same cell.
180
+ * `aria-colindex`; columns left out (`cols`, `drop`) move it, so a caller
181
+ * reads which column it is with `grid.columnKey(column)`. The first cell is
182
+ * drawn after the chevron strip, inside the same cell.
126
183
  */
127
184
  renderCell: (id: string, column: number, grid: TreeGridContext) => ReactNode;
185
+ /**
186
+ * Draws the row's level in its first cell, after the chevron and before the
187
+ * select box and the caller's content, in place of the cell's own indent: a
188
+ * drawing of the hierarchy (an org table's wires). Left out, the first cell
189
+ * is indented by the row's level.
190
+ */
191
+ renderIndent?: ((id: string, grid: TreeGridContext) => ReactNode) | undefined;
128
192
  /**
129
193
  * Whether a cell holds a control that takes the grid's tab stop for itself
130
194
  * (a menu trigger, a chooser, a button). It is asked per row as well as per
@@ -134,7 +198,8 @@ export interface TreeGridProps {
134
198
  cellHasControl?: ((id: string, column: number, key: string) => boolean) | undefined;
135
199
  /**
136
200
  * Carries out Enter (activate) or Delete and Backspace (remove) on a row.
137
- * Return false when the row has no such action, so the key travels on.
201
+ * Return false when the row has no such action, so the key travels on (to
202
+ * the row's link, where it has one).
138
203
  *
139
204
  * Called only while the ROW itself holds focus, never from inside a cell,
140
205
  * and never on an add row. The Menu key is not here: which menu is open is
@@ -153,7 +218,8 @@ export interface TreeGridProps {
153
218
  /**
154
219
  * Whether a row is an add row, and what it is called. An add row is a row of
155
220
  * the grid like any other, so it counts in its siblings' position and set
156
- * size; it just holds controls rather than a node's own data.
221
+ * size; it just holds controls rather than a node's own data. A sort keeps
222
+ * it last in its level.
157
223
  */
158
224
  addRow?: ((id: string) => TreeGridAddRow | null) | undefined;
159
225
  /** The selected row, drawn as `aria-selected`. */
@@ -163,6 +229,21 @@ export interface TreeGridProps {
163
229
  * row, which names no node.
164
230
  */
165
231
  onSelect?: ((id: string) => void) | undefined;
232
+ /**
233
+ * A select box before each row's name, after its indent, in a slot every row
234
+ * keeps so the names stay in line whichever rows have a box. The box is a
235
+ * control in the first cell, so that cell hands its tab stop to it.
236
+ */
237
+ selection?: TreeGridSelection | undefined;
238
+ /**
239
+ * The row's object's page: a real link stretched over the row, as a
240
+ * DataGrid row's, so a new tab and copying it work. Enter on the row follows
241
+ * it where `onRowKey` does not take the key, and a modified Enter opens it
242
+ * elsewhere. The row itself stays the keyboard's way in.
243
+ */
244
+ rowHref?: ((id: string) => string | undefined) | undefined;
245
+ /** A failed row, marked on its edge as a DataGrid's. Its cells say why. */
246
+ isFailed?: ((id: string) => boolean) | undefined;
166
247
  /** Sets `aria-readonly`: the rows can be read and navigated but not edited. */
167
248
  readOnly?: boolean | undefined;
168
249
  /**
@@ -178,6 +259,44 @@ export interface TreeGridProps {
178
259
  expanded?: ReadonlySet<string> | undefined;
179
260
  /** The open rows a toggle has just produced, whether or not the caller holds them. */
180
261
  onExpandedChange?: ((expanded: ReadonlySet<string>) => void) | undefined;
262
+ /**
263
+ * The sort as `key` or `-key`, empty for the hierarchy's own order, which is
264
+ * the default: no head is marked while it is in force. A sort orders each
265
+ * row's children among themselves and never moves a row to another parent.
266
+ * Controlled, as a DataGrid's.
267
+ */
268
+ sort?: string | undefined;
269
+ /** The order each level takes while `sort` is empty, drawn on its head. Empty for the tree's own order. */
270
+ defaultSort?: string | undefined;
271
+ /** A sortable head pressed: ascending, descending, then back to the default (`''`). */
272
+ onSortChange?: ((sort: string) => void) | undefined;
273
+ /** Each level arrives ordered by its source; the grid marks the head and reorders nothing. */
274
+ serverSorted?: boolean | undefined;
275
+ /** The column set as `key,key`, in the order to draw it; empty for every column not `optional`. */
276
+ cols?: string | undefined;
277
+ /** The way back from a column set: drawn as "Show every column" while one is set. */
278
+ onColsChange?: ((cols: string) => void) | undefined;
279
+ /** What an empty grid says, and the one control that is its next step. */
280
+ empty?: {
281
+ title: ReactNode;
282
+ hint?: ReactNode;
283
+ icon?: ReactNode;
284
+ action?: ReactNode;
285
+ } | undefined;
286
+ /** The caller's words under the rows, beside what the width dropped and what is loaded. */
287
+ footer?: ReactNode;
288
+ /** "40 of 312 loaded". */
289
+ loadedNote?: string | undefined;
290
+ onLoadMore?: (() => void) | undefined;
291
+ /**
292
+ * HOW A ROW IS DRAWN WHERE COLUMNS DO NOT FIT (a phone, or a grid whose
293
+ * give-way columns have all gone): `labelled`, a line per value under the
294
+ * row's name, or `compact`, the name then its values on one line. Left out,
295
+ * the grid keeps its columns and scrolls sideways (`layout="scroll"`).
296
+ */
297
+ phoneRows?: 'labelled' | 'compact' | undefined;
298
+ /** The grid is a card's body: no frame of its own, the card's inset at its edges. */
299
+ flush?: boolean | undefined;
181
300
  /**
182
301
  * The column names are READ BUT NOT SEEN: an outline whose cells say what
183
302
  * they are in the sight of them (a title, a face, a time) and want no
@@ -188,8 +307,8 @@ export interface TreeGridProps {
188
307
  /**
189
308
  * `scroll` (the default) keeps a minimum width and scrolls sideways below
190
309
  * it. `container` never scrolls sideways: it fills its container, leaves out
191
- * the columns its width cannot hold (`hideBelow`), and its header holds at
192
- * the top of the page's scroll as the rows pass under it.
310
+ * the columns its width cannot hold (`drop`), and its header holds at the
311
+ * top of the page's scroll as the rows pass under it.
193
312
  */
194
313
  layout?: 'scroll' | 'container' | undefined;
195
314
  /** The grid's own width, in CSS pixels, as it is measured and whenever it changes. */
@@ -198,4 +317,16 @@ export interface TreeGridProps {
198
317
  ref?: Ref<TreeViewHandle> | undefined;
199
318
  className?: string | undefined;
200
319
  }
201
- export declare function TreeGrid({ label, columns, rows: forest, renderCell, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, readOnly, defaultExpanded, expanded: held, onExpandedChange, headless, layout, onWidthChange, labels, ref, className, }: TreeGridProps): import("react").JSX.Element;
320
+ /**
321
+ * A hierarchy on DataGrid's terms: the same head (sort buttons, marks, edges,
322
+ * plain heads), the same give-way columns and foot, the same row link and
323
+ * failed edge, so a tree table reads and behaves like the list beside it.
324
+ *
325
+ * A SORT ORDERS SIBLINGS. The hierarchy is the answer a tree gives, so a sort
326
+ * never lifts a row out of its parent: each level is ordered among itself,
327
+ * an add row stays last in its level, and with no sort chosen the rows are in
328
+ * the tree's own order with no head marked. The model is built over the
329
+ * sorted forest, so a row's position, the keys and the wires follow what is
330
+ * drawn.
331
+ */
332
+ export declare function TreeGrid({ label, columns, rows: forest, renderCell, renderIndent, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, selection, rowHref, isFailed, readOnly, defaultExpanded, expanded: held, onExpandedChange, sort: sortRaw, defaultSort, onSortChange, serverSorted, cols: colsRaw, onColsChange, empty, footer, loadedNote, onLoadMore, phoneRows, flush, headless, layout, onWidthChange, labels, ref, className, }: TreeGridProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './TreeGrid.css';
2
2
  export { TreeGrid } from './TreeGrid.js';
3
- export type { TreeGridAddRow, TreeGridColumn, TreeGridContext, TreeGridLabels, TreeGridProps, } from './TreeGrid.js';
3
+ export type { TreeGridAddRow, TreeGridColumn, TreeGridContext, TreeGridLabels, TreeGridProps, TreeGridSelection, } from './TreeGrid.js';
@@ -1,7 +1,18 @@
1
- export { TreeGrid } from '../chunk-ERESJG6C.js';
1
+ export { TreeGrid } from '../chunk-BZUBONYA.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-CTQZK5J3.js';
3
+ import '../chunk-MO5YV3XV.js';
4
+ import '../chunk-WSIJDWUG.js';
4
5
  import '../chunk-X4HBZSXA.js';
6
+ import '../chunk-I4IUX3JF.js';
7
+ import '../chunk-BVML4UVB.js';
8
+ import '../chunk-M6G7XLLP.js';
9
+ import '../chunk-YJQXESOJ.js';
10
+ import '../chunk-PPUR46MK.js';
11
+ import '../chunk-56ES76ST.js';
12
+ import '../chunk-NICEDVZM.js';
13
+ import '../chunk-PGCLHYVP.js';
14
+ import '../chunk-6KUOHUY5.js';
15
+ import '../chunk-XSPCITPN.js';
5
16
  import '../chunk-WDLAAZFZ.js';
6
17
  import '../chunk-TDFLCUBE.js';
7
18
  import '../chunk-QZKGFBAR.js';
@@ -10,5 +21,7 @@ import '../chunk-HTS5RJ7S.js';
10
21
  import '../chunk-FIX72ZEC.js';
11
22
  import '../chunk-TUEM2XIW.js';
12
23
  import '../chunk-4ITETIGZ.js';
24
+ import '../chunk-PQADV6P6.js';
25
+ import '../chunk-2G355KDJ.js';
13
26
  import '../chunk-UT6CW3C7.js';
14
27
  import '../chunk-ODEQTPFM.js';