@crewlethq/ui 0.100.1 → 0.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentHandoffPanel/index.js +5 -5
- package/dist/ArrangeList/index.js +1 -1
- package/dist/ArtifactBar/index.js +1 -1
- package/dist/ArtifactCard/index.js +2 -2
- package/dist/AuthLayout/index.js +1 -1
- package/dist/AvatarPicker/index.js +3 -3
- package/dist/BriefCard/index.js +1 -1
- package/dist/CharacterPicker/index.js +2 -2
- package/dist/ChatDay/index.js +1 -1
- package/dist/{ChatDay-E3FF5HWF.css → ChatDay-CTX2VI6P.css} +2 -0
- package/dist/ChatThread/index.js +1 -1
- package/dist/Combobox/index.js +2 -2
- package/dist/CommandPalette/index.js +4 -4
- package/dist/CommentThread/index.js +6 -6
- package/dist/Composer/index.js +2 -2
- 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 +7 -5
- package/dist/DataGrid/parts.d.ts +163 -0
- package/dist/{DataGrid-SAHEL4SN.css → DataGrid-ERDIPEWV.css} +205 -16
- package/dist/DataTable/index.js +4 -4
- package/dist/DataView/index.js +7 -7
- package/dist/DatasetSource/index.js +1 -1
- package/dist/DeepWorkCard/index.js +1 -1
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/EditingStatus/index.js +2 -2
- package/dist/EntityList/index.js +1 -1
- package/dist/InlineEditor/index.js +3 -3
- package/dist/KeyValueRows/index.js +3 -3
- package/dist/ListInput/index.js +4 -4
- package/dist/LogoSlot/index.js +3 -3
- package/dist/OpenInAppCard/index.js +1 -1
- 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/PrincipalPicker/index.js +3 -3
- package/dist/ProposalCard/index.js +3 -3
- package/dist/RailList/index.js +4 -3
- package/dist/RefusalCard/index.js +1 -1
- package/dist/RelatedRow/index.js +3 -2
- package/dist/ResultTableCard/index.js +1 -1
- package/dist/RichEditor/index.js +1 -1
- package/dist/SetupWizard/index.js +2 -2
- package/dist/ShareDialog/index.js +3 -3
- package/dist/SheetColumnEditor/index.js +5 -5
- package/dist/SheetGrid/index.js +3 -3
- package/dist/StatusCard/index.js +1 -1
- package/dist/Switcher/index.js +4 -4
- package/dist/TableCells/TableCells.d.ts +10 -2
- package/dist/TableCells/index.js +4 -3
- package/dist/Text/index.js +2 -1
- package/dist/ThreadSummary/index.js +1 -1
- package/dist/TimeRangePicker/index.js +4 -4
- package/dist/TimeWindowPicker/index.js +4 -4
- 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/ValueField/index.js +3 -3
- package/dist/{chunk-G44KKOMB.js → chunk-2LLMUJFB.js} +1 -1
- package/dist/{chunk-ONHYFU7D.js → chunk-AGJBHLPE.js} +1 -1
- package/dist/{chunk-BK4KUIAZ.js → chunk-AP6JSZGT.js} +12 -4
- package/dist/chunk-FL5DTFF3.js +557 -0
- package/dist/{chunk-L72GPZ56.js → chunk-G6QKJGQQ.js} +1 -1
- package/dist/{chunk-CL3FWLDO.js → chunk-HI47TXSW.js} +1 -1
- package/dist/{chunk-M6EVTMTK.js → chunk-HYVYYODN.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-EMXUREKE.js → chunk-MKTHLT4E.js} +1 -1
- package/dist/{chunk-PF6X74C5.js → chunk-NHQ7O4DG.js} +3 -3
- package/dist/{chunk-DBH7ORCH.js → chunk-PCXMJZTE.js} +1 -1
- package/dist/{chunk-J3QFTG4B.js → chunk-PXYDEDNN.js} +1 -1
- package/dist/{chunk-PMO6W5NE.js → chunk-SBVTOIFP.js} +2 -2
- package/dist/{chunk-3NCIQO2P.js → chunk-U5Y335HH.js} +8 -4
- package/dist/{chunk-XRKBPNX4.js → chunk-V3QWPHY4.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 +90 -90
- package/dist/index.js +90 -90
- package/dist/styles.css +472 -31
- package/dist/utils/titleIfCut.d.ts +18 -0
- package/package.json +3 -3
- package/dist/chunk-CTQZK5J3.js +0 -8
- package/dist/chunk-ERESJG6C.js +0 -353
- package/dist/chunk-Z346ESBB.js +0 -591
- package/dist/{Editor-YHHCK5SJ.js → Editor-XRI2NOO5.js} +2 -2
- package/dist/{chunk-JZADK2FT.js → chunk-3JE6YIG5.js} +2 -2
- package/dist/{chunk-5KJOG5YP.js → chunk-6IAW2ZIE.js} +2 -2
- package/dist/{chunk-XLVWSNW3.js → chunk-CQAR3F33.js} +1 -1
- package/dist/{chunk-AC255TMQ.js → chunk-CRRW4UGJ.js} +1 -1
- package/dist/{chunk-IA3NL54W.js → chunk-CTHZHMVG.js} +1 -1
- package/dist/{chunk-MTKHMGJH.js → chunk-HR5O6PSR.js} +1 -1
- package/dist/{chunk-OU6ZSWEJ.js → chunk-I2GJLUU3.js} +1 -1
- package/dist/{chunk-7L6JJ7VJ.js → chunk-K2GVWTHA.js} +1 -1
- package/dist/{chunk-RSI6EJSH.js → chunk-LNXL22Y7.js} +1 -1
- package/dist/{chunk-NGRSGJM3.js → chunk-MFZBLJYF.js} +1 -1
- package/dist/{chunk-OAKECTYH.js → chunk-NIZRR2NN.js} +1 -1
- package/dist/{chunk-3Z2BSKS5.js → chunk-NRMF2PKX.js} +1 -1
- package/dist/{chunk-DK7CXQFY.js → chunk-QCCWXOKK.js} +1 -1
- package/dist/{chunk-LNQSNXGJ.js → chunk-S4JRQJEP.js} +1 -1
- package/dist/{chunk-HU5PAZMU.js → chunk-TXQ6FZJL.js} +1 -1
- package/dist/{chunk-GA773IOZ.js → chunk-V6CVW6PF.js} +1 -1
- package/dist/{chunk-EW4ULFHK.js → chunk-WTJU7MAG.js} +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-
|
|
1
|
+
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-MKTHLT4E.js';
|
|
2
2
|
import '../chunk-ZDJQQ4LU.js';
|
|
3
3
|
import '../chunk-WFCWPXJN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-QCCWXOKK.js';
|
|
5
5
|
import '../chunk-NAHA62WD.js';
|
|
6
6
|
import '../chunk-P667Y6NQ.js';
|
|
7
7
|
import '../chunk-E2XDYCFO.js';
|
|
8
8
|
import '../chunk-PIYJNCN7.js';
|
|
9
|
-
import '../chunk-56ES76ST.js';
|
|
10
|
-
import '../chunk-NICEDVZM.js';
|
|
11
|
-
import '../chunk-PGCLHYVP.js';
|
|
12
9
|
import '../chunk-CMAZZY2I.js';
|
|
13
10
|
import '../chunk-6KUOHUY5.js';
|
|
14
11
|
import '../chunk-XSPCITPN.js';
|
|
15
12
|
import '../chunk-2YTOOH3A.js';
|
|
13
|
+
import '../chunk-56ES76ST.js';
|
|
14
|
+
import '../chunk-NICEDVZM.js';
|
|
15
|
+
import '../chunk-PGCLHYVP.js';
|
|
16
16
|
import '../chunk-WDLAAZFZ.js';
|
|
17
17
|
import '../chunk-TDFLCUBE.js';
|
|
18
18
|
import '../chunk-QZKGFBAR.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-2W4US3JO.js';
|
|
2
2
|
import '../chunk-CZKEABMI.js';
|
|
3
3
|
import '../chunk-BVML4UVB.js';
|
|
4
|
-
import '../chunk-M6G7XLLP.js';
|
|
5
4
|
import '../chunk-YJQXESOJ.js';
|
|
5
|
+
import '../chunk-M6G7XLLP.js';
|
|
6
6
|
import '../chunk-56ES76ST.js';
|
|
7
7
|
import '../chunk-NICEDVZM.js';
|
|
8
8
|
import '../chunk-PGCLHYVP.js';
|
|
@@ -5,8 +5,8 @@ import '../chunk-IYJCJOHW.js';
|
|
|
5
5
|
import '../chunk-EGMQURBR.js';
|
|
6
6
|
import '../chunk-QRE6JCHS.js';
|
|
7
7
|
import '../chunk-AVL52EME.js';
|
|
8
|
-
import '../chunk-RSKW25Y5.js';
|
|
9
8
|
import '../chunk-JK6WLRYP.js';
|
|
9
|
+
import '../chunk-RSKW25Y5.js';
|
|
10
10
|
import '../chunk-CMAZZY2I.js';
|
|
11
11
|
import '../chunk-6KUOHUY5.js';
|
|
12
12
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-
|
|
1
|
+
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-K2GVWTHA.js';
|
|
2
2
|
import '../chunk-I4IUX3JF.js';
|
|
3
3
|
import '../chunk-HF5L56YQ.js';
|
|
4
4
|
import '../chunk-EJNJMHQG.js';
|
|
@@ -7,9 +7,9 @@ import '../chunk-U2IQNDDR.js';
|
|
|
7
7
|
import '../chunk-AV2DXAEL.js';
|
|
8
8
|
import '../chunk-YTLWOHOY.js';
|
|
9
9
|
import '../chunk-XZY6S3UC.js';
|
|
10
|
+
import '../chunk-DOY3KC6I.js';
|
|
10
11
|
import '../chunk-J5T5TDM2.js';
|
|
11
12
|
import '../chunk-M6G7XLLP.js';
|
|
12
|
-
import '../chunk-DOY3KC6I.js';
|
|
13
13
|
export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
|
|
14
14
|
import '../chunk-56ES76ST.js';
|
|
15
15
|
import '../chunk-NICEDVZM.js';
|
package/dist/AuthLayout/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { AuthLayout } from '../chunk-BN5FEJL5.js';
|
|
2
2
|
import '../chunk-KXWJJWBD.js';
|
|
3
|
+
import '../chunk-JLOESTT2.js';
|
|
3
4
|
import '../chunk-U2IQNDDR.js';
|
|
4
5
|
import '../chunk-AV2DXAEL.js';
|
|
5
|
-
import '../chunk-JLOESTT2.js';
|
|
6
6
|
import '../chunk-D2GT3CR4.js';
|
|
7
7
|
import '../chunk-PQADV6P6.js';
|
|
8
8
|
import '../chunk-UT6CW3C7.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { AvatarPicker } from '../chunk-
|
|
1
|
+
export { AvatarPicker } from '../chunk-PCXMJZTE.js';
|
|
2
2
|
import '../chunk-PJMDZEWY.js';
|
|
3
3
|
import '../chunk-LCAKSEMB.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-S4JRQJEP.js';
|
|
5
5
|
import '../chunk-AYKXMIOR.js';
|
|
6
|
-
import '../chunk-XZY6S3UC.js';
|
|
7
6
|
import '../chunk-FP6OFRAU.js';
|
|
8
7
|
import '../chunk-IYJCJOHW.js';
|
|
9
8
|
import '../chunk-EGMQURBR.js';
|
|
10
9
|
import '../chunk-QRE6JCHS.js';
|
|
11
10
|
import '../chunk-JK6WLRYP.js';
|
|
11
|
+
import '../chunk-XZY6S3UC.js';
|
|
12
12
|
import '../chunk-6KUOHUY5.js';
|
|
13
13
|
import '../chunk-XSPCITPN.js';
|
|
14
14
|
import '../chunk-2YTOOH3A.js';
|
package/dist/BriefCard/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import '../chunk-Y7PVLEZJ.js';
|
|
|
3
3
|
import '../chunk-6C7GQOBV.js';
|
|
4
4
|
import '../chunk-4BEMS6Q7.js';
|
|
5
5
|
import '../chunk-SJ3EUCFD.js';
|
|
6
|
+
import '../chunk-QRE6JCHS.js';
|
|
6
7
|
import '../chunk-U2IQNDDR.js';
|
|
7
8
|
import '../chunk-AV2DXAEL.js';
|
|
8
|
-
import '../chunk-QRE6JCHS.js';
|
|
9
9
|
import '../chunk-6KUOHUY5.js';
|
|
10
10
|
import '../chunk-XSPCITPN.js';
|
|
11
11
|
import '../chunk-TDFLCUBE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-3L5NHASN.js';
|
|
2
|
-
export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-
|
|
3
|
-
import '../chunk-XZY6S3UC.js';
|
|
2
|
+
export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-S4JRQJEP.js';
|
|
4
3
|
import '../chunk-EGMQURBR.js';
|
|
4
|
+
import '../chunk-XZY6S3UC.js';
|
|
5
5
|
import '../chunk-ODEQTPFM.js';
|
package/dist/ChatDay/index.js
CHANGED
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
height: 1px;
|
|
53
53
|
margin: calc(var(--crewlet-chat-day-pill) / -2) 0 var(--crewlet-chat-day-gap);
|
|
54
54
|
background: var(--color-edge-hairline);
|
|
55
|
+
/* Never the thread's anchor: older rows land under it, inside its day. */
|
|
56
|
+
overflow-anchor: none;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
/* The New line on the day's rule covers the rule, as one line. */
|
package/dist/ChatThread/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-
|
|
1
|
+
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-U5Y335HH.js';
|
|
2
2
|
import '../chunk-YJQXESOJ.js';
|
|
3
3
|
import '../chunk-6KUOHUY5.js';
|
|
4
4
|
import '../chunk-XSPCITPN.js';
|
package/dist/Combobox/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Combobox } from '../chunk-
|
|
1
|
+
export { Combobox } from '../chunk-CRRW4UGJ.js';
|
|
2
2
|
import '../chunk-YGRTX67J.js';
|
|
3
|
+
import '../chunk-2YTOOH3A.js';
|
|
3
4
|
import '../chunk-56ES76ST.js';
|
|
4
5
|
import '../chunk-NICEDVZM.js';
|
|
5
6
|
import '../chunk-PGCLHYVP.js';
|
|
6
|
-
import '../chunk-2YTOOH3A.js';
|
|
7
7
|
import '../chunk-WDLAAZFZ.js';
|
|
8
8
|
import '../chunk-TDFLCUBE.js';
|
|
9
9
|
import '../chunk-QZKGFBAR.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { CommandPalette } from '../chunk-
|
|
1
|
+
export { CommandPalette } from '../chunk-V6CVW6PF.js';
|
|
2
2
|
import '../chunk-EMDRNB23.js';
|
|
3
3
|
import '../chunk-YGRTX67J.js';
|
|
4
|
-
import '../chunk-56ES76ST.js';
|
|
5
|
-
import '../chunk-NICEDVZM.js';
|
|
6
|
-
import '../chunk-PGCLHYVP.js';
|
|
7
4
|
import '../chunk-CMAZZY2I.js';
|
|
8
5
|
import '../chunk-6KUOHUY5.js';
|
|
9
6
|
import '../chunk-XSPCITPN.js';
|
|
10
7
|
import '../chunk-2YTOOH3A.js';
|
|
8
|
+
import '../chunk-56ES76ST.js';
|
|
9
|
+
import '../chunk-NICEDVZM.js';
|
|
10
|
+
import '../chunk-PGCLHYVP.js';
|
|
11
11
|
import '../chunk-WDLAAZFZ.js';
|
|
12
12
|
import '../chunk-TDFLCUBE.js';
|
|
13
13
|
import '../chunk-QZKGFBAR.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-
|
|
1
|
+
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-SBVTOIFP.js';
|
|
2
|
+
import '../chunk-I4PBFJGX.js';
|
|
2
3
|
import '../chunk-HF5L56YQ.js';
|
|
3
4
|
import '../chunk-EJNJMHQG.js';
|
|
4
5
|
import '../chunk-RE3FBGQQ.js';
|
|
5
6
|
import '../chunk-YTLWOHOY.js';
|
|
6
7
|
import '../chunk-XZY6S3UC.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-DK7CXQFY.js';
|
|
9
|
-
import '../chunk-56ES76ST.js';
|
|
10
|
-
import '../chunk-NICEDVZM.js';
|
|
11
|
-
import '../chunk-PGCLHYVP.js';
|
|
8
|
+
import '../chunk-QCCWXOKK.js';
|
|
12
9
|
import '../chunk-CMAZZY2I.js';
|
|
13
10
|
import '../chunk-6KUOHUY5.js';
|
|
14
11
|
import '../chunk-XSPCITPN.js';
|
|
12
|
+
import '../chunk-56ES76ST.js';
|
|
13
|
+
import '../chunk-NICEDVZM.js';
|
|
14
|
+
import '../chunk-PGCLHYVP.js';
|
|
15
15
|
import '../chunk-WDLAAZFZ.js';
|
|
16
16
|
import '../chunk-TDFLCUBE.js';
|
|
17
17
|
import '../chunk-QZKGFBAR.js';
|
package/dist/Composer/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { COMPOSER_COUNTER_AT, Composer } from '../chunk-
|
|
1
|
+
export { COMPOSER_COUNTER_AT, Composer } from '../chunk-QCCWXOKK.js';
|
|
2
|
+
import '../chunk-CMAZZY2I.js';
|
|
2
3
|
import '../chunk-56ES76ST.js';
|
|
3
4
|
import '../chunk-NICEDVZM.js';
|
|
4
5
|
import '../chunk-PGCLHYVP.js';
|
|
5
|
-
import '../chunk-CMAZZY2I.js';
|
|
6
6
|
import '../chunk-WDLAAZFZ.js';
|
|
7
7
|
import '../chunk-TDFLCUBE.js';
|
|
8
8
|
import '../chunk-QZKGFBAR.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-
|
|
2
|
-
import '../chunk-7W3LYIOC.js';
|
|
1
|
+
export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-WTJU7MAG.js';
|
|
3
2
|
import '../chunk-SJ3EUCFD.js';
|
|
3
|
+
import '../chunk-7W3LYIOC.js';
|
|
4
4
|
import '../chunk-QRE6JCHS.js';
|
|
5
5
|
import '../chunk-UT6CW3C7.js';
|
|
6
6
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ContrastHelp } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-7W3LYIOC.js';
|
|
1
|
+
export { ContrastHelp } from '../chunk-KMMRKMBQ.js';
|
|
2
|
+
import '../chunk-WTJU7MAG.js';
|
|
4
3
|
import '../chunk-SJ3EUCFD.js';
|
|
5
4
|
import '../chunk-LCAKSEMB.js';
|
|
5
|
+
import '../chunk-7W3LYIOC.js';
|
|
6
6
|
import '../chunk-QRE6JCHS.js';
|
|
7
7
|
import '../chunk-WDLAAZFZ.js';
|
|
8
8
|
import '../chunk-TDFLCUBE.js';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { type MouseEvent as ReactMouseEvent, type KeyboardEvent as ReactKeyboardEvent, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type ReorderLabels } from '../Reorder/index.js';
|
|
3
|
+
import { nextGridSort, parseGridSort, type GridAlign, type GridFootLabels } from './parts.js';
|
|
4
|
+
export { nextGridSort, parseGridSort };
|
|
2
5
|
/**
|
|
3
6
|
* What activated a row: a click, a key on the row's overlay, or the
|
|
4
7
|
* application's own keymap driving the cursor (a native `KeyboardEvent`).
|
|
@@ -6,7 +9,7 @@ import { type MouseEvent as ReactMouseEvent, type KeyboardEvent as ReactKeyboard
|
|
|
6
9
|
*/
|
|
7
10
|
export type DataGridActivationEvent = ReactMouseEvent | ReactKeyboardEvent | KeyboardEvent;
|
|
8
11
|
/** The edge a column's head and values share. */
|
|
9
|
-
export type DataGridAlign =
|
|
12
|
+
export type DataGridAlign = GridAlign;
|
|
10
13
|
/** The track an `icon` column is drawn in: the target size and the cell's inset either side. */
|
|
11
14
|
export declare const DATA_GRID_ICON_TRACK = "calc(var(--size-target-min) + var(--spacing-3) * 2)";
|
|
12
15
|
/** One column of a [DataGrid]. */
|
|
@@ -14,8 +17,14 @@ export interface DataGridColumn<T> {
|
|
|
14
17
|
key: string;
|
|
15
18
|
header: ReactNode;
|
|
16
19
|
cell: (row: T) => ReactNode;
|
|
17
|
-
/** The value
|
|
20
|
+
/** The value the grid sorts the rows by, on the client. */
|
|
18
21
|
sortValue?: ((row: T) => string | number | null | undefined) | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the head is a sort button. Defaults to whether `sortValue` is set.
|
|
24
|
+
* A `serverSorted` grid sets it with no `sortValue`: its source orders the
|
|
25
|
+
* rows, and the head only asks it to (`onSortChange`).
|
|
26
|
+
*/
|
|
27
|
+
sortable?: boolean | undefined;
|
|
19
28
|
/**
|
|
20
29
|
* Which edge the column's values and its head share: `left` (the default)
|
|
21
30
|
* for words, `right` for figures, times and dates (their digits are
|
|
@@ -49,6 +58,19 @@ export interface DataGridColumn<T> {
|
|
|
49
58
|
action?: boolean | undefined;
|
|
50
59
|
/** Shrink to content (up to a fifth of the grid) and never wrap. */
|
|
51
60
|
shrink?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* What a value does that is wider than its column: `truncate` cuts it on
|
|
63
|
+
* one line with an ellipsis, its whole words on hover; `wrap` breaks it over
|
|
64
|
+
* as many lines as it takes, for prose (a change described in a sentence).
|
|
65
|
+
* Left out, the cell lays out whatever `cell` draws as it is.
|
|
66
|
+
*/
|
|
67
|
+
overflow?: 'truncate' | 'wrap' | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The cell's hover text, where the value drawn is not the whole story (an
|
|
70
|
+
* exact time under a relative one). Given, it is the title whether or not
|
|
71
|
+
* the value is cut.
|
|
72
|
+
*/
|
|
73
|
+
title?: ((row: T) => string | undefined) | undefined;
|
|
52
74
|
/**
|
|
53
75
|
* On a grid drawn with `phoneRows="compact"`, a cell of the row's FIRST line
|
|
54
76
|
* (what the row is: a key, a title), where every other cell is a fact about
|
|
@@ -157,17 +179,70 @@ export interface DataGridSelection<T> {
|
|
|
157
179
|
/** A row that cannot be picked (the reader may not act on it): its box is drawn and disabled. */
|
|
158
180
|
isSelectable?: ((row: T) => boolean) | undefined;
|
|
159
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Rows that open in place: a chevron before the first column, and the row's
|
|
184
|
+
* detail on a full-width row under it while it is open. Controlled, so the
|
|
185
|
+
* host keeps which rows are open (across a refetch, in its address).
|
|
186
|
+
*/
|
|
187
|
+
export interface DataGridExpansion<T> {
|
|
188
|
+
isExpanded: (row: T) => boolean;
|
|
189
|
+
onToggle: (row: T) => void;
|
|
190
|
+
/** What the open row shows, under it, across every column. */
|
|
191
|
+
render: (row: T) => ReactNode;
|
|
192
|
+
/** The chevron's name, which says what a press does: "Show Ada's access", "Hide Ada's access". */
|
|
193
|
+
label: (row: T, open: boolean) => string;
|
|
194
|
+
/** A row with nothing to open draws no chevron. Every row can open by default. */
|
|
195
|
+
canExpand?: ((row: T) => boolean) | undefined;
|
|
196
|
+
}
|
|
197
|
+
/** The edge mark a row carries for a state its cells state in words. */
|
|
198
|
+
export type DataGridRowTone = 'info' | 'warning' | 'danger';
|
|
199
|
+
/**
|
|
200
|
+
* Rows a reader puts in order by hand: a handle before the first column,
|
|
201
|
+
* dragged or moved with the arrow keys, every move said aloud. The order is
|
|
202
|
+
* the point of such a list, so a reorderable grid draws its rows in the order
|
|
203
|
+
* given and sorts nothing.
|
|
204
|
+
*/
|
|
205
|
+
export interface DataGridReorder<T> {
|
|
206
|
+
/** A finished move: `key` now stands before `beforeKey`, or last where that is null. */
|
|
207
|
+
onMove: (key: string, beforeKey: string | null) => void;
|
|
208
|
+
/** What a reader calls the row, for its handle ("Move ENG-12") and the move said aloud. */
|
|
209
|
+
rowName: (row: T) => string;
|
|
210
|
+
/** A row that holds its place: its handle is drawn and disabled. */
|
|
211
|
+
canMove?: ((row: T) => boolean) | undefined;
|
|
212
|
+
/** The row whose move is being saved: quieter, busy, and not movable until it lands. */
|
|
213
|
+
pendingKey?: string | null | undefined;
|
|
214
|
+
labels?: Partial<ReorderLabels> | undefined;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* A row that is not a record: a total, the whole company above its seats. It
|
|
218
|
+
* stands on the grid's tracks, so its figures line up under their heads, and
|
|
219
|
+
* it is never sorted, picked or linked.
|
|
220
|
+
*/
|
|
221
|
+
export interface DataGridSummaryRow {
|
|
222
|
+
key: string;
|
|
223
|
+
/** The row's name, drawn in the first column unless `cells` fills that one. */
|
|
224
|
+
label?: ReactNode;
|
|
225
|
+
/** A value per column key; a column with none is empty on this row. */
|
|
226
|
+
cells: Partial<Record<string, ReactNode>>;
|
|
227
|
+
/** Above the rows, or under them (the default, where a total goes). */
|
|
228
|
+
position?: 'top' | 'bottom' | undefined;
|
|
229
|
+
}
|
|
160
230
|
/** The words a grid says, for an application that says them otherwise. */
|
|
161
|
-
export interface DataGridLabels {
|
|
162
|
-
/** "Hidden to fit: Due and Updated". */
|
|
163
|
-
hiddenToFit: (names: string) => string;
|
|
164
|
-
loadMore: string;
|
|
165
|
-
showEveryColumn: string;
|
|
166
|
-
/** Joins the last two names of a list: "Due and Updated". */
|
|
167
|
-
and: string;
|
|
231
|
+
export interface DataGridLabels extends GridFootLabels {
|
|
168
232
|
/** The head's box, over every row the grid draws. */
|
|
169
233
|
selectAll: string;
|
|
234
|
+
/** The position column's head (`ordinal`). */
|
|
235
|
+
ordinal: string;
|
|
170
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* The key a single move took, and the key it now stands before: read off the
|
|
239
|
+
* order before and after it, as an engine stores a manual rank ("move X
|
|
240
|
+
* before Y"). Null where the two orders are the same.
|
|
241
|
+
*/
|
|
242
|
+
export declare function movedKey(before: readonly string[], after: readonly string[]): {
|
|
243
|
+
key: string;
|
|
244
|
+
before: string | null;
|
|
245
|
+
} | null;
|
|
171
246
|
/**
|
|
172
247
|
* What an application drives a grid's cursor with. The grid binds no keys of
|
|
173
248
|
* its own: an application with a keymap decides which of several grids on a
|
|
@@ -206,7 +281,43 @@ export interface DataGridProps<T> {
|
|
|
206
281
|
* its own mark.
|
|
207
282
|
*/
|
|
208
283
|
selection?: DataGridSelection<T> | undefined;
|
|
284
|
+
/** A failed row: the `danger` edge of [rowTone], kept for the grids that only say this. */
|
|
209
285
|
isFailed?: ((row: T) => boolean) | undefined;
|
|
286
|
+
/**
|
|
287
|
+
* The edge mark a row carries: `danger` for a row that failed or is
|
|
288
|
+
* refused, `warning` for one that needs the reader, `info` for one worth a
|
|
289
|
+
* look. A SECOND SIGNAL ONLY: the row's own cells say the state in words.
|
|
290
|
+
* Wins over `isFailed` where both are given.
|
|
291
|
+
*/
|
|
292
|
+
rowTone?: ((row: T) => DataGridRowTone | undefined) | undefined;
|
|
293
|
+
/** Rows that open in place, with their detail under them: see [DataGridExpansion]. */
|
|
294
|
+
expansion?: DataGridExpansion<T> | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* A full-width line under a row that says what the row cannot say in its
|
|
297
|
+
* cells (what a seat may not reach, why it is held), always shown. Null
|
|
298
|
+
* draws no line. The row's link is described by it.
|
|
299
|
+
*/
|
|
300
|
+
rowAccessory?: ((row: T) => ReactNode) | undefined;
|
|
301
|
+
/** Rows put in order by hand: see [DataGridReorder]. Rows only, never bands. */
|
|
302
|
+
reorder?: DataGridReorder<T> | undefined;
|
|
303
|
+
/** A leading `#` column: each row's position in the order drawn. It never sorts. */
|
|
304
|
+
ordinal?: boolean | undefined;
|
|
305
|
+
/** Rows that are not records (totals, the whole above its parts): see [DataGridSummaryRow]. */
|
|
306
|
+
summaryRows?: readonly DataGridSummaryRow[] | undefined;
|
|
307
|
+
/**
|
|
308
|
+
* `compact` draws the head and every row a step shorter, for a grid in a
|
|
309
|
+
* drawer or a side panel read beside something else.
|
|
310
|
+
*/
|
|
311
|
+
density?: 'default' | 'compact' | undefined;
|
|
312
|
+
/**
|
|
313
|
+
* The rows are on their way. With none yet, the head stays and the body
|
|
314
|
+
* draws `loadingRows` placeholder rows (never the empty state), so the
|
|
315
|
+
* grid's shape does not jump when they land; with rows, they stay. The
|
|
316
|
+
* table says it is busy either way.
|
|
317
|
+
*/
|
|
318
|
+
loading?: boolean | undefined;
|
|
319
|
+
/** How many placeholder rows a loading grid with no rows draws. Three by default. */
|
|
320
|
+
loadingRows?: number | undefined;
|
|
210
321
|
/**
|
|
211
322
|
* The sort as `key` or `-key` (descending), empty for the rows' own order.
|
|
212
323
|
* Controlled, so an application keeps it where it keeps state (an address).
|
|
@@ -262,25 +373,6 @@ export interface DataGridProps<T> {
|
|
|
262
373
|
'aria-labelledby'?: string | undefined;
|
|
263
374
|
className?: string | undefined;
|
|
264
375
|
}
|
|
265
|
-
/** `-updated` as `{key: "updated", desc: true}`. */
|
|
266
|
-
export declare function parseGridSort(raw: string): {
|
|
267
|
-
key: string;
|
|
268
|
-
desc: boolean;
|
|
269
|
-
} | null;
|
|
270
|
-
/**
|
|
271
|
-
* The sort a press on a column's head asks for: ascending, then descending,
|
|
272
|
-
* then back to the default. PURE, so the cycle is held without a render.
|
|
273
|
-
*
|
|
274
|
-
* Against the EFFECTIVE sort (the reader's, else the default), because a head
|
|
275
|
-
* that reads "descending" must take its next press as one more step from
|
|
276
|
-
* descending, whoever chose it. Two rules keep every press a visible change:
|
|
277
|
-
*
|
|
278
|
-
* - a column already at its DEFAULT descending turns ascending, where the
|
|
279
|
-
* cycle's "back to the default" would have changed nothing;
|
|
280
|
-
* - a step that lands on the default is written as `''`, so the address holds
|
|
281
|
-
* only what the reader chose and the default can change under it.
|
|
282
|
-
*/
|
|
283
|
-
export declare function nextGridSort(column: string, sort: string, defaultSort?: string): string;
|
|
284
376
|
/** What the fit has decided for one set of columns, at one width. */
|
|
285
377
|
export interface GridFit {
|
|
286
378
|
/** The column set it was decided for. */
|
|
@@ -327,18 +419,8 @@ export declare function fitGridColumns({ fit, width, overflows, stack, visible,
|
|
|
327
419
|
}[];
|
|
328
420
|
}): GridFit | null;
|
|
329
421
|
/**
|
|
330
|
-
* Whether a content-sized column has been
|
|
331
|
-
*
|
|
332
|
-
* fit: rather than overrun, it shrinks a status pill to a letter, or every
|
|
333
|
-
* head of a row of counts to its first letter over values that still fit,
|
|
334
|
-
* while the columns that could have gone stay. Read over the head and the
|
|
335
|
-
* first screen of rows. `leading` is how many of the grid's own columns (the
|
|
336
|
-
* selection column) are drawn before the caller's.
|
|
337
|
-
*
|
|
338
|
-
* `'values'` where a value is cut short (the grid cannot be read: drop, then
|
|
339
|
-
* stack), `'heads'` where only a head is (drop a column if one may go, but a
|
|
340
|
-
* grid whose every value reads is not turned into cards for a head), and
|
|
341
|
-
* null where nothing is.
|
|
422
|
+
* Whether a content-sized column has been squeezed: see [squeezedCells]. Read
|
|
423
|
+
* off the grid's head and the first screen of its rows.
|
|
342
424
|
*/
|
|
343
425
|
export declare function squeezed<T>(wrap: HTMLElement, visible: readonly DataGridColumn<T>[], leading?: number): 'values' | 'heads' | null;
|
|
344
426
|
/**
|
|
@@ -365,8 +447,12 @@ export declare function squeezed<T>(wrap: HTMLElement, visible: readonly DataGri
|
|
|
365
447
|
* on. Stretched over the row it keeps a real href, and the cells' own links
|
|
366
448
|
* and buttons sit above it.
|
|
367
449
|
*
|
|
450
|
+
* THE GRID'S OWN COLUMNS COME FIRST, in one order: the selection box, the
|
|
451
|
+
* reorder handle, the position, the chevron that opens a row. None of them is
|
|
452
|
+
* in a column set or ever gives way.
|
|
453
|
+
*
|
|
368
454
|
* The grid makes no scrollport of its own (`overflow: clip`), which is what
|
|
369
455
|
* lets its head stick against the page's scroller; an application whose
|
|
370
456
|
* scroller carries a sticky bar sets `--crewlet-data-grid-sticky-top`.
|
|
371
457
|
*/
|
|
372
|
-
export declare function DataGrid<T>({ rows, bands, columns, rowKey, onRowActivate, rowHref, isSelected, selection, isFailed, sort: sortRaw, defaultSort, onSortChange, serverSorted, cols: colsRaw, onColsChange, empty, footer, onLoadMore, loadedNote, phoneRows, flush, handleRef, onPointerDown, labels, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }: DataGridProps<T>): import("react").JSX.Element;
|
|
458
|
+
export declare function DataGrid<T>({ rows, bands, columns, rowKey, onRowActivate, rowHref, isSelected, selection, isFailed, rowTone, expansion, rowAccessory, reorder, ordinal, summaryRows, density, loading, loadingRows, sort: sortRaw, defaultSort, onSortChange, serverSorted, cols: colsRaw, onColsChange, empty, footer, onLoadMore, loadedNote, phoneRows, flush, handleRef, onPointerDown, labels, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }: DataGridProps<T>): import("react").JSX.Element;
|
package/dist/DataGrid/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import './DataGrid.css';
|
|
|
2
2
|
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, fitGridColumns, nextGridSort, parseGridSort, } from './DataGrid.js';
|
|
3
3
|
export { countDataGridRows, useAnyDataGridDriving, useDataGridDriving } from './driving.js';
|
|
4
4
|
export type { DataGridDriving } from './driving.js';
|
|
5
|
-
export type { ColumnChoice, ChooserItem, ChooserListProps, ColumnChooserProps, DataGridActivationEvent, DataGridAlign, DataGridBand, DataGridColumn, DataGridHandle, DataGridLabels, DataGridProps, GridFit, } from './DataGrid.js';
|
|
5
|
+
export type { ColumnChoice, ChooserItem, ChooserListProps, ColumnChooserProps, DataGridActivationEvent, DataGridAlign, DataGridBand, DataGridColumn, DataGridExpansion, DataGridHandle, DataGridLabels, DataGridProps, DataGridReorder, DataGridRowTone, DataGridSummaryRow, GridFit, } from './DataGrid.js';
|
package/dist/DataGrid/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, useAnyDataGridDriving, useDataGridDriving } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, useAnyDataGridDriving, useDataGridDriving } from '../chunk-LIRXQOTR.js';
|
|
2
|
+
import '../chunk-WSIJDWUG.js';
|
|
3
|
+
import '../chunk-BVML4UVB.js';
|
|
4
4
|
import '../chunk-YJQXESOJ.js';
|
|
5
|
+
import '../chunk-I4IUX3JF.js';
|
|
6
|
+
import '../chunk-M6G7XLLP.js';
|
|
5
7
|
import '../chunk-PPUR46MK.js';
|
|
8
|
+
import '../chunk-6KUOHUY5.js';
|
|
9
|
+
import '../chunk-XSPCITPN.js';
|
|
6
10
|
import '../chunk-56ES76ST.js';
|
|
7
11
|
import '../chunk-NICEDVZM.js';
|
|
8
12
|
import '../chunk-PGCLHYVP.js';
|
|
9
|
-
import '../chunk-6KUOHUY5.js';
|
|
10
|
-
import '../chunk-XSPCITPN.js';
|
|
11
13
|
import '../chunk-WDLAAZFZ.js';
|
|
12
14
|
import '../chunk-TDFLCUBE.js';
|
|
13
15
|
import '../chunk-QZKGFBAR.js';
|