@libxai/board 0.14.7 → 0.16.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/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +171 -2
- package/dist/index.d.ts +171 -2
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/styles.css +29 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1570,6 +1570,19 @@ interface GanttConfig {
|
|
|
1570
1570
|
initials: string;
|
|
1571
1571
|
color: string;
|
|
1572
1572
|
}>;
|
|
1573
|
+
/**
|
|
1574
|
+
* v0.15.0: Internationalization (i18n) support
|
|
1575
|
+
* Set the locale for all UI text in the Gantt chart
|
|
1576
|
+
* Built-in support for 'en' (English) and 'es' (Spanish)
|
|
1577
|
+
* @default 'en'
|
|
1578
|
+
*/
|
|
1579
|
+
locale?: 'en' | 'es' | string;
|
|
1580
|
+
/**
|
|
1581
|
+
* v0.15.0: Custom translations to override default locale strings
|
|
1582
|
+
* Allows partial overrides while keeping defaults for missing keys
|
|
1583
|
+
* @see GanttTranslations in i18n.ts
|
|
1584
|
+
*/
|
|
1585
|
+
customTranslations?: Record<string, any>;
|
|
1573
1586
|
aiAssistant?: GanttAIAssistantConfig$1;
|
|
1574
1587
|
showCreateTaskButton?: boolean;
|
|
1575
1588
|
createTaskLabel?: string;
|
|
@@ -1825,7 +1838,8 @@ interface GanttToolbarProps {
|
|
|
1825
1838
|
onExportJSON?: () => void;
|
|
1826
1839
|
onExportMSProject?: () => void;
|
|
1827
1840
|
}
|
|
1828
|
-
declare function GanttToolbar({ theme, timeScale, onTimeScaleChange, zoom, onZoomChange, currentTheme, onThemeChange, rowDensity, onRowDensityChange, showThemeSelector, showCreateTaskButton, createTaskLabel,
|
|
1841
|
+
declare function GanttToolbar({ theme, timeScale, onTimeScaleChange, zoom, onZoomChange, currentTheme, onThemeChange, rowDensity, onRowDensityChange, showThemeSelector, showCreateTaskButton, createTaskLabel, // v0.15.0: Will use translations if not provided
|
|
1842
|
+
onCreateTask, onExportPNG, onExportPDF, onExportExcel, onExportCSV, onExportJSON, onExportMSProject, }: GanttToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1829
1843
|
|
|
1830
1844
|
interface TaskGridProps {
|
|
1831
1845
|
tasks: Task[];
|
|
@@ -2445,6 +2459,161 @@ declare function cardsToGanttTasks(cards: Card$1[], users?: Array<{
|
|
|
2445
2459
|
color: string;
|
|
2446
2460
|
}>): Task[];
|
|
2447
2461
|
|
|
2462
|
+
/**
|
|
2463
|
+
* Internationalization (i18n) system for GanttBoard
|
|
2464
|
+
* @version 0.15.0
|
|
2465
|
+
*
|
|
2466
|
+
* Supports English (en) and Spanish (es) out of the box.
|
|
2467
|
+
* Users can provide custom translations via the `locale` config prop.
|
|
2468
|
+
*/
|
|
2469
|
+
type SupportedLocale = 'en' | 'es';
|
|
2470
|
+
interface GanttTranslations {
|
|
2471
|
+
columns: {
|
|
2472
|
+
taskName: string;
|
|
2473
|
+
startDate: string;
|
|
2474
|
+
endDate: string;
|
|
2475
|
+
duration: string;
|
|
2476
|
+
assignees: string;
|
|
2477
|
+
status: string;
|
|
2478
|
+
progress: string;
|
|
2479
|
+
};
|
|
2480
|
+
toolbar: {
|
|
2481
|
+
today: string;
|
|
2482
|
+
day: string;
|
|
2483
|
+
week: string;
|
|
2484
|
+
month: string;
|
|
2485
|
+
export: string;
|
|
2486
|
+
exportPdf: string;
|
|
2487
|
+
exportPng: string;
|
|
2488
|
+
exportCsv: string;
|
|
2489
|
+
exportExcel: string;
|
|
2490
|
+
exportMsProject: string;
|
|
2491
|
+
undo: string;
|
|
2492
|
+
redo: string;
|
|
2493
|
+
createTask: string;
|
|
2494
|
+
density: string;
|
|
2495
|
+
compact: string;
|
|
2496
|
+
normal: string;
|
|
2497
|
+
spacious: string;
|
|
2498
|
+
};
|
|
2499
|
+
actions: {
|
|
2500
|
+
edit: string;
|
|
2501
|
+
delete: string;
|
|
2502
|
+
duplicate: string;
|
|
2503
|
+
addSubtask: string;
|
|
2504
|
+
indent: string;
|
|
2505
|
+
outdent: string;
|
|
2506
|
+
moveUp: string;
|
|
2507
|
+
moveDown: string;
|
|
2508
|
+
splitTask: string;
|
|
2509
|
+
linkTasks: string;
|
|
2510
|
+
unlinkTasks: string;
|
|
2511
|
+
};
|
|
2512
|
+
status: {
|
|
2513
|
+
todo: string;
|
|
2514
|
+
inProgress: string;
|
|
2515
|
+
completed: string;
|
|
2516
|
+
};
|
|
2517
|
+
labels: {
|
|
2518
|
+
progress: string;
|
|
2519
|
+
duration: string;
|
|
2520
|
+
days: string;
|
|
2521
|
+
day: string;
|
|
2522
|
+
assigned: string;
|
|
2523
|
+
milestone: string;
|
|
2524
|
+
criticalPath: string;
|
|
2525
|
+
subtask: string;
|
|
2526
|
+
task: string;
|
|
2527
|
+
noTasks: string;
|
|
2528
|
+
addTask: string;
|
|
2529
|
+
newTask: string;
|
|
2530
|
+
loading: string;
|
|
2531
|
+
error: string;
|
|
2532
|
+
today: string;
|
|
2533
|
+
};
|
|
2534
|
+
ai: {
|
|
2535
|
+
placeholder: string;
|
|
2536
|
+
thinking: string;
|
|
2537
|
+
suggestions: {
|
|
2538
|
+
moveTask: string;
|
|
2539
|
+
extendTask: string;
|
|
2540
|
+
renameTask: string;
|
|
2541
|
+
setProgress: string;
|
|
2542
|
+
linkTasks: string;
|
|
2543
|
+
createTask: string;
|
|
2544
|
+
deleteTask: string;
|
|
2545
|
+
assignTask: string;
|
|
2546
|
+
};
|
|
2547
|
+
errors: {
|
|
2548
|
+
taskNotFound: string;
|
|
2549
|
+
invalidDate: string;
|
|
2550
|
+
invalidDuration: string;
|
|
2551
|
+
invalidProgress: string;
|
|
2552
|
+
unknownCommand: string;
|
|
2553
|
+
processingError: string;
|
|
2554
|
+
};
|
|
2555
|
+
};
|
|
2556
|
+
export: {
|
|
2557
|
+
projectName: string;
|
|
2558
|
+
ganttTasks: string;
|
|
2559
|
+
taskId: string;
|
|
2560
|
+
taskName: string;
|
|
2561
|
+
startDate: string;
|
|
2562
|
+
endDate: string;
|
|
2563
|
+
isMilestone: string;
|
|
2564
|
+
parentId: string;
|
|
2565
|
+
yes: string;
|
|
2566
|
+
no: string;
|
|
2567
|
+
noTasksToExport: string;
|
|
2568
|
+
};
|
|
2569
|
+
dateFormat: {
|
|
2570
|
+
short: string;
|
|
2571
|
+
medium: string;
|
|
2572
|
+
long: string;
|
|
2573
|
+
};
|
|
2574
|
+
}
|
|
2575
|
+
/**
|
|
2576
|
+
* English translations (default)
|
|
2577
|
+
*/
|
|
2578
|
+
declare const en: GanttTranslations;
|
|
2579
|
+
/**
|
|
2580
|
+
* Spanish translations
|
|
2581
|
+
*/
|
|
2582
|
+
declare const es: GanttTranslations;
|
|
2583
|
+
/**
|
|
2584
|
+
* All available translations
|
|
2585
|
+
*/
|
|
2586
|
+
declare const translations: Record<SupportedLocale, GanttTranslations>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Get translations for a specific locale
|
|
2589
|
+
* Falls back to English if locale is not found
|
|
2590
|
+
*/
|
|
2591
|
+
declare function getTranslations(locale: SupportedLocale | string): GanttTranslations;
|
|
2592
|
+
/**
|
|
2593
|
+
* Merge custom translations with default translations
|
|
2594
|
+
* Allows partial overrides while keeping defaults for missing keys
|
|
2595
|
+
*/
|
|
2596
|
+
declare function mergeTranslations(locale: SupportedLocale | string, customTranslations?: Partial<GanttTranslations>): GanttTranslations;
|
|
2597
|
+
|
|
2598
|
+
/**
|
|
2599
|
+
* Context for Gantt internationalization
|
|
2600
|
+
* Default value is English translations
|
|
2601
|
+
*/
|
|
2602
|
+
declare const GanttI18nContext: React$1.Context<GanttTranslations>;
|
|
2603
|
+
/**
|
|
2604
|
+
* Hook to access translations in Gantt components
|
|
2605
|
+
* @returns The current translations object
|
|
2606
|
+
*
|
|
2607
|
+
* @example
|
|
2608
|
+
* ```tsx
|
|
2609
|
+
* function MyGanttComponent() {
|
|
2610
|
+
* const t = useGanttI18n();
|
|
2611
|
+
* return <button>{t.toolbar.createTask}</button>;
|
|
2612
|
+
* }
|
|
2613
|
+
* ```
|
|
2614
|
+
*/
|
|
2615
|
+
declare function useGanttI18n(): GanttTranslations;
|
|
2616
|
+
|
|
2448
2617
|
interface CardStackProps {
|
|
2449
2618
|
/** Stack configuration */
|
|
2450
2619
|
stack: CardStack$1;
|
|
@@ -4559,4 +4728,4 @@ declare const themes: Record<ThemeName, Theme>;
|
|
|
4559
4728
|
*/
|
|
4560
4729
|
declare const defaultTheme: ThemeName;
|
|
4561
4730
|
|
|
4562
|
-
export { type AICallbacks, type AICommandResult$1 as AICommandResult, type GanttTask as AIGanttTask, type AIModelKey, type AIOperation, AIUsageDashboard, type AIUsageDashboardProps, AI_FEATURES, AI_MODELS, type Activity, type ActivityType, type AssigneeSuggestion, type Attachment, AttachmentUploader, type AttachmentUploaderProps, type Board, type BoardCallbacks, type BoardConfig, BoardProvider, type BoardProviderProps, type BorderRadiusToken, BulkOperationsToolbar, type BulkOperationsToolbarProps, BurnDownChart, type BurnDownChartProps, type BurnDownDataPoint, Card, CardDetailModal, type CardDetailModalProps, CardDetailModalV2, type CardDetailModalV2Props, type CardFilter, type CardFilters, CardHistoryReplay, type CardHistoryReplayProps, CardHistoryTimeline, type CardHistoryTimelineProps, type CardProps, CardRelationshipsGraph, type CardRelationshipsGraphProps, type CardSort, type CardSortKey, CardStack, type CardStackProps, type CardStack$1 as CardStackType, type CardStatus, type CardTemplate, CardTemplateSelector, type CardTemplateSelectorProps, type Card$1 as CardType, CircuitBreaker, Column, ColumnManager, type ColumnProps, type Column$1 as ColumnType, CommandPalette, type CommandPaletteProps, type Comment, ConfigMenu, type ConfigMenuProps, ContextMenu, DEFAULT_SHORTCUTS, DEFAULT_TEMPLATES, type DateFilter, DateRangePicker, type DateRangePickerProps, DependenciesSelector, type DependenciesSelectorProps, DependencyLine, type DesignTokens, DistributionCharts, type DistributionChartsProps, type DistributionDataPoint, type DragData, type DropData, type DurationToken, type EasingToken, EditableColumnTitle, type EditableColumnTitleProps, ErrorBoundary, type ErrorBoundaryProps, type ExportFormat, ExportImportModal, type ExportImportModalProps, type ExportOptions, FilterBar, type FilterBarProps, type FilterState, type FontSizeToken, type FontWeightToken, GANTT_AI_SYSTEM_PROMPT, GanttAIAssistant, type GanttAIAssistantConfig$1 as GanttAIAssistantConfig, type Assignee as GanttAssignee, GanttBoard, type GanttConfig as GanttBoardConfig, type GanttBoardRef, type GanttColumn, type ColumnType as GanttColumnType, Milestone as GanttMilestone, type GanttPermissions, type Task as GanttTask, type GanttTemplates, type Theme$1 as GanttTheme, type GanttTheme as GanttThemeConfig, GanttToolbar, GenerateGanttTasksDialog, type GenerateGanttTasksDialogProps, GeneratePlanModal, type GeneratePlanModalProps, type GeneratedPlan, type GeneratedTasksResponse, type GroupByOption, GroupBySelector, type GroupBySelectorProps, type IPluginManager, type ImportResult, type Insight, type InsightSeverity, type InsightType, KanbanBoard, type KanbanBoardProps, KanbanViewAdapter, type KanbanViewConfig, type KeyboardAction, type KeyboardShortcut, KeyboardShortcutsHelp, type KeyboardShortcutsHelpProps, type LineHeightToken, MenuIcons, type OpacityToken, type Plugin, type PluginContext, type PluginHooks, PluginManager, type Priority, PrioritySelector, type PrioritySelectorProps, RATE_LIMITS, type RenderProps, type RetryOptions, type RetryResult, type ShadowToken, type SortBy, type SortOrder, type SortState, type SpacingToken, type StackSuggestion, type StackingConfig, type StackingStrategy, type Swimlane, SwimlaneBoardView, type SwimlaneBoardViewProps, type SwimlaneConfig, TaskBar, type TaskFormData, TaskFormModal, type TaskFormModalProps, TaskGrid, type Theme, type ThemeColors, type ThemeContextValue, ThemeModal, type ThemeModalProps, type ThemeName, ThemeProvider, ThemeSwitcher, type TimeScale, Timeline, type ThemeColors$1 as TokenThemeColors, type TokenValue, type UsageStats, type UseAIOptions, type UseAIReturn, type UseBoardReturn as UseBoardCoreReturn, type UseBoardOptions, type UseBoardReturn$1 as UseBoardReturn, type UseCardStackingOptions, type UseCardStackingResult, type UseDragStateReturn, type UseFiltersOptions, type UseFiltersReturn, type UseKanbanStateOptions, type UseKanbanStateReturn, type UseKeyboardShortcutsOptions, type UseKeyboardShortcutsReturn, type UseMultiSelectReturn, type UseSelectionStateReturn, type User$1 as User, UserAssignmentSelector, type UserAssignmentSelectorProps, VelocityChart, type VelocityChartProps, type VelocityDataPoint, VirtualGrid, type VirtualGridProps, VirtualList, type VirtualListProps, type ZIndexToken, aiUsageTracker, borderRadius, calculatePosition, cardToGanttTask, cardsToGanttTasks, cn, createKanbanView, createRetryWrapper, darkTheme, darkTheme$1 as darkTokenTheme, defaultTheme, designTokens, duration, easing, exportTokensToCSS, findTaskByName, fontSize, fontWeight, formatCost, ganttTaskToCardUpdate, themes$1 as ganttThemes, gantt as ganttTokens, ganttUtils, generateCSSVariables, generateCompleteCSS, generateInitialPositions, generateTasksContext, generateThemeVariables, getToken, kanban as kanbanTokens, lightTheme, lightTheme$1 as lightTokenTheme, lineHeight, neutralTheme, neutralTheme$1 as neutralTokenTheme, opacity, parseLocalCommand, parseNaturalDate, parseNaturalDuration, parseProgress, parseStatus, pluginManager, retrySyncOperation, retryWithBackoff, shadows, shouldVirtualizeGrid, spacing, themes, useAI, useBoard$1 as useBoard, useBoard as useBoardCore, useBoardStore, useCardStacking, useDragState, useFilteredCards, useFilters, useKanbanState, useKeyboardShortcuts, useMultiSelect, useSelectionState, useSortedCards, useTheme, useVirtualGrid, useVirtualList, validateAIResponse, withErrorBoundary, zIndex };
|
|
4731
|
+
export { type AICallbacks, type AICommandResult$1 as AICommandResult, type GanttTask as AIGanttTask, type AIModelKey, type AIOperation, AIUsageDashboard, type AIUsageDashboardProps, AI_FEATURES, AI_MODELS, type Activity, type ActivityType, type AssigneeSuggestion, type Attachment, AttachmentUploader, type AttachmentUploaderProps, type Board, type BoardCallbacks, type BoardConfig, BoardProvider, type BoardProviderProps, type BorderRadiusToken, BulkOperationsToolbar, type BulkOperationsToolbarProps, BurnDownChart, type BurnDownChartProps, type BurnDownDataPoint, Card, CardDetailModal, type CardDetailModalProps, CardDetailModalV2, type CardDetailModalV2Props, type CardFilter, type CardFilters, CardHistoryReplay, type CardHistoryReplayProps, CardHistoryTimeline, type CardHistoryTimelineProps, type CardProps, CardRelationshipsGraph, type CardRelationshipsGraphProps, type CardSort, type CardSortKey, CardStack, type CardStackProps, type CardStack$1 as CardStackType, type CardStatus, type CardTemplate, CardTemplateSelector, type CardTemplateSelectorProps, type Card$1 as CardType, CircuitBreaker, Column, ColumnManager, type ColumnProps, type Column$1 as ColumnType, CommandPalette, type CommandPaletteProps, type Comment, ConfigMenu, type ConfigMenuProps, ContextMenu, DEFAULT_SHORTCUTS, DEFAULT_TEMPLATES, type DateFilter, DateRangePicker, type DateRangePickerProps, DependenciesSelector, type DependenciesSelectorProps, DependencyLine, type DesignTokens, DistributionCharts, type DistributionChartsProps, type DistributionDataPoint, type DragData, type DropData, type DurationToken, type EasingToken, EditableColumnTitle, type EditableColumnTitleProps, ErrorBoundary, type ErrorBoundaryProps, type ExportFormat, ExportImportModal, type ExportImportModalProps, type ExportOptions, FilterBar, type FilterBarProps, type FilterState, type FontSizeToken, type FontWeightToken, GANTT_AI_SYSTEM_PROMPT, GanttAIAssistant, type GanttAIAssistantConfig$1 as GanttAIAssistantConfig, type Assignee as GanttAssignee, GanttBoard, type GanttConfig as GanttBoardConfig, type GanttBoardRef, type GanttColumn, type ColumnType as GanttColumnType, GanttI18nContext, Milestone as GanttMilestone, type GanttPermissions, type Task as GanttTask, type GanttTemplates, type Theme$1 as GanttTheme, type GanttTheme as GanttThemeConfig, GanttToolbar, type GanttTranslations, GenerateGanttTasksDialog, type GenerateGanttTasksDialogProps, GeneratePlanModal, type GeneratePlanModalProps, type GeneratedPlan, type GeneratedTasksResponse, type GroupByOption, GroupBySelector, type GroupBySelectorProps, type IPluginManager, type ImportResult, type Insight, type InsightSeverity, type InsightType, KanbanBoard, type KanbanBoardProps, KanbanViewAdapter, type KanbanViewConfig, type KeyboardAction, type KeyboardShortcut, KeyboardShortcutsHelp, type KeyboardShortcutsHelpProps, type LineHeightToken, MenuIcons, type OpacityToken, type Plugin, type PluginContext, type PluginHooks, PluginManager, type Priority, PrioritySelector, type PrioritySelectorProps, RATE_LIMITS, type RenderProps, type RetryOptions, type RetryResult, type ShadowToken, type SortBy, type SortOrder, type SortState, type SpacingToken, type StackSuggestion, type StackingConfig, type StackingStrategy, type SupportedLocale, type Swimlane, SwimlaneBoardView, type SwimlaneBoardViewProps, type SwimlaneConfig, TaskBar, type TaskFormData, TaskFormModal, type TaskFormModalProps, TaskGrid, type Theme, type ThemeColors, type ThemeContextValue, ThemeModal, type ThemeModalProps, type ThemeName, ThemeProvider, ThemeSwitcher, type TimeScale, Timeline, type ThemeColors$1 as TokenThemeColors, type TokenValue, type UsageStats, type UseAIOptions, type UseAIReturn, type UseBoardReturn as UseBoardCoreReturn, type UseBoardOptions, type UseBoardReturn$1 as UseBoardReturn, type UseCardStackingOptions, type UseCardStackingResult, type UseDragStateReturn, type UseFiltersOptions, type UseFiltersReturn, type UseKanbanStateOptions, type UseKanbanStateReturn, type UseKeyboardShortcutsOptions, type UseKeyboardShortcutsReturn, type UseMultiSelectReturn, type UseSelectionStateReturn, type User$1 as User, UserAssignmentSelector, type UserAssignmentSelectorProps, VelocityChart, type VelocityChartProps, type VelocityDataPoint, VirtualGrid, type VirtualGridProps, VirtualList, type VirtualListProps, type ZIndexToken, aiUsageTracker, borderRadius, calculatePosition, cardToGanttTask, cardsToGanttTasks, cn, createKanbanView, createRetryWrapper, darkTheme, darkTheme$1 as darkTokenTheme, defaultTheme, designTokens, duration, easing, exportTokensToCSS, findTaskByName, fontSize, fontWeight, formatCost, en as ganttEnTranslations, es as ganttEsTranslations, ganttTaskToCardUpdate, themes$1 as ganttThemes, gantt as ganttTokens, translations as ganttTranslations, ganttUtils, generateCSSVariables, generateCompleteCSS, generateInitialPositions, generateTasksContext, generateThemeVariables, getToken, getTranslations, kanban as kanbanTokens, lightTheme, lightTheme$1 as lightTokenTheme, lineHeight, mergeTranslations, neutralTheme, neutralTheme$1 as neutralTokenTheme, opacity, parseLocalCommand, parseNaturalDate, parseNaturalDuration, parseProgress, parseStatus, pluginManager, retrySyncOperation, retryWithBackoff, shadows, shouldVirtualizeGrid, spacing, themes, useAI, useBoard$1 as useBoard, useBoard as useBoardCore, useBoardStore, useCardStacking, useDragState, useFilteredCards, useFilters, useGanttI18n, useKanbanState, useKeyboardShortcuts, useMultiSelect, useSelectionState, useSortedCards, useTheme, useVirtualGrid, useVirtualList, validateAIResponse, withErrorBoundary, zIndex };
|
package/dist/index.d.ts
CHANGED
|
@@ -1570,6 +1570,19 @@ interface GanttConfig {
|
|
|
1570
1570
|
initials: string;
|
|
1571
1571
|
color: string;
|
|
1572
1572
|
}>;
|
|
1573
|
+
/**
|
|
1574
|
+
* v0.15.0: Internationalization (i18n) support
|
|
1575
|
+
* Set the locale for all UI text in the Gantt chart
|
|
1576
|
+
* Built-in support for 'en' (English) and 'es' (Spanish)
|
|
1577
|
+
* @default 'en'
|
|
1578
|
+
*/
|
|
1579
|
+
locale?: 'en' | 'es' | string;
|
|
1580
|
+
/**
|
|
1581
|
+
* v0.15.0: Custom translations to override default locale strings
|
|
1582
|
+
* Allows partial overrides while keeping defaults for missing keys
|
|
1583
|
+
* @see GanttTranslations in i18n.ts
|
|
1584
|
+
*/
|
|
1585
|
+
customTranslations?: Record<string, any>;
|
|
1573
1586
|
aiAssistant?: GanttAIAssistantConfig$1;
|
|
1574
1587
|
showCreateTaskButton?: boolean;
|
|
1575
1588
|
createTaskLabel?: string;
|
|
@@ -1825,7 +1838,8 @@ interface GanttToolbarProps {
|
|
|
1825
1838
|
onExportJSON?: () => void;
|
|
1826
1839
|
onExportMSProject?: () => void;
|
|
1827
1840
|
}
|
|
1828
|
-
declare function GanttToolbar({ theme, timeScale, onTimeScaleChange, zoom, onZoomChange, currentTheme, onThemeChange, rowDensity, onRowDensityChange, showThemeSelector, showCreateTaskButton, createTaskLabel,
|
|
1841
|
+
declare function GanttToolbar({ theme, timeScale, onTimeScaleChange, zoom, onZoomChange, currentTheme, onThemeChange, rowDensity, onRowDensityChange, showThemeSelector, showCreateTaskButton, createTaskLabel, // v0.15.0: Will use translations if not provided
|
|
1842
|
+
onCreateTask, onExportPNG, onExportPDF, onExportExcel, onExportCSV, onExportJSON, onExportMSProject, }: GanttToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1829
1843
|
|
|
1830
1844
|
interface TaskGridProps {
|
|
1831
1845
|
tasks: Task[];
|
|
@@ -2445,6 +2459,161 @@ declare function cardsToGanttTasks(cards: Card$1[], users?: Array<{
|
|
|
2445
2459
|
color: string;
|
|
2446
2460
|
}>): Task[];
|
|
2447
2461
|
|
|
2462
|
+
/**
|
|
2463
|
+
* Internationalization (i18n) system for GanttBoard
|
|
2464
|
+
* @version 0.15.0
|
|
2465
|
+
*
|
|
2466
|
+
* Supports English (en) and Spanish (es) out of the box.
|
|
2467
|
+
* Users can provide custom translations via the `locale` config prop.
|
|
2468
|
+
*/
|
|
2469
|
+
type SupportedLocale = 'en' | 'es';
|
|
2470
|
+
interface GanttTranslations {
|
|
2471
|
+
columns: {
|
|
2472
|
+
taskName: string;
|
|
2473
|
+
startDate: string;
|
|
2474
|
+
endDate: string;
|
|
2475
|
+
duration: string;
|
|
2476
|
+
assignees: string;
|
|
2477
|
+
status: string;
|
|
2478
|
+
progress: string;
|
|
2479
|
+
};
|
|
2480
|
+
toolbar: {
|
|
2481
|
+
today: string;
|
|
2482
|
+
day: string;
|
|
2483
|
+
week: string;
|
|
2484
|
+
month: string;
|
|
2485
|
+
export: string;
|
|
2486
|
+
exportPdf: string;
|
|
2487
|
+
exportPng: string;
|
|
2488
|
+
exportCsv: string;
|
|
2489
|
+
exportExcel: string;
|
|
2490
|
+
exportMsProject: string;
|
|
2491
|
+
undo: string;
|
|
2492
|
+
redo: string;
|
|
2493
|
+
createTask: string;
|
|
2494
|
+
density: string;
|
|
2495
|
+
compact: string;
|
|
2496
|
+
normal: string;
|
|
2497
|
+
spacious: string;
|
|
2498
|
+
};
|
|
2499
|
+
actions: {
|
|
2500
|
+
edit: string;
|
|
2501
|
+
delete: string;
|
|
2502
|
+
duplicate: string;
|
|
2503
|
+
addSubtask: string;
|
|
2504
|
+
indent: string;
|
|
2505
|
+
outdent: string;
|
|
2506
|
+
moveUp: string;
|
|
2507
|
+
moveDown: string;
|
|
2508
|
+
splitTask: string;
|
|
2509
|
+
linkTasks: string;
|
|
2510
|
+
unlinkTasks: string;
|
|
2511
|
+
};
|
|
2512
|
+
status: {
|
|
2513
|
+
todo: string;
|
|
2514
|
+
inProgress: string;
|
|
2515
|
+
completed: string;
|
|
2516
|
+
};
|
|
2517
|
+
labels: {
|
|
2518
|
+
progress: string;
|
|
2519
|
+
duration: string;
|
|
2520
|
+
days: string;
|
|
2521
|
+
day: string;
|
|
2522
|
+
assigned: string;
|
|
2523
|
+
milestone: string;
|
|
2524
|
+
criticalPath: string;
|
|
2525
|
+
subtask: string;
|
|
2526
|
+
task: string;
|
|
2527
|
+
noTasks: string;
|
|
2528
|
+
addTask: string;
|
|
2529
|
+
newTask: string;
|
|
2530
|
+
loading: string;
|
|
2531
|
+
error: string;
|
|
2532
|
+
today: string;
|
|
2533
|
+
};
|
|
2534
|
+
ai: {
|
|
2535
|
+
placeholder: string;
|
|
2536
|
+
thinking: string;
|
|
2537
|
+
suggestions: {
|
|
2538
|
+
moveTask: string;
|
|
2539
|
+
extendTask: string;
|
|
2540
|
+
renameTask: string;
|
|
2541
|
+
setProgress: string;
|
|
2542
|
+
linkTasks: string;
|
|
2543
|
+
createTask: string;
|
|
2544
|
+
deleteTask: string;
|
|
2545
|
+
assignTask: string;
|
|
2546
|
+
};
|
|
2547
|
+
errors: {
|
|
2548
|
+
taskNotFound: string;
|
|
2549
|
+
invalidDate: string;
|
|
2550
|
+
invalidDuration: string;
|
|
2551
|
+
invalidProgress: string;
|
|
2552
|
+
unknownCommand: string;
|
|
2553
|
+
processingError: string;
|
|
2554
|
+
};
|
|
2555
|
+
};
|
|
2556
|
+
export: {
|
|
2557
|
+
projectName: string;
|
|
2558
|
+
ganttTasks: string;
|
|
2559
|
+
taskId: string;
|
|
2560
|
+
taskName: string;
|
|
2561
|
+
startDate: string;
|
|
2562
|
+
endDate: string;
|
|
2563
|
+
isMilestone: string;
|
|
2564
|
+
parentId: string;
|
|
2565
|
+
yes: string;
|
|
2566
|
+
no: string;
|
|
2567
|
+
noTasksToExport: string;
|
|
2568
|
+
};
|
|
2569
|
+
dateFormat: {
|
|
2570
|
+
short: string;
|
|
2571
|
+
medium: string;
|
|
2572
|
+
long: string;
|
|
2573
|
+
};
|
|
2574
|
+
}
|
|
2575
|
+
/**
|
|
2576
|
+
* English translations (default)
|
|
2577
|
+
*/
|
|
2578
|
+
declare const en: GanttTranslations;
|
|
2579
|
+
/**
|
|
2580
|
+
* Spanish translations
|
|
2581
|
+
*/
|
|
2582
|
+
declare const es: GanttTranslations;
|
|
2583
|
+
/**
|
|
2584
|
+
* All available translations
|
|
2585
|
+
*/
|
|
2586
|
+
declare const translations: Record<SupportedLocale, GanttTranslations>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Get translations for a specific locale
|
|
2589
|
+
* Falls back to English if locale is not found
|
|
2590
|
+
*/
|
|
2591
|
+
declare function getTranslations(locale: SupportedLocale | string): GanttTranslations;
|
|
2592
|
+
/**
|
|
2593
|
+
* Merge custom translations with default translations
|
|
2594
|
+
* Allows partial overrides while keeping defaults for missing keys
|
|
2595
|
+
*/
|
|
2596
|
+
declare function mergeTranslations(locale: SupportedLocale | string, customTranslations?: Partial<GanttTranslations>): GanttTranslations;
|
|
2597
|
+
|
|
2598
|
+
/**
|
|
2599
|
+
* Context for Gantt internationalization
|
|
2600
|
+
* Default value is English translations
|
|
2601
|
+
*/
|
|
2602
|
+
declare const GanttI18nContext: React$1.Context<GanttTranslations>;
|
|
2603
|
+
/**
|
|
2604
|
+
* Hook to access translations in Gantt components
|
|
2605
|
+
* @returns The current translations object
|
|
2606
|
+
*
|
|
2607
|
+
* @example
|
|
2608
|
+
* ```tsx
|
|
2609
|
+
* function MyGanttComponent() {
|
|
2610
|
+
* const t = useGanttI18n();
|
|
2611
|
+
* return <button>{t.toolbar.createTask}</button>;
|
|
2612
|
+
* }
|
|
2613
|
+
* ```
|
|
2614
|
+
*/
|
|
2615
|
+
declare function useGanttI18n(): GanttTranslations;
|
|
2616
|
+
|
|
2448
2617
|
interface CardStackProps {
|
|
2449
2618
|
/** Stack configuration */
|
|
2450
2619
|
stack: CardStack$1;
|
|
@@ -4559,4 +4728,4 @@ declare const themes: Record<ThemeName, Theme>;
|
|
|
4559
4728
|
*/
|
|
4560
4729
|
declare const defaultTheme: ThemeName;
|
|
4561
4730
|
|
|
4562
|
-
export { type AICallbacks, type AICommandResult$1 as AICommandResult, type GanttTask as AIGanttTask, type AIModelKey, type AIOperation, AIUsageDashboard, type AIUsageDashboardProps, AI_FEATURES, AI_MODELS, type Activity, type ActivityType, type AssigneeSuggestion, type Attachment, AttachmentUploader, type AttachmentUploaderProps, type Board, type BoardCallbacks, type BoardConfig, BoardProvider, type BoardProviderProps, type BorderRadiusToken, BulkOperationsToolbar, type BulkOperationsToolbarProps, BurnDownChart, type BurnDownChartProps, type BurnDownDataPoint, Card, CardDetailModal, type CardDetailModalProps, CardDetailModalV2, type CardDetailModalV2Props, type CardFilter, type CardFilters, CardHistoryReplay, type CardHistoryReplayProps, CardHistoryTimeline, type CardHistoryTimelineProps, type CardProps, CardRelationshipsGraph, type CardRelationshipsGraphProps, type CardSort, type CardSortKey, CardStack, type CardStackProps, type CardStack$1 as CardStackType, type CardStatus, type CardTemplate, CardTemplateSelector, type CardTemplateSelectorProps, type Card$1 as CardType, CircuitBreaker, Column, ColumnManager, type ColumnProps, type Column$1 as ColumnType, CommandPalette, type CommandPaletteProps, type Comment, ConfigMenu, type ConfigMenuProps, ContextMenu, DEFAULT_SHORTCUTS, DEFAULT_TEMPLATES, type DateFilter, DateRangePicker, type DateRangePickerProps, DependenciesSelector, type DependenciesSelectorProps, DependencyLine, type DesignTokens, DistributionCharts, type DistributionChartsProps, type DistributionDataPoint, type DragData, type DropData, type DurationToken, type EasingToken, EditableColumnTitle, type EditableColumnTitleProps, ErrorBoundary, type ErrorBoundaryProps, type ExportFormat, ExportImportModal, type ExportImportModalProps, type ExportOptions, FilterBar, type FilterBarProps, type FilterState, type FontSizeToken, type FontWeightToken, GANTT_AI_SYSTEM_PROMPT, GanttAIAssistant, type GanttAIAssistantConfig$1 as GanttAIAssistantConfig, type Assignee as GanttAssignee, GanttBoard, type GanttConfig as GanttBoardConfig, type GanttBoardRef, type GanttColumn, type ColumnType as GanttColumnType, Milestone as GanttMilestone, type GanttPermissions, type Task as GanttTask, type GanttTemplates, type Theme$1 as GanttTheme, type GanttTheme as GanttThemeConfig, GanttToolbar, GenerateGanttTasksDialog, type GenerateGanttTasksDialogProps, GeneratePlanModal, type GeneratePlanModalProps, type GeneratedPlan, type GeneratedTasksResponse, type GroupByOption, GroupBySelector, type GroupBySelectorProps, type IPluginManager, type ImportResult, type Insight, type InsightSeverity, type InsightType, KanbanBoard, type KanbanBoardProps, KanbanViewAdapter, type KanbanViewConfig, type KeyboardAction, type KeyboardShortcut, KeyboardShortcutsHelp, type KeyboardShortcutsHelpProps, type LineHeightToken, MenuIcons, type OpacityToken, type Plugin, type PluginContext, type PluginHooks, PluginManager, type Priority, PrioritySelector, type PrioritySelectorProps, RATE_LIMITS, type RenderProps, type RetryOptions, type RetryResult, type ShadowToken, type SortBy, type SortOrder, type SortState, type SpacingToken, type StackSuggestion, type StackingConfig, type StackingStrategy, type Swimlane, SwimlaneBoardView, type SwimlaneBoardViewProps, type SwimlaneConfig, TaskBar, type TaskFormData, TaskFormModal, type TaskFormModalProps, TaskGrid, type Theme, type ThemeColors, type ThemeContextValue, ThemeModal, type ThemeModalProps, type ThemeName, ThemeProvider, ThemeSwitcher, type TimeScale, Timeline, type ThemeColors$1 as TokenThemeColors, type TokenValue, type UsageStats, type UseAIOptions, type UseAIReturn, type UseBoardReturn as UseBoardCoreReturn, type UseBoardOptions, type UseBoardReturn$1 as UseBoardReturn, type UseCardStackingOptions, type UseCardStackingResult, type UseDragStateReturn, type UseFiltersOptions, type UseFiltersReturn, type UseKanbanStateOptions, type UseKanbanStateReturn, type UseKeyboardShortcutsOptions, type UseKeyboardShortcutsReturn, type UseMultiSelectReturn, type UseSelectionStateReturn, type User$1 as User, UserAssignmentSelector, type UserAssignmentSelectorProps, VelocityChart, type VelocityChartProps, type VelocityDataPoint, VirtualGrid, type VirtualGridProps, VirtualList, type VirtualListProps, type ZIndexToken, aiUsageTracker, borderRadius, calculatePosition, cardToGanttTask, cardsToGanttTasks, cn, createKanbanView, createRetryWrapper, darkTheme, darkTheme$1 as darkTokenTheme, defaultTheme, designTokens, duration, easing, exportTokensToCSS, findTaskByName, fontSize, fontWeight, formatCost, ganttTaskToCardUpdate, themes$1 as ganttThemes, gantt as ganttTokens, ganttUtils, generateCSSVariables, generateCompleteCSS, generateInitialPositions, generateTasksContext, generateThemeVariables, getToken, kanban as kanbanTokens, lightTheme, lightTheme$1 as lightTokenTheme, lineHeight, neutralTheme, neutralTheme$1 as neutralTokenTheme, opacity, parseLocalCommand, parseNaturalDate, parseNaturalDuration, parseProgress, parseStatus, pluginManager, retrySyncOperation, retryWithBackoff, shadows, shouldVirtualizeGrid, spacing, themes, useAI, useBoard$1 as useBoard, useBoard as useBoardCore, useBoardStore, useCardStacking, useDragState, useFilteredCards, useFilters, useKanbanState, useKeyboardShortcuts, useMultiSelect, useSelectionState, useSortedCards, useTheme, useVirtualGrid, useVirtualList, validateAIResponse, withErrorBoundary, zIndex };
|
|
4731
|
+
export { type AICallbacks, type AICommandResult$1 as AICommandResult, type GanttTask as AIGanttTask, type AIModelKey, type AIOperation, AIUsageDashboard, type AIUsageDashboardProps, AI_FEATURES, AI_MODELS, type Activity, type ActivityType, type AssigneeSuggestion, type Attachment, AttachmentUploader, type AttachmentUploaderProps, type Board, type BoardCallbacks, type BoardConfig, BoardProvider, type BoardProviderProps, type BorderRadiusToken, BulkOperationsToolbar, type BulkOperationsToolbarProps, BurnDownChart, type BurnDownChartProps, type BurnDownDataPoint, Card, CardDetailModal, type CardDetailModalProps, CardDetailModalV2, type CardDetailModalV2Props, type CardFilter, type CardFilters, CardHistoryReplay, type CardHistoryReplayProps, CardHistoryTimeline, type CardHistoryTimelineProps, type CardProps, CardRelationshipsGraph, type CardRelationshipsGraphProps, type CardSort, type CardSortKey, CardStack, type CardStackProps, type CardStack$1 as CardStackType, type CardStatus, type CardTemplate, CardTemplateSelector, type CardTemplateSelectorProps, type Card$1 as CardType, CircuitBreaker, Column, ColumnManager, type ColumnProps, type Column$1 as ColumnType, CommandPalette, type CommandPaletteProps, type Comment, ConfigMenu, type ConfigMenuProps, ContextMenu, DEFAULT_SHORTCUTS, DEFAULT_TEMPLATES, type DateFilter, DateRangePicker, type DateRangePickerProps, DependenciesSelector, type DependenciesSelectorProps, DependencyLine, type DesignTokens, DistributionCharts, type DistributionChartsProps, type DistributionDataPoint, type DragData, type DropData, type DurationToken, type EasingToken, EditableColumnTitle, type EditableColumnTitleProps, ErrorBoundary, type ErrorBoundaryProps, type ExportFormat, ExportImportModal, type ExportImportModalProps, type ExportOptions, FilterBar, type FilterBarProps, type FilterState, type FontSizeToken, type FontWeightToken, GANTT_AI_SYSTEM_PROMPT, GanttAIAssistant, type GanttAIAssistantConfig$1 as GanttAIAssistantConfig, type Assignee as GanttAssignee, GanttBoard, type GanttConfig as GanttBoardConfig, type GanttBoardRef, type GanttColumn, type ColumnType as GanttColumnType, GanttI18nContext, Milestone as GanttMilestone, type GanttPermissions, type Task as GanttTask, type GanttTemplates, type Theme$1 as GanttTheme, type GanttTheme as GanttThemeConfig, GanttToolbar, type GanttTranslations, GenerateGanttTasksDialog, type GenerateGanttTasksDialogProps, GeneratePlanModal, type GeneratePlanModalProps, type GeneratedPlan, type GeneratedTasksResponse, type GroupByOption, GroupBySelector, type GroupBySelectorProps, type IPluginManager, type ImportResult, type Insight, type InsightSeverity, type InsightType, KanbanBoard, type KanbanBoardProps, KanbanViewAdapter, type KanbanViewConfig, type KeyboardAction, type KeyboardShortcut, KeyboardShortcutsHelp, type KeyboardShortcutsHelpProps, type LineHeightToken, MenuIcons, type OpacityToken, type Plugin, type PluginContext, type PluginHooks, PluginManager, type Priority, PrioritySelector, type PrioritySelectorProps, RATE_LIMITS, type RenderProps, type RetryOptions, type RetryResult, type ShadowToken, type SortBy, type SortOrder, type SortState, type SpacingToken, type StackSuggestion, type StackingConfig, type StackingStrategy, type SupportedLocale, type Swimlane, SwimlaneBoardView, type SwimlaneBoardViewProps, type SwimlaneConfig, TaskBar, type TaskFormData, TaskFormModal, type TaskFormModalProps, TaskGrid, type Theme, type ThemeColors, type ThemeContextValue, ThemeModal, type ThemeModalProps, type ThemeName, ThemeProvider, ThemeSwitcher, type TimeScale, Timeline, type ThemeColors$1 as TokenThemeColors, type TokenValue, type UsageStats, type UseAIOptions, type UseAIReturn, type UseBoardReturn as UseBoardCoreReturn, type UseBoardOptions, type UseBoardReturn$1 as UseBoardReturn, type UseCardStackingOptions, type UseCardStackingResult, type UseDragStateReturn, type UseFiltersOptions, type UseFiltersReturn, type UseKanbanStateOptions, type UseKanbanStateReturn, type UseKeyboardShortcutsOptions, type UseKeyboardShortcutsReturn, type UseMultiSelectReturn, type UseSelectionStateReturn, type User$1 as User, UserAssignmentSelector, type UserAssignmentSelectorProps, VelocityChart, type VelocityChartProps, type VelocityDataPoint, VirtualGrid, type VirtualGridProps, VirtualList, type VirtualListProps, type ZIndexToken, aiUsageTracker, borderRadius, calculatePosition, cardToGanttTask, cardsToGanttTasks, cn, createKanbanView, createRetryWrapper, darkTheme, darkTheme$1 as darkTokenTheme, defaultTheme, designTokens, duration, easing, exportTokensToCSS, findTaskByName, fontSize, fontWeight, formatCost, en as ganttEnTranslations, es as ganttEsTranslations, ganttTaskToCardUpdate, themes$1 as ganttThemes, gantt as ganttTokens, translations as ganttTranslations, ganttUtils, generateCSSVariables, generateCompleteCSS, generateInitialPositions, generateTasksContext, generateThemeVariables, getToken, getTranslations, kanban as kanbanTokens, lightTheme, lightTheme$1 as lightTokenTheme, lineHeight, mergeTranslations, neutralTheme, neutralTheme$1 as neutralTokenTheme, opacity, parseLocalCommand, parseNaturalDate, parseNaturalDuration, parseProgress, parseStatus, pluginManager, retrySyncOperation, retryWithBackoff, shadows, shouldVirtualizeGrid, spacing, themes, useAI, useBoard$1 as useBoard, useBoard as useBoardCore, useBoardStore, useCardStacking, useDragState, useFilteredCards, useFilters, useGanttI18n, useKanbanState, useKeyboardShortcuts, useMultiSelect, useSelectionState, useSortedCards, useTheme, useVirtualGrid, useVirtualList, validateAIResponse, withErrorBoundary, zIndex };
|