@dereekb/dbx-core 12.5.3 → 12.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/action/action.handler.mjs +1 -1
- package/esm2022/lib/action/action.holder.mjs +1 -1
- package/esm2022/lib/action/action.reference.mjs +1 -1
- package/esm2022/lib/action/action.store.source.mjs +1 -1
- package/esm2022/lib/action/action.store.source.provide.mjs +1 -1
- package/esm2022/lib/action/directive/map/action.map.mjs +1 -1
- package/esm2022/lib/action/directive/map/action.map.utility.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.handler.instance.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.value.trigger.instance.mjs +1 -1
- package/esm2022/lib/auth/auth.providers.mjs +1 -1
- package/esm2022/lib/auth/auth.state.providers.mjs +1 -1
- package/esm2022/lib/auth/router/auth.router.mjs +1 -1
- package/esm2022/lib/auth/router/auth.router.providers.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/auth.hook.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/hook.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/redirect.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/role.hook.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/state.hook.mjs +1 -1
- package/esm2022/lib/auth/router/state/auth.router.state.providers.mjs +1 -1
- package/esm2022/lib/auth/service/auth.service.mjs +1 -1
- package/esm2022/lib/auth/service/auth.service.rxjs.mjs +1 -1
- package/esm2022/lib/auth/state/action/user.action.mjs +1 -1
- package/esm2022/lib/auth/state/reducer/index.mjs +1 -1
- package/esm2022/lib/auth/state/reducer/user.reducer.mjs +1 -1
- package/esm2022/lib/auth/state/state.mjs +1 -1
- package/esm2022/lib/button/button.mjs +1 -1
- package/esm2022/lib/context/context.providers.mjs +1 -1
- package/esm2022/lib/context/state/action/data.action.mjs +1 -1
- package/esm2022/lib/context/state/effect/index.mjs +1 -1
- package/esm2022/lib/context/state/reducer/data.reducer.mjs +1 -1
- package/esm2022/lib/context/state/reducer/index.mjs +1 -1
- package/esm2022/lib/context/state/state.mjs +1 -1
- package/esm2022/lib/environment/environment.providers.mjs +1 -1
- package/esm2022/lib/filter/filter.content.mjs +1 -1
- package/esm2022/lib/filter/filter.preset.mjs +1 -1
- package/esm2022/lib/injection/injection.array.mjs +1 -1
- package/esm2022/lib/injection/injection.context.mjs +1 -1
- package/esm2022/lib/injection/injection.instance.mjs +1 -1
- package/esm2022/lib/injection/injection.mjs +1 -1
- package/esm2022/lib/injection/injection.rxjs.mjs +1 -1
- package/esm2022/lib/injection/injection.util.mjs +1 -1
- package/esm2022/lib/injection/injector.mjs +1 -1
- package/esm2022/lib/router/anchor/anchor.mjs +1 -1
- package/esm2022/lib/router/anchor/clickable.mjs +1 -1
- package/esm2022/lib/router/auth/hook/id.hook.mjs +1 -1
- package/esm2022/lib/router/auth/hook/uid.hook.mjs +1 -1
- package/esm2022/lib/router/model/id.param.redirect.mjs +1 -1
- package/esm2022/lib/router/model/model.router.mjs +1 -1
- package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.providers.mjs +1 -1
- package/esm2022/lib/router/router/service/router.go.mjs +1 -1
- package/esm2022/lib/router/router/service/router.service.mjs +1 -1
- package/esm2022/lib/router/router/service/router.service.rxjs.mjs +1 -1
- package/esm2022/lib/router/router/service/router.service.util.mjs +1 -1
- package/esm2022/lib/router/router/service/router.transition.service.mjs +1 -1
- package/esm2022/lib/router/router/transition/transition.rxjs.mjs +1 -1
- package/esm2022/lib/router/router/util/route.default.mjs +1 -1
- package/esm2022/lib/router/router/util/route.reader.mjs +1 -1
- package/esm2022/lib/router/segue.mjs +1 -1
- package/esm2022/lib/storage/storage.accessor.mjs +1 -1
- package/esm2022/lib/storage/storage.accessor.simple.mjs +1 -1
- package/esm2022/lib/storage/storage.accessor.string.mjs +1 -1
- package/esm2022/lib/storage/storage.object.localstorage.mjs +1 -1
- package/esm2022/lib/storage/storage.providers.mjs +1 -1
- package/esm2022/lib/util/view.mjs +1 -1
- package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.handler.d.ts +4 -4
- package/lib/action/action.holder.d.ts +5 -5
- package/lib/action/action.reference.d.ts +2 -2
- package/lib/action/action.store.source.d.ts +5 -5
- package/lib/action/action.store.source.provide.d.ts +1 -1
- package/lib/action/directive/map/action.map.d.ts +3 -3
- package/lib/action/directive/map/action.map.utility.d.ts +5 -5
- package/lib/action/directive/state/action.handler.instance.d.ts +3 -3
- package/lib/action/directive/state/action.value.trigger.instance.d.ts +4 -4
- package/lib/auth/auth.providers.d.ts +3 -3
- package/lib/auth/auth.state.providers.d.ts +1 -1
- package/lib/auth/router/auth.router.d.ts +1 -1
- package/lib/auth/router/auth.router.providers.d.ts +1 -1
- package/lib/auth/router/provider/uirouter/auth.hook.d.ts +2 -2
- package/lib/auth/router/provider/uirouter/hook.d.ts +5 -5
- package/lib/auth/router/provider/uirouter/redirect.d.ts +2 -2
- package/lib/auth/router/provider/uirouter/role.hook.d.ts +4 -4
- package/lib/auth/router/provider/uirouter/state.hook.d.ts +4 -4
- package/lib/auth/router/state/auth.router.state.providers.d.ts +3 -3
- package/lib/auth/service/auth.service.d.ts +3 -3
- package/lib/auth/service/auth.service.rxjs.d.ts +2 -2
- package/lib/auth/state/action/user.action.d.ts +2 -2
- package/lib/auth/state/reducer/index.d.ts +1 -1
- package/lib/auth/state/reducer/user.reducer.d.ts +2 -2
- package/lib/auth/state/state.d.ts +1 -1
- package/lib/button/button.d.ts +2 -2
- package/lib/context/context.providers.d.ts +1 -1
- package/lib/context/state/action/data.action.d.ts +1 -1
- package/lib/context/state/effect/index.d.ts +4 -4
- package/lib/context/state/reducer/data.reducer.d.ts +1 -1
- package/lib/context/state/reducer/index.d.ts +1 -1
- package/lib/context/state/state.d.ts +1 -1
- package/lib/environment/environment.providers.d.ts +1 -1
- package/lib/filter/filter.content.d.ts +1 -1
- package/lib/filter/filter.preset.d.ts +3 -3
- package/lib/injection/injection.array.d.ts +3 -3
- package/lib/injection/injection.context.d.ts +2 -2
- package/lib/injection/injection.d.ts +2 -2
- package/lib/injection/injection.instance.d.ts +4 -4
- package/lib/injection/injection.rxjs.d.ts +3 -3
- package/lib/injection/injection.util.d.ts +2 -2
- package/lib/injection/injector.d.ts +1 -1
- package/lib/router/anchor/anchor.d.ts +7 -7
- package/lib/router/anchor/clickable.d.ts +1 -1
- package/lib/router/auth/hook/id.hook.d.ts +4 -4
- package/lib/router/auth/hook/uid.hook.d.ts +5 -5
- package/lib/router/model/id.param.redirect.d.ts +5 -5
- package/lib/router/model/model.router.d.ts +3 -3
- package/lib/router/router/provider/uirouter/uirouter.router.service.providers.d.ts +1 -1
- package/lib/router/router/service/router.go.d.ts +3 -3
- package/lib/router/router/service/router.service.d.ts +3 -3
- package/lib/router/router/service/router.service.rxjs.d.ts +4 -4
- package/lib/router/router/service/router.service.util.d.ts +2 -2
- package/lib/router/router/service/router.transition.service.d.ts +2 -2
- package/lib/router/router/transition/transition.rxjs.d.ts +6 -6
- package/lib/router/router/util/route.default.d.ts +3 -3
- package/lib/router/router/util/route.reader.d.ts +4 -4
- package/lib/router/segue.d.ts +2 -2
- package/lib/storage/storage.accessor.d.ts +1 -1
- package/lib/storage/storage.accessor.simple.d.ts +3 -3
- package/lib/storage/storage.accessor.string.d.ts +2 -2
- package/lib/storage/storage.object.localstorage.d.ts +1 -1
- package/lib/storage/storage.providers.d.ts +2 -2
- package/lib/util/view.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Maybe, ReadableError } from '@dereekb/util';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from './action.store.source';
|
|
3
|
-
import { WorkInstanceDelegate } from '@dereekb/rxjs';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { type Maybe, type ReadableError } from '@dereekb/util';
|
|
2
|
+
import { type DbxActionContextStoreSourceInstance } from './action.store.source';
|
|
3
|
+
import { type WorkInstanceDelegate } from '@dereekb/rxjs';
|
|
4
|
+
import { type Observable } from 'rxjs';
|
|
5
5
|
/**
|
|
6
6
|
* WorkInstanceDelegate implementation using an DbxActionContextStoreSourceInstance.
|
|
7
7
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Destroyable, type Maybe } from '@dereekb/util';
|
|
3
|
-
import { LockSet } from '@dereekb/rxjs';
|
|
4
|
-
import { ActionContextStoreSource, DbxActionContextStoreSourceInstance, SecondaryActionContextStoreSource } from './action.store.source';
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import { type Destroyable, type Maybe } from '@dereekb/util';
|
|
3
|
+
import { type LockSet } from '@dereekb/rxjs';
|
|
4
|
+
import { type ActionContextStoreSource, DbxActionContextStoreSourceInstance, type SecondaryActionContextStoreSource } from './action.store.source';
|
|
5
5
|
import { ActionContextStore } from './action.store';
|
|
6
|
-
import { DbxActionDisabledKey } from './action';
|
|
6
|
+
import { type DbxActionDisabledKey } from './action';
|
|
7
7
|
/**
|
|
8
8
|
* Abstract class that can either use SecondaryActionContextStoreSource or create it's own.
|
|
9
9
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Destroyable } from '@dereekb/util';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from './action.store.source';
|
|
1
|
+
import { type Destroyable } from '@dereekb/util';
|
|
2
|
+
import { type DbxActionContextStoreSourceInstance } from './action.store.source';
|
|
3
3
|
/**
|
|
4
4
|
* Acts as a reference to a DbxActionContextStoreSourceInstance that can be destroyed.
|
|
5
5
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Observable, Subscription } from 'rxjs';
|
|
2
|
-
import { LockSet, LoadingState, LoadingStateType, MaybeObservableOrValue } from '@dereekb/rxjs';
|
|
3
|
-
import { Destroyable, Maybe, ReadableError } from '@dereekb/util';
|
|
4
|
-
import { ActionContextState, ActionContextStore } from './action.store';
|
|
5
|
-
import { DbxActionDisabledKey, DbxActionRejectedPair, DbxActionState, DbxActionSuccessPair, DbxActionWorkOrWorkProgress, DbxActionWorkProgress } from './action';
|
|
1
|
+
import { type Observable, type Subscription } from 'rxjs';
|
|
2
|
+
import { LockSet, type LoadingState, type LoadingStateType, type MaybeObservableOrValue } from '@dereekb/rxjs';
|
|
3
|
+
import { type Destroyable, type Maybe, type ReadableError } from '@dereekb/util';
|
|
4
|
+
import { type ActionContextState, type ActionContextStore } from './action.store';
|
|
5
|
+
import { type DbxActionDisabledKey, type DbxActionRejectedPair, type DbxActionState, type DbxActionSuccessPair, type DbxActionWorkOrWorkProgress, type DbxActionWorkProgress } from './action';
|
|
6
6
|
/**
|
|
7
7
|
* Source that provides a ActionContextStore observable.
|
|
8
8
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Provider, Type } from '@angular/core';
|
|
1
|
+
import { type Provider, type Type } from '@angular/core';
|
|
2
2
|
import { ActionContextStoreSource, DbxActionContextStoreSourceInstance, SecondaryActionContextStoreSource } from './action.store.source';
|
|
3
3
|
import { DbxActionContextMachineAsService } from './action.machine';
|
|
4
4
|
export declare const actionContextStoreSourceInstanceFactory: (source: ActionContextStoreSource) => DbxActionContextStoreSourceInstance<unknown, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ActionContextStoreSource } from '../../action.store.source';
|
|
3
|
-
import { Destroyable } from '@dereekb/util';
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import { type ActionContextStoreSource } from '../../action.store.source';
|
|
3
|
+
import { type Destroyable } from '@dereekb/util';
|
|
4
4
|
/**
|
|
5
5
|
* Arbitrary string used to identify an action.
|
|
6
6
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IsCheckFunction, ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ActionContextStore } from '../../action.store';
|
|
4
|
-
import { ActionContextStoreSourceMap, ActionKey } from './action.map';
|
|
5
|
-
import { ActionContextStoreSource } from '../../action.store.source';
|
|
1
|
+
import { type IsCheckFunction, type ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
+
import { type Observable } from 'rxjs';
|
|
3
|
+
import { type ActionContextStore } from '../../action.store';
|
|
4
|
+
import { type ActionContextStoreSourceMap, type ActionKey } from './action.map';
|
|
5
|
+
import { type ActionContextStoreSource } from '../../action.store.source';
|
|
6
6
|
/**
|
|
7
7
|
* Utility interface that provides a set of functions to read from an ActionContextStoreSourceMap.
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
2
|
-
import { Maybe, Destroyable, Initialized, GetterOrValue, FactoryWithInput } from '@dereekb/util';
|
|
3
|
-
import { Work } from '@dereekb/rxjs';
|
|
1
|
+
import { type DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
2
|
+
import { type Maybe, type Destroyable, type Initialized, type GetterOrValue, type FactoryWithInput } from '@dereekb/util';
|
|
3
|
+
import { type Work } from '@dereekb/rxjs';
|
|
4
4
|
export declare const DBX_ACTION_HANDLER_LOCK_KEY = "dbxActionHandler";
|
|
5
5
|
/**
|
|
6
6
|
* Context used for defining a function that performs an action using the input function to handle valueReady$ events from an action context.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Destroyable, Initialized, Maybe, ReadableError } from '@dereekb/util';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ObservableOrValue, IsModifiedFunction, IsEqualFunction } from '@dereekb/rxjs';
|
|
4
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
1
|
+
import { type Destroyable, type Initialized, type Maybe, type ReadableError } from '@dereekb/util';
|
|
2
|
+
import { type Observable } from 'rxjs';
|
|
3
|
+
import { type ObservableOrValue, type IsModifiedFunction, type IsEqualFunction } from '@dereekb/rxjs';
|
|
4
|
+
import { type DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
5
|
/**
|
|
6
6
|
* DbxActionValueGetterInstance function. Returns an ObervableGetter that returns a value.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { ProvideDbxAppAuthRouterConfig } from './router/auth.router.providers';
|
|
3
|
-
import { ProvideDbxAppAuthRouterStateConfig } from './router/state/auth.router.state.providers';
|
|
1
|
+
import { type EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { type ProvideDbxAppAuthRouterConfig } from './router/auth.router.providers';
|
|
3
|
+
import { type ProvideDbxAppAuthRouterStateConfig } from './router/state/auth.router.state.providers';
|
|
4
4
|
export interface ProvideDbxAppAuthConfig extends ProvideDbxAppAuthRouterConfig, ProvideDbxAppAuthRouterStateConfig {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransitionService } from '@uirouter/core';
|
|
2
|
-
import { AuthTransitionHookOptions } from './hook';
|
|
1
|
+
import { type TransitionService } from '@uirouter/core';
|
|
2
|
+
import { type AuthTransitionHookOptions } from './hook';
|
|
3
3
|
export interface IsLoggedInHookConfig {
|
|
4
4
|
options: AuthTransitionHookOptions;
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TransitionHookFn, Transition, UIInjector } from '@uirouter/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { SegueRefOrSegueRefRouterLink } from './../../../../router/segue';
|
|
1
|
+
import { type TransitionHookFn, type Transition, type UIInjector } from '@uirouter/core';
|
|
2
|
+
import { type Observable } from 'rxjs';
|
|
3
|
+
import { type SegueRefOrSegueRefRouterLink } from './../../../../router/segue';
|
|
4
4
|
import { DbxAuthService } from '../../../service/auth.service';
|
|
5
|
-
import { FactoryWithRequiredInput, Maybe, Milliseconds } from '@dereekb/util';
|
|
6
|
-
import { Injector } from '@angular/core';
|
|
5
|
+
import { type FactoryWithRequiredInput, type Maybe, type Milliseconds } from '@dereekb/util';
|
|
6
|
+
import { type Injector } from '@angular/core';
|
|
7
7
|
/**
|
|
8
8
|
* authTransitionHookFn() configuration. The values are handled as:
|
|
9
9
|
* - true: continue to the state.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectMap } from '@dereekb/util';
|
|
2
|
-
import { AuthTransitionRedirectTargetGetter, AuthTransitionRedirectTargetOrGetter } from './hook';
|
|
1
|
+
import { type ObjectMap } from '@dereekb/util';
|
|
2
|
+
import { type AuthTransitionRedirectTargetGetter, type AuthTransitionRedirectTargetOrGetter } from './hook';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a AuthTransitionRedirectTargetGetter that can redirect values based on the current authUserState.
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import { AuthRole, SetIncludesMode, ArrayOrValue, AuthRoleSet } from '@dereekb/util';
|
|
3
|
-
import { TransitionService } from '@uirouter/core';
|
|
4
|
-
import { AuthTransitionHookOptions, AuthTransitionStateData } from './hook';
|
|
1
|
+
import { type OperatorFunction } from 'rxjs';
|
|
2
|
+
import { type AuthRole, type SetIncludesMode, type ArrayOrValue, type AuthRoleSet } from '@dereekb/util';
|
|
3
|
+
import { type TransitionService } from '@uirouter/core';
|
|
4
|
+
import { type AuthTransitionHookOptions, type AuthTransitionStateData } from './hook';
|
|
5
5
|
export interface HasAuthRoleHookConfig {
|
|
6
6
|
readonly options: AuthTransitionHookOptions;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ArrayOrValue } from '@dereekb/util';
|
|
2
|
-
import { TransitionService } from '@uirouter/core';
|
|
3
|
-
import { AuthUserState } from '../../../auth.user';
|
|
4
|
-
import { AuthTransitionHookOptions, AuthTransitionStateData } from './hook';
|
|
1
|
+
import { type ArrayOrValue } from '@dereekb/util';
|
|
2
|
+
import { type TransitionService } from '@uirouter/core';
|
|
3
|
+
import { type AuthUserState } from '../../../auth.user';
|
|
4
|
+
import { type AuthTransitionHookOptions, type AuthTransitionStateData } from './hook';
|
|
5
5
|
export interface HasAuthStateHookConfig {
|
|
6
6
|
options: AuthTransitionHookOptions;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { ArrayOrValue } from '@dereekb/util';
|
|
3
|
-
import { DbxAppContextState } from '../../../context';
|
|
1
|
+
import { type EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { type ArrayOrValue } from '@dereekb/util';
|
|
3
|
+
import { type DbxAppContextState } from '../../../context';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for provideDbxAppAuthRouterState().
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { AuthRoleSet } from '@dereekb/util';
|
|
3
|
-
import { AuthUserIdentifier, AuthUserState } from '../auth.user';
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import { type AuthRoleSet } from '@dereekb/util';
|
|
3
|
+
import { type AuthUserIdentifier, type AuthUserState } from '../auth.user';
|
|
4
4
|
/**
|
|
5
5
|
* Client auth service used to retrieve info about the current state of client authentication and client roles they may have.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthRole, AuthRoleSet, type Maybe } from '@dereekb/util';
|
|
2
|
-
import { Observable, OperatorFunction } from 'rxjs';
|
|
1
|
+
import { type AuthRole, type AuthRoleSet, type Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Observable, type OperatorFunction } from 'rxjs';
|
|
3
3
|
/**
|
|
4
4
|
* Convenience operator that emits events when the input observable goes from false to true.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthRole } from '@dereekb/util';
|
|
2
|
-
import { AuthUserIdentifier, AuthUserState } from '../../auth.user';
|
|
1
|
+
import { type AuthRole } from '@dereekb/util';
|
|
2
|
+
import { type AuthUserIdentifier, type AuthUserState } from '../../auth.user';
|
|
3
3
|
/**
|
|
4
4
|
* Sets the user's identifier in the auth.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthUserIdentifier, AuthUserState } from '../../auth.user';
|
|
2
|
-
import { AuthRole } from '@dereekb/util';
|
|
1
|
+
import { type AuthUserIdentifier, type AuthUserState } from '../../auth.user';
|
|
2
|
+
import { type AuthRole } from '@dereekb/util';
|
|
3
3
|
export declare const dbxAppAuthUserFeatureKey = "user";
|
|
4
4
|
export interface DbxAppAuthStateUser {
|
|
5
5
|
userId: AuthUserIdentifier;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Type, Provider } from '@angular/core';
|
|
1
|
+
import { type Type, type Provider } from '@angular/core';
|
|
2
2
|
import { type Maybe } from '@dereekb/util';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
3
|
+
import { type Observable } from 'rxjs';
|
|
4
4
|
import { type DbxActionWorkProgress, type DbxActionWorkOrWorkProgress } from '../action/action';
|
|
5
5
|
export type DbxButtonWorkingProgress = DbxActionWorkProgress;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnRunEffects, Actions, EffectNotification } from '@ngrx/effects';
|
|
1
|
+
import { type OnRunEffects, Actions, type EffectNotification } from '@ngrx/effects';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DbxAppContextState } from '../../context';
|
|
5
|
-
import { IterableOrValue } from '@dereekb/util';
|
|
3
|
+
import { type Observable } from 'rxjs';
|
|
4
|
+
import { type DbxAppContextState } from '../../context';
|
|
5
|
+
import { type IterableOrValue } from '@dereekb/util';
|
|
6
6
|
/**
|
|
7
7
|
* Abstract effects class that only runs/allows effects when the DbxAppContextState in the ngrx state matches input activeState value.
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FilterPresetStringRef, FilterWithPreset, FilterWithPresetOptional } from '@dereekb/rxjs';
|
|
2
|
-
import { EmptyObject, GetterOrValue, Maybe } from '@dereekb/util';
|
|
3
|
-
import { ClickableAnchorLink } from '../router/anchor/anchor';
|
|
1
|
+
import { type FilterPresetStringRef, type FilterWithPreset, type FilterWithPresetOptional } from '@dereekb/rxjs';
|
|
2
|
+
import { type EmptyObject, type GetterOrValue, type Maybe } from '@dereekb/util';
|
|
3
|
+
import { type ClickableAnchorLink } from '../router/anchor/anchor';
|
|
4
4
|
export interface ClickableFilterPreset<F extends FilterWithPreset<P>, P extends string = string> extends Pick<ClickableAnchorLink, 'title' | 'icon' | 'disabled'>, FilterPresetStringRef<P> {
|
|
5
5
|
/**
|
|
6
6
|
* GetterOrValue that retrieves the filter for this preset.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObservableOrValueGetter } from '@dereekb/rxjs';
|
|
2
|
-
import { ModelKeyRef } from '@dereekb/util';
|
|
3
|
-
import { DbxInjectionComponentConfig } from './injection';
|
|
1
|
+
import { type ObservableOrValueGetter } from '@dereekb/rxjs';
|
|
2
|
+
import { type ModelKeyRef } from '@dereekb/util';
|
|
3
|
+
import { type DbxInjectionComponentConfig } from './injection';
|
|
4
4
|
/**
|
|
5
5
|
* A keyed configuration entry
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Provider, Type } from '@angular/core';
|
|
2
|
-
import { DbxInjectionComponentConfig } from './injection';
|
|
1
|
+
import { type Provider, type Type } from '@angular/core';
|
|
2
|
+
import { type DbxInjectionComponentConfig } from './injection';
|
|
3
3
|
/**
|
|
4
4
|
* DbxInjectedViewContext showContext() configuration.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, Injector, NgModuleRef, StaticProvider, TemplateRef, Type, ViewRef } from '@angular/core';
|
|
2
|
-
import { FactoryWithRequiredInput, Maybe } from '@dereekb/util';
|
|
1
|
+
import { InjectionToken, type Injector, type NgModuleRef, type StaticProvider, type TemplateRef, type Type, type ViewRef } from '@angular/core';
|
|
2
|
+
import { type FactoryWithRequiredInput, type Maybe } from '@dereekb/util';
|
|
3
3
|
export declare const DBX_INJECTION_COMPONENT_DATA: InjectionToken<unknown>;
|
|
4
4
|
export interface DbxInjectionComponentConfig<T = unknown> {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentRef, Injector, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { DbxInjectionComponentConfig, DbxInjectionTemplateConfig } from './injection';
|
|
3
|
-
import { Initialized, Destroyable, Maybe } from '@dereekb/util';
|
|
4
|
-
import { MaybeObservableOrValueGetter } from '@dereekb/rxjs';
|
|
1
|
+
import { type ComponentRef, Injector, type ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { type DbxInjectionComponentConfig, type DbxInjectionTemplateConfig } from './injection';
|
|
3
|
+
import { type Initialized, type Destroyable, type Maybe } from '@dereekb/util';
|
|
4
|
+
import { type MaybeObservableOrValueGetter } from '@dereekb/rxjs';
|
|
5
5
|
/**
|
|
6
6
|
* Instance used by components to inject content based on the configuration into the view.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GetterOrValue, type Maybe } from '@dereekb/util';
|
|
2
|
-
import { DbxInjectionComponentConfig } from './injection';
|
|
3
|
-
import { Type } from '@angular/core';
|
|
1
|
+
import { type GetterOrValue, type Maybe } from '@dereekb/util';
|
|
2
|
+
import { type DbxInjectionComponentConfig } from './injection';
|
|
3
|
+
import { type Type } from '@angular/core';
|
|
4
4
|
/**
|
|
5
5
|
* Provides a switchMap that passes configuration from the observable, unless the value is null/undefined/true in which case it passes the default configuration.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StaticProvider } from '@angular/core';
|
|
2
|
-
import { ArrayOrValue, Maybe } from '@dereekb/util';
|
|
1
|
+
import { type StaticProvider } from '@angular/core';
|
|
2
|
+
import { type ArrayOrValue, type Maybe } from '@dereekb/util';
|
|
3
3
|
/**
|
|
4
4
|
* Merges the input providers into a single array.
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractType, Injector, Provider, Type } from '@angular/core';
|
|
1
|
+
import { type AbstractType, Injector, type Provider, type Type } from '@angular/core';
|
|
2
2
|
export type InjectableType<T> = (Type<T> | AbstractType<T>) & Provider;
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new instance of the injectable type with the input injector.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MousableFunction } from './mousable';
|
|
2
|
-
import { ClickableFunction, ClickableUrl } from './clickable';
|
|
3
|
-
import { SegueRef } from '../segue';
|
|
4
|
-
import { ExpandTreeFunction, FlattenTreeFunction, Maybe, TreeNode } from '@dereekb/util';
|
|
5
|
-
import { Type, Provider } from '@angular/core';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { DbxInjectionComponentConfig } from '../../injection/injection';
|
|
1
|
+
import { type MousableFunction } from './mousable';
|
|
2
|
+
import { type ClickableFunction, type ClickableUrl } from './clickable';
|
|
3
|
+
import { type SegueRef } from '../segue';
|
|
4
|
+
import { type ExpandTreeFunction, type FlattenTreeFunction, type Maybe, type TreeNode } from '@dereekb/util';
|
|
5
|
+
import { type Type, type Provider } from '@angular/core';
|
|
6
|
+
import { type Observable } from 'rxjs';
|
|
7
|
+
import { type DbxInjectionComponentConfig } from '../../injection/injection';
|
|
8
8
|
export interface ClickableAnchor extends ClickableFunction, MousableFunction, ClickableUrl, Partial<SegueRef> {
|
|
9
9
|
readonly disabled?: boolean;
|
|
10
10
|
readonly selected?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E164PhoneNumberWithOptionalExtension, MailToUrlInput, Maybe, PhoneNumber, WebsiteUrl } from '@dereekb/util';
|
|
1
|
+
import { type E164PhoneNumberWithOptionalExtension, type MailToUrlInput, type Maybe, type PhoneNumber, type WebsiteUrl } from '@dereekb/util';
|
|
2
2
|
export interface ClickableFunction {
|
|
3
3
|
readonly onClick?: (event?: Maybe<MouseEvent>) => void;
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DbxAuthService } from '../../../auth/service/auth.service';
|
|
2
|
-
import { TransitionService, Transition, HookMatchCriteria } from '@uirouter/core';
|
|
3
|
-
import { Maybe, ModelKey } from '@dereekb/util';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { Injector } from '@angular/core';
|
|
2
|
+
import { type TransitionService, type Transition, type HookMatchCriteria } from '@uirouter/core';
|
|
3
|
+
import { type Maybe, type ModelKey } from '@dereekb/util';
|
|
4
|
+
import { type Observable } from 'rxjs';
|
|
5
|
+
import { type Injector } from '@angular/core';
|
|
6
6
|
export declare const DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_VALUE = "0";
|
|
7
7
|
export declare const DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_KEY = "id";
|
|
8
8
|
export interface RedirectForIdentifierParamHookInput {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AuthUserIdentifier } from '../../../auth/auth.user';
|
|
2
|
-
import { DbxAuthService } from '../../../auth/service/auth.service';
|
|
3
|
-
import { TransitionService, HookMatchCriteria } from '@uirouter/core';
|
|
1
|
+
import { type AuthUserIdentifier } from '../../../auth/auth.user';
|
|
2
|
+
import { type DbxAuthService } from '../../../auth/service/auth.service';
|
|
3
|
+
import { type TransitionService, type HookMatchCriteria } from '@uirouter/core';
|
|
4
4
|
import { type Maybe } from '@dereekb/util';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { Injector } from '@angular/core';
|
|
5
|
+
import { type Observable } from 'rxjs';
|
|
6
|
+
import { type Injector } from '@angular/core';
|
|
7
7
|
export declare const DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_VALUE = "0";
|
|
8
8
|
export declare const DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_KEY = "uid";
|
|
9
9
|
export interface RedirectForUserIdentifierParamHookInput {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Destroyable, Initialized, Maybe, ModelKey } from '@dereekb/util';
|
|
3
|
-
import { MaybeObservableOrValueGetter, SwitchMapToDefaultFilterFunction } from '@dereekb/rxjs';
|
|
4
|
-
import { DbxRouterService } from '../router/service';
|
|
5
|
-
import { DbxRouteParamReader } from '../router/util';
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import { type Destroyable, type Initialized, type Maybe, type ModelKey } from '@dereekb/util';
|
|
3
|
+
import { type MaybeObservableOrValueGetter, type SwitchMapToDefaultFilterFunction } from '@dereekb/rxjs';
|
|
4
|
+
import { type DbxRouterService } from '../router/service';
|
|
5
|
+
import { type DbxRouteParamReader } from '../router/util';
|
|
6
6
|
/**
|
|
7
7
|
* Default identifier used by dbxRouteModelIdParamRedirect() that corresponds to the id param of the model in the current route.
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Type, Provider } from '@angular/core';
|
|
2
|
-
import { Maybe, ModelKey } from '@dereekb/util';
|
|
3
|
-
import { Observable, Subscription } from 'rxjs';
|
|
1
|
+
import { type Type, type Provider } from '@angular/core';
|
|
2
|
+
import { type Maybe, type ModelKey } from '@dereekb/util';
|
|
3
|
+
import { type Observable, type Subscription } from 'rxjs';
|
|
4
4
|
/**
|
|
5
5
|
* DbxRouteModelIdDirective delegate that can recieve an observable of the model id from the route.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
-
import { SegueRef, SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
3
|
-
import { DbxRouterService } from './router.service';
|
|
1
|
+
import { type ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
+
import { type SegueRef, type SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
3
|
+
import { type DbxRouterService } from './router.service';
|
|
4
4
|
/**
|
|
5
5
|
* Function that will perform navigation with the input route.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from '../../segue';
|
|
1
|
+
import { type ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
+
import { type Observable } from 'rxjs';
|
|
3
|
+
import { type SegueRefOrSegueRefRouterLink, type SegueRefRawSegueParams } from '../../segue';
|
|
4
4
|
import { DbxRouterTransitionService } from './router.transition.service';
|
|
5
5
|
/**
|
|
6
6
|
* Router service definition that can route the app and provide routing details.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { Observable, OperatorFunction } from 'rxjs';
|
|
3
|
-
import { SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
4
|
-
import { DbxRouterTransitionEvent, DbxRouterTransitionEventType } from '../transition';
|
|
5
|
-
import { IsSegueRefActiveFunctionConfig } from './router.service.util';
|
|
2
|
+
import { type Observable, type OperatorFunction } from 'rxjs';
|
|
3
|
+
import { type SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
4
|
+
import { type DbxRouterTransitionEvent, DbxRouterTransitionEventType } from '../transition';
|
|
5
|
+
import { type IsSegueRefActiveFunctionConfig } from './router.service.util';
|
|
6
6
|
export declare function onRouterTransitionEventType(events$: Observable<DbxRouterTransitionEvent>, type: DbxRouterTransitionEventType): Observable<DbxRouterTransitionEvent>;
|
|
7
7
|
export declare function onRouterTransitionSuccessEvent(events$: Observable<DbxRouterTransitionEvent>): Observable<DbxRouterTransitionEvent>;
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
2
|
-
import { DbxRouterService } from './router.service';
|
|
1
|
+
import { type SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
2
|
+
import { type DbxRouterService } from './router.service';
|
|
3
3
|
/**
|
|
4
4
|
* Function that returns true when the configured segueRef is active.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DbxRouterTransitionEvent } from '../transition/transition';
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import { type DbxRouterTransitionEvent } from '../transition/transition';
|
|
3
3
|
/**
|
|
4
4
|
* Router service definition that provides high level information about router transitions.
|
|
5
5
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ArrayOrValue } from '@dereekb/util';
|
|
2
|
-
import { MonoTypeOperatorFunction, Observable } from 'rxjs';
|
|
3
|
-
import { SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
4
|
-
import { DbxRouterService } from '../service/router.service';
|
|
5
|
-
import { DbxRouterTransitionService } from '../service/router.transition.service';
|
|
6
|
-
import { DbxRouterTransitionEvent, DbxRouterTransitionEventType } from './transition';
|
|
1
|
+
import { type ArrayOrValue } from '@dereekb/util';
|
|
2
|
+
import { type MonoTypeOperatorFunction, type Observable } from 'rxjs';
|
|
3
|
+
import { type SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
4
|
+
import { type DbxRouterService } from '../service/router.service';
|
|
5
|
+
import { type DbxRouterTransitionService } from '../service/router.transition.service';
|
|
6
|
+
import { type DbxRouterTransitionEvent, DbxRouterTransitionEventType } from './transition';
|
|
7
7
|
/**
|
|
8
8
|
* Convenience function for filtering success from the input observable.
|
|
9
9
|
*
|