@sumaris-net/ngx-components 18.23.58 → 18.23.60

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.23.58",
4
+ "version": "18.23.60",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -38,6 +38,9 @@
38
38
  "zone.js": "~0.14.10"
39
39
  },
40
40
  "optionalDependencies": {
41
+ "@awesome-cordova-plugins/audio-management": "^6.16.0",
42
+ "@awesome-cordova-plugins/core": "^6.16.0",
43
+ "@awesome-cordova-plugins/downloader": "^6.16.0",
41
44
  "@capacitor-community/native-audio": "^7.0.1",
42
45
  "@capacitor/android": "^7.4.4",
43
46
  "@capacitor/app": "^7.1.0",
@@ -52,12 +55,9 @@
52
55
  "@capacitor/network": "^7.0.3",
53
56
  "@capacitor/splash-screen": "^7.0.3",
54
57
  "@capacitor/status-bar": "^7.0.3",
58
+ "@capawesome/capacitor-android-edge-to-edge-support": "^7.2.3",
55
59
  "@e-is/cordova-plugin-audiomanagement": "^1.0.3",
56
60
  "@e-is/cordova-plugin-downloader": "^1.2.0",
57
- "@awesome-cordova-plugins/core": "^6.16.0",
58
- "@awesome-cordova-plugins/audio-management": "^6.16.0",
59
- "@awesome-cordova-plugins/downloader": "^6.16.0",
60
- "@capawesome/capacitor-android-edge-to-edge-support": "^7.2.3",
61
61
  "clipboard": "^2.0.11",
62
62
  "cordova-sqlite-storage": "~6.0.0",
63
63
  "emoji-toolkit": ">= 8.0.0 < 10.0.0",
@@ -26,6 +26,7 @@ import * as i0 from "@angular/core";
26
26
  export declare const getRandomImage: typeof ImagesUtils.getRandomImage;
27
27
  export declare const getRandomImageWithCredit: typeof ImagesUtils.getRandomImageWithCredit;
28
28
  export declare const APP_HOME_BUTTONS: InjectionToken<IMenuItem[]>;
29
+ export declare const APP_HOME_TOOLBAR_BUTTONS: InjectionToken<IMenuItem[]>;
29
30
  export declare const APP_HOME_CONFIG: InjectionToken<IHomePageConfig>;
30
31
  export interface IHomePageConfig {
31
32
  showNotificationIcon?: boolean | 'mobile' | 'desktop';
@@ -79,9 +80,11 @@ export declare class HomePage extends RxState<HomePageState> implements OnInit,
79
80
  protected feedMaxContentLength: number;
80
81
  protected hasScrollbar: boolean;
81
82
  protected readonly buttons: MenuItem[];
83
+ protected readonly toolbarButtons: MenuItem[];
82
84
  protected loading$: import("rxjs").Observable<boolean>;
83
85
  protected $partners: BehaviorSubject<Department[]>;
84
86
  protected $filteredButtons: BehaviorSubject<MenuItem[]>;
87
+ protected $filteredToolbarButtons: BehaviorSubject<MenuItem[]>;
85
88
  protected darkMode$: import("rxjs").Observable<boolean>;
86
89
  protected pageHistory$: import("rxjs").Observable<HistoryPageReference[]>;
87
90
  protected hasFeed$: import("rxjs").Observable<boolean>;
@@ -103,7 +106,7 @@ export declare class HomePage extends RxState<HomePageState> implements OnInit,
103
106
  get partnerBannerSize(): number;
104
107
  content: IonContent;
105
108
  showTooltip: boolean;
106
- 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[], config: IHomePageConfig);
109
+ 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[], toolbarButtons: IMenuItem[], config: IHomePageConfig);
107
110
  ngOnInit(): void;
108
111
  ngOnDestroy(): void;
109
112
  login(): Promise<void>;
@@ -119,12 +122,14 @@ export declare class HomePage extends RxState<HomePageState> implements OnInit,
119
122
  protected onLogin(account: Account): void;
120
123
  protected onLogout(): void;
121
124
  protected refreshButtons(account?: Account): void;
125
+ protected filterButtons(items: MenuItem[], account?: Account): MenuItem[];
122
126
  openMarkdownModal(event?: Event, item?: IMenuItem): Promise<void>;
123
127
  protected toggleDarkMode(): Promise<void>;
124
128
  protected removePageHistory(path: string): Promise<void>;
125
129
  protected checkScrollbar(): Promise<void>;
126
130
  protected initFeed(feed: FeedsComponent): void;
131
+ protected onToolbarButtonClick(event: Event, item: MenuItem): void;
127
132
  protected markForCheck(): void;
128
- static ɵfac: i0.ɵɵFactoryDeclaration<HomePage, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<HomePage, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
129
134
  static ɵcmp: i0.ɵɵComponentDeclaration<HomePage, "app-page-home", never, {}, {}, never, never, false, never>;
130
135
  }
@@ -18,7 +18,7 @@ export interface InputElement extends FocusableElement {
18
18
  }
19
19
  export declare function isInputElement(object: any): object is InputElement;
20
20
  export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
21
- export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
21
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
22
22
  export interface CanGainFocusOptions {
23
23
  minTabindex?: number;
24
24
  maxTabindex?: number;
@@ -274,6 +274,7 @@
274
274
  "BTN_DISCONNECT": "Disconnect this account",
275
275
  "BTN_MY_ACCOUNT": "My account",
276
276
  "BTN_REGISTER": "Register",
277
+ "BTN_CHAT": "Chat",
277
278
  "BTN_DARK_MODE": "Dark or light theme",
278
279
  "SHOW_AT": "Show at",
279
280
  "LEGAL_INFORMATION": "Legal information",
@@ -274,6 +274,7 @@
274
274
  "BTN_DISCONNECT": "Disconnect this account",
275
275
  "BTN_MY_ACCOUNT": "My account",
276
276
  "BTN_REGISTER": "Register",
277
+ "BTN_CHAT": "Chat",
277
278
  "BTN_DARK_MODE": "Dark or light theme",
278
279
  "SHOW_AT": "Show at",
279
280
  "LEGAL_INFORMATION": "Legal information",
@@ -274,6 +274,7 @@
274
274
  "BTN_DISCONNECT": "Déconnecter ce compte",
275
275
  "BTN_MY_ACCOUNT": "Mon compte",
276
276
  "BTN_REGISTER": "S'inscrire",
277
+ "BTN_CHAT": "Discussion",
277
278
  "BTN_DARK_MODE": "Thème (sombre ou clair)",
278
279
  "SHOW_AT": "Consulté le ",
279
280
  "LEGAL_INFORMATION": "Informations légales",
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.23.58",
5
+ "version": "18.23.60",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{