@dereekb/dbx-core 5.0.0 → 5.0.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/esm2020/lib/action/action.handler.mjs +1 -1
- package/esm2020/lib/action/action.holder.mjs +1 -1
- package/esm2020/lib/action/action.machine.mjs +1 -1
- package/esm2020/lib/action/action.mjs +2 -2
- package/esm2020/lib/action/action.module.mjs +70 -22
- package/esm2020/lib/action/action.reference.mjs +1 -1
- package/esm2020/lib/action/action.store.mjs +30 -28
- package/esm2020/lib/action/action.store.source.mjs +26 -23
- package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +3 -3
- package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +7 -7
- package/esm2020/lib/action/directive/context/action.directive.mjs +1 -1
- package/esm2020/lib/action/directive/context/action.source.directive.mjs +1 -1
- package/esm2020/lib/action/directive/debug/action.logger.directive.mjs +1 -1
- package/esm2020/lib/action/directive/map/action.map.directive.mjs +4 -4
- package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +1 -1
- package/esm2020/lib/action/directive/map/action.map.source.directive.mjs +1 -1
- package/esm2020/lib/action/directive/map/action.map.working.disable.directive.mjs +1 -1
- package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +1 -1
- package/esm2020/lib/action/directive/state/action.enforce.modified.directive.mjs +4 -2
- package/esm2020/lib/action/directive/state/action.handler.directive.mjs +7 -5
- package/esm2020/lib/action/directive/state/action.success.directive.mjs +1 -1
- package/esm2020/lib/action/directive/state/action.success.handler.directive.mjs +6 -4
- package/esm2020/lib/action/directive/state/action.value.directive.mjs +6 -4
- package/esm2020/lib/action/directive/state/action.value.stream.directive.mjs +2 -2
- package/esm2020/lib/action/directive/state/action.value.trigger.directive.mjs +5 -5
- package/esm2020/lib/action/directive/state/action.value.trigger.instance.mjs +5 -4
- package/esm2020/lib/action/directive/state/action.working.component.mjs +1 -1
- package/esm2020/lib/auth/auth.module.mjs +4 -12
- package/esm2020/lib/auth/auth.role.any.directive.mjs +1 -1
- package/esm2020/lib/auth/auth.role.has.directive.mjs +1 -1
- package/esm2020/lib/auth/auth.state.module.mjs +3 -9
- package/esm2020/lib/auth/auth.state.service.mjs +3 -3
- package/esm2020/lib/auth/auth.user.mjs +2 -2
- package/esm2020/lib/auth/index.mjs +1 -1
- package/esm2020/lib/auth/router/auth.router.module.mjs +5 -3
- package/esm2020/lib/auth/router/auth.router.service.mjs +5 -5
- package/esm2020/lib/auth/router/provider/uirouter/auth.hook.mjs +1 -1
- package/esm2020/lib/auth/router/provider/uirouter/hook.mjs +1 -1
- package/esm2020/lib/auth/router/provider/uirouter/redirect.mjs +2 -2
- package/esm2020/lib/auth/router/provider/uirouter/role.hook.mjs +2 -2
- package/esm2020/lib/auth/router/provider/uirouter/state.hook.mjs +3 -3
- package/esm2020/lib/auth/router/state/auth.router.state.module.mjs +7 -9
- package/esm2020/lib/auth/router/state/effect/auth.router.state.effect.mjs +1 -1
- package/esm2020/lib/auth/service/auth.service.mjs +1 -1
- package/esm2020/lib/auth/service/auth.service.rxjs.mjs +1 -1
- package/esm2020/lib/auth/state/action/auth.action.mjs +1 -1
- package/esm2020/lib/auth/state/action/user.action.mjs +1 -1
- package/esm2020/lib/auth/state/effect/auth.effect.mjs +7 -13
- package/esm2020/lib/auth/state/reducer/index.mjs +2 -2
- package/esm2020/lib/button/action/action.button.directive.mjs +1 -1
- package/esm2020/lib/button/action/action.button.trigger.directive.mjs +1 -1
- package/esm2020/lib/button/button.directive.mjs +5 -3
- package/esm2020/lib/button/button.loading.directive.mjs +2 -2
- package/esm2020/lib/button/button.mjs +5 -3
- package/esm2020/lib/button/button.module.mjs +4 -24
- package/esm2020/lib/button/router/button.segue.directive.mjs +5 -3
- package/esm2020/lib/context/context.directive.mjs +3 -3
- package/esm2020/lib/context/context.mjs +1 -1
- package/esm2020/lib/context/context.module.mjs +5 -13
- package/esm2020/lib/context/context.service.mjs +3 -3
- package/esm2020/lib/context/state/action/data.action.mjs +1 -1
- package/esm2020/lib/context/state/effect/index.mjs +1 -1
- package/esm2020/lib/context/state/reducer/index.mjs +2 -2
- package/esm2020/lib/context/state/state.mjs +1 -1
- package/esm2020/lib/filter/action/action.filter.source.directive.mjs +1 -1
- package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +2 -2
- package/esm2020/lib/filter/filter.abstract.source.directive.mjs +1 -1
- package/esm2020/lib/filter/filter.connector.directive.mjs +3 -9
- package/esm2020/lib/filter/filter.content.mjs +12 -7
- package/esm2020/lib/filter/filter.map.connector.directive.mjs +3 -9
- package/esm2020/lib/filter/filter.map.directive.mjs +1 -1
- package/esm2020/lib/filter/filter.map.instance.directive.mjs +1 -1
- package/esm2020/lib/filter/filter.map.source.directive.mjs +4 -8
- package/esm2020/lib/filter/filter.module.mjs +6 -30
- package/esm2020/lib/filter/filter.source.directive.mjs +1 -1
- package/esm2020/lib/injection/injection.component.mjs +7 -3
- package/esm2020/lib/injection/injection.component.module.mjs +6 -18
- package/esm2020/lib/injection/injection.context.directive.mjs +1 -1
- package/esm2020/lib/injection/injection.context.forward.directive.mjs +3 -3
- package/esm2020/lib/injection/injection.context.mjs +5 -3
- package/esm2020/lib/injection/injection.directive.mjs +1 -1
- package/esm2020/lib/injection/injection.instance.mjs +5 -3
- package/esm2020/lib/injection/injection.mjs +4 -4
- package/esm2020/lib/ngrx/store.lockset.mjs +3 -3
- package/esm2020/lib/pipe/date/date.pipe.module.mjs +4 -36
- package/esm2020/lib/pipe/date/datedistance.pipe.mjs +1 -1
- package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +1 -1
- package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +1 -1
- package/esm2020/lib/pipe/date/minutesstring.pipe.mjs +3 -3
- package/esm2020/lib/pipe/date/timedistance.pipe.mjs +1 -1
- package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +1 -1
- package/esm2020/lib/pipe/date/tominutes.pipe.mjs +1 -1
- package/esm2020/lib/pipe/misc/misc.pipe.module.mjs +3 -7
- package/esm2020/lib/pipe/misc/prettyjson.pipe.mjs +1 -1
- package/esm2020/lib/pipe/pipe.module.mjs +4 -9
- package/esm2020/lib/router/anchor/anchor.directive.mjs +1 -1
- package/esm2020/lib/router/anchor/anchor.mjs +5 -3
- package/esm2020/lib/router/anchor/clickable.mjs +1 -1
- package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +6 -6
- package/esm2020/lib/router/router/provider/angular/angular.router.service.module.mjs +1 -1
- package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +9 -6
- package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +1 -1
- package/esm2020/lib/router/router/service/router.go.mjs +4 -4
- package/esm2020/lib/router/router/service/router.service.mjs +1 -1
- package/esm2020/lib/router/router/service/router.transition.service.mjs +1 -1
- package/esm2020/lib/router/router/transition/transition.directive.mjs +1 -1
- package/esm2020/lib/router/router/transition/transition.rxjs.mjs +4 -4
- package/esm2020/lib/router/router/transition/transition.watcher.directive.mjs +1 -1
- package/esm2020/lib/router/segue.mjs +3 -3
- package/esm2020/lib/storage/storage.accessor.mjs +1 -1
- package/esm2020/lib/storage/storage.accessor.simple.factory.mjs +1 -1
- package/esm2020/lib/storage/storage.accessor.simple.mjs +6 -4
- package/esm2020/lib/storage/storage.accessor.string.mjs +2 -2
- package/esm2020/lib/storage/storage.module.mjs +9 -5
- package/esm2020/lib/storage/storage.object.localstorage.mjs +2 -2
- package/esm2020/lib/storage/storage.object.memory.mjs +1 -1
- package/esm2020/lib/subscription/subscription.directive.mjs +1 -1
- package/esm2020/lib/util/view.mjs +1 -1
- package/esm2020/lib/view/if.directive.mjs +4 -4
- package/fesm2015/dereekb-dbx-core.mjs +290 -336
- package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-core.mjs +287 -336
- package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.d.ts +1 -1
- package/lib/action/action.reference.d.ts +2 -2
- package/lib/action/directive/state/action.value.trigger.directive.d.ts +5 -5
- package/lib/auth/auth.state.service.d.ts +2 -2
- package/lib/auth/auth.user.d.ts +1 -1
- package/lib/auth/router/auth.router.service.d.ts +2 -2
- package/lib/auth/router/provider/uirouter/redirect.d.ts +2 -2
- package/lib/context/context.directive.d.ts +2 -2
- package/lib/context/context.service.d.ts +2 -2
- package/lib/filter/filter.content.d.ts +1 -1
- package/lib/injection/injection.context.d.ts +2 -2
- package/lib/injection/injection.context.forward.directive.d.ts +1 -1
- package/lib/injection/injection.d.ts +2 -2
- package/lib/router/anchor/clickable.d.ts +1 -1
- package/lib/router/router/provider/angular/angular.router.service.d.ts +2 -2
- package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +2 -2
- 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/transition/transition.rxjs.d.ts +2 -2
- package/lib/util/view.d.ts +2 -2
- package/lib/view/if.directive.d.ts +4 -4
- package/package.json +4 -4
package/lib/action/action.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Destroyable } from
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from
|
|
1
|
+
import { Destroyable } from '@dereekb/util';
|
|
2
|
+
import { 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 { ElementRef, OnDestroy, OnInit } from
|
|
2
|
-
import { IsModifiedFunction } from
|
|
3
|
-
import { Maybe } from
|
|
4
|
-
import { DbxActionContextStoreSourceInstance } from
|
|
5
|
-
import { DbxActionValueOnTriggerFunction } from
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { IsModifiedFunction } from '@dereekb/rxjs';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
|
+
import { DbxActionValueOnTriggerFunction } from './action.value.trigger.instance';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Abstract class for directives that may perform an action when trigger is called, and returns a value.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Store } from
|
|
2
|
-
import { DbxAppAuthFullState } from
|
|
1
|
+
import { Store } from '@ngrx/store';
|
|
2
|
+
import { DbxAppAuthFullState } from './state/state';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* State for accessing the app's DbxAppAuthState defined within the DbxAppAuthFullState for the ngrx store.
|
package/lib/auth/auth.user.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DbxRouterService } from
|
|
2
|
-
import { DbxAppAuthRoutes } from
|
|
1
|
+
import { DbxRouterService } from '../../router/router/service/router.service';
|
|
2
|
+
import { DbxAppAuthRoutes } from './auth.router';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Helper service for navigating to important auth-related routes.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectMap } from
|
|
2
|
-
import { AuthTransitionRedirectTargetGetter, AuthTransitionRedirectTargetOrGetter } from
|
|
1
|
+
import { ObjectMap } from '@dereekb/util';
|
|
2
|
+
import { AuthTransitionRedirectTargetGetter, AuthTransitionRedirectTargetOrGetter } from './hook';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a AuthTransitionRedirectTargetGetter that can redirect values based on the current authUserState.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
2
|
-
import { DbxAppContextService } from
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DbxAppContextService } from './context.service';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../subscription';
|
|
4
4
|
import { DbxAppContextState } from './context';
|
|
5
5
|
import { Maybe } from '@dereekb/util';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Store } from
|
|
1
|
+
import { Store } from '@ngrx/store';
|
|
2
2
|
import { DbxAppContextState } from './context';
|
|
3
|
-
import { DbxAppContextFullState } from
|
|
3
|
+
import { DbxAppContextFullState } from './state/state';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* State for accessing the app's DbxAppContextState defined within the DbxAppContextFullState for the ngrx store.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Provider, Type } from
|
|
2
|
-
import { DbxInjectionComponentConfig } from
|
|
1
|
+
import { Provider, Type } from '@angular/core';
|
|
2
|
+
import { DbxInjectionComponentConfig } from './injection';
|
|
3
3
|
/**
|
|
4
4
|
* DbxInjectedViewContext showContext() configuration.
|
|
5
5
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DbxInjectionContext, DbxInjectionContextConfig } from
|
|
1
|
+
import { DbxInjectionContext, DbxInjectionContextConfig } from './injection.context';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Abstract DbxInjectionContext implementation that forwards commands to a host DbxInjectionContext.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, Injector, NgModuleRef, StaticProvider, TemplateRef, Type, ViewRef } from
|
|
2
|
-
import { Maybe } from
|
|
1
|
+
import { InjectionToken, Injector, NgModuleRef, StaticProvider, TemplateRef, Type, ViewRef } from '@angular/core';
|
|
2
|
+
import { 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
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { DbxRouterService, DbxRouterTransitionService } from '../../service';
|
|
3
|
-
import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from
|
|
4
|
-
import { DbxRouterTransitionEvent } from
|
|
3
|
+
import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from '../../../segue';
|
|
4
|
+
import { DbxRouterTransitionEvent } from '../../transition/transition';
|
|
5
5
|
import { ActivatedRoute, NavigationBehaviorOptions, NavigationExtras, Router } from '@angular/router';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DbxRouterService, DbxRouterTransitionService } from '../../service';
|
|
2
|
-
import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from
|
|
2
|
+
import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from '../../../segue';
|
|
3
3
|
import { StateService, UIRouterGlobals, TransitionOptions, TransitionService } from '@uirouter/core';
|
|
4
|
-
import { OnDestroy } from
|
|
4
|
+
import { OnDestroy } from '@angular/core';
|
|
5
5
|
import { DbxRouterTransitionEvent } from '../../transition/transition';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObservableOrValue } from
|
|
2
|
-
import { SegueRef, SegueRefOrSegueRefRouterLink } from
|
|
3
|
-
import { DbxRouterService } from
|
|
1
|
+
import { ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
+
import { SegueRef, SegueRefOrSegueRefRouterLink } from '../../segue';
|
|
3
|
+
import { 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
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from
|
|
1
|
+
import { ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from '../../segue';
|
|
4
4
|
/**
|
|
5
5
|
* Router service definition that can route the app and provide routing details.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MonoTypeOperatorFunction, Observable } from
|
|
2
|
-
import { DbxRouterTransitionEvent, DbxRouterTransitionEventType } from
|
|
1
|
+
import { MonoTypeOperatorFunction, Observable } from 'rxjs';
|
|
2
|
+
import { DbxRouterTransitionEvent, DbxRouterTransitionEventType } from './transition';
|
|
3
3
|
/**
|
|
4
4
|
* Convenience function for filtering success from the input observable.
|
|
5
5
|
*
|
package/lib/util/view.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MonoTypeOperatorFunction } from 'rxjs';
|
|
2
|
-
import { ChangeDetectorRef, ElementRef } from
|
|
3
|
-
import { Maybe } from
|
|
2
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
4
|
/**
|
|
5
5
|
* Convenience function used within observables for views that need to detect changes after a value changes.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit, TemplateRef, ViewContainerRef } from
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { AbstractSubscriptionDirective } from
|
|
1
|
+
import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AbstractSubscriptionDirective } from '../subscription';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Abstract directive class that watches a show$ observable and behaves like *ngIf.
|
|
@@ -11,7 +11,7 @@ export declare abstract class AbstractIfDirective extends AbstractSubscriptionDi
|
|
|
11
11
|
/**
|
|
12
12
|
* Observable that is watched for showing/hiding.
|
|
13
13
|
*/
|
|
14
|
-
readonly
|
|
14
|
+
abstract readonly show$: Observable<boolean>;
|
|
15
15
|
constructor(templateRef: TemplateRef<unknown>, viewContainer: ViewContainerRef);
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractIfDirective, never>;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^13.0.0",
|
|
6
6
|
"@angular/core": "^13.0.0",
|
|
7
|
-
"@dereekb/util": "5.0.
|
|
8
|
-
"@dereekb/rxjs": "5.0.
|
|
7
|
+
"@dereekb/util": "5.0.1",
|
|
8
|
+
"@dereekb/rxjs": "5.0.1",
|
|
9
9
|
"@ngrx/component-store": "^13.0.2",
|
|
10
10
|
"@angular/platform-browser": "^13.0.0",
|
|
11
11
|
"@ngrx/effects": "^13.0.2",
|
|
12
12
|
"@ngrx/store": "^13.0.2",
|
|
13
13
|
"@uirouter/core": "^6.0.8",
|
|
14
14
|
"date-fns": "^2.28.0",
|
|
15
|
-
"@dereekb/date": "5.0.
|
|
15
|
+
"@dereekb/date": "5.0.1",
|
|
16
16
|
"@angular/router": "^13.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|