@coolon/angular-ui-powerups 16.1.0-alpha.209 → 16.1.0-alpha.211

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.
@@ -2,10 +2,17 @@ import { ChangeDetectorRef, InjectionToken, InjectOptions, OnDestroy, OnInit, Pr
2
2
  import { GarbageCollector, HasValue } from '@coolon/pectin';
3
3
  import { HighlightTextModelDirective } from "../directives/highlight-text-model.directive";
4
4
  import * as i0 from "@angular/core";
5
- export declare const AUP_IN_DETACHED_CHANGE_DETECTION_PARENT: InjectionToken<boolean>;
5
+ /**
6
+ * Provide the detached parent component's ChangeDetectorRef so that child components in a
7
+ * detached CD subtree can batch-schedule a single parent sweep instead of each independently
8
+ * scheduling their own detectChanges() microtask. Its presence also signals that the component
9
+ * is inside a detached-CD parent.
10
+ */
11
+ export declare const AUP_DETACHED_PARENT_CDR: InjectionToken<ChangeDetectorRef>;
6
12
  export declare class DisposableComponent extends GarbageCollector implements OnInit, OnDestroy {
7
13
  #private;
8
14
  readonly trackById: import("@angular/core").TrackByFunction<any>;
15
+ static pendingParentSweep: Set<ChangeDetectorRef> | null;
9
16
  protected readonly cdr: ChangeDetectorRef;
10
17
  protected readonly highlightContext?: HighlightTextModelDirective;
11
18
  constructor();
@@ -22,6 +29,7 @@ export declare class DisposableComponent extends GarbageCollector implements OnI
22
29
  */
23
30
  protected viewStateDependsOn(...models: HasValue<any>[]): void;
24
31
  protected markForCheck(): void;
32
+ static scheduleParentSweep(parentCdr: ChangeDetectorRef): void;
25
33
  static ɵfac: i0.ɵɵFactoryDeclaration<DisposableComponent, never>;
26
34
  static ɵdir: i0.ɵɵDirectiveDeclaration<DisposableComponent, never, never, {}, {}, never, never, false, never>;
27
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.209",
3
+ "version": "16.1.0-alpha.211",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",