@coolon/angular-ui-powerups 16.1.0-aplpha.165 → 16.1.0-aplpha.167
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/loadable-component.mjs +14 -16
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +10 -4
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +2 -2
- package/esm2022/lib/services/exports.mjs +2 -1
- package/esm2022/lib/services/loading-monitor.mjs +81 -0
- package/fesm2022/coolon-angular-ui-powerups.mjs +99 -19
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/loadable-component.d.ts +1 -0
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +1 -1
- package/lib/services/exports.d.ts +1 -0
- package/lib/services/loading-monitor.d.ts +29 -0
- package/package.json +2 -2
|
@@ -4,6 +4,7 @@ import { Loadable } from './types/loadable';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class LoadableComponent extends DisposableComponent implements OnInit {
|
|
6
6
|
#private;
|
|
7
|
+
constructor();
|
|
7
8
|
get loaded$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
8
9
|
ngOnInit(): void;
|
|
9
10
|
private loadDependencies;
|
package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class DialogInteractionContextFactory extends ModalInteractionCon
|
|
|
12
12
|
readonly matDialogDefaultConfig: MatDialogConfig<any>;
|
|
13
13
|
readonly active: BooleanValueModelChain;
|
|
14
14
|
constructor(dialogService: MatDialog, dialogServiceDefaults: MatDialogConfig<any>, matDialogDefaultConfig: MatDialogConfig<any>);
|
|
15
|
-
createInteractionContext(identifier: string, api: InteractionService.Api
|
|
15
|
+
createInteractionContext(identifier: string, api: InteractionService.Api): InteractionContext;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogInteractionContextFactory, [null, { optional: true; }, { optional: true; }]>;
|
|
17
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogInteractionContextFactory>;
|
|
18
18
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Disposable, GarbageCollector, ValueModel } from '@coolon/pectin';
|
|
2
|
+
import { Loadable as ExternallyLoadable } from '../components/types/loadable';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
type Loadable = Pick<ExternallyLoadable, "loaded$">;
|
|
5
|
+
export declare class LoadingMonitor extends GarbageCollector {
|
|
6
|
+
private readonly watchChanges$;
|
|
7
|
+
readonly trackers: Map<Loadable, LoadingMonitor.Tracker>;
|
|
8
|
+
createTracker(loadable: Loadable & Disposable.Collector): LoadingMonitor.Tracker;
|
|
9
|
+
dumpState(): void;
|
|
10
|
+
watchChanges(watch: boolean): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingMonitor, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingMonitor>;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace LoadingMonitor {
|
|
15
|
+
class Tracker extends GarbageCollector {
|
|
16
|
+
protected readonly root: Loadable;
|
|
17
|
+
protected readonly watchChanges$: ValueModel<boolean>;
|
|
18
|
+
private readonly loadables;
|
|
19
|
+
private readonly rootName;
|
|
20
|
+
constructor(root: Loadable, watchChanges$: ValueModel<boolean>);
|
|
21
|
+
registerLoadableDependency(loadable: Loadable): void;
|
|
22
|
+
dumpState(changed?: {
|
|
23
|
+
loadable: Loadable;
|
|
24
|
+
is: boolean;
|
|
25
|
+
was: boolean;
|
|
26
|
+
}): void;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
3
|
+
"version": "16.1.0-aplpha.167",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.9",
|
|
6
6
|
"@angular/common": "^16.2.9",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@angular/platform-browser-dynamic": "^16.2.9",
|
|
13
13
|
"@angular/material-moment-adapter": "^16.2.10",
|
|
14
14
|
"@angular/router": "^16.2.9",
|
|
15
|
-
"@coolon/pectin": "^5.0.0-alpha.
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.86",
|
|
16
16
|
"fast-typescript-memoize": "^1.1.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|