@mysteryinfosolutions/api-core 1.7.1 → 1.7.2

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 +12 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3,16 +3,28 @@ import { Observable } from 'rxjs';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
 
5
5
  interface TableColumn<T = any> {
6
+ /** Unique key used to identify the column */
6
7
  key: keyof T | string;
8
+ /** Display label for the column header */
7
9
  label: string;
10
+ /** Whether the column is sortable */
8
11
  isSortable?: boolean;
12
+ /** Column width (e.g. '150px', '20%') */
9
13
  width?: string;
14
+ /** Type of cell rendering */
10
15
  type?: 'text' | 'checkbox' | 'action' | 'custom';
16
+ /** Function to extract value from row */
11
17
  valueGetter?: (row: T) => any;
18
+ /** Whether to hide the column on mobile screen sizes */
12
19
  hideOnMobile?: boolean;
20
+ /** Optional Angular pipe to apply to the value */
13
21
  pipe?: 'date' | 'currency' | 'uppercase' | 'lowercase' | string;
22
+ /** CSS class to apply to cell */
14
23
  cellClass?: string;
24
+ /** CSS class to apply to header */
15
25
  headerClass?: string;
26
+ /** Whether the column should be visible at all (default: true) */
27
+ visible?: boolean;
16
28
  }
17
29
 
18
30
  declare enum SELECT_MODE {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysteryinfosolutions/api-core",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",