@dereekb/dbx-core 12.0.4 → 12.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/esm2022/lib/action/directive/map/action.map.key.directive.mjs +9 -19
  2. package/esm2022/lib/action/directive/map/action.map.source.directive.mjs +17 -18
  3. package/esm2022/lib/action/directive/state/action.disabled.directive.mjs +10 -19
  4. package/esm2022/lib/action/directive/state/action.disableonsuccess.directive.mjs +12 -20
  5. package/esm2022/lib/action/directive/state/action.enforce.modified.directive.mjs +9 -17
  6. package/esm2022/lib/action/directive/state/action.presuccess.directive.mjs +8 -10
  7. package/esm2022/lib/action/directive/state/action.success.directive.mjs +8 -10
  8. package/esm2022/lib/action/directive/state/action.working.directive.mjs +10 -11
  9. package/esm2022/lib/auth/auth.role.any.directive.mjs +6 -12
  10. package/esm2022/lib/auth/auth.role.has.directive.mjs +6 -12
  11. package/esm2022/lib/auth/auth.role.not.directive.mjs +6 -12
  12. package/esm2022/lib/button/router/button.segue.directive.mjs +14 -28
  13. package/esm2022/lib/context/context.directive.mjs +11 -26
  14. package/esm2022/lib/injection/injection.context.directive.mjs +31 -27
  15. package/esm2022/lib/injection/injection.instance.mjs +3 -3
  16. package/esm2022/lib/router/anchor/anchor.directive.mjs +41 -51
  17. package/esm2022/lib/router/anchor/anchor.mjs +1 -1
  18. package/fesm2022/dereekb-dbx-core.mjs +164 -254
  19. package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
  20. package/lib/action/directive/map/action.map.key.directive.d.ts +4 -8
  21. package/lib/action/directive/map/action.map.source.directive.d.ts +5 -4
  22. package/lib/action/directive/state/action.disabled.directive.d.ts +5 -7
  23. package/lib/action/directive/state/action.disableonsuccess.directive.d.ts +6 -8
  24. package/lib/action/directive/state/action.enforce.modified.directive.d.ts +3 -4
  25. package/lib/action/directive/state/action.presuccess.directive.d.ts +3 -2
  26. package/lib/action/directive/state/action.success.directive.d.ts +3 -2
  27. package/lib/action/directive/state/action.working.directive.d.ts +4 -4
  28. package/lib/auth/auth.role.any.directive.d.ts +3 -4
  29. package/lib/auth/auth.role.has.directive.d.ts +3 -4
  30. package/lib/auth/auth.role.not.directive.d.ts +3 -4
  31. package/lib/button/router/button.segue.directive.d.ts +4 -9
  32. package/lib/context/context.directive.d.ts +4 -10
  33. package/lib/injection/injection.context.directive.d.ts +4 -2
  34. package/lib/router/anchor/anchor.d.ts +0 -3
  35. package/lib/router/anchor/anchor.directive.d.ts +15 -23
  36. package/package.json +1 -1
@@ -1,18 +1,14 @@
1
- import { OnDestroy } from '@angular/core';
2
1
  import { type Maybe } from '@dereekb/util';
3
- import { ActionKey } from './action.map';
4
2
  import { SecondaryActionContextStoreSource } from '../../action.store.source';
5
3
  import * as i0 from "@angular/core";
6
4
  /**
7
5
  * Directive that provides a ActionContextStoreSource using the input key and DbxActionContextMapDirective.
8
6
  */
9
- export declare class DbxActionFromMapDirective implements SecondaryActionContextStoreSource, OnDestroy {
7
+ export declare class DbxActionFromMapDirective implements SecondaryActionContextStoreSource {
10
8
  private readonly _actionContextStoreSourceMap;
11
- private readonly _key;
9
+ readonly key: import("@angular/core").InputSignal<Maybe<string>>;
10
+ readonly key$: import("rxjs").Observable<Maybe<string>>;
12
11
  readonly store$: import("rxjs").Observable<import("@dereekb/dbx-core").ActionContextStore<any, any>>;
13
- ngOnDestroy(): void;
14
- get key(): Maybe<ActionKey>;
15
- set key(key: Maybe<ActionKey>);
16
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionFromMapDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFromMapDirective, "[dbxActionFromMap]", never, { "key": { "alias": "dbxActionFromMap"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFromMapDirective, "[dbxActionFromMap]", never, { "key": { "alias": "dbxActionFromMap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
14
  }
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy } from '@angular/core';
2
+ import { type Maybe } from '@dereekb/util';
2
3
  import { ActionContextStoreSource } from '../../action.store.source';
3
- import { ActionKey } from './action.map';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Used to communicate with an dbxActionMap and set the ActionContextStore to the store based on the key.
@@ -8,11 +8,12 @@ import * as i0 from "@angular/core";
8
8
  export declare class DbxActionMapSourceDirective implements OnDestroy {
9
9
  private readonly _actionContextStoreSourceMap;
10
10
  readonly source: ActionContextStoreSource<any, any>;
11
- private _key;
11
+ readonly key: import("@angular/core").InputSignal<Maybe<string>>;
12
+ private _currentKey;
13
+ protected readonly _keyEffect: import("@angular/core").EffectRef;
12
14
  ngOnDestroy(): void;
13
- set key(key: ActionKey);
14
15
  private _addToStore;
15
16
  private _removeFromToStore;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionMapSourceDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionMapSourceDirective, "[dbxActionMapSource]", never, { "key": { "alias": "dbxActionMapSource"; "required": false; }; }, {}, never, never, true, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionMapSourceDirective, "[dbxActionMapSource]", never, { "key": { "alias": "dbxActionMapSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
19
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
1
+ import { OnDestroy } from '@angular/core';
2
2
  import { type Maybe } from '@dereekb/util';
3
3
  import { AbstractSubscriptionDirective } from '../../../subscription';
4
4
  import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
@@ -7,14 +7,12 @@ export declare const APP_ACTION_DISABLED_DIRECTIVE_KEY = "dbx_action_disabled";
7
7
  /**
8
8
  * Directive that allows disabling an action using the inputs.
9
9
  */
10
- export declare class DbxActionDisabledDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
10
+ export declare class DbxActionDisabledDirective<T, O> extends AbstractSubscriptionDirective implements OnDestroy {
11
11
  readonly source: DbxActionContextStoreSourceInstance<T, O>;
12
- private readonly _disabled;
12
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
13
13
  readonly disabled$: import("rxjs").Observable<boolean>;
14
- ngOnInit(): void;
14
+ constructor();
15
15
  ngOnDestroy(): void;
16
- get disabled(): boolean;
17
- set disabled(disabled: Maybe<boolean | ''>);
18
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledDirective<any, any>, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledDirective<any, any>, "[dbxActionDisabled]", never, { "disabled": { "alias": "dbxActionDisabled"; "required": false; }; }, {}, never, never, true, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledDirective<any, any>, "[dbxActionDisabled]", never, { "disabled": { "alias": "dbxActionDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
18
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
1
+ import { OnDestroy } from '@angular/core';
2
2
  import { type Maybe } from '@dereekb/util';
3
3
  import { AbstractSubscriptionDirective } from '../../../subscription';
4
4
  import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
@@ -7,14 +7,12 @@ export declare const APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY = "dbx_action_
7
7
  /**
8
8
  * Directive that will disable the action after the action completes successfully.
9
9
  */
10
- export declare class DbxActionDisabledOnSuccessDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
10
+ export declare class DbxActionDisabledOnSuccessDirective<T, O> extends AbstractSubscriptionDirective implements OnDestroy {
11
11
  readonly source: DbxActionContextStoreSourceInstance<T, O>;
12
- private readonly _disableOnSuccess;
13
- readonly disableOnSuccess$: import("rxjs").Observable<boolean>;
14
- ngOnInit(): void;
12
+ readonly disabledOnSuccess: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
13
+ readonly disabledOnSuccess$: import("rxjs").Observable<boolean>;
14
+ constructor();
15
15
  ngOnDestroy(): void;
16
- get disabled(): boolean;
17
- set disabled(disabled: Maybe<boolean | ''>);
18
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, "[dbxActionDisabledOnSuccess]", never, { "disabled": { "alias": "dbxActionDisabledOnSuccess"; "required": false; }; }, {}, never, never, true, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, "[dbxActionDisabledOnSuccess]", never, { "disabledOnSuccess": { "alias": "dbxActionDisabledOnSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
18
  }
@@ -9,11 +9,10 @@ export declare const APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY = "dbx_action_enf
9
9
  */
10
10
  export declare class DbxActionEnforceModifiedDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
11
11
  readonly source: DbxActionContextStoreSourceInstance<any, any>;
12
- private readonly _enabled;
12
+ readonly enabled: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
13
+ readonly enabled$: import("rxjs").Observable<boolean>;
13
14
  ngOnInit(): void;
14
15
  ngOnDestroy(): void;
15
- get enabled(): boolean;
16
- set enabled(enabled: Maybe<boolean | ''>);
17
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionEnforceModifiedDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionEnforceModifiedDirective, "[dbxActionEnforceModified]", never, { "enabled": { "alias": "dbxActionEnforceModified"; "required": false; }; }, {}, never, never, true, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionEnforceModifiedDirective, "[dbxActionEnforceModified]", never, { "enabled": { "alias": "dbxActionEnforceModified"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
18
  }
@@ -7,8 +7,9 @@ import * as i0 from "@angular/core";
7
7
  * Can be configured to hide for a temporary period.
8
8
  */
9
9
  export declare class DbxActionPreSuccessDirective extends AbstractIfDirective {
10
- hideFor?: Maybe<number> | '';
10
+ private readonly _store;
11
+ readonly hideFor: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
11
12
  readonly show$: import("rxjs").Observable<boolean>;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionPreSuccessDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionPreSuccessDirective, "[dbxActionPreSuccess]", never, { "hideFor": { "alias": "dbxActionPreSuccess"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionPreSuccessDirective, "[dbxActionPreSuccess]", never, { "hideFor": { "alias": "dbxActionPreSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
14
15
  }
@@ -8,8 +8,9 @@ import * as i0 from "@angular/core";
8
8
  * Can be configured to show for a temporary period.
9
9
  */
10
10
  export declare class DbxActionHasSuccessDirective extends AbstractIfDirective implements OnDestroy {
11
- hideAfter?: Maybe<number> | '';
11
+ private readonly _store;
12
+ readonly hideAfter: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
12
13
  readonly show$: import("rxjs").Observable<boolean>;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionHasSuccessDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionHasSuccessDirective, "[dbxActionHasSuccess]", never, { "hideAfter": { "alias": "dbxActionHasSuccess"; "required": false; }; }, {}, never, never, true, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionHasSuccessDirective, "[dbxActionHasSuccess]", never, { "hideAfter": { "alias": "dbxActionHasSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
16
  }
@@ -1,4 +1,3 @@
1
- import { OnDestroy } from '@angular/core';
2
1
  import { type Maybe } from '@dereekb/util';
3
2
  import { AbstractIfDirective } from '../../../view/if.directive';
4
3
  import * as i0 from "@angular/core";
@@ -7,9 +6,10 @@ import * as i0 from "@angular/core";
7
6
  *
8
7
  * Can specify a period in milliseconds that shows how long to show up after working for a particular number of seconds.
9
8
  */
10
- export declare class DbxActionIsWorkingDirective extends AbstractIfDirective implements OnDestroy {
11
- showAfter?: Maybe<number> | '';
9
+ export declare class DbxActionIsWorkingDirective extends AbstractIfDirective {
10
+ private readonly _store;
11
+ readonly showAfter: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
12
12
  readonly show$: import("rxjs").Observable<boolean>;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionIsWorkingDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionIsWorkingDirective, "[dbxActionIsWorking]", never, { "showAfter": { "alias": "dbxActionIsWorking"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionIsWorkingDirective, "[dbxActionIsWorking]", never, { "showAfter": { "alias": "dbxActionIsWorking"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
15
  }
@@ -1,4 +1,4 @@
1
- import { AuthRole, ArrayOrValue, type Maybe } from '@dereekb/util';
1
+ import { ArrayOrValue, type Maybe } from '@dereekb/util';
2
2
  import { Observable } from 'rxjs';
3
3
  import { AbstractIfDirective } from '../view/if.directive';
4
4
  import * as i0 from "@angular/core";
@@ -6,11 +6,10 @@ import * as i0 from "@angular/core";
6
6
  * Structural decorator directive similar to ngIf that embeds content if the current auth user has any of the target role(s).
7
7
  */
8
8
  export declare class DbxAuthHasAnyRoleDirective extends AbstractIfDirective {
9
- private readonly _targetRoles;
10
9
  private readonly _authService;
10
+ readonly targetRoles: import("@angular/core").InputSignal<Maybe<ArrayOrValue<string>>>;
11
11
  readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
12
12
  readonly show$: Observable<boolean>;
13
- set targetRoles(roles: Maybe<ArrayOrValue<AuthRole>>);
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthHasAnyRoleDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasAnyRoleDirective, "[dbxAuthHasAnyRole]", never, { "targetRoles": { "alias": "dbxAuthHasAnyRole"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasAnyRoleDirective, "[dbxAuthHasAnyRole]", never, { "targetRoles": { "alias": "dbxAuthHasAnyRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
15
  }
@@ -1,4 +1,4 @@
1
- import { Maybe, AuthRole, ArrayOrValue } from '@dereekb/util';
1
+ import { Maybe, ArrayOrValue } from '@dereekb/util';
2
2
  import { Observable } from 'rxjs';
3
3
  import { AbstractIfDirective } from '../view/if.directive';
4
4
  import * as i0 from "@angular/core";
@@ -6,11 +6,10 @@ import * as i0 from "@angular/core";
6
6
  * Structural decorator directive similar to ngIf that embeds content if the current auth user has all of the target role(s).
7
7
  */
8
8
  export declare class DbxAuthHasRolesDirective extends AbstractIfDirective {
9
- private readonly _targetRoles;
10
9
  private readonly _authService;
10
+ readonly targetRoles: import("@angular/core").InputSignal<Maybe<ArrayOrValue<string>>>;
11
11
  readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
12
12
  readonly show$: Observable<boolean>;
13
- set targetRoles(roles: Maybe<ArrayOrValue<AuthRole>>);
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthHasRolesDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasRolesDirective, "[dbxAuthHasRoles]", never, { "targetRoles": { "alias": "dbxAuthHasRoles"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasRolesDirective, "[dbxAuthHasRoles]", never, { "targetRoles": { "alias": "dbxAuthHasRoles"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
15
  }
@@ -1,4 +1,4 @@
1
- import { Maybe, AuthRole, ArrayOrValue } from '@dereekb/util';
1
+ import { Maybe, ArrayOrValue } from '@dereekb/util';
2
2
  import { Observable } from 'rxjs';
3
3
  import { AbstractIfDirective } from '../view/if.directive';
4
4
  import * as i0 from "@angular/core";
@@ -6,11 +6,10 @@ import * as i0 from "@angular/core";
6
6
  * Structural decorator directive similar to ngIf that embeds content if the current auth user has none of the target role(s).
7
7
  */
8
8
  export declare class DbxAuthNotAnyRoleDirective extends AbstractIfDirective {
9
- private readonly _targetRoles;
10
9
  private readonly _authService;
10
+ readonly targetRoles: import("@angular/core").InputSignal<Maybe<ArrayOrValue<string>>>;
11
11
  readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
12
12
  readonly show$: Observable<boolean>;
13
- set targetRoles(roles: Maybe<ArrayOrValue<AuthRole>>);
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthNotAnyRoleDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthNotAnyRoleDirective, "[dbxAuthNotAnyRole]", never, { "targetRoles": { "alias": "dbxAuthNotAnyRole"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthNotAnyRoleDirective, "[dbxAuthNotAnyRole]", never, { "targetRoles": { "alias": "dbxAuthNotAnyRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
15
  }
@@ -1,19 +1,14 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
2
1
  import { type Maybe } from '@dereekb/util';
3
2
  import { AbstractSubscriptionDirective } from '../../subscription/subscription.directive';
4
3
  import { DbxButton } from '../button';
5
4
  import { DbxRouterService } from '../../router/router/service/router.service';
6
5
  import { SegueRef } from '../../router/segue';
7
6
  import * as i0 from "@angular/core";
8
- export declare class DbxButtonSegueDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
7
+ export declare class DbxButtonSegueDirective extends AbstractSubscriptionDirective {
9
8
  readonly dbxButton: DbxButton;
10
9
  readonly dbxRouterService: DbxRouterService;
11
- private readonly _segueRef;
12
- readonly segueRef$: import("rxjs").Observable<SegueRef<object>>;
13
- get segueRef(): Maybe<SegueRef>;
14
- set segueRef(segueRef: Maybe<SegueRef>);
15
- ngOnInit(): void;
16
- ngOnDestroy(): void;
10
+ readonly segueRef: import("@angular/core").InputSignal<Maybe<SegueRef<object>>>;
11
+ constructor();
17
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonSegueDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSegueDirective, "[dbxButtonSegue]", never, { "segueRef": { "alias": "dbxButtonSegue"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSegueDirective, "[dbxButtonSegue]", never, { "segueRef": { "alias": "dbxButtonSegue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
14
  }
@@ -1,19 +1,13 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
1
  import { DbxAppContextService } from './context.service';
3
- import { AbstractSubscriptionDirective } from '../subscription';
4
- import { DbxAppContextState } from './context';
5
2
  import { type Maybe } from '@dereekb/util';
6
3
  import * as i0 from "@angular/core";
7
4
  /**
8
5
  * Used to set the DbxAppContextState for an app to the input state using the DbxAppContextService.
9
6
  */
10
- export declare class DbxAppContextStateDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
7
+ export declare class DbxAppContextStateDirective {
11
8
  readonly dbxAppContextStateService: DbxAppContextService;
12
- private readonly _state;
13
- constructor();
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- set state(state: Maybe<DbxAppContextState>);
9
+ readonly state: import("@angular/core").InputSignal<Maybe<string>>;
10
+ protected readonly _stateEffect: import("@angular/core").EffectRef;
17
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppContextStateDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAppContextStateDirective, "[dbxAppContextState]", never, { "state": { "alias": "dbxAppContextState"; "required": false; }; }, {}, never, never, true, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAppContextStateDirective, "[dbxAppContextState]", never, { "state": { "alias": "dbxAppContextState"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
13
  }
@@ -14,11 +14,13 @@ export declare class DbxInjectionContextDirective<O = unknown> implements DbxInj
14
14
  private _currentPromise;
15
15
  private _embeddedView;
16
16
  private _isDetached;
17
- set config(config: Maybe<DbxInjectionComponentConfig<unknown>>);
17
+ readonly config: import("@angular/core").InputSignal<Maybe<DbxInjectionComponentConfig<unknown>>>;
18
+ protected readonly _configEffect: import("@angular/core").EffectRef;
18
19
  ngOnInit(): void;
19
20
  ngOnDestroy(): void;
20
21
  showContext<T, O>(config: DbxInjectionContextConfig<T>): Promise<O>;
21
22
  resetContext(): boolean;
23
+ setConfig(config: Maybe<DbxInjectionComponentConfig<unknown>>): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionContextDirective<any>, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxInjectionContextDirective<any>, "[dbxInjectionContext]", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxInjectionContextDirective<any>, "[dbxInjectionContext]", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
26
  }
@@ -66,9 +66,6 @@ export declare abstract class DbxAnchor<T extends ClickableAnchor = ClickableAnc
66
66
  abstract readonly disabled$: Observable<Maybe<boolean>>;
67
67
  abstract readonly selected$: Observable<Maybe<boolean>>;
68
68
  abstract readonly anchor$: Observable<Maybe<T>>;
69
- abstract readonly disabled: Maybe<boolean>;
70
- abstract readonly selected: Maybe<boolean>;
71
- abstract readonly anchor: Maybe<T>;
72
69
  abstract readonly type$: Observable<ClickableAnchorType>;
73
70
  }
74
71
  export declare function provideDbxAnchor<S extends DbxAnchor>(sourceType: Type<S>): Provider[];
@@ -1,5 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
- import { OnDestroy } from '@angular/core';
3
2
  import { type Maybe } from '@dereekb/util';
4
3
  import { ClickableAnchorType, ClickableAnchor, DbxAnchor } from './anchor';
5
4
  import { SegueRefOrSegueRefRouterLink } from '../segue';
@@ -7,31 +6,24 @@ import * as i0 from "@angular/core";
7
6
  /**
8
7
  * Abstract anchor directive.
9
8
  */
10
- export declare class AbstractDbxAnchorDirective<T extends ClickableAnchor = ClickableAnchor> implements DbxAnchor, OnDestroy {
11
- private readonly _selected;
12
- private readonly _disabled;
13
- private readonly _anchor;
14
- readonly disabled$: Observable<Maybe<boolean>>;
15
- readonly anchor$: Observable<Maybe<T>>;
16
- readonly selected$: Observable<Maybe<boolean>>;
17
- readonly type$: Observable<ClickableAnchorType>;
9
+ export declare class AbstractDbxAnchorDirective<T extends ClickableAnchor = ClickableAnchor> implements DbxAnchor {
10
+ readonly ref: import("@angular/core").ModelSignal<Maybe<SegueRefOrSegueRefRouterLink>>;
11
+ readonly anchor: import("@angular/core").ModelSignal<Maybe<T>>;
12
+ readonly disabled: import("@angular/core").ModelSignal<Maybe<boolean>>;
13
+ readonly selected: import("@angular/core").ModelSignal<Maybe<boolean>>;
18
14
  readonly anchorSignal: import("@angular/core").Signal<Maybe<T>>;
19
- readonly disabledSignal: import("@angular/core").Signal<Maybe<boolean>>;
20
- readonly selectedSignal: import("@angular/core").Signal<Maybe<boolean>>;
15
+ readonly selectedSignal: import("@angular/core").Signal<boolean | undefined>;
21
16
  readonly typeSignal: import("@angular/core").Signal<ClickableAnchorType>;
22
17
  readonly urlSignal: import("@angular/core").Signal<string | undefined>;
23
18
  readonly targetSignal: import("@angular/core").Signal<string | undefined>;
24
- ngOnDestroy(): void;
25
- /**
26
- * Convenience input to create an Anchor from the input SegueRef.
27
- */
28
- set ref(ref: Maybe<SegueRefOrSegueRefRouterLink>);
29
- get anchor(): Maybe<T>;
30
- set anchor(anchor: Maybe<T>);
31
- get disabled(): Maybe<boolean>;
32
- set disabled(disabled: Maybe<boolean>);
33
- get selected(): Maybe<boolean>;
34
- set selected(selected: Maybe<boolean>);
19
+ readonly anchor$: Observable<Maybe<T>>;
20
+ readonly disabled$: Observable<Maybe<boolean>>;
21
+ readonly selected$: Observable<Maybe<boolean>>;
22
+ readonly type$: Observable<ClickableAnchorType>;
23
+ setRef(ref: Maybe<SegueRefOrSegueRefRouterLink>): void;
24
+ setAnchor(anchor: Maybe<T>): void;
25
+ setDisabled(disabled: Maybe<boolean>): void;
26
+ setSelected(selected: Maybe<boolean>): void;
35
27
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxAnchorDirective<any>, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxAnchorDirective<any>, never, never, { "ref": { "alias": "ref"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxAnchorDirective<any>, never, never, { "ref": { "alias": "ref"; "required": false; "isSignal": true; }; "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "ref": "refChange"; "anchor": "anchorChange"; "disabled": "disabledChange"; "selected": "selectedChange"; }, never, never, false, never>;
37
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-core",
3
- "version": "12.0.4",
3
+ "version": "12.0.5",
4
4
  "peerDependencies": {
5
5
  "@dereekb/util": "*",
6
6
  "@dereekb/rxjs": "*",