dhx-react-suite 1.1.6 → 1.1.8
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/dhx-react-suite.js +1555 -1165
- package/dist/dhx-react-suite.js.map +1 -1
- package/dist/dhx-react-suite.umd.cjs +2 -2
- package/dist/dhx-react-suite.umd.cjs.map +1 -1
- package/dist/index.d.ts +42 -10
- package/package.json +1 -1
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;
|
|
@@ -439,25 +452,44 @@ declare interface RibbonSubItem {
|
|
|
439
452
|
onChange?: (value: string) => void;
|
|
440
453
|
}
|
|
441
454
|
|
|
442
|
-
export declare function Sidebar({ items, width, collapsed
|
|
455
|
+
export declare function Sidebar({ items, width, minWidth, header, footer, collapsed, defaultCollapsed, selected, defaultSelected, onSelect, onCollapse, onExpand, onBeforeCollapse, onBeforeExpand, onToggleItem, style, }: SidebarProps): JSX_2.Element;
|
|
456
|
+
|
|
457
|
+
export declare type SidebarBadgeColor = "danger" | "primary" | "success" | "secondary";
|
|
443
458
|
|
|
444
459
|
export declare interface SidebarItem {
|
|
445
|
-
id
|
|
460
|
+
id?: string;
|
|
461
|
+
type?: "navItem" | "separator" | "spacer" | "title" | "customHTML";
|
|
446
462
|
value?: string;
|
|
447
463
|
icon?: React.ReactNode;
|
|
448
|
-
count?: number;
|
|
449
|
-
type?: "separator" | "customHTML";
|
|
450
464
|
html?: string;
|
|
465
|
+
tooltip?: string;
|
|
466
|
+
count?: number;
|
|
467
|
+
countColor?: SidebarBadgeColor;
|
|
468
|
+
twoState?: boolean;
|
|
469
|
+
active?: boolean;
|
|
470
|
+
group?: string;
|
|
471
|
+
disabled?: boolean;
|
|
472
|
+
hidden?: boolean;
|
|
451
473
|
items?: SidebarItem[];
|
|
474
|
+
onClick?: (id: string) => void;
|
|
452
475
|
}
|
|
453
476
|
|
|
454
477
|
export declare interface SidebarProps {
|
|
455
478
|
items?: SidebarItem[];
|
|
456
479
|
width?: number;
|
|
457
|
-
|
|
480
|
+
minWidth?: number;
|
|
458
481
|
header?: React.ReactNode;
|
|
459
482
|
footer?: React.ReactNode;
|
|
483
|
+
collapsed?: boolean;
|
|
484
|
+
defaultCollapsed?: boolean;
|
|
485
|
+
selected?: string;
|
|
486
|
+
defaultSelected?: string;
|
|
460
487
|
onSelect?: (item: SidebarItem) => void;
|
|
488
|
+
onCollapse?: () => void;
|
|
489
|
+
onExpand?: () => void;
|
|
490
|
+
onBeforeCollapse?: () => boolean | void;
|
|
491
|
+
onBeforeExpand?: () => boolean | void;
|
|
492
|
+
onToggleItem?: (id: string, active: boolean) => void;
|
|
461
493
|
style?: React.CSSProperties;
|
|
462
494
|
}
|
|
463
495
|
|