@dereekb/dbx-core 1.0.0 → 2.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 (109) hide show
  1. package/README.md +1 -1
  2. package/esm2020/lib/action/action.handler.mjs +3 -3
  3. package/esm2020/lib/action/action.holder.mjs +13 -4
  4. package/esm2020/lib/action/action.machine.mjs +12 -5
  5. package/esm2020/lib/action/action.mjs +37 -17
  6. package/esm2020/lib/action/action.module.mjs +15 -15
  7. package/esm2020/lib/action/action.reference.mjs +7 -0
  8. package/esm2020/lib/action/action.store.mjs +63 -26
  9. package/esm2020/lib/action/action.store.source.mjs +27 -13
  10. package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +7 -7
  11. package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +10 -9
  12. package/esm2020/lib/action/directive/auto/index.mjs +2 -2
  13. package/esm2020/lib/action/directive/context/action.directive.mjs +7 -7
  14. package/esm2020/lib/action/directive/context/action.source.directive.mjs +3 -3
  15. package/esm2020/lib/action/directive/debug/action.logger.directive.mjs +6 -6
  16. package/esm2020/lib/action/directive/map/action.map.directive.mjs +3 -3
  17. package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +3 -3
  18. package/esm2020/lib/action/directive/map/action.map.source.directive.mjs +3 -3
  19. package/esm2020/lib/action/directive/map/action.map.working.disable.directive.mjs +7 -7
  20. package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +9 -7
  21. package/esm2020/lib/action/directive/state/action.enforce.modified.directive.mjs +48 -0
  22. package/esm2020/lib/action/directive/state/action.handler.directive.mjs +7 -7
  23. package/esm2020/lib/action/directive/state/action.success.component.mjs +6 -6
  24. package/esm2020/lib/action/directive/state/action.success.directive.mjs +6 -6
  25. package/esm2020/lib/action/directive/state/action.value.directive.mjs +11 -9
  26. package/esm2020/lib/action/directive/state/action.value.stream.directive.mjs +80 -0
  27. package/esm2020/lib/action/directive/state/action.working.component.mjs +6 -6
  28. package/esm2020/lib/action/directive/state/index.mjs +2 -2
  29. package/esm2020/lib/action/index.mjs +2 -2
  30. package/esm2020/lib/button/action/action.button.directive.mjs +14 -13
  31. package/esm2020/lib/button/action/action.button.trigger.directive.mjs +6 -6
  32. package/esm2020/lib/button/button.directive.mjs +7 -7
  33. package/esm2020/lib/button/button.loading.directive.mjs +3 -3
  34. package/esm2020/lib/button/button.mjs +1 -1
  35. package/esm2020/lib/button/button.module.mjs +4 -4
  36. package/esm2020/lib/button/router/button.segue.directive.mjs +3 -3
  37. package/esm2020/lib/filter/action/action.filter.source.directive.mjs +6 -6
  38. package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +3 -3
  39. package/esm2020/lib/filter/filter.abstract.source.directive.mjs +3 -3
  40. package/esm2020/lib/filter/filter.connector.directive.mjs +3 -3
  41. package/esm2020/lib/filter/filter.map.connector.directive.mjs +3 -3
  42. package/esm2020/lib/filter/filter.map.directive.mjs +3 -3
  43. package/esm2020/lib/filter/filter.map.instance.directive.mjs +3 -3
  44. package/esm2020/lib/filter/filter.map.source.directive.mjs +3 -3
  45. package/esm2020/lib/filter/filter.module.mjs +4 -4
  46. package/esm2020/lib/filter/filter.source.directive.mjs +3 -3
  47. package/esm2020/lib/injected/injected.component.mjs +3 -3
  48. package/esm2020/lib/injected/injected.component.module.mjs +4 -4
  49. package/esm2020/lib/injected/injected.directive.mjs +3 -3
  50. package/esm2020/lib/pipe/date/date.pipe.module.mjs +4 -4
  51. package/esm2020/lib/pipe/date/datedistance.pipe.mjs +3 -3
  52. package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +3 -3
  53. package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +3 -3
  54. package/esm2020/lib/pipe/date/minutesstring.pipe.mjs +3 -3
  55. package/esm2020/lib/pipe/date/timedistance.pipe.mjs +6 -6
  56. package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +3 -3
  57. package/esm2020/lib/pipe/date/tominutes.pipe.mjs +3 -3
  58. package/esm2020/lib/router/anchor/anchor.directive.mjs +3 -3
  59. package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +3 -3
  60. package/esm2020/lib/router/router/provider/angular/angular.router.service.module.mjs +4 -4
  61. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +3 -3
  62. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +4 -4
  63. package/esm2020/lib/router/router/transition/transition.directive.mjs +3 -3
  64. package/esm2020/lib/router/router/transition/transition.watcher.directive.mjs +3 -3
  65. package/esm2020/lib/storage/storage.accessor.simple.factory.mjs +3 -3
  66. package/esm2020/lib/storage/storage.module.mjs +4 -4
  67. package/esm2020/lib/subscription/subscription.directive.mjs +6 -6
  68. package/fesm2015/dereekb-dbx-core.mjs +488 -405
  69. package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
  70. package/fesm2020/dereekb-dbx-core.mjs +486 -403
  71. package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
  72. package/lib/action/action.d.ts +14 -12
  73. package/lib/action/action.handler.d.ts +13 -5
  74. package/lib/action/action.holder.d.ts +9 -5
  75. package/lib/action/action.machine.d.ts +21 -8
  76. package/lib/action/action.module.d.ts +3 -3
  77. package/lib/action/action.reference.d.ts +11 -0
  78. package/lib/action/action.store.d.ts +33 -15
  79. package/lib/action/action.store.source.d.ts +20 -13
  80. package/lib/action/directive/auto/action.automodify.directive.d.ts +5 -4
  81. package/lib/action/directive/auto/action.autotrigger.directive.d.ts +6 -6
  82. package/lib/action/directive/auto/index.d.ts +1 -1
  83. package/lib/action/directive/context/action.directive.d.ts +3 -3
  84. package/lib/action/directive/debug/action.logger.directive.d.ts +3 -3
  85. package/lib/action/directive/map/action.map.working.disable.directive.d.ts +6 -6
  86. package/lib/action/directive/state/action.disabled.directive.d.ts +5 -4
  87. package/lib/action/directive/state/action.enforce.modified.directive.d.ts +19 -0
  88. package/lib/action/directive/state/action.handler.directive.d.ts +3 -3
  89. package/lib/action/directive/state/action.success.component.d.ts +3 -3
  90. package/lib/action/directive/state/action.success.directive.d.ts +3 -3
  91. package/lib/action/directive/state/action.value.directive.d.ts +3 -3
  92. package/lib/action/directive/state/action.value.stream.directive.d.ts +25 -0
  93. package/lib/action/directive/state/action.working.component.d.ts +3 -3
  94. package/lib/action/directive/state/index.d.ts +1 -1
  95. package/lib/action/index.d.ts +1 -1
  96. package/lib/button/action/action.button.directive.d.ts +4 -4
  97. package/lib/button/action/action.button.trigger.directive.d.ts +3 -3
  98. package/lib/button/button.d.ts +2 -2
  99. package/lib/button/button.directive.d.ts +2 -2
  100. package/lib/filter/action/action.filter.source.directive.d.ts +2 -2
  101. package/package.json +12 -11
  102. package/esm2020/lib/action/directive/auto/action.autotrigger.value.directive.mjs +0 -79
  103. package/esm2020/lib/action/directive/state/action.disabled.modified.directive.mjs +0 -35
  104. package/esm2020/lib/action/snackbar/index.mjs +0 -3
  105. package/esm2020/lib/action/snackbar/snackbar.mjs +0 -24
  106. package/lib/action/directive/auto/action.autotrigger.value.directive.d.ts +0 -25
  107. package/lib/action/directive/state/action.disabled.modified.directive.d.ts +0 -16
  108. package/lib/action/snackbar/index.d.ts +0 -1
  109. package/lib/action/snackbar/snackbar.d.ts +0 -50
@@ -1,43 +1,45 @@
1
+ import { LoadingStateType } from "@dereekb/rxjs";
1
2
  /**
2
3
  * Used by ActionContextState to denote what state the action is in.
3
4
  */
4
- export declare enum ActionState {
5
+ export declare enum DbxActionState {
5
6
  /**
6
7
  * No action in progress. Waiting for the trigger.
7
8
  */
8
- Idle = "idle",
9
+ IDLE = "idle",
9
10
  /**
10
11
  * Idle state that can be set to show that the source is not yet ready.
11
12
  */
12
- Disabled = "disabled",
13
+ DISABLED = "disabled",
13
14
  /**
14
15
  * The action was triggered. We wait (and allow) the value to be updated.
15
16
  */
16
- Triggered = "triggered",
17
+ TRIGGERED = "triggered",
17
18
  /**
18
19
  * The trigger was accepted and the value is updated. It should begin working immediately.
19
20
  *
20
21
  * ValueReady cannot be set until triggered is set.
21
22
  */
22
- ValueReady = "valueReady",
23
+ VALUE_READY = "valueReady",
23
24
  /**
24
25
  * The action is in progress.
25
26
  */
26
- Working = "working",
27
+ WORKING = "working",
27
28
  /**
28
29
  * The trigger, action, or value was rejected due to an error or other issue.
29
30
  *
30
31
  * An error may be specified optionally.
31
32
  */
32
- Rejected = "rejected",
33
+ REJECTED = "rejected",
33
34
  /**
34
- * The action was successful.
35
+ * The action resolved without issue.
35
36
  */
36
- Success = "success"
37
+ RESOLVED = "resolved"
37
38
  }
38
39
  /**
39
40
  * Unique key for disabling/enabling.
40
41
  */
41
- export declare type ActionDisabledKey = string;
42
- export declare const DEFAULT_ACTION_DISABLED_KEY = "default";
43
- export declare function isIdleActionState(actionState: ActionState): boolean;
42
+ export declare type DbxActionDisabledKey = string;
43
+ export declare const DEFAULT_ACTION_DISABLED_KEY = "dbx_action_disabled";
44
+ export declare function isIdleActionState(actionState: DbxActionState): boolean;
45
+ export declare function loadingStateTypeForActionState(actionState: DbxActionState): LoadingStateType;
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ActionContextStoreSourceInstance } from './action.store.source';
2
+ import { DbxActionContextStoreSourceInstance } from './action.store.source';
3
3
  import { Maybe, Destroyable } from '@dereekb/util';
4
4
  export interface WorkHandlerContextDelegate<O = any> {
5
5
  startWorking(): void;
@@ -7,11 +7,11 @@ export interface WorkHandlerContextDelegate<O = any> {
7
7
  reject(error?: Maybe<any>): void;
8
8
  }
9
9
  /**
10
- * WorkHandlerContextDelegate implementation using an ActionContextStoreSourceInstance.
10
+ * WorkHandlerContextDelegate implementation using an DbxActionContextStoreSourceInstance.
11
11
  */
12
12
  export declare class WorkHandlerContextSourceDelegate<T = any, O = any> implements WorkHandlerContextDelegate<O> {
13
- readonly source: ActionContextStoreSourceInstance<T, O>;
14
- constructor(source: ActionContextStoreSourceInstance<T, O>);
13
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
14
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
15
15
  startWorking(): void;
16
16
  success(result: O): void;
17
17
  reject(error: any): void;
@@ -63,10 +63,18 @@ export interface HandleWorkValueReadyConfig<T, O> {
63
63
  handlerFunction: HandleActionFunction<T, O>;
64
64
  delegate: WorkHandlerContextDelegate<O>;
65
65
  }
66
+ /**
67
+ * Performs the action using the value and returns an observable.
68
+ */
69
+ export declare type HandleActionUsingObservable<T = any, O = any> = (value: T) => Observable<O>;
70
+ /**
71
+ * Performs the action that uses the context handler to handle the event.
72
+ */
73
+ export declare type HandleActionUsingContext<T = any, O = any> = (value: T, context: WorkHandlerContext<T, O>) => void;
66
74
  /**
67
75
  * Performs the action. Can either return an observable that will use the handler, or can use the handler itself.
68
76
  */
69
- export declare type HandleActionFunction<T = any, O = any> = (value: T, context: WorkHandlerContext<T, O>) => Observable<O> | void;
77
+ export declare type HandleActionFunction<T = any, O = any> = HandleActionUsingObservable<T, O> | HandleActionUsingContext<T, O>;
70
78
  /**
71
79
  * Creates a function that handles the incoming value and creates a WorkHandlerContext.
72
80
  */
@@ -1,23 +1,24 @@
1
1
  import { Observable } from 'rxjs';
2
- import { Destroyable } from '@dereekb/util';
2
+ import { Destroyable, Maybe } from '@dereekb/util';
3
3
  import { LockSet } from '@dereekb/rxjs';
4
- import { ActionContextStoreSource, ActionContextStoreSourceInstance, SecondaryActionContextStoreSource } from './action.store.source';
4
+ import { ActionContextStoreSource, DbxActionContextStoreSourceInstance, SecondaryActionContextStoreSource } from './action.store.source';
5
5
  import { ActionContextStore } from './action.store';
6
+ import { DbxActionDisabledKey } from './action';
6
7
  /**
7
8
  * Abstract class that can either use SecondaryActionContextStoreSource or create it's own.
8
9
  */
9
- export declare class ActionContextBaseSource<T = any, O = any> implements ActionContextStoreSource, Destroyable {
10
+ export declare class DbxActionContextBaseSource<T = any, O = any> implements ActionContextStoreSource, Destroyable {
10
11
  readonly inputSource?: SecondaryActionContextStoreSource<any, any> | undefined;
11
12
  private readonly _store?;
12
13
  private readonly _store$;
13
14
  private readonly _instance;
14
15
  readonly isModified$: Observable<boolean>;
15
16
  readonly triggered$: Observable<boolean>;
16
- readonly success$: Observable<O>;
17
+ readonly success$: Observable<Maybe<O>>;
17
18
  constructor(inputSource?: SecondaryActionContextStoreSource<any, any> | undefined);
18
19
  destroy(): void;
19
20
  get lockSet(): LockSet;
20
- get sourceInstance(): ActionContextStoreSourceInstance<T, O>;
21
+ get sourceInstance(): DbxActionContextStoreSourceInstance<T, O>;
21
22
  get store$(): Observable<ActionContextStore<T, O>>;
22
23
  /**
23
24
  * Use to trigger the action directly.
@@ -25,4 +26,7 @@ export declare class ActionContextBaseSource<T = any, O = any> implements Action
25
26
  trigger(): void;
26
27
  readyValue(value: T): void;
27
28
  reset(): void;
29
+ enable(key?: DbxActionDisabledKey, enable?: boolean): void;
30
+ disable(key?: DbxActionDisabledKey, disable?: boolean): void;
31
+ setIsModified(isModified?: boolean): void;
28
32
  }
@@ -1,23 +1,36 @@
1
+ import { DbxActionContextSourceReference } from './action.reference';
1
2
  import { ActionContextStoreSource } from './action.store.source';
2
3
  import { HandleActionFunction } from './action.handler';
3
- import { ActionContextBaseSource } from './action.holder';
4
- import { Destroyable } from '@dereekb/util';
5
- export interface ActionContextMachineConfig<T = any, O = any> {
4
+ import { DbxActionContextBaseSource } from './action.holder';
5
+ import { Destroyable, Maybe } from '@dereekb/util';
6
+ /**
7
+ * DbxActionContextMachine configuration.
8
+ */
9
+ export interface DbxActionContextMachineConfig<T = any, O = any> {
6
10
  /**
7
- * Whether or not the machine should clean itself up after being triggered.
11
+ * Whether or not the machine should clean itself up after being triggered once.
8
12
  */
9
13
  oneTimeUse: boolean;
14
+ /**
15
+ * Function to handle any valueReady events.
16
+ */
10
17
  handleValueReady: HandleActionFunction<T, O>;
11
- onSuccess?: (value: O) => void;
18
+ /**
19
+ * Optional function to execute after the action has succeeded.
20
+ */
21
+ onSuccess?: (value: Maybe<O>) => void;
12
22
  }
13
23
  /**
14
24
  * Configurable machine that handles components of the ActionContextStore lifecycle.
25
+ *
26
+ * It can be configured to activate only once before cleaning itself up. It can be used directly as a DbxActionContextSourceReference in cases where it is created as a one-off action.
15
27
  */
16
- export declare class ActionContextMachine<T = any, O = any> extends ActionContextBaseSource<T, O> implements Destroyable {
17
- readonly config: ActionContextMachineConfig<T, O>;
28
+ export declare class DbxActionContextMachine<T = any, O = any> extends DbxActionContextBaseSource<T, O> implements DbxActionContextSourceReference<T, O>, Destroyable {
29
+ readonly config: DbxActionContextMachineConfig<T, O>;
18
30
  private _isShutdown;
19
31
  private _handleValueReadySub;
20
- constructor(config: ActionContextMachineConfig<T, O>, source?: ActionContextStoreSource);
32
+ private _successSub;
33
+ constructor(config: DbxActionContextMachineConfig<T, O>, source?: ActionContextStoreSource<T, O>);
21
34
  destroy(): void;
22
35
  get isShutdown(): boolean;
23
36
  }
@@ -7,9 +7,9 @@ import * as i5 from "./directive/map/action.map.working.disable.directive";
7
7
  import * as i6 from "./directive/context/action.source.directive";
8
8
  import * as i7 from "./directive/state/action.handler.directive";
9
9
  import * as i8 from "./directive/state/action.disabled.directive";
10
- import * as i9 from "./directive/state/action.disabled.modified.directive";
10
+ import * as i9 from "./directive/state/action.enforce.modified.directive";
11
11
  import * as i10 from "./directive/auto/action.autotrigger.directive";
12
- import * as i11 from "./directive/auto/action.autotrigger.value.directive";
12
+ import * as i11 from "./directive/state/action.value.stream.directive";
13
13
  import * as i12 from "./directive/auto/action.automodify.directive";
14
14
  import * as i13 from "./directive/state/action.value.directive";
15
15
  import * as i14 from "./directive/debug/action.logger.directive";
@@ -19,6 +19,6 @@ import * as i17 from "./directive/state/action.working.component";
19
19
  import * as i18 from "@angular/common";
20
20
  export declare class DbxCoreActionModule {
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreActionModule, never>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreActionModule, [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionDisabledUntilModifiedDirective, typeof i10.DbxActionAutoTriggerDirective, typeof i11.DbxActionAutoTriggerValueDirective, typeof i12.DbxActionAutoModifyDirective, typeof i13.DbxActionValueDirective, typeof i14.DbxActionContextLoggerDirective, typeof i15.DbxActionSuccessComponent, typeof i16.DbxActionSuccessDirective, typeof i17.DbxActionWorkingComponent], [typeof i18.CommonModule], [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionDisabledUntilModifiedDirective, typeof i10.DbxActionAutoTriggerDirective, typeof i11.DbxActionAutoTriggerValueDirective, typeof i12.DbxActionAutoModifyDirective, typeof i13.DbxActionValueDirective, typeof i14.DbxActionContextLoggerDirective, typeof i15.DbxActionSuccessComponent, typeof i16.DbxActionSuccessDirective, typeof i17.DbxActionWorkingComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreActionModule, [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionEnforceModifiedDirective, typeof i10.DbxActionAutoTriggerDirective, typeof i11.dbxActionValueStreamDirective, typeof i12.DbxActionAutoModifyDirective, typeof i13.DbxActionValueDirective, typeof i14.DbxActionContextLoggerDirective, typeof i15.DbxActionSuccessComponent, typeof i16.DbxActionSuccessDirective, typeof i17.DbxActionWorkingComponent], [typeof i18.CommonModule], [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionEnforceModifiedDirective, typeof i10.DbxActionAutoTriggerDirective, typeof i11.dbxActionValueStreamDirective, typeof i12.DbxActionAutoModifyDirective, typeof i13.DbxActionValueDirective, typeof i14.DbxActionContextLoggerDirective, typeof i15.DbxActionSuccessComponent, typeof i16.DbxActionSuccessDirective, typeof i17.DbxActionWorkingComponent]>;
23
23
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreActionModule>;
24
24
  }
@@ -0,0 +1,11 @@
1
+ import { Destroyable } from "@dereekb/util";
2
+ import { DbxActionContextStoreSourceInstance } from "./action.store.source";
3
+ /**
4
+ * Acts as a reference to a DbxActionContextStoreSourceInstance that can be destroyed.
5
+ *
6
+ * This is used in cases where the action is passed around and the context it is passed to needs to clean up.
7
+ */
8
+ export interface DbxActionContextSourceReference<T = any, O = any> extends Destroyable {
9
+ readonly sourceInstance: DbxActionContextStoreSourceInstance<T, O>;
10
+ }
11
+ export declare function makeDbxActionContextSourceReference<T, O>(sourceInstance: DbxActionContextStoreSourceInstance<T, O>): DbxActionContextSourceReference<T, O>;
@@ -2,26 +2,34 @@ import { OnDestroy } from '@angular/core';
2
2
  import { ComponentStore } from '@ngrx/component-store';
3
3
  import { Observable } from 'rxjs';
4
4
  import { BooleanStringKeyArray, Maybe, ReadableError } from '@dereekb/util';
5
- import { LockSet } from '@dereekb/rxjs';
6
- import { ActionState } from './action';
5
+ import { LoadingStateType, LoadingState, LockSet } from '@dereekb/rxjs';
6
+ import { DbxActionState } from './action';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare function isActionContextEnabled(state: ActionContextState): boolean;
9
9
  export declare function isActionContextDisabled(state: ActionContextState): boolean;
10
10
  export declare function isDisabledActionContextState(state: ActionContextState): boolean;
11
- export declare function isWorkingActionState(actionState: ActionState): boolean;
12
- export declare function canTriggerActionState(actionState: ActionState): boolean;
11
+ export declare function isWorkingActionState(actionState: DbxActionState): boolean;
12
+ export declare function canTriggerActionState(actionState: DbxActionState): boolean;
13
13
  export declare function canTriggerAction(state: ActionContextState): boolean;
14
14
  export declare function canReadyValue(state: ActionContextState): boolean;
15
15
  export declare function actionContextIsModifiedAndCanTrigger(state: ActionContextState): boolean;
16
16
  export declare function actionContextHasNoErrorAndIsModifiedAndCanTrigger(state: ActionContextState): boolean;
17
+ export declare function loadingStateForActionContextState<O>(state: ActionContextState): LoadingState<O>;
18
+ export declare function loadingStateTypeForActionContextState(state: ActionContextState): LoadingStateType;
17
19
  export interface ActionContextState<T = any, O = any> {
18
- actionState: ActionState;
20
+ actionState: DbxActionState;
19
21
  isModified: boolean;
20
22
  /**
21
- * Value that is set after a triggered action.
23
+ * Value that is set after a triggered action. Not to be confused with result.
22
24
  */
23
25
  value?: Maybe<T>;
26
+ /**
27
+ * Resolved result value.
28
+ */
24
29
  result?: Maybe<O>;
30
+ /**
31
+ * Rejected error, if available.
32
+ */
25
33
  error?: Maybe<ReadableError>;
26
34
  /**
27
35
  * Current disabled state.
@@ -35,11 +43,11 @@ export interface ActionContextState<T = any, O = any> {
35
43
  export declare class ActionContextStore<T = any, O = any> extends ComponentStore<ActionContextState<T, O>> implements OnDestroy {
36
44
  readonly lockSet: LockSet;
37
45
  constructor();
38
- readonly actionState$: Observable<ActionState>;
46
+ readonly actionState$: Observable<DbxActionState>;
39
47
  /**
40
- * Returns the current disabled reasons.
48
+ * Returns the current disabled reasons/keys.
41
49
  */
42
- readonly disabled$: Observable<string[]>;
50
+ readonly disabledKeys$: Observable<string[]>;
43
51
  /**
44
52
  * Maps the current state to true or not when the action state changes to/from disabled.
45
53
  */
@@ -55,7 +63,7 @@ export declare class ActionContextStore<T = any, O = any> extends ComponentStore
55
63
  /**
56
64
  * Pipes the readied value on ValueReady.
57
65
  */
58
- readonly valueReady$: Observable<any>;
66
+ readonly valueReady$: Observable<T>;
59
67
  /**
60
68
  * Pipes the error on the rejection state.
61
69
  */
@@ -75,11 +83,19 @@ export declare class ActionContextStore<T = any, O = any> extends ComponentStore
75
83
  /**
76
84
  * Pipes the result when the ActionState becomes success.
77
85
  */
78
- readonly success$: Observable<any>;
86
+ readonly success$: Observable<Maybe<O>>;
79
87
  /**
80
88
  * Whether or not it is currently in a success state.
81
89
  */
82
90
  readonly isSuccess$: Observable<boolean>;
91
+ /**
92
+ * Returns a loading state based on the current state.
93
+ */
94
+ readonly loadingState$: Observable<LoadingState<O>>;
95
+ /**
96
+ * Returns the current LoadingStateType based on the current state.
97
+ */
98
+ readonly loadingStateType$: Observable<LoadingStateType>;
83
99
  /**
84
100
  * Number of errors since last success.
85
101
  */
@@ -120,7 +136,7 @@ export declare class ActionContextStore<T = any, O = any> extends ComponentStore
120
136
  /**
121
137
  * Updates the value, setting value ready. The current result is cleared.
122
138
  */
123
- readonly readyValue: (() => void) | ((observableOrValue: Maybe<T> | Observable<Maybe<T>>) => import("rxjs").Subscription) | (T extends void ? () => void : (observableOrValue: Maybe<T> | Observable<Maybe<T>>) => import("rxjs").Subscription);
139
+ readonly readyValue: T extends void ? () => void : (observableOrValue: T | Observable<T>) => import("rxjs").Subscription;
124
140
  /**
125
141
  * Notifys the context that the action is in progress.
126
142
  */
@@ -134,13 +150,15 @@ export declare class ActionContextStore<T = any, O = any> extends ComponentStore
134
150
  *
135
151
  * Clears modified state, and any errors.
136
152
  */
137
- readonly success: O extends void ? () => void : (observableOrValue: O | Observable<O>) => import("rxjs").Subscription;
153
+ readonly resolve: (() => void) | ((observableOrValue: Maybe<O> | Observable<Maybe<O>>) => import("rxjs").Subscription) | (O extends void ? () => void : (observableOrValue: Maybe<O> | Observable<Maybe<O>>) => import("rxjs").Subscription);
138
154
  /**
139
155
  * Completely resets the store.
140
156
  */
141
157
  readonly reset: () => void;
142
- afterDistinctBoolean(fromState: (state: ActionContextState) => boolean): Observable<boolean>;
143
- afterDistinctActionState<X>(actionState: ActionState, fromState: (state: ActionContextState) => X): Observable<X>;
158
+ afterDistinctBoolean(fromState: (state: ActionContextState<T, O>) => boolean): Observable<boolean>;
159
+ afterDistinctActionState<X>(actionState: DbxActionState, fromState: (state: ActionContextState<T, O>) => X): Observable<X>;
160
+ afterDistinctActionStateChange(): Observable<ActionContextState<T, O>>;
161
+ afterDistinctLoadingStateTypeChange(): Observable<ActionContextState<T, O>>;
144
162
  ngOnDestroy(): void;
145
163
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionContextStore<any, any>, never>;
146
164
  static ɵprov: i0.ɵɵInjectableDeclaration<ActionContextStore<any, any>>;
@@ -1,10 +1,10 @@
1
1
  import { Observable, Subscription } from 'rxjs';
2
2
  import { Provider, Type } from '@angular/core';
3
- import { LockSet } from '@dereekb/rxjs';
3
+ import { LockSet, LoadingState, LoadingStateType } from '@dereekb/rxjs';
4
4
  import { OnDestroy } from '@angular/core';
5
5
  import { Maybe, ReadableError } from '@dereekb/util';
6
6
  import { ActionContextState, ActionContextStore } from './action.store';
7
- import { ActionDisabledKey, ActionState } from './action';
7
+ import { DbxActionDisabledKey, DbxActionState } from './action';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Source that provides a ActionContextStore observable.
@@ -30,7 +30,10 @@ export declare type UseActionStoreFunction<T, O> = (store: ActionContextStore<T,
30
30
  * Convenience function for subscribing to the input source once and using the provided store.
31
31
  */
32
32
  export declare function useActionStore<T = any, O = any>(source: ActionContextStoreSource<T, O>, useFn: UseActionStoreFunction<T, O>): Subscription;
33
- export declare class ActionContextStoreSourceInstance<T = any, O = any> implements OnDestroy {
33
+ /**
34
+ * Service that wraps a ActionContextStoreSource.
35
+ */
36
+ export declare class DbxActionContextStoreSourceInstance<T = any, O = any> implements ActionContextStoreSource, OnDestroy {
34
37
  readonly source: ActionContextStoreSource<T, O>;
35
38
  readonly lockSet: LockSet;
36
39
  constructor(source: ActionContextStoreSource<T, O>);
@@ -41,32 +44,36 @@ export declare class ActionContextStoreSourceInstance<T = any, O = any> implemen
41
44
  get state$(): Observable<ActionContextState<T, O>>;
42
45
  get triggered$(): Observable<boolean>;
43
46
  get valueReady$(): Observable<T>;
44
- get success$(): Observable<O>;
47
+ get success$(): Observable<Maybe<O>>;
45
48
  get error$(): Observable<Maybe<ReadableError>>;
46
49
  get rejected$(): Observable<Maybe<ReadableError>>;
47
50
  get isModified$(): Observable<boolean>;
51
+ get canTrigger$(): Observable<boolean>;
48
52
  get isModifiedAndCanTriggerUpdates$(): Observable<boolean>;
49
53
  get isModifiedAndCanTrigger$(): Observable<boolean>;
50
- get actionState$(): Observable<ActionState>;
54
+ get actionState$(): Observable<DbxActionState>;
55
+ get loadingState$(): Observable<LoadingState<O>>;
56
+ get loadingStateType$(): Observable<LoadingStateType>;
51
57
  get isWorking$(): Observable<boolean>;
52
58
  get isSuccess$(): Observable<boolean>;
59
+ get disabledKeys$(): Observable<string[]>;
53
60
  get isDisabled$(): Observable<boolean>;
54
61
  get errorCountSinceLastSuccess$(): Observable<number>;
55
- enable(key?: ActionDisabledKey, enable?: boolean): void;
56
- disable(key?: ActionDisabledKey, disable?: boolean): void;
62
+ enable(key?: DbxActionDisabledKey, enable?: boolean): void;
63
+ disable(key?: DbxActionDisabledKey, disable?: boolean): void;
57
64
  setIsModified(isModified?: boolean | Observable<boolean> | Observable<void>): void;
58
65
  trigger(): void;
59
- readyValue(value: Maybe<T | Observable<T>>): void;
66
+ readyValue(value: T | Observable<T>): void;
60
67
  startWorking(): void;
61
68
  reject(error: Maybe<ReadableError | Observable<ReadableError>>): void;
62
- success(value: O | Observable<O>): void;
69
+ resolve(value: O | Observable<O>): void;
63
70
  reset(): void;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<ActionContextStoreSourceInstance<any, any>, never>;
65
- static ɵdir: i0.ɵɵDirectiveDeclaration<ActionContextStoreSourceInstance<any, any>, never, never, {}, {}, never>;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextStoreSourceInstance<any, any>, never>;
72
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxActionContextStoreSourceInstance<any, any>>;
66
73
  }
67
- export declare const actionContextStoreSourceInstanceFactory: (source: ActionContextStoreSource) => ActionContextStoreSourceInstance<any, any>;
74
+ export declare const actionContextStoreSourceInstanceFactory: (source: ActionContextStoreSource) => DbxActionContextStoreSourceInstance<any, any>;
68
75
  /**
69
- * Provides an ActionContextStoreSource, as well as an ActionContextStoreSourceInstance.
76
+ * Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
70
77
  */
71
78
  export declare function ProvideActionStoreSource<S>(sourceType: Type<S>): Provider[];
72
79
  export declare function ProvideSecondaryActionStoreSource<S>(sourceType: Type<S>): Provider[];
@@ -1,13 +1,14 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { AbstractSubscriptionDirective } from '../../../subscription';
3
- import { ActionContextStoreSourceInstance } from '../../action.store.source';
3
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
4
+ import { Maybe } from '@dereekb/util';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class DbxActionAutoModifyDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
6
- readonly source: ActionContextStoreSourceInstance<T, O>;
7
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
7
8
  private readonly _autoModifyEnabled;
8
9
  get autoModifyEnabled(): boolean;
9
- set autoModifyEnabled(autoModifyEnabled: boolean);
10
- constructor(source: ActionContextStoreSourceInstance<T, O>);
10
+ set autoModifyEnabled(autoModifyEnabled: Maybe<any>);
11
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
11
12
  ngOnInit(): void;
12
13
  ngOnDestroy(): void;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionAutoModifyDirective<any, any>, [{ host: true; }]>;
@@ -1,14 +1,14 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { AbstractSubscriptionDirective } from '../../../subscription';
3
3
  import { Observable } from 'rxjs';
4
- import { ActionContextStoreSourceInstance } from '../../action.store.source';
4
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
5
5
  import { Maybe } from '@dereekb/util';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Extension of DbxActionTransitionSafetyDirective that automatically triggers the action periodically when it is in a modified state.
8
+ * Directive that automatically triggers the action periodically when it is in a modified state.
9
9
  */
10
10
  export declare class DbxActionAutoTriggerDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
11
- readonly source: ActionContextStoreSourceInstance<T, O>;
11
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
12
12
  private _triggerEnabled;
13
13
  /**
14
14
  * How much to throttle the auto-triggering.
@@ -24,13 +24,13 @@ export declare class DbxActionAutoTriggerDirective<T, O> extends AbstractSubscri
24
24
  *
25
25
  * Used in forms that are simple.
26
26
  */
27
- set fastTrigger(fastTrigger: boolean);
27
+ set fastTrigger(fastTrigger: any);
28
28
  /**
29
29
  * Optional input to override both triggerDebounce and triggerThrottle to be 0.
30
30
  *
31
31
  * Used in forms that generally return a single value.
32
32
  */
33
- set instantTrigger(instantTrigger: boolean);
33
+ set instantTrigger(instantTrigger: any);
34
34
  get triggerLimit(): Maybe<number>;
35
35
  set triggerLimit(triggerLimit: Maybe<number>);
36
36
  private readonly _triggerLimit;
@@ -45,7 +45,7 @@ export declare class DbxActionAutoTriggerDirective<T, O> extends AbstractSubscri
45
45
  private readonly _isTriggerLimited$;
46
46
  readonly isTriggerLimited$: Observable<boolean>;
47
47
  readonly trigger$: Observable<void>;
48
- constructor(source: ActionContextStoreSourceInstance<T, O>);
48
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
49
49
  get isEnabled(): boolean;
50
50
  ngOnInit(): void;
51
51
  ngOnDestroy(): void;
@@ -1,3 +1,3 @@
1
1
  export * from './action.automodify.directive';
2
2
  export * from './action.autotrigger.directive';
3
- export * from './action.autotrigger.value.directive';
3
+ export * from '../state/action.value.stream.directive';
@@ -1,13 +1,13 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { SecondaryActionContextStoreSource } from '../../action.store.source';
3
- import { ActionContextBaseSource } from '../../action.holder';
3
+ import { DbxActionContextBaseSource } from '../../action.holder';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Provides an DbxActionContext.
7
7
  */
8
- export declare class DbxActionDirective<T = any, O = any> extends ActionContextBaseSource implements OnDestroy {
8
+ export declare class DbxActionDirective<T = any, O = any> extends DbxActionContextBaseSource implements OnDestroy {
9
9
  constructor(inputSource: SecondaryActionContextStoreSource);
10
10
  ngOnDestroy(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDirective<any, any>, [{ optional: true; host: true; }]>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDirective<any, any>, "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", ["action"], {}, {}, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDirective<any, any>, "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", ["action", "dbxAction"], {}, {}, never>;
13
13
  }
@@ -1,13 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { AbstractSubscriptionDirective } from '../../../subscription';
3
- import { ActionContextStoreSourceInstance } from '../../action.store.source';
3
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Prints out the current state to the console. Useful for debugging.
7
7
  */
8
8
  export declare class DbxActionContextLoggerDirective extends AbstractSubscriptionDirective implements OnInit {
9
- readonly source: ActionContextStoreSourceInstance;
10
- constructor(source: ActionContextStoreSourceInstance);
9
+ readonly source: DbxActionContextStoreSourceInstance;
10
+ constructor(source: DbxActionContextStoreSourceInstance);
11
11
  ngOnInit(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextLoggerDirective, [{ host: true; }]>;
13
13
  static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionContextLoggerDirective, "[dbxActionLogger],[dbxActionContextLogger]", never, {}, {}, never>;
@@ -1,19 +1,19 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { Maybe } from '@dereekb/util';
3
3
  import { AbstractSubscriptionDirective } from '../../../subscription';
4
- import { ActionContextStoreSourceInstance } from '../../action.store.source';
4
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
5
5
  import { DbxActionContextMapDirective } from './action.map.directive';
6
- import { ActionDisabledKey } from '../../action';
6
+ import { DbxActionDisabledKey } from '../../action';
7
7
  import * as i0 from "@angular/core";
8
- export declare const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = "__disabled";
8
+ export declare const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = "action_map_working_disable";
9
9
  /**
10
10
  * Used to communicate with an dbxActionMap and set the ActionContextStore to be disabled if any other element in the map is working.
11
11
  */
12
12
  export declare class DbxActionMapWorkingDisableDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
13
- readonly source: ActionContextStoreSourceInstance;
13
+ readonly source: DbxActionContextStoreSourceInstance;
14
14
  private readonly _map;
15
- disabledKey: Maybe<ActionDisabledKey>;
16
- constructor(source: ActionContextStoreSourceInstance, _map: DbxActionContextMapDirective);
15
+ disabledKey: Maybe<DbxActionDisabledKey>;
16
+ constructor(source: DbxActionContextStoreSourceInstance, _map: DbxActionContextMapDirective);
17
17
  ngOnInit(): void;
18
18
  ngOnDestroy(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionMapWorkingDisableDirective, [{ host: true; }, null]>;
@@ -1,20 +1,21 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
+ import { Maybe } from '@dereekb/util';
2
3
  import { AbstractSubscriptionDirective } from '../../../subscription';
3
- import { ActionContextStoreSourceInstance } from '../../action.store.source';
4
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare const APP_ACTION_DISABLED_DIRECTIVE_KEY = "dbx_action_disabled";
6
7
  /**
7
8
  * Directive that allows disabling an action using the inputs.
8
9
  */
9
10
  export declare class DbxActionDisabledDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
10
- readonly source: ActionContextStoreSourceInstance<T, O>;
11
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
11
12
  private _disabled;
12
13
  readonly disabled$: import("rxjs").Observable<boolean>;
13
- constructor(source: ActionContextStoreSourceInstance<T, O>);
14
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
14
15
  ngOnInit(): void;
15
16
  ngOnDestroy(): void;
16
17
  get disabled(): boolean;
17
- set disabled(disabled: boolean);
18
+ set disabled(disabled: Maybe<any>);
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledDirective<any, any>, [{ host: true; }]>;
19
20
  static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledDirective<any, any>, "[dbxActionDisabled]", never, { "disabled": "dbxActionDisabled"; }, {}, never>;
20
21
  }
@@ -0,0 +1,19 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { AbstractSubscriptionDirective } from '../../../subscription';
3
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
4
+ import * as i0 from "@angular/core";
5
+ export declare const APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY = "dbx_action_enforce_modified";
6
+ /**
7
+ * Directive that toggles disabling an action if the action is not marked modified.
8
+ */
9
+ export declare class DbxActionEnforceModifiedDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
10
+ readonly source: DbxActionContextStoreSourceInstance;
11
+ private _enabled;
12
+ constructor(source: DbxActionContextStoreSourceInstance);
13
+ ngOnInit(): void;
14
+ ngOnDestroy(): void;
15
+ get enabled(): boolean;
16
+ set enabled(enabled: boolean);
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionEnforceModifiedDirective, [{ host: true; }]>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionEnforceModifiedDirective, "[dbxActionEnforceModified]", never, { "enabled": "[dbxActionEnforceModified]"; }, {}, never>;
19
+ }
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractSubscriptionDirective } from '../../../subscription';
3
- import { ActionContextStoreSourceInstance } from '../../action.store.source';
3
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
4
4
  import { HandleActionFunction } from '../../action.handler';
5
5
  import { Maybe } from '@dereekb/util';
6
6
  import * as i0 from "@angular/core";
@@ -8,13 +8,13 @@ import * as i0 from "@angular/core";
8
8
  * Context used for defining a function that performs an action using the input function on ValueReady.
9
9
  */
10
10
  export declare class DbxActionHandlerDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
11
- readonly source: ActionContextStoreSourceInstance<T, O>;
11
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
12
12
  private _handlerFunction;
13
13
  readonly handlerFunction$: import("rxjs").Observable<HandleActionFunction<T, O>>;
14
14
  get handlerFunction(): Maybe<HandleActionFunction<T, O>>;
15
15
  set handlerFunction(handlerFunction: Maybe<HandleActionFunction<T, O>>);
16
16
  private _delegate;
17
- constructor(source: ActionContextStoreSourceInstance<T, O>);
17
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
18
18
  ngOnInit(): void;
19
19
  ngOnDestroy(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionHandlerDirective<any, any>, [{ host: true; }]>;
@@ -1,4 +1,4 @@
1
- import { ActionContextStoreSourceInstance } from '../../action.store.source';
1
+ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * Displays the input content when success is set.
@@ -6,10 +6,10 @@ import * as i0 from "@angular/core";
6
6
  * Can be configured to show for a limited time afterwards, etc.
7
7
  */
8
8
  export declare class DbxActionSuccessComponent {
9
- readonly source: ActionContextStoreSourceInstance;
9
+ readonly source: DbxActionContextStoreSourceInstance;
10
10
  hideAfter?: number;
11
11
  readonly show$: import("rxjs").Observable<boolean>;
12
- constructor(source: ActionContextStoreSourceInstance);
12
+ constructor(source: DbxActionContextStoreSourceInstance);
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSuccessComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxActionSuccessComponent, "dbx-action-success", never, { "hideAfter": "hideAfter"; }, {}, never, ["*"]>;
15
15
  }