@xcelsior/ui-spreadsheets 1.1.6 → 1.1.8

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/src/types.ts CHANGED
@@ -23,7 +23,7 @@ export interface SpreadsheetColumn<T = any> {
23
23
  /** Whether the column can be pinned */
24
24
  pinnable?: boolean;
25
25
  /** Type of data in the column (for filtering/formatting) */
26
- type?: 'text' | 'number' | 'date' | 'select' | 'boolean';
26
+ type?: 'text' | 'number' | 'date' | 'select' | 'boolean' | 'checkbox';
27
27
  /** Options for select type columns */
28
28
  options?: string[];
29
29
  /** Custom render function for cell content */
@@ -385,8 +385,10 @@ export interface SpreadsheetProps<T = any> {
385
385
  onSave?: () => void | Promise<void>;
386
386
  /** Initial settings (optional). All settings can be changed by user in the settings modal. */
387
387
  settings?: {
388
- /** Default pinned column IDs */
388
+ /** Default pinned column IDs (pinned to left) */
389
389
  defaultPinnedColumns?: string[];
390
+ /** Default pinned column IDs (pinned to right) */
391
+ defaultPinnedRightColumns?: string[];
390
392
  /** Default sort configuration */
391
393
  defaultSort?: SpreadsheetSortConfig | null;
392
394
  /** Default page size */
@@ -405,6 +407,7 @@ export interface SpreadsheetProps<T = any> {
405
407
  defaultPageSize?: number;
406
408
  defaultZoom?: number;
407
409
  defaultPinnedColumns?: string[];
410
+ defaultPinnedRightColumns?: string[];
408
411
  defaultSort?: SpreadsheetSortConfig | null;
409
412
  }) => void;
410
413
  /** Loading state */