@libxai/board 0.16.14 → 0.17.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 +31 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +575 -3
- package/dist/index.d.ts +575 -3
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/styles.css +142 -0
- package/package.json +6 -2
package/dist/index.d.cts
CHANGED
|
@@ -2609,11 +2609,11 @@ interface GanttTranslations {
|
|
|
2609
2609
|
/**
|
|
2610
2610
|
* English translations (default)
|
|
2611
2611
|
*/
|
|
2612
|
-
declare const en: GanttTranslations;
|
|
2612
|
+
declare const en$2: GanttTranslations;
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Spanish translations
|
|
2615
2615
|
*/
|
|
2616
|
-
declare const es: GanttTranslations;
|
|
2616
|
+
declare const es$2: GanttTranslations;
|
|
2617
2617
|
/**
|
|
2618
2618
|
* All available translations
|
|
2619
2619
|
*/
|
|
@@ -2648,6 +2648,578 @@ declare const GanttI18nContext: React$1.Context<GanttTranslations>;
|
|
|
2648
2648
|
*/
|
|
2649
2649
|
declare function useGanttI18n(): GanttTranslations;
|
|
2650
2650
|
|
|
2651
|
+
/**
|
|
2652
|
+
* ListView Component Types
|
|
2653
|
+
* @version 0.17.0
|
|
2654
|
+
*/
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* Sort direction for list columns
|
|
2658
|
+
*/
|
|
2659
|
+
type SortDirection = 'asc' | 'desc';
|
|
2660
|
+
/**
|
|
2661
|
+
* Sortable columns in the list view
|
|
2662
|
+
*/
|
|
2663
|
+
type ListSortColumn = 'name' | 'startDate' | 'endDate' | 'progress' | 'status' | 'assignees' | 'priority';
|
|
2664
|
+
/**
|
|
2665
|
+
* Sort configuration
|
|
2666
|
+
*/
|
|
2667
|
+
interface ListSort {
|
|
2668
|
+
column: ListSortColumn;
|
|
2669
|
+
direction: SortDirection;
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
* Filter configuration for list view
|
|
2673
|
+
*/
|
|
2674
|
+
interface ListFilter {
|
|
2675
|
+
search?: string;
|
|
2676
|
+
status?: Array<'todo' | 'in-progress' | 'completed'>;
|
|
2677
|
+
assignees?: string[];
|
|
2678
|
+
dateRange?: {
|
|
2679
|
+
start: Date;
|
|
2680
|
+
end: Date;
|
|
2681
|
+
};
|
|
2682
|
+
showCompleted?: boolean;
|
|
2683
|
+
}
|
|
2684
|
+
/**
|
|
2685
|
+
* Column configuration for list view
|
|
2686
|
+
*/
|
|
2687
|
+
interface ListColumn {
|
|
2688
|
+
id: ListSortColumn | 'actions';
|
|
2689
|
+
label: string;
|
|
2690
|
+
width: number;
|
|
2691
|
+
minWidth?: number;
|
|
2692
|
+
maxWidth?: number;
|
|
2693
|
+
visible: boolean;
|
|
2694
|
+
sortable: boolean;
|
|
2695
|
+
resizable?: boolean;
|
|
2696
|
+
}
|
|
2697
|
+
/**
|
|
2698
|
+
* Theme configuration for list view
|
|
2699
|
+
*/
|
|
2700
|
+
interface ListViewTheme {
|
|
2701
|
+
bgPrimary: string;
|
|
2702
|
+
bgSecondary: string;
|
|
2703
|
+
bgHover: string;
|
|
2704
|
+
bgSelected: string;
|
|
2705
|
+
bgAlternate: string;
|
|
2706
|
+
border: string;
|
|
2707
|
+
borderLight: string;
|
|
2708
|
+
textPrimary: string;
|
|
2709
|
+
textSecondary: string;
|
|
2710
|
+
textMuted: string;
|
|
2711
|
+
accent: string;
|
|
2712
|
+
accentHover: string;
|
|
2713
|
+
accentLight: string;
|
|
2714
|
+
statusTodo: string;
|
|
2715
|
+
statusInProgress: string;
|
|
2716
|
+
statusCompleted: string;
|
|
2717
|
+
focusRing: string;
|
|
2718
|
+
checkboxBg: string;
|
|
2719
|
+
checkboxChecked: string;
|
|
2720
|
+
}
|
|
2721
|
+
/**
|
|
2722
|
+
* Permissions for list view operations
|
|
2723
|
+
*/
|
|
2724
|
+
interface ListViewPermissions {
|
|
2725
|
+
canCreateTask?: boolean;
|
|
2726
|
+
canUpdateTask?: boolean;
|
|
2727
|
+
canDeleteTask?: boolean;
|
|
2728
|
+
canBulkSelect?: boolean;
|
|
2729
|
+
canExport?: boolean;
|
|
2730
|
+
canSort?: boolean;
|
|
2731
|
+
canFilter?: boolean;
|
|
2732
|
+
canReorder?: boolean;
|
|
2733
|
+
}
|
|
2734
|
+
/**
|
|
2735
|
+
* ListView configuration
|
|
2736
|
+
*/
|
|
2737
|
+
interface ListViewConfig {
|
|
2738
|
+
/** Theme: 'dark' | 'light' | 'neutral' */
|
|
2739
|
+
theme?: 'dark' | 'light' | 'neutral';
|
|
2740
|
+
/** Locale for i18n */
|
|
2741
|
+
locale?: 'en' | 'es' | string;
|
|
2742
|
+
/** Custom translations */
|
|
2743
|
+
customTranslations?: Partial<ListViewTranslations>;
|
|
2744
|
+
/** Enable row selection */
|
|
2745
|
+
enableSelection?: boolean;
|
|
2746
|
+
/** Enable multi-select with checkboxes */
|
|
2747
|
+
enableMultiSelect?: boolean;
|
|
2748
|
+
/** Show search bar */
|
|
2749
|
+
showSearch?: boolean;
|
|
2750
|
+
/** Show filters */
|
|
2751
|
+
showFilters?: boolean;
|
|
2752
|
+
/** Show hierarchy indentation */
|
|
2753
|
+
showHierarchy?: boolean;
|
|
2754
|
+
/** Columns to display */
|
|
2755
|
+
columns?: ListColumn[];
|
|
2756
|
+
/** Row height in pixels */
|
|
2757
|
+
rowHeight?: number;
|
|
2758
|
+
/** Available users for filtering */
|
|
2759
|
+
availableUsers?: User$1[];
|
|
2760
|
+
/** Permissions */
|
|
2761
|
+
permissions?: ListViewPermissions;
|
|
2762
|
+
/** Enable virtual scrolling for large lists */
|
|
2763
|
+
enableVirtualization?: boolean;
|
|
2764
|
+
/** Items per page (0 = no pagination) */
|
|
2765
|
+
pageSize?: number;
|
|
2766
|
+
}
|
|
2767
|
+
/**
|
|
2768
|
+
* ListView translations
|
|
2769
|
+
*/
|
|
2770
|
+
interface ListViewTranslations {
|
|
2771
|
+
columns: {
|
|
2772
|
+
name: string;
|
|
2773
|
+
startDate: string;
|
|
2774
|
+
endDate: string;
|
|
2775
|
+
progress: string;
|
|
2776
|
+
status: string;
|
|
2777
|
+
assignees: string;
|
|
2778
|
+
priority: string;
|
|
2779
|
+
actions: string;
|
|
2780
|
+
};
|
|
2781
|
+
toolbar: {
|
|
2782
|
+
search: string;
|
|
2783
|
+
searchPlaceholder: string;
|
|
2784
|
+
filter: string;
|
|
2785
|
+
clearFilters: string;
|
|
2786
|
+
export: string;
|
|
2787
|
+
columns: string;
|
|
2788
|
+
newTask: string;
|
|
2789
|
+
};
|
|
2790
|
+
filters: {
|
|
2791
|
+
status: string;
|
|
2792
|
+
assignees: string;
|
|
2793
|
+
dateRange: string;
|
|
2794
|
+
showCompleted: string;
|
|
2795
|
+
all: string;
|
|
2796
|
+
none: string;
|
|
2797
|
+
};
|
|
2798
|
+
status: {
|
|
2799
|
+
todo: string;
|
|
2800
|
+
inProgress: string;
|
|
2801
|
+
completed: string;
|
|
2802
|
+
};
|
|
2803
|
+
actions: {
|
|
2804
|
+
edit: string;
|
|
2805
|
+
delete: string;
|
|
2806
|
+
duplicate: string;
|
|
2807
|
+
viewDetails: string;
|
|
2808
|
+
};
|
|
2809
|
+
empty: {
|
|
2810
|
+
noTasks: string;
|
|
2811
|
+
noResults: string;
|
|
2812
|
+
addFirstTask: string;
|
|
2813
|
+
};
|
|
2814
|
+
pagination: {
|
|
2815
|
+
showing: string;
|
|
2816
|
+
of: string;
|
|
2817
|
+
tasks: string;
|
|
2818
|
+
previous: string;
|
|
2819
|
+
next: string;
|
|
2820
|
+
};
|
|
2821
|
+
bulk: {
|
|
2822
|
+
selected: string;
|
|
2823
|
+
delete: string;
|
|
2824
|
+
move: string;
|
|
2825
|
+
assignTo: string;
|
|
2826
|
+
};
|
|
2827
|
+
}
|
|
2828
|
+
/**
|
|
2829
|
+
* Callback functions for ListView
|
|
2830
|
+
*/
|
|
2831
|
+
interface ListViewCallbacks {
|
|
2832
|
+
/** Task click handler */
|
|
2833
|
+
onTaskClick?: (task: Task) => void;
|
|
2834
|
+
/** Task double-click handler */
|
|
2835
|
+
onTaskDoubleClick?: (task: Task) => void;
|
|
2836
|
+
/** Task update handler */
|
|
2837
|
+
onTaskUpdate?: (task: Task) => void;
|
|
2838
|
+
/** Task delete handler */
|
|
2839
|
+
onTaskDelete?: (taskId: string) => void;
|
|
2840
|
+
/** Task create handler */
|
|
2841
|
+
onTaskCreate?: (parentId?: string) => void;
|
|
2842
|
+
/** Bulk delete handler */
|
|
2843
|
+
onBulkDelete?: (taskIds: string[]) => void;
|
|
2844
|
+
/** Sort change handler */
|
|
2845
|
+
onSortChange?: (sort: ListSort) => void;
|
|
2846
|
+
/** Filter change handler */
|
|
2847
|
+
onFilterChange?: (filter: ListFilter) => void;
|
|
2848
|
+
/** Selection change handler */
|
|
2849
|
+
onSelectionChange?: (selectedIds: string[]) => void;
|
|
2850
|
+
/** Row expand/collapse handler */
|
|
2851
|
+
onTaskToggleExpand?: (taskId: string) => void;
|
|
2852
|
+
/** Export handler */
|
|
2853
|
+
onExport?: (format: 'csv' | 'json' | 'excel') => void;
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* Main ListView props
|
|
2857
|
+
*/
|
|
2858
|
+
interface ListViewProps {
|
|
2859
|
+
/** Tasks to display */
|
|
2860
|
+
tasks: Task[];
|
|
2861
|
+
/** Configuration */
|
|
2862
|
+
config?: ListViewConfig;
|
|
2863
|
+
/** Callbacks */
|
|
2864
|
+
callbacks?: ListViewCallbacks;
|
|
2865
|
+
/** Loading state */
|
|
2866
|
+
isLoading?: boolean;
|
|
2867
|
+
/** Error state */
|
|
2868
|
+
error?: Error | string;
|
|
2869
|
+
/** Custom CSS class */
|
|
2870
|
+
className?: string;
|
|
2871
|
+
/** Inline styles */
|
|
2872
|
+
style?: React.CSSProperties;
|
|
2873
|
+
}
|
|
2874
|
+
/**
|
|
2875
|
+
* Flattened task with hierarchy info
|
|
2876
|
+
*/
|
|
2877
|
+
interface FlattenedTask extends Task {
|
|
2878
|
+
level: number;
|
|
2879
|
+
hasChildren: boolean;
|
|
2880
|
+
parentPath: string[];
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
/**
|
|
2884
|
+
* Main ListView Component
|
|
2885
|
+
*/
|
|
2886
|
+
declare function ListView({ tasks, config, callbacks, isLoading, error, className, style, }: ListViewProps): react_jsx_runtime.JSX.Element;
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
* ListView Themes
|
|
2890
|
+
* @version 0.17.0
|
|
2891
|
+
*/
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* Dark theme for ListView
|
|
2895
|
+
*/
|
|
2896
|
+
declare const darkTheme$3: ListViewTheme;
|
|
2897
|
+
/**
|
|
2898
|
+
* Light theme for ListView
|
|
2899
|
+
*/
|
|
2900
|
+
declare const lightTheme$3: ListViewTheme;
|
|
2901
|
+
/**
|
|
2902
|
+
* Neutral theme for ListView
|
|
2903
|
+
*/
|
|
2904
|
+
declare const neutralTheme$3: ListViewTheme;
|
|
2905
|
+
/**
|
|
2906
|
+
* All available themes
|
|
2907
|
+
*/
|
|
2908
|
+
declare const listViewThemes: {
|
|
2909
|
+
readonly dark: ListViewTheme;
|
|
2910
|
+
readonly light: ListViewTheme;
|
|
2911
|
+
readonly neutral: ListViewTheme;
|
|
2912
|
+
};
|
|
2913
|
+
type ListViewThemeName = keyof typeof listViewThemes;
|
|
2914
|
+
/**
|
|
2915
|
+
* Get theme by name
|
|
2916
|
+
*/
|
|
2917
|
+
declare function getListViewTheme(themeName: ListViewThemeName): ListViewTheme;
|
|
2918
|
+
|
|
2919
|
+
/**
|
|
2920
|
+
* Internationalization (i18n) for ListView
|
|
2921
|
+
* @version 0.17.0
|
|
2922
|
+
*/
|
|
2923
|
+
|
|
2924
|
+
type ListViewSupportedLocale = 'en' | 'es';
|
|
2925
|
+
/**
|
|
2926
|
+
* English translations
|
|
2927
|
+
*/
|
|
2928
|
+
declare const en$1: ListViewTranslations;
|
|
2929
|
+
/**
|
|
2930
|
+
* Spanish translations
|
|
2931
|
+
*/
|
|
2932
|
+
declare const es$1: ListViewTranslations;
|
|
2933
|
+
/**
|
|
2934
|
+
* All available translations
|
|
2935
|
+
*/
|
|
2936
|
+
declare const listViewTranslations: Record<ListViewSupportedLocale, ListViewTranslations>;
|
|
2937
|
+
/**
|
|
2938
|
+
* Get translations for a specific locale
|
|
2939
|
+
*/
|
|
2940
|
+
declare function getListViewTranslations(locale: ListViewSupportedLocale | string): ListViewTranslations;
|
|
2941
|
+
/**
|
|
2942
|
+
* Merge custom translations with default translations
|
|
2943
|
+
*/
|
|
2944
|
+
declare function mergeListViewTranslations(locale: ListViewSupportedLocale | string, customTranslations?: Partial<ListViewTranslations>): ListViewTranslations;
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* CalendarBoard Component Types
|
|
2948
|
+
* @version 0.17.0
|
|
2949
|
+
*/
|
|
2950
|
+
|
|
2951
|
+
/**
|
|
2952
|
+
* Calendar view modes
|
|
2953
|
+
*/
|
|
2954
|
+
type CalendarViewMode = 'month' | 'week' | 'day';
|
|
2955
|
+
/**
|
|
2956
|
+
* Day of the week (0 = Sunday, 6 = Saturday)
|
|
2957
|
+
*/
|
|
2958
|
+
type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2959
|
+
/**
|
|
2960
|
+
* Calendar event (task displayed on calendar)
|
|
2961
|
+
*/
|
|
2962
|
+
interface CalendarEvent {
|
|
2963
|
+
id: string;
|
|
2964
|
+
title: string;
|
|
2965
|
+
start: Date;
|
|
2966
|
+
end: Date;
|
|
2967
|
+
color?: string;
|
|
2968
|
+
status?: 'todo' | 'in-progress' | 'completed';
|
|
2969
|
+
progress?: number;
|
|
2970
|
+
assignees?: Task['assignees'];
|
|
2971
|
+
task: Task;
|
|
2972
|
+
}
|
|
2973
|
+
/**
|
|
2974
|
+
* Calendar day info
|
|
2975
|
+
*/
|
|
2976
|
+
interface CalendarDay {
|
|
2977
|
+
date: Date;
|
|
2978
|
+
isCurrentMonth: boolean;
|
|
2979
|
+
isToday: boolean;
|
|
2980
|
+
isWeekend: boolean;
|
|
2981
|
+
events: CalendarEvent[];
|
|
2982
|
+
}
|
|
2983
|
+
/**
|
|
2984
|
+
* Theme configuration for calendar
|
|
2985
|
+
*/
|
|
2986
|
+
interface CalendarTheme {
|
|
2987
|
+
bgPrimary: string;
|
|
2988
|
+
bgSecondary: string;
|
|
2989
|
+
bgHover: string;
|
|
2990
|
+
bgToday: string;
|
|
2991
|
+
bgWeekend: string;
|
|
2992
|
+
bgOtherMonth: string;
|
|
2993
|
+
border: string;
|
|
2994
|
+
borderLight: string;
|
|
2995
|
+
textPrimary: string;
|
|
2996
|
+
textSecondary: string;
|
|
2997
|
+
textMuted: string;
|
|
2998
|
+
textToday: string;
|
|
2999
|
+
accent: string;
|
|
3000
|
+
accentHover: string;
|
|
3001
|
+
accentLight: string;
|
|
3002
|
+
statusTodo: string;
|
|
3003
|
+
statusInProgress: string;
|
|
3004
|
+
statusCompleted: string;
|
|
3005
|
+
focusRing: string;
|
|
3006
|
+
}
|
|
3007
|
+
/**
|
|
3008
|
+
* Permissions for calendar operations
|
|
3009
|
+
*/
|
|
3010
|
+
interface CalendarPermissions {
|
|
3011
|
+
canCreateTask?: boolean;
|
|
3012
|
+
canUpdateTask?: boolean;
|
|
3013
|
+
canDeleteTask?: boolean;
|
|
3014
|
+
canDragDrop?: boolean;
|
|
3015
|
+
canResize?: boolean;
|
|
3016
|
+
}
|
|
3017
|
+
/**
|
|
3018
|
+
* CalendarBoard configuration
|
|
3019
|
+
*/
|
|
3020
|
+
interface CalendarConfig {
|
|
3021
|
+
/** Theme: 'dark' | 'light' | 'neutral' */
|
|
3022
|
+
theme?: 'dark' | 'light' | 'neutral';
|
|
3023
|
+
/** Locale for i18n */
|
|
3024
|
+
locale?: 'en' | 'es' | string;
|
|
3025
|
+
/** Custom translations */
|
|
3026
|
+
customTranslations?: Partial<CalendarTranslations>;
|
|
3027
|
+
/** Default view mode */
|
|
3028
|
+
defaultView?: CalendarViewMode;
|
|
3029
|
+
/** First day of week (0 = Sunday, 1 = Monday, etc.) */
|
|
3030
|
+
firstDayOfWeek?: WeekDay;
|
|
3031
|
+
/** Show week numbers */
|
|
3032
|
+
showWeekNumbers?: boolean;
|
|
3033
|
+
/** Show mini calendar in sidebar */
|
|
3034
|
+
showMiniCalendar?: boolean;
|
|
3035
|
+
/** Max events to show per day before "+N more" */
|
|
3036
|
+
maxEventsPerDay?: number;
|
|
3037
|
+
/** Available users for filtering */
|
|
3038
|
+
availableUsers?: User$1[];
|
|
3039
|
+
/** Permissions */
|
|
3040
|
+
permissions?: CalendarPermissions;
|
|
3041
|
+
/** Enable drag and drop */
|
|
3042
|
+
enableDragDrop?: boolean;
|
|
3043
|
+
/** Show task details on hover */
|
|
3044
|
+
showTooltip?: boolean;
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* CalendarBoard translations
|
|
3048
|
+
*/
|
|
3049
|
+
interface CalendarTranslations {
|
|
3050
|
+
navigation: {
|
|
3051
|
+
today: string;
|
|
3052
|
+
previous: string;
|
|
3053
|
+
next: string;
|
|
3054
|
+
month: string;
|
|
3055
|
+
week: string;
|
|
3056
|
+
day: string;
|
|
3057
|
+
};
|
|
3058
|
+
weekdays: {
|
|
3059
|
+
sun: string;
|
|
3060
|
+
mon: string;
|
|
3061
|
+
tue: string;
|
|
3062
|
+
wed: string;
|
|
3063
|
+
thu: string;
|
|
3064
|
+
fri: string;
|
|
3065
|
+
sat: string;
|
|
3066
|
+
};
|
|
3067
|
+
weekdaysFull: {
|
|
3068
|
+
sunday: string;
|
|
3069
|
+
monday: string;
|
|
3070
|
+
tuesday: string;
|
|
3071
|
+
wednesday: string;
|
|
3072
|
+
thursday: string;
|
|
3073
|
+
friday: string;
|
|
3074
|
+
saturday: string;
|
|
3075
|
+
};
|
|
3076
|
+
months: {
|
|
3077
|
+
january: string;
|
|
3078
|
+
february: string;
|
|
3079
|
+
march: string;
|
|
3080
|
+
april: string;
|
|
3081
|
+
may: string;
|
|
3082
|
+
june: string;
|
|
3083
|
+
july: string;
|
|
3084
|
+
august: string;
|
|
3085
|
+
september: string;
|
|
3086
|
+
october: string;
|
|
3087
|
+
november: string;
|
|
3088
|
+
december: string;
|
|
3089
|
+
};
|
|
3090
|
+
status: {
|
|
3091
|
+
todo: string;
|
|
3092
|
+
inProgress: string;
|
|
3093
|
+
completed: string;
|
|
3094
|
+
};
|
|
3095
|
+
labels: {
|
|
3096
|
+
allDay: string;
|
|
3097
|
+
moreEvents: string;
|
|
3098
|
+
noEvents: string;
|
|
3099
|
+
newTask: string;
|
|
3100
|
+
viewAll: string;
|
|
3101
|
+
week: string;
|
|
3102
|
+
};
|
|
3103
|
+
tooltips: {
|
|
3104
|
+
progress: string;
|
|
3105
|
+
status: string;
|
|
3106
|
+
assignees: string;
|
|
3107
|
+
duration: string;
|
|
3108
|
+
days: string;
|
|
3109
|
+
};
|
|
3110
|
+
}
|
|
3111
|
+
/**
|
|
3112
|
+
* Callback functions for CalendarBoard
|
|
3113
|
+
*/
|
|
3114
|
+
interface CalendarCallbacks {
|
|
3115
|
+
/** Event click handler */
|
|
3116
|
+
onEventClick?: (event: CalendarEvent) => void;
|
|
3117
|
+
/** Event double-click handler */
|
|
3118
|
+
onEventDoubleClick?: (event: CalendarEvent) => void;
|
|
3119
|
+
/** Date click handler (create new task) */
|
|
3120
|
+
onDateClick?: (date: Date) => void;
|
|
3121
|
+
/** Task update after drag/drop */
|
|
3122
|
+
onTaskUpdate?: (task: Task) => void;
|
|
3123
|
+
/** Task delete handler */
|
|
3124
|
+
onTaskDelete?: (taskId: string) => void;
|
|
3125
|
+
/** View change handler */
|
|
3126
|
+
onViewChange?: (view: CalendarViewMode) => void;
|
|
3127
|
+
/** Date range change handler */
|
|
3128
|
+
onDateRangeChange?: (start: Date, end: Date) => void;
|
|
3129
|
+
}
|
|
3130
|
+
/**
|
|
3131
|
+
* Main CalendarBoard props
|
|
3132
|
+
*/
|
|
3133
|
+
interface CalendarBoardProps {
|
|
3134
|
+
/** Tasks to display */
|
|
3135
|
+
tasks: Task[];
|
|
3136
|
+
/** Configuration */
|
|
3137
|
+
config?: CalendarConfig;
|
|
3138
|
+
/** Callbacks */
|
|
3139
|
+
callbacks?: CalendarCallbacks;
|
|
3140
|
+
/** Initial date to display */
|
|
3141
|
+
initialDate?: Date;
|
|
3142
|
+
/** Loading state */
|
|
3143
|
+
isLoading?: boolean;
|
|
3144
|
+
/** Error state */
|
|
3145
|
+
error?: Error | string;
|
|
3146
|
+
/** Custom CSS class */
|
|
3147
|
+
className?: string;
|
|
3148
|
+
/** Inline styles */
|
|
3149
|
+
style?: React.CSSProperties;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* Main CalendarBoard Component
|
|
3154
|
+
*/
|
|
3155
|
+
declare function CalendarBoard({ tasks, config, callbacks, initialDate, isLoading, error, className, style, }: CalendarBoardProps): react_jsx_runtime.JSX.Element;
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* CalendarBoard Themes
|
|
3159
|
+
* @version 0.17.0
|
|
3160
|
+
*/
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* Dark theme for CalendarBoard
|
|
3164
|
+
*/
|
|
3165
|
+
declare const darkTheme$2: CalendarTheme;
|
|
3166
|
+
/**
|
|
3167
|
+
* Light theme for CalendarBoard
|
|
3168
|
+
*/
|
|
3169
|
+
declare const lightTheme$2: CalendarTheme;
|
|
3170
|
+
/**
|
|
3171
|
+
* Neutral theme for CalendarBoard
|
|
3172
|
+
*/
|
|
3173
|
+
declare const neutralTheme$2: CalendarTheme;
|
|
3174
|
+
/**
|
|
3175
|
+
* All available themes
|
|
3176
|
+
*/
|
|
3177
|
+
declare const calendarThemes: {
|
|
3178
|
+
readonly dark: CalendarTheme;
|
|
3179
|
+
readonly light: CalendarTheme;
|
|
3180
|
+
readonly neutral: CalendarTheme;
|
|
3181
|
+
};
|
|
3182
|
+
type CalendarThemeName = keyof typeof calendarThemes;
|
|
3183
|
+
/**
|
|
3184
|
+
* Get theme by name
|
|
3185
|
+
*/
|
|
3186
|
+
declare function getCalendarTheme(themeName: CalendarThemeName): CalendarTheme;
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* Internationalization (i18n) for CalendarBoard
|
|
3190
|
+
* @version 0.17.0
|
|
3191
|
+
*/
|
|
3192
|
+
|
|
3193
|
+
type CalendarSupportedLocale = 'en' | 'es';
|
|
3194
|
+
/**
|
|
3195
|
+
* English translations
|
|
3196
|
+
*/
|
|
3197
|
+
declare const en: CalendarTranslations;
|
|
3198
|
+
/**
|
|
3199
|
+
* Spanish translations
|
|
3200
|
+
*/
|
|
3201
|
+
declare const es: CalendarTranslations;
|
|
3202
|
+
/**
|
|
3203
|
+
* All available translations
|
|
3204
|
+
*/
|
|
3205
|
+
declare const calendarTranslations: Record<CalendarSupportedLocale, CalendarTranslations>;
|
|
3206
|
+
/**
|
|
3207
|
+
* Get translations for a specific locale
|
|
3208
|
+
*/
|
|
3209
|
+
declare function getCalendarTranslations(locale: CalendarSupportedLocale | string): CalendarTranslations;
|
|
3210
|
+
/**
|
|
3211
|
+
* Merge custom translations with default translations
|
|
3212
|
+
*/
|
|
3213
|
+
declare function mergeCalendarTranslations(locale: CalendarSupportedLocale | string, customTranslations?: Partial<CalendarTranslations>): CalendarTranslations;
|
|
3214
|
+
/**
|
|
3215
|
+
* Get month names array based on locale
|
|
3216
|
+
*/
|
|
3217
|
+
declare function getMonthNames(locale: CalendarSupportedLocale | string): string[];
|
|
3218
|
+
/**
|
|
3219
|
+
* Get weekday names array based on locale and first day of week
|
|
3220
|
+
*/
|
|
3221
|
+
declare function getWeekdayNames(locale: CalendarSupportedLocale | string, firstDayOfWeek?: number, short?: boolean): string[];
|
|
3222
|
+
|
|
2651
3223
|
interface CardStackProps {
|
|
2652
3224
|
/** Stack configuration */
|
|
2653
3225
|
stack: CardStack$1;
|
|
@@ -4762,4 +5334,4 @@ declare const themes: Record<ThemeName, Theme>;
|
|
|
4762
5334
|
*/
|
|
4763
5335
|
declare const defaultTheme: ThemeName;
|
|
4764
5336
|
|
|
4765
|
-
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 };
|
|
5337
|
+
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, CalendarBoard, type CalendarBoardProps, type CalendarCallbacks, type CalendarConfig, type CalendarDay, type CalendarEvent, type CalendarPermissions, type CalendarSupportedLocale, type CalendarTheme, type CalendarThemeName, type CalendarTranslations, type CalendarViewMode, 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 FlattenedTask, 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, type ListColumn, type ListFilter, type ListSort, type ListSortColumn, ListView, type ListViewCallbacks, type ListViewConfig, type ListViewPermissions, type ListViewProps, type ListViewSupportedLocale, type ListViewTheme, type ListViewThemeName, type ListViewTranslations, 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 SortDirection, 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 WeekDay, type ZIndexToken, aiUsageTracker, borderRadius, calculatePosition, darkTheme$2 as calendarDarkTheme, en as calendarEnTranslations, es as calendarEsTranslations, lightTheme$2 as calendarLightTheme, neutralTheme$2 as calendarNeutralTheme, calendarThemes, calendarTranslations, cardToGanttTask, cardsToGanttTasks, cn, createKanbanView, createRetryWrapper, darkTheme, darkTheme$1 as darkTokenTheme, defaultTheme, designTokens, duration, easing, exportTokensToCSS, findTaskByName, fontSize, fontWeight, formatCost, en$2 as ganttEnTranslations, es$2 as ganttEsTranslations, ganttTaskToCardUpdate, themes$1 as ganttThemes, gantt as ganttTokens, translations as ganttTranslations, ganttUtils, generateCSSVariables, generateCompleteCSS, generateInitialPositions, generateTasksContext, generateThemeVariables, getCalendarTheme, getCalendarTranslations, getListViewTheme, getListViewTranslations, getMonthNames, getToken, getTranslations, getWeekdayNames, kanban as kanbanTokens, lightTheme, lightTheme$1 as lightTokenTheme, lineHeight, darkTheme$3 as listViewDarkTheme, en$1 as listViewEnTranslations, es$1 as listViewEsTranslations, lightTheme$3 as listViewLightTheme, neutralTheme$3 as listViewNeutralTheme, listViewThemes, listViewTranslations, mergeCalendarTranslations, mergeListViewTranslations, 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 };
|