UNPKG

@o3r/routing

Version:

This module helps you to configure an Otter application's routing (POST parameter management, preloading strategy, guard recommendation).

44 lines 3.34 kB
import { RegisteredItemFailureReason, RegisteredItemStatus, RoutingGuardState } from './routing-guard.state'; /** Select RoutingGuard State */ export declare const selectRoutingGuardState: import("@ngrx/store").MemoizedSelector<object, RoutingGuardState, import("@ngrx/store").DefaultProjectorFn<RoutingGuardState>>; /** Select the array of RoutingGuard ids */ export declare const selectRoutingGuardIds: import("@ngrx/store").MemoizedSelector<object, string[] | number[], (s1: RoutingGuardState) => string[] | number[]>; /** Select the array of RoutingGuard */ export declare const selectAllRoutingGuard: import("@ngrx/store").MemoizedSelector<object, import("./routing-guard.state").RoutingGuardModel[], (s1: RoutingGuardState) => import("./routing-guard.state").RoutingGuardModel[]>; /** Select the dictionary of RoutingGuard entities */ export declare const selectRoutingGuardEntities: import("@ngrx/store").MemoizedSelector<object, import("@ngrx/entity").Dictionary<import("./routing-guard.state").RoutingGuardModel>, (s1: RoutingGuardState) => import("@ngrx/entity").Dictionary<import("./routing-guard.state").RoutingGuardModel>>; /** Select the total RoutingGuard count */ export declare const selectRoutingGuardTotal: import("@ngrx/store").MemoizedSelector<object, number, (s1: RoutingGuardState) => number>; /** * Selector used to retrieve the list of entities' status */ export declare const selectRoutingGuardEntitiesStatusList: import("@ngrx/store").MemoizedSelector<object, RegisteredItemStatus[], (s1: RoutingGuardState) => RegisteredItemStatus[]>; /** * Selector used to retrieve the list of entities' blocking reasons for FAILURE status. */ export declare const selectRoutingGuardEntitiesBlockingReasons: import("@ngrx/store").MemoizedSelector<object, RegisteredItemFailureReason[], (s1: RoutingGuardState) => RegisteredItemFailureReason[]>; /** * Selector used to check that no item is in PENDING state. * For example, we will rely on this selector to trigger the canDeactivate logic in the RoutingGuard */ export declare const hasNoEntitiesInPendingState: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: RegisteredItemStatus[]) => boolean>; /** * Selector used to check that no item is in FAILURE state. * For example, we will rely on this selector to authorize or not the navigation in the RoutingGuard */ export declare const hasNoEntitiesInFailureState: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: RegisteredItemStatus[]) => boolean>; /** * Selector used to check that no item is in READY or FAILURE state. * For example, we will rely on this selector to trigger the router navigation and display a loader */ export declare const hasNoEntityInReadyOrFailureState: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: RegisteredItemStatus[]) => boolean>; /** * Selector used to check that no item is in FAILURE state with a blocking reason provided. * Takes `blockingReason: RegisteredItemFailureReason` as aproperty parameter. */ export declare const hasNoEntityFailureStateWithReasons: import("@ngrx/store").MemoizedSelectorWithProps<object, { blockingReason: RegisteredItemFailureReason; }, boolean, (s1: RegisteredItemFailureReason[], props: { blockingReason: RegisteredItemFailureReason; }) => boolean>; //# sourceMappingURL=routing-guard.selectors.d.ts.map