orbcafe-ui 1.3.4 → 1.3.6

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
@@ -422,6 +422,10 @@ interface CTableHeadProps {
422
422
  visibleColumns: string[];
423
423
  order: 'asc' | 'desc';
424
424
  orderBy: string;
425
+ sortBy?: Array<{
426
+ field: string;
427
+ direction: 'asc' | 'desc';
428
+ }>;
425
429
  onRequestSort: (property: string) => void;
426
430
  onContextMenu?: (event: React.MouseEvent, columnId: string) => void;
427
431
  selectionMode?: 'single' | 'multiple';
@@ -433,6 +437,7 @@ interface CTableHeadProps {
433
437
  onSelectAllClick?: (event: React.ChangeEvent<HTMLInputElement>) => void;
434
438
  columnWidths?: Record<string, number>;
435
439
  onColumnResize?: (columnId: string, width: number) => void;
440
+ enableColumnReorder?: boolean;
436
441
  }
437
442
  interface CTableBodyProps {
438
443
  visibleRows: any[];
@@ -1341,6 +1346,21 @@ declare const en: {
1341
1346
  readonly 'table.group.expandAll': "Expand All Groups";
1342
1347
  readonly 'table.group.collapseAll': "Collapse All Groups";
1343
1348
  readonly 'table.mobile.notImplemented': "Mobile View Not Implemented";
1349
+ readonly 'table.headerMenu.sortAsc': "Sort Ascending";
1350
+ readonly 'table.headerMenu.sortDesc': "Sort Descending";
1351
+ readonly 'table.headerMenu.clearSort': "Clear Sort";
1352
+ readonly 'table.headerMenu.configureSort': "Configure Sort...";
1353
+ readonly 'table.headerMenu.group': "Group by this column";
1354
+ readonly 'table.headerMenu.ungroup': "Remove from grouping";
1355
+ readonly 'table.headerMenu.addSummary': "Include in Summary";
1356
+ readonly 'table.headerMenu.removeSummary': "Remove from Summary";
1357
+ readonly 'table.headerMenu.hideColumn': "Hide Column";
1358
+ readonly 'table.sortDialog.title': "Sort Settings";
1359
+ readonly 'table.sortDialog.empty': "No sort rules. Add one to start ordering rows.";
1360
+ readonly 'table.sortDialog.addRule': "Add Sort Rule";
1361
+ readonly 'table.sortDialog.clearAll': "Clear All";
1362
+ readonly 'table.sortDialog.asc': "Ascending";
1363
+ readonly 'table.sortDialog.desc': "Descending";
1344
1364
  readonly 'pivot.title.default': "Pivot Table Builder";
1345
1365
  readonly 'pivot.subtitle.default': "Drag fields to configure the pivot table.";
1346
1366
  readonly 'pivot.empty': "Drag at least one field into Values to render the pivot result.";
package/dist/index.d.ts CHANGED
@@ -422,6 +422,10 @@ interface CTableHeadProps {
422
422
  visibleColumns: string[];
423
423
  order: 'asc' | 'desc';
424
424
  orderBy: string;
425
+ sortBy?: Array<{
426
+ field: string;
427
+ direction: 'asc' | 'desc';
428
+ }>;
425
429
  onRequestSort: (property: string) => void;
426
430
  onContextMenu?: (event: React.MouseEvent, columnId: string) => void;
427
431
  selectionMode?: 'single' | 'multiple';
@@ -433,6 +437,7 @@ interface CTableHeadProps {
433
437
  onSelectAllClick?: (event: React.ChangeEvent<HTMLInputElement>) => void;
434
438
  columnWidths?: Record<string, number>;
435
439
  onColumnResize?: (columnId: string, width: number) => void;
440
+ enableColumnReorder?: boolean;
436
441
  }
437
442
  interface CTableBodyProps {
438
443
  visibleRows: any[];
@@ -1341,6 +1346,21 @@ declare const en: {
1341
1346
  readonly 'table.group.expandAll': "Expand All Groups";
1342
1347
  readonly 'table.group.collapseAll': "Collapse All Groups";
1343
1348
  readonly 'table.mobile.notImplemented': "Mobile View Not Implemented";
1349
+ readonly 'table.headerMenu.sortAsc': "Sort Ascending";
1350
+ readonly 'table.headerMenu.sortDesc': "Sort Descending";
1351
+ readonly 'table.headerMenu.clearSort': "Clear Sort";
1352
+ readonly 'table.headerMenu.configureSort': "Configure Sort...";
1353
+ readonly 'table.headerMenu.group': "Group by this column";
1354
+ readonly 'table.headerMenu.ungroup': "Remove from grouping";
1355
+ readonly 'table.headerMenu.addSummary': "Include in Summary";
1356
+ readonly 'table.headerMenu.removeSummary': "Remove from Summary";
1357
+ readonly 'table.headerMenu.hideColumn': "Hide Column";
1358
+ readonly 'table.sortDialog.title': "Sort Settings";
1359
+ readonly 'table.sortDialog.empty': "No sort rules. Add one to start ordering rows.";
1360
+ readonly 'table.sortDialog.addRule': "Add Sort Rule";
1361
+ readonly 'table.sortDialog.clearAll': "Clear All";
1362
+ readonly 'table.sortDialog.asc': "Ascending";
1363
+ readonly 'table.sortDialog.desc': "Descending";
1344
1364
  readonly 'pivot.title.default': "Pivot Table Builder";
1345
1365
  readonly 'pivot.subtitle.default': "Drag fields to configure the pivot table.";
1346
1366
  readonly 'pivot.empty': "Drag at least one field into Values to render the pivot result.";