@toolbox-web/grid 2.4.0 → 2.4.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.
@@ -12,6 +12,8 @@ export interface AriaState {
12
12
  ariaLabel: string | undefined;
13
13
  /** Last set aria-describedby */
14
14
  ariaDescribedBy: string | undefined;
15
+ /** Last source row count announced via `dataLoaded`; used to suppress duplicate announcements */
16
+ lastAnnouncedSourceCount: number;
15
17
  }
16
18
  /**
17
19
  * Create initial ARIA state.
@@ -69,3 +71,14 @@ export declare function announce(gridEl: HTMLElement, message: string): void;
69
71
  * @param args - Arguments to pass to the message function
70
72
  */
71
73
  export declare function getA11yMessage<K extends keyof A11yMessages>(gridEl: HTMLElement, key: K, ...args: Parameters<A11yMessages[K]>): string;
74
+ /**
75
+ * Announce a `dataLoaded` message — but only when the source row count has
76
+ * actually changed since the last announcement. This prevents announcement
77
+ * spam from internal `data-change` emits triggered by sort/filter/edit, which
78
+ * have their own dedicated announcements.
79
+ *
80
+ * @param gridEl - The grid host element
81
+ * @param state - ARIA state (tracks last announced count)
82
+ * @param sourceRowCount - Current source row count
83
+ */
84
+ export declare function announceDataLoaded(gridEl: HTMLElement, state: AriaState, sourceRowCount: number): void;