@sumaris-net/ngx-components 2.9.15 → 2.9.17

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": "2.9.15",
4
+ "version": "2.9.17",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -15,10 +15,17 @@ import { IMenuItem } from '../menu/menu.model';
15
15
  import { ShowToastOptions } from '../../shared/toast/toasts';
16
16
  import { Environment } from '../../../environments/environment.class';
17
17
  import { HistoryPageReference } from '../services/model/history.model';
18
+ import { RxState } from '@rx-angular/state';
18
19
  import * as i0 from "@angular/core";
19
20
  export declare const getRandomImage: (files: string[]) => string;
20
21
  export declare const APP_HOME_BUTTONS: InjectionToken<IMenuItem[]>;
21
- export declare class HomePage implements OnDestroy {
22
+ export interface HomePageState {
23
+ loading: boolean;
24
+ showSpinner: boolean;
25
+ showPartnerBanner: boolean;
26
+ pageHistory: HistoryPageReference[];
27
+ }
28
+ export declare class HomePage extends RxState<HomePageState> implements OnDestroy {
22
29
  private accountService;
23
30
  private modalCtrl;
24
31
  private translate;
@@ -34,13 +41,12 @@ export declare class HomePage implements OnDestroy {
34
41
  private readonly _debug;
35
42
  private _subscription;
36
43
  private _config;
37
- loading: boolean;
44
+ protected pageHistory$: import("rxjs").Observable<HistoryPageReference[]>;
45
+ protected loading$: import("rxjs").Observable<boolean>;
38
46
  waitingNetwork: boolean;
39
- showSpinner: boolean;
40
47
  accountName: string;
41
48
  isLogin: boolean;
42
49
  $partners: BehaviorSubject<Department[]>;
43
- loadingBanner: boolean;
44
50
  logo: string;
45
51
  description: string;
46
52
  appName: string;
@@ -48,10 +54,17 @@ export declare class HomePage implements OnDestroy {
48
54
  canRegister: boolean;
49
55
  contentStyle: any;
50
56
  contentCredits: string;
51
- pageHistory: HistoryPageReference[];
52
57
  offline: boolean;
53
58
  $filteredButtons: BehaviorSubject<IMenuItem[]>;
54
59
  readonly showAccountButton: boolean;
60
+ set pageHistory(value: HistoryPageReference[]);
61
+ get pageHistory(): HistoryPageReference[];
62
+ set loading(value: boolean);
63
+ get loading(): boolean;
64
+ set showSpinner(value: boolean);
65
+ get showSpinner(): boolean;
66
+ set showPartnerBanner(value: boolean);
67
+ get showPartnerBanner(): boolean;
55
68
  get currentLocaleCode(): string;
56
69
  constructor(accountService: AccountService, modalCtrl: ModalController, translate: TranslateService, toastController: ToastController, configService: ConfigService, platform: PlatformService, cd: ChangeDetectorRef, network: NetworkService, settings: LocalSettingsService, environment: Environment, locales: LocaleConfig[], buttons: IMenuItem[]);
57
70
  ngOnDestroy(): void;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.9.15",
5
+ "version": "2.9.17",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -255,7 +255,8 @@ mat-option:not(:last-of-type) {
255
255
 
256
256
  // FIXME : This is a workaround find at : https://github.com/angular/components/issues/26000#issuecomment-1563107933
257
257
  .cdk-overlay-pane.mat-select-panel-fit-content {
258
- min-width: fit-content;
258
+ --min-width: fit-content;
259
+ min-width: var(--min-width);
259
260
  }
260
261
 
261
262
  .mat-mdc-autocomplete-panel-center .mat-mdc-autocomplete-panel,