@sumaris-net/ngx-components 18.14.3 → 18.14.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.14.3",
4
+ "version": "18.14.5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -2,31 +2,31 @@ import { RxState } from '@rx-angular/state';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
3
  import { Router } from '@angular/router';
4
4
  import { JsonFeed } from './feed.model';
5
- import { Observable } from 'rxjs';
6
5
  import { PlatformService } from '../../core/services/platform.service';
7
6
  import { Environment } from '../../../environments/environment.class';
8
7
  import { AppColors } from '../../shared/types';
9
8
  import { IFeedService } from './feed.service';
10
9
  import * as i0 from "@angular/core";
11
- export interface FeedState {
10
+ export interface FeedState<T> {
12
11
  maxAgeInMonths: number;
13
12
  maxContentLength: number;
14
- feeds: JsonFeed[];
13
+ feeds: T[];
15
14
  hasFeeds: boolean;
16
15
  }
17
16
  export declare class FeedsComponent<T extends JsonFeed = JsonFeed> {
18
17
  protected environment: Environment;
19
18
  feedService: IFeedService<T>;
20
19
  protected _debug: boolean;
21
- protected _state: RxState<FeedState>;
20
+ protected _state: RxState<FeedState<T>>;
22
21
  protected translate: TranslateService;
23
22
  protected platform: PlatformService;
24
23
  protected router: Router;
25
24
  protected version: string;
26
- feeds$: Observable<T[]>;
27
- hasFeeds$: Observable<boolean>;
28
- feeds: T[];
29
- hasFeeds: boolean;
25
+ feeds$: import("rxjs").Observable<T[]>;
26
+ hasFeeds$: import("rxjs").Observable<boolean>;
27
+ set feeds(value: T[]);
28
+ get feeds(): T[];
29
+ get hasFeeds(): boolean;
30
30
  showHeader: boolean;
31
31
  headerTextColor: AppColors;
32
32
  constructor(environment: Environment, feedService: IFeedService<T>);