@sumaris-net/ngx-components 18.23.61 → 18.23.63

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.61",
4
+ "version": "18.23.63",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,7 +1,7 @@
1
1
  import { UserProfileLabel } from '../services/model/person.model';
2
2
  import { Configuration } from '../services/model/config.model';
3
3
  import { AppColors, IconRef } from '../../shared/types';
4
- import { BehaviorSubject } from 'rxjs';
4
+ import { BehaviorSubject, Observable, Subscription } from 'rxjs';
5
5
  import { MenuPathParam } from './menu.service';
6
6
  import { Account } from '../services/model/account.model';
7
7
  import { Entity, EntityAsObjectOptions } from '../services/model/entity.model';
@@ -12,11 +12,12 @@ export interface IMenuItem extends IconRef {
12
12
  parent?: IMenuItem;
13
13
  children?: IMenuItem[];
14
14
  title: string;
15
+ tooltip?: string;
15
16
  path?: string;
16
17
  badge?: string | number;
17
18
  badgeColor?: PredefinedColors;
18
- $badge?: BehaviorSubject<string | number>;
19
- $badgeColor?: BehaviorSubject<PredefinedColors>;
19
+ badge$?: Observable<string | number>;
20
+ badgeColor$?: Observable<PredefinedColors>;
20
21
  after?: string;
21
22
  before?: string;
22
23
  static?: boolean;
@@ -43,6 +44,8 @@ export declare class MenuItem extends Entity<MenuItem> implements IMenuItem, ITr
43
44
  static fromObject: (source: any, opts?: {
44
45
  withChildren?: boolean;
45
46
  }) => MenuItem;
47
+ _badgeSubscription: Subscription;
48
+ _badgeColorSubscription: Subscription;
46
49
  parent: MenuItem;
47
50
  parentId: number;
48
51
  $children: BehaviorSubject<MenuItem[]>;
@@ -54,6 +57,7 @@ export declare class MenuItem extends Entity<MenuItem> implements IMenuItem, ITr
54
57
  };
55
58
  $badge: BehaviorSubject<string | number>;
56
59
  $badgeColor: BehaviorSubject<PredefinedColors>;
60
+ tooltip?: string;
57
61
  path?: string;
58
62
  pathParams?: {
59
63
  [key: string]: string;
@@ -86,8 +90,12 @@ export declare class MenuItem extends Entity<MenuItem> implements IMenuItem, ITr
86
90
  set title(value: string);
87
91
  get badge(): string | number;
88
92
  set badge(value: string | number);
93
+ get badge$(): Observable<string | number>;
94
+ set badge$(value$: Observable<string | number>);
89
95
  get badgeColor(): PredefinedColors;
90
96
  set badgeColor(value: PredefinedColors);
97
+ get badgeColor$(): Observable<PredefinedColors>;
98
+ set badgeColor$(value$: Observable<PredefinedColors>);
91
99
  get detached(): boolean;
92
100
  get visible(): boolean;
93
101
  get expanded(): boolean;
@@ -274,7 +274,6 @@
274
274
  "BTN_DISCONNECT": "Disconnect this account",
275
275
  "BTN_MY_ACCOUNT": "My account",
276
276
  "BTN_REGISTER": "Register",
277
- "BTN_CHAT": "Chat",
278
277
  "BTN_DARK_MODE": "Dark or light theme",
279
278
  "SHOW_AT": "Show at",
280
279
  "LEGAL_INFORMATION": "Legal information",
@@ -594,6 +593,10 @@
594
593
  "SHOW_ALL_FEED": "Show all",
595
594
  "EDIT_TITLE": "Edit post"
596
595
  },
596
+ "CHATBOT": {
597
+ "BTN_NEED_HELP": "Need help?",
598
+ "OPEN_TOOLTIP": "AI Assistant"
599
+ },
597
600
  "ERROR": {
598
601
  "LOAD_USER_EVENTS_ERROR": "Error while loading notifications",
599
602
  "COUNT_USER_EVENT_ERROR": "Error while counting notifications",
@@ -274,7 +274,6 @@
274
274
  "BTN_DISCONNECT": "Disconnect this account",
275
275
  "BTN_MY_ACCOUNT": "My account",
276
276
  "BTN_REGISTER": "Register",
277
- "BTN_CHAT": "Chat",
278
277
  "BTN_DARK_MODE": "Dark or light theme",
279
278
  "SHOW_AT": "Show at",
280
279
  "LEGAL_INFORMATION": "Legal information",
@@ -594,6 +593,10 @@
594
593
  "SHOW_ALL_FEED": "Show all",
595
594
  "EDIT_TITLE": "Edit post"
596
595
  },
596
+ "CHATBOT": {
597
+ "BTN_NEED_HELP": "Need help?",
598
+ "OPEN_TOOLTIP": "AI Assistant"
599
+ },
597
600
  "ERROR": {
598
601
  "LOAD_USER_EVENTS_ERROR": "Error while loading notifications",
599
602
  "COUNT_USER_EVENT_ERROR": "Error while counting notifications",
@@ -274,7 +274,6 @@
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",
278
277
  "BTN_DARK_MODE": "Thème (sombre ou clair)",
279
278
  "SHOW_AT": "Consulté le ",
280
279
  "LEGAL_INFORMATION": "Informations légales",
@@ -596,6 +595,10 @@
596
595
  "SHOW_ALL_FEED": "Voir tout",
597
596
  "EDIT_TITLE": "Modifier l'article"
598
597
  },
598
+ "CHATBOT": {
599
+ "BTN_NEED_HELP": "Besoin d'aide ?",
600
+ "OPEN_TOOLTIP": "Assistant IA"
601
+ },
599
602
  "ERROR": {
600
603
  "LOAD_USER_EVENTS_ERROR": "Erreur de chargement des notifications",
601
604
  "COUNT_USER_EVENT_ERROR": "Erreur de comptage des notifications",
@@ -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.61",
5
+ "version": "18.23.63",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{