@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.
Files changed (145) hide show
  1. package/esm2020/lib/action/action.handler.mjs +1 -1
  2. package/esm2020/lib/action/action.holder.mjs +1 -1
  3. package/esm2020/lib/action/action.machine.mjs +1 -1
  4. package/esm2020/lib/action/action.mjs +2 -2
  5. package/esm2020/lib/action/action.module.mjs +70 -22
  6. package/esm2020/lib/action/action.reference.mjs +1 -1
  7. package/esm2020/lib/action/action.store.mjs +30 -28
  8. package/esm2020/lib/action/action.store.source.mjs +26 -23
  9. package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +3 -3
  10. package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +7 -7
  11. package/esm2020/lib/action/directive/context/action.directive.mjs +1 -1
  12. package/esm2020/lib/action/directive/context/action.source.directive.mjs +1 -1
  13. package/esm2020/lib/action/directive/debug/action.logger.directive.mjs +1 -1
  14. package/esm2020/lib/action/directive/map/action.map.directive.mjs +4 -4
  15. package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +1 -1
  16. package/esm2020/lib/action/directive/map/action.map.source.directive.mjs +1 -1
  17. package/esm2020/lib/action/directive/map/action.map.working.disable.directive.mjs +1 -1
  18. package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +1 -1
  19. package/esm2020/lib/action/directive/state/action.enforce.modified.directive.mjs +4 -2
  20. package/esm2020/lib/action/directive/state/action.handler.directive.mjs +7 -5
  21. package/esm2020/lib/action/directive/state/action.success.directive.mjs +1 -1
  22. package/esm2020/lib/action/directive/state/action.success.handler.directive.mjs +6 -4
  23. package/esm2020/lib/action/directive/state/action.value.directive.mjs +6 -4
  24. package/esm2020/lib/action/directive/state/action.value.stream.directive.mjs +2 -2
  25. package/esm2020/lib/action/directive/state/action.value.trigger.directive.mjs +5 -5
  26. package/esm2020/lib/action/directive/state/action.value.trigger.instance.mjs +5 -4
  27. package/esm2020/lib/action/directive/state/action.working.component.mjs +1 -1
  28. package/esm2020/lib/auth/auth.module.mjs +4 -12
  29. package/esm2020/lib/auth/auth.role.any.directive.mjs +1 -1
  30. package/esm2020/lib/auth/auth.role.has.directive.mjs +1 -1
  31. package/esm2020/lib/auth/auth.state.module.mjs +3 -9
  32. package/esm2020/lib/auth/auth.state.service.mjs +3 -3
  33. package/esm2020/lib/auth/auth.user.mjs +2 -2
  34. package/esm2020/lib/auth/index.mjs +1 -1
  35. package/esm2020/lib/auth/router/auth.router.module.mjs +5 -3
  36. package/esm2020/lib/auth/router/auth.router.service.mjs +5 -5
  37. package/esm2020/lib/auth/router/provider/uirouter/auth.hook.mjs +1 -1
  38. package/esm2020/lib/auth/router/provider/uirouter/hook.mjs +1 -1
  39. package/esm2020/lib/auth/router/provider/uirouter/redirect.mjs +2 -2
  40. package/esm2020/lib/auth/router/provider/uirouter/role.hook.mjs +2 -2
  41. package/esm2020/lib/auth/router/provider/uirouter/state.hook.mjs +3 -3
  42. package/esm2020/lib/auth/router/state/auth.router.state.module.mjs +7 -9
  43. package/esm2020/lib/auth/router/state/effect/auth.router.state.effect.mjs +1 -1
  44. package/esm2020/lib/auth/service/auth.service.mjs +1 -1
  45. package/esm2020/lib/auth/service/auth.service.rxjs.mjs +1 -1
  46. package/esm2020/lib/auth/state/action/auth.action.mjs +1 -1
  47. package/esm2020/lib/auth/state/action/user.action.mjs +1 -1
  48. package/esm2020/lib/auth/state/effect/auth.effect.mjs +7 -13
  49. package/esm2020/lib/auth/state/reducer/index.mjs +2 -2
  50. package/esm2020/lib/button/action/action.button.directive.mjs +1 -1
  51. package/esm2020/lib/button/action/action.button.trigger.directive.mjs +1 -1
  52. package/esm2020/lib/button/button.directive.mjs +5 -3
  53. package/esm2020/lib/button/button.loading.directive.mjs +2 -2
  54. package/esm2020/lib/button/button.mjs +5 -3
  55. package/esm2020/lib/button/button.module.mjs +4 -24
  56. package/esm2020/lib/button/router/button.segue.directive.mjs +5 -3
  57. package/esm2020/lib/context/context.directive.mjs +3 -3
  58. package/esm2020/lib/context/context.mjs +1 -1
  59. package/esm2020/lib/context/context.module.mjs +5 -13
  60. package/esm2020/lib/context/context.service.mjs +3 -3
  61. package/esm2020/lib/context/state/action/data.action.mjs +1 -1
  62. package/esm2020/lib/context/state/effect/index.mjs +1 -1
  63. package/esm2020/lib/context/state/reducer/index.mjs +2 -2
  64. package/esm2020/lib/context/state/state.mjs +1 -1
  65. package/esm2020/lib/filter/action/action.filter.source.directive.mjs +1 -1
  66. package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +2 -2
  67. package/esm2020/lib/filter/filter.abstract.source.directive.mjs +1 -1
  68. package/esm2020/lib/filter/filter.connector.directive.mjs +3 -9
  69. package/esm2020/lib/filter/filter.content.mjs +12 -7
  70. package/esm2020/lib/filter/filter.map.connector.directive.mjs +3 -9
  71. package/esm2020/lib/filter/filter.map.directive.mjs +1 -1
  72. package/esm2020/lib/filter/filter.map.instance.directive.mjs +1 -1
  73. package/esm2020/lib/filter/filter.map.source.directive.mjs +4 -8
  74. package/esm2020/lib/filter/filter.module.mjs +6 -30
  75. package/esm2020/lib/filter/filter.source.directive.mjs +1 -1
  76. package/esm2020/lib/injection/injection.component.mjs +7 -3
  77. package/esm2020/lib/injection/injection.component.module.mjs +6 -18
  78. package/esm2020/lib/injection/injection.context.directive.mjs +1 -1
  79. package/esm2020/lib/injection/injection.context.forward.directive.mjs +3 -3
  80. package/esm2020/lib/injection/injection.context.mjs +5 -3
  81. package/esm2020/lib/injection/injection.directive.mjs +1 -1
  82. package/esm2020/lib/injection/injection.instance.mjs +5 -3
  83. package/esm2020/lib/injection/injection.mjs +4 -4
  84. package/esm2020/lib/ngrx/store.lockset.mjs +3 -3
  85. package/esm2020/lib/pipe/date/date.pipe.module.mjs +4 -36
  86. package/esm2020/lib/pipe/date/datedistance.pipe.mjs +1 -1
  87. package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +1 -1
  88. package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +1 -1
  89. package/esm2020/lib/pipe/date/minutesstring.pipe.mjs +3 -3
  90. package/esm2020/lib/pipe/date/timedistance.pipe.mjs +1 -1
  91. package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +1 -1
  92. package/esm2020/lib/pipe/date/tominutes.pipe.mjs +1 -1
  93. package/esm2020/lib/pipe/misc/misc.pipe.module.mjs +3 -7
  94. package/esm2020/lib/pipe/misc/prettyjson.pipe.mjs +1 -1
  95. package/esm2020/lib/pipe/pipe.module.mjs +4 -9
  96. package/esm2020/lib/router/anchor/anchor.directive.mjs +1 -1
  97. package/esm2020/lib/router/anchor/anchor.mjs +5 -3
  98. package/esm2020/lib/router/anchor/clickable.mjs +1 -1
  99. package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +6 -6
  100. package/esm2020/lib/router/router/provider/angular/angular.router.service.module.mjs +1 -1
  101. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +9 -6
  102. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +1 -1
  103. package/esm2020/lib/router/router/service/router.go.mjs +4 -4
  104. package/esm2020/lib/router/router/service/router.service.mjs +1 -1
  105. package/esm2020/lib/router/router/service/router.transition.service.mjs +1 -1
  106. package/esm2020/lib/router/router/transition/transition.directive.mjs +1 -1
  107. package/esm2020/lib/router/router/transition/transition.rxjs.mjs +4 -4
  108. package/esm2020/lib/router/router/transition/transition.watcher.directive.mjs +1 -1
  109. package/esm2020/lib/router/segue.mjs +3 -3
  110. package/esm2020/lib/storage/storage.accessor.mjs +1 -1
  111. package/esm2020/lib/storage/storage.accessor.simple.factory.mjs +1 -1
  112. package/esm2020/lib/storage/storage.accessor.simple.mjs +6 -4
  113. package/esm2020/lib/storage/storage.accessor.string.mjs +2 -2
  114. package/esm2020/lib/storage/storage.module.mjs +9 -5
  115. package/esm2020/lib/storage/storage.object.localstorage.mjs +2 -2
  116. package/esm2020/lib/storage/storage.object.memory.mjs +1 -1
  117. package/esm2020/lib/subscription/subscription.directive.mjs +1 -1
  118. package/esm2020/lib/util/view.mjs +1 -1
  119. package/esm2020/lib/view/if.directive.mjs +4 -4
  120. package/fesm2015/dereekb-dbx-core.mjs +290 -336
  121. package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
  122. package/fesm2020/dereekb-dbx-core.mjs +287 -336
  123. package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
  124. package/lib/action/action.d.ts +1 -1
  125. package/lib/action/action.reference.d.ts +2 -2
  126. package/lib/action/directive/state/action.value.trigger.directive.d.ts +5 -5
  127. package/lib/auth/auth.state.service.d.ts +2 -2
  128. package/lib/auth/auth.user.d.ts +1 -1
  129. package/lib/auth/router/auth.router.service.d.ts +2 -2
  130. package/lib/auth/router/provider/uirouter/redirect.d.ts +2 -2
  131. package/lib/context/context.directive.d.ts +2 -2
  132. package/lib/context/context.service.d.ts +2 -2
  133. package/lib/filter/filter.content.d.ts +1 -1
  134. package/lib/injection/injection.context.d.ts +2 -2
  135. package/lib/injection/injection.context.forward.directive.d.ts +1 -1
  136. package/lib/injection/injection.d.ts +2 -2
  137. package/lib/router/anchor/clickable.d.ts +1 -1
  138. package/lib/router/router/provider/angular/angular.router.service.d.ts +2 -2
  139. package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +2 -2
  140. package/lib/router/router/service/router.go.d.ts +3 -3
  141. package/lib/router/router/service/router.service.d.ts +3 -3
  142. package/lib/router/router/transition/transition.rxjs.d.ts +2 -2
  143. package/lib/util/view.d.ts +2 -2
  144. package/lib/view/if.directive.d.ts +4 -4
  145. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { LoadingStateType } from "@dereekb/rxjs";
1
+ import { LoadingStateType } from '@dereekb/rxjs';
2
2
  /**
3
3
  * Used by ActionContextState to denote what state the action is in.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { Destroyable } from "@dereekb/util";
2
- import { DbxActionContextStoreSourceInstance } from "./action.store.source";
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 "@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";
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 "@ngrx/store";
2
- import { DbxAppAuthFullState } from "./state/state";
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.
@@ -1,4 +1,4 @@
1
- import { Maybe } from "@dereekb/util";
1
+ import { Maybe } from '@dereekb/util';
2
2
  /**
3
3
  * An application user state.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { DbxRouterService } from "../../router/router/service/router.service";
2
- import { DbxAppAuthRoutes } from "./auth.router";
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 "@dereekb/util";
2
- import { AuthTransitionRedirectTargetGetter, AuthTransitionRedirectTargetOrGetter } from "./hook";
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 "@angular/core";
2
- import { DbxAppContextService } from "./context.service";
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 "@ngrx/store";
1
+ import { Store } from '@ngrx/store';
2
2
  import { DbxAppContextState } from './context';
3
- import { DbxAppContextFullState } from "./state/state";
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,4 +1,4 @@
1
- import { FilterSource, FilterSourceConnector } from "@dereekb/rxjs";
1
+ import { FilterSource, FilterSourceConnector } from '@dereekb/rxjs';
2
2
  import { Provider, Type } from '@angular/core';
3
3
  /**
4
4
  * Angular provider convenience function for a FilterSource.
@@ -1,5 +1,5 @@
1
- import { Provider, Type } from "@angular/core";
2
- import { DbxInjectionComponentConfig } from "./injection";
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 "./injection.context";
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 "@angular/core";
2
- import { Maybe } from "@dereekb/util";
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,4 +1,4 @@
1
- import { Maybe } from "@dereekb/util";
1
+ import { Maybe } from '@dereekb/util';
2
2
  export interface ClickableFunction {
3
3
  onClick?: (event?: Maybe<MouseEvent>) => void;
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { DbxRouterService, DbxRouterTransitionService } from '../../service';
3
- import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from "../../../segue";
4
- import { DbxRouterTransitionEvent } from "../../transition/transition";
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 "../../../segue";
2
+ import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from '../../../segue';
3
3
  import { StateService, UIRouterGlobals, TransitionOptions, TransitionService } from '@uirouter/core';
4
- import { OnDestroy } from "@angular/core";
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 "@dereekb/rxjs";
2
- import { SegueRef, SegueRefOrSegueRefRouterLink } from "../../segue";
3
- import { DbxRouterService } from "./router.service";
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 "@dereekb/rxjs";
2
- import { Observable } from "rxjs";
3
- import { SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams } from "../../segue";
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 "rxjs";
2
- import { DbxRouterTransitionEvent, DbxRouterTransitionEventType } from "./transition";
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
  *
@@ -1,6 +1,6 @@
1
1
  import { MonoTypeOperatorFunction } from 'rxjs';
2
- import { ChangeDetectorRef, ElementRef } from "@angular/core";
3
- import { Maybe } from "@dereekb/util";
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 "@angular/core";
2
- import { Observable } from "rxjs";
3
- import { AbstractSubscriptionDirective } from "../subscription";
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 abstract show$: Observable<boolean>;
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.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.0",
8
- "@dereekb/rxjs": "5.0.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.0",
15
+ "@dereekb/date": "5.0.1",
16
16
  "@angular/router": "^13.0.0"
17
17
  },
18
18
  "dependencies": {