@dereekb/dbx-core 0.0.1 → 1.2.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/README.md +4 -5
- package/esm2020/lib/action/action.handler.mjs +2 -2
- package/esm2020/lib/action/action.module.mjs +21 -21
- package/esm2020/lib/action/action.store.mjs +3 -3
- package/esm2020/lib/action/action.store.source.mjs +5 -5
- package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +5 -5
- package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +7 -7
- package/esm2020/lib/action/directive/auto/action.autotrigger.value.directive.mjs +5 -5
- package/esm2020/lib/action/directive/context/action.directive.mjs +8 -8
- package/esm2020/lib/action/directive/context/action.source.directive.mjs +7 -7
- package/esm2020/lib/action/directive/context/index.mjs +1 -2
- package/esm2020/lib/action/directive/debug/action.logger.directive.mjs +6 -6
- package/esm2020/lib/action/directive/map/action.map.directive.mjs +7 -7
- package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +9 -9
- package/esm2020/lib/action/directive/map/action.map.source.directive.mjs +7 -7
- package/esm2020/lib/action/directive/map/action.map.working.disable.directive.mjs +8 -8
- package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +5 -5
- package/esm2020/lib/action/directive/state/action.disabled.modified.directive.mjs +5 -5
- package/esm2020/lib/action/directive/state/action.handler.directive.mjs +5 -5
- package/esm2020/lib/action/directive/state/action.success.component.mjs +5 -5
- package/esm2020/lib/action/directive/state/action.success.directive.mjs +5 -5
- package/esm2020/lib/action/directive/state/action.value.directive.mjs +5 -5
- package/esm2020/lib/action/directive/state/action.working.component.mjs +5 -5
- package/esm2020/lib/action/snackbar/snackbar.mjs +1 -1
- package/esm2020/lib/button/action/action.button.directive.mjs +8 -8
- package/esm2020/lib/button/action/action.button.trigger.directive.mjs +7 -7
- package/esm2020/lib/button/button.directive.mjs +12 -12
- package/esm2020/lib/button/button.loading.directive.mjs +7 -7
- package/esm2020/lib/button/button.mjs +6 -5
- package/esm2020/lib/button/button.module.mjs +28 -28
- package/esm2020/lib/button/router/button.segue.directive.mjs +8 -8
- package/esm2020/lib/filter/action/action.filter.source.directive.mjs +33 -0
- package/esm2020/lib/filter/action/index.mjs +2 -0
- package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +24 -0
- package/esm2020/lib/filter/filter.abstract.source.directive.mjs +38 -0
- package/esm2020/lib/filter/filter.connector.directive.mjs +25 -0
- package/esm2020/lib/filter/filter.content.mjs +24 -0
- package/esm2020/lib/filter/filter.map.connector.directive.mjs +40 -0
- package/esm2020/lib/filter/filter.map.directive.mjs +26 -0
- package/esm2020/lib/filter/filter.map.instance.directive.mjs +26 -0
- package/esm2020/lib/filter/filter.map.source.directive.mjs +41 -0
- package/esm2020/lib/filter/filter.module.mjs +46 -0
- package/esm2020/lib/filter/filter.source.directive.mjs +19 -0
- package/esm2020/lib/filter/index.mjs +12 -0
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/injected/injected.component.mjs +6 -6
- package/esm2020/lib/injected/injected.component.module.mjs +9 -9
- package/esm2020/lib/injected/injected.directive.mjs +11 -10
- package/esm2020/lib/injected/injected.instance.mjs +20 -5
- package/esm2020/lib/injected/injected.mjs +16 -2
- package/esm2020/lib/pipe/date/date.pipe.module.mjs +6 -6
- package/esm2020/lib/pipe/date/datedistance.pipe.mjs +7 -7
- package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +3 -3
- package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +3 -3
- package/esm2020/lib/pipe/date/minutesstring.pipe.mjs +3 -3
- package/esm2020/lib/pipe/date/timedistance.pipe.mjs +6 -6
- package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +3 -3
- package/esm2020/lib/pipe/date/tominutes.pipe.mjs +3 -3
- package/esm2020/lib/router/anchor/anchor.directive.mjs +7 -7
- package/esm2020/lib/router/anchor/anchor.mjs +43 -15
- package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +15 -9
- package/esm2020/lib/router/router/provider/angular/angular.router.service.module.mjs +14 -14
- package/esm2020/lib/router/router/provider/uirouter/index.mjs +2 -1
- package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +20 -9
- package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +15 -15
- package/esm2020/lib/router/router/provider/uirouter/util/future.mjs +38 -0
- package/esm2020/lib/router/router/provider/uirouter/util/index.mjs +2 -0
- package/esm2020/lib/router/router/service/router.service.mjs +2 -2
- package/esm2020/lib/router/router/service/router.transition.service.mjs +2 -2
- package/esm2020/lib/router/router/transition/index.mjs +3 -1
- package/esm2020/lib/router/router/transition/transition.directive.mjs +22 -0
- package/esm2020/lib/router/router/transition/transition.mjs +6 -6
- package/esm2020/lib/router/router/transition/transition.rxjs.mjs +18 -0
- package/esm2020/lib/router/router/transition/transition.watcher.directive.mjs +10 -11
- package/esm2020/lib/storage/storage.accessor.simple.factory.mjs +3 -3
- package/esm2020/lib/storage/storage.accessor.simple.mjs +3 -3
- package/esm2020/lib/storage/storage.di.mjs +3 -3
- package/esm2020/lib/storage/storage.module.mjs +7 -7
- package/esm2020/lib/subscription/subscription.directive.mjs +6 -6
- package/esm2020/lib/util/view.mjs +12 -1
- package/fesm2015/dereekb-dbx-core.mjs +760 -332
- package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-core.mjs +760 -332
- package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.handler.d.ts +1 -1
- package/lib/action/action.module.d.ts +22 -23
- package/lib/action/action.store.source.d.ts +1 -1
- package/lib/action/directive/auto/action.automodify.directive.d.ts +3 -3
- package/lib/action/directive/auto/action.autotrigger.directive.d.ts +5 -5
- package/lib/action/directive/auto/action.autotrigger.value.directive.d.ts +5 -5
- package/lib/action/directive/context/action.directive.d.ts +4 -4
- package/lib/action/directive/context/action.source.directive.d.ts +4 -4
- package/lib/action/directive/context/index.d.ts +0 -1
- package/lib/action/directive/debug/action.logger.directive.d.ts +3 -3
- package/lib/action/directive/map/action.map.directive.d.ts +5 -5
- package/lib/action/directive/map/action.map.key.directive.d.ts +6 -6
- package/lib/action/directive/map/action.map.source.directive.d.ts +5 -5
- package/lib/action/directive/map/action.map.working.disable.directive.d.ts +6 -6
- package/lib/action/directive/state/action.disabled.directive.d.ts +3 -3
- package/lib/action/directive/state/action.disabled.modified.directive.d.ts +3 -3
- package/lib/action/directive/state/action.handler.directive.d.ts +3 -3
- package/lib/action/directive/state/action.success.component.d.ts +3 -3
- package/lib/action/directive/state/action.success.directive.d.ts +3 -3
- package/lib/action/directive/state/action.value.directive.d.ts +3 -3
- package/lib/action/directive/state/action.working.component.d.ts +3 -3
- package/lib/action/snackbar/snackbar.d.ts +3 -3
- package/lib/button/action/action.button.directive.d.ts +6 -6
- package/lib/button/action/action.button.trigger.directive.d.ts +6 -6
- package/lib/button/button.d.ts +4 -4
- package/lib/button/button.directive.d.ts +10 -10
- package/lib/button/button.loading.directive.d.ts +6 -6
- package/lib/button/button.module.d.ts +4 -4
- package/lib/button/router/button.segue.directive.d.ts +8 -8
- package/lib/filter/action/action.filter.source.directive.d.ts +17 -0
- package/lib/filter/action/index.d.ts +1 -0
- package/lib/filter/filter.abstract.connector.directive.d.ts +16 -0
- package/lib/filter/filter.abstract.source.directive.d.ts +20 -0
- package/lib/filter/filter.connector.directive.d.ts +9 -0
- package/lib/filter/filter.content.d.ts +10 -0
- package/lib/filter/filter.map.connector.directive.d.ts +14 -0
- package/lib/filter/filter.map.directive.d.ts +13 -0
- package/lib/filter/filter.map.instance.directive.d.ts +18 -0
- package/lib/filter/filter.map.source.directive.d.ts +16 -0
- package/lib/filter/filter.module.d.ts +12 -0
- package/lib/filter/filter.source.directive.d.ts +9 -0
- package/lib/filter/index.d.ts +11 -0
- package/lib/index.d.ts +1 -0
- package/lib/injected/injected.component.d.ts +7 -7
- package/lib/injected/injected.component.module.d.ts +4 -4
- package/lib/injected/injected.d.ts +25 -5
- package/lib/injected/injected.directive.d.ts +9 -7
- package/lib/injected/injected.instance.d.ts +11 -9
- package/lib/pipe/date/date.pipe.module.d.ts +4 -4
- package/lib/pipe/date/datedistance.pipe.d.ts +2 -2
- package/lib/router/anchor/anchor.d.ts +31 -8
- package/lib/router/anchor/anchor.directive.d.ts +4 -4
- package/lib/router/router/provider/angular/angular.router.service.d.ts +9 -7
- package/lib/router/router/provider/angular/angular.router.service.module.d.ts +5 -5
- package/lib/router/router/provider/uirouter/index.d.ts +1 -0
- package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +9 -7
- package/lib/router/router/provider/uirouter/uirouter.router.service.module.d.ts +5 -5
- package/lib/router/router/provider/uirouter/util/future.d.ts +1 -0
- package/lib/router/router/provider/uirouter/util/index.d.ts +1 -0
- package/lib/router/router/service/router.service.d.ts +17 -1
- package/lib/router/router/service/router.transition.service.d.ts +4 -4
- package/lib/router/router/transition/index.d.ts +2 -0
- package/lib/router/router/transition/transition.d.ts +3 -3
- package/lib/router/router/transition/transition.directive.d.ts +14 -0
- package/lib/router/router/transition/transition.rxjs.d.ts +11 -0
- package/lib/router/router/transition/transition.watcher.directive.d.ts +4 -4
- package/lib/storage/storage.module.d.ts +5 -5
- package/lib/util/view.d.ts +9 -0
- package/package.json +13 -13
- package/esm2020/lib/action/directive/context/action.component.mjs +0 -18
- package/lib/action/directive/context/action.component.d.ts +0 -6
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
2
|
import { LoadingContext } from '@dereekb/rxjs';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../subscription';
|
|
4
|
-
import {
|
|
4
|
+
import { DbxButton } from './button';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Context used for linking a button to a LoadingContext.
|
|
8
8
|
*
|
|
9
9
|
* It will be set working when the context is set loading.
|
|
10
10
|
*/
|
|
11
|
-
export declare class
|
|
12
|
-
readonly button:
|
|
11
|
+
export declare class DbxLoadingButtonDirective extends AbstractSubscriptionDirective {
|
|
12
|
+
readonly button: DbxButton;
|
|
13
13
|
readonly ngZone: NgZone;
|
|
14
|
-
constructor(button:
|
|
14
|
+
constructor(button: DbxButton, ngZone: NgZone);
|
|
15
15
|
/**
|
|
16
16
|
* Sets a LoadingContext that is watched for the loading state.
|
|
17
17
|
*/
|
|
18
18
|
set context(context: LoadingContext);
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxLoadingButtonDirective, [{ host: true; }, null]>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxLoadingButtonDirective, "[dbxLoadingButton]", never, { "context": "dbxLoadingButton"; }, {}, never>;
|
|
21
21
|
}
|
|
@@ -4,8 +4,8 @@ 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
|
-
export declare class
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
7
|
+
export declare class DbxCoreButtonModule {
|
|
8
|
+
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], never, [typeof i1.DbxButtonDirective, typeof i2.DbxLoadingButtonDirective, typeof i3.DbxActionButtonTriggerDirective, typeof i4.DbxActionButtonDirective, typeof i5.DbxButtonSegueDirective]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreButtonModule>;
|
|
11
11
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Maybe } from '@dereekb/util';
|
|
3
3
|
import { AbstractSubscriptionDirective } from '../../subscription';
|
|
4
|
-
import {
|
|
5
|
-
import { SegueRef,
|
|
4
|
+
import { DbxButton } from '../button';
|
|
5
|
+
import { SegueRef, DbxRouterService } from '../../router';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
8
|
-
readonly dbxButton:
|
|
9
|
-
readonly dbxRouterService:
|
|
7
|
+
export declare class DbxButtonSegueDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
|
|
8
|
+
readonly dbxButton: DbxButton;
|
|
9
|
+
readonly dbxRouterService: DbxRouterService;
|
|
10
10
|
private _segueRef;
|
|
11
11
|
readonly segueRef$: import("rxjs").Observable<SegueRef<any>>;
|
|
12
12
|
get segueRef(): Maybe<SegueRef>;
|
|
13
13
|
set segueRef(segueRef: Maybe<SegueRef>);
|
|
14
|
-
constructor(dbxButton:
|
|
14
|
+
constructor(dbxButton: DbxButton, dbxRouterService: DbxRouterService);
|
|
15
15
|
ngOnInit(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonSegueDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSegueDirective, "[dbxButtonSegue]", never, { "segueRef": "dbxButtonSegue"; }, {}, never>;
|
|
18
18
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HandleActionFunction } from '../../action/action.handler';
|
|
2
|
+
import { AbstractFilterSourceDirective } from '../filter.abstract.source.directive';
|
|
3
|
+
import { ActionContextStoreSourceInstance } from '../../action/action.store.source';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Abstract filter source for components that use an action to filter.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class AbstractActionFilterSourceDirective<F> extends AbstractFilterSourceDirective<F> {
|
|
9
|
+
readonly filterAction: ActionContextStoreSourceInstance;
|
|
10
|
+
applyFilter(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Pre-set action handler for the template to use to set the filter.
|
|
13
|
+
*/
|
|
14
|
+
setFilterAction: HandleActionFunction<F>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractActionFilterSourceDirective<any>, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractActionFilterSourceDirective<any>, never, never, {}, {}, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './action.filter.source.directive';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { FilterSourceConnector, FilterSource } from '@dereekb/rxjs';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Abstract FilterSourceConnector directive.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class AbstractFilterSourceConnectorDirective<F> implements FilterSourceConnector<F>, OnDestroy {
|
|
10
|
+
private _source;
|
|
11
|
+
readonly filter$: Observable<Maybe<F>>;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
connectWithSource(filterSource: FilterSource<F>): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterSourceConnectorDirective<any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFilterSourceConnectorDirective<any>, never, never, {}, {}, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { FilterSource, FilterSourceInstance, ObservableGetter } from '@dereekb/rxjs';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Abstract FilterSource implementation.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class AbstractFilterSourceDirective<F> implements FilterSource<F>, OnInit, OnDestroy {
|
|
10
|
+
protected _defaultFilterSource: FilterSourceInstance<F>;
|
|
11
|
+
readonly filter$: Observable<F>;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
initWithFilter(filterObs: Observable<F>): void;
|
|
15
|
+
setFilter(filter: F): void;
|
|
16
|
+
resetFilter(): void;
|
|
17
|
+
protected makeDefaultFilter(): ObservableGetter<Maybe<F>>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterSourceDirective<any>, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFilterSourceDirective<any>, never, never, {}, {}, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractFilterSourceConnectorDirective } from './filter.abstract.connector.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Used as a FilterSource and FilterSourceConnector.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DbxFilterSourceConnectorDirective<F> extends AbstractFilterSourceConnectorDirective<F> {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterSourceConnectorDirective<any>, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceConnectorDirective<any>, "[dbxFilterSourceConnector]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FilterSource, FilterSourceConnector } from "@dereekb/rxjs";
|
|
2
|
+
import { Provider, Type } from '@angular/core';
|
|
3
|
+
/**
|
|
4
|
+
* Angular provider convenience function for a FilterSource.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ProvideFilterSource<S extends FilterSource<any>>(sourceType: Type<S>): Provider[];
|
|
7
|
+
/**
|
|
8
|
+
* Angular provider convenience function for a FilterSourceConnector.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ProvideFilterSourceConnector<S extends FilterSourceConnector<any>>(sourceType: Type<S>): Provider[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FilterSourceConnector, FilterSource, FilterMapKey } from '@dereekb/rxjs';
|
|
2
|
+
import { DbxFilterMapSourceDirective } from './filter.map.source.directive';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Acts as an "input" FilterSourceConnector for an FilterMap, as well as a source for the FilterSourceConnector.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DbxFilterMapSourceConnectorDirective<F> extends DbxFilterMapSourceDirective<F> implements FilterSourceConnector<F> {
|
|
9
|
+
get key(): Maybe<FilterMapKey>;
|
|
10
|
+
set key(key: Maybe<FilterMapKey>);
|
|
11
|
+
connectWithSource(filterSource: FilterSource<F>): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapSourceConnectorDirective<any>, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceConnectorDirective<any>, "[dbxFilterMapSourceConnector]", ["dbxFilterMapSourceConnector"], { "key": "dbxFilterMapSourceConnector"; }, {}, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { FilterMap } from '@dereekb/rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Direction that provides an FilterMap.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DbxFilterMapDirective<F> implements OnDestroy {
|
|
8
|
+
readonly filterMap: FilterMap<F>;
|
|
9
|
+
constructor(filterMap: FilterMap<F>);
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapDirective<any>, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapDirective<any>, "[dbxFilterMap]", ["dbxFilterMap"], {}, {}, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { FilterMap } from '@dereekb/rxjs';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Provides a FilterSource from a parent FilterMap.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class AbstractDbxFilterMapInstanceDirective<F> implements OnDestroy {
|
|
10
|
+
readonly dbxFilterMap: FilterMap<F>;
|
|
11
|
+
protected _key: BehaviorSubject<Maybe<string>>;
|
|
12
|
+
readonly key$: import("rxjs").Observable<string>;
|
|
13
|
+
readonly instance$: import("rxjs").Observable<import("@dereekb/rxjs").FilterMapKeyInstance<F>>;
|
|
14
|
+
constructor(dbxFilterMap: FilterMap<F>);
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxFilterMapInstanceDirective<any>, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxFilterMapInstanceDirective<any>, never, never, {}, {}, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FilterSource, FilterMapKey } from '@dereekb/rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AbstractDbxFilterMapInstanceDirective } from './filter.map.instance.directive';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Provides a FilterSource from a parent FilterMap.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DbxFilterMapSourceDirective<F> extends AbstractDbxFilterMapInstanceDirective<F> implements FilterSource<F> {
|
|
10
|
+
readonly filter$: Observable<F>;
|
|
11
|
+
get key(): Maybe<FilterMapKey>;
|
|
12
|
+
set key(key: Maybe<FilterMapKey>);
|
|
13
|
+
initWithFilter?(filterObs: Observable<F>): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapSourceDirective<any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceDirective<any>, "[dbxFilterMapSource]", ["dbxFilterMapSource"], { "key": "dbxFilterMapSource"; }, {}, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./filter.source.directive";
|
|
3
|
+
import * as i2 from "./filter.connector.directive";
|
|
4
|
+
import * as i3 from "./filter.map.directive";
|
|
5
|
+
import * as i4 from "./filter.map.connector.directive";
|
|
6
|
+
import * as i5 from "./filter.map.source.directive";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
export declare class DbxCoreFilterModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreFilterModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreFilterModule, [typeof i1.DbxFilterSourceDirective, typeof i2.DbxFilterSourceConnectorDirective, typeof i3.DbxFilterMapDirective, typeof i4.DbxFilterMapSourceConnectorDirective, typeof i5.DbxFilterMapSourceDirective], [typeof i6.CommonModule], [typeof i1.DbxFilterSourceDirective, typeof i2.DbxFilterSourceConnectorDirective, typeof i3.DbxFilterMapDirective, typeof i4.DbxFilterMapSourceConnectorDirective, typeof i5.DbxFilterMapSourceDirective]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreFilterModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractFilterSourceDirective } from './filter.abstract.source.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Basic filter source directive.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DbxFilterSourceDirective<F> extends AbstractFilterSourceDirective<F> {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterSourceDirective<any>, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceDirective<any>, "[dbxFilterSource]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './action';
|
|
2
|
+
export * from './filter.abstract.connector.directive';
|
|
3
|
+
export * from './filter.abstract.source.directive';
|
|
4
|
+
export * from './filter.connector.directive';
|
|
5
|
+
export * from './filter.content';
|
|
6
|
+
export * from './filter.map.connector.directive';
|
|
7
|
+
export * from './filter.map.directive';
|
|
8
|
+
export * from './filter.map.instance.directive';
|
|
9
|
+
export * from './filter.map.source.directive';
|
|
10
|
+
export * from './filter.module';
|
|
11
|
+
export * from './filter.source.directive';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { DbxInjectedComponentConfig, DbxInjectedTemplateConfig } from './injected';
|
|
3
|
+
import { AbstractDbxInjectedDirective } from './injected.directive';
|
|
4
4
|
import { Maybe } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Component that injects content based on the configuration into the view.
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
10
|
-
set config(config: Maybe<
|
|
11
|
-
set template(template: Maybe<
|
|
9
|
+
export declare class DbxInjectedComponent<T> extends AbstractDbxInjectedDirective<T> {
|
|
10
|
+
set config(config: Maybe<DbxInjectedComponentConfig<T>>);
|
|
11
|
+
set template(template: Maybe<DbxInjectedTemplateConfig<T>>);
|
|
12
12
|
set content(content: Maybe<ViewContainerRef>);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectedComponent<any>, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxInjectedComponent<any>, "dbx-injected-content, [dbx-injected-content]", never, { "config": "config"; "template": "template"; }, {}, never, never>;
|
|
15
15
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./injected.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
4
|
+
export declare class DbxInjectedComponentModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectedComponentModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxInjectedComponentModule, [typeof i1.DbxInjectedComponent], [typeof i2.CommonModule], [typeof i1.DbxInjectedComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxInjectedComponentModule>;
|
|
8
8
|
}
|
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
import { Injector, TemplateRef, Type, ViewRef } from "@angular/core";
|
|
1
|
+
import { InjectionToken, Injector, NgModuleRef, StaticProvider, TemplateRef, Type, ViewRef } from "@angular/core";
|
|
2
2
|
import { Maybe } from "@dereekb/util";
|
|
3
|
-
export
|
|
3
|
+
export declare const DBX_INJECTED_COMPONENT_DATA: InjectionToken<unknown>;
|
|
4
|
+
export interface DbxInjectedComponentConfig<T = any> {
|
|
4
5
|
/**
|
|
5
6
|
* Type of Component to initialize.
|
|
6
7
|
*/
|
|
7
8
|
componentClass: Type<T>;
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* (Optional) providers to provide to the existing injector.
|
|
11
|
+
*/
|
|
12
|
+
providers?: StaticProvider[];
|
|
13
|
+
/**
|
|
14
|
+
* (Optional) Custom Injector to use when creating the component. If provided, providers is ignored.
|
|
10
15
|
*/
|
|
11
16
|
injector?: Injector;
|
|
12
17
|
/**
|
|
13
|
-
*
|
|
18
|
+
* (Optional) Module ref to use when creating the component.
|
|
19
|
+
*/
|
|
20
|
+
ngModuleRef?: NgModuleRef<unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* (Optional) Custom initialization code when an instance is created.
|
|
14
23
|
*/
|
|
15
24
|
init?: (instance: T) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Any optional data to inject into the component.
|
|
27
|
+
*/
|
|
28
|
+
data?: any;
|
|
16
29
|
}
|
|
17
|
-
export interface
|
|
30
|
+
export interface DbxInjectedTemplateConfig<T = any> {
|
|
18
31
|
/**
|
|
19
32
|
* Template ref to display.
|
|
20
33
|
*/
|
|
@@ -24,3 +37,10 @@ export interface DbNgxInjectedTemplateConfig<T = any> {
|
|
|
24
37
|
*/
|
|
25
38
|
viewRef?: Maybe<ViewRef>;
|
|
26
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Merges multiple configurations into a single configuration.
|
|
42
|
+
*
|
|
43
|
+
* @param configs
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
export declare function mergeDbxInjectedComponentConfigs(configs: Maybe<Partial<DbxInjectedComponentConfig>>[]): Partial<DbxInjectedComponentConfig>;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { ViewContainerRef, OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { ViewContainerRef, OnInit, OnDestroy, Injector } from '@angular/core';
|
|
2
2
|
import { Maybe } from '@dereekb/util';
|
|
3
|
-
import {
|
|
3
|
+
import { DbxInjectedComponentConfig, DbxInjectedTemplateConfig } from './injected';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Abstract directive that injects content based on the configuration into the view.
|
|
7
7
|
*/
|
|
8
|
-
export declare abstract class
|
|
8
|
+
export declare abstract class AbstractDbxInjectedDirective<T> implements OnInit, OnDestroy {
|
|
9
|
+
private readonly _injector;
|
|
9
10
|
private _instance;
|
|
11
|
+
constructor(_injector: Injector);
|
|
10
12
|
ngOnInit(): void;
|
|
11
13
|
ngOnDestroy(): void;
|
|
12
|
-
setConfig(config: Maybe<
|
|
13
|
-
setTemplate(template: Maybe<
|
|
14
|
+
setConfig(config: Maybe<DbxInjectedComponentConfig>): void;
|
|
15
|
+
setTemplate(template: Maybe<DbxInjectedTemplateConfig>): void;
|
|
14
16
|
setContent(content: Maybe<ViewContainerRef>): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxInjectedDirective<any>, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxInjectedDirective<any>, never, never, {}, {}, never>;
|
|
17
19
|
}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { ComponentRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentRef, Injector, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { DbxInjectedComponentConfig, DbxInjectedTemplateConfig } from './injected';
|
|
3
3
|
import { Initialized, Destroyable, Maybe } from '@dereekb/util';
|
|
4
4
|
/**
|
|
5
5
|
* Instance used by components to inject content based on the configuration into the view.
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class DbxInjectedComponentInstance<T> implements Initialized, Destroyable {
|
|
8
|
+
private readonly _injector;
|
|
8
9
|
private _subscriptionObject;
|
|
9
10
|
private _config;
|
|
10
11
|
private _template;
|
|
11
12
|
private _content;
|
|
12
13
|
private _componentRef;
|
|
13
|
-
readonly config$: import("rxjs").Observable<Maybe<
|
|
14
|
-
readonly template$: import("rxjs").Observable<Maybe<
|
|
14
|
+
readonly config$: import("rxjs").Observable<Maybe<DbxInjectedComponentConfig<T>>>;
|
|
15
|
+
readonly template$: import("rxjs").Observable<Maybe<DbxInjectedTemplateConfig<T>>>;
|
|
15
16
|
readonly content$: import("rxjs").Observable<ViewContainerRef>;
|
|
16
|
-
get config(): Maybe<
|
|
17
|
-
set config(config: Maybe<
|
|
18
|
-
get template(): Maybe<
|
|
19
|
-
set template(template: Maybe<
|
|
17
|
+
get config(): Maybe<DbxInjectedComponentConfig<T>>;
|
|
18
|
+
set config(config: Maybe<DbxInjectedComponentConfig<T>>);
|
|
19
|
+
get template(): Maybe<DbxInjectedTemplateConfig<T>>;
|
|
20
|
+
set template(template: Maybe<DbxInjectedTemplateConfig<T>>);
|
|
20
21
|
get content(): Maybe<Maybe<ViewContainerRef>>;
|
|
21
22
|
set content(content: Maybe<Maybe<ViewContainerRef>>);
|
|
22
23
|
get componentRef(): Maybe<ComponentRef<T>>;
|
|
23
24
|
set componentRef(componentRef: Maybe<ComponentRef<T>>);
|
|
25
|
+
constructor(_injector: Injector);
|
|
24
26
|
init(): void;
|
|
25
27
|
destroy(): void;
|
|
26
28
|
private _initComponent;
|
|
@@ -6,8 +6,8 @@ import * as i4 from "./timedistance.pipe";
|
|
|
6
6
|
import * as i5 from "./datedistance.pipe";
|
|
7
7
|
import * as i6 from "./tojsdate.pipe";
|
|
8
8
|
import * as i7 from "./tominutes.pipe";
|
|
9
|
-
export declare class
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
9
|
+
export declare class DbxDatePipeModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDatePipeModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxDatePipeModule, [typeof i1.DateFromToTimePipe, typeof i2.DateFormatDistancePipe, typeof i3.MinutesStringPipe, typeof i4.TimeDistanceCountdownPipe, typeof i4.TimeDistancePipe, typeof i5.DateDistancePipe, typeof i6.ToJsDatePipe, typeof i7.ToMinutesPipe], never, [typeof i1.DateFromToTimePipe, typeof i2.DateFormatDistancePipe, typeof i3.MinutesStringPipe, typeof i4.TimeDistanceCountdownPipe, typeof i4.TimeDistancePipe, typeof i5.DateDistancePipe, typeof i6.ToJsDatePipe, typeof i7.ToMinutesPipe]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxDatePipeModule>;
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DateOrDateString } from '@dereekb/util';
|
|
2
|
+
import { DateOrDateString, Maybe } from '@dereekb/util';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DateDistancePipe implements PipeTransform {
|
|
5
|
-
transform(input: DateOrDateString
|
|
5
|
+
transform(input: Maybe<DateOrDateString>, to?: Maybe<Date>, unavailable?: string): string;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateDistancePipe, never>;
|
|
7
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<DateDistancePipe, "dateDistance">;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClickableFunction, ClickableUrl } from './clickable';
|
|
2
2
|
import { SegueRef } from '../segue';
|
|
3
|
-
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { ExpandTreeFunction, FlattenTreeFunction, Maybe, TreeNode } from '@dereekb/util';
|
|
4
4
|
import { Type, Provider } from '@angular/core';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
export interface ClickableAnchor extends ClickableFunction, ClickableUrl, SegueRef {
|
|
@@ -13,19 +13,42 @@ export interface ClickableAnchorLink extends ClickableAnchor {
|
|
|
13
13
|
export interface ClickableIconAnchorLink extends Omit<ClickableAnchorLink, 'title'> {
|
|
14
14
|
icon: string;
|
|
15
15
|
}
|
|
16
|
+
export interface ClickableAnchorLinkTree extends ClickableAnchorLink {
|
|
17
|
+
children?: ClickableAnchorLinkTree[];
|
|
18
|
+
}
|
|
19
|
+
export declare type ExpandedClickableAnchorLinkTree = TreeNode<ClickableAnchorLinkTree>;
|
|
20
|
+
export declare const expandClickableAnchorLinkTreeNode: ExpandTreeFunction<ClickableAnchorLinkTree, ExpandedClickableAnchorLinkTree>;
|
|
21
|
+
export declare const flattenExpandedClickableAnchorLinkTree: FlattenTreeFunction<ExpandedClickableAnchorLinkTree, ExpandedClickableAnchorLinkTree>;
|
|
22
|
+
export declare const flattenExpandedClickableAnchorLinkTreeToLinks: FlattenTreeFunction<ExpandedClickableAnchorLinkTree, ClickableAnchorLinkTree>;
|
|
23
|
+
/**
|
|
24
|
+
* Fully expands the given parent link and flattens the tree to a single parent link.
|
|
25
|
+
*
|
|
26
|
+
* @param link
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
export declare function expandClickableAnchorLinkTree(link: ClickableAnchorLinkTree): ExpandedClickableAnchorLinkTree[];
|
|
30
|
+
/**
|
|
31
|
+
* Expands an array of links into an array of ExpandedClickableAnchorLinkTree tree values.
|
|
32
|
+
*/
|
|
33
|
+
export declare const expandClickableAnchorLinkTrees: import("@dereekb/util").ExpandFlattenTreeFunction<ClickableAnchorLinkTree, ExpandedClickableAnchorLinkTree>;
|
|
16
34
|
export declare enum AnchorType {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
35
|
+
/**
|
|
36
|
+
* When the anchor has no specific content but is not disabled.
|
|
37
|
+
*
|
|
38
|
+
* Is a passthrough for the content.
|
|
39
|
+
*/
|
|
40
|
+
PLAIN = 0,
|
|
41
|
+
CLICKABLE = 1,
|
|
42
|
+
SREF = 2,
|
|
43
|
+
HREF = 3,
|
|
44
|
+
DISABLED = 4
|
|
22
45
|
}
|
|
23
46
|
export declare function anchorTypeForAnchor(anchor: Maybe<ClickableAnchor>, disabled?: Maybe<boolean>): AnchorType;
|
|
24
|
-
export declare abstract class
|
|
47
|
+
export declare abstract class DbxAnchor<T extends ClickableAnchor = ClickableAnchor> {
|
|
25
48
|
abstract disabled$: Observable<Maybe<boolean>>;
|
|
26
49
|
abstract anchor$: Observable<Maybe<T>>;
|
|
27
50
|
abstract disabled: Maybe<boolean>;
|
|
28
51
|
abstract anchor: Maybe<T>;
|
|
29
52
|
abstract type$: Observable<AnchorType>;
|
|
30
53
|
}
|
|
31
|
-
export declare function
|
|
54
|
+
export declare function ProvideDbxAnchor<S extends DbxAnchor>(sourceType: Type<S>): Provider[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { Maybe } from '@dereekb/util';
|
|
3
|
-
import { AnchorType, ClickableAnchor,
|
|
3
|
+
import { AnchorType, ClickableAnchor, DbxAnchor } from './anchor';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Abstract anchor directive.
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class AbstractDbxAnchorDirective<T extends ClickableAnchor = ClickableAnchor> implements DbxAnchor {
|
|
9
9
|
private _disabled;
|
|
10
10
|
private _anchor;
|
|
11
11
|
readonly disabled$: Observable<Maybe<boolean>>;
|
|
@@ -15,6 +15,6 @@ export declare class AbstractDbNgxAnchorDirective<T extends ClickableAnchor = Cl
|
|
|
15
15
|
set anchor(anchor: Maybe<T>);
|
|
16
16
|
get disabled(): Maybe<boolean>;
|
|
17
17
|
set disabled(disabled: Maybe<boolean>);
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxAnchorDirective<any>, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxAnchorDirective<any>, never, never, { "anchor": "anchor"; "disabled": "disabled"; }, {}, never>;
|
|
20
20
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DbxRouterService, DbxRouterTransitionService } from '../../service';
|
|
2
2
|
import { SegueRef } from "../../../segue";
|
|
3
|
+
import { DbxRouterTransitionEvent } from "../../transition/transition";
|
|
3
4
|
import { ActivatedRoute, NavigationBehaviorOptions, NavigationExtras, Router } from '@angular/router';
|
|
4
|
-
import { DbNgxRouterTransitionEvent } from "../../transition/transition";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* AngularRouter implementation of
|
|
7
|
+
* AngularRouter implementation of DbxRouterService and DbxRouterTransitionService.
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class DbxAngularRouterService implements DbxRouterService, DbxRouterTransitionService {
|
|
10
10
|
readonly router: Router;
|
|
11
11
|
readonly activatedRoute: ActivatedRoute;
|
|
12
|
-
readonly transitions$: import("rxjs").Observable<
|
|
12
|
+
readonly transitions$: import("rxjs").Observable<DbxRouterTransitionEvent>;
|
|
13
13
|
constructor(router: Router, activatedRoute: ActivatedRoute);
|
|
14
14
|
go(segueRef: SegueRef<NavigationExtras | NavigationBehaviorOptions>): Promise<boolean>;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
isActive(segueRef: SegueRef<any>): boolean;
|
|
16
|
+
comparePrecision(a: SegueRef, b: SegueRef): number;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxAngularRouterService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxAngularRouterService>;
|
|
17
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
4
|
-
static forRoot(): ModuleWithProviders<
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
3
|
+
export declare class DbxCoreAngularRouterSegueModule {
|
|
4
|
+
static forRoot(): ModuleWithProviders<DbxCoreAngularRouterSegueModule>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreAngularRouterSegueModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreAngularRouterSegueModule, never, never, never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreAngularRouterSegueModule>;
|
|
8
8
|
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DbxRouterService, DbxRouterTransitionService } from '../../service';
|
|
2
2
|
import { SegueRef } from "../../../segue";
|
|
3
3
|
import { StateService, UIRouterGlobals, TransitionOptions, TransitionService } from '@uirouter/core';
|
|
4
|
-
import {
|
|
4
|
+
import { DbxRouterTransitionEvent } from '../../transition/transition';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* UIRouter implementation of
|
|
7
|
+
* UIRouter implementation of DbxRouterService and DbxRouterTransitionService.
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class DbxUIRouterService implements DbxRouterService, DbxRouterTransitionService {
|
|
10
10
|
readonly state: StateService;
|
|
11
11
|
readonly transitionService: TransitionService;
|
|
12
12
|
readonly uiRouterGlobals: UIRouterGlobals;
|
|
13
13
|
private readonly _transitions;
|
|
14
|
-
readonly transitions$: import("rxjs").Observable<
|
|
14
|
+
readonly transitions$: import("rxjs").Observable<DbxRouterTransitionEvent>;
|
|
15
15
|
constructor(state: StateService, transitionService: TransitionService, uiRouterGlobals: UIRouterGlobals);
|
|
16
16
|
go(segueRef: SegueRef<TransitionOptions>): Promise<boolean>;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
isActive(segueRef: SegueRef): boolean;
|
|
18
|
+
comparePrecision(a: SegueRef, b: SegueRef): number;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxUIRouterService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxUIRouterService>;
|
|
19
21
|
}
|