@coolon/angular-ui-powerups 16.1.0-alpha.308 → 16.1.0-alpha.310
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/place/components/abstract-place-navigation.component.mjs +8 -4
- package/esm2022/lib/place/components/out-of-scope-notice/out-of-scope-notice.component.mjs +15 -0
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +51 -9
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +38 -11
- package/esm2022/lib/place/exports.mjs +3 -1
- package/esm2022/lib/place/guards/place.guard.mjs +36 -6
- package/esm2022/lib/place/place-component.mjs +8 -3
- package/esm2022/lib/place/place-scope.mjs +103 -0
- package/esm2022/lib/place/place.module.mjs +6 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs +240 -26
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/components/abstract-place-navigation.component.d.ts +2 -0
- package/lib/place/components/out-of-scope-notice/out-of-scope-notice.component.d.ts +9 -0
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +12 -2
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +13 -2
- package/lib/place/exports.d.ts +2 -0
- package/lib/place/guards/place.guard.d.ts +5 -1
- package/lib/place/place-component.d.ts +1 -0
- package/lib/place/place-scope.d.ts +86 -0
- package/lib/place/place.module.d.ts +14 -13
- package/package.json +1 -1
|
@@ -14065,6 +14065,104 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
14065
14065
|
}]
|
|
14066
14066
|
}] });
|
|
14067
14067
|
|
|
14068
|
+
/**
|
|
14069
|
+
* Which places the current shell can show. A scope is about layout, not access: an out-of-scope
|
|
14070
|
+
* place is never reported as unauthorised, so the app's authorisation-failure hook (which may sign
|
|
14071
|
+
* the user out) never sees it. See docs/PlaceScopeDesign.md.
|
|
14072
|
+
*
|
|
14073
|
+
* The default scope includes every place. An app sets a narrower one when it switches shells:
|
|
14074
|
+
*
|
|
14075
|
+
* @example
|
|
14076
|
+
* placeScope.set({
|
|
14077
|
+
* includes: [DevicesComponent, JoiningComponent, LoginComponent, BootstrapComponent],
|
|
14078
|
+
* home: () => DevicesComponent,
|
|
14079
|
+
* whenOutOfScope: 'redirect'
|
|
14080
|
+
* });
|
|
14081
|
+
* // and back again
|
|
14082
|
+
* placeScope.reset();
|
|
14083
|
+
*
|
|
14084
|
+
* The app names places; the rest follows from the tree:
|
|
14085
|
+
* - naming a place includes everything below it, unless it is named with {@link PlaceScope.only};
|
|
14086
|
+
* - a place is in scope when it is named or any place below it is, so the ancestors of an
|
|
14087
|
+
* in-scope place are reachable (their guards run first);
|
|
14088
|
+
* - a `redirectToFirstChild` parent is in scope only when one of its children is, even when it is
|
|
14089
|
+
* named with `only`: it has no page of its own, so it needs somewhere to land.
|
|
14090
|
+
*
|
|
14091
|
+
* Places are named by their component class, so a typo or a removed place fails to compile. When the
|
|
14092
|
+
* lazy place graph lands (LazyPlaceGraphDesign.md §5.1), a `PlaceRef` names a place without
|
|
14093
|
+
* importing its component, and {@link PlaceScope.Target} widens to accept one.
|
|
14094
|
+
*/
|
|
14095
|
+
class PlaceScope {
|
|
14096
|
+
// Undefined is the default scope, which includes every place.
|
|
14097
|
+
options;
|
|
14098
|
+
included = new Map();
|
|
14099
|
+
revision$ = new MutableValueModel(0);
|
|
14100
|
+
/** Changes whenever the app sets a scope: anything derived from {@link includes} depends on it. */
|
|
14101
|
+
dependsOn$ = this.revision$.readonly$;
|
|
14102
|
+
set(options) {
|
|
14103
|
+
this.change(options);
|
|
14104
|
+
}
|
|
14105
|
+
/** Back to the default scope, which includes every place. */
|
|
14106
|
+
reset() {
|
|
14107
|
+
this.change(undefined);
|
|
14108
|
+
}
|
|
14109
|
+
includes(definition) {
|
|
14110
|
+
let included = this.included.get(definition);
|
|
14111
|
+
if (included === undefined) {
|
|
14112
|
+
included = definition.redirectToFirstChild && definition.hasChildren()
|
|
14113
|
+
? definition.children.some(child => this.includes(child))
|
|
14114
|
+
: this.names(definition) || definition.children.some(child => this.includes(child));
|
|
14115
|
+
this.included.set(definition, included);
|
|
14116
|
+
}
|
|
14117
|
+
return included;
|
|
14118
|
+
}
|
|
14119
|
+
/** Whether every place a visit passes through is in scope. */
|
|
14120
|
+
includesVisit(visit) {
|
|
14121
|
+
return visit.segments.every(segment => this.includes(segment.placeDefinition));
|
|
14122
|
+
}
|
|
14123
|
+
/** Where an out-of-scope link lands instead. Undefined only for the default scope. */
|
|
14124
|
+
home() {
|
|
14125
|
+
const home = this.options?.home();
|
|
14126
|
+
return typeof home === 'function' ? Visit.goto(home) : home;
|
|
14127
|
+
}
|
|
14128
|
+
/** See {@link PlaceScope.Options.whenOutOfScope}. */
|
|
14129
|
+
get whenOutOfScope() {
|
|
14130
|
+
return this.options?.whenOutOfScope ?? 'notice';
|
|
14131
|
+
}
|
|
14132
|
+
change(options) {
|
|
14133
|
+
// Set before the change fires, so its listeners read the new scope.
|
|
14134
|
+
this.options = options;
|
|
14135
|
+
this.included = new Map();
|
|
14136
|
+
this.revision$.value++;
|
|
14137
|
+
}
|
|
14138
|
+
names(definition) {
|
|
14139
|
+
const options = this.options;
|
|
14140
|
+
return !options || options.includes.some(target => PlaceScope.isOnly(target)
|
|
14141
|
+
? getPlaceDefinition(target.only) === definition
|
|
14142
|
+
: definition.ancestorsAndSelf().includes(getPlaceDefinition(target)));
|
|
14143
|
+
}
|
|
14144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceScope, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14145
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceScope, providedIn: 'root' });
|
|
14146
|
+
}
|
|
14147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceScope, decorators: [{
|
|
14148
|
+
type: Injectable,
|
|
14149
|
+
args: [{ providedIn: 'root' }]
|
|
14150
|
+
}] });
|
|
14151
|
+
(function (PlaceScope) {
|
|
14152
|
+
/**
|
|
14153
|
+
* Names a place without the places below it. A place's tabs are places too, so prefer naming the
|
|
14154
|
+
* place itself; use this for a parent that has a page of its own and children the shell can't show.
|
|
14155
|
+
*/
|
|
14156
|
+
function only(place) {
|
|
14157
|
+
return { only: place };
|
|
14158
|
+
}
|
|
14159
|
+
PlaceScope.only = only;
|
|
14160
|
+
function isOnly(target) {
|
|
14161
|
+
return typeof target !== 'function';
|
|
14162
|
+
}
|
|
14163
|
+
PlaceScope.isOnly = isOnly;
|
|
14164
|
+
})(PlaceScope || (PlaceScope = {}));
|
|
14165
|
+
|
|
14068
14166
|
// class ParameterChangeInterceptor<T> {
|
|
14069
14167
|
// constructor(parameterDef: ParameterDefinition<T>, model: ValueModel<T>, callback: PlaceComponent.InterceptCallback<T>, options: PlaceComponent.InterceptOptions) {
|
|
14070
14168
|
// }
|
|
@@ -14088,12 +14186,16 @@ class PlaceComponent extends LoadableComponent {
|
|
|
14088
14186
|
// private readonly _parameterChangeInterceptors: ParameterChangeInterceptor<any>[] = [];
|
|
14089
14187
|
placeId;
|
|
14090
14188
|
placeRouter = inject(PlaceRouter);
|
|
14189
|
+
placeScope = inject(PlaceScope);
|
|
14091
14190
|
activatedRoute = inject(ActivatedRoute);
|
|
14092
14191
|
constructor() {
|
|
14093
14192
|
super();
|
|
14094
14193
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
14095
14194
|
when(this._active).becomesTruthy(() => this._notifyPlaceReady());
|
|
14096
|
-
|
|
14195
|
+
// Only the children the current shell can show, following the scope as the app swaps it.
|
|
14196
|
+
this.childPlaces$ = chain(this.placeScope.dependsOn$).mapToList(() => this.placeDefinition.children
|
|
14197
|
+
.filter(d => this.placeScope.includes(d))
|
|
14198
|
+
.map(d => d.component));
|
|
14097
14199
|
this.placeId = this.placeDefinition.placeId;
|
|
14098
14200
|
if (isEmpty(this.placeId)) {
|
|
14099
14201
|
lang.illegalState("placeId property is missing from the route data parameters");
|
|
@@ -14294,6 +14396,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
14294
14396
|
args: [{ selector: 'aup-not-authorised-notice', template: "<p>You are not authorised to access this page</p>\n", styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}\n"] }]
|
|
14295
14397
|
}] });
|
|
14296
14398
|
|
|
14399
|
+
/**
|
|
14400
|
+
* Shown by the place outlet in place of a page that has left the {@link PlaceScope} while open.
|
|
14401
|
+
* Replace it with AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT.
|
|
14402
|
+
*/
|
|
14403
|
+
class OutOfScopeNoticeComponent {
|
|
14404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OutOfScopeNoticeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14405
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: OutOfScopeNoticeComponent, selector: "aup-out-of-scope-notice", ngImport: i0, template: "<p>This page is not available in this layout</p>\n", styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}\n"] });
|
|
14406
|
+
}
|
|
14407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OutOfScopeNoticeComponent, decorators: [{
|
|
14408
|
+
type: Component,
|
|
14409
|
+
args: [{ selector: 'aup-out-of-scope-notice', template: "<p>This page is not available in this layout</p>\n", styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}\n"] }]
|
|
14410
|
+
}] });
|
|
14411
|
+
|
|
14297
14412
|
// Freezes the state of the components at the start of the animation.
|
|
14298
14413
|
const animationStartStyle = style({ position: 'absolute', top: '0', left: '0', bottom: '0', right: '0' });
|
|
14299
14414
|
const left = [
|
|
@@ -14339,10 +14454,13 @@ function leftRightPlaceAnimation(duration) {
|
|
|
14339
14454
|
const LEFT_RIGHT_PLACE_ANIMATION = leftRightPlaceAnimation('0.3s');
|
|
14340
14455
|
|
|
14341
14456
|
const AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = new InjectionToken('AUP_UNAUTHORISED_PLACE_COMPONENT');
|
|
14457
|
+
/** Replaces {@link OutOfScopeNoticeComponent}; see {@link PlaceScope.Options.whenOutOfScope}. */
|
|
14458
|
+
const AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT = new InjectionToken('AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT');
|
|
14342
14459
|
class PlaceOutletComponent extends DisposableComponent {
|
|
14343
14460
|
router;
|
|
14344
14461
|
placeRouter;
|
|
14345
14462
|
placeConfig;
|
|
14463
|
+
placeScope;
|
|
14346
14464
|
#animate$_accessor_storage = proxify((ValueModel));
|
|
14347
14465
|
get animate$() { return this.#animate$_accessor_storage; }
|
|
14348
14466
|
set animate$(value) { this.#animate$_accessor_storage = value; }
|
|
@@ -14376,11 +14494,15 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
14376
14494
|
animationEnabled;
|
|
14377
14495
|
authorised;
|
|
14378
14496
|
notAuthorisedNoticePortal;
|
|
14379
|
-
|
|
14497
|
+
/** Whether the active place is in the {@link PlaceScope}; true until there is one. */
|
|
14498
|
+
inScope;
|
|
14499
|
+
outOfScopeNoticePortal;
|
|
14500
|
+
constructor(router, placeRouter, placeConfig, unauthorisedPlaceNotice, outOfScopePlaceNotice, placeScope, parentOutlet) {
|
|
14380
14501
|
super();
|
|
14381
14502
|
this.router = router;
|
|
14382
14503
|
this.placeRouter = placeRouter;
|
|
14383
14504
|
this.placeConfig = placeConfig;
|
|
14505
|
+
this.placeScope = placeScope;
|
|
14384
14506
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
14385
14507
|
this.parentOutletModel = new MutableValueModel(parentOutlet);
|
|
14386
14508
|
const defaultPlaceAnimationOrder = chain(this.parentOutletModel)
|
|
@@ -14422,6 +14544,30 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
14422
14544
|
postponeWhile: chain(this._activePlaceDefinition).isNil()
|
|
14423
14545
|
}).otherwise(true); // if we don't have a place def yet we need to show the outlet so we get one injected.
|
|
14424
14546
|
this.notAuthorisedNoticePortal = new ComponentPortal(unauthorisedPlaceNotice ?? NotAuthorisedNoticeComponent);
|
|
14547
|
+
// Guards don't re-run when the scope changes, so an open place that leaves it is handled here,
|
|
14548
|
+
// the way a lost authorisation is above.
|
|
14549
|
+
this.inScope = chain(placeScope.dependsOn$).map(() => placeScope.includes(this._activePlaceDefinition.value), {
|
|
14550
|
+
dependsOn: this._activePlaceDefinition,
|
|
14551
|
+
postponeWhile: chain(this._activePlaceDefinition).isNil()
|
|
14552
|
+
}).otherwise(true);
|
|
14553
|
+
this.viewStateDependsOn(this.inScope);
|
|
14554
|
+
this.outOfScopeNoticePortal = new ComponentPortal(outOfScopePlaceNotice ?? OutOfScopeNoticeComponent);
|
|
14555
|
+
// Once any navigation in flight has landed: it may be the one that leaves the place anyway.
|
|
14556
|
+
when(chain(this.inScope).isFalsey().postponeWhile(this.navigationInProgress))
|
|
14557
|
+
.becomesTruthy(() => this.redirectOutOfScopePlace());
|
|
14558
|
+
}
|
|
14559
|
+
/** In `notice` mode; an unauthorised place shows the unauthorised notice instead. */
|
|
14560
|
+
get showOutOfScopeNotice() {
|
|
14561
|
+
return this.isAuthorised && !this.inScope.value && this.placeScope.whenOutOfScope === 'notice';
|
|
14562
|
+
}
|
|
14563
|
+
redirectOutOfScopePlace() {
|
|
14564
|
+
// An outer outlet whose place has left the scope too sends the user home itself.
|
|
14565
|
+
if (this.placeScope.whenOutOfScope === 'redirect' && this.parentOutlet?.inScope.value !== false) {
|
|
14566
|
+
const home = this.placeScope.home();
|
|
14567
|
+
if (home) {
|
|
14568
|
+
this.placeRouter.navigate(home);
|
|
14569
|
+
}
|
|
14570
|
+
}
|
|
14425
14571
|
}
|
|
14426
14572
|
getAnimationOrder() {
|
|
14427
14573
|
return this.activePlaceAnimationPosition.value;
|
|
@@ -14549,8 +14695,8 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
14549
14695
|
this.onAnimationFinishedJob = undefined;
|
|
14550
14696
|
}
|
|
14551
14697
|
}
|
|
14552
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, deps: [{ token: i1$5.Router }, { token: PlaceRouter }, { token: AUP_PLACE_CONFIG, optional: true }, { token: AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, optional: true }, { token: PlaceOutletComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
14553
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PlaceOutletComponent, selector: "aup-place-outlet", inputs: { animate$: "animate$", animate: "animate", customPlaceAnimationOrder$: ["placeAnimationOrderModel", "customPlaceAnimationOrder$"], customPlaceAnimationOrder: ["placeAnimationOrder", "customPlaceAnimationOrder"] }, outputs: { placeChanged: "placeChanged" }, host: { properties: { "class.authorised": "this.isAuthorised" } }, viewQueries: [{ propertyName: "routerOut", first: true, predicate: ["routeOutlet"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$5.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [LEFT_RIGHT_PLACE_ANIMATION] });
|
|
14698
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, deps: [{ token: i1$5.Router }, { token: PlaceRouter }, { token: AUP_PLACE_CONFIG, optional: true }, { token: AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, optional: true }, { token: AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, optional: true }, { token: PlaceScope }, { token: PlaceOutletComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
14699
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PlaceOutletComponent, selector: "aup-place-outlet", inputs: { animate$: "animate$", animate: "animate", customPlaceAnimationOrder$: ["placeAnimationOrderModel", "customPlaceAnimationOrder$"], customPlaceAnimationOrder: ["placeAnimationOrder", "customPlaceAnimationOrder"] }, outputs: { placeChanged: "placeChanged" }, host: { properties: { "class.out-of-scope": "this.showOutOfScopeNotice", "class.authorised": "this.isAuthorised" } }, viewQueries: [{ propertyName: "routerOut", first: true, predicate: ["routeOutlet"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"showOutOfScopeNotice\">\n <ng-template [cdkPortalOutlet]=\"outOfScopeNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container,:host.out-of-scope .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$5.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [LEFT_RIGHT_PLACE_ANIMATION] });
|
|
14554
14700
|
}
|
|
14555
14701
|
__decorate([
|
|
14556
14702
|
Proxify(),
|
|
@@ -14570,7 +14716,7 @@ __decorate([
|
|
|
14570
14716
|
], PlaceOutletComponent.prototype, "customPlaceAnimationOrder", null);
|
|
14571
14717
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceOutletComponent, decorators: [{
|
|
14572
14718
|
type: Component,
|
|
14573
|
-
args: [{ selector: 'aup-place-outlet', animations: [LEFT_RIGHT_PLACE_ANIMATION], template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"] }]
|
|
14719
|
+
args: [{ selector: 'aup-place-outlet', animations: [LEFT_RIGHT_PLACE_ANIMATION], template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"showOutOfScopeNotice\">\n <ng-template [cdkPortalOutlet]=\"outOfScopeNoticePortal\"></ng-template>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container,:host.out-of-scope .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"] }]
|
|
14574
14720
|
}], ctorParameters: function () { return [{ type: i1$5.Router }, { type: PlaceRouter }, { type: undefined, decorators: [{
|
|
14575
14721
|
type: Optional
|
|
14576
14722
|
}, {
|
|
@@ -14581,7 +14727,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
14581
14727
|
}, {
|
|
14582
14728
|
type: Inject,
|
|
14583
14729
|
args: [AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT]
|
|
14584
|
-
}] }, { type:
|
|
14730
|
+
}] }, { type: undefined, decorators: [{
|
|
14731
|
+
type: Optional
|
|
14732
|
+
}, {
|
|
14733
|
+
type: Inject,
|
|
14734
|
+
args: [AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT]
|
|
14735
|
+
}] }, { type: PlaceScope }, { type: PlaceOutletComponent, decorators: [{
|
|
14585
14736
|
type: SkipSelf
|
|
14586
14737
|
}, {
|
|
14587
14738
|
type: Optional
|
|
@@ -14600,6 +14751,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
14600
14751
|
}], routerOut: [{
|
|
14601
14752
|
type: ViewChild,
|
|
14602
14753
|
args: ['routeOutlet', { static: true }]
|
|
14754
|
+
}], showOutOfScopeNotice: [{
|
|
14755
|
+
type: HostBinding,
|
|
14756
|
+
args: ["class.out-of-scope"]
|
|
14603
14757
|
}], isAuthorised: [{
|
|
14604
14758
|
type: HostBinding,
|
|
14605
14759
|
args: ["class.authorised"]
|
|
@@ -14639,6 +14793,7 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
|
14639
14793
|
activePlaceDefinition;
|
|
14640
14794
|
placeFaces = new Map();
|
|
14641
14795
|
trackByPlaceDef = (index, data) => data.place;
|
|
14796
|
+
placeScope = inject(PlaceScope);
|
|
14642
14797
|
authorisedPlaces$;
|
|
14643
14798
|
constructor(placeRouter) {
|
|
14644
14799
|
super();
|
|
@@ -14648,10 +14803,12 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
|
14648
14803
|
.select(placeType => {
|
|
14649
14804
|
const definition = PlaceComponent.getDefinition(placeType);
|
|
14650
14805
|
const guard = this.placeRouter.authService.accessGuard$.value;
|
|
14651
|
-
|
|
14806
|
+
// Out of scope is absolute, even for the current place: this shell can't show it.
|
|
14807
|
+
return this.placeScope.includes(definition)
|
|
14808
|
+
&& (guard.isAuthorised(definition) || this.placeRouter.activeVisit$.value?.isPlaceActive(definition));
|
|
14652
14809
|
}, {
|
|
14653
14810
|
postponeWhile: this.placeRouter.navigationInProgress$,
|
|
14654
|
-
dependsOn: [this.placeRouter.authService.accessGuard$, this.placeRouter.activeVisit$]
|
|
14811
|
+
dependsOn: [this.placeRouter.authService.accessGuard$, this.placeRouter.activeVisit$, this.placeScope.dependsOn$]
|
|
14655
14812
|
});
|
|
14656
14813
|
this.placeDefinitions = chain(this.authorisedPlaces$).map(c => PlaceComponent.getDefinition(c));
|
|
14657
14814
|
this.commandFactory = Command.createFactory((placeDefinition) => {
|
|
@@ -14767,9 +14924,12 @@ let nextInstanceId = 0;
|
|
|
14767
14924
|
* - at least two of its children are authorised: one child isn't a choice, so a parent with one
|
|
14768
14925
|
* authorised child is a single entry that navigates to it.
|
|
14769
14926
|
* Anything else is a leaf that navigates to its place. A `redirectToFirstChild` parent with no
|
|
14770
|
-
* authorised child is dropped, as it has nowhere to land.
|
|
14927
|
+
* authorised child is dropped, as it has nowhere to land. Places outside the {@link PlaceScope} are
|
|
14928
|
+
* left out at both levels, so a parent with no child in scope goes too. Only two levels are shown; deeper places
|
|
14771
14929
|
* stay as tabs in their pages.
|
|
14772
14930
|
*
|
|
14931
|
+
* Only the current place's group starts open, unless {@link groupsStartOpen} opens every group.
|
|
14932
|
+
*
|
|
14773
14933
|
* The rail collapses to an icon strip from the Menu row, and expands over the content when the
|
|
14774
14934
|
* pointer rests on it. The pinned state is kept in localStorage under {@link persistKey}.
|
|
14775
14935
|
*
|
|
@@ -14849,6 +15009,14 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
14849
15009
|
* is shared by everyone using the browser, so include the user in the key for a per-user state.
|
|
14850
15010
|
*/
|
|
14851
15011
|
persistKey = 'aup-side-place-navigation.expanded';
|
|
15012
|
+
groupsStartOpen$ = new MutableValueModel(false);
|
|
15013
|
+
#groupsStartOpen_accessor_storage = false;
|
|
15014
|
+
/**
|
|
15015
|
+
* Every group starts open, not only the current place's. The user can still close any group but
|
|
15016
|
+
* the current one, and arriving in a group they closed opens it again.
|
|
15017
|
+
*/
|
|
15018
|
+
get groupsStartOpen() { return this.#groupsStartOpen_accessor_storage; }
|
|
15019
|
+
set groupsStartOpen(value) { this.#groupsStartOpen_accessor_storage = value; }
|
|
14852
15020
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
|
|
14853
15021
|
navEndTemplate;
|
|
14854
15022
|
/** The pointer has rested on the collapsed rail, so it is expanded over the content. */
|
|
@@ -14866,6 +15034,8 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
14866
15034
|
currentPath$;
|
|
14867
15035
|
/** Groups the user has opened. The current place's group joins on arrival and stays. */
|
|
14868
15036
|
openGroups$ = new MutableValueModel(new Set());
|
|
15037
|
+
/** Groups the user has closed, while {@link groupsStartOpen} has every group start open. */
|
|
15038
|
+
closedGroups$ = new MutableValueModel(new Set());
|
|
14869
15039
|
childListAnimation = { value: '', params: { duration: MOTION } };
|
|
14870
15040
|
trackByNavItem = (index, item) => item.place;
|
|
14871
15041
|
trackByNavChild = (index, child) => child.place;
|
|
@@ -14891,7 +15061,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
14891
15061
|
const entries$ = chain(this.menuItems).mapAll(items => {
|
|
14892
15062
|
const guard = accessGuard$.value;
|
|
14893
15063
|
const visit = activeVisit$.value;
|
|
14894
|
-
const visible = (place) => guard.isAuthorised(place) || !!visit?.isPlaceActive(place);
|
|
15064
|
+
const visible = (place) => this.placeScope.includes(place) && (guard.isAuthorised(place) || !!visit?.isPlaceActive(place));
|
|
14895
15065
|
return items
|
|
14896
15066
|
.map(({ place, active }) => {
|
|
14897
15067
|
const children = place.redirectToFirstChild ? place.children.filter(visible) : [];
|
|
@@ -14902,16 +15072,18 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
14902
15072
|
// unless it's current, so the rail never loses the place the user is on.
|
|
14903
15073
|
.filter(({ place, current, children }) => current || !place.redirectToFirstChild || !place.hasChildren() || children.length > 0);
|
|
14904
15074
|
}, {
|
|
14905
|
-
dependsOn: [accessGuard$, activeVisit$],
|
|
15075
|
+
dependsOn: [accessGuard$, activeVisit$, this.placeScope.dependsOn$],
|
|
14906
15076
|
postponeWhile: router.navigationInProgress$
|
|
14907
15077
|
});
|
|
14908
15078
|
const isGroup = ({ place, children }) => place.navDepth > 1 && children.length > 1;
|
|
14909
15079
|
this.navItems$ = chain(entries$).mapAll(entries => {
|
|
14910
15080
|
const railOpen = this.open$.value;
|
|
14911
15081
|
const openGroups = this.openGroups$.value;
|
|
15082
|
+
const closedGroups = this.closedGroups$.value;
|
|
15083
|
+
const groupOpen = (place) => this.groupsStartOpen$.value ? !closedGroups.has(place) : openGroups.has(place);
|
|
14912
15084
|
return entries.map(({ place, current, children, currentChild }) => {
|
|
14913
15085
|
const group = isGroup({ place, children });
|
|
14914
|
-
const showChildren = group && railOpen && (current ||
|
|
15086
|
+
const showChildren = group && railOpen && (current || groupOpen(place));
|
|
14915
15087
|
return {
|
|
14916
15088
|
place,
|
|
14917
15089
|
face: this.getNavigationFace(place),
|
|
@@ -14928,7 +15100,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
14928
15100
|
};
|
|
14929
15101
|
});
|
|
14930
15102
|
}, {
|
|
14931
|
-
dependsOn: [this.openGroups$, this.open$]
|
|
15103
|
+
dependsOn: [this.openGroups$, this.closedGroups$, this.groupsStartOpen$, this.open$]
|
|
14932
15104
|
});
|
|
14933
15105
|
// From the entries rather than navItems$: the path doesn't change as the rail opens and closes.
|
|
14934
15106
|
this.currentPath$ = chain(entries$).mapAll(entries => {
|
|
@@ -15014,16 +15186,22 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15014
15186
|
if (item.current) {
|
|
15015
15187
|
return;
|
|
15016
15188
|
}
|
|
15017
|
-
const
|
|
15018
|
-
|
|
15019
|
-
|
|
15189
|
+
const toggled$ = this.groupsStartOpen$.value ? this.closedGroups$ : this.openGroups$;
|
|
15190
|
+
const toggled = new Set(toggled$.value);
|
|
15191
|
+
if (!toggled.delete(item.place)) {
|
|
15192
|
+
toggled.add(item.place);
|
|
15020
15193
|
}
|
|
15021
|
-
|
|
15194
|
+
toggled$.value = toggled;
|
|
15022
15195
|
}
|
|
15023
15196
|
openGroup(place) {
|
|
15024
15197
|
if (place && !this.openGroups$.value.has(place)) {
|
|
15025
15198
|
this.openGroups$.value = new Set(this.openGroups$.value).add(place);
|
|
15026
15199
|
}
|
|
15200
|
+
if (place && this.closedGroups$.value.has(place)) {
|
|
15201
|
+
const closedGroups = new Set(this.closedGroups$.value);
|
|
15202
|
+
closedGroups.delete(place);
|
|
15203
|
+
this.closedGroups$.value = closedGroups;
|
|
15204
|
+
}
|
|
15027
15205
|
}
|
|
15028
15206
|
pin(expanded) {
|
|
15029
15207
|
this.clearHoverTimer();
|
|
@@ -15067,7 +15245,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15067
15245
|
}
|
|
15068
15246
|
}
|
|
15069
15247
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
15070
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded", collapsible: "collapsible", hoverExpandDelay: "hoverExpandDelay", persistKey: "persistKey" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }], animations: [slideDownOnEnterAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15248
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded", collapsible: "collapsible", hoverExpandDelay: "hoverExpandDelay", persistKey: "persistKey", groupsStartOpen: "groupsStartOpen" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }], animations: [slideDownOnEnterAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15071
15249
|
}
|
|
15072
15250
|
__decorate([
|
|
15073
15251
|
Proxify(),
|
|
@@ -15077,6 +15255,10 @@ __decorate([
|
|
|
15077
15255
|
StoreInValueModel(),
|
|
15078
15256
|
__metadata("design:type", Object)
|
|
15079
15257
|
], SidePlaceNavigationComponent.prototype, "expanded", null);
|
|
15258
|
+
__decorate([
|
|
15259
|
+
StoreInValueModel(),
|
|
15260
|
+
__metadata("design:type", Object)
|
|
15261
|
+
], SidePlaceNavigationComponent.prototype, "groupsStartOpen", null);
|
|
15080
15262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, decorators: [{
|
|
15081
15263
|
type: Component,
|
|
15082
15264
|
args: [{ selector: 'aup-side-place-navigation', changeDetection: ChangeDetectionStrategy.OnPush, animations: [slideDownOnEnterAnimation], template: "<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"] }]
|
|
@@ -15093,6 +15275,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
15093
15275
|
type: Input
|
|
15094
15276
|
}], persistKey: [{
|
|
15095
15277
|
type: Input
|
|
15278
|
+
}], groupsStartOpen: [{
|
|
15279
|
+
type: Input
|
|
15096
15280
|
}],
|
|
15097
15281
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
|
|
15098
15282
|
navEndTemplate: [{
|
|
@@ -15205,7 +15389,8 @@ class PlaceModule {
|
|
|
15205
15389
|
ListPlaceNavComponent,
|
|
15206
15390
|
SidePlaceNavigationComponent,
|
|
15207
15391
|
AbstractPlaceNavigationComponent,
|
|
15208
|
-
NotAuthorisedNoticeComponent
|
|
15392
|
+
NotAuthorisedNoticeComponent,
|
|
15393
|
+
OutOfScopeNoticeComponent], imports: [CommonModule,
|
|
15209
15394
|
BrowserAnimationsModule,
|
|
15210
15395
|
MatProgressSpinnerModule,
|
|
15211
15396
|
RouterModule,
|
|
@@ -15257,7 +15442,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
15257
15442
|
ListPlaceNavComponent,
|
|
15258
15443
|
SidePlaceNavigationComponent,
|
|
15259
15444
|
AbstractPlaceNavigationComponent,
|
|
15260
|
-
NotAuthorisedNoticeComponent
|
|
15445
|
+
NotAuthorisedNoticeComponent,
|
|
15446
|
+
OutOfScopeNoticeComponent
|
|
15261
15447
|
],
|
|
15262
15448
|
exports: [
|
|
15263
15449
|
PlaceOutletComponent,
|
|
@@ -15638,13 +15824,15 @@ class PlaceGuard {
|
|
|
15638
15824
|
placeHistory;
|
|
15639
15825
|
interactionService;
|
|
15640
15826
|
injector;
|
|
15641
|
-
|
|
15827
|
+
placeScope;
|
|
15828
|
+
constructor(router, urlService, placeRouter, placeHistory, interactionService, injector, placeScope) {
|
|
15642
15829
|
this.router = router;
|
|
15643
15830
|
this.urlService = urlService;
|
|
15644
15831
|
this.placeRouter = placeRouter;
|
|
15645
15832
|
this.placeHistory = placeHistory;
|
|
15646
15833
|
this.interactionService = interactionService;
|
|
15647
15834
|
this.injector = injector;
|
|
15835
|
+
this.placeScope = placeScope;
|
|
15648
15836
|
}
|
|
15649
15837
|
get authService() {
|
|
15650
15838
|
return this.placeRouter.authService;
|
|
@@ -15663,8 +15851,19 @@ class PlaceGuard {
|
|
|
15663
15851
|
if (redirect.requiresAuthentication()) {
|
|
15664
15852
|
lang.illegalState(`onAuthenticationFailure hook returned place ${redirect.toDebugString()} that requires authentication.`);
|
|
15665
15853
|
}
|
|
15854
|
+
if (!this.placeScope.includesVisit(redirect)) {
|
|
15855
|
+
// Its guard would send it home, which needs authentication, which sends it back here.
|
|
15856
|
+
lang.illegalState(`onAuthenticationFailure hook returned place ${redirect.toDebugString()} that is outside the place scope.`);
|
|
15857
|
+
}
|
|
15666
15858
|
return this.createUrlTree(redirect);
|
|
15667
15859
|
}
|
|
15860
|
+
}
|
|
15861
|
+
// Before authorisation, so an out-of-scope place is never refused as unauthorised: the app's
|
|
15862
|
+
// authorisation-failure hook can sign the user out, and a layout is no reason to.
|
|
15863
|
+
if (!this.placeScope.includes(placeDefinition)) {
|
|
15864
|
+
return this.createUrlTree(this.scopeHome());
|
|
15865
|
+
}
|
|
15866
|
+
if (placeDefinition.authenticate) {
|
|
15668
15867
|
await this.authService.waitUntilAuthorisationReadyFor(placeDefinition);
|
|
15669
15868
|
if (!this.authService.isAuthorised(placeDefinition)) {
|
|
15670
15869
|
const nextRedirect = await this.findBestAuthenticatedAlternative(placeDefinition, activatedRoute);
|
|
@@ -15730,6 +15929,7 @@ class PlaceGuard {
|
|
|
15730
15929
|
* 1. the place's own pick, when it declares {@link PlaceDefinition.redirectChild};
|
|
15731
15930
|
* 2. the last active child, when `rememberLastChild` is enabled (the default);
|
|
15732
15931
|
* 3. the first authorised child in declaration order (the legacy behaviour).
|
|
15932
|
+
* A child outside the {@link PlaceScope} is never valid, the picked and the remembered ones included.
|
|
15733
15933
|
*
|
|
15734
15934
|
* Authorisation is read AFTER awaiting each candidate child's authorisation-readiness (its
|
|
15735
15935
|
* `enablePlace` postpone conditions). Without this, a child whose enablement is still settling —
|
|
@@ -15739,6 +15939,9 @@ class PlaceGuard {
|
|
|
15739
15939
|
*/
|
|
15740
15940
|
async selectRedirectChild(place) {
|
|
15741
15941
|
const authorised = async (c) => {
|
|
15942
|
+
if (!this.placeScope.includes(c)) {
|
|
15943
|
+
return false;
|
|
15944
|
+
}
|
|
15742
15945
|
if (!c.authenticate) {
|
|
15743
15946
|
return true;
|
|
15744
15947
|
}
|
|
@@ -15769,7 +15972,7 @@ class PlaceGuard {
|
|
|
15769
15972
|
let currentPlace = placeDefinition;
|
|
15770
15973
|
while (!currentPlace.isRoot()) {
|
|
15771
15974
|
currentPlace = currentPlace.parent;
|
|
15772
|
-
const permittedChild = currentPlace.findChild(c => this.authService.isAuthorised(c));
|
|
15975
|
+
const permittedChild = currentPlace.findChild(c => this.authService.isAuthorised(c) && this.placeScope.includes(c));
|
|
15773
15976
|
if (permittedChild) {
|
|
15774
15977
|
return this.visitToAlternative(permittedChild);
|
|
15775
15978
|
}
|
|
@@ -15780,10 +15983,21 @@ class PlaceGuard {
|
|
|
15780
15983
|
return lang.illegalState(`onAuthorisationFailure hook didn't return any alternate places`);
|
|
15781
15984
|
}
|
|
15782
15985
|
else {
|
|
15783
|
-
|
|
15986
|
+
// Prefer one this shell can show; an authorised one outside the scope still lands, at home.
|
|
15987
|
+
const authorisedRoutes = alternativeRoutes.filter(it => it.isAuthorised(this.authService));
|
|
15988
|
+
const nextRedirect = authorisedRoutes.find(it => this.placeScope.includesVisit(it)) ?? authorisedRoutes[0];
|
|
15784
15989
|
return nextRedirect ?? lang.illegalState(`onAuthorisationFailure hook didn't return any authorised locations`);
|
|
15785
15990
|
}
|
|
15786
15991
|
}
|
|
15992
|
+
scopeHome() {
|
|
15993
|
+
// Only the default scope has no home, and it leaves nothing out.
|
|
15994
|
+
const home = this.placeScope.home();
|
|
15995
|
+
if (!this.placeScope.includesVisit(home)) {
|
|
15996
|
+
// It would send itself home again, forever.
|
|
15997
|
+
return lang.illegalState(`The place scope's home ${home.toDebugString()} is outside the scope`);
|
|
15998
|
+
}
|
|
15999
|
+
return home;
|
|
16000
|
+
}
|
|
15787
16001
|
/**
|
|
15788
16002
|
* A visit to the alternative place, carrying its ancestors' RESOLVED route parameters.
|
|
15789
16003
|
*
|
|
@@ -15847,13 +16061,13 @@ class PlaceGuard {
|
|
|
15847
16061
|
return next();
|
|
15848
16062
|
}
|
|
15849
16063
|
}
|
|
15850
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, deps: [{ token: i1$5.Router }, { token: UrlService }, { token: PlaceRouter }, { token: PlaceHistory }, { token: InteractionService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16064
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, deps: [{ token: i1$5.Router }, { token: UrlService }, { token: PlaceRouter }, { token: PlaceHistory }, { token: InteractionService }, { token: i0.Injector }, { token: PlaceScope }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15851
16065
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, providedIn: 'root' });
|
|
15852
16066
|
}
|
|
15853
16067
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PlaceGuard, decorators: [{
|
|
15854
16068
|
type: Injectable,
|
|
15855
16069
|
args: [{ providedIn: 'root' }]
|
|
15856
|
-
}], ctorParameters: function () { return [{ type: i1$5.Router }, { type: UrlService }, { type: PlaceRouter }, { type: PlaceHistory }, { type: InteractionService }, { type: i0.Injector }]; } });
|
|
16070
|
+
}], ctorParameters: function () { return [{ type: i1$5.Router }, { type: UrlService }, { type: PlaceRouter }, { type: PlaceHistory }, { type: InteractionService }, { type: i0.Injector }, { type: PlaceScope }]; } });
|
|
15857
16071
|
|
|
15858
16072
|
var Formatter;
|
|
15859
16073
|
(function (Formatter) {
|
|
@@ -16132,5 +16346,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
16132
16346
|
* Generated bundle index. Do not edit.
|
|
16133
16347
|
*/
|
|
16134
16348
|
|
|
16135
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DensityDirective, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, provideQuietRejections, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
16349
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DensityDirective, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, OutOfScopeNoticeComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, PlaceScope, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, provideQuietRejections, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
16136
16350
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|