@crewlethq/ui 0.122.0 → 0.123.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 (47) hide show
  1. package/README.md +45 -2
  2. package/dist/AvatarPicker/index.js +2 -2
  3. package/dist/Charts/StackedRing.d.ts +40 -0
  4. package/dist/Charts/TimeSeries.d.ts +8 -1
  5. package/dist/Charts/index.d.ts +2 -0
  6. package/dist/Charts/index.js +1 -1
  7. package/dist/{Charts-UJKADWXE.css → Charts-4VQ7T3GB.css} +85 -0
  8. package/dist/DataGrid/DataGrid.d.ts +11 -1
  9. package/dist/DataGrid/index.d.ts +1 -1
  10. package/dist/DataGrid/index.js +1 -1
  11. package/dist/{DataGrid-7KUUYSHA.css → DataGrid-KAFVH4B3.css} +3 -1
  12. package/dist/DeepWorkCard/index.js +2 -2
  13. package/dist/Fullscreen/FullscreenToggle.d.ts +21 -0
  14. package/dist/Fullscreen/index.d.ts +2 -0
  15. package/dist/Fullscreen/index.js +11 -1
  16. package/dist/GraphCanvas/GraphCanvas.d.ts +97 -16
  17. package/dist/GraphCanvas/index.d.ts +4 -4
  18. package/dist/GraphCanvas/index.js +3 -3
  19. package/dist/GraphCanvas/layout.d.ts +31 -1
  20. package/dist/GraphCanvas/walk.d.ts +5 -4
  21. package/dist/GraphCanvas-UZPZRP6S.css +793 -0
  22. package/dist/IconTile/IconTile.d.ts +26 -18
  23. package/dist/IconTile/index.d.ts +1 -1
  24. package/dist/IconTile/index.js +1 -1
  25. package/dist/IconTile-6OSCIHYU.css +112 -0
  26. package/dist/OpenInAppCard/index.js +2 -2
  27. package/dist/OrgTable/index.js +3 -3
  28. package/dist/ReviewList/index.js +2 -2
  29. package/dist/TreeGrid/index.js +2 -2
  30. package/dist/{chunk-W5XCNEZC.js → chunk-3JLG6KRU.js} +23 -2
  31. package/dist/{chunk-AGVGX52B.js → chunk-7XYU5PSQ.js} +1 -1
  32. package/dist/{chunk-6KPHU4EB.js → chunk-DSBKVP73.js} +490 -122
  33. package/dist/{chunk-MDD6K5M4.js → chunk-EWJOBD25.js} +1 -1
  34. package/dist/{chunk-X5YI6QLW.js → chunk-NOKZULW3.js} +1 -1
  35. package/dist/{chunk-ZOMTCEHR.js → chunk-OFNJE4BN.js} +6 -1
  36. package/dist/{chunk-75O3HCCD.js → chunk-T4TKY4VZ.js} +1 -1
  37. package/dist/chunk-VRVNLJUA.js +46 -0
  38. package/dist/{chunk-MNTN5ESE.js → chunk-ZY5322MJ.js} +77 -3
  39. package/dist/generated/index.js +46 -46
  40. package/dist/index.js +46 -46
  41. package/dist/styles.css +701 -130
  42. package/package.json +3 -3
  43. package/dist/GraphCanvas-RSBMO2AF.css +0 -388
  44. package/dist/IconTile-G52XZVR4.css +0 -33
  45. package/dist/chunk-3LI4TRUR.js +0 -22
  46. package/dist/{chunk-4Z3AGYOB.js → chunk-P42LNYRX.js} +1 -1
  47. package/dist/{chunk-JWUIGUIS.js → chunk-YCT7LRYR.js} +1 -1
@@ -26,6 +26,13 @@ export interface GraphLayoutNode {
26
26
  id: string;
27
27
  lane: string;
28
28
  group?: string | undefined;
29
+ /**
30
+ * The column of its lane it stands in, from 0, for a lane wider than one
31
+ * column whose columns mean something (a depth: what calls stands left of
32
+ * what is called). Read for a lane that holds no groups; elsewhere the lane
33
+ * fills row by row.
34
+ */
35
+ column?: number | undefined;
29
36
  }
30
37
  export interface GraphLayoutGroup {
31
38
  id: string;
@@ -62,8 +69,12 @@ export interface GraphLayoutInput {
62
69
  groups?: readonly GraphLayoutGroup[] | undefined;
63
70
  /** Whether a group is drawn open. A closed group is one summary card. */
64
71
  open: (groupId: string) => boolean;
65
- /** The edges drawn at rest, which also decide the order inside a lane. */
72
+ /** The edges drawn at rest. */
66
73
  edges: readonly GraphLayoutEdge[];
74
+ /** The edges that decide the order inside a lane: `edges` unless given, so hiding a line never moves a card. */
75
+ ordering?: readonly GraphLayoutEdge[] | undefined;
76
+ /** How many columns a lane asks for, by lane id. Unlisted lanes ask for one. */
77
+ laneColumns?: ReadonlyMap<string, number> | undefined;
67
78
  /** The height an empty lane's message takes, by lane id. Unlisted lanes keep one row. */
68
79
  emptyHeights?: ReadonlyMap<string, number> | undefined;
69
80
  }
@@ -199,3 +210,22 @@ export declare function layoutGraph(input: GraphLayoutInput, metrics: GraphMetri
199
210
  * edges a selection reveals: each pair of drawn items once, in its own tracks.
200
211
  */
201
212
  export declare function routeGraphEdges(layout: GraphLayout, edges: readonly GraphLayoutEdge[]): GraphRoute[];
213
+ /** Every line between two lanes of a kind that is not drawn one by one, as one line with its count. */
214
+ export interface GraphTrunk {
215
+ /** The two lanes, upper then lower: `services>runtime`. */
216
+ key: string;
217
+ from: string;
218
+ to: string;
219
+ /** How many edges it stands for. */
220
+ count: number;
221
+ d: string;
222
+ /** Where its count is written: the middle of its run. */
223
+ label: CanvasPoint;
224
+ box: CanvasRect;
225
+ }
226
+ /**
227
+ * The trunks of a set of edges: one per pair of lanes in neighbouring bands,
228
+ * straight down where the two panels overlap and stepped through the gap
229
+ * between the bands where they do not. Edges inside one band have no trunk.
230
+ */
231
+ export declare function graphTrunks(layout: Pick<GraphLayout, 'laneById'>, edges: readonly GraphLayoutEdge[], laneOf: (node: string) => string | undefined): GraphTrunk[];
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * The keyboard walk over a laid out map, as a pure function of the layout.
3
3
  *
4
- * Up and Down move through a lane in reading order and on into the band above
5
- * or below; Left and Right move to the item nearest in height in the lane
6
- * beside; Home and End go to a lane's ends, and with Control or Command to the
7
- * map's. An empty lane is a stop too, so its message is read.
4
+ * The arrows move the way they point. Up and Down move along a lane's column
5
+ * and on into the band above or below; Left and Right move to the next column
6
+ * of the lane, then to the item nearest in height in the lane beside; Home
7
+ * and End go to a lane's ends, and with Control or Command to the map's. An
8
+ * empty lane is a stop too, so its message is read.
8
9
  */
9
10
  import type { GraphLayout } from './layout.js';
10
11
  export interface GraphStepKey {