@seniorsistemas/components-ai 2.5.0 → 2.5.1

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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, TemplateRef, ElementRef, AfterViewInit, OnDestroy, NgZone } from '@angular/core';
1
+ import { EventEmitter, OnInit, TemplateRef, ElementRef, AfterViewInit, OnDestroy, NgZone, ChangeDetectorRef } from '@angular/core';
2
2
  import { CdkDragDrop, CdkDragMove } from '@angular/cdk/drag-drop';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface KanbanColumn {
@@ -31,6 +31,8 @@ export interface KanbanDropEvent {
31
31
  }
32
32
  export declare class KanbanBoardComponent implements OnInit, AfterViewInit, OnDestroy {
33
33
  private ngZone;
34
+ private elRef;
35
+ private cdr;
34
36
  columns: KanbanColumn[];
35
37
  allowReorder: boolean;
36
38
  allowDrag: boolean;
@@ -63,15 +65,25 @@ export declare class KanbanBoardComponent implements OnInit, AfterViewInit, OnDe
63
65
  columnIds: string[];
64
66
  hasHorizontalScroll: boolean;
65
67
  scrollPosition: 'start' | 'middle' | 'end';
68
+ /** Dynamic top offset (in px) for scroll hint buttons so they follow vertical scroll. */
69
+ scrollHintTopOffset: number | null;
66
70
  private selectedIds;
67
71
  private autoScrollActive;
68
72
  private autoScrollSpeed;
69
73
  private autoScrollRaf;
70
74
  private resizeObserver?;
71
- constructor(ngZone: NgZone);
75
+ constructor(ngZone: NgZone, elRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
72
76
  ngOnInit(): void;
73
77
  ngAfterViewInit(): void;
74
78
  ngOnDestroy(): void;
79
+ onWindowScroll(): void;
80
+ onWindowResize(): void;
81
+ /**
82
+ * Calculates the top offset for the scroll hint buttons so they stay visible
83
+ * as the user scrolls vertically. Uses the board's bounding rect relative to
84
+ * the viewport to determine the ideal vertical center within the visible area.
85
+ */
86
+ private updateScrollHintPosition;
75
87
  ngOnChanges(): void;
76
88
  private updateColumnIds;
77
89
  isSelected(item: KanbanItem): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seniorsistemas/components-ai",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Biblioteca de componentes reutilizáveis com IA para aplicações Angular da Senior Sistemas",
5
5
  "keywords": [
6
6
  "angular",