@xcelsior/ui-spreadsheets 1.0.17 → 1.0.18

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.mts CHANGED
@@ -521,7 +521,7 @@ interface SpreadsheetToolbarProps {
521
521
  /** Save status */
522
522
  saveStatus: 'saved' | 'saving' | 'unsaved' | 'error';
523
523
  /** Whether auto-save is enabled */
524
- autoSave: boolean;
524
+ autoSave?: boolean;
525
525
  /** Summary data to display */
526
526
  summary?: {
527
527
  label: string;
@@ -679,9 +679,9 @@ interface SpreadsheetSettings {
679
679
  /** Default zoom level */
680
680
  defaultZoom: number;
681
681
  /** Whether auto-save is enabled */
682
- autoSave: boolean;
682
+ autoSave?: boolean;
683
683
  /** Whether compact view is enabled */
684
- compactView: boolean;
684
+ compactView?: boolean;
685
685
  /** Whether to show row index column */
686
686
  showRowIndex?: boolean;
687
687
  /** Whether row index column is pinned */
package/dist/index.d.ts CHANGED
@@ -521,7 +521,7 @@ interface SpreadsheetToolbarProps {
521
521
  /** Save status */
522
522
  saveStatus: 'saved' | 'saving' | 'unsaved' | 'error';
523
523
  /** Whether auto-save is enabled */
524
- autoSave: boolean;
524
+ autoSave?: boolean;
525
525
  /** Summary data to display */
526
526
  summary?: {
527
527
  label: string;
@@ -679,9 +679,9 @@ interface SpreadsheetSettings {
679
679
  /** Default zoom level */
680
680
  defaultZoom: number;
681
681
  /** Whether auto-save is enabled */
682
- autoSave: boolean;
682
+ autoSave?: boolean;
683
683
  /** Whether compact view is enabled */
684
- compactView: boolean;
684
+ compactView?: boolean;
685
685
  /** Whether to show row index column */
686
686
  showRowIndex?: boolean;
687
687
  /** Whether row index column is pinned */
package/dist/index.js CHANGED
@@ -3383,9 +3383,9 @@ function Spreadsheet({
3383
3383
  defaultPageSize = 25,
3384
3384
  pageSizeOptions = [25, 50, 100, 200],
3385
3385
  defaultZoom = 100,
3386
- autoSave = true,
3386
+ autoSave,
3387
3387
  onSave,
3388
- compactMode = false,
3388
+ compactMode,
3389
3389
  isLoading = false,
3390
3390
  className,
3391
3391
  emptyMessage = "No data available",
@@ -3475,13 +3475,13 @@ function Spreadsheet({
3475
3475
  defaultSort: null,
3476
3476
  defaultPageSize,
3477
3477
  defaultZoom,
3478
- autoSave,
3479
- compactView: compactMode,
3478
+ autoSave: autoSave ?? true,
3479
+ compactView: compactMode ?? false,
3480
3480
  showRowIndex,
3481
3481
  pinRowIndex: false,
3482
3482
  rowIndexHighlightColor: void 0
3483
3483
  });
3484
- const effectiveAutoSave = spreadsheetSettings.autoSave ?? autoSave;
3484
+ const effectiveAutoSave = autoSave ?? spreadsheetSettings.autoSave;
3485
3485
  const {
3486
3486
  canUndo,
3487
3487
  canRedo,
@@ -3577,7 +3577,6 @@ function Spreadsheet({
3577
3577
  }, [filteredData, currentPage, pageSize, serverSide]);
3578
3578
  const {
3579
3579
  focusedCell,
3580
- setFocusedCell,
3581
3580
  editingCell,
3582
3581
  setEditingCell,
3583
3582
  handleCellMouseDown,
@@ -3693,7 +3692,7 @@ function Spreadsheet({
3693
3692
  enabled: true
3694
3693
  });
3695
3694
  const effectiveShowRowIndex = spreadsheetSettings.showRowIndex !== false;
3696
- const effectiveCompactMode = spreadsheetSettings.compactView ?? compactMode;
3695
+ const effectiveCompactMode = compactMode ?? spreadsheetSettings.compactView;
3697
3696
  const rowIndexHighlightColor = getColumnHighlight(ROW_INDEX_COLUMN_ID);
3698
3697
  const tableRef = (0, import_react16.useRef)(null);
3699
3698
  const effectiveTotalItems = serverSide ? totalItems ?? data.length : filteredData.length;