@vuu-ui/vuu-table-types 2.2.0 → 2.3.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 (2) hide show
  1. package/index.d.ts +9 -2
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -220,6 +220,8 @@ export interface ColumnTypeRendering {
220
220
  // specific to Background renderer
221
221
  flashStyle?: "bg-only" | "arrow-bg" | "arrow";
222
222
  name: string;
223
+ /** Serializable props passed to the registered cell renderer component. */
224
+ componentProps?: Record<string, string | number | boolean>;
223
225
  }
224
226
  export interface MappedValueTypeRenderer {
225
227
  map: ColumnTypeValueMap;
@@ -388,10 +390,10 @@ export interface RuntimeColumnDescriptor extends ColumnDescriptor {
388
390
  * A custom Cell Renderer component, configured via the `type.renderer`
389
391
  */
390
392
  CellRenderer?: FunctionComponent<TableCellRendererProps>;
391
- HeaderCellLabelRenderer?: FunctionComponent<
393
+ HeaderCellContentRenderer?: FunctionComponent<
392
394
  Omit<HeaderCellProps, "id" | "index">
393
395
  >;
394
- HeaderCellContentRenderer?: FunctionComponent<
396
+ HeaderCellLabelRenderer?: FunctionComponent<
395
397
  Omit<HeaderCellProps, "id" | "index">
396
398
  >;
397
399
  canStretch?: boolean;
@@ -539,6 +541,11 @@ export interface RowProps extends BaseRowProps {
539
541
  dataRow: DataRow;
540
542
  groupToggleTarget?: GroupToggleTarget;
541
543
  highlighted?: boolean;
544
+ /**
545
+ * False when isRowSelectable has been provided to Table and returns false for this row.
546
+ * Row will receive a `vuuTableRow-noSelect` CSS class.
547
+ */
548
+ isSelectable?: boolean;
542
549
  offset: number;
543
550
  onCellEdit?: CellEditHandler;
544
551
  onClick?: TableRowClickHandlerInternal;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-table-types",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "devDependencies": {
5
- "@vuu-ui/vuu-data-types": "2.2.0",
6
- "@vuu-ui/vuu-filter-types": "2.2.0",
7
- "@vuu-ui/vuu-protocol-types": "2.2.0"
5
+ "@vuu-ui/vuu-data-types": "2.3.0",
6
+ "@vuu-ui/vuu-filter-types": "2.3.0",
7
+ "@vuu-ui/vuu-protocol-types": "2.3.0"
8
8
  },
9
9
  "author": "heswell",
10
10
  "license": "Apache-2.0",