@syook/react-tabulous 4.0.6 → 4.1.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.
- package/lib/index.d.ts +7 -1
- package/lib/index.esm.js +3 -3
- package/lib/index.js +2 -2
- package/lib/types/data/index.d.ts +2 -57
- package/lib/types/reactTabulous/components/cell/columnCell.d.ts +2 -0
- package/lib/types/reactTabulous/components/columnHeaders/columnHeaderItem.d.ts +11 -4
- package/lib/types/reactTabulous/constant/index.d.ts +2 -0
- package/lib/types/reactTabulous/models/columnDef/columnAlign.d.ts +1 -0
- package/lib/types/reactTabulous/models/columnDef/columnDef.d.ts +5 -0
- package/lib/types/reactTabulous/models/gridFiltersModel.d.ts +2 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -70,6 +70,8 @@ interface OptionInterface {
|
|
|
70
70
|
label: string | number;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
type ColumnAlignment = 'left' | 'center' | 'right';
|
|
74
|
+
|
|
73
75
|
interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> {
|
|
74
76
|
/**
|
|
75
77
|
* The column identifier. It's used to map with [[GridRowModel]] values.
|
|
@@ -126,6 +128,10 @@ interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel, V = an
|
|
|
126
128
|
* The column to show options in filter.
|
|
127
129
|
*/
|
|
128
130
|
options?: OptionInterface[];
|
|
131
|
+
/**
|
|
132
|
+
* Align the column.
|
|
133
|
+
*/
|
|
134
|
+
align?: ColumnAlignment;
|
|
129
135
|
}
|
|
130
136
|
interface GridActionsColDef<R extends GridValidRowModel = any, V = any, F = V> extends GridBaseColDef<R, V, F> {
|
|
131
137
|
/**
|
|
@@ -163,7 +169,7 @@ interface FilterFieldProps {
|
|
|
163
169
|
operator: string;
|
|
164
170
|
value: any;
|
|
165
171
|
field: string;
|
|
166
|
-
options?: string[];
|
|
172
|
+
options?: string[] | OptionInterface[];
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
interface DataGridPropsWithDefaultValues {
|