@dereekb/dbx-core 4.1.0 → 5.0.0

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 (125) 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 +2 -2
  4. package/esm2020/lib/action/action.reference.mjs +1 -1
  5. package/esm2020/lib/action/action.store.mjs +3 -3
  6. package/esm2020/lib/action/action.store.source.mjs +5 -5
  7. package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +3 -6
  8. package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +3 -6
  9. package/esm2020/lib/action/directive/context/action.directive.mjs +4 -4
  10. package/esm2020/lib/action/directive/context/action.source.directive.mjs +5 -6
  11. package/esm2020/lib/action/directive/map/action.map.directive.mjs +3 -4
  12. package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +5 -6
  13. package/esm2020/lib/action/directive/map/action.map.mjs +1 -1
  14. package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +2 -3
  15. package/esm2020/lib/action/directive/state/action.handler.directive.mjs +2 -3
  16. package/esm2020/lib/action/directive/state/action.success.directive.mjs +1 -1
  17. package/esm2020/lib/action/directive/state/action.success.handler.directive.mjs +2 -3
  18. package/esm2020/lib/action/directive/state/action.value.directive.mjs +2 -3
  19. package/esm2020/lib/action/directive/state/action.value.stream.directive.mjs +4 -5
  20. package/esm2020/lib/action/directive/state/action.value.trigger.directive.mjs +2 -3
  21. package/esm2020/lib/action/directive/state/action.value.trigger.instance.mjs +4 -3
  22. package/esm2020/lib/action/directive/state/action.working.component.mjs +1 -1
  23. package/esm2020/lib/auth/auth.role.any.directive.mjs +1 -1
  24. package/esm2020/lib/auth/auth.role.has.directive.mjs +1 -1
  25. package/esm2020/lib/auth/router/provider/uirouter/hook.mjs +3 -2
  26. package/esm2020/lib/auth/router/provider/uirouter/redirect.mjs +1 -1
  27. package/esm2020/lib/auth/service/auth.service.rxjs.mjs +3 -3
  28. package/esm2020/lib/auth/state/reducer/user.reducer.mjs +1 -1
  29. package/esm2020/lib/button/action/action.button.directive.mjs +1 -1
  30. package/esm2020/lib/button/button.directive.mjs +5 -6
  31. package/esm2020/lib/button/button.mjs +2 -2
  32. package/esm2020/lib/button/router/button.segue.directive.mjs +2 -3
  33. package/esm2020/lib/context/state/effect/index.mjs +1 -1
  34. package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +3 -2
  35. package/esm2020/lib/filter/filter.connector.directive.mjs +6 -6
  36. package/esm2020/lib/filter/filter.content.mjs +3 -3
  37. package/esm2020/lib/filter/filter.map.connector.directive.mjs +6 -6
  38. package/esm2020/lib/filter/filter.map.instance.directive.mjs +2 -3
  39. package/esm2020/lib/filter/filter.map.source.directive.mjs +4 -4
  40. package/esm2020/lib/filter/filter.source.directive.mjs +4 -4
  41. package/esm2020/lib/injection/injection.context.directive.mjs +4 -4
  42. package/esm2020/lib/injection/injection.context.forward.directive.mjs +1 -1
  43. package/esm2020/lib/injection/injection.context.mjs +2 -2
  44. package/esm2020/lib/injection/injection.directive.mjs +1 -1
  45. package/esm2020/lib/injection/injection.instance.mjs +3 -4
  46. package/esm2020/lib/injection/injection.mjs +1 -1
  47. package/esm2020/lib/ngrx/store.lockset.mjs +1 -1
  48. package/esm2020/lib/pipe/date/datedistance.pipe.mjs +4 -7
  49. package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +1 -1
  50. package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +4 -4
  51. package/esm2020/lib/pipe/date/timedistance.pipe.mjs +1 -1
  52. package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +1 -1
  53. package/esm2020/lib/pipe/misc/prettyjson.pipe.mjs +1 -1
  54. package/esm2020/lib/router/anchor/anchor.directive.mjs +3 -4
  55. package/esm2020/lib/router/anchor/anchor.mjs +2 -2
  56. package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +2 -2
  57. package/esm2020/lib/router/router/provider/uirouter/index.mjs +1 -2
  58. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +7 -14
  59. package/esm2020/lib/router/router/service/router.go.mjs +1 -1
  60. package/esm2020/lib/router/router/transition/transition.directive.mjs +1 -1
  61. package/esm2020/lib/router/segue.mjs +15 -3
  62. package/esm2020/lib/storage/storage.accessor.mjs +1 -1
  63. package/esm2020/lib/storage/storage.accessor.simple.mjs +2 -2
  64. package/esm2020/lib/storage/storage.accessor.string.mjs +4 -5
  65. package/esm2020/lib/subscription/subscription.directive.mjs +1 -1
  66. package/esm2020/lib/util/view.mjs +2 -2
  67. package/esm2020/lib/view/if.directive.mjs +1 -1
  68. package/fesm2015/dereekb-dbx-core.mjs +126 -164
  69. package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
  70. package/fesm2020/dereekb-dbx-core.mjs +126 -163
  71. package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
  72. package/lib/action/action.handler.d.ts +8 -4
  73. package/lib/action/action.holder.d.ts +3 -3
  74. package/lib/action/action.machine.d.ts +2 -2
  75. package/lib/action/action.reference.d.ts +1 -1
  76. package/lib/action/action.store.d.ts +3 -3
  77. package/lib/action/action.store.source.d.ts +9 -10
  78. package/lib/action/directive/auto/action.autotrigger.directive.d.ts +4 -4
  79. package/lib/action/directive/context/action.directive.d.ts +2 -2
  80. package/lib/action/directive/context/action.source.directive.d.ts +1 -1
  81. package/lib/action/directive/map/action.map.d.ts +1 -1
  82. package/lib/action/directive/map/action.map.directive.d.ts +5 -6
  83. package/lib/action/directive/map/action.map.key.directive.d.ts +1 -1
  84. package/lib/action/directive/state/action.handler.directive.d.ts +5 -5
  85. package/lib/action/directive/state/action.success.directive.d.ts +1 -1
  86. package/lib/action/directive/state/action.value.directive.d.ts +2 -2
  87. package/lib/action/directive/state/action.value.stream.directive.d.ts +2 -3
  88. package/lib/action/directive/state/action.value.trigger.directive.d.ts +4 -4
  89. package/lib/action/directive/state/action.value.trigger.instance.d.ts +5 -5
  90. package/lib/action/directive/state/action.working.component.d.ts +1 -1
  91. package/lib/auth/auth.role.any.directive.d.ts +2 -3
  92. package/lib/auth/auth.role.has.directive.d.ts +2 -3
  93. package/lib/auth/router/provider/uirouter/hook.d.ts +2 -1
  94. package/lib/button/button.d.ts +2 -2
  95. package/lib/button/router/button.segue.directive.d.ts +1 -1
  96. package/lib/context/state/effect/index.d.ts +1 -1
  97. package/lib/filter/filter.abstract.connector.directive.d.ts +2 -3
  98. package/lib/filter/filter.connector.directive.d.ts +1 -1
  99. package/lib/filter/filter.content.d.ts +2 -2
  100. package/lib/filter/filter.map.instance.directive.d.ts +1 -1
  101. package/lib/injection/injection.context.d.ts +3 -3
  102. package/lib/injection/injection.context.directive.d.ts +3 -3
  103. package/lib/injection/injection.context.forward.directive.d.ts +1 -1
  104. package/lib/injection/injection.d.ts +5 -5
  105. package/lib/injection/injection.directive.d.ts +2 -2
  106. package/lib/pipe/date/datedistance.pipe.d.ts +1 -1
  107. package/lib/pipe/date/datefromtoformat.pipe.d.ts +1 -1
  108. package/lib/pipe/date/tojsdate.pipe.d.ts +1 -0
  109. package/lib/pipe/misc/prettyjson.pipe.d.ts +2 -2
  110. package/lib/router/anchor/anchor.d.ts +1 -1
  111. package/lib/router/anchor/anchor.directive.d.ts +0 -1
  112. package/lib/router/router/provider/uirouter/index.d.ts +0 -1
  113. package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +0 -1
  114. package/lib/router/router/service/router.go.d.ts +2 -2
  115. package/lib/router/segue.d.ts +13 -10
  116. package/lib/storage/storage.accessor.d.ts +1 -1
  117. package/lib/storage/storage.accessor.simple.d.ts +8 -5
  118. package/lib/storage/storage.accessor.string.d.ts +1 -1
  119. package/lib/util/view.d.ts +1 -1
  120. package/lib/view/if.directive.d.ts +3 -3
  121. package/package.json +5 -5
  122. package/esm2020/lib/router/router/provider/uirouter/util/future.mjs +0 -38
  123. package/esm2020/lib/router/router/provider/uirouter/util/index.mjs +0 -2
  124. package/lib/router/router/provider/uirouter/util/future.d.ts +0 -1
  125. package/lib/router/router/provider/uirouter/util/index.d.ts +0 -1
@@ -11,8 +11,8 @@ export declare abstract class AbstractDbxInjectionDirective<T> implements OnInit
11
11
  constructor(_injector: Injector);
12
12
  ngOnInit(): void;
13
13
  ngOnDestroy(): void;
14
- setConfig(config: Maybe<DbxInjectionComponentConfig>): void;
15
- setTemplate(template: Maybe<DbxInjectionTemplateConfig>): void;
14
+ setConfig(config: Maybe<DbxInjectionComponentConfig<T>>): void;
15
+ setTemplate(template: Maybe<DbxInjectionTemplateConfig<T>>): void;
16
16
  setContent(content: Maybe<ViewContainerRef>): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxInjectionDirective<any>, never>;
18
18
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxInjectionDirective<any>, never, never, {}, {}, never>;
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { DateOrDateString, Maybe } from '@dereekb/util';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DateDistancePipe implements PipeTransform {
5
- transform(input: Maybe<DateOrDateString>, to?: Maybe<Date>, unavailable?: string): string;
5
+ transform(input: Maybe<DateOrDateString>, inputTo?: Maybe<Date>, unavailable?: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DateDistancePipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<DateDistancePipe, "dateDistance">;
8
8
  }
@@ -6,9 +6,9 @@ import * as i0 from "@angular/core";
6
6
  */
7
7
  export declare class DateFromToTimePipe implements PipeTransform {
8
8
  private locale;
9
+ static formatFromTo(input: Maybe<DateOrDateString>, format: string, minutes: number, locale: string): Maybe<string>;
9
10
  constructor(locale: string);
10
11
  transform(input: Maybe<DateOrDateString>, format: string, minutes: number): Maybe<string>;
11
- static formatFromTo(input: Maybe<DateOrDateString>, format: string, minutes: number, locale: string): Maybe<string>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DateFromToTimePipe, never>;
13
13
  static ɵpipe: i0.ɵɵPipeDeclaration<DateFromToTimePipe, "dateFromPlusTo">;
14
14
  }
@@ -2,6 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { DateOrDateString, Maybe } from '@dereekb/util';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ToJsDatePipe implements PipeTransform {
5
+ static toJsDate(input: DateOrDateString): Date;
5
6
  static toJsDate(input: Maybe<DateOrDateString>): Maybe<Date>;
6
7
  transform(input: Maybe<DateOrDateString>): Maybe<Date>;
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ToJsDatePipe, never>;
@@ -2,8 +2,8 @@ import { PipeTransform } from '@angular/core';
2
2
  import { Maybe } from '@dereekb/util';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PrettyJsonPipe implements PipeTransform {
5
- static toPrettyJson(input: Maybe<any>, spacing?: number): Maybe<string>;
6
- transform(input: Maybe<any>, spacing?: number): Maybe<string>;
5
+ static toPrettyJson(input: Maybe<unknown>, spacing?: number): Maybe<string>;
6
+ transform(input: Maybe<unknown>, spacing?: number): Maybe<string>;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<PrettyJsonPipe, never>;
8
8
  static ɵpipe: i0.ɵɵPipeDeclaration<PrettyJsonPipe, "prettyjson">;
9
9
  }
@@ -55,4 +55,4 @@ export declare abstract class DbxAnchor<T extends ClickableAnchor = ClickableAnc
55
55
  abstract anchor: Maybe<T>;
56
56
  abstract type$: Observable<AnchorType>;
57
57
  }
58
- export declare function ProvideDbxAnchor<S extends DbxAnchor>(sourceType: Type<S>): Provider[];
58
+ export declare function provideDbxAnchor<S extends DbxAnchor>(sourceType: Type<S>): Provider[];
@@ -13,7 +13,6 @@ export declare class AbstractDbxAnchorDirective<T extends ClickableAnchor = Clic
13
13
  readonly disabled$: Observable<Maybe<boolean>>;
14
14
  readonly anchor$: Observable<Maybe<T>>;
15
15
  readonly type$: Observable<AnchorType>;
16
- constructor();
17
16
  ngOnDestroy(): void;
18
17
  /**
19
18
  * Convenience input to create an Anchor from the input SegueRef.
@@ -1,3 +1,2 @@
1
- export * from './util';
2
1
  export * from './uirouter.router.service';
3
2
  export * from './uirouter.router.service.module';
@@ -24,4 +24,3 @@ export declare class DbxUIRouterService implements DbxRouterService, DbxRouterTr
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxUIRouterService, never>;
25
25
  static ɵprov: i0.ɵɵInjectableDeclaration<DbxUIRouterService>;
26
26
  }
27
- export declare function readSegueRefString(input: SegueRefOrSegueRefRouterLink | string): string;
@@ -1,5 +1,5 @@
1
1
  import { ObservableOrValue } from "@dereekb/rxjs";
2
- import { SegueRef } from "../../segue";
2
+ import { SegueRef, SegueRefOrSegueRefRouterLink } from "../../segue";
3
3
  import { DbxRouterService } from "./router.service";
4
4
  /**
5
5
  * Function that will perform navigation with the input route.
@@ -11,4 +11,4 @@ export declare type GoWithRouter = (route: ObservableOrValue<SegueRef>) => Promi
11
11
  * @param dbxRouterService
12
12
  * @returns
13
13
  */
14
- export declare function goWithRouter(dbxRouterService: DbxRouterService): (route: ObservableOrValue<SegueRef>) => Promise<boolean>;
14
+ export declare function goWithRouter(dbxRouterService: DbxRouterService): (route: ObservableOrValue<SegueRefOrSegueRefRouterLink>) => Promise<boolean>;
@@ -1,10 +1,10 @@
1
- import { ArrayOrValue } from '@dereekb/util';
1
+ import { ArrayOrValue, Maybe } from '@dereekb/util';
2
2
  import { Observable } from 'rxjs';
3
- export declare type SegueRefRouterLink = string | ArrayOrValue<any>;
3
+ export declare type SegueRefRouterLink = string | ArrayOrValue<object>;
4
4
  export interface SegueRefRawSegueParams {
5
- [key: string]: any;
5
+ [key: string]: unknown;
6
6
  }
7
- export interface SegueRefOptions<O = any> {
7
+ export interface SegueRefOptions<O = object> {
8
8
  /**
9
9
  * Raw parameters
10
10
  */
@@ -19,7 +19,7 @@ export interface SegueRefOptions<O = any> {
19
19
  /**
20
20
  * Represents a segue ref
21
21
  */
22
- export interface SegueRef<O = any> extends SegueRefOptions<O> {
22
+ export interface SegueRef<O = object> extends SegueRefOptions<O> {
23
23
  /**
24
24
  * Ref path value.
25
25
  */
@@ -28,8 +28,11 @@ export interface SegueRef<O = any> extends SegueRefOptions<O> {
28
28
  /**
29
29
  * A SegueRef object or a different router link representation.
30
30
  */
31
- export declare type SegueRefOrSegueRefRouterLink<O = any> = SegueRef<O> | SegueRefRouterLink;
32
- export declare function isSegueRef<O = any>(input: SegueRefOrSegueRefRouterLink<O>): input is SegueRef<O>;
33
- export declare function asSegueRef<O = any>(input: SegueRefOrSegueRefRouterLink<O>): SegueRef<O>;
34
- export declare function refStringToSegueRef<O = any>(ref: string, options?: SegueRefOptions<O>): SegueRef<O>;
35
- export declare function mapRefStringObsToSegueRefObs<O = any>(obs: Observable<string>, options?: SegueRefOptions<O>): Observable<SegueRef<O>>;
31
+ export declare type SegueRefOrSegueRefRouterLink<O = object> = SegueRef<O> | SegueRefRouterLink;
32
+ export declare function isSegueRef<O = object>(input: Maybe<SegueRefOrSegueRefRouterLink<O>>): input is SegueRef<O>;
33
+ export declare function asSegueRef<O = object>(input: SegueRefOrSegueRefRouterLink<O>): SegueRef<O>;
34
+ export declare function asSegueRef<O = object>(input: Maybe<SegueRefOrSegueRefRouterLink<O>>): Maybe<SegueRef<O>>;
35
+ export declare function asSegueRefString<O = object>(input: SegueRefOrSegueRefRouterLink<O> | string): string;
36
+ export declare function asSegueRefString<O = object>(input: Maybe<SegueRefOrSegueRefRouterLink<O> | string>): Maybe<string>;
37
+ export declare function refStringToSegueRef<O = object>(ref: string, options?: SegueRefOptions<O>): SegueRef<O>;
38
+ export declare function mapRefStringObsToSegueRefObs<O = object>(obs: Observable<string>, options?: SegueRefOptions<O>): Observable<SegueRef<O>>;
@@ -10,7 +10,7 @@ export declare abstract class LimitedStorageAccessor<T> {
10
10
  abstract get(key: string): Observable<Maybe<T>>;
11
11
  abstract set(key: string, value: Maybe<T>): Observable<void>;
12
12
  abstract remove(key: string): Observable<void>;
13
- abstract clear(): Observable<{}>;
13
+ abstract clear(): Observable<object>;
14
14
  }
15
15
  /**
16
16
  * LimitedStorageAccessor extension that has knowledge of all stored keys.
@@ -27,7 +27,7 @@ export declare class WrapperSimpleStorageAccessorDelegate<T> implements SimpleSt
27
27
  get(key: string): Observable<Maybe<StoredDataString>>;
28
28
  set(key: string, value: StoredDataString): Observable<void>;
29
29
  remove(key: string): Observable<void>;
30
- clear(): Observable<{}>;
30
+ clear(): Observable<object>;
31
31
  all(prefix?: string): Observable<string[]>;
32
32
  allKeys(prefix?: string): Observable<string[]>;
33
33
  stringifyValue(value: T): StoredDataString;
@@ -47,22 +47,24 @@ export interface SimpleStorageAccessorConfig {
47
47
  */
48
48
  readonly expiresIn?: number;
49
49
  }
50
+ interface ConfiguredSimpleStorageAccessorConfig extends SimpleStorageAccessorConfig {
51
+ readonly prefixSplitter: string;
52
+ readonly fullPrefix: string;
53
+ }
50
54
  /**
51
55
  * LimitedStorageAccessor implementation that uses a Delegate
52
56
  */
53
57
  export declare class SimpleStorageAccessor<T> implements StorageAccessor<T> {
54
58
  private readonly _delegate;
55
59
  static readonly PREFIX_SPLITTER = "::";
56
- protected readonly _config: SimpleStorageAccessorConfig & {
57
- fullPrefix: string;
58
- };
60
+ protected readonly _config: ConfiguredSimpleStorageAccessorConfig;
59
61
  constructor(_delegate: SimpleStorageAccessorDelegate<T>, config: SimpleStorageAccessorConfig);
60
62
  get(inputKey: string): Observable<T>;
61
63
  set(inputKey: string, inputValue: T): Observable<void>;
62
64
  remove(key: string): Observable<void>;
63
65
  all(): Observable<T[]>;
64
66
  allKeys(): Observable<string[]>;
65
- clear(): Observable<{}>;
67
+ clear(): Observable<object>;
66
68
  protected readStoredData(storedDataString: StoredDataString): ReadStoredData<T>;
67
69
  protected buildStoredData(value: T): StoredData;
68
70
  protected isExpiredStoredData(storeData: StoredData): boolean;
@@ -73,3 +75,4 @@ export declare class SimpleStorageAccessor<T> implements StorageAccessor<T> {
73
75
  protected decodeStorageKey(storageKey: StoredDataStorageKey): string;
74
76
  protected stringifyValue(value: T): string;
75
77
  }
78
+ export {};
@@ -1,6 +1,6 @@
1
+ import { StoredDataString, FullStorageObject, Maybe } from '@dereekb/util';
1
2
  import { Observable } from 'rxjs';
2
3
  import { StorageAccessor } from './storage.accessor';
3
- import { StoredDataString, FullStorageObject, Maybe } from '@dereekb/util';
4
4
  /**
5
5
  * Simple StorageAccessor implementation that wraps a FullStorageObject.
6
6
  */
@@ -26,7 +26,7 @@ export declare function safeMarkForCheck(cdRef: ChangeDetectorRef): void;
26
26
  *
27
27
  * @param cdRef
28
28
  */
29
- export declare function safeUseCdRef(cdRef: ChangeDetectorRef, use: () => void): void;
29
+ export declare function safeUseCdRef(cdRef: ChangeDetectorRef, use: (cdRef: ChangeDetectorRef) => void): void;
30
30
  /**
31
31
  * Used to check an injected ElementRef that wraps an ng-content injection point whether or not any content was injected,
32
32
  * or more specifically if the parent component passed any target content to the child. This will still return true if
@@ -1,18 +1,18 @@
1
- import { TemplateRef, ViewContainerRef } from "@angular/core";
1
+ import { OnInit, TemplateRef, ViewContainerRef } from "@angular/core";
2
2
  import { Observable } from "rxjs";
3
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.
7
7
  */
8
- export declare abstract class AbstractIfDirective extends AbstractSubscriptionDirective {
8
+ export declare abstract class AbstractIfDirective extends AbstractSubscriptionDirective implements OnInit {
9
9
  private templateRef;
10
10
  private viewContainer;
11
11
  /**
12
12
  * Observable that is watched for showing/hiding.
13
13
  */
14
14
  readonly abstract show$: Observable<boolean>;
15
- constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
15
+ constructor(templateRef: TemplateRef<unknown>, viewContainer: ViewContainerRef);
16
16
  ngOnInit(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractIfDirective, never>;
18
18
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractIfDirective, never, never, {}, {}, never>;
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-core",
3
- "version": "4.1.0",
3
+ "version": "5.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",
7
- "@dereekb/rxjs": "4.1.0",
7
+ "@dereekb/util": "5.0.0",
8
+ "@dereekb/rxjs": "5.0.0",
8
9
  "@ngrx/component-store": "^13.0.2",
9
10
  "@angular/platform-browser": "^13.0.0",
10
11
  "@ngrx/effects": "^13.0.2",
11
12
  "@ngrx/store": "^13.0.2",
12
13
  "@uirouter/core": "^6.0.8",
13
14
  "date-fns": "^2.28.0",
14
- "@dereekb/date": "4.1.0",
15
- "@angular/router": "^13.0.0",
16
- "@uirouter/angular": "^9.1.0"
15
+ "@dereekb/date": "5.0.0",
16
+ "@angular/router": "^13.0.0"
17
17
  },
18
18
  "dependencies": {
19
19
  "tslib": "^2.3.0"
@@ -1,38 +0,0 @@
1
- import { mergeArrayIntoArray, objectFlatMergeMatrix } from '@dereekb/util';
2
- /**
3
- * Used for creating a future state that also captures any children urls.
4
- *
5
- * This is important for cases, such as /, where multiple urls should target a specific future so that
6
- * it can load that module and continue route resolution for the child url.
7
- *
8
- * For example:
9
- * - the urls /a and /b are declared in a lazy loaded module that is for /. This presents a problem, since
10
- * the root module does not know how to handle /a or /b, since they are children of /. We use
11
- * futureStateWithChildrenUrls() to build a future state with the child urls so the parent routing knows where
12
- * to send /a or /b.
13
- *
14
- * @param state
15
- * @param urls
16
- * @returns
17
- *
18
- * @deprecated not how this feature works. Consider adding it to ui-router later then re-export this function.
19
- */
20
- function futureStateWithChildrenUrls(state, urls) {
21
- const states = [state];
22
- mergeArrayIntoArray(states, expandFutureStateWithUrls(state, urls));
23
- return states;
24
- }
25
- /**
26
- * Copies the input state and replaces the url in each of them with the passed urls.
27
- *
28
- * @param state
29
- * @param urls
30
- * @returns
31
- *
32
- * @deprecated
33
- */
34
- function expandFutureStateWithUrls(state, urls) {
35
- const childrenStates = objectFlatMergeMatrix(state, urls.map(url => ({ url })));
36
- return childrenStates;
37
- }
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnV0dXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZGJ4LWNvcmUvc3JjL2xpYi9yb3V0ZXIvcm91dGVyL3Byb3ZpZGVyL3Vpcm91dGVyL3V0aWwvZnV0dXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUczRTs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FpQkc7QUFDSCxTQUFTLDJCQUEyQixDQUFDLEtBQTBCLEVBQUUsSUFBYztJQUM3RSxNQUFNLE1BQU0sR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ3ZCLG1CQUFtQixDQUFDLE1BQU0sRUFBRSx5QkFBeUIsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUNwRSxPQUFPLE1BQU0sQ0FBQztBQUNoQixDQUFDO0FBRUQ7Ozs7Ozs7O0dBUUc7QUFDSCxTQUFTLHlCQUF5QixDQUFDLEtBQTBCLEVBQUUsSUFBYztJQUMzRSxNQUFNLGNBQWMsR0FBRyxxQkFBcUIsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNoRixPQUFPLGNBQWMsQ0FBQztBQUN4QixDQUFDIiwic291cmNlc0Nvbn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ourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtY29yZS9zcmMvbGliL3JvdXRlci9yb3V0ZXIvcHJvdmlkZXIvdWlyb3V0ZXIvdXRpbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFVBQVUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZnV0dXJlJztcbiJdfQ==
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './future';