@sumaris-net/ngx-components 1.22.0 → 1.22.3

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.
Files changed (31) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +3644 -3611
  2. package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
  3. package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
  4. package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
  5. package/doc/changelog.md +3 -0
  6. package/esm2015/public_api.js +3 -1
  7. package/esm2015/src/app/core/core.module.js +5 -5
  8. package/esm2015/src/app/core/icon/icon.module.js +26 -0
  9. package/esm2015/src/app/core/menu/menu.component.js +9 -5
  10. package/esm2015/src/app/core/menu/menu.model.js +3 -1
  11. package/esm2015/src/app/core/menu/menu.module.js +4 -2
  12. package/esm2015/src/app/social/job/progression/job-progression.list.js +1 -1
  13. package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +1 -1
  14. package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +3 -3
  15. package/esm2015/src/app/social/user-event/testing/user-event.testing.service.js +8 -2
  16. package/esm2015/src/app/social/user-event/user-event.module.js +4 -4
  17. package/esm2015/src/app/social/user-event/user-event.service.js +13 -14
  18. package/esm2015/sumaris-net.ngx-components.js +15 -16
  19. package/fesm2015/sumaris-net.ngx-components.js +3143 -3110
  20. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  21. package/package.json +1 -1
  22. package/public_api.d.ts +2 -0
  23. package/src/app/core/icon/icon.module.d.ts +2 -0
  24. package/src/app/core/menu/menu.component.d.ts +7 -5
  25. package/src/app/core/menu/menu.model.d.ts +3 -0
  26. package/src/app/social/user-event/user-event.service.d.ts +12 -7
  27. package/src/assets/i18n/en-US.json +2 -1
  28. package/src/assets/i18n/en.json +2 -1
  29. package/src/assets/i18n/fr.json +3 -2
  30. package/sumaris-net.ngx-components.d.ts +14 -15
  31. package/sumaris-net.ngx-components.metadata.json +1 -1
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": "1.22.0",
4
+ "version": "1.22.3",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -149,6 +149,8 @@ export * from './src/app/core/table/memory-table.class';
149
149
  export * from './src/app/core/table/entities-table-datasource.class';
150
150
  export * from './src/app/core/table/table-select-columns.component';
151
151
  export * from './src/app/core/table/actions-column.component';
152
+ export * from './src/app/core/icon/icon.module';
153
+ export * from './src/app/core/icon/icon.component';
152
154
  export * from './src/app/core/home/home';
153
155
  export * from './src/app/core/settings/settings.page';
154
156
  export * from './src/app/core/account/account';
@@ -0,0 +1,2 @@
1
+ export declare class AppIconModule {
2
+ }
@@ -9,8 +9,9 @@ import { ConfigService } from '../services/config.service';
9
9
  import { HammerSwipeEvent } from '../../shared/gesture/hammer.utils';
10
10
  import { PlatformService } from '../services/platform.service';
11
11
  import { MenuService, SplitPaneShowWhen } from './menu.service';
12
- import { MenuItem } from './menu.model';
12
+ import { MenuOptions, MenuItem } from './menu.model';
13
13
  export declare const APP_MENU_ITEMS: InjectionToken<MenuItem[]>;
14
+ export declare const APP_MENU_OPTIONS: InjectionToken<MenuOptions>;
14
15
  export declare class MenuComponent implements OnInit {
15
16
  protected platformService: PlatformService;
16
17
  protected accountService: AccountService;
@@ -37,11 +38,12 @@ export declare class MenuComponent implements OnInit {
37
38
  menuId: string;
38
39
  side: string;
39
40
  contentId: string;
40
- logo: String;
41
- appName: String;
42
- appVersion: String;
41
+ logo: string;
42
+ appName: string;
43
+ appVersion: string;
44
+ showNotification: boolean;
43
45
  splitPane: IonSplitPane;
44
- constructor(platformService: PlatformService, accountService: AccountService, router: Router, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, configService: ConfigService, cd: ChangeDetectorRef, menuService: MenuService, environment: any, items: MenuItem[]);
46
+ constructor(platformService: PlatformService, accountService: AccountService, router: Router, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, configService: ConfigService, cd: ChangeDetectorRef, menuService: MenuService, environment: any, options: MenuOptions, items: MenuItem[]);
45
47
  ngOnInit(): Promise<void>;
46
48
  onLogin(account: Account): Promise<void>;
47
49
  onLogout(skipRedirect?: boolean): Promise<void>;
@@ -24,3 +24,6 @@ export declare class MenuItems {
24
24
  logPrefix?: string;
25
25
  }): boolean;
26
26
  }
27
+ export declare class MenuOptions {
28
+ showNotification?: boolean;
29
+ }
@@ -11,7 +11,7 @@ import { OverlayEventDetail } from '@ionic/core';
11
11
  import { ToastController } from '@ionic/angular';
12
12
  import { TranslateService } from '@ngx-translate/core';
13
13
  import { NetworkService } from '../../core/services/network.service';
14
- import { BaseGraphqlService } from '../../core/services/base-graphql-service.class';
14
+ import { BaseGraphqlService, BaseGraphqlServiceOptions } from '../../core/services/base-graphql-service.class';
15
15
  import { Environment } from '../../../environments/environment.class';
16
16
  import { Moment } from 'moment';
17
17
  import { IStartableService } from '../../shared/services/startable-service.class';
@@ -38,6 +38,11 @@ export interface IUserEventListener<E extends IUserEvent<E>> {
38
38
  onReceived?: (E: any) => E | undefined;
39
39
  onRead?: (E: any) => Promise<void> | void;
40
40
  }
41
+ export interface UserEventServiceOptions<Q extends IUserEventQueries = IUserEventQueries, M extends IUserEventMutations = IUserEventMutations, S extends IUserEventSubscriptions = IUserEventSubscriptions> extends BaseGraphqlServiceOptions {
42
+ queries: Q;
43
+ mutations?: Partial<M>;
44
+ subscriptions?: Partial<S>;
45
+ }
41
46
  export interface IUserEventService<E extends IUserEvent<E>, F extends IUserEventFilter<E>, WO extends UserEventWatchOptions = UserEventWatchOptions> extends IEntitiesService<E, F, WO>, IStartableService {
42
47
  userEventCount: Observable<number>;
43
48
  add(entity: E): any;
@@ -58,22 +63,22 @@ export interface IUserEventService<E extends IUserEvent<E>, F extends IUserEvent
58
63
  registerListener(listener: IUserEventListener<E>): any;
59
64
  resetCount(): any;
60
65
  }
61
- export declare abstract class AbstractUserEventService<E extends IUserEvent<E, any>, F extends IUserEventFilter<E, any>, WO extends UserEventWatchOptions = UserEventWatchOptions> extends BaseGraphqlService<E, F> implements IUserEventService<E, F, WO>, OnDestroy {
66
+ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, any>, F extends IUserEventFilter<E, any>, WO extends UserEventWatchOptions = UserEventWatchOptions, Q extends IUserEventQueries = IUserEventQueries, M extends IUserEventMutations = IUserEventMutations, S extends IUserEventSubscriptions = IUserEventSubscriptions> extends BaseGraphqlService<E, F> implements IUserEventService<E, F, WO>, OnDestroy {
62
67
  protected graphql: GraphqlService;
63
68
  protected accountService: AccountService;
64
69
  protected network: NetworkService;
65
70
  protected translate: TranslateService;
66
- protected queries: IUserEventQueries;
67
- protected mutations: IUserEventMutations;
68
- protected subscriptions: IUserEventSubscriptions;
69
- protected environment: Environment;
71
+ protected options: UserEventServiceOptions<Q, M, S>;
72
+ protected readonly queries: Q;
73
+ protected readonly mutations: Partial<M>;
74
+ protected readonly subscriptions: Partial<S>;
70
75
  protected count$: BehaviorSubject<number>;
71
76
  protected resetCountDate: Moment;
72
77
  protected listeners: IUserEventListener<E>[];
73
78
  private _subscriptions;
74
79
  private _listenSubscription;
75
80
  get userEventCount(): Observable<number>;
76
- protected constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService, queries: IUserEventQueries, mutations: IUserEventMutations, subscriptions: IUserEventSubscriptions, environment: Environment);
81
+ protected constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService, options: UserEventServiceOptions<Q, M, S>);
77
82
  protected ngOnStart(): Promise<void>;
78
83
  ngOnDestroy(): void;
79
84
  abstract asFilter(filter: Partial<F>): F;
@@ -195,7 +195,8 @@
195
195
  "FOOTER_VERSION_ABOUT": "v{{version}} | About",
196
196
  "LOCAL_SETTINGS": "Settings",
197
197
  "LOGOUT": "Logout",
198
- "ABOUT": "About"
198
+ "ABOUT": "About",
199
+ "BTN_MY_ACCOUNT": "My account"
199
200
  },
200
201
  "ABOUT": {
201
202
  "TITLE": "About",
@@ -195,7 +195,8 @@
195
195
  "FOOTER_VERSION_ABOUT": "v{{version}} | About",
196
196
  "LOCAL_SETTINGS": "Settings",
197
197
  "LOGOUT": "Logout",
198
- "ABOUT": "About"
198
+ "ABOUT": "About",
199
+ "BTN_MY_ACCOUNT": "My account"
199
200
  },
200
201
  "ABOUT": {
201
202
  "TITLE": "About",
@@ -195,7 +195,8 @@
195
195
  "FOOTER_VERSION_ABOUT": "v{{version}} | à propos",
196
196
  "LOCAL_SETTINGS": "Paramètres",
197
197
  "LOGOUT": "Se déconnecter",
198
- "ABOUT": "À propos"
198
+ "ABOUT": "À propos",
199
+ "BTN_MY_ACCOUNT": "Mon compte"
199
200
  },
200
201
  "ABOUT": {
201
202
  "TITLE": "À propos",
@@ -393,7 +394,7 @@
393
394
  "NOTIFICATION": {
394
395
  "TITLE": "Notifications",
395
396
  "EMPTY": "Aucune notification",
396
- "READ_ALL": "Marquer tout comme lu"
397
+ "READ_ALL": "Tout marquer comme lu"
397
398
  },
398
399
  "EVENT_TYPE": "Type",
399
400
  "CREATION_DATE": "Date/Heure",
@@ -2,21 +2,20 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './public_api';
5
- export { AppIconComponent as ɵj } from './src/app/core/icon/icon.component';
6
- export { AppUpdateOfflineModeCard as ɵi } from './src/app/core/offline/update-offline-mode-card.component';
7
- export { RegisterForm as ɵd } from './src/app/core/register/form/form-register';
8
- export { RegisterModal as ɵf } from './src/app/core/register/modal/modal-register';
9
- export { AccountValidatorService as ɵe } from './src/app/core/services/validator/account.validator';
10
- export { LocalSettingsValidatorService as ɵh } from './src/app/core/services/validator/local-settings.validator';
11
- export { UserSettingsValidatorService as ɵg } from './src/app/core/services/validator/user-settings.validator';
5
+ export { AppUpdateOfflineModeCard as ɵk } from './src/app/core/offline/update-offline-mode-card.component';
6
+ export { RegisterForm as ɵf } from './src/app/core/register/form/form-register';
7
+ export { RegisterModal as ɵh } from './src/app/core/register/modal/modal-register';
8
+ export { AccountValidatorService as ɵg } from './src/app/core/services/validator/account.validator';
9
+ export { LocalSettingsValidatorService as ɵj } from './src/app/core/services/validator/local-settings.validator';
10
+ export { UserSettingsValidatorService as ɵi } from './src/app/core/services/validator/user-settings.validator';
12
11
  export { isFocusableElement as ɵc } from './src/app/shared/focusable';
13
- export { MatBadgeIconTestPage as ɵp } from './src/app/shared/material/badge/badge-icon.test';
14
- export { DateTestPage as ɵn } from './src/app/shared/material/datetime/testing/mat-date.test';
12
+ export { MatBadgeIconTestPage as ɵo } from './src/app/shared/material/badge/badge-icon.test';
13
+ export { DateTestPage as ɵm } from './src/app/shared/material/datetime/testing/mat-date.test';
15
14
  export { MatNumpadDomService as ɵb } from './src/app/shared/material/numpad/numpad.dom-service';
16
- export { NumpadTestPage as ɵo } from './src/app/shared/material/numpad/testing/numpad.test';
15
+ export { NumpadTestPage as ɵn } from './src/app/shared/material/numpad/testing/numpad.test';
17
16
  export { CustomReuseStrategy as ɵa } from './src/app/shared/shared-routing.module';
18
- export { ToastTestingPage as ɵr } from './src/app/shared/toast/toast.testing';
19
- export { ToastTestingModule as ɵq } from './src/app/shared/toast/toast.testing.module';
20
- export { JobProgressionList as ɵm } from './src/app/social/job/progression/job-progression.list';
21
- export { UserEventNotificationList as ɵk } from './src/app/social/user-event/notification/user-event-notification.list';
22
- export { UserEventTestService as ɵl } from './src/app/social/user-event/testing/user-event.testing.service';
17
+ export { ToastTestingPage as ɵq } from './src/app/shared/toast/toast.testing';
18
+ export { ToastTestingModule as ɵp } from './src/app/shared/toast/toast.testing.module';
19
+ export { JobProgressionList as ɵl } from './src/app/social/job/progression/job-progression.list';
20
+ export { UserEventNotificationList as ɵd } from './src/app/social/user-event/notification/user-event-notification.list';
21
+ export { UserEventTestService as ɵe } from './src/app/social/user-event/testing/user-event.testing.service';