@coolon/angular-ui-powerups 11.0.0-alpha.2 → 11.0.0-alpha.3
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/bundles/coolon-angular-ui-powerups.umd.js +81 -42
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +3 -2
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +14 -0
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js.map +1 -0
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -0
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.ngfactory.js.map +1 -0
- package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +23 -14
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/exports.js +1 -0
- package/esm2015/lib/place/exports.js.map +1 -1
- package/esm2015/lib/place/exports.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +5 -8
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js +2 -0
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
- package/esm2015/lib/place/place-router.js +15 -4
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.module.js +6 -2
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +62 -30
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +3 -0
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +10 -3
- package/lib/place/exports.d.ts +1 -0
- package/lib/place/place-router.d.ts +10 -6
- package/package.json +1 -1
- package/schematics/utils/build-context.d.ts +4 -5
- package/schematics/utils/workspace.d.ts +3 -4
- package/schematics/utils/workspace.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place-router.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place-router.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAGL,gBAAgB,EAChB,aAAa,EACb,eAAe,EAEf,eAAe,EACf,MAAM,EAEP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,OAAO,EACP,YAAY,EACZ,oBAAoB,EACpB,GAAG,EACH,gBAAgB,EAChB,IAAI,EAGJ,gBAAgB,EAChB,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iEAAiE,CAAC;AAC9G,OAAO,EAAE,mCAAmC,EAAE,MAAM,2EAA2E,CAAC;AAChI,OAAO,EAAE,yCAAyC,EAAE,MAAM,kFAAkF,CAAC;AAC7I,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;A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n ActivatedRouteSnapshot,\n NavigationCancel,\n NavigationEnd,\n NavigationError,\n NavigationExtras,\n NavigationStart,\n Router,\n RouterStateSnapshot\n} from '@angular/router';\nimport {\n assert,\n Binding,\n DebugContext,\n DelegatingValueModel,\n Dsl,\n GarbageCollector,\n lang,\n ListModel,\n MapModelChain,\n MutableListModel,\n MutableValueModel,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { InteractionServiceRoutingAdapter } from '../interaction/services/interaction-service-routing-adapter';\nimport { InteractionService } from '../interaction/services/interaction.service';\nimport { NavigatingDuringInteraction } from './navigation/session/interactions/navigating-during-interaction';\nimport { PopStateDuringInteractionNavigation } from './navigation/session/interactions/pop-state-during-interaction-navigation';\nimport { SynchroniseInteractionContextIdsWithRoute } from './navigation/session/interactions/synchronise-interaction-context-ids-with-route';\nimport { Navigating } from './navigation/session/navigating';\nimport { NavigationContext } from './navigation/session/navigation-context';\nimport { NavigationSession } from './navigation/session/navigation-session';\nimport { PopStateNavigation } from './navigation/session/pop-state-navigation';\nimport { PlaceAccessGuard } from './place-access-guard';\nimport { PlaceDefinition } from './place-definition';\nimport { PlaceHistory } from './place-history';\nimport { UrlService } from './url-service';\nimport { UrlSnapshot } from './url-snapshot';\nimport { Visit } from './visit';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PlaceRouter extends GarbageCollector {\n\n readonly navigationSessionModel = new MutableValueModel<NavigationSession>();\n readonly navigationInProgress: ValueModelChain<boolean>;\n readonly navigationSessionName: ValueModelChain<string>; // used by tests\n\n private readonly navigationContext: NavigationContext.Impl;\n\n private readonly _activeVisits = new MutableListModel<Visit>();\n readonly activeVisitsByPlaceDefinition: MapModelChain<PlaceDefinition, Visit>;\n private routerInteractionAdapter: InteractionServiceRoutingAdapter;\n private sessionFinishedJobs: (() => void)[] = [];\n\n /**\n * An observable model containing the authoriser function. This allows places to react to changes\n * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.\n */\n private _accessGuard = new DelegatingValueModel<PlaceAccessGuard>().withDefault(new PlaceAccessGuard.NoAuth());\n private redirections: PlaceRouter.Redirections;\n\n constructor(private readonly angularRouter: Router,\n private readonly angularLocation: Location,\n private readonly interactionService: InteractionService,\n private readonly urlService: UrlService,\n private readonly placeHistory: PlaceHistory) {\n super();\n\n if (window['Cypress']) {\n window['aup.PlaceRouter'] = this;\n }\n\n this.routerInteractionAdapter = interactionService.registerPlaceRouter(this);\n\n // TODO: Make this an interface and use 'this' instead.\n this.navigationContext = new NavigationContext.Impl(\n this.urlService,\n this.routerInteractionAdapter,\n (urlSnapshot: UrlSnapshot, options: { replaceUrl: boolean }) => {\n return this.navigateByUrl(urlSnapshot, options);\n },\n state => {\n this.transitionTo(state);\n },\n visits => {\n this.routingSessionFinished(visits);\n });\n\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.navigationInProgress = chain(this.navigationSessionModel).isNotNil();\n\n const idleStateName = chain(this.interactionService.active).map(active => active ? 'IdleDuringInteraction' : 'Idle');\n this.navigationSessionName = chain(this.navigationSessionModel)\n .pluck('name')\n .otherwise(idleStateName);\n\n DebugContext.tag(this._activeVisits, 'PlaceRouter.activeVisits');\n this.activeVisitsByPlaceDefinition = chain(this._activeVisits).indexBy('placeDefinition');\n\n // TODO: make setup the callbacks in during module initiation to make this testable.\n angularRouter.events.subscribe(event => {\n // Routing event sequence\n // ======================\n // NavigationStart -> .... -> NavigationCancel --> redirect, go around again in the same session\n // NavigationStart -> .... -> NavigationEnd --> navigation complete, end session.\n // NavigationStart -> .... -> NavigationError --> navigation aborted, end session.\n // =======================\n if (event instanceof NavigationStart) {\n // console.log(`---> NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n if (event.navigationTrigger === 'popstate') {\n this.onPopState(event);\n } else {\n this.onRouterStarted(event);\n }\n // console.log(`<--- NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n }\n if (event instanceof NavigationEnd) {\n // console.log(`---> NavigationEnd[${event.id}]: ${event.url}`);\n this.onRouterEnd(event);\n // console.log(`<--- NavigationEnd[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationError) {\n // console.log(`---> NavigationError[${event.id}]: ${event.url}`);\n this.onRouterError(event);\n // console.log(`<--- NavigationError[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationCancel) {\n // console.log(`---> NavigationCancel[${event.id}]: ${event.url}`);\n this.onRouterCancelled(event);\n // console.log(`<--- NavigationCancel[${event.id}]: ${event.url}`);\n }\n });\n\n // The router needs to know about url changes and in some cases they are the only way the router can know if\n // the back button was clicked.\n angularLocation.onUrlChange(url => this.onUrlChanged(url));\n\n }\n\n get accessGuard(): ValueModel<PlaceAccessGuard> {\n return this._accessGuard.readonly;\n }\n\n // @Trace()\n configureAuth(accessGrant: ValueModel<PlaceAccessGuard>, redirections: PlaceRouter.Redirections) {\n // We need a shitty mutable model until setDelegate is clever enough to work with readonly models.\n const hackyMutableModel = new MutableValueModel<PlaceAccessGuard>();\n const binding = new Binding(hackyMutableModel, accessGrant, {\n toRight(leftValue: PlaceAccessGuard) {\n return lang.illegalState('hackyMutableModel is read only');\n },\n toLeft: (rightValue: PlaceAccessGuard) => rightValue\n });\n binding.writeLeft();\n this._accessGuard.setDelegate(hackyMutableModel);\n this.redirections = redirections;\n }\n\n getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit {\n return this.redirections.onAuthenticationFailure(activatedRoute, state);\n }\n\n getAuthorisationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit {\n return this.redirections.onAuthorisationFailure(activatedRoute, state);\n }\n\n get navigationSession() {\n return this.navigationSessionModel.value;\n }\n\n get currentSession() {\n return this.navigationSessionModel.value;\n }\n\n isNavigating(): boolean {\n return this.navigationInProgress.value;\n }\n\n waitUntilIdle(): Promise<this> {\n const { when } = Dsl.disposeWith(this);\n return new Promise<this>(resolve => {\n when(this.navigationInProgress).becomesFalsey(() => resolve(this), {\n initialValue: 'evaluate',\n once: true\n })\n })\n }\n\n // @Trace()\n onPopState(event: NavigationStart) {\n assert.isTruthy(event.navigationTrigger === 'popstate');\n if (this.currentSession) {\n this.currentSession.onPopState(event);\n } else {\n const poppedHistoryUrl = event.url;\n const currentRouterUrl = this.urlService.getCurrentRouterUrl();\n const session = this.interactionService.isActive() ?\n new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl) :\n new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);\n this.transitionTo(session);\n }\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart) {\n assert.isFalsey(event.navigationTrigger === 'popstate');\n const inInteraction = this.interactionService.isActive();\n if (this.currentSession) {\n this.currentSession.onRouterStarted(event);\n } else {\n this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()));\n }\n }\n\n // @Trace()\n onUrlChanged(newUrl: string) {\n // the back button can trigger a url change without a navigation session in progress so we\n // console.log(`---> Url Changed ${newUrl}`);\n if (this.currentSession) {\n this.currentSession.onUrlChange(newUrl);\n } else {\n console.log('FYI: url changed without a navigation session in progress');\n }\n // console.log(`<--- Url Changed`);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel) {\n this.currentSession.onRouterCancelled(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError) {\n this.currentSession.onRouterError(event);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd) {\n this.currentSession.onRouterEnd(event);\n }\n\n navigate(visit: Visit, options?: { relativeTo: ActivatedRoute }) {\n return this.doNavigation(visit, async router => {\n const commands = [\n visit.placeDefinition.path,\n ...this.createRouteParameters(visit)\n ];\n await this.angularRouter.navigate(commands, {\n relativeTo: options ? options.relativeTo : null\n });\n });\n }\n\n // @Trace()\n async doNavigation(visit: Visit, runNavigationCommands: (router: Router) => any) {\n if (this.navigationInProgress.value) {\n lang.illegalState('Navigation already in progress');\n }\n const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());\n navigation.storeVisit(visit);\n this.transitionTo(navigation);\n try {\n await runNavigationCommands(this.angularRouter);\n } finally {\n // Check if the router has finished (in the case where no router change required) and we're still in a\n // transient state and finish of the transition.\n if (!this.angularRouter.getCurrentNavigation() && this.currentSession) {\n this.currentSession.onRouterEnd(new NavigationEnd(-1, '', ''));\n }\n }\n }\n\n navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras) {\n // console.log(`### navigationByUrl -> ${urlSnapshot.urlTree.toString()}`);\n return this.angularRouter.navigateByUrl(urlSnapshot.urlTree, navigationExtras);\n }\n\n get activeVisits(): ListModel<Visit> {\n return this._activeVisits.readonly;\n }\n\n // @Trace()\n async pushVisitChangesToRoute(previous: Visit, next: Visit): Promise<void> {\n this.placeHistory.updateVisit(next);\n\n // FIXME: no route id -> route id duplicates route parameters\n if (next.hasRoutingChangedFrom(previous)) {\n return this.doNavigation(next, router => {\n const urlSnapshot = this.urlService.parseUrl(this.angularRouter.routerState.snapshot.url).updateVisitSegments(next);\n // console.log('### Push Changes to route Redirect', { commands: urlSnapshot.url });\n return this.navigateByUrl(urlSnapshot);\n });\n }\n }\n\n\n private createNavigationSession(currentRouterUrl: string): NavigationSession {\n const inInteraction = this.interactionService.isActive();\n return inInteraction ?\n new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl) :\n new Navigating(this.navigationContext, currentRouterUrl);\n }\n\n // @Trace()\n protected transitionTo(next: NavigationSession) {\n const previous = this.navigationSessionModel.value;\n if (!previous) {\n this.placeHistory.notifyNavigationStarted();\n }\n assert.isTruthy(next !== previous);\n // Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);\n this.navigationSessionModel.value = next;\n if (!!previous) {\n previous.dispose();\n }\n next.notifyActive();\n }\n\n // @Trace()\n private routingSessionFinished(visits: Visit[]) {\n if (visits && visits.length > 0) {\n assert.isTruthy(this.navigationInProgress.value);\n this.placeHistory.notifyNavigationFinished(visits);\n // We update the active visits before we finish the session so the\n // place outlets can ignore the incoming changes until things are\n // settled. TODO: can we removed the event'ness here and just do a push?\n this._activeVisits.value = visits;\n }\n const session = this.currentSession;\n session.dispose();\n this.navigationSessionModel.value = null;\n // console.log(`### Router Session Finished (was ${session.toString()})`);\n this.sessionFinishedJobs.forEach(job => job());\n this.sessionFinishedJobs = [];\n }\n\n private runAfterRoutingSessionFinishes(func: () => void) {\n assert.isTruthy(this.navigationInProgress);\n this.sessionFinishedJobs.push(func);\n }\n\n\n /**\n * Sync's the current interaction state with the URL. We need to push something in the URL in order\n * to be able to capture the back button on the first page. If we don't then the back click will exit\n * the app directly and we don't get to ask.\n */\n // @Trace()\n syncInteractionContextIdsWithRouter(): Promise<unknown> {\n if (this.navigationSession) {\n // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);\n const session = this.navigationSession;\n return new Promise((resolve, reject) => {\n this.runAfterRoutingSessionFinishes(() => {\n this.runAfterRoutingSessionFinishes(resolve);\n const syncSession = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(syncSession);\n });\n });\n } else {\n return new Promise<unknown>(((resolve, reject) => {\n // console.log(`No navigation in progress, starting synchronisation job`);\n this.runAfterRoutingSessionFinishes(resolve);\n const session = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(session);\n }));\n\n }\n }\n\n\n private createRouteParameters(visit: Visit) {\n const def = visit.placeDefinition;\n return visit.hasRouteId() ?\n [def.getFormattedRouteId(visit), def.getFormattedRouteParameters(visit)] :\n [def.getFormattedRouteParameters(visit)];\n }\n\n}\n\nexport namespace PlaceRouter {\n\n export interface Redirections {\n onAuthenticationFailure(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit;\n\n onAuthorisationFailure(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit;\n }\n\n}\n"]}
|
|
1
|
+
{"version":3,"file":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BAAiB,EAAE,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,EAAE,KAAK,CAAC,CAAC;gBACpI,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC,CAAC;SAEL;IACH,CAAC;IAGO,qBAAqB,CAAC,KAAY;QACxC,MAAM,GAAG,GAAG,KAAK,CAAC,eAAe,CAAC;QAClC,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;YACzB,CAAC,GAAG,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC1E,CAAC,GAAG,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC;;;;YA/UF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;YApCC,MAAM;YAVC,QAAQ;YA6BR,kBAAkB;YAWlB,UAAU;YADV,YAAY;;AAwVrB,WAAiB,WAAW;IAM1B,MAAa,KAAK;QAChB,YAA6B,YAAqB;YAArB,iBAAY,GAAZ,YAAY,CAAS;QAClD,CAAC;QAED,aAAa,CAAC,eAAgC;YAC5C,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC7C,CAAC;QAED,WAAW,CAAC,eAAgC;YAC1C,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,KAAK,eAAe,CAAC,CAAC;QAC5E,CAAC;KACF;IAXY,iBAAK,QAWjB,CAAA;AAEH,CAAC,EAnBgB,WAAW,KAAX,WAAW,QAmB3B","sourcesContent":["import { Location } from '@angular/common';\nimport { Injectable } from '@angular/core';\nimport {\n ActivatedRoute,\n ActivatedRouteSnapshot,\n NavigationCancel,\n NavigationEnd,\n NavigationError,\n NavigationExtras,\n NavigationStart,\n Router,\n RouterStateSnapshot\n} from '@angular/router';\nimport {\n assert,\n Binding,\n DebugContext,\n DelegatingValueModel,\n Dsl,\n GarbageCollector,\n lang,\n ListModel,\n MapModelChain,\n MutableListModel,\n MutableValueModel,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { InteractionServiceRoutingAdapter } from '../interaction/services/interaction-service-routing-adapter';\nimport { InteractionService } from '../interaction/services/interaction.service';\nimport { NavigatingDuringInteraction } from './navigation/session/interactions/navigating-during-interaction';\nimport { PopStateDuringInteractionNavigation } from './navigation/session/interactions/pop-state-during-interaction-navigation';\nimport { SynchroniseInteractionContextIdsWithRoute } from './navigation/session/interactions/synchronise-interaction-context-ids-with-route';\nimport { Navigating } from './navigation/session/navigating';\nimport { NavigationContext } from './navigation/session/navigation-context';\nimport { NavigationSession } from './navigation/session/navigation-session';\nimport { PopStateNavigation } from './navigation/session/pop-state-navigation';\nimport { PlaceAccessGuard } from './place-access-guard';\nimport { PlaceDefinition } from './place-definition';\nimport { PlaceHistory } from './place-history';\nimport { UrlService } from './url-service';\nimport { UrlSnapshot } from './url-snapshot';\nimport { Visit } from './visit';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PlaceRouter extends GarbageCollector {\n\n readonly navigationSessionModel = new MutableValueModel<NavigationSession>();\n readonly navigationInProgress: ValueModelChain<boolean>;\n readonly navigationSessionName: ValueModelChain<string>; // used by tests\n\n private readonly navigationContext: NavigationContext.Impl;\n\n private readonly _activeVisits = new MutableListModel<Visit>();\n private readonly routerInteractionAdapter: InteractionServiceRoutingAdapter;\n private sessionFinishedJobs: (() => void)[] = [];\n\n public readonly state: ValueModel<PlaceRouter.State>;\n\n /**\n * An observable model containing the authoriser function. This allows places to react to changes\n * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.\n */\n private readonly _accessGuard = new DelegatingValueModel<PlaceAccessGuard>().withDefault(new PlaceAccessGuard.NoAuth());\n private redirections: PlaceRouter.Redirections;\n\n constructor(private readonly angularRouter: Router,\n private readonly angularLocation: Location,\n private readonly interactionService: InteractionService,\n private readonly urlService: UrlService,\n private readonly placeHistory: PlaceHistory) {\n super();\n\n if (window['Cypress']) {\n window['aup.PlaceRouter'] = this;\n }\n\n this.routerInteractionAdapter = interactionService.registerPlaceRouter(this);\n\n // TODO: Make this an interface and use 'this' instead.\n this.navigationContext = new NavigationContext.Impl(\n this.urlService,\n this.routerInteractionAdapter,\n (urlSnapshot: UrlSnapshot, options: { replaceUrl: boolean }) => {\n return this.navigateByUrl(urlSnapshot, options);\n },\n state => {\n this.transitionTo(state);\n },\n visits => {\n this.routingSessionFinished(visits);\n });\n\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.navigationInProgress = chain(this.navigationSessionModel).isNotNil();\n\n const idleStateName = chain(this.interactionService.active).map(active => active ? 'IdleDuringInteraction' : 'Idle');\n this.navigationSessionName = chain(this.navigationSessionModel)\n .pluck('name')\n .otherwise(idleStateName);\n\n DebugContext.tag(this._activeVisits, 'PlaceRouter.activeVisits');\n this.state = chain(this._activeVisits).reduce(visits => new PlaceRouter.State(visits));\n\n // TODO: make setup the callbacks in during module initiation to make this testable.\n angularRouter.events.subscribe(event => {\n // Routing event sequence\n // ======================\n // NavigationStart -> .... -> NavigationCancel --> redirect, go around again in the same session\n // NavigationStart -> .... -> NavigationEnd --> navigation complete, end session.\n // NavigationStart -> .... -> NavigationError --> navigation aborted, end session.\n // =======================\n if (event instanceof NavigationStart) {\n // console.log(`---> NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n if (event.navigationTrigger === 'popstate') {\n this.onPopState(event);\n } else {\n this.onRouterStarted(event);\n }\n // console.log(`<--- NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n }\n if (event instanceof NavigationEnd) {\n // console.log(`---> NavigationEnd[${event.id}]: ${event.url}`);\n this.onRouterEnd(event);\n // console.log(`<--- NavigationEnd[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationError) {\n // console.log(`---> NavigationError[${event.id}]: ${event.url}`);\n this.onRouterError(event);\n // console.log(`<--- NavigationError[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationCancel) {\n // console.log(`---> NavigationCancel[${event.id}]: ${event.url}`);\n this.onRouterCancelled(event);\n // console.log(`<--- NavigationCancel[${event.id}]: ${event.url}`);\n }\n });\n\n // The router needs to know about url changes and in some cases they are the only way the router can know if\n // the back button was clicked.\n angularLocation.onUrlChange(url => this.onUrlChanged(url));\n\n }\n\n get accessGuard(): ValueModel<PlaceAccessGuard> {\n return this._accessGuard.readonly;\n }\n\n // @Trace()\n configureAuth(accessGrant: ValueModel<PlaceAccessGuard>, redirections: PlaceRouter.Redirections) {\n // We need a shitty mutable model until setDelegate is clever enough to work with readonly models.\n const hackyMutableModel = new MutableValueModel<PlaceAccessGuard>();\n const binding = new Binding(hackyMutableModel, accessGrant, {\n toRight(leftValue: PlaceAccessGuard) {\n return lang.illegalState('hackyMutableModel is read only');\n },\n toLeft: (rightValue: PlaceAccessGuard) => rightValue\n });\n binding.writeLeft();\n this._accessGuard.setDelegate(hackyMutableModel);\n this.redirections = redirections;\n }\n\n getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit {\n return this.redirections.onAuthenticationFailure(activatedRoute, state);\n }\n\n get navigationSession() {\n return this.navigationSessionModel.value;\n }\n\n get currentSession() {\n return this.navigationSessionModel.value;\n }\n\n isNavigating(): boolean {\n return this.navigationInProgress.value;\n }\n\n waitUntilIdle(): Promise<this> {\n const { when } = Dsl.disposeWith(this);\n return new Promise<this>(resolve => {\n when(this.navigationInProgress).becomesFalsey(() => resolve(this), {\n initialValue: 'evaluate',\n once: true\n });\n });\n }\n\n // @Trace()\n onPopState(event: NavigationStart) {\n assert.isTruthy(event.navigationTrigger === 'popstate');\n if (this.currentSession) {\n this.currentSession.onPopState(event);\n } else {\n const poppedHistoryUrl = event.url;\n const currentRouterUrl = this.urlService.getCurrentRouterUrl();\n const session = this.interactionService.isActive() ?\n new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl) :\n new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);\n this.transitionTo(session);\n }\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart) {\n assert.isFalsey(event.navigationTrigger === 'popstate');\n const inInteraction = this.interactionService.isActive();\n if (this.currentSession) {\n this.currentSession.onRouterStarted(event);\n } else {\n this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()));\n }\n }\n\n // @Trace()\n onUrlChanged(newUrl: string) {\n // the back button can trigger a url change without a navigation session in progress so we\n // console.log(`---> Url Changed ${newUrl}`);\n if (this.currentSession) {\n this.currentSession.onUrlChange(newUrl);\n } else {\n console.log('FYI: url changed without a navigation session in progress');\n }\n // console.log(`<--- Url Changed`);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel) {\n this.currentSession.onRouterCancelled(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError) {\n this.currentSession.onRouterError(event);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd) {\n this.currentSession.onRouterEnd(event);\n }\n\n navigate(visit: Visit, options?: { relativeTo: ActivatedRoute }) {\n return this.doNavigation(visit, async router => {\n const commands = [\n visit.placeDefinition.path,\n ...this.createRouteParameters(visit)\n ];\n await this.angularRouter.navigate(commands, {\n relativeTo: options ? options.relativeTo : null\n });\n });\n }\n\n // @Trace()\n async doNavigation(visit: Visit, runNavigationCommands: (router: Router) => any) {\n if (this.navigationInProgress.value) {\n lang.illegalState('Navigation already in progress');\n }\n const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());\n navigation.storeVisit(visit);\n this.transitionTo(navigation);\n try {\n await runNavigationCommands(this.angularRouter);\n } finally {\n // Check if the router has finished (in the case where no router change required) and we're still in a\n // transient state and finish of the transition.\n if (!this.angularRouter.getCurrentNavigation() && this.currentSession) {\n this.currentSession.onRouterEnd(new NavigationEnd(-1, '', ''));\n }\n }\n }\n\n navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras) {\n // console.log(`### navigationByUrl -> ${urlSnapshot.urlTree.toString()}`);\n return this.angularRouter.navigateByUrl(urlSnapshot.urlTree, navigationExtras);\n }\n\n get activeVisits(): ListModel<Visit> {\n return this._activeVisits.readonly;\n }\n\n // @Trace()\n async pushVisitChangesToRoute(previous: Visit, next: Visit): Promise<void> {\n this.placeHistory.updateVisit(next);\n\n // FIXME: no route id -> route id duplicates route parameters\n if (next.hasRoutingChangedFrom(previous)) {\n return this.doNavigation(next, router => {\n const urlSnapshot = this.urlService.parseUrl(this.angularRouter.routerState.snapshot.url).updateVisitSegments(next);\n // console.log('### Push Changes to route Redirect', { commands: urlSnapshot.url });\n return this.navigateByUrl(urlSnapshot);\n });\n }\n }\n\n\n private createNavigationSession(currentRouterUrl: string): NavigationSession {\n const inInteraction = this.interactionService.isActive();\n return inInteraction ?\n new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl) :\n new Navigating(this.navigationContext, currentRouterUrl);\n }\n\n // @Trace()\n protected transitionTo(next: NavigationSession) {\n const previous = this.navigationSessionModel.value;\n if (!previous) {\n this.placeHistory.notifyNavigationStarted();\n }\n assert.isTruthy(next !== previous);\n // Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);\n this.navigationSessionModel.value = next;\n if (!!previous) {\n previous.dispose();\n }\n next.notifyActive();\n }\n\n // @Trace()\n private routingSessionFinished(visits: Visit[]) {\n if (visits && visits.length > 0) {\n assert.isTruthy(this.navigationInProgress.value);\n this.placeHistory.notifyNavigationFinished(visits);\n // We update the active visits before we finish the session so the\n // place outlets can ignore the incoming changes until things are\n // settled. TODO: can we removed the event'ness here and just do a push?\n this._activeVisits.value = visits;\n }\n const session = this.currentSession;\n session.dispose();\n this.navigationSessionModel.value = null;\n // console.log(`### Router Session Finished (was ${session.toString()})`);\n this.sessionFinishedJobs.forEach(job => job());\n this.sessionFinishedJobs = [];\n }\n\n private runAfterRoutingSessionFinishes(func: () => void) {\n assert.isTruthy(this.navigationInProgress);\n this.sessionFinishedJobs.push(func);\n }\n\n\n /**\n * Sync's the current interaction state with the URL. We need to push something in the URL in order\n * to be able to capture the back button on the first page. If we don't then the back click will exit\n * the app directly and we don't get to ask.\n */\n // @Trace()\n syncInteractionContextIdsWithRouter(): Promise<unknown> {\n if (this.navigationSession) {\n // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);\n const session = this.navigationSession;\n return new Promise((resolve, reject) => {\n this.runAfterRoutingSessionFinishes(() => {\n this.runAfterRoutingSessionFinishes(resolve);\n const syncSession = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(syncSession);\n });\n });\n } else {\n return new Promise<unknown>(((resolve, reject) => {\n // console.log(`No navigation in progress, starting synchronisation job`);\n this.runAfterRoutingSessionFinishes(resolve);\n const session = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(session);\n }));\n\n }\n }\n\n\n private createRouteParameters(visit: Visit) {\n const def = visit.placeDefinition;\n return visit.hasRouteId() ?\n [def.getFormattedRouteId(visit), def.getFormattedRouteParameters(visit)] :\n [def.getFormattedRouteParameters(visit)];\n }\n\n}\n\nexport namespace PlaceRouter {\n\n export interface Redirections {\n onAuthenticationFailure(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit;\n }\n\n export class State {\n constructor(private readonly activeVisits: Visit[]) {\n }\n\n isPlaceActive(placeDefinition: PlaceDefinition): boolean {\n return !!this.getVisitFor(placeDefinition);\n }\n\n getVisitFor(placeDefinition: PlaceDefinition): Visit {\n return this.activeVisits.find(v => v.placeDefinition === placeDefinition);\n }\n }\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"PlaceRouter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":47,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":44,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"PlaceRouter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":47,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":44,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":68,"character":46},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":69,"character":48},{"__symbolic":"reference","module":"../interaction/services/interaction.service","name":"InteractionService","line":70,"character":51},{"__symbolic":"reference","module":"./url-service","name":"UrlService","line":71,"character":43},{"__symbolic":"reference","module":"./place-history","name":"PlaceHistory","line":72,"character":45}]}],"configureAuth":[{"__symbolic":"method"}],"getAuthenticationFailureRedirect":[{"__symbolic":"method"}],"isNavigating":[{"__symbolic":"method"}],"waitUntilIdle":[{"__symbolic":"method"}],"onPopState":[{"__symbolic":"method"}],"onRouterStarted":[{"__symbolic":"method"}],"onUrlChanged":[{"__symbolic":"method"}],"onRouterCancelled":[{"__symbolic":"method"}],"onRouterError":[{"__symbolic":"method"}],"onRouterEnd":[{"__symbolic":"method"}],"navigate":[{"__symbolic":"method"}],"doNavigation":[{"__symbolic":"method"}],"navigateByUrl":[{"__symbolic":"method"}],"pushVisitChangesToRoute":[{"__symbolic":"method"}],"createNavigationSession":[{"__symbolic":"method"}],"transitionTo":[{"__symbolic":"method"}],"routingSessionFinished":[{"__symbolic":"method"}],"runAfterRoutingSessionFinishes":[{"__symbolic":"method"}],"syncInteractionContextIdsWithRouter":[{"__symbolic":"method"}],"createRouteParameters":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}}}]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PortalModule } from '@angular/cdk/portal';
|
|
1
2
|
import { CommonModule } from '@angular/common';
|
|
2
3
|
import { NgModule } from '@angular/core';
|
|
3
4
|
import { FlexModule } from '@angular/flex-layout';
|
|
@@ -12,6 +13,7 @@ import { ComponentsModule } from '../components/exports';
|
|
|
12
13
|
import { DirectivesModule } from '../directives/directives.module';
|
|
13
14
|
import { AbstractPlaceNavigationComponent } from './components/abstract-place-navigation.component';
|
|
14
15
|
import { ListPlaceNavComponent } from './components/list-place-nav/list-place-nav.component';
|
|
16
|
+
import { NotAuthorisedNoticeComponent } from './components/not-authorised-notice/not-authorised-notice.component';
|
|
15
17
|
import { PlaceOutletComponent } from './components/place-outlet/place-outlet.component';
|
|
16
18
|
import { SidePlaceNavigationComponent } from './components/side-place-navigation/side-place-navigation.component';
|
|
17
19
|
import { TabbedPlaceNavigationComponent } from './components/tabbed-place-navigation/tabbed-place-navigation.component';
|
|
@@ -30,14 +32,16 @@ PlaceModule.decorators = [
|
|
|
30
32
|
MatIconModule,
|
|
31
33
|
DirectivesModule,
|
|
32
34
|
FlexModule,
|
|
33
|
-
ComponentsModule
|
|
35
|
+
ComponentsModule,
|
|
36
|
+
PortalModule
|
|
34
37
|
],
|
|
35
38
|
declarations: [
|
|
36
39
|
PlaceOutletComponent,
|
|
37
40
|
TabbedPlaceNavigationComponent,
|
|
38
41
|
ListPlaceNavComponent,
|
|
39
42
|
SidePlaceNavigationComponent,
|
|
40
|
-
AbstractPlaceNavigationComponent
|
|
43
|
+
AbstractPlaceNavigationComponent,
|
|
44
|
+
NotAuthorisedNoticeComponent
|
|
41
45
|
],
|
|
42
46
|
entryComponents: [],
|
|
43
47
|
exports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place.module.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"place.module.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,oEAAoE,CAAC;AAClH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oEAAoE,CAAC;AAClH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wEAAwE,CAAC;AAsCxH,MAAM,OAAO,WAAW;;;YAnCvB,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,uBAAuB;oBACvB,wBAAwB;oBACxB,YAAY;oBACZ,aAAa;oBACb,aAAa;oBACb,gBAAgB;oBAChB,aAAa;oBACb,gBAAgB;oBAChB,UAAU;oBACV,gBAAgB;oBAChB,YAAY;iBACb;gBACD,YAAY,EAAE;oBACZ,oBAAoB;oBACpB,8BAA8B;oBAC9B,qBAAqB;oBACrB,4BAA4B;oBAC5B,gCAAgC;oBAChC,4BAA4B;iBAC7B;gBACD,eAAe,EAAE,EAAE;gBACnB,OAAO,EAAE;oBACP,oBAAoB;oBACpB,8BAA8B;oBAC9B,qBAAqB;oBACrB,4BAA4B;oBAC5B,gCAAgC;iBACjC;gBACD,SAAS,EAAE;gBACT,uEAAuE;iBACxE;aACF","sourcesContent":["import { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { InjectionToken, NgModule } from '@angular/core';\nimport { FlexModule } from '@angular/flex-layout';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { RouterModule } from '@angular/router';\nimport { Constructable } from '@coolon/pectin';\nimport { ComponentsModule } from '../components/exports';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { AbstractPlaceNavigationComponent } from './components/abstract-place-navigation.component';\nimport { ListPlaceNavComponent } from './components/list-place-nav/list-place-nav.component';\nimport { NotAuthorisedNoticeComponent } from './components/not-authorised-notice/not-authorised-notice.component';\nimport { PlaceOutletComponent } from './components/place-outlet/place-outlet.component';\nimport { SidePlaceNavigationComponent } from './components/side-place-navigation/side-place-navigation.component';\nimport { TabbedPlaceNavigationComponent } from './components/tabbed-place-navigation/tabbed-place-navigation.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n MatProgressSpinnerModule,\n RouterModule,\n MatTabsModule,\n MatListModule,\n MatTooltipModule,\n MatIconModule,\n DirectivesModule,\n FlexModule,\n ComponentsModule,\n PortalModule\n ],\n declarations: [\n PlaceOutletComponent,\n TabbedPlaceNavigationComponent,\n ListPlaceNavComponent,\n SidePlaceNavigationComponent,\n AbstractPlaceNavigationComponent,\n NotAuthorisedNoticeComponent\n ],\n entryComponents: [],\n exports: [\n PlaceOutletComponent,\n TabbedPlaceNavigationComponent,\n ListPlaceNavComponent,\n SidePlaceNavigationComponent,\n AbstractPlaceNavigationComponent\n ],\n providers: [\n // {provide: AUP_PLACE_CONFIG, useValue: {animationDuration: \"2000ms\"}}\n ]\n})\nexport class PlaceModule {\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"PlaceModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"PlaceModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material/progress-spinner","name":"MatProgressSpinnerModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material/tabs","name":"MatTabsModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material/list","name":"MatListModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/material/tooltip","name":"MatTooltipModule","line":30,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":31,"character":4},{"__symbolic":"reference","module":"../directives/directives.module","name":"DirectivesModule","line":32,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexModule","line":33,"character":4},{"__symbolic":"reference","module":"../components/exports","name":"ComponentsModule","line":34,"character":4},{"__symbolic":"reference","module":"@angular/cdk/portal","name":"PortalModule","line":35,"character":4}],"declarations":[{"__symbolic":"reference","module":"./components/place-outlet/place-outlet.component","name":"PlaceOutletComponent","line":38,"character":4},{"__symbolic":"reference","module":"./components/tabbed-place-navigation/tabbed-place-navigation.component","name":"TabbedPlaceNavigationComponent","line":39,"character":4},{"__symbolic":"reference","module":"./components/list-place-nav/list-place-nav.component","name":"ListPlaceNavComponent","line":40,"character":4},{"__symbolic":"reference","module":"./components/side-place-navigation/side-place-navigation.component","name":"SidePlaceNavigationComponent","line":41,"character":4},{"__symbolic":"reference","module":"./components/abstract-place-navigation.component","name":"AbstractPlaceNavigationComponent","line":42,"character":4},{"__symbolic":"reference","module":"./components/not-authorised-notice/not-authorised-notice.component","name":"NotAuthorisedNoticeComponent","line":43,"character":4}],"entryComponents":[],"exports":[{"__symbolic":"reference","module":"./components/place-outlet/place-outlet.component","name":"PlaceOutletComponent","line":47,"character":4},{"__symbolic":"reference","module":"./components/tabbed-place-navigation/tabbed-place-navigation.component","name":"TabbedPlaceNavigationComponent","line":48,"character":4},{"__symbolic":"reference","module":"./components/list-place-nav/list-place-nav.component","name":"ListPlaceNavComponent","line":49,"character":4},{"__symbolic":"reference","module":"./components/side-place-navigation/side-place-navigation.component","name":"SidePlaceNavigationComponent","line":50,"character":4},{"__symbolic":"reference","module":"./components/abstract-place-navigation.component","name":"AbstractPlaceNavigationComponent","line":51,"character":4}],"providers":[]}]}]}}}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './place.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/progress-spinner';\nimport * as i5 from '@angular/router';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/material/core';\nimport * as i8 from '@angular/material/divider';\nimport * as i9 from '@angular/material/list';\nimport * as i10 from '@angular/cdk/scrolling';\nimport * as i11 from '@angular/material/tooltip';\nimport * as i12 from '@angular/material/icon';\nimport * as i13 from '../directives/command.directive';\nimport * as i14 from '../directives/focus-binding.directive';\nimport * as i15 from '@angular/flex-layout/flex';\nimport * as i16 from '../components/forms/number-input/number-input.component';\nimport * as i17 from '../components/forms/string-input/string-input.component';\nimport * as i18 from '../components/forms/text-input/text-input.component';\nimport * as i19 from '../components/forms/password-input/password-input.component';\nimport * as i20 from '../components/forms/checkbox-input/checkbox-input.component';\nimport * as i21 from '../components/forms/select-input/select-input.component';\nimport * as i22 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i23 from '../components/forms/autocomplete-input/autocomplete-input.component';\nimport * as i24 from '../components/scroll-container/scroll-container.component';\nimport * as i25 from '../components/noop/noop.component';\nimport * as i26 from '../components/switch-case/switch-case.component';\nimport * as i27 from '../components/focus-container/focus-container.component';\nimport * as i28 from '../components/vertical-focus-container/vertical-focus-container.component';\nimport * as i29 from '../components/focusable.component';\nimport * as i30 from '../components/card-container/card-container.component';\nimport * as i31 from '../components/table/table.component';\nimport * as i32 from '../components/table/edit-row-controls/edit-row-controls.component';\nimport * as i33 from '../components/table/column-template/column-template.directive';\nimport * as i34 from '../components/icon/icon.component';\nimport * as i35 from '../components/section-header/section-header.component';\nimport * as i36 from '../components/table/table-row-menu/table-row-menu.component';\nimport * as i37 from '../components/commands/group/tool-bar/tool-bar.component';\nimport * as i38 from '../components/commands/command/command.component';\nimport * as i39 from '../components/commands/group/popup-menu/popup-menu.component';\nimport * as i40 from '../components/commands/command-face/command-face.component';\nimport * as i41 from '../components/commands/group/popup-menu/more-menu.component';\nimport * as i42 from '../components/commands/separator.component';\nimport * as i43 from '../components/commands/flex.component';\nimport * as i44 from '../components/tree-table/tree-table-component';\nimport * as i45 from '../components/busy-overlay/busy-overlay.component';\nimport * as i46 from '../components/empty-state/empty-state.component';\nimport * as i47 from '../components/table/paginator/paginator.component';\nimport * as i48 from './components/place-outlet/place-outlet.component';\nimport * as i49 from './components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i50 from './components/list-place-nav/list-place-nav.component';\nimport * as i51 from './components/side-place-navigation/side-place-navigation.component';\nimport * as i52 from './components/abstract-place-navigation.component';\nimport * as i53 from '@angular/platform-browser/animations';\nimport * as i54 from '../directives/directives.module';\nimport * as i55 from '../components/components.module';\nexport const PlaceModuleNgFactory:i0.NgModuleFactory<i1.PlaceModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatProgressSpinner = (<any>(null as any));\nvar _decl0_13:i4.MatSpinner = (<any>(null as any));\nvar _decl0_14:i5.RouterOutlet = (<any>(null as any));\nvar _decl0_15:i5.RouterLink = (<any>(null as any));\nvar _decl0_16:i5.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_17:i5.RouterLinkActive = (<any>(null as any));\nvar _decl0_18:i5.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.MatLine = (<any>(null as any));\nvar _decl0_26:i7.MatPseudoCheckbox = (<any>(null as any));\nvar _decl0_27:i8.MatDivider = (<any>(null as any));\nvar _decl0_28:i9.MatList = (<any>(null as any));\nvar _decl0_29:i9.MatNavList = (<any>(null as any));\nvar _decl0_30:i9.MatListItem = (<any>(null as any));\nvar _decl0_31:i9.MatListAvatarCssMatStyler = (<any>(null as any));\nvar _decl0_32:i9.MatListIconCssMatStyler = (<any>(null as any));\nvar _decl0_33:i9.MatListSubheaderCssMatStyler = (<any>(null as any));\nvar _decl0_34:i9.MatSelectionList = (<any>(null as any));\nvar _decl0_35:i9.MatListOption = (<any>(null as any));\nvar _decl0_36:i10.CdkScrollable = (<any>(null as any));\nvar _decl0_37:i11.MatTooltip = (<any>(null as any));\nvar _decl0_38:i11.TooltipComponent = (<any>(null as any));\nvar _decl0_39:i12.MatIcon = (<any>(null as any));\nvar _decl0_40:i13.CommandDirective<any> = (<any>(null as any));\nvar _decl0_41:i14.FocusBindingDirective = (<any>(null as any));\nvar _decl0_42:i15.DefaultLayoutDirective = (<any>(null as any));\nvar _decl0_43:i15.DefaultLayoutGapDirective = (<any>(null as any));\nvar _decl0_44:i15.DefaultLayoutAlignDirective = (<any>(null as any));\nvar _decl0_45:i15.DefaultFlexOrderDirective = (<any>(null as any));\nvar _decl0_46:i15.DefaultFlexOffsetDirective = (<any>(null as any));\nvar _decl0_47:i15.FlexFillDirective = (<any>(null as any));\nvar _decl0_48:i15.DefaultFlexAlignDirective = (<any>(null as any));\nvar _decl0_49:i15.DefaultFlexDirective = (<any>(null as any));\nvar _decl0_50:i16.NumberInputComponent = (<any>(null as any));\nvar _decl0_51:i17.StringInputComponent = (<any>(null as any));\nvar _decl0_52:i18.TextInputComponent = (<any>(null as any));\nvar _decl0_53:i19.PasswordInputComponent = (<any>(null as any));\nvar _decl0_54:i20.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_55:i21.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_56:i22.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_57:i23.AutocompleteInputComponent<any> = (<any>(null as any));\nvar _decl0_58:i24.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_59:i25.NoopComponent = (<any>(null as any));\nvar _decl0_60:i26.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_61:i26.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_62:i26.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_63:i27.FocusContainerComponent = (<any>(null as any));\nvar _decl0_64:i28.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_65:i29.FocusableComponent = (<any>(null as any));\nvar _decl0_66:i30.CardContainerComponent = (<any>(null as any));\nvar _decl0_67:i31.TableComponent<any> = (<any>(null as any));\nvar _decl0_68:i32.EditRowControls<any> = (<any>(null as any));\nvar _decl0_69:i33.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_70:i34.IconComponent = (<any>(null as any));\nvar _decl0_71:i35.SectionHeaderComponent = (<any>(null as any));\nvar _decl0_72:i36.TableRowMenuComponent<any> = (<any>(null as any));\nvar _decl0_73:i37.ToolBarComponent = (<any>(null as any));\nvar _decl0_74:i38.CommandComponent = (<any>(null as any));\nvar _decl0_75:i39.PopupMenuComponent = (<any>(null as any));\nvar _decl0_76:i40.CommandFaceComponent<any> = (<any>(null as any));\nvar _decl0_77:i41.MoreMenuComponent = (<any>(null as any));\nvar _decl0_78:i42.SeparatorComponent = (<any>(null as any));\nvar _decl0_79:i43.FlexComponent = (<any>(null as any));\nvar _decl0_80:i44.TreeTableComponent<any> = (<any>(null as any));\nvar _decl0_81:i45.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_82:i46.EmptyStateComponent = (<any>(null as any));\nvar _decl0_83:i47.PaginatorComponent = (<any>(null as any));\nvar _decl0_84:i48.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_85:i49.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_86:i50.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_87:i51.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_88:i52.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_89:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_90:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_91:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_92:i2.JsonPipe = (<any>(null as any));\nvar _decl0_93:i2.SlicePipe = (<any>(null as any));\nvar _decl0_94:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_95:i2.PercentPipe = (<any>(null as any));\nvar _decl0_96:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_97:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_98:i2.DatePipe = (<any>(null as any));\nvar _decl0_99:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_100:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_101:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_102:i2.CommonModule = (<any>(null as any));\nvar _decl0_103:i53.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_104:i4.MatProgressSpinnerModule = (<any>(null as any));\nvar _decl0_105:i5.RouterModule = (<any>(null as any));\nvar _decl0_106:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_107:i9.MatListModule = (<any>(null as any));\nvar _decl0_108:i11.MatTooltipModule = (<any>(null as any));\nvar _decl0_109:i12.MatIconModule = (<any>(null as any));\nvar _decl0_110:i54.DirectivesModule = (<any>(null as any));\nvar _decl0_111:i15.FlexModule = (<any>(null as any));\nvar _decl0_112:i55.ComponentsModule = (<any>(null as any));\nvar _decl0_113:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_114:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_PlaceOutletComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_PlaceOutletComponent_1_1():void {\n if (_decl0_84.animationEnabled.value) {\n var _any:any = (null as any);\n const currVal_0:any = {value:_decl0_84.getAnimationOrder(),params:{duration:_decl0_84.animationDuration}};\n currVal_0;\n const pd_1:any = ((<any>_decl0_84.animationStarted()) !== false);\n const pd_2:any = ((<any>_decl0_84.animationDone()) !== false);\n const pd_3:any = ((<any>_decl0_84.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_4:any = ((<any>_decl0_84.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_2():void {\n if (!_decl0_84.animationEnabled.value) {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_84.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_1:any = ((<any>_decl0_84.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_84.animationEnabled.value;\n currVal_0;\n const currVal_1:any = !_decl0_84.animationEnabled.value;\n currVal_1;\n}\nfunction _View_TabbedPlaceNavigationComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_85.isActive(_any);\n currVal_0;\n const currVal_1:any = (_decl0_23.active? 'page': null);\n currVal_1;\n const currVal_2:any = _decl0_23.disabled;\n currVal_2;\n const currVal_3:any = _decl0_23.tabIndex;\n currVal_3;\n const currVal_4:any = _decl0_23.disabled;\n currVal_4;\n const currVal_5:any = _decl0_23.active;\n currVal_5;\n const currVal_6:any = _decl0_85.getNavigationFace(_any).tooltip();\n currVal_6;\n const currVal_7:any = _decl0_85.commandFactory.create(_any);\n currVal_7;\n const currVal_8:any = [_decl0_85.getNavigationFace(_any)];\n currVal_8;\n const currVal_9:any = _decl0_76.requiresMissingIconInLayout;\n currVal_9;\n const currVal_10:any = _decl0_76.color;\n currVal_10;\n const pd_11:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_22._showPaginationControls;\n currVal_0;\n const currVal_1:any = (_decl0_22._getLayoutDirection() == 'rtl');\n currVal_1;\n const currVal_2:any = ((_decl0_22.color !== 'warn') && (_decl0_22.color !== 'accent'));\n currVal_2;\n const currVal_3:any = (_decl0_22.color === 'accent');\n currVal_3;\n const currVal_4:any = (_decl0_22.color === 'warn');\n currVal_4;\n const currVal_5:any = _decl0_85.placeDefinitions.value;\n currVal_5;\n}\nfunction _View_ListPlaceNavComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ListPlaceNavComponent_3_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_86.getNavigationFace(_any).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_86.commandFactory.create(_any);\n currVal_4;\n const currVal_5:any = _decl0_86.isActive(_any);\n currVal_5;\n const currVal_6:any = [_decl0_86.getNavigationFace(_any)];\n currVal_6;\n const currVal_7:any = _decl0_76.requiresMissingIconInLayout;\n currVal_7;\n const currVal_8:any = _decl0_76.color;\n currVal_8;\n const pd_9:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_ListPlaceNavComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = '';\n currVal_0;\n const currVal_1:any = _decl0_86.placeDefinitions.value;\n currVal_1;\n}\nfunction _View_SidePlaceNavigationComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_87.expanded;\n currVal_0;\n}\nfunction _View_SidePlaceNavigationComponent_4_2():void {\n if (_decl0_87.getNavigationFace(_any).icon()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_87.getNavigationFace(_any).icon();\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_87.getNavigationFace(_any).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_87.commandFactory.create(_any);\n currVal_4;\n const currVal_5:any = _decl0_87.isActive(_any);\n currVal_5;\n const currVal_6:any = _decl0_87.getNavigationFace(_any).icon();\n currVal_6;\n const currVal_7:any = _decl0_87.getNavigationFace(_any).text();\n currVal_7;\n const pd_8:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_SidePlaceNavigationComponent_4_3():void {\n if (_decl0_87.navEndTemplate) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_87.navEndTemplate;\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = 'mat:menu';\n currVal_3;\n const currVal_4:any = 'mat:arrow_back';\n currVal_4;\n const currVal_5:any = _decl0_87.placeDefinitions.value;\n currVal_5;\n const currVal_6:any = 1;\n currVal_6;\n const currVal_7:any = _decl0_87.navEndTemplate;\n currVal_7;\n const pd_8:any = ((<any>_decl0_87.toggleMenu()) !== false);\n}\nfunction _View_AbstractPlaceNavigationComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AbstractPlaceNavigationComponent_5_0():void {\n var _any:any = (null as any);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"place.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './place.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/progress-spinner';\nimport * as i5 from '@angular/router';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/material/core';\nimport * as i8 from '@angular/material/divider';\nimport * as i9 from '@angular/material/list';\nimport * as i10 from '@angular/cdk/scrolling';\nimport * as i11 from '@angular/material/tooltip';\nimport * as i12 from '@angular/material/icon';\nimport * as i13 from '../directives/command.directive';\nimport * as i14 from '../directives/focus-binding.directive';\nimport * as i15 from '@angular/flex-layout/flex';\nimport * as i16 from '../components/forms/number-input/number-input.component';\nimport * as i17 from '../components/forms/string-input/string-input.component';\nimport * as i18 from '../components/forms/text-input/text-input.component';\nimport * as i19 from '../components/forms/password-input/password-input.component';\nimport * as i20 from '../components/forms/checkbox-input/checkbox-input.component';\nimport * as i21 from '../components/forms/select-input/select-input.component';\nimport * as i22 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i23 from '../components/forms/autocomplete-input/autocomplete-input.component';\nimport * as i24 from '../components/scroll-container/scroll-container.component';\nimport * as i25 from '../components/noop/noop.component';\nimport * as i26 from '../components/switch-case/switch-case.component';\nimport * as i27 from '../components/focus-container/focus-container.component';\nimport * as i28 from '../components/vertical-focus-container/vertical-focus-container.component';\nimport * as i29 from '../components/focusable.component';\nimport * as i30 from '../components/card-container/card-container.component';\nimport * as i31 from '../components/table/table.component';\nimport * as i32 from '../components/table/edit-row-controls/edit-row-controls.component';\nimport * as i33 from '../components/table/column-template/column-template.directive';\nimport * as i34 from '../components/icon/icon.component';\nimport * as i35 from '../components/section-header/section-header.component';\nimport * as i36 from '../components/table/table-row-menu/table-row-menu.component';\nimport * as i37 from '../components/commands/group/tool-bar/tool-bar.component';\nimport * as i38 from '../components/commands/command/command.component';\nimport * as i39 from '../components/commands/group/popup-menu/popup-menu.component';\nimport * as i40 from '../components/commands/command-face/command-face.component';\nimport * as i41 from '../components/commands/group/popup-menu/more-menu.component';\nimport * as i42 from '../components/commands/separator.component';\nimport * as i43 from '../components/commands/flex.component';\nimport * as i44 from '../components/tree-table/tree-table-component';\nimport * as i45 from '../components/busy-overlay/busy-overlay.component';\nimport * as i46 from '../components/empty-state/empty-state.component';\nimport * as i47 from '../components/table/paginator/paginator.component';\nimport * as i48 from '@angular/cdk/portal';\nimport * as i49 from './components/place-outlet/place-outlet.component';\nimport * as i50 from './components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i51 from './components/list-place-nav/list-place-nav.component';\nimport * as i52 from './components/side-place-navigation/side-place-navigation.component';\nimport * as i53 from './components/abstract-place-navigation.component';\nimport * as i54 from './components/not-authorised-notice/not-authorised-notice.component';\nimport * as i55 from '@angular/platform-browser/animations';\nimport * as i56 from '../directives/directives.module';\nimport * as i57 from '../components/components.module';\nexport const PlaceModuleNgFactory:i0.NgModuleFactory<i1.PlaceModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatProgressSpinner = (<any>(null as any));\nvar _decl0_13:i4.MatSpinner = (<any>(null as any));\nvar _decl0_14:i5.RouterOutlet = (<any>(null as any));\nvar _decl0_15:i5.RouterLink = (<any>(null as any));\nvar _decl0_16:i5.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_17:i5.RouterLinkActive = (<any>(null as any));\nvar _decl0_18:i5.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.MatLine = (<any>(null as any));\nvar _decl0_26:i7.MatPseudoCheckbox = (<any>(null as any));\nvar _decl0_27:i8.MatDivider = (<any>(null as any));\nvar _decl0_28:i9.MatList = (<any>(null as any));\nvar _decl0_29:i9.MatNavList = (<any>(null as any));\nvar _decl0_30:i9.MatListItem = (<any>(null as any));\nvar _decl0_31:i9.MatListAvatarCssMatStyler = (<any>(null as any));\nvar _decl0_32:i9.MatListIconCssMatStyler = (<any>(null as any));\nvar _decl0_33:i9.MatListSubheaderCssMatStyler = (<any>(null as any));\nvar _decl0_34:i9.MatSelectionList = (<any>(null as any));\nvar _decl0_35:i9.MatListOption = (<any>(null as any));\nvar _decl0_36:i10.CdkScrollable = (<any>(null as any));\nvar _decl0_37:i11.MatTooltip = (<any>(null as any));\nvar _decl0_38:i11.TooltipComponent = (<any>(null as any));\nvar _decl0_39:i12.MatIcon = (<any>(null as any));\nvar _decl0_40:i13.CommandDirective<any> = (<any>(null as any));\nvar _decl0_41:i14.FocusBindingDirective = (<any>(null as any));\nvar _decl0_42:i15.DefaultLayoutDirective = (<any>(null as any));\nvar _decl0_43:i15.DefaultLayoutGapDirective = (<any>(null as any));\nvar _decl0_44:i15.DefaultLayoutAlignDirective = (<any>(null as any));\nvar _decl0_45:i15.DefaultFlexOrderDirective = (<any>(null as any));\nvar _decl0_46:i15.DefaultFlexOffsetDirective = (<any>(null as any));\nvar _decl0_47:i15.FlexFillDirective = (<any>(null as any));\nvar _decl0_48:i15.DefaultFlexAlignDirective = (<any>(null as any));\nvar _decl0_49:i15.DefaultFlexDirective = (<any>(null as any));\nvar _decl0_50:i16.NumberInputComponent = (<any>(null as any));\nvar _decl0_51:i17.StringInputComponent = (<any>(null as any));\nvar _decl0_52:i18.TextInputComponent = (<any>(null as any));\nvar _decl0_53:i19.PasswordInputComponent = (<any>(null as any));\nvar _decl0_54:i20.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_55:i21.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_56:i22.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_57:i23.AutocompleteInputComponent<any> = (<any>(null as any));\nvar _decl0_58:i24.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_59:i25.NoopComponent = (<any>(null as any));\nvar _decl0_60:i26.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_61:i26.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_62:i26.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_63:i27.FocusContainerComponent = (<any>(null as any));\nvar _decl0_64:i28.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_65:i29.FocusableComponent = (<any>(null as any));\nvar _decl0_66:i30.CardContainerComponent = (<any>(null as any));\nvar _decl0_67:i31.TableComponent<any> = (<any>(null as any));\nvar _decl0_68:i32.EditRowControls<any> = (<any>(null as any));\nvar _decl0_69:i33.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_70:i34.IconComponent = (<any>(null as any));\nvar _decl0_71:i35.SectionHeaderComponent = (<any>(null as any));\nvar _decl0_72:i36.TableRowMenuComponent<any> = (<any>(null as any));\nvar _decl0_73:i37.ToolBarComponent = (<any>(null as any));\nvar _decl0_74:i38.CommandComponent = (<any>(null as any));\nvar _decl0_75:i39.PopupMenuComponent = (<any>(null as any));\nvar _decl0_76:i40.CommandFaceComponent<any> = (<any>(null as any));\nvar _decl0_77:i41.MoreMenuComponent = (<any>(null as any));\nvar _decl0_78:i42.SeparatorComponent = (<any>(null as any));\nvar _decl0_79:i43.FlexComponent = (<any>(null as any));\nvar _decl0_80:i44.TreeTableComponent<any> = (<any>(null as any));\nvar _decl0_81:i45.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_82:i46.EmptyStateComponent = (<any>(null as any));\nvar _decl0_83:i47.PaginatorComponent = (<any>(null as any));\nvar _decl0_84:i48.CdkPortal = (<any>(null as any));\nvar _decl0_85:i48.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_86:i48.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_87:i48.PortalHostDirective = (<any>(null as any));\nvar _decl0_88:i49.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_89:i50.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_90:i51.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_91:i52.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_92:i53.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_93:i54.NotAuthorisedNoticeComponent = (<any>(null as any));\nvar _decl0_94:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_95:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_96:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_97:i2.JsonPipe = (<any>(null as any));\nvar _decl0_98:i2.SlicePipe = (<any>(null as any));\nvar _decl0_99:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_100:i2.PercentPipe = (<any>(null as any));\nvar _decl0_101:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_102:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_103:i2.DatePipe = (<any>(null as any));\nvar _decl0_104:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_105:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_106:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_107:i2.CommonModule = (<any>(null as any));\nvar _decl0_108:i55.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_109:i4.MatProgressSpinnerModule = (<any>(null as any));\nvar _decl0_110:i5.RouterModule = (<any>(null as any));\nvar _decl0_111:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_112:i9.MatListModule = (<any>(null as any));\nvar _decl0_113:i11.MatTooltipModule = (<any>(null as any));\nvar _decl0_114:i12.MatIconModule = (<any>(null as any));\nvar _decl0_115:i56.DirectivesModule = (<any>(null as any));\nvar _decl0_116:i15.FlexModule = (<any>(null as any));\nvar _decl0_117:i57.ComponentsModule = (<any>(null as any));\nvar _decl0_118:i48.PortalModule = (<any>(null as any));\nvar _decl0_119:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_120:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_PlaceOutletComponent_Host_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_88.isAuthorised;\n currVal_0;\n}\nfunction _View_PlaceOutletComponent_1_1():void {\n if (_decl0_88.animationEnabled.value) {\n var _any:any = (null as any);\n const currVal_0:any = {value:_decl0_88.getAnimationOrder(),params:{duration:_decl0_88.animationDuration}};\n currVal_0;\n const pd_1:any = ((<any>_decl0_88.animationStarted()) !== false);\n const pd_2:any = ((<any>_decl0_88.animationDone()) !== false);\n const pd_3:any = ((<any>_decl0_88.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_4:any = ((<any>_decl0_88.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_2():void {\n if (!_decl0_88.animationEnabled.value) {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_88.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_1:any = ((<any>_decl0_88.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_4():void {\n if (!_decl0_88.authorised.value) { var _any:any = (null as any); }\n}\nfunction _View_PlaceOutletComponent_1_3():void {\n if (!_decl0_88.authorised.value) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_88.notAuthorisedNoticePortal;\n currVal_0;\n }\n}\nfunction _View_PlaceOutletComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_88.animationEnabled.value;\n currVal_0;\n const currVal_1:any = !_decl0_88.animationEnabled.value;\n currVal_1;\n const currVal_2:any = !_decl0_88.authorised.value;\n currVal_2;\n}\nfunction _View_TabbedPlaceNavigationComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_89.isActive(_any);\n currVal_0;\n const currVal_1:any = (_decl0_23.active? 'page': null);\n currVal_1;\n const currVal_2:any = _decl0_23.disabled;\n currVal_2;\n const currVal_3:any = _decl0_23.tabIndex;\n currVal_3;\n const currVal_4:any = _decl0_23.disabled;\n currVal_4;\n const currVal_5:any = _decl0_23.active;\n currVal_5;\n const currVal_6:any = _decl0_89.getNavigationFace(_any).tooltip();\n currVal_6;\n const currVal_7:any = _decl0_89.commandFactory.create(_any);\n currVal_7;\n const currVal_8:any = [_decl0_89.getNavigationFace(_any)];\n currVal_8;\n const currVal_9:any = _decl0_76.requiresMissingIconInLayout;\n currVal_9;\n const currVal_10:any = _decl0_76.color;\n currVal_10;\n const pd_11:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_22._showPaginationControls;\n currVal_0;\n const currVal_1:any = (_decl0_22._getLayoutDirection() == 'rtl');\n currVal_1;\n const currVal_2:any = ((_decl0_22.color !== 'warn') && (_decl0_22.color !== 'accent'));\n currVal_2;\n const currVal_3:any = (_decl0_22.color === 'accent');\n currVal_3;\n const currVal_4:any = (_decl0_22.color === 'warn');\n currVal_4;\n const currVal_5:any = _decl0_89.placeDefinitions.value;\n currVal_5;\n}\nfunction _View_ListPlaceNavComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ListPlaceNavComponent_3_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_90.getNavigationFace(_any).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_90.commandFactory.create(_any);\n currVal_4;\n const currVal_5:any = _decl0_90.isActive(_any);\n currVal_5;\n const currVal_6:any = [_decl0_90.getNavigationFace(_any)];\n currVal_6;\n const currVal_7:any = _decl0_76.requiresMissingIconInLayout;\n currVal_7;\n const currVal_8:any = _decl0_76.color;\n currVal_8;\n const pd_9:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_ListPlaceNavComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = '';\n currVal_0;\n const currVal_1:any = _decl0_90.placeDefinitions.value;\n currVal_1;\n}\nfunction _View_SidePlaceNavigationComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.expanded;\n currVal_0;\n}\nfunction _View_SidePlaceNavigationComponent_4_2():void {\n if (_decl0_91.getNavigationFace(_any).icon()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.getNavigationFace(_any).icon();\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_91.getNavigationFace(_any).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_91.commandFactory.create(_any);\n currVal_4;\n const currVal_5:any = _decl0_91.isActive(_any);\n currVal_5;\n const currVal_6:any = _decl0_91.getNavigationFace(_any).icon();\n currVal_6;\n const currVal_7:any = _decl0_91.getNavigationFace(_any).text();\n currVal_7;\n const pd_8:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_SidePlaceNavigationComponent_4_3():void {\n if (_decl0_91.navEndTemplate) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.navEndTemplate;\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = 'mat:menu';\n currVal_3;\n const currVal_4:any = 'mat:arrow_back';\n currVal_4;\n const currVal_5:any = _decl0_91.placeDefinitions.value;\n currVal_5;\n const currVal_6:any = 1;\n currVal_6;\n const currVal_7:any = _decl0_91.navEndTemplate;\n currVal_7;\n const pd_8:any = ((<any>_decl0_91.toggleMenu()) !== false);\n}\nfunction _View_AbstractPlaceNavigationComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AbstractPlaceNavigationComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NotAuthorisedNoticeComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NotAuthorisedNoticeComponent_6_0():void {\n var _any:any = (null as any);\n}\n"]}
|
|
@@ -5487,6 +5487,7 @@ class PlaceComponentDeactivationHandler {
|
|
|
5487
5487
|
this.component = component;
|
|
5488
5488
|
this.navigationSession = navigationSession;
|
|
5489
5489
|
this.isPrimaryComponent = isPrimaryComponent;
|
|
5490
|
+
assert.notNil(component);
|
|
5490
5491
|
}
|
|
5491
5492
|
get routerInteractionAdapter() {
|
|
5492
5493
|
return this.navigationSession.interactionServiceAdapter;
|
|
@@ -6582,7 +6583,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
6582
6583
|
.pluck('name')
|
|
6583
6584
|
.otherwise(idleStateName);
|
|
6584
6585
|
DebugContext.tag(this._activeVisits, 'PlaceRouter.activeVisits');
|
|
6585
|
-
this.
|
|
6586
|
+
this.state = chain(this._activeVisits).reduce(visits => new PlaceRouter.State(visits));
|
|
6586
6587
|
// TODO: make setup the callbacks in during module initiation to make this testable.
|
|
6587
6588
|
angularRouter.events.subscribe(event => {
|
|
6588
6589
|
// Routing event sequence
|
|
@@ -6641,9 +6642,6 @@ class PlaceRouter extends GarbageCollector {
|
|
|
6641
6642
|
getAuthenticationFailureRedirect(activatedRoute, state) {
|
|
6642
6643
|
return this.redirections.onAuthenticationFailure(activatedRoute, state);
|
|
6643
6644
|
}
|
|
6644
|
-
getAuthorisationFailureRedirect(activatedRoute, state) {
|
|
6645
|
-
return this.redirections.onAuthorisationFailure(activatedRoute, state);
|
|
6646
|
-
}
|
|
6647
6645
|
get navigationSession() {
|
|
6648
6646
|
return this.navigationSessionModel.value;
|
|
6649
6647
|
}
|
|
@@ -6853,6 +6851,20 @@ PlaceRouter.ctorParameters = () => [
|
|
|
6853
6851
|
{ type: UrlService },
|
|
6854
6852
|
{ type: PlaceHistory }
|
|
6855
6853
|
];
|
|
6854
|
+
(function (PlaceRouter) {
|
|
6855
|
+
class State {
|
|
6856
|
+
constructor(activeVisits) {
|
|
6857
|
+
this.activeVisits = activeVisits;
|
|
6858
|
+
}
|
|
6859
|
+
isPlaceActive(placeDefinition) {
|
|
6860
|
+
return !!this.getVisitFor(placeDefinition);
|
|
6861
|
+
}
|
|
6862
|
+
getVisitFor(placeDefinition) {
|
|
6863
|
+
return this.activeVisits.find(v => v.placeDefinition === placeDefinition);
|
|
6864
|
+
}
|
|
6865
|
+
}
|
|
6866
|
+
PlaceRouter.State = State;
|
|
6867
|
+
})(PlaceRouter || (PlaceRouter = {}));
|
|
6856
6868
|
|
|
6857
6869
|
class Visit {
|
|
6858
6870
|
constructor(placeDefinition, visitParameters = {}) {
|
|
@@ -6920,6 +6932,19 @@ class Visit {
|
|
|
6920
6932
|
|
|
6921
6933
|
const AUP_PLACE_CONFIG = new InjectionToken('AUP_PLACE_CONFIG');
|
|
6922
6934
|
|
|
6935
|
+
class NotAuthorisedNoticeComponent {
|
|
6936
|
+
constructor() {
|
|
6937
|
+
}
|
|
6938
|
+
}
|
|
6939
|
+
NotAuthorisedNoticeComponent.decorators = [
|
|
6940
|
+
{ type: Component, args: [{
|
|
6941
|
+
selector: 'aup-not-authorised-notice',
|
|
6942
|
+
template: "<p>You are not authorised to access this page</p>\n",
|
|
6943
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]
|
|
6944
|
+
},] }
|
|
6945
|
+
];
|
|
6946
|
+
NotAuthorisedNoticeComponent.ctorParameters = () => [];
|
|
6947
|
+
|
|
6923
6948
|
// Freezes the state of the components at the start of the animation.
|
|
6924
6949
|
const animationStartStyle = style({ position: 'absolute', top: '0', left: '0', bottom: '0', right: '0' });
|
|
6925
6950
|
const left = [
|
|
@@ -6964,12 +6989,14 @@ function leftRightPlaceAnimation(duration) {
|
|
|
6964
6989
|
}
|
|
6965
6990
|
const LEFT_RIGHT_PLACE_ANIMATION = leftRightPlaceAnimation('0.3s');
|
|
6966
6991
|
|
|
6992
|
+
const AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = new InjectionToken('AUP_UNAUTHORISED_PLACE_COMPONENT');
|
|
6967
6993
|
class PlaceOutletComponent extends DisposableComponent {
|
|
6968
|
-
constructor(router, placeRouter, placeConfig, parentOutlet) {
|
|
6994
|
+
constructor(router, placeRouter, placeConfig, unauthorisedPlaceNotice, parentOutlet, cdr) {
|
|
6969
6995
|
super();
|
|
6970
6996
|
this.router = router;
|
|
6971
6997
|
this.placeRouter = placeRouter;
|
|
6972
6998
|
this.placeConfig = placeConfig;
|
|
6999
|
+
this.cdr = cdr;
|
|
6973
7000
|
this.placeChanged = new EventEmitter();
|
|
6974
7001
|
this.outletActivated = new MutableValueModel(false);
|
|
6975
7002
|
this._activatedRouteModel = new MutableValueModel();
|
|
@@ -7002,7 +7029,7 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
7002
7029
|
this.animationEnabled = valueOf.all(this.animateModel, this.animationSupported).areTruthy();
|
|
7003
7030
|
// Extract our visit model from the place router.
|
|
7004
7031
|
this._activePlaceDefinition = chain(this._activePlaceModel).pluck('placeDefinition');
|
|
7005
|
-
this.routerVisitModel =
|
|
7032
|
+
this.routerVisitModel = chain(placeRouter.state).map(state => state.getVisitFor(this._activePlaceDefinition.value), { dependsOn: this._activePlaceDefinition });
|
|
7006
7033
|
this.navigationInProgress = chain(this.placeRouter.navigationInProgress);
|
|
7007
7034
|
when(this.navigationInProgress).becomesFalsey(() => {
|
|
7008
7035
|
this.checkStateAndInitialise();
|
|
@@ -7013,13 +7040,11 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
7013
7040
|
chain(this._activePlaceModel)
|
|
7014
7041
|
.postponeWhile(this.navigationInProgress)
|
|
7015
7042
|
.subscribe(place => this.placeChanged.emit(place));
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
}
|
|
7022
|
-
});
|
|
7043
|
+
this.authorised = chain(placeRouter.accessGuard).map(guard => guard.isAuthorised(this._activePlaceDefinition.value), {
|
|
7044
|
+
dependsOn: this._activePlaceDefinition,
|
|
7045
|
+
postponeWhile: chain(this._activePlaceDefinition).isNil()
|
|
7046
|
+
}).otherwise(true); // if we don't have a place def yet we need to show the outlet so we get one injected.
|
|
7047
|
+
this.notAuthorisedNoticePortal = new ComponentPortal(unauthorisedPlaceNotice !== null && unauthorisedPlaceNotice !== void 0 ? unauthorisedPlaceNotice : NotAuthorisedNoticeComponent);
|
|
7023
7048
|
}
|
|
7024
7049
|
// @Trace()
|
|
7025
7050
|
ngOnInit() {
|
|
@@ -7031,6 +7056,9 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
7031
7056
|
get animationDuration() {
|
|
7032
7057
|
return this.placeConfig && this.placeConfig.animationDuration ? this.placeConfig.animationDuration : '500ms';
|
|
7033
7058
|
}
|
|
7059
|
+
get isAuthorised() {
|
|
7060
|
+
return this.authorised.value;
|
|
7061
|
+
}
|
|
7034
7062
|
// @Trace()
|
|
7035
7063
|
navigate(visit) {
|
|
7036
7064
|
// const place = this.placesInAnimationOrder.query().findMatching(p => visit.placeDefinition.component === p);
|
|
@@ -7085,6 +7113,7 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
7085
7113
|
lang.illegalState('wrong visit!!!');
|
|
7086
7114
|
}
|
|
7087
7115
|
this.initialisePlace(routerVisit, activePlace);
|
|
7116
|
+
this.cdr.detectChanges();
|
|
7088
7117
|
}
|
|
7089
7118
|
}
|
|
7090
7119
|
initialisePlace(routerVisit, activePlace) {
|
|
@@ -7135,16 +7164,18 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
7135
7164
|
PlaceOutletComponent.decorators = [
|
|
7136
7165
|
{ type: Component, args: [{
|
|
7137
7166
|
selector: 'aup-place-outlet',
|
|
7138
|
-
template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"
|
|
7167
|
+
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",
|
|
7139
7168
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
7140
|
-
styles: [":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:scroll}router-outlet{display:none}"]
|
|
7169
|
+
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:scroll}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}"]
|
|
7141
7170
|
},] }
|
|
7142
7171
|
];
|
|
7143
7172
|
PlaceOutletComponent.ctorParameters = () => [
|
|
7144
7173
|
{ type: Router },
|
|
7145
7174
|
{ type: PlaceRouter },
|
|
7146
7175
|
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [AUP_PLACE_CONFIG,] }] },
|
|
7147
|
-
{ type:
|
|
7176
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT,] }] },
|
|
7177
|
+
{ type: PlaceOutletComponent, decorators: [{ type: SkipSelf }, { type: Optional }] },
|
|
7178
|
+
{ type: ChangeDetectorRef }
|
|
7148
7179
|
];
|
|
7149
7180
|
PlaceOutletComponent.propDecorators = {
|
|
7150
7181
|
animate: [{ type: Input }],
|
|
@@ -7152,7 +7183,8 @@ PlaceOutletComponent.propDecorators = {
|
|
|
7152
7183
|
customPlaceAnimationOrderModel: [{ type: Input, args: ['placeAnimationOrderModel',] }],
|
|
7153
7184
|
customPlaceAnimationOrder: [{ type: Input, args: ['placeAnimationOrder',] }],
|
|
7154
7185
|
placeChanged: [{ type: Output }],
|
|
7155
|
-
routerOut: [{ type: ViewChild, args: ['routeOutlet', { static: true },] }]
|
|
7186
|
+
routerOut: [{ type: ViewChild, args: ['routeOutlet', { static: true },] }],
|
|
7187
|
+
isAuthorised: [{ type: HostBinding, args: ["class.authorised",] }]
|
|
7156
7188
|
};
|
|
7157
7189
|
__decorate([
|
|
7158
7190
|
StoreInValueModel('animateModel'),
|
|
@@ -7181,8 +7213,9 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
|
7181
7213
|
.map(c => PlaceComponent.getDefinition(c))
|
|
7182
7214
|
.select(d => {
|
|
7183
7215
|
const guard = placeRouter.accessGuard.value;
|
|
7184
|
-
|
|
7185
|
-
|
|
7216
|
+
const state = placeRouter.state.value;
|
|
7217
|
+
return guard.isAuthorised(d) || state.isPlaceActive(d);
|
|
7218
|
+
}, { dependsOn: [placeRouter.accessGuard, placeRouter.state] });
|
|
7186
7219
|
this.commandFactory = Command.createFactory((placeDefinition) => {
|
|
7187
7220
|
this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
7188
7221
|
});
|
|
@@ -7364,14 +7397,16 @@ PlaceModule.decorators = [
|
|
|
7364
7397
|
MatIconModule,
|
|
7365
7398
|
DirectivesModule,
|
|
7366
7399
|
FlexModule,
|
|
7367
|
-
ComponentsModule
|
|
7400
|
+
ComponentsModule,
|
|
7401
|
+
PortalModule
|
|
7368
7402
|
],
|
|
7369
7403
|
declarations: [
|
|
7370
7404
|
PlaceOutletComponent,
|
|
7371
7405
|
TabbedPlaceNavigationComponent,
|
|
7372
7406
|
ListPlaceNavComponent,
|
|
7373
7407
|
SidePlaceNavigationComponent,
|
|
7374
|
-
AbstractPlaceNavigationComponent
|
|
7408
|
+
AbstractPlaceNavigationComponent,
|
|
7409
|
+
NotAuthorisedNoticeComponent
|
|
7375
7410
|
],
|
|
7376
7411
|
entryComponents: [],
|
|
7377
7412
|
exports: [
|
|
@@ -7674,14 +7709,6 @@ class PlaceGuard {
|
|
|
7674
7709
|
}
|
|
7675
7710
|
return this.createUrlTree(redirectLocation);
|
|
7676
7711
|
}
|
|
7677
|
-
if (!(this.placeRouter.accessGuard.value ? this.placeRouter.accessGuard.value.isAuthorised(placeDefinition) : true)) {
|
|
7678
|
-
const redirectLocation = this.placeRouter.getAuthorisationFailureRedirect(activatedRoute, state);
|
|
7679
|
-
const nextPlaceDef = this.getPlaceDefinition(redirectLocation);
|
|
7680
|
-
if (!(this.placeRouter.accessGuard.value ? this.placeRouter.accessGuard.value.isAuthorised(nextPlaceDef) : true)) {
|
|
7681
|
-
lang.illegalState(`handleNotAuthorised hook returned place ${nextPlaceDef.component.name} that is not authorised for the current user.`);
|
|
7682
|
-
}
|
|
7683
|
-
return this.createUrlTree(redirectLocation);
|
|
7684
|
-
}
|
|
7685
7712
|
}
|
|
7686
7713
|
const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
|
|
7687
7714
|
// Parse our route params.
|
|
@@ -7713,6 +7740,11 @@ class PlaceGuard {
|
|
|
7713
7740
|
// @Trace()
|
|
7714
7741
|
canDeactivate(component, currentRoute, currentState, nextState) {
|
|
7715
7742
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7743
|
+
if (!component) {
|
|
7744
|
+
// this happens when the place wasn't authorised and the associated
|
|
7745
|
+
// router outlet was removed from the dom.
|
|
7746
|
+
return true;
|
|
7747
|
+
}
|
|
7716
7748
|
const currentUrl = this.urlService.parseUrl(currentState.url);
|
|
7717
7749
|
const nextUrl = this.urlService.parseUrl(nextState.url);
|
|
7718
7750
|
const result = yield this.placeRouter.navigationSession.canDeactivatePlace(component, currentUrl, nextUrl);
|
|
@@ -7877,5 +7909,5 @@ function VisitParameterList(options) {
|
|
|
7877
7909
|
* Generated bundle index. Do not edit.
|
|
7878
7910
|
*/
|
|
7879
7911
|
|
|
7880
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenStrategy, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SelfAndDescendantsVisitor, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, TreeToListModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0 };
|
|
7912
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenStrategy, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SelfAndDescendantsVisitor, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, TreeToListModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0 };
|
|
7881
7913
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|