@mozaic-ds/angular 2.1.2 → 2.1.3
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/package.json
CHANGED
|
@@ -2316,7 +2316,11 @@ declare function isFlatOption<T>(item: FlatItem<T>): item is FlatOption<T>;
|
|
|
2316
2316
|
declare class MozComboboxComponent<T = string> implements ControlValueAccessor {
|
|
2317
2317
|
private readonly _doc;
|
|
2318
2318
|
private readonly _overlay;
|
|
2319
|
-
private readonly
|
|
2319
|
+
private readonly _appRef;
|
|
2320
|
+
/** rAF handle for the scroll-driven change-detection loop (see _kickViewportTick). */
|
|
2321
|
+
private _viewportTickRaf;
|
|
2322
|
+
/** Timestamp of the last viewport scroll event, used to stop the tick loop when idle. */
|
|
2323
|
+
private _lastViewportScrollTs;
|
|
2320
2324
|
/**
|
|
2321
2325
|
* No-op scroll strategy: the dropdown embeds a CDK virtual-scroll viewport,
|
|
2322
2326
|
* which is a global `CdkScrollable`. With the default `reposition` strategy,
|
|
@@ -2465,6 +2469,15 @@ declare class MozComboboxComponent<T = string> implements ControlValueAccessor {
|
|
|
2465
2469
|
onSearchKeydown(event: KeyboardEvent): void;
|
|
2466
2470
|
onOverlayOutsideClick(): void;
|
|
2467
2471
|
onOverlayAttached(): void;
|
|
2472
|
+
/**
|
|
2473
|
+
* Drive change detection for a short window after a viewport scroll so the
|
|
2474
|
+
* CDK virtual-scroll viewport (inside the overlay portal) applies its content
|
|
2475
|
+
* transform in zoneless mode. Runs at most one rAF loop at a time; each new
|
|
2476
|
+
* scroll event extends the window, and the loop stops ~200ms after the last
|
|
2477
|
+
* scroll. `tick()` is guarded because it throws if called during an ongoing
|
|
2478
|
+
* change-detection pass (it never is here — rAF callbacks run outside CD).
|
|
2479
|
+
*/
|
|
2480
|
+
private _kickViewportTick;
|
|
2468
2481
|
/** Coerce the current value into an array (safe for .some/.filter/.every). */
|
|
2469
2482
|
private _currentValueAsArray;
|
|
2470
2483
|
writeValue(val: T | T[] | null): void;
|