laif-ds 0.1.41 → 0.1.42
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/components/ui/tables/data-cross-table/data-cross-table-buttons.js +126 -0
- package/dist/components/ui/tables/data-cross-table/data-cross-table-context.js +50 -0
- package/dist/components/ui/tables/data-cross-table/data-cross-table.js +172 -225
- package/dist/index.d.ts +55 -1
- package/dist/index.js +33 -29
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
- package/dist/components/ui/tables/data-cross-table/edit-controls.js +0 -38
package/dist/index.d.ts
CHANGED
|
@@ -583,7 +583,44 @@ export declare interface CrossTableHeader {
|
|
|
583
583
|
label: string;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
export declare function DataCrossTable({ crossTableData, filterable, loading, emptyComponent, className, notFoundMessage, cornerHeaderFrom, cornerHeaderTo, maxHeaderLength, minWidthCell, editable, editMode,
|
|
586
|
+
export declare function DataCrossTable({ crossTableData, filterable, loading, emptyComponent, className, notFoundMessage, cornerHeaderFrom, cornerHeaderTo, maxHeaderLength, minWidthCell, editable, editMode, onEditModeChange, onSelectedRow, selectedRow, rowSortAsc, }: DataCrossTableProps): JSX.Element;
|
|
587
|
+
|
|
588
|
+
export declare const DataCrossTableButtonsGroup: default_3.FC<DataCrossTableButtonsGroupProps>;
|
|
589
|
+
|
|
590
|
+
export declare interface DataCrossTableButtonsGroupProps {
|
|
591
|
+
className?: string;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
declare interface DataCrossTableContextType {
|
|
595
|
+
editedCells: Record<string, {
|
|
596
|
+
value: any;
|
|
597
|
+
cell: CrossTableCell;
|
|
598
|
+
}>;
|
|
599
|
+
setEditedCells: default_3.Dispatch<default_3.SetStateAction<Record<string, {
|
|
600
|
+
value: any;
|
|
601
|
+
cell: CrossTableCell;
|
|
602
|
+
}>>>;
|
|
603
|
+
toDefaultCells: Record<string, {
|
|
604
|
+
value: any;
|
|
605
|
+
cell: CrossTableCell;
|
|
606
|
+
}>;
|
|
607
|
+
setToDefaultCells: default_3.Dispatch<default_3.SetStateAction<Record<string, {
|
|
608
|
+
value: any;
|
|
609
|
+
cell: CrossTableCell;
|
|
610
|
+
}>>>;
|
|
611
|
+
editMode: boolean;
|
|
612
|
+
setEditMode: (mode: boolean) => void;
|
|
613
|
+
onConfirmedCells?: (data: ConfirmedCellsData) => void;
|
|
614
|
+
editConfirmLabel: string;
|
|
615
|
+
editCancelLabel: string;
|
|
616
|
+
editRestoreDefaultLabel: string;
|
|
617
|
+
showDefaultActionButton: boolean;
|
|
618
|
+
cellEditTitleLabel: string;
|
|
619
|
+
cellEditModifiedLabel: string;
|
|
620
|
+
cellConfirmButtonLabel: string;
|
|
621
|
+
cellCancelButtonLabel: string;
|
|
622
|
+
cellResetButtonLabel: string;
|
|
623
|
+
}
|
|
587
624
|
|
|
588
625
|
export declare interface DataCrossTableProps {
|
|
589
626
|
crossTableData: CrossTableData;
|
|
@@ -608,6 +645,23 @@ export declare interface DataCrossTableProps {
|
|
|
608
645
|
rowSortAsc?: boolean;
|
|
609
646
|
}
|
|
610
647
|
|
|
648
|
+
export declare const DataCrossTableProvider: default_3.FC<DataCrossTableProviderProps>;
|
|
649
|
+
|
|
650
|
+
export declare interface DataCrossTableProviderProps {
|
|
651
|
+
children: ReactNode | ((context: DataCrossTableContextType) => ReactNode);
|
|
652
|
+
onConfirmedCells?: (data: ConfirmedCellsData) => void;
|
|
653
|
+
editConfirmLabel?: string;
|
|
654
|
+
editCancelLabel?: string;
|
|
655
|
+
editRestoreDefaultLabel?: string;
|
|
656
|
+
initialEditMode?: boolean;
|
|
657
|
+
showDefaultActionButton?: boolean;
|
|
658
|
+
cellEditTitleLabel?: string;
|
|
659
|
+
cellEditModifiedLabel?: string;
|
|
660
|
+
cellConfirmButtonLabel?: string;
|
|
661
|
+
cellCancelButtonLabel?: string;
|
|
662
|
+
cellResetButtonLabel?: string;
|
|
663
|
+
}
|
|
664
|
+
|
|
611
665
|
export declare enum DataRepeatTypes {
|
|
612
666
|
DAY = "DAY",
|
|
613
667
|
WEEK = "WEEK",
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { default as o } from "./components/ui/gantt/components/Gantt/Gantt.js";
|
|
|
3
3
|
import { AspectRatio as a } from "./components/ui/aspect-ratio.js";
|
|
4
4
|
import { Avatar as i, AvatarFallback as p, AvatarImage as m } from "./components/ui/avatar.js";
|
|
5
5
|
import { Badge as u, badgeVariants as x } from "./components/ui/badge.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as b, buttonVariants as g } from "./components/ui/button.js";
|
|
7
7
|
import { Checkbox as f } from "./components/ui/checkbox.js";
|
|
8
8
|
import { Collapsible as S, CollapsibleContent as M, CollapsibleTrigger as c } from "./components/ui/collapsible.js";
|
|
9
9
|
import { CopyButton as D } from "./components/ui/copy-button.js";
|
|
@@ -23,7 +23,7 @@ import { TypingIndicator as re } from "./components/ui/typing-indicator.js";
|
|
|
23
23
|
import { Toaster as te } from "./components/ui/toaster.js";
|
|
24
24
|
import { Accordion as ne, AccordionContent as ie, AccordionItem as pe, AccordionTrigger as me } from "./components/ui/accordion.js";
|
|
25
25
|
import { Alert as ue, AlertDescription as xe, AlertTitle as de } from "./components/ui/alert.js";
|
|
26
|
-
import { AlertDialog as
|
|
26
|
+
import { AlertDialog as ge, AlertDialogAction as Ce, AlertDialogCancel as fe, AlertDialogContent as se, AlertDialogDescription as Se, AlertDialogFooter as Me, AlertDialogHeader as ce, AlertDialogTitle as Te, AlertDialogTrigger as De } from "./components/ui/alert-dialog.js";
|
|
27
27
|
import { AsyncSelect as Ae } from "./components/ui/async-select.js";
|
|
28
28
|
import { Calendar as he } from "./components/ui/calendar.js";
|
|
29
29
|
import { Card as we, CardContent as Fe, CardDescription as Ge, CardFooter as Le, CardHeader as Be, CardTitle as Re } from "./components/ui/card.js";
|
|
@@ -32,13 +32,13 @@ import { Command as ye, CommandDialog as ze, CommandEmpty as Ve, CommandGroup as
|
|
|
32
32
|
import { ContextMenu as Ue, ContextMenuCheckboxItem as We, ContextMenuContent as Xe, ContextMenuGroup as Ye, ContextMenuItem as Ze, ContextMenuLabel as _e, ContextMenuPortal as $e, ContextMenuRadioGroup as er, ContextMenuRadioItem as rr, ContextMenuSeparator as or, ContextMenuShortcut as tr, ContextMenuSub as ar, ContextMenuSubContent as nr, ContextMenuSubTrigger as ir, ContextMenuTrigger as pr } from "./components/ui/context-menu.js";
|
|
33
33
|
import { DatePicker as lr } from "./components/ui/date-picker.js";
|
|
34
34
|
import { InputSelector as xr } from "./components/ui/input-selector.js";
|
|
35
|
-
import { Dialog as
|
|
35
|
+
import { Dialog as br, DialogContent as gr, DialogDescription as Cr, DialogFooter as fr, DialogHeader as sr, DialogTitle as Sr, DialogTrigger as Mr } from "./components/ui/dialog.js";
|
|
36
36
|
import { Drawer as Tr, DrawerContent as Dr, DrawerDescription as Ir, DrawerFooter as Ar, DrawerHeader as Pr, DrawerTitle as hr, DrawerTrigger as vr } from "./components/ui/drawer.js";
|
|
37
37
|
import { Form as Fr, FormControl as Gr, FormDescription as Lr, FormField as Br, FormItem as Rr, FormLabel as Hr, FormMessage as kr, useFormField as Nr } from "./components/ui/form.js";
|
|
38
38
|
import { HoverCard as zr, HoverCardContent as Vr, HoverCardTrigger as Er } from "./components/ui/hover-card.js";
|
|
39
39
|
import { Menubar as jr, MenubarCheckboxItem as qr, MenubarContent as Jr, MenubarGroup as Kr, MenubarItem as Qr, MenubarLabel as Ur, MenubarMenu as Wr, MenubarPortal as Xr, MenubarRadioGroup as Yr, MenubarRadioItem as Zr, MenubarSeparator as _r, MenubarShortcut as $r, MenubarSub as eo, MenubarSubContent as ro, MenubarSubTrigger as oo, MenubarTrigger as to } from "./components/ui/menubar.js";
|
|
40
40
|
import { MultipleSelector as no } from "./components/ui/multiple-selector.js";
|
|
41
|
-
import { Pagination as po, PaginationContent as mo, PaginationEllipsis as lo, PaginationItem as uo, PaginationLink as xo, PaginationNext as
|
|
41
|
+
import { Pagination as po, PaginationContent as mo, PaginationEllipsis as lo, PaginationItem as uo, PaginationLink as xo, PaginationNext as bo, PaginationPrevious as go } from "./components/ui/pagination.js";
|
|
42
42
|
import { Popover as fo, PopoverContent as so, PopoverTrigger as So } from "./components/ui/popover.js";
|
|
43
43
|
import { PromptSuggestions as co } from "./components/ui/prompt-suggestions.js";
|
|
44
44
|
import { ResizableHandle as Do, ResizablePanel as Io, ResizablePanelGroup as Ao } from "./components/ui/resizable.js";
|
|
@@ -48,7 +48,7 @@ import { Sheet as zo, SheetContent as Vo, SheetDescription as Eo, SheetFooter as
|
|
|
48
48
|
import { Table as Qo, TableBody as Uo, TableCaption as Wo, TableCell as Xo, TableFooter as Yo, TableHead as Zo, TableHeader as _o, TableRow as $o } from "./components/ui/table.js";
|
|
49
49
|
import { Tabs as rt, TabsContent as ot, TabsList as tt, TabsTrigger as at } from "./components/ui/tabs.js";
|
|
50
50
|
import { ToggleGroup as it, ToggleGroupItem as pt } from "./components/ui/toggle-group.js";
|
|
51
|
-
import { Breadcrumb as lt, BreadcrumbEllipsis as ut, BreadcrumbItem as xt, BreadcrumbLink as dt, BreadcrumbList as
|
|
51
|
+
import { Breadcrumb as lt, BreadcrumbEllipsis as ut, BreadcrumbItem as xt, BreadcrumbLink as dt, BreadcrumbList as bt, BreadcrumbPage as gt, BreadcrumbSeparator as Ct } from "./components/ui/breadcrumb.js";
|
|
52
52
|
import { Slider as st } from "./components/ui/slider.js";
|
|
53
53
|
import { CircularProgress as Mt } from "./components/ui/charts/circular.js";
|
|
54
54
|
import { ThemeSwitcher as Tt } from "./components/ui/theme-switcher.js";
|
|
@@ -63,7 +63,7 @@ import { InterruptPrompt as ea } from "./components/ui/interrupt-prompt.js";
|
|
|
63
63
|
import { MarkdownRenderer as oa } from "./components/ui/markdown-renderer.js";
|
|
64
64
|
import { MessageInput as aa } from "./components/ui/message-input.js";
|
|
65
65
|
import { MessageList as ia } from "./components/ui/message-list.js";
|
|
66
|
-
import { NavigationMenu as ma, NavigationMenuContent as la, NavigationMenuIndicator as ua, NavigationMenuItem as xa, NavigationMenuLink as da, NavigationMenuList as
|
|
66
|
+
import { NavigationMenu as ma, NavigationMenuContent as la, NavigationMenuIndicator as ua, NavigationMenuItem as xa, NavigationMenuLink as da, NavigationMenuList as ba, NavigationMenuTrigger as ga, NavigationMenuViewport as Ca } from "./components/ui/navigation-menu.js";
|
|
67
67
|
import { Sidebar as sa, SidebarContent as Sa, SidebarFooter as Ma, SidebarGroup as ca, SidebarGroupAction as Ta, SidebarGroupContent as Da, SidebarGroupLabel as Ia, SidebarHeader as Aa, SidebarInput as Pa, SidebarInset as ha, SidebarMenu as va, SidebarMenuAction as wa, SidebarMenuBadge as Fa, SidebarMenuButton as Ga, SidebarMenuItem as La, SidebarMenuSkeleton as Ba, SidebarMenuSub as Ra, SidebarMenuSubButton as Ha, SidebarMenuSubItem as ka, SidebarProvider as Na, SidebarRail as ya, SidebarSeparator as za, SidebarTrigger as Va, useSidebar as Ea } from "./components/ui/sidebar.js";
|
|
68
68
|
import { DataTable as ja } from "./components/ui/data-table.js";
|
|
69
69
|
import { GanttDimensions as Ja } from "./components/ui/gantt/enums/GanttDimensions.js";
|
|
@@ -75,12 +75,14 @@ import { Confirmer as en, confirm as rn } from "./components/ui/confirmer.js";
|
|
|
75
75
|
import { AppSelect as tn } from "./components/ui/app-select.js";
|
|
76
76
|
import { AppMultipleSelectDropdown as nn } from "./components/ui/app-multiple-select-dropdown.js";
|
|
77
77
|
import { DataCrossTable as mn } from "./components/ui/tables/data-cross-table/data-cross-table.js";
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
78
|
+
import { DataCrossTableButtonsGroup as un } from "./components/ui/tables/data-cross-table/data-cross-table-buttons.js";
|
|
79
|
+
import { DataCrossTableProvider as dn } from "./components/ui/tables/data-cross-table/data-cross-table-context.js";
|
|
80
|
+
import { useAudioRecording as gn } from "./hooks/use-audio-recording.js";
|
|
81
|
+
import { useAutoScroll as fn } from "./hooks/use-auto-scroll.js";
|
|
82
|
+
import { useAutosizeTextArea as Sn } from "./hooks/use-autosize-textarea.js";
|
|
83
|
+
import { useCopyToClipboard as cn } from "./hooks/use-copy-to-clipboard.js";
|
|
84
|
+
import { useDebounce as Dn } from "./hooks/use-debounce.js";
|
|
85
|
+
import { useIsMobile as An } from "./hooks/use-mobile.js";
|
|
84
86
|
export {
|
|
85
87
|
ne as Accordion,
|
|
86
88
|
ie as AccordionContent,
|
|
@@ -88,7 +90,7 @@ export {
|
|
|
88
90
|
me as AccordionTrigger,
|
|
89
91
|
ue as Alert,
|
|
90
92
|
xe as AlertDescription,
|
|
91
|
-
|
|
93
|
+
ge as AlertDialog,
|
|
92
94
|
Ce as AlertDialogAction,
|
|
93
95
|
fe as AlertDialogCancel,
|
|
94
96
|
se as AlertDialogContent,
|
|
@@ -112,10 +114,10 @@ export {
|
|
|
112
114
|
ut as BreadcrumbEllipsis,
|
|
113
115
|
xt as BreadcrumbItem,
|
|
114
116
|
dt as BreadcrumbLink,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
bt as BreadcrumbList,
|
|
118
|
+
gt as BreadcrumbPage,
|
|
117
119
|
Ct as BreadcrumbSeparator,
|
|
118
|
-
|
|
120
|
+
b as Button,
|
|
119
121
|
he as Calendar,
|
|
120
122
|
we as Card,
|
|
121
123
|
Fe as CardContent,
|
|
@@ -171,11 +173,13 @@ export {
|
|
|
171
173
|
pr as ContextMenuTrigger,
|
|
172
174
|
D as CopyButton,
|
|
173
175
|
mn as DataCrossTable,
|
|
176
|
+
un as DataCrossTableButtonsGroup,
|
|
177
|
+
dn as DataCrossTableProvider,
|
|
174
178
|
Ya as DataRepeatTypes,
|
|
175
179
|
ja as DataTable,
|
|
176
180
|
lr as DatePicker,
|
|
177
|
-
|
|
178
|
-
|
|
181
|
+
br as Dialog,
|
|
182
|
+
gr as DialogContent,
|
|
179
183
|
Cr as DialogDescription,
|
|
180
184
|
fr as DialogFooter,
|
|
181
185
|
sr as DialogHeader,
|
|
@@ -242,16 +246,16 @@ export {
|
|
|
242
246
|
ua as NavigationMenuIndicator,
|
|
243
247
|
xa as NavigationMenuItem,
|
|
244
248
|
da as NavigationMenuLink,
|
|
245
|
-
|
|
246
|
-
|
|
249
|
+
ba as NavigationMenuList,
|
|
250
|
+
ga as NavigationMenuTrigger,
|
|
247
251
|
Ca as NavigationMenuViewport,
|
|
248
252
|
po as Pagination,
|
|
249
253
|
mo as PaginationContent,
|
|
250
254
|
lo as PaginationEllipsis,
|
|
251
255
|
uo as PaginationItem,
|
|
252
256
|
xo as PaginationLink,
|
|
253
|
-
|
|
254
|
-
|
|
257
|
+
bo as PaginationNext,
|
|
258
|
+
go as PaginationPrevious,
|
|
255
259
|
fo as Popover,
|
|
256
260
|
so as PopoverContent,
|
|
257
261
|
So as PopoverTrigger,
|
|
@@ -331,15 +335,15 @@ export {
|
|
|
331
335
|
re as TypingIndicator,
|
|
332
336
|
ke as Typo,
|
|
333
337
|
x as badgeVariants,
|
|
334
|
-
|
|
338
|
+
g as buttonVariants,
|
|
335
339
|
rn as confirm,
|
|
336
340
|
W as toggleVariants,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
341
|
+
gn as useAudioRecording,
|
|
342
|
+
fn as useAutoScroll,
|
|
343
|
+
Sn as useAutosizeTextArea,
|
|
344
|
+
cn as useCopyToClipboard,
|
|
345
|
+
Dn as useDebounce,
|
|
342
346
|
Nr as useFormField,
|
|
343
|
-
|
|
347
|
+
An as useIsMobile,
|
|
344
348
|
Ea as useSidebar
|
|
345
349
|
};
|