simple-table-core 2.5.0 → 2.5.3

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-8044e152.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ import RowSelectionChangeProps from "./types/RowSelectionChangeProps";
28
28
  import CellClickProps from "./types/CellClickProps";
29
29
  import CellRendererProps, { CellRenderer } from "./types/CellRendererProps";
30
30
  import HeaderRendererProps, { HeaderRenderer, HeaderRendererComponents } from "./types/HeaderRendererProps";
31
+ import ColumnEditorRowRendererProps, { ColumnEditorRowRenderer, ColumnEditorRowRendererComponents } from "./types/ColumnEditorRowRendererProps";
31
32
  import HeaderDropdownProps, { HeaderDropdown } from "./types/HeaderDropdownProps";
32
33
  import { RowButtonProps } from "./types/RowButton";
33
34
  import FooterRendererProps from "./types/FooterRendererProps";
@@ -38,4 +39,4 @@ import { IconsConfig } from "./types/IconsConfig";
38
39
  import { GetRowId, GetRowIdParams } from "./types/GetRowId";
39
40
  export { SimpleTable, LineAreaChart, BarChart };
40
41
  export * from "./icons";
41
- export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ChartOptions, ColumnEditorConfig, ColumnEditorSearchFunction, ColumnType, ColumnVisibilityState, Comparator, ComparatorProps, CustomTheme, DragHandlerProps, EmptyStateRenderer, EmptyStateRendererProps, EnumOption, ErrorStateRenderer, ErrorStateRendererProps, ExportToCSVProps, ExportValueGetter, ExportValueProps, FilterCondition, FooterRendererProps, GetRowId, GetRowIdParams, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, HeaderRendererComponents, OnRowGroupExpandProps, OnSortProps, QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode, Row, RowButtonProps, RowSelectionChangeProps, RowState, SetHeaderRenameProps, SharedTableProps, ShowWhen, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps, };
42
+ export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ChartOptions, ColumnEditorConfig, ColumnEditorRowRenderer, ColumnEditorRowRendererComponents, ColumnEditorRowRendererProps, ColumnEditorSearchFunction, ColumnType, ColumnVisibilityState, Comparator, ComparatorProps, CustomTheme, DragHandlerProps, EmptyStateRenderer, EmptyStateRendererProps, EnumOption, ErrorStateRenderer, ErrorStateRendererProps, ExportToCSVProps, ExportValueGetter, ExportValueProps, FilterCondition, FooterRendererProps, GetRowId, GetRowIdParams, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, HeaderRendererComponents, OnRowGroupExpandProps, OnSortProps, QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode, Row, RowButtonProps, RowSelectionChangeProps, RowState, SetHeaderRenameProps, SharedTableProps, ShowWhen, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps, };
package/dist/index.es.js CHANGED
@@ -1,2 +1,2 @@
1
- export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DescIcon,k as DragIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-2602acfc.js";import"react/jsx-runtime";import"react";
1
+ export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DescIcon,k as DragIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-8044e152.js";import"react/jsx-runtime";import"react";
2
2
  //# sourceMappingURL=index.es.js.map
@@ -1,4 +1,5 @@
1
1
  import HeaderObject from "./HeaderObject";
2
+ import { ColumnEditorRowRenderer } from "./ColumnEditorRowRendererProps";
2
3
  /**
3
4
  * Custom search function for filtering columns in the column editor
4
5
  * @param header - The header object to check
@@ -18,5 +19,7 @@ export interface ColumnEditorConfig {
18
19
  searchPlaceholder?: string;
19
20
  /** Custom search function to override default search behavior. Receives header and searchTerm, returns true if header matches. */
20
21
  searchFunction?: ColumnEditorSearchFunction;
22
+ /** Custom renderer for column editor row layout to reposition icons and labels */
23
+ rowRenderer?: ColumnEditorRowRenderer;
21
24
  }
22
- export declare const DEFAULT_COLUMN_EDITOR_CONFIG: Required<Omit<ColumnEditorConfig, "searchFunction">>;
25
+ export declare const DEFAULT_COLUMN_EDITOR_CONFIG: Required<Omit<ColumnEditorConfig, "searchFunction" | "rowRenderer">>;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from "react";
2
+ import type { Accessor } from "./HeaderObject";
3
+ import type HeaderObject from "./HeaderObject";
4
+ export interface ColumnEditorRowRendererComponents {
5
+ expandIcon?: ReactNode;
6
+ checkbox?: ReactNode;
7
+ dragIcon?: ReactNode;
8
+ labelContent?: ReactNode;
9
+ }
10
+ interface ColumnEditorRowRendererProps {
11
+ accessor: Accessor;
12
+ header: HeaderObject;
13
+ components: ColumnEditorRowRendererComponents;
14
+ }
15
+ export type ColumnEditorRowRenderer = (props: ColumnEditorRowRendererProps) => ReactNode | string;
16
+ export default ColumnEditorRowRendererProps;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.5.0",
2
+ "version": "2.5.3",
3
3
  "main": "dist/cjs/index.js",
4
4
  "module": "dist/index.es.js",
5
5
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Animate-78104f65.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePicker-7353507b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Animate-9232b9f5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePicker-7995d91f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-7da7745f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-2602acfc.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}