@wakastellar/ui 0.6.0 → 1.0.2
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/blocks/index.d.ts +28 -39
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTableAdvanced.d.ts +1 -1
- package/dist/components/DataTable/DataTableFilters.d.ts +3 -3
- package/dist/components/DataTable/DataTableSelection.d.ts +12 -17
- package/dist/components/DataTable/hooks/useDataTable.d.ts +1 -1
- package/dist/components/DataTable/hooks/useDataTableAdvanced.d.ts +6 -6
- package/dist/components/DataTable/hooks/useDataTableExport.d.ts +4 -15
- package/dist/components/DataTable/hooks/useDataTableImport.d.ts +2 -16
- package/dist/components/DataTable/hooks/useDataTableVirtualization.d.ts +1 -1
- package/dist/components/DataTable/index.d.ts +2 -48
- package/dist/components/DataTable/types.d.ts +25 -417
- package/dist/components/command/index.d.ts +2 -6
- package/dist/components/index.d.ts +20 -24
- package/dist/components/language-selector/index.d.ts +1 -19
- package/dist/components/theme-selector/index.d.ts +0 -10
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/waka-spinner/index.d.ts +21 -57
- package/dist/components/waka-theme-creator/index.d.ts +22 -73
- package/dist/components/waka-theme-manager/index.d.ts +1 -14
- package/dist/context/admincrumb-context.d.ts +1 -118
- package/dist/context/index.d.ts +2 -2
- package/dist/context/language-context.d.ts +23 -177
- package/dist/context/theme-context.d.ts +3 -4
- package/dist/context/theme-provider.d.ts +19 -57
- package/dist/context/waka-provider.d.ts +7 -50
- package/dist/hooks/use-toast.d.ts +0 -116
- package/dist/hooks/use-translation.d.ts +1 -24
- package/dist/hooks/useToast.d.ts +0 -82
- package/dist/index.cjs.js +44 -57
- package/dist/index.d.ts +3 -35
- package/dist/index.es.js +17836 -21739
- package/dist/types/provider.d.ts +17 -48
- package/dist/ui.css +1 -1
- package/dist/utils/cn.d.ts +1 -15
- package/dist/utils/datetime-helpers.d.ts +33 -241
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/theme-loader.d.ts +30 -140
- package/dist/utils/tweak.d.ts +1 -14
- package/package.json +40 -107
- package/src/styles/datepicker.css +2 -9
- package/src/styles/globals.css +4 -4
- package/dist/charts.cjs.js +0 -1
- package/dist/charts.es.js +0 -16
- package/dist/cn-CAc3sAGM.js +0 -21
- package/dist/cn-zrNBeCrC.js +0 -1
- package/dist/components/DataTable/DataTableGroupRow.d.ts +0 -35
- package/dist/components/DataTable/DataTableRow.d.ts +0 -30
- package/dist/components/WakaKeycloakLogin/WakaKeycloakLogin.d.ts +0 -3
- package/dist/components/WakaKeycloakLogin/index.d.ts +0 -2
- package/dist/components/WakaKeycloakLogin/types.d.ts +0 -56
- package/dist/export.cjs.js +0 -1
- package/dist/export.es.js +0 -5
- package/dist/index-CENPre_9.js +0 -466
- package/dist/index-CHLjUBPo.js +0 -1
- package/dist/rich-text.cjs.js +0 -1
- package/dist/rich-text.es.js +0 -4
- package/dist/types-Bjy1Hy76.js +0 -1111
- package/dist/types-CHv7a1SP.js +0 -1
- package/dist/useDataTableImport-DqeEL4GC.js +0 -124
- package/dist/useDataTableImport-sQwBFAJ_.js +0 -775
- package/dist/utils/logger.d.ts +0 -60
package/dist/blocks/index.d.ts
CHANGED
|
@@ -1,44 +1,33 @@
|
|
|
1
1
|
export { Footer } from './footer';
|
|
2
|
-
export {
|
|
2
|
+
export type { FooterProps, FooterLink, FooterColumn, SocialLink } from './footer';
|
|
3
|
+
export { Headtab, Breadcrumb as HeadtabBreadcrumb } from './headtab';
|
|
4
|
+
export type { HeadtabProps, HeadtabItem, BreadcrumbItem as HeadtabBreadcrumbItem, BreadcrumbProps as HeadtabBreadcrumbProps } from './headtab';
|
|
3
5
|
export { LanguageSelector as BlockLanguageSelector } from './language-selector';
|
|
6
|
+
export type { LanguageSelectorProps as BlockLanguageSelectorProps } from './language-selector';
|
|
4
7
|
export { Layout } from './layout';
|
|
8
|
+
export type { LayoutProps } from './layout';
|
|
5
9
|
export { Login } from './login';
|
|
6
|
-
export type { LoginConfig, LoginColorConfig, LoginThemeConfig, LoginAssetsConfig, LoginSignupOptions
|
|
7
|
-
export { WakaSidebar,
|
|
8
|
-
export type { WakaSidebarProps,
|
|
10
|
+
export type { LoginProps, LoginConfig, LoginColorConfig, LoginThemeConfig, LoginAssetsConfig, LoginSignupOptions } from './login';
|
|
11
|
+
export { WakaSidebar, useSidebar, SidebarLayout } from './sidebar';
|
|
12
|
+
export type { WakaSidebarProps, SidebarMenuItem, SidebarUserConfig, SidebarLogoConfig, SidebarLayoutProps } from './sidebar';
|
|
9
13
|
export { WakaHeader } from './header';
|
|
10
|
-
export type { WakaHeaderProps, HeaderAction, HeaderFilter, HeaderNotification, HeaderUserMenu
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
23
|
-
export {
|
|
24
|
-
export type {
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export type { WakaFAQProps, FAQItem, FAQCategory, } from './faq';
|
|
31
|
-
export { WakaActivityTimeline, defaultActivityFilters, defaultActivities, } from './activity-timeline';
|
|
32
|
-
export type { WakaActivityTimelineProps, ActivityItem, ActivityUser, ActivityFilter, ActivityType, } from './activity-timeline';
|
|
33
|
-
export { WakaKanbanBoard, defaultKanbanColumns, defaultKanbanLabels, } from './kanban-board';
|
|
34
|
-
export type { WakaKanbanBoardProps, KanbanCard as KanbanBoardCard, KanbanColumn as KanbanBoardColumn, KanbanCardLabel, KanbanCardPriority, } from './kanban-board';
|
|
35
|
-
export { WakaChat, defaultChatUser, defaultChatConversations, defaultChatMessages, } from './chat';
|
|
36
|
-
export type { WakaChatProps, ChatUser, ChatMessage, ChatConversation, MessageStatus, } from './chat';
|
|
37
|
-
export { WakaCalendarView, defaultCalendarEvents, } from './calendar-view';
|
|
38
|
-
export type { WakaCalendarViewProps, CalendarEvent, CalendarViewMode, EventColor, } from './calendar-view';
|
|
39
|
-
export { WakaFileManager, defaultFiles, defaultBreadcrumbs, } from './file-manager';
|
|
40
|
-
export type { WakaFileManagerProps, FileItem, FileType, BreadcrumbItem as FileManagerBreadcrumb, } from './file-manager';
|
|
41
|
-
export { WakaThemeCreatorBlock, defaultThemes, } from './theme-creator-block';
|
|
42
|
-
export type { WakaThemeCreatorBlockProps, ThemeCreatorBlockTheme, ThemeBlockColors, ThemeBlockAssets, ThemeColorGroup, } from './theme-creator-block';
|
|
43
|
-
export { WakaI18nEditor } from './i18n-editor';
|
|
44
|
-
export type { I18nEditorProps, I18nEditorConfig, TranslationEntry, TranslationValue, LanguageConfig, } from './i18n-editor';
|
|
14
|
+
export type { WakaHeaderProps, HeaderAction, HeaderFilter, HeaderNotification, HeaderUserMenu } from './header';
|
|
15
|
+
export * from './dashboard';
|
|
16
|
+
export * from './settings';
|
|
17
|
+
export * from './profile';
|
|
18
|
+
export * from './user-management';
|
|
19
|
+
export * from './activity-timeline';
|
|
20
|
+
export * from './calendar-view';
|
|
21
|
+
export * from './chat';
|
|
22
|
+
export * from './empty-states';
|
|
23
|
+
export * from './error-pages';
|
|
24
|
+
export * from './faq';
|
|
25
|
+
export { WakaFileManager, defaultFiles, defaultBreadcrumbs as defaultFileManagerBreadcrumbs } from './file-manager';
|
|
26
|
+
export type { WakaFileManagerProps, FileItem, FileType, BreadcrumbItem as FileManagerBreadcrumbItem } from './file-manager';
|
|
27
|
+
export { WakaKanbanBoard, defaultKanbanColumns, defaultKanbanLabels } from './kanban-board';
|
|
28
|
+
export type { WakaKanbanBoardProps, KanbanCardPriority, KanbanCardLabel, KanbanCardAssignee, KanbanCard as KanbanBoardCard, KanbanColumn as KanbanBoardColumn } from './kanban-board';
|
|
29
|
+
export * from './landing';
|
|
30
|
+
export * from './pricing';
|
|
31
|
+
export * from './wizard';
|
|
32
|
+
export * from './theme-creator-block';
|
|
33
|
+
export * from './i18n-editor';
|
|
@@ -14,4 +14,4 @@ import { DataTableProps } from './types';
|
|
|
14
14
|
* />
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export declare function DataTable<TData
|
|
17
|
+
export declare function DataTable<TData>({ data, columns: initialColumns, layout: layoutProp, variant, density: densityProp, filters, filterPosition, toolbar, pagination: paginationConfig, selection, actions, i18nNamespace, loading, error, emptyState, headerSticky, columnVisibilityToggle, columnResize, enableExport, enableImport, enableReorder, enableContextMenu, onRowClick, onRowDoubleClick, onSortingChange, onFiltersChange, onSelectionChange, className, tableId, virtualization, edit, }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,4 +24,4 @@ import { DataTableProps } from './types';
|
|
|
24
24
|
* />
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
export declare function DataTableAdvanced<TData
|
|
27
|
+
export declare function DataTableAdvanced<TData>({ data, columns: initialColumns, layout: layoutProp, variant, density: densityProp, filters, filterPosition, toolbar, pagination: paginationConfig, selection, actions, i18nNamespace, loading, error, emptyState, headerSticky, columnVisibilityToggle, columnResize, columnOrder: columnOrderConfig, grouping, rowExpansion, virtualization, sortMode, enableExport, enableImport, enableReorder, enableContextMenu, onRowClick, onRowDoubleClick, onSortingChange, onFiltersChange, onSelectionChange, onColumnOrderChange, onExpandedChange, onGroupingChange, className, tableId, edit, theme, performance, }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Table
|
|
1
|
+
import { Table } from '@tanstack/react-table';
|
|
2
2
|
import { FilterConfig, FilterPosition } from './types';
|
|
3
3
|
interface DataTableFiltersProps<TData> {
|
|
4
4
|
table: Table<TData>;
|
|
5
|
-
filters?: FilterConfig
|
|
5
|
+
filters?: FilterConfig[];
|
|
6
6
|
position?: FilterPosition;
|
|
7
|
-
onFiltersChange?: (filters:
|
|
7
|
+
onFiltersChange?: (filters: any[]) => void;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Composant de filtrage avancé pour DataTable
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
import { Table } from '@tanstack/react-table';
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
/**
|
|
4
|
-
* Type pour une action de sélection
|
|
5
|
-
*/
|
|
6
|
-
export interface SelectionAction<TData> {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
onClick: (selectedRows: TData[]) => void;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
destructive?: boolean;
|
|
13
|
-
}
|
|
14
2
|
/**
|
|
15
3
|
* Props pour la sélection avancée du DataTable
|
|
16
4
|
*/
|
|
17
5
|
export interface DataTableSelectionProps<TData> {
|
|
18
6
|
/** Table instance */
|
|
19
|
-
table:
|
|
7
|
+
table: any;
|
|
20
8
|
/** Mode de sélection */
|
|
21
9
|
selectionMode?: "single" | "multiple" | "range";
|
|
22
10
|
/** Données sélectionnées */
|
|
@@ -24,7 +12,14 @@ export interface DataTableSelectionProps<TData> {
|
|
|
24
12
|
/** Callback de changement de sélection */
|
|
25
13
|
onSelectionChange?: (selectedRows: TData[]) => void;
|
|
26
14
|
/** Actions sur la sélection */
|
|
27
|
-
selectionActions?:
|
|
15
|
+
selectionActions?: Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
onClick: (selectedRows: TData[]) => void;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
destructive?: boolean;
|
|
22
|
+
}>;
|
|
28
23
|
/** Classe CSS personnalisée */
|
|
29
24
|
className?: string;
|
|
30
25
|
}
|
|
@@ -36,7 +31,7 @@ export declare function DataTableSelection<TData>({ table, selectionMode, select
|
|
|
36
31
|
* Hook pour la sélection avancée
|
|
37
32
|
*/
|
|
38
33
|
export declare function useDataTableSelection<TData>({ table, selectionMode, onSelectionChange, }: {
|
|
39
|
-
table:
|
|
34
|
+
table: any;
|
|
40
35
|
selectionMode?: "single" | "multiple" | "range";
|
|
41
36
|
onSelectionChange?: (selectedRows: TData[]) => void;
|
|
42
37
|
}): {
|
|
@@ -46,6 +41,6 @@ export declare function useDataTableSelection<TData>({ table, selectionMode, onS
|
|
|
46
41
|
selectRange: (start: number, end: number, selected?: boolean) => void;
|
|
47
42
|
selectByCriteria: (criteria: (row: TData) => boolean) => void;
|
|
48
43
|
clearSelection: () => void;
|
|
49
|
-
isAllSelected:
|
|
50
|
-
isSomeSelected:
|
|
44
|
+
isAllSelected: any;
|
|
45
|
+
isSomeSelected: any;
|
|
51
46
|
};
|
|
@@ -3,7 +3,7 @@ import { DataTableProps } from '../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Hook principal pour gérer l'état et la logique du DataTable
|
|
5
5
|
*/
|
|
6
|
-
export declare function useDataTable<TData
|
|
6
|
+
export declare function useDataTable<TData>({ data, columns, pagination: paginationConfig, tableId, onSortingChange, onFiltersChange, onSelectionChange, }: Pick<DataTableProps<TData>, "data" | "columns" | "pagination" | "tableId" | "onSortingChange" | "onFiltersChange" | "onSelectionChange">): {
|
|
7
7
|
table: import('@tanstack/react-table').Table<TData>;
|
|
8
8
|
sorting: SortingState;
|
|
9
9
|
setSorting: import('react').Dispatch<import('react').SetStateAction<SortingState>>;
|
|
@@ -3,8 +3,8 @@ import { DataTableProps } from '../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Hook avancé pour gérer toutes les fonctionnalités du DataTable
|
|
5
5
|
*/
|
|
6
|
-
export declare function useDataTableAdvanced<TData
|
|
7
|
-
table: import('@tanstack/react-table').Table<
|
|
6
|
+
export declare function useDataTableAdvanced<TData>({ data, columns, pagination: paginationConfig, tableId, onSortingChange, onFiltersChange, onSelectionChange, onColumnOrderChange, onExpandedChange, onGroupingChange, grouping, virtualization, sortMode, performance, }: Pick<DataTableProps<TData>, "data" | "columns" | "pagination" | "tableId" | "onSortingChange" | "onFiltersChange" | "onSelectionChange" | "onColumnOrderChange" | "onExpandedChange" | "onGroupingChange" | "grouping" | "virtualization" | "sortMode" | "performance">): {
|
|
7
|
+
table: import('@tanstack/react-table').Table<TData>;
|
|
8
8
|
sorting: SortingState;
|
|
9
9
|
setSorting: import('react').Dispatch<import('react').SetStateAction<SortingState>>;
|
|
10
10
|
columnFilters: ColumnFiltersState;
|
|
@@ -23,13 +23,13 @@ export declare function useDataTableAdvanced<TData extends Record<string, unknow
|
|
|
23
23
|
setGlobalFilter: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
24
24
|
pagination: PaginationState;
|
|
25
25
|
setPagination: import('react').Dispatch<import('react').SetStateAction<PaginationState>>;
|
|
26
|
-
selectedRows:
|
|
26
|
+
selectedRows: TData[];
|
|
27
27
|
resetFilters: () => void;
|
|
28
28
|
resetSelection: () => void;
|
|
29
29
|
resetAll: () => void;
|
|
30
|
-
exportData: () =>
|
|
31
|
-
getGroupedData: () =>
|
|
32
|
-
getExpandedData: () =>
|
|
30
|
+
exportData: () => TData[];
|
|
31
|
+
getGroupedData: () => TData[];
|
|
32
|
+
getExpandedData: () => TData[];
|
|
33
33
|
toggleGrouping: (columnId: string) => void;
|
|
34
34
|
clearGrouping: () => void;
|
|
35
35
|
toggleRowExpansion: (rowId: string) => void;
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
import { ColumnDef } from '@tanstack/react-table';
|
|
2
1
|
import { ExportConfig } from '../types';
|
|
3
|
-
import { WakaError } from '../../../utils/error-handling';
|
|
4
2
|
/**
|
|
5
3
|
* Hook pour gérer l'export des données du DataTable
|
|
6
|
-
*
|
|
7
|
-
* Optimisé avec Web Workers pour les grandes tables (>1000 lignes)
|
|
8
|
-
* pour éviter de bloquer l'interface utilisateur.
|
|
9
|
-
*
|
|
10
|
-
* @template TData - Type des données de la table
|
|
11
4
|
*/
|
|
12
|
-
export declare function useDataTableExport<TData
|
|
5
|
+
export declare function useDataTableExport<TData>({ data, columns, exportConfig, }: {
|
|
13
6
|
data: TData[];
|
|
14
|
-
columns:
|
|
15
|
-
exportConfig?: ExportConfig
|
|
16
|
-
onError?: (error: WakaError) => void;
|
|
7
|
+
columns: any[];
|
|
8
|
+
exportConfig?: ExportConfig;
|
|
17
9
|
}): {
|
|
18
10
|
exportData: (format: string, customData?: TData[], customFilename?: string) => Promise<void>;
|
|
19
11
|
exportAll: (format: string) => Promise<void>;
|
|
20
12
|
exportSelected: (format: string, selectedData: TData[]) => Promise<void>;
|
|
21
|
-
|
|
22
|
-
exportProgress: number;
|
|
23
|
-
isExporting: boolean;
|
|
24
|
-
supportedFormats: ("csv" | "xlsx" | "json" | "pdf" | "xml")[] | readonly ["csv", "xlsx", "json"];
|
|
13
|
+
supportedFormats: ("json" | "csv" | "xlsx" | "pdf" | "xml")[] | readonly ["csv", "xlsx", "json"];
|
|
25
14
|
isExportSupported: (format: string) => boolean;
|
|
26
15
|
};
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
import { ImportConfig } from '../types';
|
|
2
|
-
import { WakaError } from '../../../utils/error-handling';
|
|
3
2
|
/**
|
|
4
3
|
* Hook pour gérer l'import des données dans le DataTable
|
|
5
|
-
* Supporte le streaming pour les fichiers volumineux
|
|
6
4
|
*/
|
|
7
|
-
export declare function useDataTableImport<TData>({ importConfig,
|
|
8
|
-
importConfig?: ImportConfig
|
|
9
|
-
onError?: (error: WakaError) => void;
|
|
5
|
+
export declare function useDataTableImport<TData>({ importConfig, }: {
|
|
6
|
+
importConfig?: ImportConfig;
|
|
10
7
|
}): {
|
|
11
8
|
importData: (file: File) => Promise<TData[]>;
|
|
12
9
|
importWithUI: () => Promise<TData[]>;
|
|
13
|
-
importDataStreaming: (file: File, options?: {
|
|
14
|
-
onProgress?: (progress: number) => void;
|
|
15
|
-
onChunk?: (chunk: TData[], totalProcessed: number) => void;
|
|
16
|
-
}) => Promise<TData[]>;
|
|
17
|
-
importWithUIStreaming: (options?: {
|
|
18
|
-
onProgress?: (progress: number) => void;
|
|
19
|
-
onChunk?: (chunk: TData[], totalProcessed: number) => void;
|
|
20
|
-
}) => Promise<TData[]>;
|
|
21
|
-
cancelImport: () => void;
|
|
22
|
-
importProgress: number;
|
|
23
|
-
isImporting: boolean;
|
|
24
10
|
supportedFormats: string[];
|
|
25
11
|
isFormatSupported: (filename: string) => boolean;
|
|
26
12
|
};
|
|
@@ -2,7 +2,7 @@ import { VirtualizationConfig } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Hook pour gérer la virtualisation du DataTable
|
|
4
4
|
*/
|
|
5
|
-
export declare function useDataTableVirtualization<TData
|
|
5
|
+
export declare function useDataTableVirtualization<TData>({ data, virtualization, containerRef, }: {
|
|
6
6
|
data: TData[];
|
|
7
7
|
virtualization?: VirtualizationConfig;
|
|
8
8
|
containerRef: React.RefObject<HTMLElement>;
|
|
@@ -6,38 +6,13 @@
|
|
|
6
6
|
* Composant de table de données hautement configurable avec support de :
|
|
7
7
|
* - Tri, filtrage, pagination
|
|
8
8
|
* - Sélection multiple
|
|
9
|
-
* - Export/Import (CSV, JSON
|
|
9
|
+
* - Export/Import (CSV, JSON)
|
|
10
10
|
* - Layouts multiples (standard, card, compact, split, infinite)
|
|
11
11
|
* - Thème clair/sombre via TweakCN
|
|
12
12
|
* - i18n complet
|
|
13
13
|
* - Virtualisation pour grandes données
|
|
14
14
|
* - Toolbar customisable
|
|
15
15
|
* - Actions par ligne et groupées
|
|
16
|
-
* - Édition inline
|
|
17
|
-
* - Groupement avec agrégations
|
|
18
|
-
* - Redimensionnement des colonnes
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* import {
|
|
23
|
-
* DataTableAdvanced,
|
|
24
|
-
* useDataTableAdvanced,
|
|
25
|
-
* type DataTableProps,
|
|
26
|
-
* type ColumnDef
|
|
27
|
-
* } from '@wakastellar/ui'
|
|
28
|
-
*
|
|
29
|
-
* const columns: ColumnDef<User>[] = [
|
|
30
|
-
* { accessorKey: 'name', header: 'Name' },
|
|
31
|
-
* { accessorKey: 'email', header: 'Email' },
|
|
32
|
-
* ]
|
|
33
|
-
*
|
|
34
|
-
* <DataTableAdvanced
|
|
35
|
-
* data={users}
|
|
36
|
-
* columns={columns}
|
|
37
|
-
* selection="multiple"
|
|
38
|
-
* enableExport={{ formats: ['csv', 'xlsx'] }}
|
|
39
|
-
* />
|
|
40
|
-
* ```
|
|
41
16
|
*/
|
|
42
17
|
export { DataTable } from './DataTable';
|
|
43
18
|
export { DataTableAdvanced } from './DataTableAdvanced';
|
|
@@ -49,14 +24,6 @@ export { DataTableColumnResizer } from './DataTableColumnResizer';
|
|
|
49
24
|
export { DataTableGrouping, DataTableGroupTotals, DataTableGroupingControls } from './DataTableGrouping';
|
|
50
25
|
export { DataTableContextMenu } from './DataTableContextMenu';
|
|
51
26
|
export { DataTableSelection, useDataTableSelection } from './DataTableSelection';
|
|
52
|
-
export { DataTableCell } from './DataTableCell';
|
|
53
|
-
export type { DataTableCellProps } from './DataTableCell';
|
|
54
|
-
export { DataTableHeader, DataTableHeaderRow } from './DataTableHeader';
|
|
55
|
-
export type { DataTableHeaderProps } from './DataTableHeader';
|
|
56
|
-
export { DataTableBody, DataTableBodyRow } from './DataTableBody';
|
|
57
|
-
export type { DataTableBodyProps } from './DataTableBody';
|
|
58
|
-
export { DataTableRow } from './DataTableRow';
|
|
59
|
-
export { DataTableGroupRow } from './DataTableGroupRow';
|
|
60
27
|
export { useDataTable } from './hooks/useDataTable';
|
|
61
28
|
export { useDataTableAdvanced } from './hooks/useDataTableAdvanced';
|
|
62
29
|
export { useDataTableVirtualization } from './hooks/useDataTableVirtualization';
|
|
@@ -65,19 +32,6 @@ export { useDataTableImport } from './hooks/useDataTableImport';
|
|
|
65
32
|
export { useDataTableTheme } from './hooks/useDataTableTheme';
|
|
66
33
|
export { useTableLayout } from './hooks/useTableLayout';
|
|
67
34
|
export { useDataTableEdit } from './hooks/useDataTableEdit';
|
|
68
|
-
export {
|
|
69
|
-
export { useDataTableAdvancedFilters, OPERATORS_BY_TYPE, OPERATOR_LABELS } from './hooks/useDataTableAdvancedFilters';
|
|
70
|
-
export { useDataTableOffline } from './hooks/useDataTableOffline';
|
|
71
|
-
export type { OfflineConfig, OfflineState, OfflineActions, SyncResult, ConflictResolution, UseDataTableOfflineResult, } from './hooks/useDataTableOffline';
|
|
72
|
-
export { DataTableFilterBuilder } from './DataTableFilterBuilder';
|
|
73
|
-
export { DataTableSyncStatus } from './DataTableSyncStatus';
|
|
74
|
-
export type { DataTableSyncStatusProps } from './DataTableSyncStatus';
|
|
75
|
-
export { DataTableConflictResolver } from './DataTableConflictResolver';
|
|
76
|
-
export type { DataTableConflictResolverProps } from './DataTableConflictResolver';
|
|
77
|
-
export { IndexedDBService, getIndexedDBService } from './services/IndexedDBService';
|
|
78
|
-
export type { CacheEntry, SyncQueueItem, ConflictEntry, } from './services/IndexedDBService';
|
|
79
|
-
export { formatters } from './formatters';
|
|
80
|
-
export { templatesMap, getTemplate, availableTemplateNames, createActionsTemplate, dateTemplate, datetimeTemplate, timeTemplate, currencyTemplate, percentageTemplate, numberTemplate, statusTemplate, badgeTemplate, emailTemplate, phoneTemplate, urlTemplate, avatarTemplate, booleanTemplate, actionsTemplate, indexTemplate, idTemplate, ratingTemplate, progressTemplate, tagsTemplate, jsonTemplate, textTemplate, } from './templates';
|
|
81
|
-
export type { DataTableProps, DataTableLayout, DataTableVariant, DataTableDensity, DataTableState, FilterConfig, FilterPosition, FilterValue, PaginationConfig, ToolbarConfig, TableAction, ExportConfig, ImportConfig, SelectionState, EditConfig, ColumnEditConfig, EditableCellValue, SelectionMode, SortMode, VirtualizationType, GroupingConfig, VirtualizationConfig, ColumnResizeConfig, ColumnOrderConfig, RowExpansionConfig, DataTableTheme, RangeValue, DateRangeValue, AggregatedValue, ExportableCellValue, ImportedRowData, TypographyConfig, ColumnTemplateName, FormatterType, ColumnTemplateAction, ColumnTemplateOptions, ColumnTemplateDefinition, ColumnTemplate, ColumnTemplatesConfig, ColumnTemplatesResult, FilterOperator, FilterColumnType, FilterRule, FilterGroup, FilterPreset, FilterableColumn, AdvancedFiltersConfig, AdvancedFiltersState, AdvancedFiltersActions, AdvancedFiltersResult, } from './types';
|
|
35
|
+
export type { DataTableProps, DataTableLayout, DataTableVariant, DataTableDensity, DataTableState, FilterConfig, FilterPosition, PaginationConfig, ToolbarConfig, TableAction, ExportConfig, ImportConfig, SelectionState, EditConfig, ColumnEditConfig, SelectionMode, SortMode, VirtualizationType, GroupingConfig, VirtualizationConfig, ColumnResizeConfig, ColumnOrderConfig, RowExpansionConfig, DataTableTheme, } from './types';
|
|
82
36
|
export type { EditCellConfig } from './DataTableEditCell';
|
|
83
37
|
export { exportToCSV, exportToJSON, parseCSV, saveTableState, loadTableState, } from './utils';
|