@dereekb/dbx-core 9.23.13 → 9.23.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/filter/filter.abstract.source.directive.mjs +7 -1
- package/esm2020/lib/filter/filter.map.connector.directive.mjs +7 -2
- package/esm2020/lib/filter/filter.module.mjs +5 -4
- package/esm2020/lib/filter/filter.preset.mjs +1 -1
- package/fesm2015/dereekb-dbx-core.mjs +19 -7
- package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-core.mjs +19 -7
- package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
- package/lib/filter/filter.abstract.source.directive.d.ts +2 -0
- package/lib/filter/filter.module.d.ts +5 -5
- package/lib/filter/filter.preset.d.ts +14 -2
- package/package.json +4 -4
|
@@ -25,6 +25,8 @@ export declare abstract class AbstractFilterSourceDirective<F = unknown> impleme
|
|
|
25
25
|
initWithFilter(filterObs: Observable<F>): void;
|
|
26
26
|
setFilter(filter: F): void;
|
|
27
27
|
resetFilter(): void;
|
|
28
|
+
get initialFilterTakesPriority(): boolean;
|
|
29
|
+
set initialFilterTakesPriority(initialFilterTakesPriority: boolean);
|
|
28
30
|
protected makeDefaultFilter(): ObservableOrValue<Maybe<F>>;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterSourceDirective<any>, never>;
|
|
30
32
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFilterSourceDirective<any>, never, never, {}, {}, never, never, false>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./filter.source.directive";
|
|
3
|
-
import * as i2 from "./filter.
|
|
4
|
-
import * as i3 from "./filter.
|
|
5
|
-
import * as i4 from "./filter.
|
|
6
|
-
import * as i5 from "./filter.map.
|
|
3
|
+
import * as i2 from "./filter.map.connector.directive";
|
|
4
|
+
import * as i3 from "./filter.connect.source.directive";
|
|
5
|
+
import * as i4 from "./filter.connector.directive";
|
|
6
|
+
import * as i5 from "./filter.map.directive";
|
|
7
7
|
import * as i6 from "./filter.map.source.directive";
|
|
8
8
|
import * as i7 from "@angular/common";
|
|
9
9
|
export declare class DbxCoreFilterModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreFilterModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreFilterModule, [typeof i1.DbxFilterSourceDirective, typeof i2.
|
|
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 i7.CommonModule], [typeof i1.DbxFilterSourceDirective, typeof i2.DbxFilterMapSourceConnectorDirective, typeof i3.DbxFilterConnectSourceDirective, typeof i4.DbxFilterSourceConnectorDirective, typeof i5.DbxFilterMapDirective, typeof i6.DbxFilterMapSourceDirective]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreFilterModule>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilterPresetStringRef, FilterWithPreset, FilterWithPresetOptional } from '@dereekb/rxjs';
|
|
2
|
-
import { EmptyObject, GetterOrValue } from '@dereekb/util';
|
|
2
|
+
import { EmptyObject, GetterOrValue, Maybe } from '@dereekb/util';
|
|
3
3
|
import { ClickableAnchorLink } from '../router/anchor/anchor';
|
|
4
4
|
export interface ClickableFilterPreset<F extends FilterWithPreset<P>, P extends string = string> extends Pick<ClickableAnchorLink, 'title' | 'icon' | 'disabled'>, FilterPresetStringRef<P> {
|
|
5
5
|
/**
|
|
@@ -7,5 +7,17 @@ export interface ClickableFilterPreset<F extends FilterWithPreset<P>, P extends
|
|
|
7
7
|
*
|
|
8
8
|
* A null value or empty object is used for reset.
|
|
9
9
|
*/
|
|
10
|
-
presetValue: GetterOrValue<FilterWithPresetOptional<F>> | EmptyObject | null;
|
|
10
|
+
readonly presetValue: GetterOrValue<FilterWithPresetOptional<F>> | EmptyObject | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ClickablePartialFilterPreset<F> extends Pick<ClickableAnchorLink, 'title' | 'icon' | 'disabled'> {
|
|
13
|
+
/**
|
|
14
|
+
* GetterOrValue that retrieves the partial filter value.
|
|
15
|
+
*
|
|
16
|
+
* A null value or empty object is used for no change.
|
|
17
|
+
*/
|
|
18
|
+
readonly partialPresetValue: GetterOrValue<Partial<F>> | EmptyObject | null;
|
|
19
|
+
/**
|
|
20
|
+
* The current value to test against. Returns true if this partial preset is considered active.
|
|
21
|
+
*/
|
|
22
|
+
readonly isActive: (currentFilter: Maybe<Partial<F>>) => boolean;
|
|
11
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-core",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.14",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.0.0",
|
|
6
6
|
"@angular/core": "^14.0.0",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"@ngrx/effects": "^14.0.0",
|
|
10
10
|
"@ngrx/entity": "^14.0.0",
|
|
11
11
|
"@ngrx/store": "^14.0.0",
|
|
12
|
-
"@dereekb/util": "9.23.
|
|
13
|
-
"@dereekb/rxjs": "9.23.
|
|
12
|
+
"@dereekb/util": "9.23.14",
|
|
13
|
+
"@dereekb/rxjs": "9.23.14",
|
|
14
14
|
"@angular/platform-browser": "^14.2.0",
|
|
15
15
|
"@uirouter/core": "^6.0.8",
|
|
16
16
|
"date-fns": "^2.29.0",
|
|
17
|
-
"@dereekb/date": "9.23.
|
|
17
|
+
"@dereekb/date": "9.23.14",
|
|
18
18
|
"@angular/router": "^14.2.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|