simple-table-core 4.0.4 → 4.0.5

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 (105) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/consts/general-consts.d.ts +2 -2
  3. package/dist/core/SimpleTableVanilla.d.ts +3 -3
  4. package/dist/core/api/TableAPIImpl.d.ts +6 -6
  5. package/dist/core/initialization/TableInitializer.d.ts +4 -4
  6. package/dist/core/rendering/RenderOrchestrator.d.ts +9 -9
  7. package/dist/core/rendering/SectionRenderer.d.ts +3 -3
  8. package/dist/core/rendering/TableRenderer.d.ts +8 -8
  9. package/dist/hooks/contentHeight.d.ts +2 -2
  10. package/dist/hooks/expandedDepths.d.ts +1 -1
  11. package/dist/hooks/handleOutsideClick.d.ts +3 -3
  12. package/dist/hooks/useAggregatedRows.d.ts +2 -2
  13. package/dist/hooks/useQuickFilter.d.ts +2 -2
  14. package/dist/index.d.ts +2 -3
  15. package/dist/index.es.js +1 -1
  16. package/dist/managers/AutoScaleManager.d.ts +5 -5
  17. package/dist/managers/ColumnManager.d.ts +12 -12
  18. package/dist/managers/DimensionManager.d.ts +2 -2
  19. package/dist/managers/DragHandlerManager.d.ts +20 -20
  20. package/dist/managers/FilterManager.d.ts +2 -2
  21. package/dist/managers/PivotManager.d.ts +4 -4
  22. package/dist/managers/RowManager.d.ts +2 -2
  23. package/dist/managers/SelectionManager/types.d.ts +3 -3
  24. package/dist/managers/SortManager.d.ts +2 -2
  25. package/dist/managers/TableManager.d.ts +4 -4
  26. package/dist/types/CellChangeProps.d.ts +1 -1
  27. package/dist/types/CellClickProps.d.ts +1 -1
  28. package/dist/types/CellRendererProps.d.ts +1 -1
  29. package/dist/types/{HeaderObject.d.ts → ColumnDef.d.ts} +3 -5
  30. package/dist/types/ColumnEditorConfig.d.ts +2 -2
  31. package/dist/types/ColumnEditorCustomRendererProps.d.ts +2 -2
  32. package/dist/types/ColumnEditorRowRendererProps.d.ts +5 -5
  33. package/dist/types/ColumnVisibilityTypes.d.ts +1 -1
  34. package/dist/types/DragHandlerProps.d.ts +6 -6
  35. package/dist/types/FilterTypes.d.ts +1 -1
  36. package/dist/types/FlattenedHeader.d.ts +3 -3
  37. package/dist/types/HandleResizeStartProps.d.ts +5 -5
  38. package/dist/types/HeaderRendererProps.d.ts +3 -3
  39. package/dist/types/OnRowGroupExpandProps.d.ts +1 -1
  40. package/dist/types/OnSortProps.d.ts +1 -1
  41. package/dist/types/PinnedSectionsState.d.ts +1 -1
  42. package/dist/types/PivotTypes.d.ts +3 -3
  43. package/dist/types/QuickFilterTypes.d.ts +1 -1
  44. package/dist/types/SharedTableProps.d.ts +7 -7
  45. package/dist/types/SimpleTableConfig.d.ts +24 -16
  46. package/dist/types/SimpleTableProps.d.ts +19 -58
  47. package/dist/types/SortColumn.d.ts +2 -2
  48. package/dist/types/TableAPI.d.ts +4 -4
  49. package/dist/types/TableBodyProps.d.ts +3 -3
  50. package/dist/types/TableHeaderProps.d.ts +4 -4
  51. package/dist/types/TableHeaderSectionProps.d.ts +2 -2
  52. package/dist/types/TableRow.d.ts +2 -2
  53. package/dist/types/TableRowProps.d.ts +6 -6
  54. package/dist/types/UpdateCellProps.d.ts +1 -1
  55. package/dist/utils/bodyCell/content.d.ts +2 -2
  56. package/dist/utils/bodyCell/types.d.ts +6 -6
  57. package/dist/utils/cellClipboardUtils.d.ts +4 -4
  58. package/dist/utils/cellUtils.d.ts +3 -3
  59. package/dist/utils/collapseUtils.d.ts +7 -7
  60. package/dist/utils/columnEditor/columnEditorUtils.d.ts +5 -5
  61. package/dist/utils/columnEditor/createColumnEditor.d.ts +5 -5
  62. package/dist/utils/columnEditor/createColumnEditorPopout.d.ts +4 -4
  63. package/dist/utils/columnEditor/createColumnEditorRow.d.ts +6 -6
  64. package/dist/utils/columnIndicesUtils.d.ts +4 -4
  65. package/dist/utils/columnVirtualizationUtils.d.ts +10 -10
  66. package/dist/utils/csvExportUtils.d.ts +3 -3
  67. package/dist/utils/filters/createBooleanFilter.d.ts +2 -2
  68. package/dist/utils/filters/createDateFilter.d.ts +2 -2
  69. package/dist/utils/filters/createEnumFilter.d.ts +2 -2
  70. package/dist/utils/filters/createFilterDropdown.d.ts +2 -2
  71. package/dist/utils/filters/createNumberFilter.d.ts +2 -2
  72. package/dist/utils/filters/createStringFilter.d.ts +2 -2
  73. package/dist/utils/footer/createTableFooter.d.ts +1 -1
  74. package/dist/utils/generalUtils.d.ts +2 -2
  75. package/dist/utils/headerCell/collapsing.d.ts +2 -2
  76. package/dist/utils/headerCell/dragging.d.ts +4 -4
  77. package/dist/utils/headerCell/editing.d.ts +3 -3
  78. package/dist/utils/headerCell/eventTracking.d.ts +3 -3
  79. package/dist/utils/headerCell/filtering.d.ts +2 -2
  80. package/dist/utils/headerCell/resizing.d.ts +2 -2
  81. package/dist/utils/headerCell/sorting.d.ts +2 -2
  82. package/dist/utils/headerCell/types.d.ts +13 -13
  83. package/dist/utils/headerLayoutUtils.d.ts +2 -2
  84. package/dist/utils/headerUtils.d.ts +5 -5
  85. package/dist/utils/headerWidthUtils.d.ts +10 -10
  86. package/dist/utils/horizontalScrollbarRenderer.d.ts +1 -1
  87. package/dist/utils/infiniteScrollUtils.d.ts +1 -1
  88. package/dist/utils/normalizeConfig.d.ts +7 -43
  89. package/dist/utils/pinnedColumnUtils.d.ts +12 -12
  90. package/dist/utils/pivot/pivotRows.d.ts +4 -4
  91. package/dist/utils/propSyncEqual.d.ts +1 -1
  92. package/dist/utils/resizeUtils/autoExpandResize.d.ts +5 -5
  93. package/dist/utils/resizeUtils/compensation.d.ts +2 -2
  94. package/dist/utils/resizeUtils/domUpdates.d.ts +3 -3
  95. package/dist/utils/resizeUtils/index.d.ts +5 -5
  96. package/dist/utils/resizeUtils/maxWidth.d.ts +3 -3
  97. package/dist/utils/resizeUtils/parentHeaderResize.d.ts +2 -2
  98. package/dist/utils/resizeUtils/sectionWidths.d.ts +2 -2
  99. package/dist/utils/rowFlattening.d.ts +2 -2
  100. package/dist/utils/rowProcessing.d.ts +2 -2
  101. package/dist/utils/rowSelectionUtils.d.ts +2 -2
  102. package/dist/utils/rowUtils.d.ts +2 -2
  103. package/dist/utils/sortUtils.d.ts +2 -2
  104. package/dist/utils/stickyParentsRenderer.d.ts +5 -5
  105. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type HeaderObject from "../../types/HeaderObject";
1
+ import type ColumnDef from "../../types/ColumnDef";
2
2
  /**
3
3
  * Width of the *visible* portion of the main (non-pinned) section: the container
4
4
  * width minus the pinned section widths.
@@ -24,7 +24,7 @@ export declare const getMainSectionViewportWidth: ({ containerWidth, leftWidth,
24
24
  * Returns both constrained widths (for display) and raw content widths (for scrolling)
25
25
  */
26
26
  export declare const recalculateAllSectionWidths: ({ headers, containerWidth, collapsedHeaders, }: {
27
- headers: HeaderObject[];
27
+ headers: ColumnDef[];
28
28
  containerWidth?: number;
29
29
  collapsedHeaders?: Set<string>;
30
30
  }) => {
@@ -1,4 +1,4 @@
1
- import HeaderObject, { Accessor } from "../types/HeaderObject";
1
+ import ColumnDef, { Accessor } from "../types/ColumnDef";
2
2
  import Row from "../types/Row";
3
3
  import RowState from "../types/RowState";
4
4
  import TableRow from "../types/TableRow";
@@ -16,7 +16,7 @@ export interface FlattenRowsConfig {
16
16
  hasLoadingRenderer?: boolean;
17
17
  hasErrorRenderer?: boolean;
18
18
  hasEmptyRenderer?: boolean;
19
- headers?: HeaderObject[];
19
+ headers?: ColumnDef[];
20
20
  rowHeight?: number;
21
21
  headerHeight?: number;
22
22
  customTheme?: CustomTheme;
@@ -1,5 +1,5 @@
1
1
  import { CumulativeHeightMap } from "./infiniteScrollUtils";
2
- import { Accessor } from "../types/HeaderObject";
2
+ import { Accessor } from "../types/ColumnDef";
3
3
  import TableRow from "../types/TableRow";
4
4
  import { HeightOffsets } from "./infiniteScrollUtils";
5
5
  import { CustomTheme } from "../types/CustomTheme";
@@ -9,7 +9,7 @@ export interface ProcessRowsConfig {
9
9
  parentEndPositions: number[];
10
10
  currentPage: number;
11
11
  rowsPerPage: number;
12
- shouldPaginate: boolean;
12
+ enablePagination: boolean;
13
13
  serverSidePagination: boolean;
14
14
  contentHeight: number | undefined;
15
15
  rowHeight: number;
@@ -1,6 +1,6 @@
1
1
  import Row from "../types/Row";
2
2
  import TableRow from "../types/TableRow";
3
- import HeaderObject from "../types/HeaderObject";
3
+ import ColumnDef from "../types/ColumnDef";
4
4
  import type { RowSelectionMode } from "../types/RowSelectionMode";
5
5
  /**
6
6
  * Whether the checkbox / row-buttons column should be injected into headers.
@@ -59,4 +59,4 @@ export declare const getSelectedRowCount: (selectedRows: Set<string>) => number;
59
59
  /**
60
60
  * Create a selection header for the checkbox column
61
61
  */
62
- export declare const createSelectionHeader: (width: number) => HeaderObject;
62
+ export declare const createSelectionHeader: (width: number) => ColumnDef;
@@ -1,6 +1,6 @@
1
1
  import TableRow from "../types/TableRow";
2
2
  import Row from "../types/Row";
3
- import HeaderObject, { Accessor } from "../types/HeaderObject";
3
+ import ColumnDef, { Accessor } from "../types/ColumnDef";
4
4
  import CellValue from "../types/CellValue";
5
5
  import RowState from "../types/RowState";
6
6
  import { CustomTheme } from "../types/CustomTheme";
@@ -180,7 +180,7 @@ export declare const flattenRowsWithGrouping: ({ depth, expandedDepths, expanded
180
180
  hasLoadingRenderer?: boolean;
181
181
  hasErrorRenderer?: boolean;
182
182
  hasEmptyRenderer?: boolean;
183
- headers?: HeaderObject[];
183
+ headers?: ColumnDef[];
184
184
  rowHeight: number;
185
185
  headerHeight: number;
186
186
  customTheme: CustomTheme;
@@ -1,8 +1,8 @@
1
- import HeaderObject from "../types/HeaderObject";
1
+ import ColumnDef from "../types/ColumnDef";
2
2
  import Row from "../types/Row";
3
3
  import SortColumn from "../types/SortColumn";
4
4
  export declare const handleSort: ({ headers, rows, sortColumn, }: {
5
- headers: HeaderObject[];
5
+ headers: ColumnDef[];
6
6
  rows: Row[];
7
7
  sortColumn: SortColumn;
8
8
  }) => Row[];
@@ -1,5 +1,5 @@
1
1
  import TableRow from "../types/TableRow";
2
- import HeaderObject from "../types/HeaderObject";
2
+ import ColumnDef from "../types/ColumnDef";
3
3
  import { CumulativeHeightMap, HeightOffsets } from "./infiniteScrollUtils";
4
4
  import type { SectionScrollController } from "../managers/SectionScrollController";
5
5
  import { CustomTheme } from "../types/CustomTheme";
@@ -8,9 +8,9 @@ export interface StickyParentsContainerProps {
8
8
  calculatedHeaderHeight: number;
9
9
  heightMap?: CumulativeHeightMap;
10
10
  partiallyVisibleRows: TableRow[];
11
- pinnedLeftColumns: HeaderObject[];
11
+ pinnedLeftColumns: ColumnDef[];
12
12
  pinnedLeftWidth: number;
13
- pinnedRightColumns: HeaderObject[];
13
+ pinnedRightColumns: ColumnDef[];
14
14
  pinnedRightWidth: number;
15
15
  scrollTop: number;
16
16
  scrollbarWidth: number;
@@ -42,8 +42,8 @@ export interface StickyParentsRenderContext {
42
42
  collapsedHeaders: Set<string>;
43
43
  customTheme: CustomTheme;
44
44
  /** True when the column-editor toggle strip is visible and reserves horizontal space. */
45
- editColumns: boolean;
46
- headers: HeaderObject[];
45
+ enableColumnEditor: boolean;
46
+ headers: ColumnDef[];
47
47
  rowHeight: number;
48
48
  heightOffsets: HeightOffsets | undefined;
49
49
  cellRenderContext: CellRenderContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-table-core",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",