@elderbyte/ngx-starter 19.14.1 → 19.15.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.
@@ -1,4 +1,6 @@
1
- import { LocalListDataSource, DataSourceChangeEvent, LocalDataSortFn, LocalDataFilterFn, IDataSource } from '../../public_api';
1
+ import { LocalListDataSource, LocalDataSortFn, LocalDataFilterFn } from '../local/local-list-data-source';
2
+ import { IDataSource } from '../data-source';
3
+ import { DataSourceChangeEvent } from '../data-source-change-event';
2
4
  import { Observable } from 'rxjs';
3
5
  export declare class CuratedDataSource<TEntity, TId = any> implements IDataSource<TEntity> {
4
6
  readonly originalSource: IDataSource<TEntity>;
@@ -1,5 +1,8 @@
1
1
  import { Observable } from 'rxjs';
2
- import { IListDataSource, Sort, Filter, LocalDataSortFn, LocalDataFilterFn } from '../../public_api';
2
+ import { Sort } from '../../../data/sort';
3
+ import { Filter } from '../../../data/filters/filter';
4
+ import { LocalDataSortFn, LocalDataFilterFn } from '../local/local-list-data-source';
5
+ import { IListDataSource } from '../data-source';
3
6
  import { CuratedDataSource } from './curated-data-source';
4
7
  /**
5
8
  * Wraps a standard IListDataSource, and provides the ability to overwrite
@@ -1,6 +1,9 @@
1
1
  import { Observable } from 'rxjs';
2
- import { IPagedDataSource, Page, Pageable, Filter, LocalDataSortFn, LocalDataFilterFn } from '../../public_api';
2
+ import { Filter } from '../../../data/filters/filter';
3
+ import { LocalDataSortFn, LocalDataFilterFn } from '../local/local-list-data-source';
4
+ import { IPagedDataSource } from '../data-source';
3
5
  import { CuratedDataSource } from './curated-data-source';
6
+ import { Page, Pageable } from '../../../data/page';
4
7
  /**
5
8
  * Wraps a standard IPagedDataSource, and provides the ability to overwrite
6
9
  * the returned data with custom curated data.
@@ -1,4 +1,4 @@
1
- import { Filter } from '../data/filters/filter';
1
+ import { Filter } from '../../data/filters/filter';
2
2
  export declare class FilterUtil {
3
3
  private static readonly log;
4
4
  static equals(aFilters: Filter[], bFilters: Filter[]): boolean;
@@ -1,4 +1,4 @@
1
- import { Filter } from '../data/filters/filter';
1
+ import { Filter } from '../../data/filters/filter';
2
2
  export interface GenericMatcherOptions {
3
3
  mode: 'start' | 'full' | 'anywhere';
4
4
  caseSensitive: boolean;
@@ -81,7 +81,4 @@ export declare class LocalDataFilter<TEntity> {
81
81
  private isExclude;
82
82
  private matchesResolvedValue;
83
83
  private matchesResolvedValueGeneric;
84
- private matchesGenericInclude;
85
- private matchesGenericExclude;
86
- private matchesSingleValue;
87
84
  }
@@ -0,0 +1,35 @@
1
+ export interface MatchOptions {
2
+ caseSensitive?: boolean;
3
+ mode: 'start' | 'full' | 'anywhere';
4
+ exclude?: boolean;
5
+ }
6
+ export interface ValueSpec {
7
+ needle: string | string[] | undefined;
8
+ options: MatchOptions;
9
+ }
10
+ export declare class ObjectFieldMatcher<TEntity> {
11
+ readonly entity: TEntity;
12
+ static of<TEntity>(entity: TEntity): ObjectFieldMatcher<TEntity>;
13
+ /***************************************************************************
14
+ * *
15
+ * Constructor *
16
+ * *
17
+ **************************************************************************/
18
+ constructor(entity: TEntity);
19
+ /***************************************************************************
20
+ * *
21
+ * Public API *
22
+ * *
23
+ **************************************************************************/
24
+ matchesAll(fieldPaths: string[], spec: ValueSpec): boolean;
25
+ matchesAny(fieldPaths: string[], spec: ValueSpec): boolean;
26
+ matches(fieldPath: string, spec: ValueSpec): boolean;
27
+ /***************************************************************************
28
+ * *
29
+ * Private methods *
30
+ * *
31
+ **************************************************************************/
32
+ private matchesGenericExclude;
33
+ private matchesGenericInclude;
34
+ private matchesSingleValue;
35
+ }
@@ -3,7 +3,7 @@ export * from './collection-util';
3
3
  export * from './uuid-util';
4
4
  export * from './property-path-util';
5
5
  export * from './sort-util';
6
- export * from './filter-util';
6
+ export * from './filter/filter-util';
7
7
  export * from './next-number-util';
8
8
  export * from './value-wrapper';
9
9
  export * from './ng-zone-utils';
@@ -12,4 +12,4 @@ export * from './parse-util';
12
12
  export * from './focus-util';
13
13
  export * from './batcher';
14
14
  export * from './signal-input';
15
- export * from './local-data-filter';
15
+ export * from './filter/local-data-filter';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "19.14.1",
3
+ "version": "19.15.0",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^18.0.0 || ^19.0.0",
6
6
  "@angular/common": "^18.0.0 || ^19.0.0",