@youp-grid/core 0.2.1 → 0.2.2

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.ts CHANGED
@@ -18,4 +18,4 @@ export { clearFilter, clearSort, acknowledgeRemoteCache, cancelRemoteRequest, cr
18
18
  export { getVirtualRange } from "./virtualizer.ts";
19
19
  export { createValueHistoryState, invertValueHistoryEntry, pushValueHistoryEntry, redoValueHistory, undoValueHistory, } from "./history.ts";
20
20
  export type { GridCellValueHistoryChange, GridValueHistoryEntry, GridValueHistoryState, } from "./history.ts";
21
- export type { Accessor, AggregationFunctionName, AggregationResult, AggregationRule, BuildRowModelOptions, ColumnPin, ColumnState, ColumnComparator, ColumnDef, ColumnEditor, ColumnEditorOption, ColumnEditorOptionValue, ColumnFilterPredicate, CursorPaginationState, FilterOperator, FilterRule, GridRowId, GridRowModelType, GridState, InfiniteScrollTrigger, InfiniteScrollTriggerOptions, PaginationState, ResolvedColumnDef, RemoteCacheState, RemoteRequestState, RemoteRequestStatus, RowModel, RowDisplayNode, RowGroupNode, RowGroupingState, RowNode, SortDirection, SortRule, ValueFormatter, ValueParser, VirtualItem, VirtualRange, VirtualRangeOptions, } from "./types.ts";
21
+ export type { Accessor, AggregationFunctionName, AggregationResult, AggregationRule, BuildRowModelOptions, ColumnAlign, ColumnPin, ColumnState, ColumnComparator, ColumnDef, ColumnEditor, ColumnEditorOption, ColumnEditorOptionValue, ColumnFilterPredicate, CursorPaginationState, FilterOperator, FilterRule, GridRowId, GridRowModelType, GridState, InfiniteScrollTrigger, InfiniteScrollTriggerOptions, PaginationState, ResolvedColumnDef, RemoteCacheState, RemoteRequestState, RemoteRequestStatus, RowModel, RowDisplayNode, RowGroupNode, RowGroupingState, RowNode, SortDirection, SortRule, ValueFormatter, ValueParser, VirtualItem, VirtualRange, VirtualRangeOptions, } from "./types.ts";
package/dist/types.d.ts CHANGED
@@ -9,6 +9,7 @@ export type ColumnFilterPredicate<TValue = unknown, TRow = unknown> = (value: TV
9
9
  export type ValueFormatter<TValue = unknown, TRow = unknown> = (value: TValue, row: TRow) => string;
10
10
  export type ValueParser<TValue = unknown, TRow = unknown> = (input: string, row: TRow) => TValue;
11
11
  export type ColumnEditor = "text" | "number" | "checkbox" | "select";
12
+ export type ColumnAlign = "left" | "center" | "right";
12
13
  export type ColumnEditorOptionValue = string | number | boolean;
13
14
  export type ColumnEditorOption = ColumnEditorOptionValue | {
14
15
  value: ColumnEditorOptionValue;
@@ -33,6 +34,7 @@ export type ColumnDef<TRow, TValue = unknown> = {
33
34
  valueFormatter?: ValueFormatter<TValue, TRow>;
34
35
  valueParser?: ValueParser<TValue, TRow>;
35
36
  editor?: ColumnEditor;
37
+ align?: ColumnAlign;
36
38
  options?: readonly ColumnEditorOption[];
37
39
  placeholder?: string;
38
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youp-grid/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Framework-agnostic data grid core for Youp Grid.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",