dhx-react-suite 1.1.6 → 1.1.7

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
@@ -205,14 +205,11 @@ export declare interface FormProps {
205
205
  style?: React.CSSProperties;
206
206
  }
207
207
 
208
- export declare function Grid({ columns, data, height, rowHeight, sortable, resizable, editable, stripe, autoWidth, keyNavigation, selection, multiselect, onSelect, onChange, style, }: GridProps): JSX_2.Element;
208
+ export declare function Grid({ columns, data, height, rowHeight, headerRowHeight, footerRowHeight, sortable, resizable, editable, stripe, autoWidth, keyNavigation, selection, multiselect, leftSplit, onSelect, onChange, style, }: GridProps): JSX_2.Element;
209
209
 
210
210
  export declare interface GridColumn {
211
211
  id: string;
212
- header?: {
213
- text: string;
214
- align?: "left" | "center" | "right";
215
- }[] | string;
212
+ header?: GridColumnHeader[] | string;
216
213
  footer?: GridColumnFooter[];
217
214
  width?: number;
218
215
  minWidth?: number;
@@ -221,6 +218,12 @@ export declare interface GridColumn {
221
218
  filterType?: "input" | "select";
222
219
  resizable?: boolean;
223
220
  editable?: boolean;
221
+ editorType?: "input" | "select" | "combobox";
222
+ options?: string[];
223
+ hidden?: boolean;
224
+ type?: "string" | "number" | "date" | "boolean";
225
+ htmlEnable?: boolean;
226
+ summary?: "sum" | "avg" | "count" | "min" | "max";
224
227
  align?: "left" | "center" | "right";
225
228
  template?: (value: unknown, row: Record<string, unknown>) => React.ReactNode;
226
229
  }
@@ -236,11 +239,20 @@ declare interface GridColumnFooter {
236
239
  summary?: "sum" | "avg" | "count" | "min" | "max";
237
240
  }
238
241
 
242
+ declare interface GridColumnHeader {
243
+ text?: string;
244
+ align?: "left" | "center" | "right";
245
+ htmlEnable?: boolean;
246
+ content?: "inputFilter" | "selectFilter" | "comboFilter";
247
+ }
248
+
239
249
  export declare interface GridProps {
240
250
  columns: GridColumn[];
241
251
  data?: Record<string, unknown>[];
242
252
  height?: string | number;
243
253
  rowHeight?: number;
254
+ headerRowHeight?: number;
255
+ footerRowHeight?: number;
244
256
  sortable?: boolean;
245
257
  resizable?: boolean;
246
258
  editable?: boolean;
@@ -249,6 +261,7 @@ export declare interface GridProps {
249
261
  keyNavigation?: boolean;
250
262
  selection?: "row" | "cell";
251
263
  multiselect?: boolean;
264
+ leftSplit?: number;
252
265
  onSelect?: (row: Record<string, unknown>) => void;
253
266
  onChange?: (row: Record<string, unknown>, colId: string, value: unknown) => void;
254
267
  style?: React.CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-react-suite",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "TypeScript ui-components",
5
5
  "type": "module",
6
6
  "main": "./dist/dhx-react-suite.umd.cjs",