laif-ds 0.2.74 → 0.2.76
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/CHANGELOG.md +446 -0
- package/dist/agent-docs/adoption-report.json +615 -0
- package/dist/agent-docs/components/Accordion.md +46 -16
- package/dist/agent-docs/components/Alert.md +90 -95
- package/dist/agent-docs/components/AlertDialog.md +132 -126
- package/dist/agent-docs/components/AppEditor.md +90 -90
- package/dist/agent-docs/components/AppRadioGroup.md +18 -18
- package/dist/agent-docs/components/AppSidebar.md +129 -122
- package/dist/agent-docs/components/AppStepper.md +81 -77
- package/dist/agent-docs/components/AspectRatio.md +70 -62
- package/dist/agent-docs/components/AudioVisualizer.md +5 -5
- package/dist/agent-docs/components/Avatar.md +112 -113
- package/dist/agent-docs/components/Badge.md +123 -118
- package/dist/agent-docs/components/Breadcrumb.md +8 -1
- package/dist/agent-docs/components/Button.md +131 -129
- package/dist/agent-docs/components/Card.md +172 -147
- package/dist/agent-docs/components/Carousel.md +148 -129
- package/dist/agent-docs/components/Chat.md +121 -109
- package/dist/agent-docs/components/ChatMessage.md +72 -61
- package/dist/agent-docs/components/Checkbox.md +150 -135
- package/dist/agent-docs/components/CircularProgress.md +53 -49
- package/dist/agent-docs/components/CodeHighlighter.md +4 -4
- package/dist/agent-docs/components/Collapsible.md +114 -95
- package/dist/agent-docs/components/Command.md +141 -142
- package/dist/agent-docs/components/Confirmer.md +182 -175
- package/dist/agent-docs/components/ContextMenu.md +196 -191
- package/dist/agent-docs/components/DataCrossTable.md +114 -94
- package/dist/agent-docs/components/DataTable.md +32 -24
- package/dist/agent-docs/components/Dialog.md +130 -125
- package/dist/agent-docs/components/Drawer.md +141 -127
- package/dist/agent-docs/components/FilePreviewer.md +138 -139
- package/dist/agent-docs/components/FileUploader.md +149 -129
- package/dist/agent-docs/components/Form.md +3 -1
- package/dist/agent-docs/components/FormComposer.md +163 -137
- package/dist/agent-docs/components/GanttChart.md +125 -122
- package/dist/agent-docs/components/HoverCard.md +1 -1
- package/dist/agent-docs/components/Icon.md +98 -99
- package/dist/agent-docs/components/Input.md +173 -138
- package/dist/agent-docs/components/InputOtp.md +6 -1
- package/dist/agent-docs/components/InputSelector.md +94 -97
- package/dist/agent-docs/components/InterruptPrompt.md +4 -4
- package/dist/agent-docs/components/MarkdownRenderer.md +5 -2
- package/dist/agent-docs/components/Menubar.md +60 -57
- package/dist/agent-docs/components/MessageInput.md +134 -131
- package/dist/agent-docs/components/MessageList.md +110 -96
- package/dist/agent-docs/components/MultipleSelector.md +147 -146
- package/dist/agent-docs/components/NavigationMenu.md +6 -2
- package/dist/agent-docs/components/Popover.md +112 -103
- package/dist/agent-docs/components/PromptSuggestions.md +5 -5
- package/dist/agent-docs/components/RadioGroup.md +97 -90
- package/dist/agent-docs/components/Resizable.md +4 -1
- package/dist/agent-docs/components/ResizePrompt.md +12 -13
- package/dist/agent-docs/components/ScrollArea.md +6 -2
- package/dist/agent-docs/components/SecurePdfViewer.md +10 -6
- package/dist/agent-docs/components/Select.md +131 -132
- package/dist/agent-docs/components/Sheet.md +8 -1
- package/dist/agent-docs/components/ShikiHighlighter.md +5 -5
- package/dist/agent-docs/components/Sidebar.md +94 -85
- package/dist/agent-docs/components/Slider.md +62 -58
- package/dist/agent-docs/components/Sonner.md +1 -0
- package/dist/agent-docs/components/Spinner.md +14 -14
- package/dist/agent-docs/components/Stepper.md +93 -67
- package/dist/agent-docs/components/Switch.md +41 -42
- package/dist/agent-docs/components/TableSkeleton.md +8 -8
- package/dist/agent-docs/components/Tabs.md +106 -86
- package/dist/agent-docs/components/TextArea.md +51 -52
- package/dist/agent-docs/components/ThemeSwitcher.md +72 -69
- package/dist/agent-docs/components/Toaster.md +1 -0
- package/dist/agent-docs/components/Tooltip.md +102 -91
- package/dist/agent-docs/components/Typo.md +68 -65
- package/dist/agent-docs/components/WeeklyCalendar.md +63 -64
- package/dist/agent-docs/components-list.md +1 -0
- package/dist/agent-docs/manifest.json +5981 -0
- package/dist/agent-docs/truncated-cell.md +342 -0
- package/dist/components/editor/editor-hooks/use-update-toolbar.js +6 -6
- package/dist/components/editor/plugins/actions/counter-character-plugin.js +6 -6
- package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +18 -18
- package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +10 -10
- package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +9 -9
- package/dist/components/ui/app-checkbox.js +1 -1
- package/dist/components/ui/app-dialog.js +70 -64
- package/dist/components/ui/app-editor.js +51 -51
- package/dist/components/ui/app-form.js +81 -81
- package/dist/components/ui/app-multiple-select-dropdown.js +36 -36
- package/dist/components/ui/app-select.js +109 -104
- package/dist/components/ui/app-sidebar.js +41 -41
- package/dist/components/ui/app-stepper.js +1 -1
- package/dist/components/ui/app-time-picker.js +18 -18
- package/dist/components/ui/app-tooltip.js +1 -1
- package/dist/components/ui/async-select.js +5 -5
- package/dist/components/ui/audio-visualizer.js +61 -58
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/carousel.js +2 -2
- package/dist/components/ui/chart.js +1 -1
- package/dist/components/ui/chat-message.js +8 -8
- package/dist/components/ui/chat.js +86 -88
- package/dist/components/ui/command.js +2 -2
- package/dist/components/ui/copy-button.js +4 -4
- package/dist/components/ui/date-picker.js +20 -20
- package/dist/components/ui/file-preview/index.js +13 -13
- package/dist/components/ui/file-previewer.js +12 -11
- package/dist/components/ui/file-uploader.js +86 -78
- package/dist/components/ui/form.js +2 -2
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +56 -56
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +12 -12
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +1 -1
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +4 -4
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +2 -2
- package/dist/components/ui/gantt/components/Chart/Chart.js +23 -23
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +1 -1
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +34 -34
- package/dist/components/ui/gantt/components/Controls/Controls.js +5 -5
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +4 -4
- package/dist/components/ui/gantt/hooks/useGanttCalculate.js +25 -18
- package/dist/components/ui/input-selector.js +1 -1
- package/dist/components/ui/input.js +23 -23
- package/dist/components/ui/kanban.js +8 -9
- package/dist/components/ui/markdown-renderer.js +41 -35
- package/dist/components/ui/message-input.js +45 -44
- package/dist/components/ui/multiple-selector.js +91 -82
- package/dist/components/ui/secure-pdf-viewer.js +19 -7
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/spinner.js +4 -4
- package/dist/components/ui/stepper.js +157 -138
- package/dist/components/ui/tables/data-cross-table/data-cross-table-buttons.js +29 -29
- package/dist/components/ui/tables/data-cross-table/data-cross-table.js +258 -246
- package/dist/components/ui/tables/data-table/components/data-table-advanced-filter.js +4 -1
- package/dist/components/ui/tables/data-table/components/data-table-body.js +211 -367
- package/dist/components/ui/tables/data-table/components/data-table-filter-inputs.js +114 -112
- package/dist/components/ui/tables/data-table/components/data-table-filters.js +116 -96
- package/dist/components/ui/tables/data-table/components/data-table-header.js +211 -0
- package/dist/components/ui/tables/data-table/components/data-table-searchbar.js +8 -8
- package/dist/components/ui/tables/data-table/components/data-table-skeleton-rows.js +33 -0
- package/dist/components/ui/tables/data-table/data-table.js +258 -250
- package/dist/components/ui/tables/data-table/data-table.service.js +112 -97
- package/dist/components/ui/tables/data-table/data-table.utils.js +25 -15
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/theme-switcher.js +1 -1
- package/dist/components/ui/toggle-group.js +2 -2
- package/dist/components/ui/truncated-cell.js +100 -0
- package/dist/components/ui/weekly-calendar/appointment-card.js +16 -16
- package/dist/components/ui/weekly-calendar/calendar-context.js +6 -6
- package/dist/components/ui/weekly-calendar/calendar-header.js +12 -12
- package/dist/components/ui/weekly-calendar/day-column.js +16 -16
- package/dist/components/ui/weekly-calendar/time-column.js +4 -4
- package/dist/components/ui/weekly-calendar/weekly-calendar.js +4 -4
- package/dist/hooks/use-audio-recording.js +1 -1
- package/dist/hooks/use-auto-scroll.js +18 -18
- package/dist/hooks/use-autosize-textarea.js +12 -13
- package/dist/index.d.ts +100 -45
- package/dist/index.js +362 -360
- package/dist/lib/utils.js +6 -6
- package/dist/styles.v3.css +1 -1
- package/package.json +14 -4
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,17 @@ import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
|
65
65
|
import { UseFormReturn } from 'react-hook-form';
|
|
66
66
|
import { VariantProps } from 'class-variance-authority';
|
|
67
67
|
|
|
68
|
-
declare type AcceptItem = "pdf" | "doc" | "docx" | "xls" | "xlsx" | "ppt" | "pptx" | "txt" | "csv" | "jpg" | "jpeg" | "png" | "gif" | "image" | "video" | "audio";
|
|
68
|
+
declare type AcceptItem = "pdf" | "doc" | "docx" | "xls" | "xlsx" | "ppt" | "pptx" | "txt" | "csv" | "jpg" | "jpeg" | "png" | "gif" | "image" | "video" | "audio" | "zip" | "rar" | "7z" | "tar" | "gz" | "tgz";
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Distributive helper: for a given key K, creates a config where cell gets the resolved value type.
|
|
72
|
+
* By distributing over each key individually, TypeScript narrows the value type based on the literal accessorKey.
|
|
73
|
+
*/
|
|
74
|
+
declare type AccessorColumnConfigForKey<TData, K extends string> = BaseColumnFields & {
|
|
75
|
+
accessorKey: K;
|
|
76
|
+
cell?: (value: DeepValue<TData, K>, row: TData, tableRow: Row<TData>) => React.ReactNode;
|
|
77
|
+
cellClassName?: string | ((value: DeepValue<TData, K>, row: TData) => string);
|
|
78
|
+
};
|
|
69
79
|
|
|
70
80
|
export declare function Accordion({ ...props }: AccordionProps): JSX.Element;
|
|
71
81
|
|
|
@@ -221,9 +231,9 @@ declare interface AppEditorProps {
|
|
|
221
231
|
|
|
222
232
|
declare type AppEditorToolbar = "block-format" | "font-format" | "history";
|
|
223
233
|
|
|
224
|
-
export declare const AppForm: ({ items, cols, form, submitText, onSubmit, isSubmitting, showSubmitButton, }: AppFormProps) => JSX.Element;
|
|
234
|
+
export declare const AppForm: <TFormValues extends FieldValues = FieldValues, TAsyncOption = unknown>({ items, cols, form, submitText, onSubmit, isSubmitting, showSubmitButton, }: AppFormProps<TFormValues, TAsyncOption>) => JSX.Element;
|
|
225
235
|
|
|
226
|
-
export declare interface AppFormItem {
|
|
236
|
+
export declare interface AppFormItem<TAsyncOption = unknown> {
|
|
227
237
|
label: string;
|
|
228
238
|
component: "input" | "select" | "textarea" | "checkbox" | "multiselect" | "datepicker" | "radio" | "switch" | "slider" | "async" | "async-multiple";
|
|
229
239
|
name: string;
|
|
@@ -237,11 +247,11 @@ export declare interface AppFormItem {
|
|
|
237
247
|
min?: number;
|
|
238
248
|
max?: number;
|
|
239
249
|
step?: number;
|
|
240
|
-
fetcher?: (query?: string) => Promise<
|
|
241
|
-
renderOptionItem?: (option:
|
|
242
|
-
resolveOptionValue?: (option:
|
|
243
|
-
renderSelectedValue?: (option:
|
|
244
|
-
initialOptions?:
|
|
250
|
+
fetcher?: (query?: string) => Promise<TAsyncOption[]>;
|
|
251
|
+
renderOptionItem?: (option: TAsyncOption) => React.ReactNode;
|
|
252
|
+
resolveOptionValue?: (option: TAsyncOption) => string;
|
|
253
|
+
renderSelectedValue?: (option: TAsyncOption) => React.ReactNode;
|
|
254
|
+
initialOptions?: TAsyncOption[];
|
|
245
255
|
notFound?: React.ReactNode;
|
|
246
256
|
noResultsMessage?: string;
|
|
247
257
|
debounce?: number;
|
|
@@ -249,17 +259,17 @@ export declare interface AppFormItem {
|
|
|
249
259
|
datePickerProps?: Partial<ComponentProps<typeof DatePicker>>;
|
|
250
260
|
}
|
|
251
261
|
|
|
252
|
-
declare interface AppFormProps {
|
|
262
|
+
declare interface AppFormProps<TFormValues extends FieldValues = FieldValues, TAsyncOption = unknown> {
|
|
253
263
|
cols?: "1" | "2" | "3";
|
|
254
|
-
items: AppFormItem[];
|
|
255
|
-
form: UseFormReturn<
|
|
264
|
+
items: AppFormItem<TAsyncOption>[];
|
|
265
|
+
form: UseFormReturn<TFormValues>;
|
|
256
266
|
submitText?: string;
|
|
257
|
-
onSubmit?: (data:
|
|
267
|
+
onSubmit?: (data: TFormValues) => void;
|
|
258
268
|
isSubmitting?: boolean;
|
|
259
269
|
showSubmitButton?: boolean;
|
|
260
270
|
}
|
|
261
271
|
|
|
262
|
-
export declare function AppKanban<T =
|
|
272
|
+
export declare function AppKanban<T = unknown>({ columns, initialTasks, onTaskMove, onTaskEdit, onTaskCreate, taskActions, renderTaskContent, className, allowTaskCreate, }: AppKanbanConfig<T>): JSX.Element;
|
|
263
273
|
|
|
264
274
|
export declare type AppKanbanColumn = {
|
|
265
275
|
id: string;
|
|
@@ -275,7 +285,7 @@ export declare type AppKanbanColumn = {
|
|
|
275
285
|
disableOnDragOut?: boolean;
|
|
276
286
|
};
|
|
277
287
|
|
|
278
|
-
export declare type AppKanbanConfig<T =
|
|
288
|
+
export declare type AppKanbanConfig<T = unknown> = {
|
|
279
289
|
columns: AppKanbanColumn[];
|
|
280
290
|
initialTasks: Record<string, AppKanbanTask<T>[]>;
|
|
281
291
|
onTaskMove?: (taskId: string, fromColumn: string, toColumn: string) => void;
|
|
@@ -288,7 +298,7 @@ export declare type AppKanbanConfig<T = any> = {
|
|
|
288
298
|
createTaskLabel?: string;
|
|
289
299
|
};
|
|
290
300
|
|
|
291
|
-
export declare type AppKanbanTask<T =
|
|
301
|
+
export declare type AppKanbanTask<T = unknown> = {
|
|
292
302
|
id: string;
|
|
293
303
|
title: string;
|
|
294
304
|
description?: string;
|
|
@@ -355,7 +365,7 @@ export declare interface AppSelectOption {
|
|
|
355
365
|
|
|
356
366
|
export declare type AppSelectProps = SingleSelectProps | MultiSelectProps;
|
|
357
367
|
|
|
358
|
-
export declare function AppSidebar({ navigation, navigationFooter,
|
|
368
|
+
export declare function AppSidebar({ navigation, navigationFooter, headerContent, footerContent, showRail, linkComponent: LinkComponent, linkProps, ...props }: AppSidebarProps): JSX.Element;
|
|
359
369
|
|
|
360
370
|
declare interface AppSidebarProps extends React_2.ComponentProps<typeof Sidebar> {
|
|
361
371
|
navigation: NavGroup[];
|
|
@@ -365,8 +375,10 @@ declare interface AppSidebarProps extends React_2.ComponentProps<typeof Sidebar>
|
|
|
365
375
|
headerContent?: React_2.ReactNode;
|
|
366
376
|
footerContent?: React_2.ReactNode;
|
|
367
377
|
showRail?: boolean;
|
|
368
|
-
linkComponent?: React_2.ComponentType<
|
|
369
|
-
|
|
378
|
+
linkComponent?: React_2.ComponentType<React_2.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
379
|
+
href: string;
|
|
380
|
+
}>;
|
|
381
|
+
linkProps?: Record<string, unknown>;
|
|
370
382
|
}
|
|
371
383
|
|
|
372
384
|
export declare interface AppStep {
|
|
@@ -584,14 +596,17 @@ export declare const badgeVariants: (props?: ({
|
|
|
584
596
|
|
|
585
597
|
declare type BarItemDataType = RepeatDataType | NoRepeatDataType;
|
|
586
598
|
|
|
587
|
-
|
|
599
|
+
/** Base configuration for all column types — discriminated on accessorKey presence */
|
|
600
|
+
export declare type BaseColumnConfig<TData> = DistributedAccessorConfig<TData> | DisplayColumnConfig<TData>;
|
|
601
|
+
|
|
602
|
+
/** Common fields shared by all column configs */
|
|
603
|
+
declare type BaseColumnFields = {
|
|
588
604
|
id?: string;
|
|
589
|
-
accessorKey?: DeepKeys<TData>;
|
|
590
605
|
sortable?: boolean;
|
|
591
606
|
filterable?: boolean;
|
|
592
607
|
searchable?: boolean;
|
|
593
608
|
pinned?: "left" | "right";
|
|
594
|
-
|
|
609
|
+
headerClassName?: string;
|
|
595
610
|
} & HeaderConfig;
|
|
596
611
|
|
|
597
612
|
declare type BaseProps = {
|
|
@@ -776,18 +791,18 @@ export declare function ChartTooltipContent({ active, payload, className, indica
|
|
|
776
791
|
payload?: Array<{
|
|
777
792
|
dataKey?: string;
|
|
778
793
|
name?: string;
|
|
779
|
-
value?:
|
|
794
|
+
value?: unknown;
|
|
780
795
|
color?: string;
|
|
781
|
-
payload?:
|
|
796
|
+
payload?: Record<string, unknown>;
|
|
782
797
|
}>;
|
|
783
798
|
label?: string | number;
|
|
784
799
|
className?: string;
|
|
785
800
|
indicator?: "line" | "dot" | "dashed";
|
|
786
801
|
hideLabel?: boolean;
|
|
787
802
|
hideIndicator?: boolean;
|
|
788
|
-
labelFormatter?: (value:
|
|
803
|
+
labelFormatter?: (value: unknown, payload: unknown) => React_2.ReactNode;
|
|
789
804
|
labelClassName?: string;
|
|
790
|
-
formatter?: (value:
|
|
805
|
+
formatter?: (value: unknown, name: unknown, item: unknown, index: number, payload: unknown) => React_2.ReactNode;
|
|
791
806
|
color?: string;
|
|
792
807
|
nameKey?: string;
|
|
793
808
|
labelKey?: string;
|
|
@@ -833,9 +848,7 @@ export declare interface ChatMessageProps extends Message {
|
|
|
833
848
|
onMessageSave?: (messageId: string, content: string) => void;
|
|
834
849
|
}
|
|
835
850
|
|
|
836
|
-
export declare function ChatMessages({
|
|
837
|
-
messages: Message[];
|
|
838
|
-
}>): JSX.Element;
|
|
851
|
+
export declare function ChatMessages({ children }: React.PropsWithChildren): JSX.Element;
|
|
839
852
|
|
|
840
853
|
declare type ChatProps = ChatPropsWithoutSuggestions | ChatPropsWithSuggestions;
|
|
841
854
|
|
|
@@ -943,7 +956,7 @@ export declare interface ConfirmedCell {
|
|
|
943
956
|
fromId: string;
|
|
944
957
|
toId: string;
|
|
945
958
|
id?: string;
|
|
946
|
-
value:
|
|
959
|
+
value: unknown;
|
|
947
960
|
}
|
|
948
961
|
|
|
949
962
|
export declare interface ConfirmedCellsData {
|
|
@@ -1322,19 +1335,19 @@ export declare interface DataCrossTableButtonsGroupProps {
|
|
|
1322
1335
|
|
|
1323
1336
|
declare interface DataCrossTableContextType {
|
|
1324
1337
|
editedCells: Record<string, {
|
|
1325
|
-
value:
|
|
1338
|
+
value: unknown;
|
|
1326
1339
|
cell: CrossTableCell;
|
|
1327
1340
|
}>;
|
|
1328
1341
|
setEditedCells: default_2.Dispatch<default_2.SetStateAction<Record<string, {
|
|
1329
|
-
value:
|
|
1342
|
+
value: unknown;
|
|
1330
1343
|
cell: CrossTableCell;
|
|
1331
1344
|
}>>>;
|
|
1332
1345
|
toDefaultCells: Record<string, {
|
|
1333
|
-
value:
|
|
1346
|
+
value: unknown;
|
|
1334
1347
|
cell: CrossTableCell;
|
|
1335
1348
|
}>;
|
|
1336
1349
|
setToDefaultCells: default_2.Dispatch<default_2.SetStateAction<Record<string, {
|
|
1337
|
-
value:
|
|
1350
|
+
value: unknown;
|
|
1338
1351
|
cell: CrossTableCell;
|
|
1339
1352
|
}>>>;
|
|
1340
1353
|
editMode: boolean;
|
|
@@ -1396,7 +1409,7 @@ export declare enum DataRepeatTypes {
|
|
|
1396
1409
|
MONTH = "MONTH"
|
|
1397
1410
|
}
|
|
1398
1411
|
|
|
1399
|
-
export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, actions, customComponentsLeft, customComponentsRight, hidePagination, hideActionsRow, i18n, maxSortedColumns, initialState, serverMode, serverConfig, disableAutoPageSize, id, "data-testid": dataTestId, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
1412
|
+
export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, actions, customComponentsLeft, customComponentsRight, hidePagination, hideActionsRow, i18n, maxSortedColumns, initialState, serverMode, serverConfig, disableAutoPageSize, id, "data-testid": dataTestId, rowClassName, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
1400
1413
|
|
|
1401
1414
|
export declare interface DataTableActions {
|
|
1402
1415
|
label: string;
|
|
@@ -1587,11 +1600,13 @@ export declare interface DataTableProps<TData, TValue> {
|
|
|
1587
1600
|
disableAutoPageSize?: boolean;
|
|
1588
1601
|
id?: string;
|
|
1589
1602
|
"data-testid"?: string;
|
|
1603
|
+
rowClassName?: string | ((row: Row<TData>) => string);
|
|
1590
1604
|
}
|
|
1591
1605
|
|
|
1592
1606
|
export declare interface DataTableServerConfig {
|
|
1593
1607
|
totalItems: number;
|
|
1594
1608
|
onStateChange: (state: ServerState) => void;
|
|
1609
|
+
serverDebounceTime?: number;
|
|
1595
1610
|
}
|
|
1596
1611
|
|
|
1597
1612
|
export declare interface DataTableSorting {
|
|
@@ -1703,6 +1718,12 @@ declare type DeepKeys<T> = T extends object ? {
|
|
|
1703
1718
|
[K in keyof T & string]: NonNullable<T[K]> extends object ? NonNullable<T[K]> extends any[] ? `${K}` : `${K}` | `${K}.${DeepKeys<NonNullable<T[K]>>}` : `${K}`;
|
|
1704
1719
|
}[keyof T & string] : never;
|
|
1705
1720
|
|
|
1721
|
+
/**
|
|
1722
|
+
* Type helper to resolve the actual value type from a dot-notation accessor path
|
|
1723
|
+
* e.g. DeepValue<{ user: { name: string } }, "user.name"> = string
|
|
1724
|
+
*/
|
|
1725
|
+
declare type DeepValue<T, K extends string> = K extends `${infer First}.${infer Rest}` ? First extends keyof T ? DeepValue<NonNullable<T[First]>, Rest> : never : K extends keyof T ? T[K] : never;
|
|
1726
|
+
|
|
1706
1727
|
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
1707
1728
|
|
|
1708
1729
|
export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
|
|
@@ -1723,6 +1744,18 @@ export declare function DialogTitle({ className, ...props }: React_2.ComponentPr
|
|
|
1723
1744
|
|
|
1724
1745
|
export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
|
|
1725
1746
|
|
|
1747
|
+
/** Column config without accessorKey — cell receives undefined as value */
|
|
1748
|
+
declare type DisplayColumnConfig<TData> = BaseColumnFields & {
|
|
1749
|
+
accessorKey?: undefined;
|
|
1750
|
+
cell?: (value: undefined, row: TData, tableRow: Row<TData>) => React.ReactNode;
|
|
1751
|
+
cellClassName?: string | ((value: undefined, row: TData) => string);
|
|
1752
|
+
};
|
|
1753
|
+
|
|
1754
|
+
/** Maps each key to its typed accessor config, then unions them */
|
|
1755
|
+
declare type DistributedAccessorConfig<TData> = {
|
|
1756
|
+
[K in DeepKeys<TData> & string]: AccessorColumnConfigForKey<TData, K>;
|
|
1757
|
+
}[DeepKeys<TData> & string];
|
|
1758
|
+
|
|
1726
1759
|
export declare const downloadFile: (url: string, filename?: string) => void;
|
|
1727
1760
|
|
|
1728
1761
|
export declare enum DragStepSizes {
|
|
@@ -2071,7 +2104,7 @@ declare interface IconProps {
|
|
|
2071
2104
|
/** Colore dell'icona (sovrascrive la classe) */
|
|
2072
2105
|
color?: string;
|
|
2073
2106
|
/** Attributi aggiuntivi */
|
|
2074
|
-
[key: string]:
|
|
2107
|
+
[key: string]: unknown;
|
|
2075
2108
|
}
|
|
2076
2109
|
|
|
2077
2110
|
declare type IconSize = keyof typeof sizeMap;
|
|
@@ -2450,9 +2483,9 @@ declare type NoRepeatDataType = {
|
|
|
2450
2483
|
monthdays?: never;
|
|
2451
2484
|
};
|
|
2452
2485
|
|
|
2453
|
-
declare type OnBarChangeType<T extends Record<string, unknown> =
|
|
2486
|
+
declare type OnBarChangeType<T extends Record<string, unknown> = Record<string, unknown>> = (barData: GanttItemDataType<T>, data: (GanttItemDataType<T> & T)[]) => void;
|
|
2454
2487
|
|
|
2455
|
-
declare type OnBarDoubleClickType<T extends Record<string, unknown> =
|
|
2488
|
+
declare type OnBarDoubleClickType<T extends Record<string, unknown> = Record<string, unknown>> = (barData: GanttItemDataType<T>) => void;
|
|
2456
2489
|
|
|
2457
2490
|
declare interface Option_2 {
|
|
2458
2491
|
value: string;
|
|
@@ -2928,14 +2961,12 @@ export declare const toggleVariants: (props?: ({
|
|
|
2928
2961
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2929
2962
|
} & ClassProp) | undefined) => string;
|
|
2930
2963
|
|
|
2931
|
-
declare
|
|
2932
|
-
|
|
2933
|
-
declare interface ToolCall {
|
|
2964
|
+
declare interface ToolCallData {
|
|
2934
2965
|
state: "call";
|
|
2935
2966
|
toolName: string;
|
|
2936
2967
|
}
|
|
2937
2968
|
|
|
2938
|
-
declare type ToolInvocation = PartialToolCall |
|
|
2969
|
+
declare type ToolInvocation = PartialToolCall | ToolCallData | ToolResult;
|
|
2939
2970
|
|
|
2940
2971
|
declare interface ToolInvocationPart {
|
|
2941
2972
|
type: "tool-invocation";
|
|
@@ -2947,7 +2978,7 @@ declare interface ToolResult {
|
|
|
2947
2978
|
toolName: string;
|
|
2948
2979
|
result: {
|
|
2949
2980
|
__cancelled?: boolean;
|
|
2950
|
-
[key: string]:
|
|
2981
|
+
[key: string]: unknown;
|
|
2951
2982
|
};
|
|
2952
2983
|
}
|
|
2953
2984
|
|
|
@@ -2991,6 +3022,29 @@ declare type TransformedDataType<T> = {
|
|
|
2991
3022
|
[P in keyof T as Exclude<P, "children">]: T[P];
|
|
2992
3023
|
};
|
|
2993
3024
|
|
|
3025
|
+
export declare function TruncatedCell({ children, text, title, popoverContent, className, wrapperClassName, popoverClassName, showButton, emptyFallback, }: TruncatedCellProps): JSX.Element;
|
|
3026
|
+
|
|
3027
|
+
export declare interface TruncatedCellProps {
|
|
3028
|
+
/** The text to display and potentially truncate (can be string or ReactNode) */
|
|
3029
|
+
children?: React.ReactNode;
|
|
3030
|
+
/** The text value to use for truncation detection, accessibility and default popover content */
|
|
3031
|
+
text?: string;
|
|
3032
|
+
/** Optional title for the popover dialog */
|
|
3033
|
+
title?: string;
|
|
3034
|
+
/** Custom popover content to override default text display */
|
|
3035
|
+
popoverContent?: React.ReactNode;
|
|
3036
|
+
/** Additional CSS classes for the wrapper container */
|
|
3037
|
+
wrapperClassName?: string;
|
|
3038
|
+
/** Additional CSS classes for cell */
|
|
3039
|
+
className?: string;
|
|
3040
|
+
/** CSS classes for the popoverContent component */
|
|
3041
|
+
popoverClassName?: string;
|
|
3042
|
+
/** Flg used to show / hide the eye button */
|
|
3043
|
+
showButton?: boolean;
|
|
3044
|
+
/** Custom placeholder rendered when there is no content */
|
|
3045
|
+
emptyFallback?: React.ReactNode;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
2994
3048
|
export declare function TypingIndicator(): JSX.Element;
|
|
2995
3049
|
|
|
2996
3050
|
export declare const Typo: React_2.FC<TypoProps>;
|
|
@@ -3024,7 +3078,7 @@ declare interface UseAudioRecordingOptions {
|
|
|
3024
3078
|
onTranscriptionComplete?: (text: string) => void;
|
|
3025
3079
|
}
|
|
3026
3080
|
|
|
3027
|
-
export declare function useAutoScroll(
|
|
3081
|
+
export declare function useAutoScroll(): {
|
|
3028
3082
|
containerRef: RefObject<HTMLDivElement | null>;
|
|
3029
3083
|
scrollToBottom: () => void;
|
|
3030
3084
|
handleScroll: () => void;
|
|
@@ -3032,13 +3086,12 @@ export declare function useAutoScroll(dependencies: React.DependencyList): {
|
|
|
3032
3086
|
handleTouchStart: () => void;
|
|
3033
3087
|
};
|
|
3034
3088
|
|
|
3035
|
-
export declare function useAutosizeTextArea({ ref, maxHeight, borderWidth,
|
|
3089
|
+
export declare function useAutosizeTextArea({ ref, maxHeight, borderWidth, }: UseAutosizeTextAreaProps): void;
|
|
3036
3090
|
|
|
3037
3091
|
declare interface UseAutosizeTextAreaProps {
|
|
3038
3092
|
ref: React.RefObject<HTMLTextAreaElement>;
|
|
3039
3093
|
maxHeight?: number;
|
|
3040
3094
|
borderWidth?: number;
|
|
3041
|
-
dependencies: React.DependencyList;
|
|
3042
3095
|
}
|
|
3043
3096
|
|
|
3044
3097
|
declare type UseCarouselParameters = Parameters<typeof default_3>;
|
|
@@ -3106,5 +3159,7 @@ declare module "@tanstack/react-table" {
|
|
|
3106
3159
|
searchable?: boolean;
|
|
3107
3160
|
pinned?: "left" | "right";
|
|
3108
3161
|
listOptions?: AppSelectOption[];
|
|
3162
|
+
cellClassName?: string | ((value: unknown, row: TData) => string);
|
|
3163
|
+
headerClassName?: string;
|
|
3109
3164
|
}
|
|
3110
3165
|
}
|