@coolon/angular-ui-powerups 16.1.0-alpha.242 → 16.1.0-alpha.245
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/commands/group/popup-menu/more-menu.component.mjs +3 -3
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +3 -3
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +2 -2
- package/esm2022/lib/components/loadable-component.mjs +80 -18
- package/fesm2022/coolon-angular-ui-powerups.mjs +85 -23
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/loadable-component.d.ts +37 -8
- package/package.json +2 -2
|
@@ -34,7 +34,7 @@ export class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
|
34
34
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: MoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
35
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MoreMenuComponent, selector: "aup-more-menu", inputs: { tooltip: "tooltip" }, providers: [
|
|
36
36
|
{ provide: POPUP_CONTAINER, useExisting: MoreMenuComponent }
|
|
37
|
-
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
37
|
+
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i3.PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: i4.ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton"] }] });
|
|
38
38
|
}
|
|
39
39
|
__decorate([
|
|
40
40
|
StoreInValueModel(),
|
|
@@ -44,8 +44,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
44
44
|
type: Component,
|
|
45
45
|
args: [{ selector: 'aup-more-menu', providers: [
|
|
46
46
|
{ provide: POPUP_CONTAINER, useExisting: MoreMenuComponent }
|
|
47
|
-
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
47
|
+
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n" }]
|
|
48
48
|
}], ctorParameters: function () { return []; }, propDecorators: { tooltip: [{
|
|
49
49
|
type: Input
|
|
50
50
|
}] } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9yZS1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvY29t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vZiBzZXBhcmF0b3JzKS4gT3RoZXJ3aXNlIGNsaWNraW5nIHRoZSAzLWRvdFxuICAgICAgIG9wZW5zIGFuIGVtcHR5IHBvcHVwIGNhcmQg4oCUIHdvcnNlIFVYIHRoYW4gXCJubyB0cmlnZ2VyIGF0IGFsbFwiLiAtLT5cbiAgPGF1cC1idXR0b24tcmVuZGVyZXIgKm5nSWY9XCJzdWJNZW51LnJlbmRlcmFibGVDaGlsZHJlbi5sZW5ndGhcIlxuICAgICAgICAgICAgICAgICAgICAgICBbZmFjZXMkXT1cImZhY2VzJFwiIFttYXRNZW51VHJpZ2dlckZvcl09XCJzdWJNZW51Lm1lbnVDb21wb25lbnRcIlxuICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwiJGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgW2ZvcmNlUmVuZGVyQXNCdXR0b25dPVwidHJ1ZVwiXG4gID48L2F1cC1idXR0b24tcmVuZGVyZXI+XG48L25nLWNvbnRhaW5lcj5cbiJdfQ==
|
|
@@ -27,7 +27,7 @@ export class PopupMenuComponent extends AbstractPopupMenuComponent {
|
|
|
27
27
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
28
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupMenuComponent, selector: "aup-popup-menu", inputs: { face$: "face$", face: "face" }, providers: [
|
|
29
29
|
{ provide: POPUP_CONTAINER, useExisting: PopupMenuComponent }
|
|
30
|
-
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
30
|
+
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i3.PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: i4.ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton"] }] });
|
|
31
31
|
}
|
|
32
32
|
__decorate([
|
|
33
33
|
DelegateToValueModel('faceModelDelegate'),
|
|
@@ -41,10 +41,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{ selector: 'aup-popup-menu', providers: [
|
|
43
43
|
{ provide: POPUP_CONTAINER, useExisting: PopupMenuComponent }
|
|
44
|
-
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
44
|
+
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n" }]
|
|
45
45
|
}], ctorParameters: function () { return []; }, propDecorators: { face$: [{
|
|
46
46
|
type: Input
|
|
47
47
|
}], face: [{
|
|
48
48
|
type: Input
|
|
49
49
|
}] } });
|
|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GJlIGZpbHRlcmVkIG91dCAoYWxsIGNvbW1hbmRzIHZpc2libGVXaGlsZS1cbiAgICAgICBnYXRlZCB0byBmYWxzZSwgb3IgdGhlIG1lbnUgaXMgY29tcG9zZWQgc29sZWx5IG9mIHNlcGFyYXRvcnMpLiBPdGhlcndpc2UgY2xpY2tpbmcgdGhlIDMtZG90XG4gICAgICAgb3BlbnMgYW4gZW1wdHkgcG9wdXAgY2FyZCDigJQgd29yc2UgVVggdGhhbiBcIm5vIHRyaWdnZXIgYXQgYWxsXCIuIC0tPlxuICA8YXVwLWJ1dHRvbi1yZW5kZXJlciAqbmdJZj1cInN1Yk1lbnUucmVuZGVyYWJsZUNoaWxkcmVuLmxlbmd0aFwiXG4gICAgICAgICAgICAgICAgICAgICAgIFtmYWNlcyRdPVwiZmFjZXMkXCIgW21hdE1lbnVUcmlnZ2VyRm9yXT1cInN1Yk1lbnUubWVudUNvbXBvbmVudFwiXG4gICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCIkZXZlbnQuc3RvcFByb3BhZ2F0aW9uKClcIlxuICAgICAgICAgICAgICAgICAgICAgICBbZm9yY2VSZW5kZXJBc0J1dHRvbl09XCJ0cnVlXCJcbiAgPjwvYXVwLWJ1dHRvbi1yZW5kZXJlcj5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -6,7 +6,7 @@ export class EmptyStateComponent {
|
|
|
6
6
|
<div class="container">
|
|
7
7
|
<ng-content></ng-content>
|
|
8
8
|
</div>
|
|
9
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}\n"] });
|
|
9
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}:host .container>*:last-child{margin-bottom:0}\n"] });
|
|
10
10
|
}
|
|
11
11
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: EmptyStateComponent, decorators: [{
|
|
12
12
|
type: Component,
|
|
@@ -14,6 +14,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
14
14
|
<div class="container">
|
|
15
15
|
<ng-content></ng-content>
|
|
16
16
|
</div>
|
|
17
|
-
`, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}\n"] }]
|
|
17
|
+
`, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}:host .container>*:last-child{margin-bottom:0}\n"] }]
|
|
18
18
|
}] });
|
|
19
19
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wdHktc3RhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy9lbXB0eS1zdGF0ZS9lbXB0eS1zdGF0ZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFXeEMsTUFBTSxPQUFPLG1CQUFtQjt1R0FBbkIsbUJBQW1COzJGQUFuQixtQkFBbUIsdURBUHBCOzs7O0dBSVQ7OzJGQUdVLG1CQUFtQjtrQkFUL0IsU0FBUzsrQkFDRSxpQkFBaUIsWUFDakI7Ozs7R0FJVCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q29tcG9uZW50fSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYXVwLWVtcHR5LXN0YXRlJyxcbiAgdGVtcGxhdGU6IGBcbiAgICAgIDxkaXYgY2xhc3M9XCJjb250YWluZXJcIj5cbiAgICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgICA8L2Rpdj5cbiAgYCxcbiAgc3R5bGVVcmxzOiBbJy4vZW1wdHktc3RhdGUuY29tcG9uZW50LnNjc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBFbXB0eVN0YXRlQ29tcG9uZW50ICB7XG5cbn1cbiJdfQ==
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Directive, inject } from '@angular/core';
|
|
2
|
-
import { LoadingStateTracker, MutableValueModel } from '@coolon/pectin';
|
|
2
|
+
import { assert, Dsl, HasValue, LoadingStateTracker, MutableValueModel, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from './disposable-component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export class LoadableComponent extends DisposableComponent {
|
|
6
6
|
#_loaded$ = new MutableValueModel();
|
|
7
7
|
#asyncLoadables = [];
|
|
8
8
|
#awaitedLoadables = [];
|
|
9
|
+
#gatedLoadables = [];
|
|
9
10
|
loadTracker;
|
|
10
11
|
constructor() {
|
|
11
12
|
super();
|
|
@@ -20,18 +21,16 @@ export class LoadableComponent extends DisposableComponent {
|
|
|
20
21
|
}
|
|
21
22
|
loadDependencies() {
|
|
22
23
|
this.loadTracker?.triggered();
|
|
24
|
+
// Non-blocking loadables (`{ wait: false }` and gated ones) load independently and never gate
|
|
25
|
+
// `loaded$` — fire them up front so they don't wait on the blocking dependencies below.
|
|
26
|
+
this.#asyncLoadables.forEach((it) => this.#fireLoad(it));
|
|
27
|
+
this.#gatedLoadables.forEach(({ loadable, gate }) => this.#wireGate(loadable, gate));
|
|
23
28
|
if (this.#awaitedLoadables.length > 0) {
|
|
24
|
-
Promise.all(this.#awaitedLoadables.map((it) => {
|
|
25
|
-
this.loadTracker?.dependencyTriggered(it);
|
|
26
|
-
return it
|
|
27
|
-
.ensureLoaded()
|
|
28
|
-
.then(() => this.loadTracker?.dependencyFinished(it))
|
|
29
|
-
.catch((e) => this.loadTracker?.dependencyFailed(it, e));
|
|
30
|
-
})).then(() => {
|
|
29
|
+
Promise.all(this.#awaitedLoadables.map((it) => this.#fireLoad(it))).then(() => {
|
|
31
30
|
this.#_loaded$.value = true;
|
|
32
31
|
this.loadTracker?.finished();
|
|
33
32
|
}).catch(e => {
|
|
34
|
-
this.loadTracker
|
|
33
|
+
this.loadTracker?.failed(e);
|
|
35
34
|
throw e;
|
|
36
35
|
});
|
|
37
36
|
}
|
|
@@ -40,23 +39,64 @@ export class LoadableComponent extends DisposableComponent {
|
|
|
40
39
|
this.loadTracker?.finished();
|
|
41
40
|
}
|
|
42
41
|
}
|
|
42
|
+
#fireLoad(loadable) {
|
|
43
|
+
this.loadTracker?.dependencyTriggered(loadable);
|
|
44
|
+
return loadable
|
|
45
|
+
.ensureLoaded()
|
|
46
|
+
.then(() => this.loadTracker?.dependencyFinished(loadable))
|
|
47
|
+
.catch((e) => this.loadTracker?.dependencyFailed(loadable, e));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Wires a gated load. Fires immediately if the gate is already satisfied, and — for a reactive
|
|
51
|
+
* model gate — again whenever it becomes satisfied (supporting live permission grants). A bare
|
|
52
|
+
* predicate gate is evaluated once. `ensureLoaded()` is memoised, so re-firing is a safe no-op.
|
|
53
|
+
*/
|
|
54
|
+
#wireGate(loadable, gate) {
|
|
55
|
+
if (gate.kind === 'predicate') {
|
|
56
|
+
if (gate.predicate())
|
|
57
|
+
this.#fireLoad(loadable);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const { when } = Dsl.disposeWith(this);
|
|
61
|
+
const fire = () => this.#fireLoad(loadable);
|
|
62
|
+
if (gate.negate) {
|
|
63
|
+
if (!gate.model$.value)
|
|
64
|
+
fire();
|
|
65
|
+
when(gate.model$).becomesFalsey(fire);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
if (gate.model$.value)
|
|
69
|
+
fire();
|
|
70
|
+
when(gate.model$).becomesTruthy(fire);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
43
73
|
injectLoadable(token, options) {
|
|
44
74
|
return this.registerLoadable(inject(token, options), options);
|
|
45
75
|
}
|
|
46
76
|
registerLoadable(loadable, options) {
|
|
47
|
-
const
|
|
77
|
+
const gate = LoadableComponent.normalizeGate(options);
|
|
78
|
+
if (gate && options?.wait === true) {
|
|
79
|
+
throw new Error("LoadableComponent.registerLoadable: 'wait: true' cannot be combined with 'asLongAs'/'unless' — " +
|
|
80
|
+
'a gated load is conditional and therefore always non-blocking.');
|
|
81
|
+
}
|
|
82
|
+
const shouldWait = !gate && (!options || options.wait === true);
|
|
48
83
|
if (shouldWait)
|
|
49
84
|
this.loadTracker?.registerDependency(loadable);
|
|
50
85
|
if (this.loaded$.value) {
|
|
51
|
-
|
|
86
|
+
// Registered after the component already finished loading (e.g. a lazily-created child).
|
|
87
|
+
if (gate)
|
|
88
|
+
this.#wireGate(loadable, gate);
|
|
89
|
+
else
|
|
90
|
+
this.#fireLoad(loadable);
|
|
91
|
+
}
|
|
92
|
+
else if (gate) {
|
|
93
|
+
this.#gatedLoadables.push({ loadable, gate });
|
|
94
|
+
}
|
|
95
|
+
else if (shouldWait) {
|
|
96
|
+
this.#awaitedLoadables.push(loadable);
|
|
52
97
|
}
|
|
53
98
|
else {
|
|
54
|
-
|
|
55
|
-
this.#awaitedLoadables.push(loadable);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.#asyncLoadables.push(loadable);
|
|
59
|
-
}
|
|
99
|
+
this.#asyncLoadables.push(loadable);
|
|
60
100
|
}
|
|
61
101
|
return loadable;
|
|
62
102
|
}
|
|
@@ -66,4 +106,26 @@ export class LoadableComponent extends DisposableComponent {
|
|
|
66
106
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadableComponent, decorators: [{
|
|
67
107
|
type: Directive
|
|
68
108
|
}], ctorParameters: function () { return []; } });
|
|
69
|
-
|
|
109
|
+
(function (LoadableComponent) {
|
|
110
|
+
/**
|
|
111
|
+
* Normalises `asLongAs`/`unless` into a {@link Gate} (or `undefined` when neither is given).
|
|
112
|
+
* Model conditions stay observable so they can be watched reactively; `unless` is represented by
|
|
113
|
+
* `negate: true` (for models) or a negated predicate. Throws if both options are supplied.
|
|
114
|
+
*/
|
|
115
|
+
function normalizeGate(options) {
|
|
116
|
+
// oneOrNoneOf only runs the callback when exactly one of asLongAs/unless is set (and throws if
|
|
117
|
+
// both are), so `options` and the chosen `source` are non-nil inside it.
|
|
118
|
+
return assert.oneOrNoneOf(options, 'asLongAs', 'unless', () => {
|
|
119
|
+
const opts = options;
|
|
120
|
+
const usingUnless = opts.asLongAs == null;
|
|
121
|
+
const source = usingUnless ? opts.unless : opts.asLongAs;
|
|
122
|
+
if (source instanceof ValueModel) {
|
|
123
|
+
return { kind: 'model', model$: source, negate: usingUnless };
|
|
124
|
+
}
|
|
125
|
+
const predicate = source instanceof HasValue ? () => source.value : source;
|
|
126
|
+
return { kind: 'predicate', predicate: usingUnless ? () => !predicate() : predicate };
|
|
127
|
+
}, undefined);
|
|
128
|
+
}
|
|
129
|
+
LoadableComponent.normalizeGate = normalizeGate;
|
|
130
|
+
})(LoadableComponent || (LoadableComponent = {}));
|
|
131
|
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gJ2FzTG9uZ0FzJywgJ3VubGVzcycsICgpID0+IHtcbiAgICAgIGNvbnN0IG9wdHMgPSBvcHRpb25zIGFzIFJlZ2lzdGVyT3B0aW9ucztcbiAgICAgIGNvbnN0IHVzaW5nVW5sZXNzID0gb3B0cy5hc0xvbmdBcyA9PSBudWxsO1xuICAgICAgY29uc3Qgc291cmNlID0gdXNpbmdVbmxlc3MgPyBvcHRzLnVubGVzcyA6IG9wdHMuYXNMb25nQXM7XG4gICAgICBpZiAoc291cmNlIGluc3RhbmNlb2YgVmFsdWVNb2RlbCkge1xuICAgICAgICByZXR1cm4geyBraW5kOiAnbW9kZWwnLCBtb2RlbCQ6IHNvdXJjZSBhcyBWYWx1ZU1vZGVsPGJvb2xlYW4+LCBuZWdhdGU6IHVzaW5nVW5sZXNzIH07XG4gICAgICB9XG4gICAgICBjb25zdCBwcmVkaWNhdGUgPSBzb3VyY2UgaW5zdGFuY2VvZiBIYXNWYWx1ZSA/ICgpID0+IHNvdXJjZS52YWx1ZSA6IChzb3VyY2UgYXMgKCkgPT4gYm9vbGVhbik7XG4gICAgICByZXR1cm4geyBraW5kOiAncHJlZGljYXRlJywgcHJlZGljYXRlOiB1c2luZ1VubGVzcyA/ICgpID0+ICFwcmVkaWNhdGUoKSA6IHByZWRpY2F0ZSB9O1xuICAgIH0sIHVuZGVmaW5lZCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -41,7 +41,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|
|
41
41
|
import * as i4$2 from 'ng-table-virtual-scroll';
|
|
42
42
|
import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
|
|
43
43
|
import * as i1$3 from '@coolon/pectin';
|
|
44
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, Trace, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, SingleSelectionModel, DirtyTrackingForm } from '@coolon/pectin';
|
|
44
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, Trace, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, HasValue, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, SingleSelectionModel, DirtyTrackingForm } from '@coolon/pectin';
|
|
45
45
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
46
46
|
import * as i1 from '@angular/platform-browser';
|
|
47
47
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
@@ -1894,7 +1894,7 @@ class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
|
1894
1894
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: MoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1895
1895
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MoreMenuComponent, selector: "aup-more-menu", inputs: { tooltip: "tooltip" }, providers: [
|
|
1896
1896
|
{ provide: POPUP_CONTAINER, useExisting: MoreMenuComponent }
|
|
1897
|
-
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
1897
|
+
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton"] }] });
|
|
1898
1898
|
}
|
|
1899
1899
|
__decorate([
|
|
1900
1900
|
StoreInValueModel(),
|
|
@@ -1904,7 +1904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1904
1904
|
type: Component,
|
|
1905
1905
|
args: [{ selector: 'aup-more-menu', providers: [
|
|
1906
1906
|
{ provide: POPUP_CONTAINER, useExisting: MoreMenuComponent }
|
|
1907
|
-
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
1907
|
+
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n" }]
|
|
1908
1908
|
}], ctorParameters: function () { return []; }, propDecorators: { tooltip: [{
|
|
1909
1909
|
type: Input
|
|
1910
1910
|
}] } });
|
|
@@ -1927,7 +1927,7 @@ class PopupMenuComponent extends AbstractPopupMenuComponent {
|
|
|
1927
1927
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1928
1928
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupMenuComponent, selector: "aup-popup-menu", inputs: { face$: "face$", face: "face" }, providers: [
|
|
1929
1929
|
{ provide: POPUP_CONTAINER, useExisting: PopupMenuComponent }
|
|
1930
|
-
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
1930
|
+
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton"] }] });
|
|
1931
1931
|
}
|
|
1932
1932
|
__decorate([
|
|
1933
1933
|
DelegateToValueModel('faceModelDelegate'),
|
|
@@ -1941,7 +1941,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1941
1941
|
type: Component,
|
|
1942
1942
|
args: [{ selector: 'aup-popup-menu', providers: [
|
|
1943
1943
|
{ provide: POPUP_CONTAINER, useExisting: PopupMenuComponent }
|
|
1944
|
-
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <aup-button-renderer [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent
|
|
1944
|
+
], template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n" }]
|
|
1945
1945
|
}], ctorParameters: function () { return []; }, propDecorators: { face$: [{
|
|
1946
1946
|
type: Input
|
|
1947
1947
|
}], face: [{
|
|
@@ -1954,7 +1954,7 @@ class EmptyStateComponent {
|
|
|
1954
1954
|
<div class="container">
|
|
1955
1955
|
<ng-content></ng-content>
|
|
1956
1956
|
</div>
|
|
1957
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}\n"] });
|
|
1957
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}:host .container>*:last-child{margin-bottom:0}\n"] });
|
|
1958
1958
|
}
|
|
1959
1959
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: EmptyStateComponent, decorators: [{
|
|
1960
1960
|
type: Component,
|
|
@@ -1962,7 +1962,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1962
1962
|
<div class="container">
|
|
1963
1963
|
<ng-content></ng-content>
|
|
1964
1964
|
</div>
|
|
1965
|
-
`, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}\n"] }]
|
|
1965
|
+
`, styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;font-weight:300}:host .container{display:flex;flex-direction:column;align-items:stretch;padding:var(--padding, var(--aup-default-padding));border:var(--border, 2px dashed rgba(0, 0, 0, .2));border-radius:5px;font-size:inherit;font-weight:inherit}:host .container>*:last-child{margin-bottom:0}\n"] }]
|
|
1966
1966
|
}] });
|
|
1967
1967
|
|
|
1968
1968
|
class FocusContainerComponent extends DisposableComponent {
|
|
@@ -5392,6 +5392,7 @@ class LoadableComponent extends DisposableComponent {
|
|
|
5392
5392
|
#_loaded$ = new MutableValueModel();
|
|
5393
5393
|
#asyncLoadables = [];
|
|
5394
5394
|
#awaitedLoadables = [];
|
|
5395
|
+
#gatedLoadables = [];
|
|
5395
5396
|
loadTracker;
|
|
5396
5397
|
constructor() {
|
|
5397
5398
|
super();
|
|
@@ -5406,18 +5407,16 @@ class LoadableComponent extends DisposableComponent {
|
|
|
5406
5407
|
}
|
|
5407
5408
|
loadDependencies() {
|
|
5408
5409
|
this.loadTracker?.triggered();
|
|
5410
|
+
// Non-blocking loadables (`{ wait: false }` and gated ones) load independently and never gate
|
|
5411
|
+
// `loaded$` — fire them up front so they don't wait on the blocking dependencies below.
|
|
5412
|
+
this.#asyncLoadables.forEach((it) => this.#fireLoad(it));
|
|
5413
|
+
this.#gatedLoadables.forEach(({ loadable, gate }) => this.#wireGate(loadable, gate));
|
|
5409
5414
|
if (this.#awaitedLoadables.length > 0) {
|
|
5410
|
-
Promise.all(this.#awaitedLoadables.map((it) => {
|
|
5411
|
-
this.loadTracker?.dependencyTriggered(it);
|
|
5412
|
-
return it
|
|
5413
|
-
.ensureLoaded()
|
|
5414
|
-
.then(() => this.loadTracker?.dependencyFinished(it))
|
|
5415
|
-
.catch((e) => this.loadTracker?.dependencyFailed(it, e));
|
|
5416
|
-
})).then(() => {
|
|
5415
|
+
Promise.all(this.#awaitedLoadables.map((it) => this.#fireLoad(it))).then(() => {
|
|
5417
5416
|
this.#_loaded$.value = true;
|
|
5418
5417
|
this.loadTracker?.finished();
|
|
5419
5418
|
}).catch(e => {
|
|
5420
|
-
this.loadTracker
|
|
5419
|
+
this.loadTracker?.failed(e);
|
|
5421
5420
|
throw e;
|
|
5422
5421
|
});
|
|
5423
5422
|
}
|
|
@@ -5426,23 +5425,64 @@ class LoadableComponent extends DisposableComponent {
|
|
|
5426
5425
|
this.loadTracker?.finished();
|
|
5427
5426
|
}
|
|
5428
5427
|
}
|
|
5428
|
+
#fireLoad(loadable) {
|
|
5429
|
+
this.loadTracker?.dependencyTriggered(loadable);
|
|
5430
|
+
return loadable
|
|
5431
|
+
.ensureLoaded()
|
|
5432
|
+
.then(() => this.loadTracker?.dependencyFinished(loadable))
|
|
5433
|
+
.catch((e) => this.loadTracker?.dependencyFailed(loadable, e));
|
|
5434
|
+
}
|
|
5435
|
+
/**
|
|
5436
|
+
* Wires a gated load. Fires immediately if the gate is already satisfied, and — for a reactive
|
|
5437
|
+
* model gate — again whenever it becomes satisfied (supporting live permission grants). A bare
|
|
5438
|
+
* predicate gate is evaluated once. `ensureLoaded()` is memoised, so re-firing is a safe no-op.
|
|
5439
|
+
*/
|
|
5440
|
+
#wireGate(loadable, gate) {
|
|
5441
|
+
if (gate.kind === 'predicate') {
|
|
5442
|
+
if (gate.predicate())
|
|
5443
|
+
this.#fireLoad(loadable);
|
|
5444
|
+
return;
|
|
5445
|
+
}
|
|
5446
|
+
const { when } = Dsl.disposeWith(this);
|
|
5447
|
+
const fire = () => this.#fireLoad(loadable);
|
|
5448
|
+
if (gate.negate) {
|
|
5449
|
+
if (!gate.model$.value)
|
|
5450
|
+
fire();
|
|
5451
|
+
when(gate.model$).becomesFalsey(fire);
|
|
5452
|
+
}
|
|
5453
|
+
else {
|
|
5454
|
+
if (gate.model$.value)
|
|
5455
|
+
fire();
|
|
5456
|
+
when(gate.model$).becomesTruthy(fire);
|
|
5457
|
+
}
|
|
5458
|
+
}
|
|
5429
5459
|
injectLoadable(token, options) {
|
|
5430
5460
|
return this.registerLoadable(inject(token, options), options);
|
|
5431
5461
|
}
|
|
5432
5462
|
registerLoadable(loadable, options) {
|
|
5433
|
-
const
|
|
5463
|
+
const gate = LoadableComponent.normalizeGate(options);
|
|
5464
|
+
if (gate && options?.wait === true) {
|
|
5465
|
+
throw new Error("LoadableComponent.registerLoadable: 'wait: true' cannot be combined with 'asLongAs'/'unless' — " +
|
|
5466
|
+
'a gated load is conditional and therefore always non-blocking.');
|
|
5467
|
+
}
|
|
5468
|
+
const shouldWait = !gate && (!options || options.wait === true);
|
|
5434
5469
|
if (shouldWait)
|
|
5435
5470
|
this.loadTracker?.registerDependency(loadable);
|
|
5436
5471
|
if (this.loaded$.value) {
|
|
5437
|
-
|
|
5472
|
+
// Registered after the component already finished loading (e.g. a lazily-created child).
|
|
5473
|
+
if (gate)
|
|
5474
|
+
this.#wireGate(loadable, gate);
|
|
5475
|
+
else
|
|
5476
|
+
this.#fireLoad(loadable);
|
|
5477
|
+
}
|
|
5478
|
+
else if (gate) {
|
|
5479
|
+
this.#gatedLoadables.push({ loadable, gate });
|
|
5480
|
+
}
|
|
5481
|
+
else if (shouldWait) {
|
|
5482
|
+
this.#awaitedLoadables.push(loadable);
|
|
5438
5483
|
}
|
|
5439
5484
|
else {
|
|
5440
|
-
|
|
5441
|
-
this.#awaitedLoadables.push(loadable);
|
|
5442
|
-
}
|
|
5443
|
-
else {
|
|
5444
|
-
this.#asyncLoadables.push(loadable);
|
|
5445
|
-
}
|
|
5485
|
+
this.#asyncLoadables.push(loadable);
|
|
5446
5486
|
}
|
|
5447
5487
|
return loadable;
|
|
5448
5488
|
}
|
|
@@ -5452,6 +5492,28 @@ class LoadableComponent extends DisposableComponent {
|
|
|
5452
5492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadableComponent, decorators: [{
|
|
5453
5493
|
type: Directive
|
|
5454
5494
|
}], ctorParameters: function () { return []; } });
|
|
5495
|
+
(function (LoadableComponent) {
|
|
5496
|
+
/**
|
|
5497
|
+
* Normalises `asLongAs`/`unless` into a {@link Gate} (or `undefined` when neither is given).
|
|
5498
|
+
* Model conditions stay observable so they can be watched reactively; `unless` is represented by
|
|
5499
|
+
* `negate: true` (for models) or a negated predicate. Throws if both options are supplied.
|
|
5500
|
+
*/
|
|
5501
|
+
function normalizeGate(options) {
|
|
5502
|
+
// oneOrNoneOf only runs the callback when exactly one of asLongAs/unless is set (and throws if
|
|
5503
|
+
// both are), so `options` and the chosen `source` are non-nil inside it.
|
|
5504
|
+
return assert.oneOrNoneOf(options, 'asLongAs', 'unless', () => {
|
|
5505
|
+
const opts = options;
|
|
5506
|
+
const usingUnless = opts.asLongAs == null;
|
|
5507
|
+
const source = usingUnless ? opts.unless : opts.asLongAs;
|
|
5508
|
+
if (source instanceof ValueModel) {
|
|
5509
|
+
return { kind: 'model', model$: source, negate: usingUnless };
|
|
5510
|
+
}
|
|
5511
|
+
const predicate = source instanceof HasValue ? () => source.value : source;
|
|
5512
|
+
return { kind: 'predicate', predicate: usingUnless ? () => !predicate() : predicate };
|
|
5513
|
+
}, undefined);
|
|
5514
|
+
}
|
|
5515
|
+
LoadableComponent.normalizeGate = normalizeGate;
|
|
5516
|
+
})(LoadableComponent || (LoadableComponent = {}));
|
|
5455
5517
|
|
|
5456
5518
|
class TableCustomMoreMenuPopupComponent extends LoadableComponent {
|
|
5457
5519
|
_value$ = this.registerDisposable(new DelegatingValueModel());
|