caplink-saas-ui-shared-component-library 1.43.0 → 1.45.0
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/features/index.d.ts +1 -1
- package/dist/features/spreadsheet/index.d.ts +3 -1
- package/dist/features/spreadsheet/model/spreadsheet.d.ts +1 -0
- package/dist/features/spreadsheet/ui/index.d.ts +2 -0
- package/dist/features/spreadsheet/ui/spreadsheet.d.ts +1 -0
- package/dist/features/spreadsheet/ui/toolbar.d.ts +4 -1
- package/dist/features/spreadsheet/ui/workbook-tabs.d.ts +10 -0
- package/dist/features/spreadsheet/ui/workbook.d.ts +17 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.es.js +11242 -11076
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +117 -117
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/features/index.d.ts
CHANGED
|
@@ -178,6 +178,7 @@ export type Context = {
|
|
|
178
178
|
position: number;
|
|
179
179
|
}) => void;
|
|
180
180
|
onSelectSpreadsheet: () => void;
|
|
181
|
+
onNavigateWithArrowKeys: (direction: 'left' | 'right' | 'up' | 'down', shiftKey?: boolean) => void;
|
|
181
182
|
onColumnVisibilityChange: (params: {
|
|
182
183
|
columnId: string;
|
|
183
184
|
visible?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type WorkbookTabsProps = {
|
|
2
|
+
sheets: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}>;
|
|
6
|
+
currentSheetIndex: number;
|
|
7
|
+
onCurrentSheetIndexChange: (index: number) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function WorkbookTabs(props: WorkbookTabsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SpreadsheetProps } from './spreadsheet';
|
|
2
|
+
export type WorkbookSheet = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
spreadsheet: Omit<SpreadsheetProps, 'onExportData' | 'onOpenFullScreen' | 'fullScreen' | 'onMatrixChange'>;
|
|
6
|
+
};
|
|
7
|
+
export type WorkbookProps = {
|
|
8
|
+
sheets: WorkbookSheet[];
|
|
9
|
+
currentSheetIndex: number;
|
|
10
|
+
onCurrentSheetIndexChange: (index: number) => void;
|
|
11
|
+
onWorkbookChange: (workbook: WorkbookSheet[]) => void;
|
|
12
|
+
onExportData?: () => void;
|
|
13
|
+
onOpenFullScreen?: () => void;
|
|
14
|
+
fullScreen?: boolean;
|
|
15
|
+
hideTabs?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare function Workbook(props: WorkbookProps): import("react/jsx-runtime").JSX.Element | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,9 @@ import { DocumentFolder, DocumentFolderCellProps, DataEditorCellProps, DataViewe
|
|
|
30
30
|
import { Table, TablePaginationProps } from './components/table';
|
|
31
31
|
import { NumericInput } from './components/numeric-input';
|
|
32
32
|
import { Select } from './components/select';
|
|
33
|
+
import { Workbook, WorkbookTabs } from './features';
|
|
34
|
+
import { WorkbookProps } from './features/spreadsheet/ui/workbook';
|
|
35
|
+
import { WorkbookTabsProps } from './features/spreadsheet/ui/workbook-tabs';
|
|
33
36
|
import { ImageUploader, ImageUploaderProps } from './features/image-uploader/ui';
|
|
34
37
|
import { Spreadsheet } from './features/spreadsheet/ui';
|
|
35
38
|
import { useGetAdjacentNodesProps } from './features/dag/hooks';
|
|
@@ -51,8 +54,8 @@ import { CapLinkProvider } from './providers';
|
|
|
51
54
|
import { IconTextButtonProps } from './components/icon-text-button';
|
|
52
55
|
import { Badge, BadgeProps } from './components/badge';
|
|
53
56
|
import { CustomPaginationProps } from './components/pagination';
|
|
54
|
-
export { Accordion, accordionVariants, Tabs, Status, Switch, Tooltip, Popover, Radio, Checkbox, InputOTP, Card, Input, Breadcrumb, Alert, alertVariants, ProgressBar, Button, buttonVariants, AlertBanner, Sheet, CopyTextButton, Textarea, textareaVariants, Dialog, ToastProvider, Toaster, useToast, IconButton, iconButtonVariants, AlertDialog, DownloadFileButton, UploadImageInput, InputPassword, Searchbar, RichText, DocumentFolder, DocumentFolderDataEditor, Table, NumericInput, Select, };
|
|
55
|
-
export type { AccordionProps, CardProps, InputProps, TextareaProps, AlertProps, ProgressBarProps, ButtonProps, AlertBannerProps, SheetProps, SheetContentProps, CopyTextButtonProps, DialogProps, DialogContentProps, ToastFnProps, IconButtonProps, AlertDialogProps, AlertDialogContentProps, DownloadFileButtonProps, DownloadFileButtonVariant, UploadImageInputProps, UploadImageInputVariant, SearchbarProps, RichTextViewerProps, RichTextEditorProps, DocumentFolderCellProps, DataEditorCellProps, DataViewerProps, TablePaginationProps, };
|
|
57
|
+
export { Accordion, accordionVariants, Tabs, Status, Switch, Tooltip, Popover, Radio, Checkbox, InputOTP, Card, Input, Breadcrumb, Alert, alertVariants, ProgressBar, Button, buttonVariants, AlertBanner, Sheet, CopyTextButton, Textarea, textareaVariants, Dialog, ToastProvider, Toaster, useToast, IconButton, iconButtonVariants, AlertDialog, DownloadFileButton, UploadImageInput, InputPassword, Searchbar, RichText, DocumentFolder, DocumentFolderDataEditor, Table, NumericInput, Select, Workbook, WorkbookTabs, };
|
|
58
|
+
export type { AccordionProps, CardProps, InputProps, TextareaProps, AlertProps, ProgressBarProps, ButtonProps, AlertBannerProps, SheetProps, SheetContentProps, CopyTextButtonProps, DialogProps, DialogContentProps, ToastFnProps, IconButtonProps, AlertDialogProps, AlertDialogContentProps, DownloadFileButtonProps, DownloadFileButtonVariant, UploadImageInputProps, UploadImageInputVariant, SearchbarProps, RichTextViewerProps, RichTextEditorProps, DocumentFolderCellProps, DataEditorCellProps, DataViewerProps, TablePaginationProps, WorkbookProps, WorkbookTabsProps, };
|
|
56
59
|
/** ----------- Updated Components ----------- */
|
|
57
60
|
/** ----------- SVG Icons & Components ----------- */
|
|
58
61
|
export { AnimatedLoaderIcon, EmptySearchIcon, EmptyFolderIcon, EmptyPageIcon, EmptyTaskIcon, EmptyDocumentIcon, UnderConstructionIcon, } from './svg';
|