@libxai/board 1.6.0 → 1.8.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.d.cts CHANGED
@@ -394,6 +394,13 @@ interface GanttConfig {
394
394
  * successful run.
395
395
  */
396
396
  onExportExcel?: () => Promise<void>;
397
+ /**
398
+ * Fires whenever the TODAY marker enters or leaves the visible
399
+ * timeline viewport (after horizontal scroll, zoom, timeScale change,
400
+ * or initial mount). Lets consumer apps render a floating "go to
401
+ * today" affordance that only shows up when relevant.
402
+ */
403
+ onTodayVisibilityChange?: (visible: boolean) => void;
397
404
  /**
398
405
  * v2.8.0: Fired AFTER a successful export so the consuming app can record
399
406
  * the event in its audit log / analytics. Receives the report type that
@@ -2746,6 +2753,12 @@ interface GanttBoardRef {
2746
2753
  * Similar to: gantt.clearAll()
2747
2754
  */
2748
2755
  clearAll: () => void;
2756
+ /**
2757
+ * Smoothly scroll the timeline so that today's date sits in the
2758
+ * center of the visible viewport. No-op when today falls outside
2759
+ * the project's date range.
2760
+ */
2761
+ scrollToToday: () => void;
2749
2762
  }
2750
2763
 
2751
2764
  interface GanttBoardProps {
@@ -4218,6 +4231,23 @@ interface ListViewProps {
4218
4231
  toolbarRightContent?: ReactNode;
4219
4232
  /** v2.5.0: Render content just before the Create Task button (e.g., share/export dropdown) */
4220
4233
  toolbarEndContent?: ReactNode;
4234
+ /**
4235
+ * Fires when the user clicks anywhere on a column header. The consumer
4236
+ * renders its own dropdown (Sort + Filter + Hide) anchored to `anchorRect`.
4237
+ * If unset, the header keeps the legacy behavior (click on the sort icon
4238
+ * cycles asc/desc/clear).
4239
+ */
4240
+ onColumnHeaderClick?: (columnId: string, anchorRect: DOMRect) => void;
4241
+ /**
4242
+ * IDs of columns that currently have an active filter applied. Each one
4243
+ * gets a small accent dot rendered next to its label.
4244
+ */
4245
+ columnsWithFilter?: string[];
4246
+ /**
4247
+ * Color (hex / CSS) of the dot rendered for filtered columns. Defaults
4248
+ * to the brand cyan #00E5CC so consumers don't have to think about it.
4249
+ */
4250
+ filterDotColor?: string;
4221
4251
  }
4222
4252
  /**
4223
4253
  * Flattened task with hierarchy info
@@ -4254,7 +4284,7 @@ declare const CUSTOM_FIELD_TYPES: Array<{
4254
4284
  /**
4255
4285
  * Main ListView Component
4256
4286
  */
4257
- declare function ListView({ tasks, config, callbacks, isLoading, error, className, style, availableUsers, customFields, toolbarRightContent, }: ListViewProps): react_jsx_runtime.JSX.Element;
4287
+ declare function ListView({ tasks, config, callbacks, isLoading, error, className, style, availableUsers, customFields, toolbarRightContent, onColumnHeaderClick, columnsWithFilter, filterDotColor, }: ListViewProps): react_jsx_runtime.JSX.Element;
4258
4288
 
4259
4289
  /**
4260
4290
  * ListView Themes
package/dist/index.d.ts CHANGED
@@ -394,6 +394,13 @@ interface GanttConfig {
394
394
  * successful run.
395
395
  */
396
396
  onExportExcel?: () => Promise<void>;
397
+ /**
398
+ * Fires whenever the TODAY marker enters or leaves the visible
399
+ * timeline viewport (after horizontal scroll, zoom, timeScale change,
400
+ * or initial mount). Lets consumer apps render a floating "go to
401
+ * today" affordance that only shows up when relevant.
402
+ */
403
+ onTodayVisibilityChange?: (visible: boolean) => void;
397
404
  /**
398
405
  * v2.8.0: Fired AFTER a successful export so the consuming app can record
399
406
  * the event in its audit log / analytics. Receives the report type that
@@ -2746,6 +2753,12 @@ interface GanttBoardRef {
2746
2753
  * Similar to: gantt.clearAll()
2747
2754
  */
2748
2755
  clearAll: () => void;
2756
+ /**
2757
+ * Smoothly scroll the timeline so that today's date sits in the
2758
+ * center of the visible viewport. No-op when today falls outside
2759
+ * the project's date range.
2760
+ */
2761
+ scrollToToday: () => void;
2749
2762
  }
2750
2763
 
2751
2764
  interface GanttBoardProps {
@@ -4218,6 +4231,23 @@ interface ListViewProps {
4218
4231
  toolbarRightContent?: ReactNode;
4219
4232
  /** v2.5.0: Render content just before the Create Task button (e.g., share/export dropdown) */
4220
4233
  toolbarEndContent?: ReactNode;
4234
+ /**
4235
+ * Fires when the user clicks anywhere on a column header. The consumer
4236
+ * renders its own dropdown (Sort + Filter + Hide) anchored to `anchorRect`.
4237
+ * If unset, the header keeps the legacy behavior (click on the sort icon
4238
+ * cycles asc/desc/clear).
4239
+ */
4240
+ onColumnHeaderClick?: (columnId: string, anchorRect: DOMRect) => void;
4241
+ /**
4242
+ * IDs of columns that currently have an active filter applied. Each one
4243
+ * gets a small accent dot rendered next to its label.
4244
+ */
4245
+ columnsWithFilter?: string[];
4246
+ /**
4247
+ * Color (hex / CSS) of the dot rendered for filtered columns. Defaults
4248
+ * to the brand cyan #00E5CC so consumers don't have to think about it.
4249
+ */
4250
+ filterDotColor?: string;
4221
4251
  }
4222
4252
  /**
4223
4253
  * Flattened task with hierarchy info
@@ -4254,7 +4284,7 @@ declare const CUSTOM_FIELD_TYPES: Array<{
4254
4284
  /**
4255
4285
  * Main ListView Component
4256
4286
  */
4257
- declare function ListView({ tasks, config, callbacks, isLoading, error, className, style, availableUsers, customFields, toolbarRightContent, }: ListViewProps): react_jsx_runtime.JSX.Element;
4287
+ declare function ListView({ tasks, config, callbacks, isLoading, error, className, style, availableUsers, customFields, toolbarRightContent, onColumnHeaderClick, columnsWithFilter, filterDotColor, }: ListViewProps): react_jsx_runtime.JSX.Element;
4258
4288
 
4259
4289
  /**
4260
4290
  * ListView Themes