@inf-monkeys-tech/monkeys-design 0.4.31 → 0.4.33
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/README.md +6 -0
- package/dist/components/base/index.d.mts +2 -2
- package/dist/components/base/index.d.ts +2 -2
- package/dist/components/base/index.js +545 -26
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +543 -28
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +752 -0
- package/dist/components/workbench/index.d.ts +752 -0
- package/dist/components/workbench/index.js +6650 -0
- package/dist/components/workbench/index.js.map +1 -0
- package/dist/components/workbench/index.mjs +6614 -0
- package/dist/components/workbench/index.mjs.map +1 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4197 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4180 -33
- package/dist/index.mjs.map +1 -1
- package/dist/{theme-CvbotXXr.d.ts → theme-CoG9vCPT.d.mts} +8 -3
- package/dist/{theme-6RDum855.d.mts → theme-Cuy60thu.d.ts} +8 -3
- package/dist/theme-system/index.d.mts +1 -1
- package/dist/theme-system/index.d.ts +1 -1
- package/dist/theme-system/index.js +398 -16
- package/dist/theme-system/index.js.map +1 -1
- package/dist/theme-system/index.mjs +399 -17
- package/dist/theme-system/index.mjs.map +1 -1
- package/dist/{types-BgEEUqSm.d.mts → types-CZALgtez.d.mts} +121 -1
- package/dist/{types-BgEEUqSm.d.ts → types-CZALgtez.d.ts} +121 -1
- package/package.json +7 -1
|
@@ -0,0 +1,752 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode, MouseEvent, ElementType, CSSProperties, ComponentPropsWithoutRef, ComponentType } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { aZ as BaseTableSortDirection, c as BaseAppearance, aI as BaseTableColumnSizes, aG as BaseTableColumnOrderChangeDetail, aH as BaseTableColumnSizeChangeDetail } from '../../types-CZALgtez.js';
|
|
5
|
+
import '@radix-ui/react-context-menu';
|
|
6
|
+
|
|
7
|
+
interface WorkbenchResizableSidebarItem {
|
|
8
|
+
id: string;
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
href?: string;
|
|
14
|
+
to?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
endContent?: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
19
|
+
}
|
|
20
|
+
interface WorkbenchResizableSidebarClassNames {
|
|
21
|
+
root?: string;
|
|
22
|
+
header?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
collapseButton?: string;
|
|
25
|
+
list?: string;
|
|
26
|
+
item?: string;
|
|
27
|
+
itemIcon?: string;
|
|
28
|
+
itemLabel?: string;
|
|
29
|
+
resizeHandle?: string;
|
|
30
|
+
mobileNav?: string;
|
|
31
|
+
mobileItem?: string;
|
|
32
|
+
}
|
|
33
|
+
interface WorkbenchResizableSidebarProps {
|
|
34
|
+
title?: ReactNode;
|
|
35
|
+
items: WorkbenchResizableSidebarItem[];
|
|
36
|
+
activeItemId?: string;
|
|
37
|
+
itemAs?: ElementType;
|
|
38
|
+
collapsed?: boolean;
|
|
39
|
+
defaultCollapsed?: boolean;
|
|
40
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
41
|
+
width?: number;
|
|
42
|
+
onWidthChange?: (width: number) => void;
|
|
43
|
+
defaultWidth?: number;
|
|
44
|
+
minWidth?: number;
|
|
45
|
+
maxWidth?: number;
|
|
46
|
+
collapsedWidth?: number;
|
|
47
|
+
collapseThreshold?: number;
|
|
48
|
+
storageKey?: string;
|
|
49
|
+
resizable?: boolean;
|
|
50
|
+
collapsible?: boolean;
|
|
51
|
+
collapseLabel?: string;
|
|
52
|
+
expandLabel?: string;
|
|
53
|
+
resizeLabel?: string;
|
|
54
|
+
desktopClassName?: string;
|
|
55
|
+
mobileClassName?: string;
|
|
56
|
+
className?: string;
|
|
57
|
+
classNames?: WorkbenchResizableSidebarClassNames;
|
|
58
|
+
style?: CSSProperties;
|
|
59
|
+
}
|
|
60
|
+
declare const WorkbenchResizableSidebar: React.ForwardRefExoticComponent<WorkbenchResizableSidebarProps & React.RefAttributes<HTMLElement>>;
|
|
61
|
+
|
|
62
|
+
interface WorkbenchContentPaneClassNames {
|
|
63
|
+
root?: string;
|
|
64
|
+
header?: string;
|
|
65
|
+
body?: string;
|
|
66
|
+
footer?: string;
|
|
67
|
+
}
|
|
68
|
+
interface WorkbenchContentPaneBodyProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'className'> {
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
interface WorkbenchContentPaneProps extends Omit<ComponentPropsWithoutRef<'section'>, 'children' | 'className' | 'style'> {
|
|
72
|
+
as?: ElementType;
|
|
73
|
+
bodyAs?: ElementType;
|
|
74
|
+
header?: ReactNode;
|
|
75
|
+
footer?: ReactNode;
|
|
76
|
+
children?: ReactNode;
|
|
77
|
+
className?: string;
|
|
78
|
+
headerClassName?: string;
|
|
79
|
+
bodyClassName?: string;
|
|
80
|
+
footerClassName?: string;
|
|
81
|
+
bodyProps?: WorkbenchContentPaneBodyProps;
|
|
82
|
+
classNames?: WorkbenchContentPaneClassNames;
|
|
83
|
+
style?: CSSProperties;
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}
|
|
86
|
+
declare const WorkbenchContentPane: React.ForwardRefExoticComponent<Omit<WorkbenchContentPaneProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
87
|
+
|
|
88
|
+
interface WorkbenchGalleryColumn {
|
|
89
|
+
key: string;
|
|
90
|
+
label?: ReactNode;
|
|
91
|
+
renderType?: string;
|
|
92
|
+
type?: string;
|
|
93
|
+
wrap?: boolean;
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface WorkbenchGallerySettingsValue {
|
|
98
|
+
visibleColumnKeys?: string[];
|
|
99
|
+
galleryFieldKey?: string;
|
|
100
|
+
galleryLayout?: 'fixed' | 'masonry' | string;
|
|
101
|
+
galleryDensity?: 'compact' | 'comfortable' | 'detailed' | string;
|
|
102
|
+
galleryGridColumns?: number | 'auto' | string;
|
|
103
|
+
galleryBentoColumns?: 1 | 2 | 3 | number;
|
|
104
|
+
galleryDetailVisibility?: 'all' | 'limit' | string;
|
|
105
|
+
galleryDetailLimit?: number | string;
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
}
|
|
108
|
+
interface WorkbenchGallerySettingsOption<Value extends string | number = string> {
|
|
109
|
+
value: Value;
|
|
110
|
+
label: ReactNode;
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
}
|
|
113
|
+
interface WorkbenchGallerySettingsLabels {
|
|
114
|
+
settingsButton?: ReactNode;
|
|
115
|
+
title?: ReactNode;
|
|
116
|
+
visibleColumns?: ReactNode;
|
|
117
|
+
coverField?: ReactNode;
|
|
118
|
+
autoDetect?: ReactNode;
|
|
119
|
+
cardDensity?: ReactNode;
|
|
120
|
+
cardColumns?: ReactNode;
|
|
121
|
+
detailColumns?: ReactNode;
|
|
122
|
+
fieldVisibility?: ReactNode;
|
|
123
|
+
fieldLimit?: ReactNode;
|
|
124
|
+
fieldLimitHint?: ReactNode;
|
|
125
|
+
layout?: ReactNode;
|
|
126
|
+
compact?: ReactNode;
|
|
127
|
+
comfortable?: ReactNode;
|
|
128
|
+
detailed?: ReactNode;
|
|
129
|
+
autoColumns?: ReactNode;
|
|
130
|
+
columns?: (count: number) => ReactNode;
|
|
131
|
+
bentoColumns?: (count: number) => ReactNode;
|
|
132
|
+
topLimit?: ReactNode;
|
|
133
|
+
allFields?: ReactNode;
|
|
134
|
+
adaptiveGrid?: ReactNode;
|
|
135
|
+
masonry?: ReactNode;
|
|
136
|
+
}
|
|
137
|
+
interface WorkbenchGallerySettingsPanelClassNames {
|
|
138
|
+
root?: string;
|
|
139
|
+
section?: string;
|
|
140
|
+
sectionHeader?: string;
|
|
141
|
+
columnList?: string;
|
|
142
|
+
columnItem?: string;
|
|
143
|
+
control?: string;
|
|
144
|
+
}
|
|
145
|
+
interface WorkbenchGallerySettingsPanelProps {
|
|
146
|
+
columns?: WorkbenchGalleryColumn[];
|
|
147
|
+
galleryFieldOptions?: WorkbenchGalleryColumn[];
|
|
148
|
+
value?: WorkbenchGallerySettingsValue;
|
|
149
|
+
onValueChange?: (nextValue: WorkbenchGallerySettingsValue, patch: Partial<WorkbenchGallerySettingsValue>) => void;
|
|
150
|
+
labels?: WorkbenchGallerySettingsLabels;
|
|
151
|
+
densityOptions?: Array<WorkbenchGallerySettingsOption>;
|
|
152
|
+
gridColumnOptions?: Array<WorkbenchGallerySettingsOption<number | 'auto'>>;
|
|
153
|
+
bentoColumnOptions?: Array<WorkbenchGallerySettingsOption<number>>;
|
|
154
|
+
detailVisibilityOptions?: Array<WorkbenchGallerySettingsOption>;
|
|
155
|
+
layoutOptions?: Array<WorkbenchGallerySettingsOption>;
|
|
156
|
+
getColumnLabel?: (column: WorkbenchGalleryColumn) => ReactNode;
|
|
157
|
+
getColumnDescription?: (column: WorkbenchGalleryColumn) => ReactNode;
|
|
158
|
+
showColumnVisibility?: boolean;
|
|
159
|
+
showGalleryControls?: boolean;
|
|
160
|
+
showLayoutControl?: boolean;
|
|
161
|
+
showGridColumns?: boolean;
|
|
162
|
+
showDetailColumns?: boolean;
|
|
163
|
+
allowEmptyVisibleColumns?: boolean;
|
|
164
|
+
className?: string;
|
|
165
|
+
classNames?: WorkbenchGallerySettingsPanelClassNames;
|
|
166
|
+
}
|
|
167
|
+
interface WorkbenchGallerySettingsButtonClassNames {
|
|
168
|
+
root?: string;
|
|
169
|
+
trigger?: string;
|
|
170
|
+
popover?: string;
|
|
171
|
+
header?: string;
|
|
172
|
+
panel?: string;
|
|
173
|
+
}
|
|
174
|
+
interface WorkbenchGallerySettingsButtonProps extends WorkbenchGallerySettingsPanelProps {
|
|
175
|
+
open?: boolean;
|
|
176
|
+
defaultOpen?: boolean;
|
|
177
|
+
onOpenChange?: (open: boolean) => void;
|
|
178
|
+
triggerIcon?: ReactNode;
|
|
179
|
+
triggerLabel?: ReactNode;
|
|
180
|
+
triggerTitle?: string;
|
|
181
|
+
align?: 'start' | 'end';
|
|
182
|
+
popoverWidth?: number;
|
|
183
|
+
panelHeader?: ReactNode;
|
|
184
|
+
panelBefore?: ReactNode;
|
|
185
|
+
panelAfter?: ReactNode;
|
|
186
|
+
panelClassName?: string;
|
|
187
|
+
buttonClassName?: string;
|
|
188
|
+
popoverClassName?: string;
|
|
189
|
+
buttonClassNames?: WorkbenchGallerySettingsButtonClassNames;
|
|
190
|
+
}
|
|
191
|
+
declare function WorkbenchGallerySettingsPanel({ columns, galleryFieldOptions, value, onValueChange, labels, densityOptions, gridColumnOptions, bentoColumnOptions, detailVisibilityOptions, layoutOptions, getColumnLabel, getColumnDescription, showColumnVisibility, showGalleryControls, showLayoutControl, showGridColumns, showDetailColumns, allowEmptyVisibleColumns, className, classNames, }: WorkbenchGallerySettingsPanelProps): react_jsx_runtime.JSX.Element;
|
|
192
|
+
declare function WorkbenchGallerySettingsButton({ open, defaultOpen, onOpenChange, triggerIcon, triggerLabel, triggerTitle, align, popoverWidth, panelHeader, panelBefore, panelAfter, panelClassName, buttonClassName, popoverClassName, buttonClassNames, labels, className, classNames, ...panelProps }: WorkbenchGallerySettingsButtonProps): react_jsx_runtime.JSX.Element;
|
|
193
|
+
|
|
194
|
+
interface WorkbenchContentToolbarViewModeOption {
|
|
195
|
+
value: string;
|
|
196
|
+
label: ReactNode;
|
|
197
|
+
icon?: ReactNode;
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
}
|
|
200
|
+
interface WorkbenchContentToolbarClassNames {
|
|
201
|
+
root?: string;
|
|
202
|
+
start?: string;
|
|
203
|
+
end?: string;
|
|
204
|
+
viewModeRoot?: string;
|
|
205
|
+
viewModeTrigger?: string;
|
|
206
|
+
viewModeMenu?: string;
|
|
207
|
+
viewModeItem?: string;
|
|
208
|
+
settings?: string;
|
|
209
|
+
}
|
|
210
|
+
interface WorkbenchContentToolbarProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'className'> {
|
|
211
|
+
as?: ElementType;
|
|
212
|
+
children?: ReactNode;
|
|
213
|
+
end?: ReactNode;
|
|
214
|
+
viewMode?: string;
|
|
215
|
+
viewModeOptions?: WorkbenchContentToolbarViewModeOption[];
|
|
216
|
+
onViewModeChange?: (nextValue: string, option: WorkbenchContentToolbarViewModeOption) => void;
|
|
217
|
+
gallerySettings?: WorkbenchGallerySettingsButtonProps | false;
|
|
218
|
+
gallerySettingsPlacement?: 'start' | 'end';
|
|
219
|
+
className?: string;
|
|
220
|
+
startClassName?: string;
|
|
221
|
+
endClassName?: string;
|
|
222
|
+
classNames?: WorkbenchContentToolbarClassNames;
|
|
223
|
+
[key: string]: any;
|
|
224
|
+
}
|
|
225
|
+
declare const WorkbenchContentToolbar: React.ForwardRefExoticComponent<Omit<WorkbenchContentToolbarProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
226
|
+
|
|
227
|
+
interface WorkbenchDetailSidebarClassNames {
|
|
228
|
+
root?: string;
|
|
229
|
+
header?: string;
|
|
230
|
+
body?: string;
|
|
231
|
+
footer?: string;
|
|
232
|
+
resizeHandle?: string;
|
|
233
|
+
autoBody?: string;
|
|
234
|
+
section?: string;
|
|
235
|
+
sectionHeader?: string;
|
|
236
|
+
sectionTitle?: string;
|
|
237
|
+
sectionDescription?: string;
|
|
238
|
+
descriptionList?: string;
|
|
239
|
+
descriptionListItem?: string;
|
|
240
|
+
descriptionListTerm?: string;
|
|
241
|
+
descriptionListValue?: string;
|
|
242
|
+
fieldLabel?: string;
|
|
243
|
+
fieldLabelIcon?: string;
|
|
244
|
+
fieldValue?: string;
|
|
245
|
+
mediaValue?: string;
|
|
246
|
+
mediaImage?: string;
|
|
247
|
+
mediaCaption?: string;
|
|
248
|
+
emptyState?: string;
|
|
249
|
+
}
|
|
250
|
+
interface WorkbenchDetailSidebarBodyProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'className'> {
|
|
251
|
+
className?: string;
|
|
252
|
+
}
|
|
253
|
+
interface WorkbenchDetailSidebarField<Row = any> {
|
|
254
|
+
key: string;
|
|
255
|
+
label?: ReactNode;
|
|
256
|
+
labelIcon?: ReactNode | ElementType;
|
|
257
|
+
icon?: ReactNode | ElementType;
|
|
258
|
+
renderType?: string;
|
|
259
|
+
value?: ReactNode | ((record: Row | null | undefined, field: WorkbenchDetailSidebarField<Row>) => ReactNode);
|
|
260
|
+
description?: ReactNode;
|
|
261
|
+
hidden?: boolean | ((field: WorkbenchDetailSidebarField<Row>, record: Row | null | undefined) => boolean);
|
|
262
|
+
emptyValue?: ReactNode;
|
|
263
|
+
[key: string]: any;
|
|
264
|
+
}
|
|
265
|
+
interface WorkbenchDetailSidebarSection<Row = any> {
|
|
266
|
+
id?: string;
|
|
267
|
+
title?: ReactNode;
|
|
268
|
+
description?: ReactNode;
|
|
269
|
+
fields?: WorkbenchDetailSidebarField<Row>[];
|
|
270
|
+
columns?: 1 | 2 | 3;
|
|
271
|
+
hidden?: boolean | ((section: WorkbenchDetailSidebarSection<Row>, record: Row | null | undefined) => boolean);
|
|
272
|
+
emptyState?: ReactNode;
|
|
273
|
+
[key: string]: any;
|
|
274
|
+
}
|
|
275
|
+
interface WorkbenchDetailSidebarRenderContext<Row = any> {
|
|
276
|
+
field: WorkbenchDetailSidebarField<Row>;
|
|
277
|
+
fieldIndex: number;
|
|
278
|
+
section: WorkbenchDetailSidebarSection<Row>;
|
|
279
|
+
sectionIndex: number;
|
|
280
|
+
record: Row | null | undefined;
|
|
281
|
+
}
|
|
282
|
+
interface WorkbenchDetailSidebarProps<Row = any> extends Omit<ComponentPropsWithoutRef<'aside'>, 'children' | 'className' | 'style'> {
|
|
283
|
+
as?: ElementType;
|
|
284
|
+
bodyAs?: ElementType;
|
|
285
|
+
open?: boolean;
|
|
286
|
+
width?: number | string;
|
|
287
|
+
header?: ReactNode;
|
|
288
|
+
footer?: ReactNode;
|
|
289
|
+
resizeHandle?: ReactNode;
|
|
290
|
+
children?: ReactNode;
|
|
291
|
+
record?: Row | null;
|
|
292
|
+
fields?: WorkbenchDetailSidebarField<Row>[];
|
|
293
|
+
sections?: WorkbenchDetailSidebarSection<Row>[];
|
|
294
|
+
fieldColumns?: 1 | 2 | 3;
|
|
295
|
+
emptyValue?: ReactNode;
|
|
296
|
+
emptyState?: ReactNode;
|
|
297
|
+
getFieldValue?: (field: WorkbenchDetailSidebarField<Row>, record: Row | null | undefined, context: WorkbenchDetailSidebarRenderContext<Row>) => unknown;
|
|
298
|
+
renderFieldValue?: (field: WorkbenchDetailSidebarField<Row>, record: Row | null | undefined, context: WorkbenchDetailSidebarRenderContext<Row>) => ReactNode;
|
|
299
|
+
formatFieldValue?: (value: unknown, context: WorkbenchDetailSidebarRenderContext<Row>) => ReactNode;
|
|
300
|
+
formatFieldLabel?: (label: ReactNode, context: Omit<WorkbenchDetailSidebarRenderContext<Row>, 'fieldIndex'> & {
|
|
301
|
+
field: WorkbenchDetailSidebarField<Row>;
|
|
302
|
+
fieldIndex?: number;
|
|
303
|
+
}) => ReactNode;
|
|
304
|
+
className?: string;
|
|
305
|
+
headerClassName?: string;
|
|
306
|
+
bodyClassName?: string;
|
|
307
|
+
footerClassName?: string;
|
|
308
|
+
resizeHandleClassName?: string;
|
|
309
|
+
bodyProps?: WorkbenchDetailSidebarBodyProps;
|
|
310
|
+
classNames?: WorkbenchDetailSidebarClassNames;
|
|
311
|
+
style?: CSSProperties;
|
|
312
|
+
[key: string]: any;
|
|
313
|
+
}
|
|
314
|
+
declare const WorkbenchDetailSidebar: React.ForwardRefExoticComponent<Omit<WorkbenchDetailSidebarProps<any>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
315
|
+
|
|
316
|
+
interface WorkbenchTableViewColumn {
|
|
317
|
+
key: string;
|
|
318
|
+
label?: ReactNode;
|
|
319
|
+
helperText?: ReactNode;
|
|
320
|
+
renderType?: string;
|
|
321
|
+
type?: string;
|
|
322
|
+
description?: ReactNode;
|
|
323
|
+
meta?: ReactNode;
|
|
324
|
+
actions?: ReactNode;
|
|
325
|
+
trailing?: ReactNode;
|
|
326
|
+
wrap?: boolean;
|
|
327
|
+
align?: 'left' | 'center' | 'right';
|
|
328
|
+
width?: number | string;
|
|
329
|
+
minWidth?: number | string;
|
|
330
|
+
maxWidth?: number | string;
|
|
331
|
+
sortable?: boolean;
|
|
332
|
+
sortDirection?: BaseTableSortDirection;
|
|
333
|
+
sortLabel?: string;
|
|
334
|
+
draggable?: boolean;
|
|
335
|
+
dragLabel?: string;
|
|
336
|
+
resizable?: boolean;
|
|
337
|
+
resizeLabel?: string;
|
|
338
|
+
compactHeaderClassName?: string;
|
|
339
|
+
compactCellClassName?: string;
|
|
340
|
+
headerClassName?: string;
|
|
341
|
+
cellClassName?: string;
|
|
342
|
+
[key: string]: any;
|
|
343
|
+
}
|
|
344
|
+
interface WorkbenchTableViewClassNames {
|
|
345
|
+
root?: string;
|
|
346
|
+
scrollArea?: string;
|
|
347
|
+
table?: string;
|
|
348
|
+
header?: string;
|
|
349
|
+
headerRow?: string;
|
|
350
|
+
headerCell?: string;
|
|
351
|
+
body?: string;
|
|
352
|
+
row?: string;
|
|
353
|
+
cell?: string;
|
|
354
|
+
footer?: string;
|
|
355
|
+
helper?: string;
|
|
356
|
+
}
|
|
357
|
+
interface WorkbenchTableViewRenderContext<Row = any> {
|
|
358
|
+
row: Row;
|
|
359
|
+
rowIndex: number;
|
|
360
|
+
column: WorkbenchTableViewColumn;
|
|
361
|
+
columnIndex: number;
|
|
362
|
+
compact: boolean;
|
|
363
|
+
surface: 'list' | string;
|
|
364
|
+
}
|
|
365
|
+
interface WorkbenchTableViewHeaderContext<Row = any> {
|
|
366
|
+
column: WorkbenchTableViewColumn;
|
|
367
|
+
columnIndex: number;
|
|
368
|
+
columns: WorkbenchTableViewColumn[];
|
|
369
|
+
rows: Row[];
|
|
370
|
+
columnType?: string;
|
|
371
|
+
}
|
|
372
|
+
interface WorkbenchTableViewProps<Row = any> {
|
|
373
|
+
rows?: Row[];
|
|
374
|
+
columns?: WorkbenchTableViewColumn[];
|
|
375
|
+
onRowClick?: (row: Row, rowIndex: number) => void;
|
|
376
|
+
selectedRowKey?: string;
|
|
377
|
+
selectedLinkKey?: string;
|
|
378
|
+
activePrimaryColumn?: WorkbenchTableViewColumn | null;
|
|
379
|
+
activeTablePrimaryColumn?: WorkbenchTableViewColumn | null;
|
|
380
|
+
renderedRowCount?: number;
|
|
381
|
+
totalRowCount?: number;
|
|
382
|
+
tableMinWidth?: number;
|
|
383
|
+
minWidth?: number;
|
|
384
|
+
bodyMaxHeight?: number | string;
|
|
385
|
+
stickyFirstColumn?: boolean;
|
|
386
|
+
appearance?: BaseAppearance;
|
|
387
|
+
columnOrder?: string[];
|
|
388
|
+
columnSizes?: BaseTableColumnSizes;
|
|
389
|
+
columnDragEnabled?: boolean;
|
|
390
|
+
columnResizeEnabled?: boolean;
|
|
391
|
+
className?: string;
|
|
392
|
+
tableClassName?: string;
|
|
393
|
+
rowClassName?: string | ((row: Row, rowIndex: number) => string | undefined);
|
|
394
|
+
classNames?: WorkbenchTableViewClassNames;
|
|
395
|
+
style?: CSSProperties;
|
|
396
|
+
renderCell?: (column: WorkbenchTableViewColumn, row: Row, context: WorkbenchTableViewRenderContext<Row>) => ReactNode;
|
|
397
|
+
renderFieldValue?: (column: WorkbenchTableViewColumn, row: Row, context: WorkbenchTableViewRenderContext<Row>) => ReactNode;
|
|
398
|
+
renderColumnHeader?: (column: WorkbenchTableViewColumn, context: WorkbenchTableViewHeaderContext<Row>) => ReactNode;
|
|
399
|
+
onColumnOrderChange?: (nextOrder: string[], detail: BaseTableColumnOrderChangeDetail) => void;
|
|
400
|
+
onColumnSizeChange?: (columnId: string, width: number, detail: BaseTableColumnSizeChangeDetail) => void;
|
|
401
|
+
onSort?: (columnKey: string, column: WorkbenchTableViewColumn) => void;
|
|
402
|
+
formatLabel?: (value: ReactNode, context?: {
|
|
403
|
+
column?: WorkbenchTableViewColumn;
|
|
404
|
+
}) => ReactNode;
|
|
405
|
+
getColumnDataType?: (columnKey: string, rows: Row[], column?: WorkbenchTableViewColumn) => string | undefined;
|
|
406
|
+
getColumnIcon?: (columnType?: string, column?: WorkbenchTableViewColumn) => ReactNode | ComponentType<{
|
|
407
|
+
className?: string;
|
|
408
|
+
}> | null | undefined;
|
|
409
|
+
getColumnTypeIcon?: (columnType?: string, column?: WorkbenchTableViewColumn) => ReactNode | ComponentType<{
|
|
410
|
+
className?: string;
|
|
411
|
+
}> | null | undefined;
|
|
412
|
+
getRowKey?: (row: Row, rowIndex: number) => string | number;
|
|
413
|
+
getRowSelectionKey?: (row: Row, rowIndex: number) => string | number | undefined;
|
|
414
|
+
isActionColumn?: (column: WorkbenchTableViewColumn) => boolean;
|
|
415
|
+
isActionField?: (column: WorkbenchTableViewColumn) => boolean;
|
|
416
|
+
isRowDisabled?: (row: Row, rowIndex: number) => boolean;
|
|
417
|
+
isWorkbenchPlaceholderRow?: (row: Row, rowIndex?: number) => boolean;
|
|
418
|
+
emptyState?: ReactNode;
|
|
419
|
+
hiddenRowsMessage?: ReactNode | ((hiddenRowCount: number, renderedRowCount: number, totalRowCount: number) => ReactNode);
|
|
420
|
+
}
|
|
421
|
+
declare function WorkbenchTableView<Row = any>({ rows, columns, onRowClick, selectedRowKey, selectedLinkKey, activePrimaryColumn, activeTablePrimaryColumn, renderedRowCount, totalRowCount, tableMinWidth, minWidth, bodyMaxHeight, stickyFirstColumn, appearance, columnOrder, columnSizes, columnDragEnabled, columnResizeEnabled, className, tableClassName, rowClassName, classNames, style, renderCell, renderFieldValue, renderColumnHeader, onColumnOrderChange, onColumnSizeChange, onSort, formatLabel, getColumnDataType, getColumnIcon, getColumnTypeIcon, getRowKey, getRowSelectionKey, isActionColumn, isActionField, isRowDisabled, isWorkbenchPlaceholderRow, emptyState, hiddenRowsMessage, }: WorkbenchTableViewProps<Row>): react_jsx_runtime.JSX.Element;
|
|
422
|
+
|
|
423
|
+
interface InteractiveTableColumn {
|
|
424
|
+
key: string;
|
|
425
|
+
label?: ReactNode;
|
|
426
|
+
description?: ReactNode;
|
|
427
|
+
align?: 'left' | 'center' | 'right';
|
|
428
|
+
width?: number | string;
|
|
429
|
+
minWidth?: number;
|
|
430
|
+
maxWidth?: number;
|
|
431
|
+
sortable?: boolean;
|
|
432
|
+
sortDirection?: BaseTableSortDirection;
|
|
433
|
+
sortLabel?: string;
|
|
434
|
+
draggable?: boolean;
|
|
435
|
+
resizable?: boolean;
|
|
436
|
+
className?: string;
|
|
437
|
+
headerClassName?: string;
|
|
438
|
+
cellClassName?: string;
|
|
439
|
+
wrap?: boolean;
|
|
440
|
+
[key: string]: any;
|
|
441
|
+
}
|
|
442
|
+
interface InteractiveTableClassNames {
|
|
443
|
+
root?: string;
|
|
444
|
+
header?: string;
|
|
445
|
+
headerLeading?: string;
|
|
446
|
+
headerTitle?: string;
|
|
447
|
+
headerDescription?: string;
|
|
448
|
+
headerActions?: string;
|
|
449
|
+
scrollArea?: string;
|
|
450
|
+
table?: string;
|
|
451
|
+
tableHeader?: string;
|
|
452
|
+
headerRow?: string;
|
|
453
|
+
headerCell?: string;
|
|
454
|
+
body?: string;
|
|
455
|
+
row?: string;
|
|
456
|
+
pinnedTopRow?: string;
|
|
457
|
+
cell?: string;
|
|
458
|
+
empty?: string;
|
|
459
|
+
}
|
|
460
|
+
interface InteractiveTableRenderContext<Row = any> {
|
|
461
|
+
row: Row;
|
|
462
|
+
rowIndex: number;
|
|
463
|
+
column: InteractiveTableColumn;
|
|
464
|
+
columnIndex: number;
|
|
465
|
+
isPinnedTopRow: boolean;
|
|
466
|
+
}
|
|
467
|
+
interface InteractiveTableHeaderContext<Row = any> {
|
|
468
|
+
column: InteractiveTableColumn;
|
|
469
|
+
columnIndex: number;
|
|
470
|
+
columns: InteractiveTableColumn[];
|
|
471
|
+
rows: Row[];
|
|
472
|
+
}
|
|
473
|
+
interface InteractiveTableRowState {
|
|
474
|
+
disabled?: boolean;
|
|
475
|
+
pending?: boolean;
|
|
476
|
+
saving?: boolean;
|
|
477
|
+
selected?: boolean;
|
|
478
|
+
}
|
|
479
|
+
interface InteractiveTableHeaderProps {
|
|
480
|
+
title?: ReactNode;
|
|
481
|
+
description?: ReactNode;
|
|
482
|
+
actions?: ReactNode;
|
|
483
|
+
resetColumnSizesLabel?: ReactNode;
|
|
484
|
+
}
|
|
485
|
+
interface InteractiveTableColumnMenuLabels {
|
|
486
|
+
columnActions?: ReactNode;
|
|
487
|
+
freezeColumn?: ReactNode;
|
|
488
|
+
freezeEndColumn?: ReactNode;
|
|
489
|
+
unfreezeColumn?: ReactNode;
|
|
490
|
+
unfreezeEndColumn?: ReactNode;
|
|
491
|
+
unfreezeAllColumns?: ReactNode;
|
|
492
|
+
resetColumnWidth?: ReactNode;
|
|
493
|
+
frozenColumnTitle?: string;
|
|
494
|
+
}
|
|
495
|
+
interface InteractiveTableProps<Row = any, PinnedTopRow = Row> {
|
|
496
|
+
rows?: Row[];
|
|
497
|
+
columns?: InteractiveTableColumn[];
|
|
498
|
+
pinnedTopRows?: PinnedTopRow[];
|
|
499
|
+
getRowKey?: (row: Row, rowIndex: number) => string | number;
|
|
500
|
+
getPinnedTopRowKey?: (row: PinnedTopRow, rowIndex: number) => string | number;
|
|
501
|
+
renderCell?: (column: InteractiveTableColumn, row: Row, context: InteractiveTableRenderContext<Row>) => ReactNode;
|
|
502
|
+
renderPinnedTopCell?: (column: InteractiveTableColumn, row: PinnedTopRow, context: InteractiveTableRenderContext<PinnedTopRow>) => ReactNode;
|
|
503
|
+
renderColumnHeader?: (column: InteractiveTableColumn, context: InteractiveTableHeaderContext<Row>) => ReactNode;
|
|
504
|
+
onRowClick?: (row: Row, rowIndex: number) => void;
|
|
505
|
+
getRowState?: (row: Row, rowIndex: number) => InteractiveTableRowState | undefined;
|
|
506
|
+
rowClassName?: string | ((row: Row, rowIndex: number) => string | undefined);
|
|
507
|
+
pinnedTopRowClassName?: string | ((row: PinnedTopRow, rowIndex: number) => string | undefined);
|
|
508
|
+
emptyState?: ReactNode;
|
|
509
|
+
header?: InteractiveTableHeaderProps;
|
|
510
|
+
showResetColumnSizes?: boolean;
|
|
511
|
+
columnMenuLabels?: InteractiveTableColumnMenuLabels;
|
|
512
|
+
columnStorageKey?: string;
|
|
513
|
+
columnOrder?: string[];
|
|
514
|
+
columnSizes?: BaseTableColumnSizes;
|
|
515
|
+
defaultColumnSizes?: BaseTableColumnSizes;
|
|
516
|
+
columnDragEnabled?: boolean;
|
|
517
|
+
columnResizeEnabled?: boolean;
|
|
518
|
+
frozenColumnCount?: number;
|
|
519
|
+
frozenEndColumnCount?: number;
|
|
520
|
+
tableMinWidth?: number;
|
|
521
|
+
bodyMaxHeight?: number | string;
|
|
522
|
+
appearance?: BaseAppearance;
|
|
523
|
+
className?: string;
|
|
524
|
+
tableClassName?: string;
|
|
525
|
+
classNames?: InteractiveTableClassNames;
|
|
526
|
+
style?: CSSProperties;
|
|
527
|
+
onColumnOrderChange?: (nextOrder: string[], detail: BaseTableColumnOrderChangeDetail) => void;
|
|
528
|
+
onColumnSizeChange?: (columnId: string, width: number, detail: BaseTableColumnSizeChangeDetail) => void;
|
|
529
|
+
onResetColumnSizes?: (nextSizes: BaseTableColumnSizes) => void;
|
|
530
|
+
onFrozenColumnCountChange?: (nextCount: number) => void;
|
|
531
|
+
onFrozenEndColumnCountChange?: (nextCount: number) => void;
|
|
532
|
+
onSort?: (columnKey: string, column: InteractiveTableColumn) => void;
|
|
533
|
+
}
|
|
534
|
+
interface InteractiveTableEditableTextCellProps {
|
|
535
|
+
value?: string | null;
|
|
536
|
+
placeholder?: string;
|
|
537
|
+
disabled?: boolean;
|
|
538
|
+
multiline?: boolean;
|
|
539
|
+
commitOnBlur?: boolean;
|
|
540
|
+
className?: string;
|
|
541
|
+
inputClassName?: string;
|
|
542
|
+
onCommit?: (value: string) => void | Promise<void>;
|
|
543
|
+
}
|
|
544
|
+
interface InteractiveTableReadonlyCellProps {
|
|
545
|
+
children?: ReactNode;
|
|
546
|
+
mono?: boolean;
|
|
547
|
+
className?: string;
|
|
548
|
+
}
|
|
549
|
+
interface InteractiveTableSelectOption<T extends string = string> {
|
|
550
|
+
value: T;
|
|
551
|
+
label: string;
|
|
552
|
+
}
|
|
553
|
+
interface InteractiveTableSelectCellProps<T extends string = string> {
|
|
554
|
+
value: T;
|
|
555
|
+
options: Array<InteractiveTableSelectOption<T>>;
|
|
556
|
+
disabled?: boolean;
|
|
557
|
+
ariaLabel: string;
|
|
558
|
+
children: ReactNode;
|
|
559
|
+
className?: string;
|
|
560
|
+
onChange?: (nextValue: T) => void;
|
|
561
|
+
}
|
|
562
|
+
declare function InteractiveTable<Row = any, PinnedTopRow = Row>({ rows, columns, pinnedTopRows, getRowKey, getPinnedTopRowKey, renderCell, renderPinnedTopCell, renderColumnHeader, onRowClick, getRowState, rowClassName, pinnedTopRowClassName, emptyState, columnMenuLabels, columnStorageKey, columnOrder, columnSizes, defaultColumnSizes, columnDragEnabled, columnResizeEnabled, frozenColumnCount, frozenEndColumnCount, tableMinWidth, bodyMaxHeight, appearance, className, tableClassName, classNames, style, onColumnOrderChange, onColumnSizeChange, onResetColumnSizes, onFrozenColumnCountChange, onFrozenEndColumnCountChange, onSort, }: InteractiveTableProps<Row, PinnedTopRow>): react_jsx_runtime.JSX.Element;
|
|
563
|
+
declare function InteractiveTableEditableTextCell({ value, placeholder, disabled, multiline, commitOnBlur, className, inputClassName, onCommit, }: InteractiveTableEditableTextCellProps): react_jsx_runtime.JSX.Element;
|
|
564
|
+
declare function InteractiveTableReadonlyCell({ children, mono, className, }: InteractiveTableReadonlyCellProps): react_jsx_runtime.JSX.Element;
|
|
565
|
+
declare function InteractiveTableSelectCell<T extends string = string>({ value, options, disabled, ariaLabel, children, className, onChange, }: InteractiveTableSelectCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
566
|
+
|
|
567
|
+
interface WorkbenchGalleryRecordVisual {
|
|
568
|
+
Icon?: ComponentType<{
|
|
569
|
+
className?: string;
|
|
570
|
+
}> | ReactNode;
|
|
571
|
+
icon?: ComponentType<{
|
|
572
|
+
className?: string;
|
|
573
|
+
}> | ReactNode;
|
|
574
|
+
chipClassName?: string;
|
|
575
|
+
iconClassName?: string;
|
|
576
|
+
label?: ReactNode;
|
|
577
|
+
title?: ReactNode;
|
|
578
|
+
[key: string]: any;
|
|
579
|
+
}
|
|
580
|
+
interface WorkbenchGalleryLabels {
|
|
581
|
+
fieldCount?: (count: number) => ReactNode;
|
|
582
|
+
coverOnlyHint?: ReactNode;
|
|
583
|
+
}
|
|
584
|
+
interface WorkbenchGalleryCardProps<Row = any> {
|
|
585
|
+
row: Row;
|
|
586
|
+
columns: WorkbenchGalleryColumn[];
|
|
587
|
+
onClick?: () => void;
|
|
588
|
+
isSelected?: boolean;
|
|
589
|
+
isMasonry?: boolean;
|
|
590
|
+
galleryFieldKey?: string;
|
|
591
|
+
galleryDensity?: 'compact' | 'comfortable' | 'detailed' | string;
|
|
592
|
+
galleryBentoColumns?: 1 | 2 | 3 | number;
|
|
593
|
+
galleryDetailVisibility?: 'all' | 'limit' | string;
|
|
594
|
+
galleryDetailLimit?: number | string;
|
|
595
|
+
shouldEnhanceMultimodal?: boolean;
|
|
596
|
+
getFieldValue?: (column: WorkbenchGalleryColumn, row: Row) => unknown;
|
|
597
|
+
isMediaColumn?: (column: WorkbenchGalleryColumn, row: Row) => boolean;
|
|
598
|
+
isTitleCandidate?: (column: WorkbenchGalleryColumn, row: Row) => boolean;
|
|
599
|
+
isSummaryCandidate?: (column: WorkbenchGalleryColumn, row: Row) => boolean;
|
|
600
|
+
getDisplayText?: (value: unknown) => ReactNode;
|
|
601
|
+
renderFieldValue?: (column: WorkbenchGalleryColumn, row: Row, context: {
|
|
602
|
+
compact?: boolean;
|
|
603
|
+
surface?: string;
|
|
604
|
+
}) => ReactNode;
|
|
605
|
+
getImagePreviewSrc?: (value: unknown, rowId?: string | number, columnLabel?: ReactNode) => string;
|
|
606
|
+
isImageField?: (column: WorkbenchGalleryColumn, value: unknown) => boolean;
|
|
607
|
+
isAudioField?: (column: WorkbenchGalleryColumn, value: unknown) => boolean;
|
|
608
|
+
AudioPlayerComponent?: ComponentType<{
|
|
609
|
+
filename: string;
|
|
610
|
+
}>;
|
|
611
|
+
cardVariant?: 'default' | 'image-only' | 'preview-only' | 'chromatic-bento' | string;
|
|
612
|
+
renderPreview?: (context: WorkbenchGalleryCardRenderContext<Row>) => ReactNode;
|
|
613
|
+
renderMeta?: (context: WorkbenchGalleryCardMetaContext<Row>) => ReactNode;
|
|
614
|
+
renderLeadingVisual?: (context: WorkbenchGalleryCardMetaContext<Row> & {
|
|
615
|
+
iconVisual?: WorkbenchGalleryRecordVisual | null;
|
|
616
|
+
}) => ReactNode;
|
|
617
|
+
resolveRecordVisual?: (value: unknown, row: Row, iconColumn?: WorkbenchGalleryColumn) => WorkbenchGalleryRecordVisual | null | undefined;
|
|
618
|
+
hiddenDetailFieldKeys?: string[];
|
|
619
|
+
labels?: WorkbenchGalleryLabels;
|
|
620
|
+
formatLabel?: (value: ReactNode, context?: {
|
|
621
|
+
column?: WorkbenchGalleryColumn;
|
|
622
|
+
}) => ReactNode;
|
|
623
|
+
className?: string;
|
|
624
|
+
}
|
|
625
|
+
interface WorkbenchGalleryCardRenderContext<Row = any> {
|
|
626
|
+
row: Row;
|
|
627
|
+
mediaColumn?: WorkbenchGalleryColumn | null;
|
|
628
|
+
mediaValue: unknown;
|
|
629
|
+
isImageMedia: boolean;
|
|
630
|
+
isAudioMedia: boolean;
|
|
631
|
+
iconVisual?: WorkbenchGalleryRecordVisual | null;
|
|
632
|
+
IconComponent?: ComponentType<{
|
|
633
|
+
className?: string;
|
|
634
|
+
}> | null;
|
|
635
|
+
previewClassName: string;
|
|
636
|
+
}
|
|
637
|
+
interface WorkbenchGalleryCardMetaContext<Row = any> {
|
|
638
|
+
row: Row;
|
|
639
|
+
contentColumns: WorkbenchGalleryColumn[];
|
|
640
|
+
detailColumns: WorkbenchGalleryColumn[];
|
|
641
|
+
titleColumn?: WorkbenchGalleryColumn | null;
|
|
642
|
+
summaryColumn?: WorkbenchGalleryColumn | null;
|
|
643
|
+
getDisplayText: (value: unknown) => ReactNode;
|
|
644
|
+
getFieldValue: (column: WorkbenchGalleryColumn, row: Row) => unknown;
|
|
645
|
+
}
|
|
646
|
+
declare function WorkbenchGalleryCard<Row = any>({ row, columns, onClick, isSelected, isMasonry, galleryFieldKey, galleryDensity, galleryBentoColumns, galleryDetailVisibility, galleryDetailLimit, shouldEnhanceMultimodal, getFieldValue, isMediaColumn, isTitleCandidate, isSummaryCandidate, getDisplayText, renderFieldValue, getImagePreviewSrc, isImageField, isAudioField, AudioPlayerComponent, cardVariant, renderPreview, renderMeta, renderLeadingVisual, resolveRecordVisual, hiddenDetailFieldKeys, labels, formatLabel, className, }: WorkbenchGalleryCardProps<Row>): react_jsx_runtime.JSX.Element;
|
|
647
|
+
|
|
648
|
+
interface WorkbenchMasonryItemSize {
|
|
649
|
+
width?: number | string;
|
|
650
|
+
height?: number | string;
|
|
651
|
+
columnSpan?: number;
|
|
652
|
+
rowSpan?: number;
|
|
653
|
+
}
|
|
654
|
+
interface WorkbenchMasonryLayoutContext {
|
|
655
|
+
columnCount: number;
|
|
656
|
+
columnSpan?: number;
|
|
657
|
+
columnWidth: number;
|
|
658
|
+
containerWidth: number;
|
|
659
|
+
gap: number;
|
|
660
|
+
itemWidth?: number;
|
|
661
|
+
placementStrategy: 'shelf' | 'dense';
|
|
662
|
+
rowSpan?: number;
|
|
663
|
+
rowHeight: number;
|
|
664
|
+
size?: WorkbenchMasonryItemSize;
|
|
665
|
+
}
|
|
666
|
+
interface WorkbenchMasonryLayoutProps<Item = any> {
|
|
667
|
+
items?: Item[];
|
|
668
|
+
renderItem: (item: Item, context: WorkbenchMasonryLayoutContext) => ReactNode;
|
|
669
|
+
getItemKey?: (item: Item, index: number) => string | number;
|
|
670
|
+
getItemSize?: (item: Item, context: WorkbenchMasonryLayoutContext) => WorkbenchMasonryItemSize | undefined;
|
|
671
|
+
columnWidth?: number | string;
|
|
672
|
+
gap?: number;
|
|
673
|
+
rowHeight?: number;
|
|
674
|
+
placementStrategy?: 'shelf' | 'dense';
|
|
675
|
+
className?: string;
|
|
676
|
+
}
|
|
677
|
+
declare function WorkbenchMasonryLayout<Item = any>({ items, renderItem, getItemKey, getItemSize, columnWidth, gap, rowHeight, placementStrategy, className, }: WorkbenchMasonryLayoutProps<Item>): react_jsx_runtime.JSX.Element;
|
|
678
|
+
|
|
679
|
+
interface WorkbenchGalleryViewProps<Row = any> extends Omit<WorkbenchGalleryCardProps<Row>, 'row' | 'columns' | 'onClick' | 'isSelected' | 'isMasonry'> {
|
|
680
|
+
rows?: Row[];
|
|
681
|
+
columns?: WorkbenchGalleryColumn[];
|
|
682
|
+
onRowClick?: (row: Row, rowIndex: number) => void;
|
|
683
|
+
selectedLinkKey?: string;
|
|
684
|
+
selectedRowKey?: string;
|
|
685
|
+
className?: string;
|
|
686
|
+
isMasonry?: boolean;
|
|
687
|
+
galleryLayoutMode?: 'auto' | 'rail' | string;
|
|
688
|
+
galleryRailCardWidth?: number;
|
|
689
|
+
galleryGridColumns?: number | 'auto' | string;
|
|
690
|
+
galleryGridCardWidth?: number | string;
|
|
691
|
+
galleryMasonryColumnWidth?: number | string;
|
|
692
|
+
masonryPlacementStrategy?: 'shelf' | 'dense';
|
|
693
|
+
getMasonryItemSize?: (row: Row, context: {
|
|
694
|
+
defaultSize: WorkbenchMasonryItemSize;
|
|
695
|
+
columnCount: number;
|
|
696
|
+
columnWidth: number;
|
|
697
|
+
containerWidth: number;
|
|
698
|
+
gap: number;
|
|
699
|
+
placementStrategy: 'shelf' | 'dense';
|
|
700
|
+
rowHeight: number;
|
|
701
|
+
}) => WorkbenchMasonryItemSize | undefined;
|
|
702
|
+
}
|
|
703
|
+
declare function WorkbenchGalleryView<Row = any>({ rows, columns, onRowClick, selectedLinkKey, selectedRowKey, className, isMasonry, galleryLayoutMode, galleryRailCardWidth, galleryGridColumns, galleryGridCardWidth, galleryMasonryColumnWidth, masonryPlacementStrategy, galleryFieldKey, galleryDensity, galleryBentoColumns, galleryDetailVisibility, galleryDetailLimit, shouldEnhanceMultimodal, getFieldValue, isMediaColumn, isTitleCandidate, isSummaryCandidate, getDisplayText, renderFieldValue, getImagePreviewSrc, isImageField, isAudioField, AudioPlayerComponent, cardVariant, renderPreview, renderMeta, renderLeadingVisual, resolveRecordVisual, hiddenDetailFieldKeys, labels, formatLabel, getMasonryItemSize, }: WorkbenchGalleryViewProps<Row>): react_jsx_runtime.JSX.Element;
|
|
704
|
+
|
|
705
|
+
interface WorkbenchLaneColumn<ColumnId extends string = string> {
|
|
706
|
+
id: ColumnId;
|
|
707
|
+
label?: ReactNode;
|
|
708
|
+
icon?: ReactNode;
|
|
709
|
+
className?: string;
|
|
710
|
+
headerClassName?: string;
|
|
711
|
+
bodyClassName?: string;
|
|
712
|
+
badgeClassName?: string;
|
|
713
|
+
iconClassName?: string;
|
|
714
|
+
}
|
|
715
|
+
interface WorkbenchLaneClassNames {
|
|
716
|
+
root?: string;
|
|
717
|
+
column?: string;
|
|
718
|
+
columnHeader?: string;
|
|
719
|
+
columnIcon?: string;
|
|
720
|
+
columnBadge?: string;
|
|
721
|
+
columnCount?: string;
|
|
722
|
+
columnBody?: string;
|
|
723
|
+
cardWrapper?: string;
|
|
724
|
+
overlayWrapper?: string;
|
|
725
|
+
emptyColumn?: string;
|
|
726
|
+
}
|
|
727
|
+
interface WorkbenchLaneRenderCardContext<Row = any, ColumnId extends string = string> {
|
|
728
|
+
row: Row;
|
|
729
|
+
rowIndex: number;
|
|
730
|
+
column: WorkbenchLaneColumn<ColumnId>;
|
|
731
|
+
isDragging: boolean;
|
|
732
|
+
isOverlay: boolean;
|
|
733
|
+
}
|
|
734
|
+
interface WorkbenchLaneViewProps<Row = any, ColumnId extends string = string> {
|
|
735
|
+
rows?: Row[];
|
|
736
|
+
columns?: Array<WorkbenchLaneColumn<ColumnId>>;
|
|
737
|
+
getRowId?: (row: Row, rowIndex: number) => string;
|
|
738
|
+
getColumnId?: (row: Row, rowIndex: number) => ColumnId;
|
|
739
|
+
renderCard?: (row: Row, context: WorkbenchLaneRenderCardContext<Row, ColumnId>) => ReactNode;
|
|
740
|
+
renderOverlayCard?: (row: Row, context: WorkbenchLaneRenderCardContext<Row, ColumnId>) => ReactNode;
|
|
741
|
+
onMoveRow?: (rowId: string, nextColumnId: ColumnId, row: Row) => void;
|
|
742
|
+
emptyColumn?: ReactNode;
|
|
743
|
+
activationDistance?: number;
|
|
744
|
+
columnWidth?: number | string;
|
|
745
|
+
columnMinHeight?: number | string;
|
|
746
|
+
className?: string;
|
|
747
|
+
classNames?: WorkbenchLaneClassNames;
|
|
748
|
+
style?: CSSProperties;
|
|
749
|
+
}
|
|
750
|
+
declare function WorkbenchLaneView<Row = any, ColumnId extends string = string>({ rows, columns, getRowId, getColumnId, renderCard, renderOverlayCard, onMoveRow, emptyColumn, activationDistance, columnWidth, columnMinHeight, className, classNames, style, }: WorkbenchLaneViewProps<Row, ColumnId>): react_jsx_runtime.JSX.Element;
|
|
751
|
+
|
|
752
|
+
export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext };
|