@dereekb/dbx-core 12.1.4 → 12.1.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.
- package/esm2022/lib/action/action.module.mjs +5 -2
- package/esm2022/lib/action/action.store.mjs +5 -1
- package/esm2022/lib/action/action.store.source.mjs +4 -1
- package/esm2022/lib/action/directive/map/action.map.source.directive.mjs +2 -2
- package/esm2022/lib/action/directive/state/action.idle.directive.mjs +34 -0
- package/esm2022/lib/action/directive/state/action.presuccess.directive.mjs +3 -2
- package/esm2022/lib/action/directive/state/action.success.directive.mjs +3 -2
- package/esm2022/lib/action/directive/state/action.triggered.directive.mjs +34 -0
- package/esm2022/lib/action/directive/state/action.working.directive.mjs +15 -8
- package/esm2022/lib/action/directive/state/index.mjs +3 -1
- package/esm2022/lib/util/index.mjs +2 -1
- package/esm2022/lib/util/input.mjs +7 -0
- package/fesm2022/dereekb-dbx-core.mjs +87 -10
- package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.module.d.ts +6 -5
- package/lib/action/action.store.d.ts +4 -0
- package/lib/action/action.store.source.d.ts +1 -0
- package/lib/action/directive/state/action.idle.directive.d.ts +15 -0
- package/lib/action/directive/state/action.triggered.directive.d.ts +15 -0
- package/lib/action/directive/state/action.working.directive.d.ts +4 -2
- package/lib/action/directive/state/index.d.ts +2 -0
- package/lib/util/index.d.ts +1 -0
- package/lib/util/input.d.ts +6 -0
- package/package.json +1 -1
|
@@ -14,15 +14,16 @@ import * as i12 from "./directive/state/action.value.stream.directive";
|
|
|
14
14
|
import * as i13 from "./directive/auto/action.automodify.directive";
|
|
15
15
|
import * as i14 from "./directive/state/action.value.directive";
|
|
16
16
|
import * as i15 from "./directive/debug/action.logger.directive";
|
|
17
|
-
import * as i16 from "./directive/state/action.
|
|
18
|
-
import * as i17 from "./directive/state/action.
|
|
19
|
-
import * as i18 from "./directive/state/action.success.
|
|
20
|
-
import * as i19 from "./directive/state/action.
|
|
17
|
+
import * as i16 from "./directive/state/action.idle.directive";
|
|
18
|
+
import * as i17 from "./directive/state/action.presuccess.directive";
|
|
19
|
+
import * as i18 from "./directive/state/action.success.directive";
|
|
20
|
+
import * as i19 from "./directive/state/action.success.handler.directive";
|
|
21
|
+
import * as i20 from "./directive/state/action.working.directive";
|
|
21
22
|
/**
|
|
22
23
|
* Contains all base DbxAction components.
|
|
23
24
|
*/
|
|
24
25
|
export declare class DbxCoreActionModule {
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreActionModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreActionModule, never, [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i7.DbxActionHandlerValueDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionDisabledOnSuccessDirective, typeof i10.DbxActionEnforceModifiedDirective, typeof i11.DbxActionAutoTriggerDirective, typeof i12.DbxActionValueStreamDirective, typeof i13.DbxActionAutoModifyDirective, typeof i14.DbxActionValueDirective, typeof i15.DbxActionContextLoggerDirective, typeof i16.
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreActionModule, never, [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i7.DbxActionHandlerValueDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionDisabledOnSuccessDirective, typeof i10.DbxActionEnforceModifiedDirective, typeof i11.DbxActionAutoTriggerDirective, typeof i12.DbxActionValueStreamDirective, typeof i13.DbxActionAutoModifyDirective, typeof i14.DbxActionValueDirective, typeof i15.DbxActionContextLoggerDirective, typeof i16.DbxActionIdleDirective, typeof i17.DbxActionPreSuccessDirective, typeof i18.DbxActionHasSuccessDirective, typeof i19.DbxActionSuccessHandlerDirective, typeof i20.DbxActionIsWorkingDirective], [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i7.DbxActionHandlerValueDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionDisabledOnSuccessDirective, typeof i10.DbxActionEnforceModifiedDirective, typeof i11.DbxActionAutoTriggerDirective, typeof i12.DbxActionValueStreamDirective, typeof i13.DbxActionAutoModifyDirective, typeof i14.DbxActionValueDirective, typeof i15.DbxActionContextLoggerDirective, typeof i16.DbxActionIdleDirective, typeof i17.DbxActionPreSuccessDirective, typeof i18.DbxActionHasSuccessDirective, typeof i19.DbxActionSuccessHandlerDirective, typeof i20.DbxActionIsWorkingDirective]>;
|
|
27
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreActionModule>;
|
|
28
29
|
}
|
|
@@ -63,6 +63,10 @@ export declare class ActionContextStore<T = unknown, O = unknown> extends Compon
|
|
|
63
63
|
* Pipes when idle but modified.
|
|
64
64
|
*/
|
|
65
65
|
readonly isModified$: Observable<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Pipes true when idle.
|
|
68
|
+
*/
|
|
69
|
+
readonly idle$: Observable<boolean>;
|
|
66
70
|
/**
|
|
67
71
|
* Pipes true when triggered.
|
|
68
72
|
*/
|
|
@@ -40,6 +40,7 @@ export declare class DbxActionContextStoreSourceInstance<T = unknown, O = unknow
|
|
|
40
40
|
pipeStore<R>(pipeFn: PipeActionStoreFunction<R, T, O>): Observable<R>;
|
|
41
41
|
useStore(useFn: UseActionStoreFunction<T, O>): Subscription;
|
|
42
42
|
get state$(): Observable<ActionContextState<T, O>>;
|
|
43
|
+
get idle$(): Observable<boolean>;
|
|
43
44
|
get triggered$(): Observable<boolean>;
|
|
44
45
|
get valueReady$(): Observable<T>;
|
|
45
46
|
get success$(): Observable<Maybe<O>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Maybe } from '@dereekb/util';
|
|
2
|
+
import { AbstractIfDirective } from '../../../view/if.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Structural directive that displays the content before the store has success.
|
|
6
|
+
*
|
|
7
|
+
* Can be configured to hide for a temporary period.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DbxActionIdleDirective extends AbstractIfDirective {
|
|
10
|
+
private readonly _store;
|
|
11
|
+
readonly hideAfter: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
|
|
12
|
+
readonly show$: import("rxjs").Observable<boolean>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionIdleDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionIdleDirective, "[dbxActionIdle]", never, { "hideAfter": { "alias": "dbxActionIdle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Maybe } from '@dereekb/util';
|
|
2
|
+
import { AbstractIfDirective } from '../../../view/if.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Structural directive that displays the content when the store has been triggered.
|
|
6
|
+
*
|
|
7
|
+
* Can be configured to hide for a temporary period.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DbxActionTriggeredDirective extends AbstractIfDirective {
|
|
10
|
+
private readonly _store;
|
|
11
|
+
readonly hideAfter: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
|
|
12
|
+
readonly show$: import("rxjs").Observable<boolean>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionTriggeredDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionTriggeredDirective, "[dbxActionTriggered]", never, { "hideAfter": { "alias": "dbxActionTriggered"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -8,8 +8,10 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class DbxActionIsWorkingDirective extends AbstractIfDirective {
|
|
10
10
|
private readonly _store;
|
|
11
|
-
readonly
|
|
11
|
+
readonly hideAfter: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
|
|
12
|
+
readonly hideAfterIsWorking: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
|
|
13
|
+
readonly hideAfterSignal: import("@angular/core").Signal<Maybe<number>>;
|
|
12
14
|
readonly show$: import("rxjs").Observable<boolean>;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionIsWorkingDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionIsWorkingDirective, "[dbxActionIsWorking]", never, { "
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionIsWorkingDirective, "[dbxActionWorking],[dbxActionIsWorking]", never, { "hideAfter": { "alias": "dbxActionWorking"; "required": false; "isSignal": true; }; "hideAfterIsWorking": { "alias": "dbxActionIsWorking"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
17
|
}
|
|
@@ -2,6 +2,7 @@ export * from './action.disabled.directive';
|
|
|
2
2
|
export * from './action.disableonsuccess.directive';
|
|
3
3
|
export * from './action.handler.directive';
|
|
4
4
|
export * from './action.handler.instance';
|
|
5
|
+
export * from './action.idle.directive';
|
|
5
6
|
export * from './action.presuccess.directive';
|
|
6
7
|
export * from './action.success.directive';
|
|
7
8
|
export * from './action.success.handler.directive';
|
|
@@ -11,3 +12,4 @@ export * from './action.enforce.modified.directive';
|
|
|
11
12
|
export * from './action.value.trigger.directive';
|
|
12
13
|
export * from './action.value.trigger.instance';
|
|
13
14
|
export * from './action.value.stream.directive';
|
|
15
|
+
export * from './action.triggered.directive';
|
package/lib/util/index.d.ts
CHANGED