schummar-table 0.49.1 → 0.50.0

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
  import "./exporter-ztSF5GbY.cjs";
2
- import { PartialTableTheme } from "./types-DzYx_oT1.cjs";
2
+ import { PartialTableTheme } from "./types-BAknIm9h.cjs";
3
3
  import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
4
4
  import { ReactNode } from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import "./exporter-BxgFAyWA.js";
2
- import { PartialTableTheme } from "./types-k3mbd-dT.js";
2
+ import { PartialTableTheme } from "./types-Bm2QIKdr.js";
3
3
  import { ReactNode } from "react";
4
4
  import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import "./exporter-ztSF5GbY.cjs";
2
- import { PartialTableTheme } from "./types-DzYx_oT1.cjs";
2
+ import { PartialTableTheme } from "./types-BAknIm9h.cjs";
3
3
  import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
4
4
  import { ReactNode } from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import "./exporter-BxgFAyWA.js";
2
- import { PartialTableTheme } from "./types-k3mbd-dT.js";
2
+ import { PartialTableTheme } from "./types-Bm2QIKdr.js";
3
3
  import { ReactNode } from "react";
4
4
  import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
5
5
 
@@ -19,6 +19,8 @@ type TableStateStorage = {
19
19
  type Sort = {
20
20
  columnId: string | number;
21
21
  direction: SortDirection;
22
+ locale?: string;
23
+ options?: Intl.CollatorOptions;
22
24
  };
23
25
  type SortDirection = 'asc' | 'desc';
24
26
  type Id = string | number;
@@ -175,7 +177,7 @@ type MemoizedTableTheme<TItem> = Omit<TableTheme, 'classes' | 'styles' | 'text'>
175
177
  text: MemoizedFunctions<TableTheme<TItem>['text']>;
176
178
  };
177
179
  type ColumnGenerator<TItem> = (col: ColumnFactory<TItem>) => (Column<TItem, any> | Falsy)[];
178
- type ColumnFactory<TItem> = <TColumnValue>(value: (item: TItem) => TColumnValue, column: Omit<Column<TItem, TColumnValue>, 'value'>) => Column<TItem, TColumnValue>;
180
+ type ColumnFactory<TItem> = <TColumnValue>(value: FunctionWithDeps<(item: TItem) => TColumnValue>, column: Omit<Column<TItem, TColumnValue>, 'value'>) => Column<TItem, TColumnValue>;
179
181
  interface TableProps<TItem> extends PartialTableTheme<TItem> {
180
182
  /** The data to be rendered. One item per row. */
181
183
  items?: readonly TItem[];
@@ -433,4 +435,4 @@ type FilterImplementation<TItem, TColumnValue, TFilterBy, TFilterValue> = Common
433
435
  };
434
436
  //#endregion
435
437
  export { Column, CommonFilterProps, FilterImplementation, FunctionWithDeps, Id, InternalColumn, InternalTableState, MemoizedTableTheme, PartialTableTheme, Sort, SortDirection, TableItem, TableProps, TableRef, TableStateStorage, TableTheme };
436
- //# sourceMappingURL=types-DzYx_oT1.d.cts.map
438
+ //# sourceMappingURL=types-BAknIm9h.d.cts.map
@@ -19,6 +19,8 @@ type TableStateStorage = {
19
19
  type Sort = {
20
20
  columnId: string | number;
21
21
  direction: SortDirection;
22
+ locale?: string;
23
+ options?: Intl.CollatorOptions;
22
24
  };
23
25
  type SortDirection = 'asc' | 'desc';
24
26
  type Id = string | number;
@@ -175,7 +177,7 @@ type MemoizedTableTheme<TItem> = Omit<TableTheme, 'classes' | 'styles' | 'text'>
175
177
  text: MemoizedFunctions<TableTheme<TItem>['text']>;
176
178
  };
177
179
  type ColumnGenerator<TItem> = (col: ColumnFactory<TItem>) => (Column<TItem, any> | Falsy)[];
178
- type ColumnFactory<TItem> = <TColumnValue>(value: (item: TItem) => TColumnValue, column: Omit<Column<TItem, TColumnValue>, 'value'>) => Column<TItem, TColumnValue>;
180
+ type ColumnFactory<TItem> = <TColumnValue>(value: FunctionWithDeps<(item: TItem) => TColumnValue>, column: Omit<Column<TItem, TColumnValue>, 'value'>) => Column<TItem, TColumnValue>;
179
181
  interface TableProps<TItem> extends PartialTableTheme<TItem> {
180
182
  /** The data to be rendered. One item per row. */
181
183
  items?: readonly TItem[];
@@ -433,4 +435,4 @@ type FilterImplementation<TItem, TColumnValue, TFilterBy, TFilterValue> = Common
433
435
  };
434
436
  //#endregion
435
437
  export { Column, CommonFilterProps, FilterImplementation, FunctionWithDeps, Id, InternalColumn, InternalTableState, MemoizedTableTheme, PartialTableTheme, Sort, SortDirection, TableItem, TableProps, TableRef, TableStateStorage, TableTheme };
436
- //# sourceMappingURL=types-k3mbd-dT.d.ts.map
438
+ //# sourceMappingURL=types-Bm2QIKdr.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schummar-table",
3
- "version": "0.49.1",
3
+ "version": "0.50.0",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "repository": "schummar/schummar-table",