@dereekb/dbx-core 11.1.7 → 12.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.
- package/esm2022/lib/action/action.holder.mjs +1 -1
- package/esm2022/lib/action/action.machine.mjs +5 -5
- package/esm2022/lib/action/action.mjs +1 -1
- package/esm2022/lib/action/action.module.mjs +14 -13
- package/esm2022/lib/action/action.store.mjs +22 -10
- package/esm2022/lib/action/action.store.source.mjs +4 -1
- package/esm2022/lib/action/directive/auto/action.automodify.directive.mjs +24 -32
- package/esm2022/lib/action/directive/auto/action.autotrigger.directive.mjs +74 -87
- package/esm2022/lib/action/directive/auto/index.mjs +1 -2
- package/esm2022/lib/action/directive/context/action.directive.mjs +7 -6
- package/esm2022/lib/action/directive/context/action.source.directive.mjs +12 -25
- package/esm2022/lib/action/directive/debug/action.logger.directive.mjs +6 -5
- package/esm2022/lib/action/directive/map/action.map.directive.mjs +21 -65
- package/esm2022/lib/action/directive/map/action.map.key.directive.mjs +9 -8
- package/esm2022/lib/action/directive/map/action.map.mjs +54 -1
- package/esm2022/lib/action/directive/map/action.map.source.directive.mjs +10 -9
- package/esm2022/lib/action/directive/map/action.map.utility.mjs +37 -0
- package/esm2022/lib/action/directive/map/action.map.working.disable.directive.mjs +16 -16
- package/esm2022/lib/action/directive/map/index.mjs +2 -1
- package/esm2022/lib/action/directive/state/action.disabled.directive.mjs +6 -5
- package/esm2022/lib/action/directive/state/action.disableonsuccess.directive.mjs +6 -5
- package/esm2022/lib/action/directive/state/action.enforce.modified.directive.mjs +6 -5
- package/esm2022/lib/action/directive/state/action.handler.directive.mjs +29 -43
- package/esm2022/lib/action/directive/state/action.handler.instance.mjs +12 -14
- package/esm2022/lib/action/directive/state/action.presuccess.directive.mjs +6 -5
- package/esm2022/lib/action/directive/state/action.success.directive.mjs +6 -5
- package/esm2022/lib/action/directive/state/action.success.handler.directive.mjs +12 -23
- package/esm2022/lib/action/directive/state/action.value.directive.mjs +23 -24
- package/esm2022/lib/action/directive/state/action.value.stream.directive.mjs +22 -36
- package/esm2022/lib/action/directive/state/action.value.trigger.directive.mjs +50 -42
- package/esm2022/lib/action/directive/state/action.value.trigger.instance.mjs +27 -15
- package/esm2022/lib/action/directive/state/action.working.directive.mjs +35 -0
- package/esm2022/lib/action/directive/state/index.mjs +3 -2
- package/esm2022/lib/auth/auth.module.mjs +13 -7
- package/esm2022/lib/auth/auth.providers.mjs +16 -0
- package/esm2022/lib/auth/auth.role.any.directive.mjs +13 -14
- package/esm2022/lib/auth/auth.role.has.directive.mjs +13 -14
- package/esm2022/lib/auth/auth.role.not.directive.mjs +13 -14
- package/esm2022/lib/auth/auth.state.providers.mjs +14 -0
- package/esm2022/lib/auth/auth.state.service.mjs +3 -3
- package/esm2022/lib/auth/index.mjs +3 -2
- package/esm2022/lib/auth/router/auth.router.module.mjs +4 -4
- package/esm2022/lib/auth/router/auth.router.providers.mjs +19 -0
- package/esm2022/lib/auth/router/auth.router.service.mjs +5 -5
- package/esm2022/lib/auth/router/index.mjs +2 -1
- package/esm2022/lib/auth/router/provider/uirouter/hook.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/redirect.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/role.hook.mjs +1 -1
- package/esm2022/lib/auth/router/provider/uirouter/state.hook.mjs +1 -1
- package/esm2022/lib/auth/router/state/auth.router.state.module.mjs +10 -9
- package/esm2022/lib/auth/router/state/auth.router.state.providers.mjs +23 -0
- package/esm2022/lib/auth/router/state/effect/auth.router.state.effect.mjs +4 -4
- package/esm2022/lib/auth/router/state/index.mjs +2 -1
- package/esm2022/lib/auth/state/effect/auth.effect.mjs +5 -5
- package/esm2022/lib/button/action/action.button.directive.mjs +9 -12
- package/esm2022/lib/button/action/action.button.trigger.directive.mjs +7 -6
- package/esm2022/lib/button/button.directive.mjs +51 -60
- package/esm2022/lib/button/button.loading.directive.mjs +19 -20
- package/esm2022/lib/button/button.mjs +3 -3
- package/esm2022/lib/button/button.module.mjs +16 -8
- package/esm2022/lib/button/router/button.segue.directive.mjs +8 -7
- package/esm2022/lib/context/context.directive.mjs +7 -6
- package/esm2022/lib/context/context.mjs +8 -5
- package/esm2022/lib/context/context.module.mjs +9 -10
- package/esm2022/lib/context/context.providers.mjs +12 -0
- package/esm2022/lib/context/context.service.mjs +3 -3
- package/esm2022/lib/context/index.mjs +2 -1
- package/esm2022/lib/environment/environment.mjs +6 -0
- package/esm2022/lib/environment/environment.providers.mjs +19 -0
- package/esm2022/lib/environment/environment.service.mjs +30 -0
- package/esm2022/lib/environment/index.mjs +4 -3
- package/esm2022/lib/filter/filter.abstract.connector.directive.mjs +4 -4
- package/esm2022/lib/filter/filter.abstract.source.directive.mjs +31 -20
- package/esm2022/lib/filter/filter.connect.source.directive.mjs +6 -5
- package/esm2022/lib/filter/filter.connector.directive.mjs +6 -5
- package/esm2022/lib/filter/filter.map.connector.directive.mjs +12 -18
- package/esm2022/lib/filter/filter.map.directive.mjs +6 -5
- package/esm2022/lib/filter/filter.map.instance.directive.mjs +13 -10
- package/esm2022/lib/filter/filter.map.source.directive.mjs +22 -18
- package/esm2022/lib/filter/filter.module.mjs +8 -10
- package/esm2022/lib/filter/filter.source.directive.mjs +6 -5
- package/esm2022/lib/injection/injection.array.component.mjs +18 -31
- package/esm2022/lib/injection/injection.component.mjs +17 -23
- package/esm2022/lib/injection/injection.component.module.mjs +13 -9
- package/esm2022/lib/injection/injection.context.directive.mjs +7 -6
- package/esm2022/lib/injection/injection.context.forward.directive.mjs +3 -3
- package/esm2022/lib/injection/injection.directive.mjs +4 -4
- package/esm2022/lib/injection/injection.instance.mjs +7 -4
- package/esm2022/lib/injection/injection.mjs +1 -1
- package/esm2022/lib/injection/injection.rxjs.mjs +1 -1
- package/esm2022/lib/ngrx/store.lockset.mjs +6 -6
- package/esm2022/lib/pipe/async/asobservable.pipe.mjs +8 -5
- package/esm2022/lib/pipe/async/async.pipe.module.mjs +10 -7
- package/esm2022/lib/pipe/date/date.pipe.module.mjs +29 -8
- package/esm2022/lib/pipe/date/datedayrange.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/datedaytimerange.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/datedistance.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/dateformatdistance.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/datefromtoformat.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/daterangedistance.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/datetimerange.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/datetimerangeonly.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/datetimerangeonlydistance.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/minutesstring.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/systemdatetotargetdate.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/targetdatetosystemdate.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/timedistance.pipe.mjs +17 -9
- package/esm2022/lib/pipe/date/timezoneabbreviation.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/tojsdate.pipe.mjs +9 -5
- package/esm2022/lib/pipe/date/tominutes.pipe.mjs +9 -5
- package/esm2022/lib/pipe/misc/misc.pipe.module.mjs +12 -7
- package/esm2022/lib/pipe/misc/prettyjson.pipe.mjs +8 -5
- package/esm2022/lib/pipe/pipe.module.mjs +13 -6
- package/esm2022/lib/pipe/value/cuttext.pipe.mjs +9 -5
- package/esm2022/lib/pipe/value/dollar.pipe.mjs +9 -5
- package/esm2022/lib/pipe/value/getvalue.pipe.mjs +9 -7
- package/esm2022/lib/pipe/value/value.pipe.module.mjs +16 -8
- package/esm2022/lib/router/anchor/anchor.directive.mjs +12 -5
- package/esm2022/lib/router/anchor/anchor.mjs +7 -20
- package/esm2022/lib/router/anchor/clickable.mjs +1 -1
- package/esm2022/lib/router/auth/hook/id.hook.mjs +1 -1
- package/esm2022/lib/router/model/id.param.redirect.mjs +1 -1
- package/esm2022/lib/router/model/model.module.mjs +15 -9
- package/esm2022/lib/router/model/model.router.id.directive.mjs +6 -5
- package/esm2022/lib/router/model/model.router.key.directive.mjs +6 -5
- package/esm2022/lib/router/model/model.router.uid.directive.mjs +6 -5
- package/esm2022/lib/router/router/provider/angular/angular.router.service.mjs +4 -4
- package/esm2022/lib/router/router/provider/angular/angular.router.service.module.mjs +7 -6
- package/esm2022/lib/router/router/provider/uirouter/index.mjs +2 -1
- package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.mjs +5 -5
- package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +8 -5
- package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.providers.mjs +24 -0
- package/esm2022/lib/router/router/service/router.service.rxjs.mjs +1 -1
- package/esm2022/lib/router/router/transition/transition.directive.mjs +3 -3
- package/esm2022/lib/router/router/transition/transition.watcher.directive.mjs +4 -4
- package/esm2022/lib/router/router/util/route.default.mjs +1 -1
- package/esm2022/lib/router/segue.mjs +1 -1
- package/esm2022/lib/storage/index.mjs +2 -2
- package/esm2022/lib/storage/storage.accessor.simple.factory.mjs +3 -3
- package/esm2022/lib/storage/storage.accessor.simple.mjs +1 -1
- package/esm2022/lib/storage/storage.object.localstorage.mjs +1 -1
- package/esm2022/lib/storage/storage.providers.mjs +41 -0
- package/esm2022/lib/subscription/subscription.directive.mjs +7 -7
- package/esm2022/lib/util/view.mjs +9 -1
- package/esm2022/lib/view/if.directive.mjs +4 -4
- package/fesm2022/dereekb-dbx-core.mjs +2483 -2234
- package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.module.d.ts +5 -3
- package/lib/action/action.store.d.ts +18 -9
- package/lib/action/action.store.source.d.ts +1 -0
- package/lib/action/directive/auto/action.automodify.directive.d.ts +4 -6
- package/lib/action/directive/auto/action.autotrigger.directive.d.ts +15 -32
- package/lib/action/directive/auto/index.d.ts +0 -1
- package/lib/action/directive/context/action.directive.d.ts +1 -1
- package/lib/action/directive/context/action.source.directive.d.ts +3 -7
- package/lib/action/directive/debug/action.logger.directive.d.ts +1 -1
- package/lib/action/directive/map/action.map.d.ts +31 -1
- package/lib/action/directive/map/action.map.directive.d.ts +4 -24
- package/lib/action/directive/map/action.map.key.directive.d.ts +3 -3
- package/lib/action/directive/map/action.map.source.directive.d.ts +2 -2
- package/lib/action/directive/map/action.map.utility.d.ts +48 -0
- package/lib/action/directive/map/action.map.working.disable.directive.d.ts +4 -4
- package/lib/action/directive/map/index.d.ts +1 -0
- package/lib/action/directive/state/action.disabled.directive.d.ts +1 -1
- package/lib/action/directive/state/action.disableonsuccess.directive.d.ts +1 -1
- package/lib/action/directive/state/action.enforce.modified.directive.d.ts +1 -1
- package/lib/action/directive/state/action.handler.directive.d.ts +12 -13
- package/lib/action/directive/state/action.handler.instance.d.ts +4 -4
- package/lib/action/directive/state/action.presuccess.directive.d.ts +1 -1
- package/lib/action/directive/state/action.success.directive.d.ts +1 -1
- package/lib/action/directive/state/action.success.handler.directive.d.ts +2 -5
- package/lib/action/directive/state/action.value.directive.d.ts +10 -5
- package/lib/action/directive/state/action.value.stream.directive.d.ts +11 -11
- package/lib/action/directive/state/action.value.trigger.directive.d.ts +23 -17
- package/lib/action/directive/state/action.value.trigger.instance.d.ts +28 -17
- package/lib/action/directive/state/{action.working.component.d.ts → action.working.directive.d.ts} +1 -1
- package/lib/action/directive/state/index.d.ts +2 -1
- package/lib/auth/auth.module.d.ts +8 -1
- package/lib/auth/auth.providers.d.ts +12 -0
- package/lib/auth/auth.role.any.directive.d.ts +7 -7
- package/lib/auth/auth.role.has.directive.d.ts +7 -7
- package/lib/auth/auth.role.not.directive.d.ts +7 -7
- package/lib/auth/auth.state.providers.d.ts +7 -0
- package/lib/auth/index.d.ts +2 -1
- package/lib/auth/router/auth.router.providers.d.ts +18 -0
- package/lib/auth/router/index.d.ts +1 -0
- package/lib/auth/router/state/auth.router.state.module.d.ts +4 -2
- package/lib/auth/router/state/auth.router.state.providers.d.ts +19 -0
- package/lib/auth/router/state/index.d.ts +1 -0
- package/lib/auth/state/action/auth.action.d.ts +3 -3
- package/lib/auth/state/action/user.action.d.ts +4 -4
- package/lib/auth/state/effect/auth.effect.d.ts +9 -9
- package/lib/auth/state/reducer/user.reducer.d.ts +1 -1
- package/lib/button/action/action.button.directive.d.ts +3 -4
- package/lib/button/action/action.button.trigger.directive.d.ts +2 -2
- package/lib/button/button.d.ts +55 -14
- package/lib/button/button.directive.d.ts +25 -18
- package/lib/button/button.loading.directive.d.ts +7 -9
- package/lib/button/button.module.d.ts +9 -1
- package/lib/button/router/button.segue.directive.d.ts +4 -3
- package/lib/context/context.d.ts +7 -4
- package/lib/context/context.directive.d.ts +1 -1
- package/lib/context/context.module.d.ts +4 -2
- package/lib/context/context.providers.d.ts +7 -0
- package/lib/context/index.d.ts +1 -0
- package/lib/context/state/action/data.action.d.ts +2 -2
- package/lib/context/state/reducer/data.reducer.d.ts +1 -1
- package/lib/environment/environment.providers.d.ts +8 -0
- package/lib/environment/index.d.ts +3 -2
- package/lib/filter/filter.abstract.connector.directive.d.ts +1 -1
- package/lib/filter/filter.abstract.source.directive.d.ts +14 -10
- package/lib/filter/filter.connect.source.directive.d.ts +1 -1
- package/lib/filter/filter.connector.directive.d.ts +1 -1
- package/lib/filter/filter.map.connector.directive.d.ts +6 -6
- package/lib/filter/filter.map.directive.d.ts +1 -1
- package/lib/filter/filter.map.instance.directive.d.ts +4 -5
- package/lib/filter/filter.map.source.directive.d.ts +13 -6
- package/lib/filter/filter.module.d.ts +1 -2
- package/lib/filter/filter.source.directive.d.ts +1 -1
- package/lib/injection/injection.array.component.d.ts +3 -9
- package/lib/injection/injection.component.d.ts +8 -4
- package/lib/injection/injection.component.module.d.ts +8 -3
- package/lib/injection/injection.context.directive.d.ts +2 -2
- package/lib/injection/injection.d.ts +8 -8
- package/lib/injection/injection.directive.d.ts +4 -3
- package/lib/injection/injection.instance.d.ts +5 -4
- package/lib/pipe/async/asobservable.pipe.d.ts +1 -1
- package/lib/pipe/async/async.pipe.module.d.ts +4 -1
- package/lib/pipe/date/date.pipe.module.d.ts +22 -1
- package/lib/pipe/date/datedayrange.pipe.d.ts +1 -1
- package/lib/pipe/date/datedaytimerange.pipe.d.ts +1 -1
- package/lib/pipe/date/datedistance.pipe.d.ts +1 -1
- package/lib/pipe/date/dateformatdistance.pipe.d.ts +2 -2
- package/lib/pipe/date/datefromtoformat.pipe.d.ts +2 -2
- package/lib/pipe/date/daterangedistance.pipe.d.ts +1 -1
- package/lib/pipe/date/datetimerange.pipe.d.ts +1 -1
- package/lib/pipe/date/datetimerangeonly.pipe.d.ts +1 -1
- package/lib/pipe/date/datetimerangeonlydistance.pipe.d.ts +1 -1
- package/lib/pipe/date/minutesstring.pipe.d.ts +1 -1
- package/lib/pipe/date/systemdatetotargetdate.pipe.d.ts +1 -1
- package/lib/pipe/date/targetdatetosystemdate.pipe.d.ts +1 -1
- package/lib/pipe/date/timedistance.pipe.d.ts +2 -2
- package/lib/pipe/date/timezoneabbreviation.pipe.d.ts +1 -1
- package/lib/pipe/date/tojsdate.pipe.d.ts +1 -1
- package/lib/pipe/date/tominutes.pipe.d.ts +1 -1
- package/lib/pipe/misc/misc.pipe.module.d.ts +6 -1
- package/lib/pipe/misc/prettyjson.pipe.d.ts +1 -1
- package/lib/pipe/pipe.module.d.ts +6 -1
- package/lib/pipe/value/cuttext.pipe.d.ts +1 -1
- package/lib/pipe/value/dollar.pipe.d.ts +1 -1
- package/lib/pipe/value/getvalue.pipe.d.ts +2 -2
- package/lib/pipe/value/value.pipe.module.d.ts +9 -1
- package/lib/router/anchor/anchor.d.ts +26 -28
- package/lib/router/anchor/anchor.directive.d.ts +12 -6
- package/lib/router/anchor/clickable.d.ts +3 -3
- package/lib/router/model/model.module.d.ts +8 -1
- package/lib/router/model/model.router.id.directive.d.ts +1 -1
- package/lib/router/model/model.router.key.directive.d.ts +1 -1
- package/lib/router/model/model.router.uid.directive.d.ts +1 -1
- package/lib/router/router/provider/angular/angular.router.service.d.ts +2 -1
- package/lib/router/router/provider/uirouter/index.d.ts +1 -0
- package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +2 -1
- package/lib/router/router/provider/uirouter/uirouter.router.service.module.d.ts +3 -0
- package/lib/router/router/provider/uirouter/uirouter.router.service.providers.d.ts +7 -0
- package/lib/router/router/transition/transition.watcher.directive.d.ts +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/storage.providers.d.ts +13 -0
- package/lib/subscription/subscription.directive.d.ts +8 -8
- package/lib/util/view.d.ts +8 -0
- package/package.json +8 -8
- package/esm2022/lib/action/directive/state/action.working.component.mjs +0 -34
- package/esm2022/lib/auth/auth.state.module.mjs +0 -22
- package/esm2022/lib/environment/service/environment.mjs +0 -6
- package/esm2022/lib/environment/service/environment.service.mjs +0 -33
- package/esm2022/lib/storage/storage.module.mjs +0 -41
- package/lib/auth/auth.state.module.d.ts +0 -8
- package/lib/storage/storage.module.d.ts +0 -10
- /package/lib/environment/{service/environment.d.ts → environment.d.ts} +0 -0
- /package/lib/environment/{service/environment.service.d.ts → environment.service.d.ts} +0 -0
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit, Signal } from '@angular/core';
|
|
2
2
|
import { type Maybe } from '@dereekb/util';
|
|
3
|
-
import {
|
|
3
|
+
import { Subject, BehaviorSubject } from 'rxjs';
|
|
4
4
|
import { AbstractSubscriptionDirective } from '../subscription';
|
|
5
|
-
import { DbxButton,
|
|
5
|
+
import { DbxButton, DbxButtonDisplay, DbxButtonDisplayType, DbxButtonInterceptor } from './button';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Abstract button component.
|
|
9
9
|
*/
|
|
10
10
|
export declare abstract class AbstractDbxButtonDirective extends AbstractSubscriptionDirective implements DbxButton, OnInit, OnDestroy {
|
|
11
|
-
private readonly _disabled;
|
|
12
|
-
private readonly _working;
|
|
13
11
|
/**
|
|
14
12
|
* Pre-interceptor button click.
|
|
15
13
|
*/
|
|
16
14
|
protected readonly _buttonClick: Subject<void>;
|
|
17
15
|
protected readonly _buttonInterceptor: BehaviorSubject<Maybe<DbxButtonInterceptor>>;
|
|
16
|
+
readonly buttonClick: import("@angular/core").OutputEmitterRef<void>;
|
|
17
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean>>;
|
|
18
|
+
readonly working: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean>>;
|
|
19
|
+
readonly buttonDisplay: import("@angular/core").InputSignal<Maybe<DbxButtonDisplay>>;
|
|
20
|
+
private readonly _disabledSignal;
|
|
21
|
+
private readonly _workingSignal;
|
|
22
|
+
private readonly _buttonDisplayContentSignal;
|
|
23
|
+
readonly disabledSignal: Signal<boolean>;
|
|
24
|
+
readonly workingSignal: Signal<boolean>;
|
|
25
|
+
readonly icon: import("@angular/core").InputSignal<Maybe<string>>;
|
|
26
|
+
readonly text: import("@angular/core").InputSignal<Maybe<string>>;
|
|
27
|
+
readonly buttonDisplayContentSignal: Signal<DbxButtonDisplay>;
|
|
28
|
+
readonly buttonDisplayTypeSignal: Signal<DbxButtonDisplayType>;
|
|
29
|
+
readonly iconSignal: Signal<Maybe<string>>;
|
|
30
|
+
readonly textSignal: Signal<Maybe<string>>;
|
|
18
31
|
readonly disabled$: import("rxjs").Observable<boolean>;
|
|
19
32
|
readonly working$: import("rxjs").Observable<boolean>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
get working(): boolean;
|
|
23
|
-
set working(working: Maybe<boolean>);
|
|
24
|
-
icon?: Maybe<string>;
|
|
25
|
-
text?: Maybe<string>;
|
|
26
|
-
get buttonDisplay(): DbxButtonDisplayContent;
|
|
27
|
-
set buttonDisplay(buttonDisplay: Maybe<DbxButtonDisplayContent>);
|
|
28
|
-
get buttonDisplayType(): DbxButtonDisplayContentType;
|
|
29
|
-
readonly buttonClick: EventEmitter<any>;
|
|
30
|
-
readonly clicked$: import("rxjs").Observable<any>;
|
|
33
|
+
readonly display$: import("rxjs").Observable<DbxButtonDisplay>;
|
|
34
|
+
readonly clicked$: import("rxjs").Observable<void>;
|
|
31
35
|
ngOnInit(): void;
|
|
32
36
|
ngOnDestroy(): void;
|
|
37
|
+
setDisabled(disabled?: Maybe<boolean>): void;
|
|
38
|
+
setWorking(working?: Maybe<boolean>): void;
|
|
39
|
+
setDisplayContent(content: DbxButtonDisplay): void;
|
|
33
40
|
/**
|
|
34
41
|
* Sets the button interceptor. If any interceptor is already set, it is replaced.
|
|
35
42
|
*/
|
|
@@ -43,12 +50,12 @@ export declare abstract class AbstractDbxButtonDirective extends AbstractSubscri
|
|
|
43
50
|
*/
|
|
44
51
|
protected _forceButtonClicked(): void;
|
|
45
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxButtonDirective, never>;
|
|
46
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxButtonDirective, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "working": { "alias": "working"; "required": false; }; "
|
|
53
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxButtonDirective, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "working": { "alias": "working"; "required": false; "isSignal": true; }; "buttonDisplay": { "alias": "buttonDisplay"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "buttonClick": "buttonClick"; }, never, never, false, never>;
|
|
47
54
|
}
|
|
48
55
|
/**
|
|
49
56
|
* Provides an DbxButton directive.
|
|
50
57
|
*/
|
|
51
58
|
export declare class DbxButtonDirective extends AbstractDbxButtonDirective {
|
|
52
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonDirective, never>;
|
|
53
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonDirective, "[dbxButton]", ["dbxButton"], {}, {}, never, never,
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonDirective, "[dbxButton]", ["dbxButton"], {}, {}, never, never, true, never>;
|
|
54
61
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { AbstractSubscriptionDirective } from '../subscription';
|
|
1
|
+
import { LoadingContext, MaybeObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
+
import { AbstractSubscriptionDirective } from '../subscription/subscription.directive';
|
|
4
3
|
import { DbxButton } from './button';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
@@ -10,11 +9,10 @@ import * as i0 from "@angular/core";
|
|
|
10
9
|
*/
|
|
11
10
|
export declare class DbxLoadingButtonDirective extends AbstractSubscriptionDirective {
|
|
12
11
|
readonly dbxButton: DbxButton;
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
set context(context: LoadingContext);
|
|
12
|
+
readonly context: import("@angular/core").InputSignal<MaybeObservableOrValue<LoadingContext<import("@dereekb/rxjs").LoadingContextEvent>>>;
|
|
13
|
+
readonly context$: import("rxjs").Observable<import("dist/packages/util/src").Maybe<LoadingContext<import("@dereekb/rxjs").LoadingContextEvent>>>;
|
|
14
|
+
readonly contextSignal: import("@angular/core").Signal<import("dist/packages/util/src").Maybe<LoadingContext<import("@dereekb/rxjs").LoadingContextEvent>>>;
|
|
15
|
+
protected readonly _loadingEffect: import("@angular/core").EffectRef;
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxLoadingButtonDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxLoadingButtonDirective, "[dbxLoadingButton]", never, { "context": { "alias": "dbxLoadingButton"; "required":
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxLoadingButtonDirective, "[dbxLoadingButton]", never, { "context": { "alias": "dbxLoadingButton"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
18
|
}
|
|
@@ -4,8 +4,16 @@ import * as i2 from "./button.loading.directive";
|
|
|
4
4
|
import * as i3 from "./action/action.button.trigger.directive";
|
|
5
5
|
import * as i4 from "./action/action.button.directive";
|
|
6
6
|
import * as i5 from "./router/button.segue.directive";
|
|
7
|
+
/**
|
|
8
|
+
* Exports the following directives:
|
|
9
|
+
* - DbxButtonDirective
|
|
10
|
+
* - DbxLoadingButtonDirective
|
|
11
|
+
* - DbxActionButtonTriggerDirective
|
|
12
|
+
* - DbxActionButtonDirective
|
|
13
|
+
* - DbxButtonSegueDirective
|
|
14
|
+
*/
|
|
7
15
|
export declare class DbxCoreButtonModule {
|
|
8
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreButtonModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreButtonModule, [typeof i1.DbxButtonDirective, typeof i2.DbxLoadingButtonDirective, typeof i3.DbxActionButtonTriggerDirective, typeof i4.DbxActionButtonDirective, typeof i5.DbxButtonSegueDirective],
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreButtonModule, never, [typeof i1.DbxButtonDirective, typeof i2.DbxLoadingButtonDirective, typeof i3.DbxActionButtonTriggerDirective, typeof i4.DbxActionButtonDirective, typeof i5.DbxButtonSegueDirective], [typeof i1.DbxButtonDirective, typeof i2.DbxLoadingButtonDirective, typeof i3.DbxActionButtonTriggerDirective, typeof i4.DbxActionButtonDirective, typeof i5.DbxButtonSegueDirective]>;
|
|
10
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreButtonModule>;
|
|
11
19
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type Maybe } from '@dereekb/util';
|
|
3
|
-
import { AbstractSubscriptionDirective } from '../../subscription';
|
|
3
|
+
import { AbstractSubscriptionDirective } from '../../subscription/subscription.directive';
|
|
4
4
|
import { DbxButton } from '../button';
|
|
5
|
-
import {
|
|
5
|
+
import { DbxRouterService } from '../../router/router/service/router.service';
|
|
6
|
+
import { SegueRef } from '../../router/segue';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class DbxButtonSegueDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
|
|
8
9
|
readonly dbxButton: DbxButton;
|
|
@@ -14,5 +15,5 @@ export declare class DbxButtonSegueDirective extends AbstractSubscriptionDirecti
|
|
|
14
15
|
ngOnInit(): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonSegueDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSegueDirective, "[dbxButtonSegue]", never, { "segueRef": { "alias": "dbxButtonSegue"; "required": false; }; }, {}, never, never,
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSegueDirective, "[dbxButtonSegue]", never, { "segueRef": { "alias": "dbxButtonSegue"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
19
|
}
|
package/lib/context/context.d.ts
CHANGED
|
@@ -10,21 +10,24 @@
|
|
|
10
10
|
* More complex apps may have more sub-sections or app portions that could each have their own context state.
|
|
11
11
|
*/
|
|
12
12
|
export type DbxAppContextState = string;
|
|
13
|
+
/**
|
|
14
|
+
* The init state of an app after the default context has been initialized.
|
|
15
|
+
*/
|
|
13
16
|
export declare const DBX_INIT_APP_CONTEXT_STATE = "init";
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
18
|
+
* The public state of an app, typically when a user opens up the site to a public page.
|
|
16
19
|
*/
|
|
17
20
|
export declare const DBX_PUBLIC_APP_CONTEXT_STATE = "public";
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
22
|
+
* The auth state of an app, typically when a user has not finished logging in.
|
|
20
23
|
*/
|
|
21
24
|
export declare const DBX_AUTH_APP_CONTEXT_STATE = "auth";
|
|
22
25
|
/**
|
|
23
|
-
*
|
|
26
|
+
* The onboarding state of an app, typically when a user has completed auth but not finished setting up their account.
|
|
24
27
|
*/
|
|
25
28
|
export declare const DBX_ONBOARD_APP_CONTEXT_STATE = "onboard";
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
30
|
+
* The app state of an app, typically when a user has completed auth and onboarding.
|
|
28
31
|
*/
|
|
29
32
|
export declare const DBX_APP_APP_CONTEXT_STATE = "app";
|
|
30
33
|
/**
|
|
@@ -15,5 +15,5 @@ export declare class DbxAppContextStateDirective extends AbstractSubscriptionDir
|
|
|
15
15
|
ngOnDestroy(): void;
|
|
16
16
|
set state(state: Maybe<DbxAppContextState>);
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppContextStateDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAppContextStateDirective, "[dbxAppContextState]", never, { "state": { "alias": "dbxAppContextState"; "required": false; }; }, {}, never, never,
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAppContextStateDirective, "[dbxAppContextState]", never, { "state": { "alias": "dbxAppContextState"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./context.directive";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use provideDbxAppContextState() and import DbxAppContextStateDirective directly. DbxAppContextStateDirective is now standalone.
|
|
5
|
+
*/
|
|
4
6
|
export declare class DbxAppContextStateModule {
|
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppContextStateModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxAppContextStateModule, [typeof i1.DbxAppContextStateDirective], [typeof
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxAppContextStateModule, never, [typeof i1.DbxAppContextStateDirective], [typeof i1.DbxAppContextStateDirective]>;
|
|
7
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxAppContextStateModule>;
|
|
8
10
|
}
|
package/lib/context/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export declare const setState: import("@ngrx/store").ActionCreator<"[App/Context
|
|
|
6
6
|
state: DbxAppContextState;
|
|
7
7
|
}) => {
|
|
8
8
|
state: DbxAppContextState;
|
|
9
|
-
} & import("@ngrx/store
|
|
9
|
+
} & import("@ngrx/store").Action<"[App/Context] Set State">>;
|
|
10
10
|
/**
|
|
11
11
|
* Resets the app back to the init context.
|
|
12
12
|
*/
|
|
13
|
-
export declare const resetState: import("@ngrx/store").ActionCreator<"[App/Context] Reset", () => import("@ngrx/store
|
|
13
|
+
export declare const resetState: import("@ngrx/store").ActionCreator<"[App/Context] Reset", () => import("@ngrx/store").Action<"[App/Context] Reset">>;
|
|
@@ -10,4 +10,4 @@ export interface DbxAppContextStateData {
|
|
|
10
10
|
state: DbxAppContextState;
|
|
11
11
|
}
|
|
12
12
|
export declare const initialState: DbxAppContextStateData;
|
|
13
|
-
export declare const reducer: import("@ngrx/store").ActionReducer<DbxAppContextStateData, import("@ngrx/store").Action
|
|
13
|
+
export declare const reducer: import("@ngrx/store").ActionReducer<DbxAppContextStateData, import("@ngrx/store").Action<string>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { DbxAppEnviroment } from './environment';
|
|
3
|
+
/**
|
|
4
|
+
* Provides the DbxAppEnviromentService and DbxAppEnviroment.
|
|
5
|
+
*
|
|
6
|
+
* @param environment
|
|
7
|
+
*/
|
|
8
|
+
export declare function provideDbxAppEnviroment(environment: DbxAppEnviroment): EnvironmentProviders;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './environment';
|
|
2
|
+
export * from './environment.service';
|
|
3
|
+
export * from './environment.providers';
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Abstract FilterSourceConnector directive.
|
|
7
7
|
*/
|
|
8
8
|
export declare abstract class AbstractFilterSourceConnectorDirective<F> implements FilterSourceConnector<F>, FilterSource<F>, OnDestroy {
|
|
9
|
-
private _source;
|
|
9
|
+
private readonly _source;
|
|
10
10
|
readonly filter$: Observable<F>;
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
connectWithSource(filterSource: FilterSource<F>): void;
|
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
3
|
-
import { FilterSource, FilterSourceInstance,
|
|
2
|
+
import { InjectionToken, Injector, OnDestroy, Provider, Type } from '@angular/core';
|
|
3
|
+
import { FilterSource, FilterSourceInstance, MaybeObservableOrValue } from '@dereekb/rxjs';
|
|
4
4
|
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const FILTER_SOURCE_DIRECTIVE_DEFAULT_FILTER_TOKEN: InjectionToken<Maybe<Observable<unknown>>>;
|
|
6
7
|
export declare abstract class FilterSourceDirective<F = unknown> implements FilterSource<F> {
|
|
7
|
-
abstract filter$: Observable<F>;
|
|
8
|
+
abstract readonly filter$: Observable<F>;
|
|
8
9
|
abstract initWithFilter(filterObs: Observable<F>): void;
|
|
9
10
|
abstract setFilter(filter: F): void;
|
|
10
11
|
abstract resetFilter(): void;
|
|
11
12
|
}
|
|
13
|
+
export type ProvideFilterSourceDirectiveDefaultFilterFactoryFunction<F = unknown> = (injector: Injector) => MaybeObservableOrValue<F>;
|
|
12
14
|
/**
|
|
13
15
|
* Angular provider convenience function for a FilterSourceDirective.
|
|
14
16
|
*/
|
|
15
|
-
export declare function provideFilterSourceDirective<S extends FilterSourceDirective<F>, F = unknown>(sourceType: Type<S
|
|
17
|
+
export declare function provideFilterSourceDirective<S extends FilterSourceDirective<F>, F = unknown>(sourceType: Type<S>, defaultFilterFactory?: ProvideFilterSourceDirectiveDefaultFilterFactoryFunction): Provider[];
|
|
16
18
|
/**
|
|
17
19
|
* Abstract FilterSource implementation and directive.
|
|
18
20
|
*/
|
|
19
|
-
export declare abstract class AbstractFilterSourceDirective<F = unknown> implements FilterSourceDirective<F>,
|
|
20
|
-
|
|
21
|
-
protected _defaultFilterSource: FilterSourceInstance<F>;
|
|
21
|
+
export declare abstract class AbstractFilterSourceDirective<F = unknown> implements FilterSourceDirective<F>, OnDestroy {
|
|
22
|
+
private readonly _defaultFilter;
|
|
23
|
+
protected readonly _defaultFilterSource: FilterSourceInstance<F>;
|
|
22
24
|
readonly filter$: Observable<F>;
|
|
23
|
-
ngOnInit(): void;
|
|
24
25
|
ngOnDestroy(): void;
|
|
26
|
+
protected setDefaultFilter(defaultFilter: Observable<Maybe<F>>): void;
|
|
25
27
|
initWithFilter(filterObs: Observable<F>): void;
|
|
26
28
|
setFilter(filter: F): void;
|
|
27
29
|
resetFilter(): void;
|
|
28
|
-
|
|
30
|
+
setInitialFilterTakesPriority(initialFilterTakesPriority: boolean): void;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated use setInitialFilterTakesPriority() instead.
|
|
33
|
+
*/
|
|
29
34
|
set initialFilterTakesPriority(initialFilterTakesPriority: boolean);
|
|
30
|
-
protected makeDefaultFilter(): ObservableOrValue<Maybe<F>>;
|
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterSourceDirective<any>, never>;
|
|
32
36
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFilterSourceDirective<any>, never, never, {}, {}, never, never, false, never>;
|
|
33
37
|
}
|
|
@@ -9,5 +9,5 @@ export declare class DbxFilterConnectSourceDirective<F = unknown> implements OnI
|
|
|
9
9
|
readonly filterSourceConnector: FilterSourceConnector<any>;
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterConnectSourceDirective<any>, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterConnectSourceDirective<any>, "[dbxFilterConnectSource]", never, {}, {}, never, never,
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterConnectSourceDirective<any>, "[dbxFilterConnectSource]", never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -5,5 +5,5 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class DbxFilterSourceConnectorDirective<F = unknown> extends AbstractFilterSourceConnectorDirective<F> {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterSourceConnectorDirective<any>, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceConnectorDirective<any>, "[dbxFilterSourceConnector]", never, {}, {}, never, never,
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceConnectorDirective<any>, "[dbxFilterSourceConnector]", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { FilterSourceConnector, FilterSource
|
|
2
|
-
import {
|
|
1
|
+
import { FilterSourceConnector, FilterSource } from '@dereekb/rxjs';
|
|
2
|
+
import { AbstractDbxFilterMapSourceDirective } from './filter.map.source.directive';
|
|
3
3
|
import { type Maybe } from '@dereekb/util';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Acts as an "input" FilterSourceConnector for an FilterMap, as well as a source for the FilterSourceConnector.
|
|
7
7
|
*/
|
|
8
|
-
export declare class DbxFilterMapSourceConnectorDirective<F> extends
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare class DbxFilterMapSourceConnectorDirective<F> extends AbstractDbxFilterMapSourceDirective<F> implements FilterSourceConnector<F> {
|
|
9
|
+
readonly dbxFilterMapSourceConnector: import("@angular/core").InputSignal<Maybe<string>>;
|
|
10
|
+
protected readonly _dbxFilterMapSourceConnectorEffect: import("@angular/core").EffectRef;
|
|
11
11
|
connectWithSource(filterSource: FilterSource<F>): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapSourceConnectorDirective<any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceConnectorDirective<any>, "[dbxFilterMapSourceConnector]", ["dbxFilterMapSourceConnector"], { "
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceConnectorDirective<any>, "[dbxFilterMapSourceConnector]", ["dbxFilterMapSourceConnector"], { "dbxFilterMapSourceConnector": { "alias": "dbxFilterMapSourceConnector"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
14
|
}
|
|
@@ -8,5 +8,5 @@ export declare class DbxFilterMapDirective<F> implements OnDestroy {
|
|
|
8
8
|
readonly filterMap: FilterMap<any>;
|
|
9
9
|
ngOnDestroy(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapDirective<any>, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapDirective<any>, "[dbxFilterMap]", ["dbxFilterMap"], {}, {}, never, never,
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapDirective<any>, "[dbxFilterMap]", ["dbxFilterMap"], {}, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { FilterMap } from '@dereekb/rxjs';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
1
|
+
import { FilterMapKey, FilterMap, MaybeObservableOrValue } from '@dereekb/rxjs';
|
|
3
2
|
import { OnDestroy } from '@angular/core';
|
|
4
|
-
import { type Maybe } from '@dereekb/util';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
/**
|
|
7
5
|
* Provides a FilterSource from a parent FilterMap.
|
|
8
6
|
*/
|
|
9
7
|
export declare abstract class AbstractDbxFilterMapInstanceDirective<F> implements OnDestroy {
|
|
10
|
-
protected _key: BehaviorSubject<Maybe<string>>;
|
|
11
8
|
readonly dbxFilterMap: FilterMap<any>;
|
|
12
|
-
readonly
|
|
9
|
+
private readonly _currentFilterMapKey;
|
|
10
|
+
readonly filterMapKey$: import("rxjs").Observable<string>;
|
|
13
11
|
readonly instance$: import("rxjs").Observable<import("@dereekb/rxjs").FilterMapKeyInstance<any>>;
|
|
14
12
|
ngOnDestroy(): void;
|
|
13
|
+
setFilterMapKey(filterMapKey: MaybeObservableOrValue<FilterMapKey>): void;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxFilterMapInstanceDirective<any>, never>;
|
|
16
15
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxFilterMapInstanceDirective<any>, never, never, {}, {}, never, never, false, never>;
|
|
17
16
|
}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import { FilterSource
|
|
1
|
+
import { FilterSource } from '@dereekb/rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { AbstractDbxFilterMapInstanceDirective } from './filter.map.instance.directive';
|
|
4
4
|
import { type Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Abstract directive that extends AbstractDbxFilterMapInstanceDirective and implements FilterSource.
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
9
|
+
export declare abstract class AbstractDbxFilterMapSourceDirective<F> extends AbstractDbxFilterMapInstanceDirective<F> implements FilterSource<F> {
|
|
10
10
|
readonly filter$: Observable<F>;
|
|
11
|
-
get key(): Maybe<FilterMapKey>;
|
|
12
|
-
set key(key: Maybe<FilterMapKey>);
|
|
13
11
|
initWithFilter(filterObs: Observable<F>): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxFilterMapSourceDirective<any>, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxFilterMapSourceDirective<any>, never, never, {}, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Provides a FilterSource from a parent FilterMap.
|
|
17
|
+
*/
|
|
18
|
+
export declare class DbxFilterMapSourceDirective<F> extends AbstractDbxFilterMapSourceDirective<F> implements FilterSource<F> {
|
|
19
|
+
readonly dbxFilterMapSource: import("@angular/core").InputSignal<Maybe<string>>;
|
|
20
|
+
protected readonly _dbxFilterMapSourceEffect: import("@angular/core").EffectRef;
|
|
14
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapSourceDirective<any>, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceDirective<any>, "[dbxFilterMapSource]", ["dbxFilterMapSource"], { "
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceDirective<any>, "[dbxFilterMapSource]", ["dbxFilterMapSource"], { "dbxFilterMapSource": { "alias": "dbxFilterMapSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
23
|
}
|
|
@@ -5,9 +5,8 @@ import * as i3 from "./filter.connect.source.directive";
|
|
|
5
5
|
import * as i4 from "./filter.connector.directive";
|
|
6
6
|
import * as i5 from "./filter.map.directive";
|
|
7
7
|
import * as i6 from "./filter.map.source.directive";
|
|
8
|
-
import * as i7 from "@angular/common";
|
|
9
8
|
export declare class DbxCoreFilterModule {
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreFilterModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreFilterModule, [typeof i1.DbxFilterSourceDirective, typeof i2.DbxFilterMapSourceConnectorDirective, typeof i3.DbxFilterConnectSourceDirective, typeof i4.DbxFilterSourceConnectorDirective, typeof i5.DbxFilterMapDirective, typeof i6.DbxFilterMapSourceDirective], [typeof
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreFilterModule, never, [typeof i1.DbxFilterSourceDirective, typeof i2.DbxFilterMapSourceConnectorDirective, typeof i3.DbxFilterConnectSourceDirective, typeof i4.DbxFilterSourceConnectorDirective, typeof i5.DbxFilterMapDirective, typeof i6.DbxFilterMapSourceDirective], [typeof i1.DbxFilterSourceDirective, typeof i2.DbxFilterMapSourceConnectorDirective, typeof i3.DbxFilterConnectSourceDirective, typeof i4.DbxFilterSourceConnectorDirective, typeof i5.DbxFilterMapDirective, typeof i6.DbxFilterMapSourceDirective]>;
|
|
12
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreFilterModule>;
|
|
13
12
|
}
|
|
@@ -5,5 +5,5 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class DbxFilterSourceDirective<F> extends AbstractFilterSourceDirective<F> {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterSourceDirective<any>, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceDirective<any>, "[dbxFilterSource]", never, {}, {}, never, never,
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceDirective<any>, "[dbxFilterSource]", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { OnDestroy, TrackByFunction } from '@angular/core';
|
|
2
1
|
import { DbxInjectionArrayEntry } from './injection.array';
|
|
3
2
|
import { type Maybe } from '@dereekb/util';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Component that injects content based on the configuration into the view.
|
|
7
6
|
*/
|
|
8
|
-
export declare class DbxInjectionArrayComponent
|
|
9
|
-
|
|
10
|
-
readonly entries$: import("rxjs").Observable<DbxInjectionArrayEntry<unknown>[]>;
|
|
11
|
-
readonly trackByKeyFn: TrackByFunction<DbxInjectionArrayEntry>;
|
|
12
|
-
ngOnDestroy(): void;
|
|
13
|
-
get entries(): DbxInjectionArrayEntry[];
|
|
14
|
-
set entries(entries: Maybe<DbxInjectionArrayEntry[]>);
|
|
7
|
+
export declare class DbxInjectionArrayComponent {
|
|
8
|
+
readonly entries: import("@angular/core").InputSignal<Maybe<DbxInjectionArrayEntry<unknown>[]>>;
|
|
15
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionArrayComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxInjectionArrayComponent, "dbx-injection-array", never, { "entries": { "alias": "entries"; "required": false; }; }, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxInjectionArrayComponent, "dbx-injection-array", never, { "entries": { "alias": "entries"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
11
|
}
|
|
@@ -2,14 +2,18 @@ import { ViewContainerRef } from '@angular/core';
|
|
|
2
2
|
import { DbxInjectionComponentConfig, DbxInjectionTemplateConfig } from './injection';
|
|
3
3
|
import { AbstractDbxInjectionDirective } from './injection.directive';
|
|
4
4
|
import { type Maybe } from '@dereekb/util';
|
|
5
|
+
import { ObservableOrValueGetter } from '@dereekb/rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Component that injects content based on the configuration into the view.
|
|
8
9
|
*/
|
|
9
10
|
export declare class DbxInjectionComponent<T> extends AbstractDbxInjectionDirective<T> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
readonly content: import("@angular/core").Signal<ViewContainerRef | undefined>;
|
|
12
|
+
readonly config: import("@angular/core").InputSignal<Maybe<ObservableOrValueGetter<DbxInjectionComponentConfig<T>>>>;
|
|
13
|
+
readonly template: import("@angular/core").InputSignal<Maybe<ObservableOrValueGetter<DbxInjectionTemplateConfig<T>>>>;
|
|
14
|
+
protected readonly _contentEffect: import("@angular/core").EffectRef;
|
|
15
|
+
protected readonly _configEffect: import("@angular/core").EffectRef;
|
|
16
|
+
protected readonly _templateEffect: import("@angular/core").EffectRef;
|
|
13
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionComponent<any>, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxInjectionComponent<any>, "dbx-injection, [dbxInjection], [dbx-injection]", never, { "config": { "alias": "config"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never,
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxInjectionComponent<any>, "dbx-injection, [dbxInjection], [dbx-injection]", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
19
|
}
|
|
@@ -2,10 +2,15 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./injection.component";
|
|
3
3
|
import * as i2 from "./injection.array.component";
|
|
4
4
|
import * as i3 from "./injection.context.directive";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated import the individual components instead.
|
|
7
|
+
*
|
|
8
|
+
* - DbxInjectionComponent
|
|
9
|
+
* - DbxInjectionArrayComponent
|
|
10
|
+
* - DbxInjectionContextDirective
|
|
11
|
+
*/
|
|
7
12
|
export declare class DbxInjectionComponentModule {
|
|
8
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionComponentModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxInjectionComponentModule, [typeof i1.DbxInjectionComponent, typeof i2.DbxInjectionArrayComponent, typeof i3.DbxInjectionContextDirective], [typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxInjectionComponentModule, never, [typeof i1.DbxInjectionComponent, typeof i2.DbxInjectionArrayComponent, typeof i3.DbxInjectionContextDirective], [typeof i1.DbxInjectionComponent, typeof i2.DbxInjectionArrayComponent, typeof i3.DbxInjectionContextDirective]>;
|
|
10
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxInjectionComponentModule>;
|
|
11
16
|
}
|
|
@@ -10,8 +10,8 @@ export declare class DbxInjectionContextDirective<O = unknown> implements DbxInj
|
|
|
10
10
|
private readonly _injector;
|
|
11
11
|
private readonly _templateRef;
|
|
12
12
|
private readonly _viewContainer;
|
|
13
|
+
private readonly _instance;
|
|
13
14
|
private _currentPromise;
|
|
14
|
-
private _instance;
|
|
15
15
|
private _embeddedView;
|
|
16
16
|
private _isDetached;
|
|
17
17
|
set config(config: Maybe<DbxInjectionComponentConfig<unknown>>);
|
|
@@ -20,5 +20,5 @@ export declare class DbxInjectionContextDirective<O = unknown> implements DbxInj
|
|
|
20
20
|
showContext<T, O>(config: DbxInjectionContextConfig<T>): Promise<O>;
|
|
21
21
|
resetContext(): boolean;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionContextDirective<any>, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxInjectionContextDirective<any>, "[dbxInjectionContext]", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never,
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxInjectionContextDirective<any>, "[dbxInjectionContext]", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
24
|
}
|
|
@@ -5,27 +5,27 @@ export interface DbxInjectionComponentConfig<T = unknown> {
|
|
|
5
5
|
/**
|
|
6
6
|
* Type of Component to initialize.
|
|
7
7
|
*/
|
|
8
|
-
componentClass: Type<T>;
|
|
8
|
+
readonly componentClass: Type<T>;
|
|
9
9
|
/**
|
|
10
10
|
* (Optional) providers to provide to the existing injector.
|
|
11
11
|
*/
|
|
12
|
-
providers?: StaticProvider[];
|
|
12
|
+
readonly providers?: StaticProvider[];
|
|
13
13
|
/**
|
|
14
14
|
* (Optional) Custom parent injector to use when creating the component.
|
|
15
15
|
*/
|
|
16
|
-
injector?: Injector;
|
|
16
|
+
readonly injector?: Injector;
|
|
17
17
|
/**
|
|
18
18
|
* (Optional) Module ref to use when creating the component.
|
|
19
19
|
*/
|
|
20
|
-
ngModuleRef?: NgModuleRef<unknown>;
|
|
20
|
+
readonly ngModuleRef?: NgModuleRef<unknown>;
|
|
21
21
|
/**
|
|
22
22
|
* (Optional) Custom initialization code when an instance is created.
|
|
23
23
|
*/
|
|
24
|
-
init?: (instance: T) => void;
|
|
24
|
+
readonly init?: (instance: T) => void;
|
|
25
25
|
/**
|
|
26
26
|
* unknown optional data to inject into the component.
|
|
27
27
|
*/
|
|
28
|
-
data?: unknown;
|
|
28
|
+
readonly data?: unknown;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* The injector may be important to where the dbxInjection is getting injected at. Some types may disallow setting a custom parent injector.
|
|
@@ -36,11 +36,11 @@ export interface DbxInjectionTemplateConfig<T = unknown> {
|
|
|
36
36
|
/**
|
|
37
37
|
* Template ref to display.
|
|
38
38
|
*/
|
|
39
|
-
templateRef?: Maybe<TemplateRef<T>>;
|
|
39
|
+
readonly templateRef?: Maybe<TemplateRef<T>>;
|
|
40
40
|
/**
|
|
41
41
|
* View ref to inject.
|
|
42
42
|
*/
|
|
43
|
-
viewRef?: Maybe<ViewRef>;
|
|
43
|
+
readonly viewRef?: Maybe<ViewRef>;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Merges multiple configurations into a single configuration.
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { ViewContainerRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type Maybe } from '@dereekb/util';
|
|
3
3
|
import { DbxInjectionComponentConfig, DbxInjectionTemplateConfig } from './injection';
|
|
4
|
+
import { ObservableOrValueGetter } from '@dereekb/rxjs';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Abstract directive that injects content based on the configuration into the view.
|
|
7
8
|
*/
|
|
8
9
|
export declare abstract class AbstractDbxInjectionDirective<T> implements OnInit, OnDestroy {
|
|
9
|
-
private _instance;
|
|
10
|
+
private readonly _instance;
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
ngOnDestroy(): void;
|
|
12
|
-
setConfig(config: Maybe<DbxInjectionComponentConfig<T
|
|
13
|
-
setTemplate(template: Maybe<DbxInjectionTemplateConfig<T
|
|
13
|
+
setConfig(config: Maybe<ObservableOrValueGetter<DbxInjectionComponentConfig<T>>>): void;
|
|
14
|
+
setTemplate(template: Maybe<ObservableOrValueGetter<DbxInjectionTemplateConfig<T>>>): void;
|
|
14
15
|
setContent(content: Maybe<ViewContainerRef>): void;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxInjectionDirective<any>, never>;
|
|
16
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxInjectionDirective<any>, never, never, {}, {}, never, never, false, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentRef, Injector, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { DbxInjectionComponentConfig, DbxInjectionTemplateConfig } from './injection';
|
|
3
3
|
import { Initialized, Destroyable, Maybe } from '@dereekb/util';
|
|
4
|
+
import { ObservableOrValueGetter } from '@dereekb/rxjs';
|
|
4
5
|
/**
|
|
5
6
|
* Instance used by components to inject content based on the configuration into the view.
|
|
6
7
|
*/
|
|
@@ -14,10 +15,10 @@ export declare class DbxInjectionInstance<T> implements Initialized, Destroyable
|
|
|
14
15
|
readonly config$: import("rxjs").Observable<Maybe<DbxInjectionComponentConfig<T>>>;
|
|
15
16
|
readonly template$: import("rxjs").Observable<Maybe<DbxInjectionTemplateConfig<T>>>;
|
|
16
17
|
readonly content$: import("rxjs").Observable<ViewContainerRef>;
|
|
17
|
-
get config(): Maybe<DbxInjectionComponentConfig<T
|
|
18
|
-
set config(config: Maybe<DbxInjectionComponentConfig<T
|
|
19
|
-
get template(): Maybe<DbxInjectionTemplateConfig<T
|
|
20
|
-
set template(template: Maybe<DbxInjectionTemplateConfig<T
|
|
18
|
+
get config(): Maybe<ObservableOrValueGetter<DbxInjectionComponentConfig<T>>>;
|
|
19
|
+
set config(config: Maybe<ObservableOrValueGetter<DbxInjectionComponentConfig<T>>>);
|
|
20
|
+
get template(): Maybe<ObservableOrValueGetter<DbxInjectionTemplateConfig<T>>>;
|
|
21
|
+
set template(template: Maybe<ObservableOrValueGetter<DbxInjectionTemplateConfig<T>>>);
|
|
21
22
|
get content(): Maybe<Maybe<ViewContainerRef>>;
|
|
22
23
|
set content(content: Maybe<Maybe<ViewContainerRef>>);
|
|
23
24
|
get componentRef(): Maybe<ComponentRef<T>>;
|