@vuu-ui/vuu-table-types 0.9.0 → 0.9.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 +10 -1
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -30,6 +30,8 @@ import type {
30
30
  } from "react";
31
31
  import { CellPos } from "@vuu-ui/vuu-table/src/table-dom-utils";
32
32
 
33
+ export declare type GroupToggleTarget = "toggle-icon" | "group-column";
34
+
33
35
  export declare type TableSelectionModel =
34
36
  | "none"
35
37
  | "single"
@@ -234,6 +236,11 @@ export interface ColumnDescriptor extends DataValueDescriptor {
234
236
  colHeaderContentRenderer?: string;
235
237
  colHeaderLabelRenderer?: string;
236
238
  flex?: number;
239
+ /**
240
+ * Only used when the column is included in a grouby clause.
241
+ * The icon will be displayed alongside the group label
242
+ */
243
+ getIcon?: (row: DataSourceRow) => string | undefined;
237
244
  /**
238
245
  Optional additional level(s) of heading to display above label.
239
246
  May span multiple columns, if multiple adjacent columns declare
@@ -385,12 +392,14 @@ export interface BaseRowProps {
385
392
  export interface RowProps extends BaseRowProps {
386
393
  classNameGenerator?: RowClassNameGenerator;
387
394
  columnMap: ColumnMap;
395
+ groupToggleTarget?: GroupToggleTarget;
388
396
  highlighted?: boolean;
389
- row: DataSourceRow;
390
397
  offset: number;
391
398
  onClick?: TableRowClickHandlerInternal;
392
399
  onDataEdited?: DataCellEditHandler;
393
400
  onToggleGroup?: (row: DataSourceRow, column: RuntimeColumnDescriptor) => void;
401
+ row: DataSourceRow;
402
+ showBookends?: boolean;
394
403
  zebraStripes?: boolean;
395
404
  }
396
405
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-table-types",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "devDependencies": {
5
- "@vuu-ui/vuu-data-types": "0.9.0",
6
- "@vuu-ui/vuu-filter-types": "0.9.0",
7
- "@vuu-ui/vuu-protocol-types": "0.9.0"
5
+ "@vuu-ui/vuu-data-types": "0.9.1",
6
+ "@vuu-ui/vuu-filter-types": "0.9.1",
7
+ "@vuu-ui/vuu-protocol-types": "0.9.1"
8
8
  },
9
9
  "author": "heswell",
10
10
  "license": "Apache-2.0",