@coolon/angular-ui-powerups 16.1.0-alpha.209 → 16.1.0-alpha.210
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/esm2022/lib/components/disposable-component.mjs +32 -9
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +5 -5
- package/fesm2022/coolon-angular-ui-powerups.mjs +34 -11
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/disposable-component.d.ts +9 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
}
|