@sumaris-net/ngx-components 18.15.3 → 18.16.1
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/doc/changelog.md +5 -0
- package/esm2022/src/app/core/about/about.modal.mjs +53 -20
- package/esm2022/src/app/core/services/local-settings.service.mjs +8 -4
- package/esm2022/src/app/core/services/network.utils.mjs +1 -1
- package/esm2022/src/app/shared/file/url.utils.mjs +3 -1
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +3 -25
- package/esm2022/src/environments/environment.class.mjs +2 -1
- package/esm2022/src/environments/environment.mjs +2 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +57 -41
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/about/about.modal.d.ts +23 -11
- package/src/app/core/services/local-settings.service.d.ts +25 -0
- package/src/app/core/services/network.utils.d.ts +1 -0
- package/src/assets/i18n/en-US.json +3 -1
- package/src/assets/i18n/en.json +3 -1
- package/src/assets/i18n/fr.json +3 -1
- package/src/assets/manifest.json +1 -1
- package/src/environments/environment.class.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import { InjectionToken, OnDestroy } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, InjectionToken, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ModalController } from '@ionic/angular';
|
|
3
3
|
import { Department } from '../services/model/department.model';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { ConfigService } from '../services/config.service';
|
|
6
6
|
import { Configuration } from '../services/model/config.model';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
|
+
import { NetworkService } from '../services/network.service';
|
|
9
|
+
import { NodeInfo } from '../services/network.utils';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare const APP_ABOUT_DEVELOPERS: InjectionToken<Partial<Department>[]>;
|
|
10
12
|
export declare const APP_ABOUT_PARTNERS: InjectionToken<Partial<Department>[]>;
|
|
11
|
-
export declare class AboutModal implements OnDestroy {
|
|
13
|
+
export declare class AboutModal implements OnInit, OnDestroy {
|
|
12
14
|
protected translate: TranslateService;
|
|
13
15
|
protected modalController: ModalController;
|
|
14
16
|
protected configService: ConfigService;
|
|
17
|
+
protected networkService: NetworkService;
|
|
18
|
+
protected cd: ChangeDetectorRef;
|
|
15
19
|
protected environment: any;
|
|
16
20
|
developers: Partial<Department>[];
|
|
17
21
|
partners: Partial<Department>[];
|
|
18
|
-
readonly name: string;
|
|
19
|
-
readonly version: string;
|
|
20
|
-
readonly sourceUrl: string;
|
|
21
|
-
readonly config$: Observable<Configuration>;
|
|
22
|
-
reportIssueUrl: string;
|
|
23
|
-
forumUrl: string;
|
|
24
|
-
helpUrl: string;
|
|
25
22
|
private readonly _subscription;
|
|
26
|
-
|
|
23
|
+
protected _logPrefix: string;
|
|
24
|
+
protected readonly name: string;
|
|
25
|
+
protected readonly version: string;
|
|
26
|
+
protected readonly sourceUrl: string;
|
|
27
|
+
protected readonly config$: Observable<Configuration>;
|
|
28
|
+
protected reportIssueUrl: string;
|
|
29
|
+
protected forumUrl: string;
|
|
30
|
+
protected helpUrl: string;
|
|
31
|
+
protected showVersionDetails: boolean;
|
|
32
|
+
protected nodeInfo: NodeInfo;
|
|
33
|
+
protected buildDate: string;
|
|
34
|
+
protected get allowVersionDetails(): boolean;
|
|
35
|
+
constructor(translate: TranslateService, modalController: ModalController, configService: ConfigService, networkService: NetworkService, cd: ChangeDetectorRef, environment: any, developers: Partial<Department>[], partners: Partial<Department>[]);
|
|
36
|
+
ngOnInit(): void;
|
|
27
37
|
ngOnDestroy(): void;
|
|
28
38
|
close(): Promise<void>;
|
|
29
39
|
protected setConfig(config?: Configuration): void;
|
|
30
|
-
|
|
40
|
+
protected loadNodeInfo(): Promise<void>;
|
|
41
|
+
protected getNodeInfo(): Promise<NodeInfo>;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AboutModal, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
31
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<AboutModal, "app-about-modal", never, {}, {}, never, never, false, never>;
|
|
32
44
|
}
|
|
@@ -18,8 +18,33 @@ export interface LocalSettingsOptions {
|
|
|
18
18
|
options: FormFieldDefinitionMap;
|
|
19
19
|
}
|
|
20
20
|
export declare interface AddToPageHistoryOptions {
|
|
21
|
+
/**
|
|
22
|
+
* Represents a configuration option that determines whether query parameters
|
|
23
|
+
* should be removed from the path in a given URL or resource.
|
|
24
|
+
*
|
|
25
|
+
* When set to `true` (default), any query parameters appended to the path
|
|
26
|
+
* will be stripped or ignored during processing.
|
|
27
|
+
* When set to `false` or undefined, query parameters in the path
|
|
28
|
+
* will remain intact and be considered.
|
|
29
|
+
*
|
|
30
|
+
* Commonly used in scenarios where URL normalization or simplification is required.
|
|
31
|
+
*/
|
|
21
32
|
removePathQueryParams?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* A boolean flag indicating whether to remove the <small> HTML tag
|
|
35
|
+
* from the title. When set to true, any <small> tags within the title
|
|
36
|
+
* will be stripped or ignored. Defaults to undefined if not provided.
|
|
37
|
+
*/
|
|
22
38
|
removeTitleSmallTag?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies whether an event should be emitted or not.
|
|
41
|
+
*
|
|
42
|
+
* When set to `true`, the relevant event will be triggered.
|
|
43
|
+
* When set to `false` or omitted, no event will be emitted.
|
|
44
|
+
*
|
|
45
|
+
* Typically used to control the propagation of changes or actions
|
|
46
|
+
* to event listeners within a system or application.
|
|
47
|
+
*/
|
|
23
48
|
emitEvent?: boolean;
|
|
24
49
|
}
|
|
25
50
|
export declare const APP_LOCAL_SETTINGS: InjectionToken<Partial<LocalSettings>>;
|
|
@@ -253,7 +253,9 @@
|
|
|
253
253
|
"USER_MANUAL": "User manual",
|
|
254
254
|
"SOURCE_CODE": "Source core:",
|
|
255
255
|
"DEVELOPED_BY": "Developed by:",
|
|
256
|
-
"PARTNERS": "Partners and sponsors:"
|
|
256
|
+
"PARTNERS": "Partners and sponsors:",
|
|
257
|
+
"POD_VERSION": "Pod v{{version}}",
|
|
258
|
+
"APP_VERSION": "App v{{version}}"
|
|
257
259
|
},
|
|
258
260
|
"HOME": {
|
|
259
261
|
"WELCOME_WEB": "Welcome to the {{appName}} web site!",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -253,7 +253,9 @@
|
|
|
253
253
|
"USER_MANUAL": "User manual",
|
|
254
254
|
"SOURCE_CODE": "Source core:",
|
|
255
255
|
"DEVELOPED_BY": "Developed by:",
|
|
256
|
-
"PARTNERS": "Partners and sponsors:"
|
|
256
|
+
"PARTNERS": "Partners and sponsors:",
|
|
257
|
+
"POD_VERSION": "Pod v{{version}}",
|
|
258
|
+
"APP_VERSION": "App v{{version}}"
|
|
257
259
|
},
|
|
258
260
|
"HOME": {
|
|
259
261
|
"WELCOME_WEB": "Welcome to the {{appName}} web site!",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -253,7 +253,9 @@
|
|
|
253
253
|
"USER_MANUAL": "Manuel",
|
|
254
254
|
"SOURCE_CODE": "Code source :",
|
|
255
255
|
"DEVELOPED_BY": "Développé par :",
|
|
256
|
-
"PARTNERS": "Partenaires et sponsors :"
|
|
256
|
+
"PARTNERS": "Partenaires et sponsors :",
|
|
257
|
+
"POD_VERSION": "Pod v{{version}}",
|
|
258
|
+
"APP_VERSION": "App v{{version}}"
|
|
257
259
|
},
|
|
258
260
|
"HOME": {
|
|
259
261
|
"WELCOME_WEB": "Bienvenue sur le site web {{appName}} !",
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "18.16.1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|