@coolon/angular-ui-powerups 3.10.2 → 3.10.4

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +78 -60
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  8. package/esm2015/lib/{place/components → components}/busy-overlay/busy-overlay.component.js +3 -2
  9. package/esm2015/lib/components/busy-overlay/busy-overlay.component.js.map +1 -0
  10. package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -0
  11. package/esm2015/lib/components/busy-overlay/busy-overlay.component.ngfactory.js.map +1 -0
  12. package/esm2015/lib/components/busy-overlay/busy-overlay.component.scss.shim.ngstyle.js.map +1 -0
  13. package/esm2015/lib/components/components.module.js +11 -3
  14. package/esm2015/lib/components/components.module.js.map +1 -1
  15. package/esm2015/lib/components/components.module.metadata.json +1 -1
  16. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  17. package/esm2015/lib/components/empty-state/empty-state.component.js.map +1 -0
  18. package/esm2015/lib/components/empty-state/empty-state.component.ngfactory.js.map +1 -0
  19. package/esm2015/lib/components/empty-state/empty-state.component.scss.shim.ngstyle.js.map +1 -0
  20. package/esm2015/lib/components/exports.js +2 -0
  21. package/esm2015/lib/components/exports.js.map +1 -1
  22. package/esm2015/lib/components/exports.metadata.json +1 -1
  23. package/esm2015/lib/components/switch-case/switch-case.component.js +3 -1
  24. package/esm2015/lib/components/switch-case/switch-case.component.js.map +1 -1
  25. package/esm2015/lib/interaction/activity-ref.js +7 -1
  26. package/esm2015/lib/interaction/activity-ref.js.map +1 -1
  27. package/esm2015/lib/interaction/activity-ref.metadata.json +1 -1
  28. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +6 -3
  29. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  30. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  31. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  32. package/esm2015/lib/place/exports.js +0 -2
  33. package/esm2015/lib/place/exports.js.map +1 -1
  34. package/esm2015/lib/place/exports.metadata.json +1 -1
  35. package/esm2015/lib/place/place-router.js +1 -1
  36. package/esm2015/lib/place/place-router.js.map +1 -1
  37. package/esm2015/lib/place/place.module.js +1 -7
  38. package/esm2015/lib/place/place.module.js.map +1 -1
  39. package/esm2015/lib/place/place.module.metadata.json +1 -1
  40. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  41. package/fesm2015/coolon-angular-ui-powerups.js +73 -60
  42. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  43. package/lib/components/busy-overlay/busy-overlay.component.d.ts +8 -0
  44. package/lib/components/exports.d.ts +2 -0
  45. package/lib/interaction/activity-ref.d.ts +3 -1
  46. package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -1
  47. package/lib/place/exports.d.ts +0 -2
  48. package/lib/place/place-router.d.ts +1 -1
  49. package/package.json +1 -1
  50. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js.map +0 -1
  51. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.metadata.json +0 -1
  52. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.ngfactory.js.map +0 -1
  53. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.scss.shim.ngstyle.js.map +0 -1
  54. package/esm2015/lib/place/components/empty-state/empty-state.component.js.map +0 -1
  55. package/esm2015/lib/place/components/empty-state/empty-state.component.ngfactory.js.map +0 -1
  56. package/esm2015/lib/place/components/empty-state/empty-state.component.scss.shim.ngstyle.js.map +0 -1
  57. package/lib/place/components/busy-overlay/busy-overlay.component.d.ts +0 -8
  58. /package/esm2015/lib/{place/components → components}/empty-state/empty-state.component.js +0 -0
  59. /package/esm2015/lib/{place/components → components}/empty-state/empty-state.component.metadata.json +0 -0
  60. /package/lib/{place/components → components}/empty-state/empty-state.component.d.ts +0 -0
@@ -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;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;;;;;AAO3C,MAAM,OAAO,WAAY,SAAQ,gBAAgB;IAoB/C,YAA6B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AAW,CAAC,CAAC;gBACjC,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;aAAM;YACL,OAAO,IAAI,OAAO,CAAU,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBAC/C,0EAA0E;gBAC1E,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;gBAC7C,MAAM,OAAO,GAAG,IAAI,yCAAyC,CAAC,IAAI,CAAC,iBAAiB,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;;;;YAlVF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;YApCC,MAAM;YAVC,QAAQ;YA6BR,kBAAkB;YAWlB,UAAU;YADV,YAAY","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 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<void> {\n const { when } = Dsl.disposeWith(this);\n return new Promise<void>(resolve => {\n when(this.navigationInProgress).becomesFalsey(() => resolve(), {\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":"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,OAA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M,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;;;;YAlVF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;YApCC,MAAM;YAVC,QAAQ;YA6BR,kBAAkB;YAWlB,UAAU;YADV,YAAY","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 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"]}
@@ -11,8 +11,6 @@ import { RouterModule } from '@angular/router';
11
11
  import { ComponentsModule } from '../components/exports';
12
12
  import { DirectivesModule } from '../directives/directives.module';
13
13
  import { AbstractPlaceNavigationComponent } from './components/abstract-place-navigation.component';
14
- import { BusyOverlayComponent } from './components/busy-overlay/busy-overlay.component';
15
- import { EmptyStateComponent } from './components/empty-state/empty-state.component';
16
14
  import { ListPlaceNavComponent } from './components/list-place-nav/list-place-nav.component';
17
15
  import { PlaceOutletComponent } from './components/place-outlet/place-outlet.component';
18
16
  import { SidePlaceNavigationComponent } from './components/side-place-navigation/side-place-navigation.component';
@@ -35,19 +33,15 @@ PlaceModule.decorators = [
35
33
  ComponentsModule
36
34
  ],
37
35
  declarations: [
38
- EmptyStateComponent,
39
- BusyOverlayComponent,
40
36
  PlaceOutletComponent,
41
37
  TabbedPlaceNavigationComponent,
42
38
  ListPlaceNavComponent,
43
39
  SidePlaceNavigationComponent,
44
40
  AbstractPlaceNavigationComponent
45
41
  ],
46
- entryComponents: [BusyOverlayComponent],
42
+ entryComponents: [],
47
43
  exports: [
48
- BusyOverlayComponent,
49
44
  PlaceOutletComponent,
50
- EmptyStateComponent,
51
45
  TabbedPlaceNavigationComponent,
52
46
  ListPlaceNavComponent,
53
47
  SidePlaceNavigationComponent,
@@ -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,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,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;AAC/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,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oEAAoE,CAAC;AAClH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wEAAwE,CAAC;AAuCxH,MAAM,OAAO,WAAW;;;YArCvB,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;iBACjB;gBACD,YAAY,EAAE;oBACZ,mBAAmB;oBACnB,oBAAoB;oBACpB,oBAAoB;oBACpB,8BAA8B;oBAC9B,qBAAqB;oBACrB,4BAA4B;oBAC5B,gCAAgC;iBACjC;gBACD,eAAe,EAAE,CAAC,oBAAoB,CAAC;gBACvC,OAAO,EAAE;oBACP,oBAAoB;oBACpB,oBAAoB;oBACpB,mBAAmB;oBACnB,8BAA8B;oBAC9B,qBAAqB;oBACrB,4BAA4B;oBAC5B,gCAAgC;iBACjC;gBACD,SAAS,EAAE;gBACT,uEAAuE;iBACxE;aACF","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { 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 { ComponentsModule } from '../components/exports';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { AbstractPlaceNavigationComponent } from './components/abstract-place-navigation.component';\nimport { BusyOverlayComponent } from './components/busy-overlay/busy-overlay.component';\nimport { EmptyStateComponent } from './components/empty-state/empty-state.component';\nimport { ListPlaceNavComponent } from './components/list-place-nav/list-place-nav.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@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 ],\n declarations: [\n EmptyStateComponent,\n BusyOverlayComponent,\n PlaceOutletComponent,\n TabbedPlaceNavigationComponent,\n ListPlaceNavComponent,\n SidePlaceNavigationComponent,\n AbstractPlaceNavigationComponent\n ],\n entryComponents: [BusyOverlayComponent],\n exports: [\n BusyOverlayComponent,\n PlaceOutletComponent,\n EmptyStateComponent,\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
+ {"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,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,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;AAC/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,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oEAAoE,CAAC;AAClH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wEAAwE,CAAC;AAmCxH,MAAM,OAAO,WAAW;;;YAjCvB,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;iBACjB;gBACD,YAAY,EAAE;oBACZ,oBAAoB;oBACpB,8BAA8B;oBAC9B,qBAAqB;oBACrB,4BAA4B;oBAC5B,gCAAgC;iBACjC;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 { CommonModule } from '@angular/common';\nimport { 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 { 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 { 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@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 ],\n declarations: [\n PlaceOutletComponent,\n TabbedPlaceNavigationComponent,\n ListPlaceNavComponent,\n SidePlaceNavigationComponent,\n AbstractPlaceNavigationComponent\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":20,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":22,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":23,"character":4},{"__symbolic":"reference","module":"@angular/material/progress-spinner","name":"MatProgressSpinnerModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material/tabs","name":"MatTabsModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material/list","name":"MatListModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material/tooltip","name":"MatTooltipModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":29,"character":4},{"__symbolic":"reference","module":"../directives/directives.module","name":"DirectivesModule","line":30,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexModule","line":31,"character":4},{"__symbolic":"reference","module":"../components/exports","name":"ComponentsModule","line":32,"character":4}],"declarations":[{"__symbolic":"reference","module":"./components/empty-state/empty-state.component","name":"EmptyStateComponent","line":35,"character":4},{"__symbolic":"reference","module":"./components/busy-overlay/busy-overlay.component","name":"BusyOverlayComponent","line":36,"character":4},{"__symbolic":"reference","module":"./components/place-outlet/place-outlet.component","name":"PlaceOutletComponent","line":37,"character":4},{"__symbolic":"reference","module":"./components/tabbed-place-navigation/tabbed-place-navigation.component","name":"TabbedPlaceNavigationComponent","line":38,"character":4},{"__symbolic":"reference","module":"./components/list-place-nav/list-place-nav.component","name":"ListPlaceNavComponent","line":39,"character":4},{"__symbolic":"reference","module":"./components/side-place-navigation/side-place-navigation.component","name":"SidePlaceNavigationComponent","line":40,"character":4},{"__symbolic":"reference","module":"./components/abstract-place-navigation.component","name":"AbstractPlaceNavigationComponent","line":41,"character":4}],"entryComponents":[{"__symbolic":"reference","module":"./components/busy-overlay/busy-overlay.component","name":"BusyOverlayComponent","line":43,"character":20}],"exports":[{"__symbolic":"reference","module":"./components/busy-overlay/busy-overlay.component","name":"BusyOverlayComponent","line":45,"character":4},{"__symbolic":"reference","module":"./components/place-outlet/place-outlet.component","name":"PlaceOutletComponent","line":46,"character":4},{"__symbolic":"reference","module":"./components/empty-state/empty-state.component","name":"EmptyStateComponent","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
+ [{"__symbolic":"module","version":4,"metadata":{"PlaceModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":20,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":21,"character":4},{"__symbolic":"reference","module":"@angular/material/progress-spinner","name":"MatProgressSpinnerModule","line":22,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":23,"character":4},{"__symbolic":"reference","module":"@angular/material/tabs","name":"MatTabsModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material/list","name":"MatListModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material/tooltip","name":"MatTooltipModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":27,"character":4},{"__symbolic":"reference","module":"../directives/directives.module","name":"DirectivesModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexModule","line":29,"character":4},{"__symbolic":"reference","module":"../components/exports","name":"ComponentsModule","line":30,"character":4}],"declarations":[{"__symbolic":"reference","module":"./components/place-outlet/place-outlet.component","name":"PlaceOutletComponent","line":33,"character":4},{"__symbolic":"reference","module":"./components/tabbed-place-navigation/tabbed-place-navigation.component","name":"TabbedPlaceNavigationComponent","line":34,"character":4},{"__symbolic":"reference","module":"./components/list-place-nav/list-place-nav.component","name":"ListPlaceNavComponent","line":35,"character":4},{"__symbolic":"reference","module":"./components/side-place-navigation/side-place-navigation.component","name":"SidePlaceNavigationComponent","line":36,"character":4},{"__symbolic":"reference","module":"./components/abstract-place-navigation.component","name":"AbstractPlaceNavigationComponent","line":37,"character":4}],"entryComponents":[],"exports":[{"__symbolic":"reference","module":"./components/place-outlet/place-outlet.component","name":"PlaceOutletComponent","line":41,"character":4},{"__symbolic":"reference","module":"./components/tabbed-place-navigation/tabbed-place-navigation.component","name":"TabbedPlaceNavigationComponent","line":42,"character":4},{"__symbolic":"reference","module":"./components/list-place-nav/list-place-nav.component","name":"ListPlaceNavComponent","line":43,"character":4},{"__symbolic":"reference","module":"./components/side-place-navigation/side-place-navigation.component","name":"SidePlaceNavigationComponent","line":44,"character":4},{"__symbolic":"reference","module":"./components/abstract-place-navigation.component","name":"AbstractPlaceNavigationComponent","line":45,"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/empty-state/empty-state.component';\nimport * as i46 from './components/busy-overlay/busy-overlay.component';\nimport * as i47 from './components/place-outlet/place-outlet.component';\nimport * as i48 from './components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i49 from './components/list-place-nav/list-place-nav.component';\nimport * as i50 from './components/side-place-navigation/side-place-navigation.component';\nimport * as i51 from './components/abstract-place-navigation.component';\nimport * as i52 from '@angular/platform-browser/animations';\nimport * as i53 from '../directives/directives.module';\nimport * as i54 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.EmptyStateComponent = (<any>(null as any));\nvar _decl0_82:i46.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_83:i47.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_84:i48.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_85:i49.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_86:i50.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_87:i51.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_88:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_89:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_90:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_91:i2.JsonPipe = (<any>(null as any));\nvar _decl0_92:i2.SlicePipe = (<any>(null as any));\nvar _decl0_93:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_94:i2.PercentPipe = (<any>(null as any));\nvar _decl0_95:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_96:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_97:i2.DatePipe = (<any>(null as any));\nvar _decl0_98:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_99:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_100:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_101:i2.CommonModule = (<any>(null as any));\nvar _decl0_102:i52.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_103:i4.MatProgressSpinnerModule = (<any>(null as any));\nvar _decl0_104:i5.RouterModule = (<any>(null as any));\nvar _decl0_105:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_106:i9.MatListModule = (<any>(null as any));\nvar _decl0_107:i11.MatTooltipModule = (<any>(null as any));\nvar _decl0_108:i12.MatIconModule = (<any>(null as any));\nvar _decl0_109:i53.DirectivesModule = (<any>(null as any));\nvar _decl0_110:i15.FlexModule = (<any>(null as any));\nvar _decl0_111:i54.ComponentsModule = (<any>(null as any));\nvar _decl0_112:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_113:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_EmptyStateComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_EmptyStateComponent_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_BusyOverlayComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_BusyOverlayComponent_2_1():void {\n if (_decl0_82.busyModel.value) {\n var _any:any = (null as any);\n const currVal_0:any = 52;\n currVal_0;\n const currVal_1:any = 'indeterminate';\n currVal_1;\n const currVal_2:any = _decl0_12._noopAnimations;\n currVal_2;\n const currVal_3:any = _decl0_12.diameter;\n currVal_3;\n const currVal_4:any = _decl0_12.diameter;\n currVal_4;\n const currVal_5:any = ((_decl0_12.mode === 'determinate')? 0: null);\n currVal_5;\n const currVal_6:any = ((_decl0_12.mode === 'determinate')? 100: null);\n currVal_6;\n const currVal_7:any = ((_decl0_12.mode === 'determinate')? _decl0_12.value: null);\n currVal_7;\n const currVal_8:any = _decl0_12.mode;\n currVal_8;\n }\n}\nfunction _View_BusyOverlayComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_82.busyModel.value;\n currVal_0;\n}\nfunction _View_PlaceOutletComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_PlaceOutletComponent_3_1():void {\n if (_decl0_83.animationEnabled.value) {\n var _any:any = (null as any);\n const currVal_0:any = {value:_decl0_83.getAnimationOrder(),params:{duration:_decl0_83.animationDuration}};\n currVal_0;\n const pd_1:any = ((<any>_decl0_83.animationStarted()) !== false);\n const pd_2:any = ((<any>_decl0_83.animationDone()) !== false);\n const pd_3:any = ((<any>_decl0_83.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_4:any = ((<any>_decl0_83.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_3_2():void {\n if (!_decl0_83.animationEnabled.value) {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_83.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_1:any = ((<any>_decl0_83.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_83.animationEnabled.value;\n currVal_0;\n const currVal_1:any = !_decl0_83.animationEnabled.value;\n currVal_1;\n}\nfunction _View_TabbedPlaceNavigationComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_TabbedPlaceNavigationComponent_4_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_84.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_84.getNavigationFace(_any).tooltip();\n currVal_6;\n const currVal_7:any = _decl0_84.commandFactory.create(_any);\n currVal_7;\n const currVal_8:any = [_decl0_84.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_4_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_84.placeDefinitions.value;\n currVal_5;\n}\nfunction _View_ListPlaceNavComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ListPlaceNavComponent_5_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_85.getNavigationFace(_any).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_85.commandFactory.create(_any);\n currVal_4;\n const currVal_5:any = _decl0_85.isActive(_any);\n currVal_5;\n const currVal_6:any = [_decl0_85.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_5_0():void {\n var _any:any = (null as any);\n const currVal_0:any = '';\n currVal_0;\n const currVal_1:any = _decl0_85.placeDefinitions.value;\n currVal_1;\n}\nfunction _View_SidePlaceNavigationComponent_Host_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.expanded;\n currVal_0;\n}\nfunction _View_SidePlaceNavigationComponent_6_2():void {\n if (_decl0_86.getNavigationFace(_any).icon()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.getNavigationFace(_any).icon();\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_6_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).icon();\n currVal_6;\n const currVal_7:any = _decl0_86.getNavigationFace(_any).text();\n currVal_7;\n const pd_8:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_SidePlaceNavigationComponent_6_3():void {\n if (_decl0_86.navEndTemplate) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.navEndTemplate;\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_6_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_86.placeDefinitions.value;\n currVal_5;\n const currVal_6:any = 1;\n currVal_6;\n const currVal_7:any = _decl0_86.navEndTemplate;\n currVal_7;\n const pd_8:any = ((<any>_decl0_86.toggleMenu()) !== false);\n}\nfunction _View_AbstractPlaceNavigationComponent_Host_7_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AbstractPlaceNavigationComponent_7_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/place-outlet/place-outlet.component';\nimport * as i48 from './components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i49 from './components/list-place-nav/list-place-nav.component';\nimport * as i50 from './components/side-place-navigation/side-place-navigation.component';\nimport * as i51 from './components/abstract-place-navigation.component';\nimport * as i52 from '@angular/platform-browser/animations';\nimport * as i53 from '../directives/directives.module';\nimport * as i54 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.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_84:i48.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_85:i49.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_86:i50.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_87:i51.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_88:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_89:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_90:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_91:i2.JsonPipe = (<any>(null as any));\nvar _decl0_92:i2.SlicePipe = (<any>(null as any));\nvar _decl0_93:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_94:i2.PercentPipe = (<any>(null as any));\nvar _decl0_95:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_96:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_97:i2.DatePipe = (<any>(null as any));\nvar _decl0_98:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_99:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_100:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_101:i2.CommonModule = (<any>(null as any));\nvar _decl0_102:i52.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_103:i4.MatProgressSpinnerModule = (<any>(null as any));\nvar _decl0_104:i5.RouterModule = (<any>(null as any));\nvar _decl0_105:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_106:i9.MatListModule = (<any>(null as any));\nvar _decl0_107:i11.MatTooltipModule = (<any>(null as any));\nvar _decl0_108:i12.MatIconModule = (<any>(null as any));\nvar _decl0_109:i53.DirectivesModule = (<any>(null as any));\nvar _decl0_110:i15.FlexModule = (<any>(null as any));\nvar _decl0_111:i54.ComponentsModule = (<any>(null as any));\nvar _decl0_112:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_113: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_83.animationEnabled.value) {\n var _any:any = (null as any);\n const currVal_0:any = {value:_decl0_83.getAnimationOrder(),params:{duration:_decl0_83.animationDuration}};\n currVal_0;\n const pd_1:any = ((<any>_decl0_83.animationStarted()) !== false);\n const pd_2:any = ((<any>_decl0_83.animationDone()) !== false);\n const pd_3:any = ((<any>_decl0_83.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_4:any = ((<any>_decl0_83.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_2():void {\n if (!_decl0_83.animationEnabled.value) {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_83.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_1:any = ((<any>_decl0_83.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_83.animationEnabled.value;\n currVal_0;\n const currVal_1:any = !_decl0_83.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_84.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_84.getNavigationFace(_any).tooltip();\n currVal_6;\n const currVal_7:any = _decl0_84.commandFactory.create(_any);\n currVal_7;\n const currVal_8:any = [_decl0_84.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_84.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_85.getNavigationFace(_any).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_85.commandFactory.create(_any);\n currVal_4;\n const currVal_5:any = _decl0_85.isActive(_any);\n currVal_5;\n const currVal_6:any = [_decl0_85.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_85.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_86.expanded;\n currVal_0;\n}\nfunction _View_SidePlaceNavigationComponent_4_2():void {\n if (_decl0_86.getNavigationFace(_any).icon()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.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_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).icon();\n currVal_6;\n const currVal_7:any = _decl0_86.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_86.navEndTemplate) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.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_86.placeDefinitions.value;\n currVal_5;\n const currVal_6:any = 1;\n currVal_6;\n const currVal_7:any = _decl0_86.navEndTemplate;\n currVal_7;\n const pd_8:any = ((<any>_decl0_86.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"]}
@@ -14,11 +14,12 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
14
14
  import { MatDividerModule } from '@angular/material/divider';
15
15
  import { MatIconModule } from '@angular/material/icon';
16
16
  import { MatMenuItem, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
17
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
17
18
  import { MatTableModule } from '@angular/material/table';
18
19
  import { MatTooltipModule } from '@angular/material/tooltip';
19
20
  import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
20
21
  import { fas } from '@fortawesome/free-solid-svg-icons';
21
- import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, Command, MutableListModel, StoreInListModel, ValueModel, StoreInValueModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DirtyTrackingForm, ComputedListModel, DelegatingCommand, Deferred, Trace, Functions } from '@coolon/pectin';
22
+ import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DirtyTrackingForm, ComputedListModel, DelegatingCommand, Deferred, Trace, Functions } from '@coolon/pectin';
22
23
  import { __decorate, __metadata, __awaiter } from 'tslib';
23
24
  import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
24
25
  import _, { find, filter, each, isNil, isEqual } from 'lodash';
@@ -31,7 +32,6 @@ import { RouterModule, ActivatedRouteSnapshot, NavigationStart, NavigationCancel
31
32
  import { Overlay, CdkScrollable } from '@angular/cdk/overlay';
32
33
  import ResizeObserver from 'resize-observer-polyfill';
33
34
  import { MatListModule } from '@angular/material/list';
34
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
35
35
  import { Memoize as Memoize$1 } from '@typescript-plus/fast-memoize-decorator';
36
36
  import 'reflect-metadata';
37
37
  import { style, query, group, animate, trigger, transition } from '@angular/animations';
@@ -319,6 +319,34 @@ DirectivesModule.decorators = [
319
319
  },] }
320
320
  ];
321
321
 
322
+ class BusyOverlayComponent extends GarbageCollector {
323
+ constructor() {
324
+ super();
325
+ }
326
+ ngOnInit() {
327
+ }
328
+ }
329
+ BusyOverlayComponent.decorators = [
330
+ { type: Component, args: [{
331
+ selector: 'aup-busy-overlay',
332
+ template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
333
+ styles: [":host{position:relative}div.busy-overlay-backdrop{-ms-grid-columns:auto;-ms-grid-rows:auto;background-color:rgba(0,0,0,.2);bottom:0;display:-ms-grid;display:grid;grid-template-columns:auto;grid-template-rows:auto;left:0;place-content:center;position:absolute;right:0;top:0}"]
334
+ },] }
335
+ ];
336
+ BusyOverlayComponent.ctorParameters = () => [];
337
+ BusyOverlayComponent.propDecorators = {
338
+ busyModel: [{ type: Input }],
339
+ busy: [{ type: Input }]
340
+ };
341
+ __decorate([
342
+ TrackExternal(),
343
+ __metadata("design:type", ValueModel)
344
+ ], BusyOverlayComponent.prototype, "busyModel", void 0);
345
+ __decorate([
346
+ StoreInValueModel('busyModel'),
347
+ __metadata("design:type", Boolean)
348
+ ], BusyOverlayComponent.prototype, "busy", void 0);
349
+
322
350
  var CommandFace;
323
351
  (function (CommandFace) {
324
352
  let Position;
@@ -996,6 +1024,25 @@ PopupMenuRendererComponent.propDecorators = {
996
1024
  triggers: [{ type: ViewChildren, args: [MatMenuTrigger,] }]
997
1025
  };
998
1026
 
1027
+ class EmptyStateComponent {
1028
+ constructor() {
1029
+ }
1030
+ ngOnInit() {
1031
+ }
1032
+ }
1033
+ EmptyStateComponent.decorators = [
1034
+ { type: Component, args: [{
1035
+ selector: 'aup-empty-state',
1036
+ template: `
1037
+ <div class="container">
1038
+ <ng-content></ng-content>
1039
+ </div>
1040
+ `,
1041
+ styles: [":host{align-items:center;display:flex;flex-direction:column;justify-content:center}.container{border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300;padding:var(--aup-default-padding)}"]
1042
+ },] }
1043
+ ];
1044
+ EmptyStateComponent.ctorParameters = () => [];
1045
+
999
1046
  class FocusContainerComponent extends DisposableComponent {
1000
1047
  constructor(focusManager) {
1001
1048
  super();
@@ -1724,7 +1771,9 @@ class SwitchCaseComponent extends DisposableComponent {
1724
1771
  }
1725
1772
  if (matchingIndicies.length === 0) {
1726
1773
  this.switchCaseOptions.forEach((option, index) => {
1727
- matchingIndicies.push(index);
1774
+ if (option.isDefault) {
1775
+ matchingIndicies.push(index);
1776
+ }
1728
1777
  });
1729
1778
  if (matchingIndicies.length > 1) {
1730
1779
  console.warn(`found ${matchingIndicies.length} default case values, displaying the first.`);
@@ -3517,7 +3566,9 @@ ComponentsModule.decorators = [
3517
3566
  TreeTableComponent,
3518
3567
  TreeInheritanceIconComponent,
3519
3568
  TreeLabelCellRendererComponent,
3520
- IconComponent
3569
+ IconComponent,
3570
+ BusyOverlayComponent,
3571
+ EmptyStateComponent,
3521
3572
  ],
3522
3573
  imports: [
3523
3574
  CommonModule,
@@ -3538,7 +3589,8 @@ ComponentsModule.decorators = [
3538
3589
  MatTooltipModule,
3539
3590
  MatAutocompleteModule,
3540
3591
  MatMenuModule,
3541
- MatDividerModule
3592
+ MatDividerModule,
3593
+ MatProgressSpinnerModule
3542
3594
  ],
3543
3595
  exports: [
3544
3596
  NumberInputComponent,
@@ -3571,7 +3623,9 @@ ComponentsModule.decorators = [
3571
3623
  MoreMenuComponent,
3572
3624
  SeparatorComponent,
3573
3625
  FlexComponent,
3574
- TreeTableComponent
3626
+ TreeTableComponent,
3627
+ BusyOverlayComponent,
3628
+ EmptyStateComponent,
3575
3629
  ],
3576
3630
  providers: [
3577
3631
  FocusBindingFactory
@@ -3831,6 +3885,7 @@ class ActivityRef {
3831
3885
  this._complete = false;
3832
3886
  this.deferredResult = Deferred.defer();
3833
3887
  this.focusedModel = new MutableValueModel();
3888
+ this._activityBusy = new DelegatingValueModel().withDefault(false);
3834
3889
  }
3835
3890
  isActivityRealised() {
3836
3891
  return !!this._activity;
@@ -3861,12 +3916,14 @@ class ActivityRef {
3861
3916
  },
3862
3917
  focused: this.focusedModel.readonly
3863
3918
  });
3919
+ this._activityBusy.setDelegate(this._activity.busy);
3864
3920
  }
3865
3921
  finishActivity(resolveOrReject) {
3866
3922
  assert.isFalsey(this.isComplete());
3867
3923
  resolveOrReject(this.deferredResult);
3868
3924
  this._complete = true;
3869
3925
  this.onComplete(this);
3926
+ this._activityBusy.dispose();
3870
3927
  }
3871
3928
  cancel() {
3872
3929
  this.activity.cancel();
@@ -3874,6 +3931,9 @@ class ActivityRef {
3874
3931
  get activityResult() {
3875
3932
  return this.deferredResult.promise;
3876
3933
  }
3934
+ get activityBusy() {
3935
+ return this._activityBusy.readonly;
3936
+ }
3877
3937
  }
3878
3938
 
3879
3939
  /**
@@ -3940,6 +4000,8 @@ class ActivityContainerComponent extends AbstractInteractionContext {
3940
4000
  this.activityRefs = [];
3941
4001
  this.garbage = new GarbageCollector();
3942
4002
  this.inAnimation = new MutableValueModel(false);
4003
+ this.busy = new DelegatingValueModel().withDefault(false);
4004
+ this.registerDisposable(this.busy);
3943
4005
  }
3944
4006
  ngOnInit() {
3945
4007
  }
@@ -4082,6 +4144,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
4082
4144
  if (previousIndex !== newIndex) {
4083
4145
  this.inAnimation.value = true;
4084
4146
  this.activityRefs[newIndex].setFocused(false);
4147
+ this.busy.setDelegate(this.activityRefs[newIndex].activityBusy);
4085
4148
  this.tabs.selectedIndex = newIndex;
4086
4149
  this.onAnimationFinishedJob = () => {
4087
4150
  this.activityRefs = this.activityRefs.filter(tab => !tab.isComplete());
@@ -4113,8 +4176,8 @@ class ActivityContainerComponent extends AbstractInteractionContext {
4113
4176
  ActivityContainerComponent.decorators = [
4114
4177
  { type: Component, args: [{
4115
4178
  selector: 'aup-activity-container',
4116
- template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </mat-tab>\n</mat-tab-group>\n",
4117
- styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
4179
+ template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busyModel]=\"busy\">\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n",
4180
+ styles: [":host{display:flex;flex-direction:column}aup-busy-overlay,mat-tab-group{flex:1}"]
4118
4181
  },] }
4119
4182
  ];
4120
4183
  ActivityContainerComponent.ctorParameters = () => [];
@@ -6347,7 +6410,7 @@ class PlaceRouter extends GarbageCollector {
6347
6410
  waitUntilIdle() {
6348
6411
  const { when } = Dsl.disposeWith(this);
6349
6412
  return new Promise(resolve => {
6350
- when(this.navigationInProgress).becomesFalsey(() => resolve(), {
6413
+ when(this.navigationInProgress).becomesFalsey(() => resolve(this), {
6351
6414
  initialValue: 'evaluate',
6352
6415
  once: true
6353
6416
  });
@@ -6936,52 +6999,6 @@ __decorate([
6936
6999
  __metadata("design:returntype", Object)
6937
7000
  ], AbstractPlaceNavigationComponent.prototype, "getNavigationFace", null);
6938
7001
 
6939
- class BusyOverlayComponent {
6940
- constructor() {
6941
- }
6942
- ngOnInit() {
6943
- }
6944
- }
6945
- BusyOverlayComponent.decorators = [
6946
- { type: Component, args: [{
6947
- selector: 'aup-busy-overlay',
6948
- template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
6949
- styles: [":host{position:relative}div.busy-overlay-backdrop{-ms-grid-columns:auto;-ms-grid-rows:auto;background-color:rgba(0,0,0,.2);bottom:0;display:-ms-grid;display:grid;grid-template-columns:auto;grid-template-rows:auto;left:0;place-content:center;position:absolute;right:0;top:0}"]
6950
- },] }
6951
- ];
6952
- BusyOverlayComponent.ctorParameters = () => [];
6953
- BusyOverlayComponent.propDecorators = {
6954
- busyModel: [{ type: Input }],
6955
- busy: [{ type: Input }]
6956
- };
6957
- __decorate([
6958
- TrackExternal(),
6959
- __metadata("design:type", ValueModel)
6960
- ], BusyOverlayComponent.prototype, "busyModel", void 0);
6961
- __decorate([
6962
- StoreInValueModel('busyModel'),
6963
- __metadata("design:type", Boolean)
6964
- ], BusyOverlayComponent.prototype, "busy", void 0);
6965
-
6966
- class EmptyStateComponent {
6967
- constructor() {
6968
- }
6969
- ngOnInit() {
6970
- }
6971
- }
6972
- EmptyStateComponent.decorators = [
6973
- { type: Component, args: [{
6974
- selector: 'aup-empty-state',
6975
- template: `
6976
- <div class="container">
6977
- <ng-content></ng-content>
6978
- </div>
6979
- `,
6980
- styles: [":host{align-items:center;display:flex;flex-direction:column;justify-content:center}.container{border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300;padding:var(--aup-default-padding)}"]
6981
- },] }
6982
- ];
6983
- EmptyStateComponent.ctorParameters = () => [];
6984
-
6985
7002
  class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {
6986
7003
  constructor(router) {
6987
7004
  super(router);
@@ -7104,19 +7121,15 @@ PlaceModule.decorators = [
7104
7121
  ComponentsModule
7105
7122
  ],
7106
7123
  declarations: [
7107
- EmptyStateComponent,
7108
- BusyOverlayComponent,
7109
7124
  PlaceOutletComponent,
7110
7125
  TabbedPlaceNavigationComponent,
7111
7126
  ListPlaceNavComponent,
7112
7127
  SidePlaceNavigationComponent,
7113
7128
  AbstractPlaceNavigationComponent
7114
7129
  ],
7115
- entryComponents: [BusyOverlayComponent],
7130
+ entryComponents: [],
7116
7131
  exports: [
7117
- BusyOverlayComponent,
7118
7132
  PlaceOutletComponent,
7119
- EmptyStateComponent,
7120
7133
  TabbedPlaceNavigationComponent,
7121
7134
  ListPlaceNavComponent,
7122
7135
  SidePlaceNavigationComponent,