@dereekb/dbx-core 9.15.2 → 9.15.4
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/esm2020/lib/action/action.module.mjs +10 -2
- package/esm2020/lib/action/directive/state/action.disableonsuccess.directive.mjs +48 -0
- package/esm2020/lib/action/directive/state/action.presuccess.directive.mjs +38 -0
- package/esm2020/lib/action/directive/state/action.success.directive.mjs +3 -1
- package/esm2020/lib/action/directive/state/index.mjs +3 -1
- package/fesm2015/dereekb-dbx-core.mjs +86 -1
- package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-core.mjs +84 -1
- package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.module.d.ts +13 -11
- package/lib/action/directive/state/action.disableonsuccess.directive.d.ts +21 -0
- package/lib/action/directive/state/action.presuccess.directive.d.ts +18 -0
- package/lib/action/directive/state/action.success.directive.d.ts +2 -0
- package/lib/action/directive/state/index.d.ts +2 -0
- package/package.json +4 -4
|
@@ -7,18 +7,20 @@ 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.
|
|
11
|
-
import * as i10 from "./directive/
|
|
12
|
-
import * as i11 from "./directive/
|
|
13
|
-
import * as i12 from "./directive/
|
|
14
|
-
import * as i13 from "./directive/
|
|
15
|
-
import * as i14 from "./directive/
|
|
16
|
-
import * as i15 from "./directive/
|
|
17
|
-
import * as i16 from "./directive/state/action.
|
|
18
|
-
import * as i17 from "./directive/state/action.
|
|
19
|
-
import * as i18 from "
|
|
10
|
+
import * as i9 from "./directive/state/action.disableonsuccess.directive";
|
|
11
|
+
import * as i10 from "./directive/state/action.enforce.modified.directive";
|
|
12
|
+
import * as i11 from "./directive/auto/action.autotrigger.directive";
|
|
13
|
+
import * as i12 from "./directive/state/action.value.stream.directive";
|
|
14
|
+
import * as i13 from "./directive/auto/action.automodify.directive";
|
|
15
|
+
import * as i14 from "./directive/state/action.value.directive";
|
|
16
|
+
import * as i15 from "./directive/debug/action.logger.directive";
|
|
17
|
+
import * as i16 from "./directive/state/action.presuccess.directive";
|
|
18
|
+
import * as i17 from "./directive/state/action.success.directive";
|
|
19
|
+
import * as i18 from "./directive/state/action.success.handler.directive";
|
|
20
|
+
import * as i19 from "./directive/state/action.working.component";
|
|
21
|
+
import * as i20 from "@angular/common";
|
|
20
22
|
export declare class DbxCoreActionModule {
|
|
21
23
|
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.
|
|
24
|
+
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.DbxActionDisabledOnSuccessDirective, typeof i10.DbxActionEnforceModifiedDirective, typeof i11.DbxActionAutoTriggerDirective, typeof i12.dbxActionValueStreamDirective, typeof i13.DbxActionAutoModifyDirective, typeof i14.DbxActionValueDirective, typeof i15.DbxActionContextLoggerDirective, typeof i16.DbxActionPreSuccessDirective, typeof i17.DbxActionHasSuccessDirective, typeof i18.DbxActionSuccessHandlerDirective, typeof i19.DbxActionIsWorkingDirective], [typeof i20.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.DbxActionDisabledOnSuccessDirective, typeof i10.DbxActionEnforceModifiedDirective, typeof i11.DbxActionAutoTriggerDirective, typeof i12.dbxActionValueStreamDirective, typeof i13.DbxActionAutoModifyDirective, typeof i14.DbxActionValueDirective, typeof i15.DbxActionContextLoggerDirective, typeof i16.DbxActionPreSuccessDirective, typeof i17.DbxActionHasSuccessDirective, typeof i18.DbxActionSuccessHandlerDirective, typeof i19.DbxActionIsWorkingDirective]>;
|
|
23
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreActionModule>;
|
|
24
26
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { AbstractSubscriptionDirective } from '../../../subscription';
|
|
4
|
+
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY = "dbx_action_disabled_on_success";
|
|
7
|
+
/**
|
|
8
|
+
* Directive that will disable the action after the action completes successfully.
|
|
9
|
+
*/
|
|
10
|
+
export declare class DbxActionDisabledOnSuccessDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
|
|
11
|
+
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
12
|
+
private _disableOnSuccess;
|
|
13
|
+
readonly disableOnSuccess$: import("rxjs").Observable<boolean>;
|
|
14
|
+
constructor(source: DbxActionContextStoreSourceInstance<T, O>);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
get disabled(): boolean;
|
|
18
|
+
set disabled(disabled: Maybe<boolean | ''>);
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, [{ host: true; }]>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, "[dbxActionDisabledOnSuccess]", never, { "disabled": "dbxActionDisabledOnSuccess"; }, {}, never, never, false>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { AbstractIfDirective } from '../../../view/if.directive';
|
|
4
|
+
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Structural directive that displays the content before the store has success.
|
|
8
|
+
*
|
|
9
|
+
* Can be configured to hide for a temporary period.
|
|
10
|
+
*/
|
|
11
|
+
export declare class DbxActionPreSuccessDirective extends AbstractIfDirective implements OnDestroy {
|
|
12
|
+
readonly source: DbxActionContextStoreSourceInstance;
|
|
13
|
+
hideFor?: Maybe<number> | '';
|
|
14
|
+
readonly show$: import("rxjs").Observable<boolean>;
|
|
15
|
+
constructor(templateRef: TemplateRef<unknown>, viewContainer: ViewContainerRef, source: DbxActionContextStoreSourceInstance);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionPreSuccessDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionPreSuccessDirective, "[dbxActionPreSuccess]", never, { "hideFor": "dbxActionPreSuccess"; }, {}, never, never, false>;
|
|
18
|
+
}
|
|
@@ -5,6 +5,8 @@ import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Structural directive that displays the content when the store has a success value.
|
|
8
|
+
*
|
|
9
|
+
* Can be configured to show for a temporary period.
|
|
8
10
|
*/
|
|
9
11
|
export declare class DbxActionHasSuccessDirective extends AbstractIfDirective implements OnDestroy {
|
|
10
12
|
readonly source: DbxActionContextStoreSourceInstance;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './action.disabled.directive';
|
|
2
|
+
export * from './action.disableonsuccess.directive';
|
|
2
3
|
export * from './action.handler.directive';
|
|
4
|
+
export * from './action.presuccess.directive';
|
|
3
5
|
export * from './action.success.directive';
|
|
4
6
|
export * from './action.success.handler.directive';
|
|
5
7
|
export * from './action.value.directive';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-core",
|
|
3
|
-
"version": "9.15.
|
|
3
|
+
"version": "9.15.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.0.0",
|
|
6
6
|
"@angular/core": "^14.0.0",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"@ngrx/effects": "^14.0.0",
|
|
10
10
|
"@ngrx/entity": "^14.0.0",
|
|
11
11
|
"@ngrx/store": "^14.0.0",
|
|
12
|
-
"@dereekb/util": "9.15.
|
|
13
|
-
"@dereekb/rxjs": "9.15.
|
|
12
|
+
"@dereekb/util": "9.15.4",
|
|
13
|
+
"@dereekb/rxjs": "9.15.4",
|
|
14
14
|
"@angular/platform-browser": "^14.0.0",
|
|
15
15
|
"@uirouter/core": "^6.0.8",
|
|
16
16
|
"date-fns": "^2.29.0",
|
|
17
|
-
"@dereekb/date": "9.15.
|
|
17
|
+
"@dereekb/date": "9.15.4",
|
|
18
18
|
"@angular/router": "^14.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|