@dereekb/dbx-core 11.0.21 → 11.1.1
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.holder.mjs +1 -1
- package/esm2022/lib/action/action.machine.mjs +1 -1
- package/esm2022/lib/action/action.mjs +1 -1
- package/esm2022/lib/action/directive/auto/action.automodify.directive.mjs +1 -1
- package/esm2022/lib/action/directive/auto/action.autotrigger.directive.mjs +1 -1
- package/esm2022/lib/action/directive/context/action.source.directive.mjs +1 -1
- package/esm2022/lib/action/directive/map/action.map.key.directive.mjs +1 -1
- package/esm2022/lib/action/directive/map/action.map.source.directive.mjs +1 -1
- package/esm2022/lib/action/directive/map/action.map.working.disable.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.disabled.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.disableonsuccess.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.enforce.modified.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.handler.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.presuccess.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.success.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.success.handler.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.value.trigger.directive.mjs +1 -1
- package/esm2022/lib/action/directive/state/action.working.component.mjs +1 -1
- package/esm2022/lib/auth/auth.role.any.directive.mjs +1 -1
- package/esm2022/lib/auth/auth.user.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/auth.hook.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/state.hook.mjs +1 -1
- package/esm2022/lib/auth/router/state/effect/auth.router.state.effect.mjs +1 -1
- package/esm2022/lib/auth/service/auth.service.rxjs.mjs +1 -1
- package/esm2022/lib/button/button.directive.mjs +1 -1
- package/esm2022/lib/button/button.mjs +1 -1
- package/esm2022/lib/button/router/button.segue.directive.mjs +1 -1
- package/esm2022/lib/context/context.directive.mjs +1 -1
- package/esm2022/lib/filter/filter.abstract.connector.directive.mjs +1 -1
- package/esm2022/lib/filter/filter.abstract.source.directive.mjs +1 -1
- package/esm2022/lib/filter/filter.map.connector.directive.mjs +1 -1
- package/esm2022/lib/filter/filter.map.instance.directive.mjs +1 -1
- package/esm2022/lib/filter/filter.map.source.directive.mjs +1 -1
- package/esm2022/lib/injection/injection.array.component.mjs +1 -1
- package/esm2022/lib/injection/injection.component.mjs +1 -1
- package/esm2022/lib/injection/injection.context.directive.mjs +1 -1
- package/esm2022/lib/injection/injection.directive.mjs +1 -1
- package/esm2022/lib/injection/injection.mjs +3 -3
- package/esm2022/lib/injection/injection.rxjs.mjs +1 -1
- package/esm2022/lib/ngrx/store.lockset.mjs +1 -1
- package/esm2022/lib/pipe/date/datedayrange.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/datedaytimerange.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/datedistance.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/dateformatdistance.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/daterangedistance.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/datetimerange.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/datetimerangeonly.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/datetimerangeonlydistance.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/minutesstring.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/systemdatetotargetdate.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/targetdatetosystemdate.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/timezoneabbreviation.pipe.mjs +1 -1
- package/esm2022/lib/pipe/date/tojsdate.pipe.mjs +1 -1
- package/esm2022/lib/pipe/misc/prettyjson.pipe.mjs +1 -1
- package/esm2022/lib/pipe/value/cuttext.pipe.mjs +18 -0
- package/esm2022/lib/pipe/value/dollar.pipe.mjs +1 -1
- package/esm2022/lib/pipe/value/index.mjs +2 -1
- package/esm2022/lib/pipe/value/value.pipe.module.mjs +4 -3
- package/esm2022/lib/router/anchor/anchor.directive.mjs +1 -1
- package/esm2022/lib/router/anchor/mousable.mjs +1 -1
- package/esm2022/lib/router/auth/hook/uid.hook.mjs +1 -1
- package/esm2022/lib/router/index.mjs +2 -1
- package/esm2022/lib/router/model/id.param.redirect.mjs +73 -0
- package/esm2022/lib/router/model/index.mjs +7 -0
- package/esm2022/lib/router/model/model.module.mjs +20 -0
- package/esm2022/lib/router/model/model.router.id.directive.mjs +61 -0
- package/esm2022/lib/router/model/model.router.key.directive.mjs +62 -0
- package/esm2022/lib/router/model/model.router.mjs +38 -0
- package/esm2022/lib/router/model/model.router.uid.directive.mjs +24 -0
- package/esm2022/lib/router/router/service/router.service.rxjs.mjs +1 -1
- package/esm2022/lib/router/router/transition/transition.rxjs.mjs +3 -3
- 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.string.mjs +3 -3
- package/esm2022/lib/subscription/subscription.directive.mjs +1 -1
- package/esm2022/lib/util/view.mjs +1 -1
- package/fesm2022/dereekb-dbx-core.mjs +278 -10
- package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.d.ts +1 -1
- package/lib/action/action.holder.d.ts +1 -1
- package/lib/action/action.machine.d.ts +1 -1
- package/lib/action/directive/auto/action.automodify.directive.d.ts +1 -1
- package/lib/action/directive/auto/action.autotrigger.directive.d.ts +1 -1
- package/lib/action/directive/context/action.source.directive.d.ts +1 -1
- package/lib/action/directive/map/action.map.key.directive.d.ts +1 -1
- package/lib/action/directive/map/action.map.working.disable.directive.d.ts +1 -1
- package/lib/action/directive/state/action.disabled.directive.d.ts +1 -1
- package/lib/action/directive/state/action.disableonsuccess.directive.d.ts +1 -1
- package/lib/action/directive/state/action.enforce.modified.directive.d.ts +1 -1
- package/lib/action/directive/state/action.handler.directive.d.ts +1 -1
- package/lib/action/directive/state/action.presuccess.directive.d.ts +1 -1
- package/lib/action/directive/state/action.success.directive.d.ts +1 -1
- package/lib/action/directive/state/action.success.handler.directive.d.ts +1 -1
- package/lib/action/directive/state/action.value.trigger.directive.d.ts +1 -1
- package/lib/action/directive/state/action.working.component.d.ts +1 -1
- package/lib/auth/auth.role.any.directive.d.ts +1 -1
- package/lib/auth/auth.user.d.ts +1 -1
- package/lib/auth/service/auth.service.rxjs.d.ts +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.directive.d.ts +1 -1
- package/lib/button/router/button.segue.directive.d.ts +1 -1
- package/lib/context/context.directive.d.ts +1 -1
- package/lib/filter/filter.abstract.source.directive.d.ts +1 -1
- package/lib/filter/filter.map.connector.directive.d.ts +1 -1
- package/lib/filter/filter.map.instance.directive.d.ts +1 -1
- package/lib/filter/filter.map.source.directive.d.ts +1 -1
- package/lib/injection/injection.array.component.d.ts +1 -1
- package/lib/injection/injection.component.d.ts +1 -1
- package/lib/injection/injection.context.directive.d.ts +1 -1
- package/lib/injection/injection.directive.d.ts +1 -1
- package/lib/injection/injection.rxjs.d.ts +1 -1
- package/lib/ngrx/store.lockset.d.ts +1 -1
- package/lib/pipe/date/datedayrange.pipe.d.ts +1 -1
- package/lib/pipe/date/datedaytimerange.pipe.d.ts +1 -1
- package/lib/pipe/date/datedistance.pipe.d.ts +1 -1
- package/lib/pipe/date/dateformatdistance.pipe.d.ts +1 -1
- package/lib/pipe/date/daterangedistance.pipe.d.ts +1 -1
- package/lib/pipe/date/datetimerange.pipe.d.ts +1 -1
- package/lib/pipe/date/datetimerangeonly.pipe.d.ts +1 -1
- package/lib/pipe/date/datetimerangeonlydistance.pipe.d.ts +1 -1
- package/lib/pipe/date/minutesstring.pipe.d.ts +1 -1
- package/lib/pipe/date/systemdatetotargetdate.pipe.d.ts +1 -1
- package/lib/pipe/date/targetdatetosystemdate.pipe.d.ts +1 -1
- package/lib/pipe/date/timezoneabbreviation.pipe.d.ts +1 -1
- package/lib/pipe/date/tojsdate.pipe.d.ts +1 -1
- package/lib/pipe/misc/prettyjson.pipe.d.ts +1 -1
- package/lib/pipe/value/cuttext.pipe.d.ts +11 -0
- package/lib/pipe/value/dollar.pipe.d.ts +1 -1
- package/lib/pipe/value/index.d.ts +1 -0
- package/lib/pipe/value/value.pipe.module.d.ts +4 -3
- package/lib/router/anchor/anchor.directive.d.ts +1 -1
- package/lib/router/anchor/mousable.d.ts +1 -1
- package/lib/router/auth/hook/uid.hook.d.ts +1 -1
- package/lib/router/index.d.ts +1 -0
- package/lib/router/model/id.param.redirect.d.ts +51 -0
- package/lib/router/model/index.d.ts +6 -0
- package/lib/router/model/model.module.d.ts +9 -0
- package/lib/router/model/model.router.d.ts +35 -0
- package/lib/router/model/model.router.id.directive.d.ts +30 -0
- package/lib/router/model/model.router.key.directive.d.ts +32 -0
- package/lib/router/model/model.router.uid.directive.d.ts +15 -0
- package/lib/router/router/service/router.service.rxjs.d.ts +1 -1
- package/lib/router/router/util/route.reader.d.ts +2 -2
- package/lib/router/segue.d.ts +1 -1
- package/lib/storage/storage.accessor.d.ts +1 -1
- package/lib/storage/storage.accessor.string.d.ts +1 -1
- package/lib/subscription/subscription.directive.d.ts +1 -1
- package/lib/util/view.d.ts +1 -1
- package/package.json +1 -1
package/lib/action/action.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { Destroyable, Maybe } from '@dereekb/util';
|
|
2
|
+
import { Destroyable, type Maybe } from '@dereekb/util';
|
|
3
3
|
import { LockSet } from '@dereekb/rxjs';
|
|
4
4
|
import { ActionContextStoreSource, DbxActionContextStoreSourceInstance, SecondaryActionContextStoreSource } from './action.store.source';
|
|
5
5
|
import { ActionContextStore } from './action.store';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DbxActionContextSourceReference } from './action.reference';
|
|
2
2
|
import { ActionContextStoreSource } from './action.store.source';
|
|
3
3
|
import { DbxActionContextBaseSource } from './action.holder';
|
|
4
|
-
import { Destroyable, Maybe } from '@dereekb/util';
|
|
4
|
+
import { Destroyable, type Maybe } from '@dereekb/util';
|
|
5
5
|
import { Work } from '@dereekb/rxjs';
|
|
6
6
|
import { OnDestroy } from '@angular/core';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
3
3
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DbxActionAutoModifyDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
|
|
7
7
|
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
@@ -2,7 +2,7 @@ import { OnInit, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
|
-
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import { type Maybe } from '@dereekb/util';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Directive that automatically triggers the action periodically when it is in a modified state.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { SecondaryActionContextStoreSource, ActionContextStoreSource } from '../../action.store.source';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { ActionKey } from './action.map';
|
|
4
4
|
import { SecondaryActionContextStoreSource } from '../../action.store.source';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
4
4
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
5
|
import { DbxActionDisabledKey } from '../../action';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
4
4
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
4
4
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
4
4
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
3
|
-
import { FactoryWithInput, GetterOrValue, Maybe } from '@dereekb/util';
|
|
3
|
+
import { FactoryWithInput, GetterOrValue, type Maybe } from '@dereekb/util';
|
|
4
4
|
import { DbxActionHandlerInstance } from './action.handler.instance';
|
|
5
5
|
import { Work } from '@dereekb/rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
4
4
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { IsModifiedFunction } from '@dereekb/rxjs';
|
|
3
|
-
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { type Maybe } from '@dereekb/util';
|
|
4
4
|
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
5
|
import { DbxActionValueOnTriggerFunction } from './action.value.trigger.instance';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthRole, ArrayOrValue, Maybe } from '@dereekb/util';
|
|
1
|
+
import { AuthRole, ArrayOrValue, type Maybe } from '@dereekb/util';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
3
|
import { AbstractIfDirective } from '../view/if.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
package/lib/auth/auth.user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthRole, AuthRoleSet, Maybe } from '@dereekb/util';
|
|
1
|
+
import { AuthRole, AuthRoleSet, type Maybe } from '@dereekb/util';
|
|
2
2
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
3
3
|
/**
|
|
4
4
|
* Convenience operator that emits events when the input observable goes from false to true.
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
4
|
import { AbstractSubscriptionDirective } from '../subscription';
|
|
5
5
|
import { DbxButton, DbxButtonDisplayContent, DbxButtonDisplayContentType, DbxButtonInterceptor } from './button';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../../subscription';
|
|
4
4
|
import { DbxButton } from '../button';
|
|
5
5
|
import { SegueRef, DbxRouterService } from '../../router';
|
|
@@ -2,7 +2,7 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { DbxAppContextService } from './context.service';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../subscription';
|
|
4
4
|
import { DbxAppContextState } from './context';
|
|
5
|
-
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import { type Maybe } from '@dereekb/util';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Used to set the DbxAppContextState for an app to the input state using the DbxAppContextService.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { OnDestroy, OnInit, Provider, Type } from '@angular/core';
|
|
3
3
|
import { FilterSource, FilterSourceInstance, ObservableOrValue } from '@dereekb/rxjs';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare abstract class FilterSourceDirective<F = unknown> implements FilterSource<F> {
|
|
7
7
|
abstract filter$: Observable<F>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilterSourceConnector, FilterSource, FilterMapKey } from '@dereekb/rxjs';
|
|
2
2
|
import { DbxFilterMapSourceDirective } from './filter.map.source.directive';
|
|
3
|
-
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { type Maybe } from '@dereekb/util';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Acts as an "input" FilterSourceConnector for an FilterMap, as well as a source for the FilterSourceConnector.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FilterMap } from '@dereekb/rxjs';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { OnDestroy } from '@angular/core';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Provides a FilterSource from a parent FilterMap.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FilterSource, FilterMapKey } from '@dereekb/rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { AbstractDbxFilterMapInstanceDirective } from './filter.map.instance.directive';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Provides a FilterSource from a parent FilterMap.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, TrackByFunction } from '@angular/core';
|
|
2
2
|
import { DbxInjectionArrayEntry } from './injection.array';
|
|
3
|
-
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { type Maybe } from '@dereekb/util';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Component that injects content based on the configuration into the view.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { DbxInjectionComponentConfig, DbxInjectionTemplateConfig } from './injection';
|
|
3
3
|
import { AbstractDbxInjectionDirective } from './injection.directive';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Component that injects content based on the configuration into the view.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DbxInjectionContext, DbxInjectionContextConfig } from './injection.context';
|
|
3
3
|
import { DbxInjectionComponentConfig } from './injection';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* DbxInjectedViewContext implementation. Acts similar to *ngIf, but instead switches to a different view without destroying the original child view.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewContainerRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DbxInjectionComponentConfig, DbxInjectionTemplateConfig } from './injection';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { ComponentStore } from '@ngrx/component-store';
|
|
3
3
|
import { OnDestroy } from '@angular/core';
|
|
4
4
|
import { LockSet, ObservableOrValue } from '@dereekb/rxjs';
|
|
5
|
-
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import { type Maybe } from '@dereekb/util';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export interface LockSetComponent {
|
|
8
8
|
readonly lockSet: LockSet;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DateRange } from '@dereekb/date';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DateDayRangePipe implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DateRange } from '@dereekb/date';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DateDayTimeRangePipe implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DateOrDateString, Maybe } from '@dereekb/util';
|
|
2
|
+
import { DateOrDateString, type Maybe } from '@dereekb/util';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DateDistancePipe implements PipeTransform {
|
|
5
5
|
transform(input: Maybe<DateOrDateString>, inputTo?: Maybe<Date>, unavailable?: string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DateOrDateString, Maybe } from '@dereekb/util';
|
|
2
|
+
import { DateOrDateString, type Maybe } from '@dereekb/util';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Pipe that takes in a date and appends the distance to it in parenthesis.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DateRange } from '@dereekb/date';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DateRangeDistancePipe implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DateRange } from '@dereekb/date';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DateTimeRangePipe implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DateRange } from '@dereekb/date';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DateTimeRangeOnlyPipe implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DateRange, FormatDateRangeDistanceFunctionConfig } from '@dereekb/date';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DateTimeRangeOnlyDistancePipe implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class MinutesStringPipe implements PipeTransform {
|
|
5
5
|
transform(input: Maybe<number | string>): Maybe<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DateOrDateString, Maybe } from '@dereekb/util';
|
|
2
|
+
import { DateOrDateString, type Maybe } from '@dereekb/util';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ToJsDatePipe implements PipeTransform {
|
|
5
5
|
static toJsDate(input: DateOrDateString): Date;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PrettyJsonPipe implements PipeTransform {
|
|
5
5
|
static toPrettyJson(input: Maybe<unknown>, spacing?: number): Maybe<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Pipe that cuts the input text to the requested length and adds elipsis.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CutTextPipe implements PipeTransform {
|
|
8
|
+
transform(input: Maybe<string>, maxLength: number, endText?: Maybe<string>): Maybe<string>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CutTextPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CutTextPipe, "cutText", false>;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Pipe that takes in a number and returns the number formatted as a dollar using dollarAmountString().
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./
|
|
2
|
+
import * as i1 from "./cuttext.pipe";
|
|
3
|
+
import * as i2 from "./dollar.pipe";
|
|
4
|
+
import * as i3 from "./getvalue.pipe";
|
|
4
5
|
export declare class DbxValuePipeModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxValuePipeModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxValuePipeModule, [typeof i1.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxValuePipeModule, [typeof i1.CutTextPipe, typeof i2.DollarAmountPipe, typeof i3.GetValuePipe, typeof i3.GetValueOncePipe], never, [typeof i1.CutTextPipe, typeof i2.DollarAmountPipe, typeof i3.GetValuePipe, typeof i3.GetValueOncePipe]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxValuePipeModule>;
|
|
8
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { type Maybe } from '@dereekb/util';
|
|
4
4
|
import { AnchorType, ClickableAnchor, DbxAnchor } from './anchor';
|
|
5
5
|
import { SegueRefOrSegueRefRouterLink } from '../segue';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthUserIdentifier } from '../../../auth/auth.user';
|
|
2
2
|
import { DbxAuthService } from '../../../auth/service/auth.service';
|
|
3
3
|
import { TransitionService, HookMatchCriteria } from '@uirouter/core';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { Injector } from '@angular/core';
|
|
7
7
|
export declare const DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_VALUE = "0";
|
package/lib/router/index.d.ts
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
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';
|
|
6
|
+
/**
|
|
7
|
+
* Default identifier used by dbxRouteModelIdParamRedirect() that corresponds to the id param of the model in the current route.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_ID_PARAM_KEY = "id";
|
|
10
|
+
/**
|
|
11
|
+
* Default identifier used by dbxRouteModelIdParamRedirect() that corresponds to the key param of the model in the current route.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_KEY_PARAM_KEY = "key";
|
|
14
|
+
/**
|
|
15
|
+
* Default value used by dbxRouteModelIdParamRedirect() for when a value is not available or provided.
|
|
16
|
+
*/
|
|
17
|
+
export declare const DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_USE_PARAM_VALUE = "0";
|
|
18
|
+
/**
|
|
19
|
+
* Used to read an id with a specific key from the current route.
|
|
20
|
+
*
|
|
21
|
+
* Can be configured to redirect to a default route if a specific value is seen.
|
|
22
|
+
*/
|
|
23
|
+
export interface DbxRouteModelIdParamRedirect extends DbxRouteParamReader<ModelKey> {
|
|
24
|
+
/**
|
|
25
|
+
* The id value as it is from the current state's params.
|
|
26
|
+
*/
|
|
27
|
+
readonly idFromParams$: Observable<Maybe<ModelKey>>;
|
|
28
|
+
/**
|
|
29
|
+
* The id value as it is when considering the default value.
|
|
30
|
+
*/
|
|
31
|
+
readonly id$: Observable<Maybe<ModelKey>>;
|
|
32
|
+
setRedirectEnabled(redirect: Maybe<boolean>): void;
|
|
33
|
+
setDecider(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>): void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*DbxRouteModelIdParamRedirect instance
|
|
37
|
+
*/
|
|
38
|
+
export interface DbxRouteModelIdParamRedirectInstance extends DbxRouteModelIdParamRedirect, DbxRouteParamReader<ModelKey>, Initialized, Destroyable {
|
|
39
|
+
readonly paramValue$: Observable<Maybe<string>>;
|
|
40
|
+
readonly defaultValue$: Observable<Maybe<string>>;
|
|
41
|
+
readonly value$: Observable<Maybe<string>>;
|
|
42
|
+
readonly idFromParams$: Observable<Maybe<ModelKey>>;
|
|
43
|
+
readonly id$: Observable<Maybe<ModelKey>>;
|
|
44
|
+
setParamKey(paramKey: string): void;
|
|
45
|
+
setDefaultValue(defaultValue: MaybeObservableOrValueGetter<string>): void;
|
|
46
|
+
setRedirectEnabled(redirect: Maybe<boolean>): void;
|
|
47
|
+
setDecider(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>): void;
|
|
48
|
+
setParamValue(value: MaybeObservableOrValueGetter<string>): void;
|
|
49
|
+
}
|
|
50
|
+
export declare function dbxRouteModelKeyParamRedirect(dbxRouterService: DbxRouterService, defaultParamKey?: string): DbxRouteModelIdParamRedirectInstance;
|
|
51
|
+
export declare function dbxRouteModelIdParamRedirect(dbxRouterService: DbxRouterService, defaultParamKey?: string): DbxRouteModelIdParamRedirectInstance;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./model.router.id.directive";
|
|
3
|
+
import * as i2 from "./model.router.key.directive";
|
|
4
|
+
import * as i3 from "./model.router.uid.directive";
|
|
5
|
+
export declare class DbxCoreRouterModelModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreRouterModelModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreRouterModelModule, [typeof i1.DbxRouteModelIdDirective, typeof i2.DbxRouteModelKeyDirective, typeof i3.DbxRouteModelIdFromAuthUserIdDirective], never, [typeof i1.DbxRouteModelIdDirective, typeof i2.DbxRouteModelKeyDirective, typeof i3.DbxRouteModelIdFromAuthUserIdDirective]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreRouterModelModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Type, Provider } from '@angular/core';
|
|
2
|
+
import { Maybe, ModelKey } from '@dereekb/util';
|
|
3
|
+
import { Observable, Subscription } from 'rxjs';
|
|
4
|
+
/**
|
|
5
|
+
* DbxRouteModelIdDirective delegate that can recieve an observable of the model id from the route.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class DbxRouteModelIdDirectiveDelegate {
|
|
8
|
+
/**
|
|
9
|
+
* Passes the param value and computed value from the DbxRouteModelIdDirective to this delegate.
|
|
10
|
+
*
|
|
11
|
+
* @param idFromParamsObs
|
|
12
|
+
* @param computedIdObs
|
|
13
|
+
*/
|
|
14
|
+
abstract useRouteModelIdParamsObservable(idFromParamsObs: Observable<Maybe<ModelKey>>, computedIdObs: Observable<Maybe<ModelKey>>): Subscription;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Configures providers for a DbxRouteModelIdDirectiveDelegate.
|
|
18
|
+
*/
|
|
19
|
+
export declare function provideDbxRouteModelIdDirectiveDelegate<S extends DbxRouteModelIdDirectiveDelegate>(sourceType: Type<S>): Provider[];
|
|
20
|
+
/**
|
|
21
|
+
* DbxRouteModelKeyDirective delegate that can recieve an observable of the model id from the route.
|
|
22
|
+
*/
|
|
23
|
+
export declare abstract class DbxRouteModelKeyDirectiveDelegate {
|
|
24
|
+
/**
|
|
25
|
+
* Passes the param value and computed value from the DbxRouteModelKeyDirective to this delegate.
|
|
26
|
+
*
|
|
27
|
+
* @param keyFromParamsObs
|
|
28
|
+
* @param computedKeyObs
|
|
29
|
+
*/
|
|
30
|
+
abstract useRouteModelKeyParamsObservable(keyFromParamsObs: Observable<Maybe<ModelKey>>, computedKeyObs: Observable<Maybe<ModelKey>>): Subscription;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Configures providers for a DbxRouteModelKeyDirectiveDelegate.
|
|
34
|
+
*/
|
|
35
|
+
export declare function provideDbxRouteModelKeyDirectiveDelegate<S extends DbxRouteModelKeyDirectiveDelegate>(sourceType: Type<S>): Provider[];
|