@xcelsior/ui-spreadsheets 1.0.2 → 1.0.4

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @xcelsior/ui-spreadsheets@1.0.2 build /home/circleci/repo/packages/ui/ui-spreadsheets
2
+ > @xcelsior/ui-spreadsheets@1.0.4 build /home/circleci/repo/packages/ui/ui-spreadsheets
3
3
  > tsup && tsc --noEmit
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- CJS dist/index.js 150.46 KB
14
- CJS dist/index.js.map 2.63 MB
15
- CJS ⚡️ Build success in 334ms
16
- ESM dist/index.mjs 139.74 KB
17
- ESM dist/index.mjs.map 2.63 MB
18
- ESM ⚡️ Build success in 335ms
13
+ CJS dist/index.js 154.78 KB
14
+ CJS dist/index.js.map 4.61 MB
15
+ CJS ⚡️ Build success in 477ms
16
+ ESM dist/index.mjs 143.85 KB
17
+ ESM dist/index.mjs.map 4.61 MB
18
+ ESM ⚡️ Build success in 479ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 5124ms
21
- DTS dist/index.d.ts 22.18 KB
22
- DTS dist/index.d.mts 22.18 KB
20
+ DTS ⚡️ Build success in 4317ms
21
+ DTS dist/index.d.ts 22.21 KB
22
+ DTS dist/index.d.mts 22.21 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @xcelsior/ui-spreadsheets
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - b1faef3: ui styling
8
+
9
+ ## 1.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - e734bf5: improve spreadsheet performance
14
+ - Updated dependencies [e734bf5]
15
+ - @xcelsior/utils@1.0.1
16
+
3
17
  ## 1.0.2
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -253,8 +253,8 @@ interface SpreadsheetProps<T = any> {
253
253
  onRowDoubleClick?: (row: T, rowIndex: number) => void;
254
254
  /** Callback when a row is cloned/duplicated */
255
255
  onRowClone?: (row: T, rowId: string | number) => void;
256
- /** Callback when a row comment is added */
257
- onAddRowComment?: (rowId: string | number, comment: string) => void;
256
+ /** Callback when a cell comment is added */
257
+ onAddCellComment?: (rowId: string | number, columnId: string, comment: string) => void;
258
258
  /** Callback when row highlight is toggled */
259
259
  onRowHighlight?: (rowId: string | number, color: string | null) => void;
260
260
  /** Whether to show the toolbar */
@@ -291,8 +291,8 @@ interface SpreadsheetProps<T = any> {
291
291
  emptyMessage?: string;
292
292
  /** Row highlights (externally controlled) */
293
293
  rowHighlights?: CellHighlight[];
294
- /** Row comments (externally controlled) */
295
- rowComments?: CellComment[];
294
+ /** Cell comments (externally controlled) */
295
+ cellComments?: CellComment[];
296
296
  /** Custom row actions to display in the index column */
297
297
  rowActions?: RowAction<T>[];
298
298
  /**
@@ -554,7 +554,7 @@ interface SpreadsheetColumnGroupHeaderProps {
554
554
  * />
555
555
  * ```
556
556
  */
557
- declare function Spreadsheet<T extends Record<string, any>>({ data, columns, columnGroups, getRowId, onCellEdit, onSelectionChange, onSortChange, onFilterChange, onRowClick, onRowDoubleClick, onRowClone, onAddRowComment, onRowHighlight, showToolbar, showPagination, showRowIndex, enableRowSelection, enableCellEditing, enableComments, enableHighlighting, enableUndoRedo, defaultPageSize, pageSizeOptions, defaultZoom, autoSave, compactMode, isLoading, className, emptyMessage, rowHighlights: externalRowHighlights, rowComments: externalRowComments, rowActions, serverSide, totalItems, currentPage: controlledCurrentPage, pageSize: controlledPageSize, onPageChange, sortConfig: controlledSortConfig, filters: controlledFilters, }: SpreadsheetProps<T>): react_jsx_runtime.JSX.Element;
557
+ declare function Spreadsheet<T extends Record<string, any>>({ data, columns, columnGroups, getRowId, onCellEdit, onSelectionChange, onSortChange, onFilterChange, onRowClick, onRowDoubleClick, onRowClone, onAddCellComment, onRowHighlight, showToolbar, showPagination, showRowIndex, enableRowSelection, enableCellEditing, enableComments, enableHighlighting, enableUndoRedo, defaultPageSize, pageSizeOptions, defaultZoom, autoSave, compactMode, isLoading, className, emptyMessage, rowHighlights: externalRowHighlights, cellComments: externalCellComments, rowActions, serverSide, totalItems, currentPage: controlledCurrentPage, pageSize: controlledPageSize, onPageChange, sortConfig: controlledSortConfig, filters: controlledFilters, }: SpreadsheetProps<T>): react_jsx_runtime.JSX.Element;
558
558
  declare namespace Spreadsheet {
559
559
  var displayName: string;
560
560
  }
package/dist/index.d.ts CHANGED
@@ -253,8 +253,8 @@ interface SpreadsheetProps<T = any> {
253
253
  onRowDoubleClick?: (row: T, rowIndex: number) => void;
254
254
  /** Callback when a row is cloned/duplicated */
255
255
  onRowClone?: (row: T, rowId: string | number) => void;
256
- /** Callback when a row comment is added */
257
- onAddRowComment?: (rowId: string | number, comment: string) => void;
256
+ /** Callback when a cell comment is added */
257
+ onAddCellComment?: (rowId: string | number, columnId: string, comment: string) => void;
258
258
  /** Callback when row highlight is toggled */
259
259
  onRowHighlight?: (rowId: string | number, color: string | null) => void;
260
260
  /** Whether to show the toolbar */
@@ -291,8 +291,8 @@ interface SpreadsheetProps<T = any> {
291
291
  emptyMessage?: string;
292
292
  /** Row highlights (externally controlled) */
293
293
  rowHighlights?: CellHighlight[];
294
- /** Row comments (externally controlled) */
295
- rowComments?: CellComment[];
294
+ /** Cell comments (externally controlled) */
295
+ cellComments?: CellComment[];
296
296
  /** Custom row actions to display in the index column */
297
297
  rowActions?: RowAction<T>[];
298
298
  /**
@@ -554,7 +554,7 @@ interface SpreadsheetColumnGroupHeaderProps {
554
554
  * />
555
555
  * ```
556
556
  */
557
- declare function Spreadsheet<T extends Record<string, any>>({ data, columns, columnGroups, getRowId, onCellEdit, onSelectionChange, onSortChange, onFilterChange, onRowClick, onRowDoubleClick, onRowClone, onAddRowComment, onRowHighlight, showToolbar, showPagination, showRowIndex, enableRowSelection, enableCellEditing, enableComments, enableHighlighting, enableUndoRedo, defaultPageSize, pageSizeOptions, defaultZoom, autoSave, compactMode, isLoading, className, emptyMessage, rowHighlights: externalRowHighlights, rowComments: externalRowComments, rowActions, serverSide, totalItems, currentPage: controlledCurrentPage, pageSize: controlledPageSize, onPageChange, sortConfig: controlledSortConfig, filters: controlledFilters, }: SpreadsheetProps<T>): react_jsx_runtime.JSX.Element;
557
+ declare function Spreadsheet<T extends Record<string, any>>({ data, columns, columnGroups, getRowId, onCellEdit, onSelectionChange, onSortChange, onFilterChange, onRowClick, onRowDoubleClick, onRowClone, onAddCellComment, onRowHighlight, showToolbar, showPagination, showRowIndex, enableRowSelection, enableCellEditing, enableComments, enableHighlighting, enableUndoRedo, defaultPageSize, pageSizeOptions, defaultZoom, autoSave, compactMode, isLoading, className, emptyMessage, rowHighlights: externalRowHighlights, cellComments: externalCellComments, rowActions, serverSide, totalItems, currentPage: controlledCurrentPage, pageSize: controlledPageSize, onPageChange, sortConfig: controlledSortConfig, filters: controlledFilters, }: SpreadsheetProps<T>): react_jsx_runtime.JSX.Element;
558
558
  declare namespace Spreadsheet {
559
559
  var displayName: string;
560
560
  }