@pstdio/workbench 0.3.0 → 0.4.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/index.d.ts CHANGED
@@ -362,6 +362,8 @@ export declare interface DataTableRendererContribution {
362
362
  title: string;
363
363
  resourceKind?: string;
364
364
  columns?: DataTableRendererColumn[];
365
+ selectionMode?: "none" | "multiple";
366
+ selectionActions?: DataTableRendererSelectionAction[];
365
367
  rowActions?: DataTableRendererRowAction[];
366
368
  initialPageSize?: number;
367
369
  pageSizeOptions?: number[];
@@ -414,6 +416,14 @@ export declare interface DataTableRendererRowAction {
414
416
  run(row: DataTableRendererRow): Promise<void> | void;
415
417
  }
416
418
 
419
+ export declare interface DataTableRendererSelectionAction {
420
+ id: string;
421
+ label: string;
422
+ icon?: unknown;
423
+ destructive?: boolean;
424
+ run(rows: DataTableRendererRow[]): Promise<void> | void;
425
+ }
426
+
417
427
  declare interface DataTableRendererStoreState {
418
428
  renderers: Record<string, RegisteredDataTableRendererContribution>;
419
429
  }