@vuu-ui/vuu-table-types 4.1.0 → 5.0.0-alpha.1

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 (2) hide show
  1. package/index.d.ts +7 -0
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -22,6 +22,7 @@ import type {
22
22
  FunctionComponentElement,
23
23
  HTMLAttributes,
24
24
  MouseEvent,
25
+ ReactNode,
25
26
  } from "react";
26
27
 
27
28
  export declare type ColumnMoveHandler = (
@@ -320,6 +321,12 @@ export interface ColumnDescriptor extends DataValueDescriptor {
320
321
  * The icon will be displayed alongside the group label
321
322
  */
322
323
  getIcon?: (row: DataRow) => string | undefined;
324
+ /**
325
+ * Only used when the column is included in a groupby clause.
326
+ * Content rendered at the end of the group cell, after the label, e.g
327
+ * a count or status indicator.
328
+ */
329
+ getGroupAdornment?: (row: DataRow) => ReactNode;
323
330
  /**
324
331
  * Can this column be included in a groupBy operation ? Default is true.
325
332
  */
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-table-types",
3
- "version": "4.1.0",
3
+ "version": "5.0.0-alpha.1",
4
4
  "devDependencies": {
5
- "@vuu-ui/vuu-data-types": "4.1.0",
6
- "@vuu-ui/vuu-filter-types": "4.1.0",
7
- "@vuu-ui/vuu-protocol-types": "4.1.0"
5
+ "@vuu-ui/vuu-data-types": "5.0.0-alpha.1",
6
+ "@vuu-ui/vuu-filter-types": "5.0.0-alpha.1",
7
+ "@vuu-ui/vuu-protocol-types": "5.0.0-alpha.1"
8
8
  },
9
9
  "author": "heswell",
10
10
  "license": "Apache-2.0",