@libxai/board 0.17.26 → 0.17.27
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 +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -761,16 +761,27 @@ interface KanbanToolbarI18n {
|
|
|
761
761
|
}
|
|
762
762
|
interface KanbanToolbarProps {
|
|
763
763
|
columns: Column$1[];
|
|
764
|
-
|
|
764
|
+
/**
|
|
765
|
+
* Handler for creating a new task.
|
|
766
|
+
* - If useColumnSelector is true: receives columnId as parameter
|
|
767
|
+
* - If useColumnSelector is false: called with no parameters (opens modal)
|
|
768
|
+
*/
|
|
769
|
+
onCreateTask?: (columnId?: string) => void;
|
|
765
770
|
createTaskLabel?: string;
|
|
766
771
|
theme?: 'dark' | 'light';
|
|
767
772
|
locale?: 'es' | 'en';
|
|
773
|
+
/**
|
|
774
|
+
* v0.17.27: If true, shows dropdown to select column before creating task.
|
|
775
|
+
* If false, shows a simple button that triggers onCreateTask() without columnId.
|
|
776
|
+
* @default false
|
|
777
|
+
*/
|
|
778
|
+
useColumnSelector?: boolean;
|
|
768
779
|
onExportCSV?: () => void;
|
|
769
780
|
onExportJSON?: () => void;
|
|
770
781
|
onExportExcel?: () => Promise<void>;
|
|
771
782
|
translations?: Partial<KanbanToolbarI18n>;
|
|
772
783
|
}
|
|
773
|
-
declare function KanbanToolbar({ columns, onCreateTask, createTaskLabel, theme, locale, onExportCSV, onExportJSON, onExportExcel, translations, }: KanbanToolbarProps): react_jsx_runtime.JSX.Element;
|
|
784
|
+
declare function KanbanToolbar({ columns, onCreateTask, createTaskLabel, theme, locale, useColumnSelector, onExportCSV, onExportJSON, onExportExcel, translations, }: KanbanToolbarProps): react_jsx_runtime.JSX.Element;
|
|
774
785
|
|
|
775
786
|
/**
|
|
776
787
|
* User Assignment Selector Component
|
package/dist/index.d.ts
CHANGED
|
@@ -761,16 +761,27 @@ interface KanbanToolbarI18n {
|
|
|
761
761
|
}
|
|
762
762
|
interface KanbanToolbarProps {
|
|
763
763
|
columns: Column$1[];
|
|
764
|
-
|
|
764
|
+
/**
|
|
765
|
+
* Handler for creating a new task.
|
|
766
|
+
* - If useColumnSelector is true: receives columnId as parameter
|
|
767
|
+
* - If useColumnSelector is false: called with no parameters (opens modal)
|
|
768
|
+
*/
|
|
769
|
+
onCreateTask?: (columnId?: string) => void;
|
|
765
770
|
createTaskLabel?: string;
|
|
766
771
|
theme?: 'dark' | 'light';
|
|
767
772
|
locale?: 'es' | 'en';
|
|
773
|
+
/**
|
|
774
|
+
* v0.17.27: If true, shows dropdown to select column before creating task.
|
|
775
|
+
* If false, shows a simple button that triggers onCreateTask() without columnId.
|
|
776
|
+
* @default false
|
|
777
|
+
*/
|
|
778
|
+
useColumnSelector?: boolean;
|
|
768
779
|
onExportCSV?: () => void;
|
|
769
780
|
onExportJSON?: () => void;
|
|
770
781
|
onExportExcel?: () => Promise<void>;
|
|
771
782
|
translations?: Partial<KanbanToolbarI18n>;
|
|
772
783
|
}
|
|
773
|
-
declare function KanbanToolbar({ columns, onCreateTask, createTaskLabel, theme, locale, onExportCSV, onExportJSON, onExportExcel, translations, }: KanbanToolbarProps): react_jsx_runtime.JSX.Element;
|
|
784
|
+
declare function KanbanToolbar({ columns, onCreateTask, createTaskLabel, theme, locale, useColumnSelector, onExportCSV, onExportJSON, onExportExcel, translations, }: KanbanToolbarProps): react_jsx_runtime.JSX.Element;
|
|
774
785
|
|
|
775
786
|
/**
|
|
776
787
|
* User Assignment Selector Component
|