@sumaris-net/ngx-components 18.23.20 → 18.23.21
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 +3 -0
- package/esm2022/src/app/core/services/model/peer.model.mjs +6 -5
- package/esm2022/src/app/core/services/platform.service.mjs +47 -2
- package/esm2022/src/app/shared/file/uri.utils.mjs +1 -1
- package/esm2022/src/app/shared/file/url.utils.mjs +18 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +63 -4
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/peer.model.d.ts +1 -1
- package/src/app/core/services/platform.service.d.ts +8 -1
- package/src/app/shared/file/url.utils.d.ts +9 -0
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { Cloneable, Entity, EntityAsObjectOptions } from './entity.model';
|
|
|
2
2
|
import { NodeFeature } from './node-feature.model';
|
|
3
3
|
export declare class Peer extends Entity<Peer> implements Cloneable<Peer> {
|
|
4
4
|
static fromObject: (source: any, opts?: any) => Peer;
|
|
5
|
-
static parseUrl(peerUrl: string): Peer;
|
|
5
|
+
static parseUrl(peerUrl: string | URL): Peer;
|
|
6
6
|
static path(peer: Peer, ...paths: string[]): string;
|
|
7
7
|
static equals(p1: Peer, p2: Peer): boolean;
|
|
8
8
|
static countAllFeatures(peers: Peer[]): number;
|
|
@@ -9,7 +9,7 @@ import { EntitiesStorage } from './storage/entities-storage.service';
|
|
|
9
9
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
10
10
|
import { TranslateService } from '@ngx-translate/core';
|
|
11
11
|
import { AccountService } from './account.service';
|
|
12
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
12
|
+
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
13
13
|
import { Environment } from '../../../environments/environment.class';
|
|
14
14
|
import { ConfigService } from './config.service';
|
|
15
15
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
@@ -102,6 +102,13 @@ export declare class PlatformService extends StartableService {
|
|
|
102
102
|
}): Promise<void>;
|
|
103
103
|
toggleDarkTheme(enable: boolean): Promise<void>;
|
|
104
104
|
toggleHighContrast(enable: boolean): void;
|
|
105
|
+
/**
|
|
106
|
+
* Handle deep links (Android App Links / iOS Universal Links)
|
|
107
|
+
*/
|
|
108
|
+
addDeepLinkListener(listenerFn: (deppLink: {
|
|
109
|
+
peerUrl: string;
|
|
110
|
+
path: string;
|
|
111
|
+
}) => void): Promise<Subscription>;
|
|
105
112
|
showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
|
|
106
113
|
closeToast(id?: string): Promise<boolean>;
|
|
107
114
|
protected configureTheme(mobile: boolean, win?: any): Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { noTrailingSlash } from '../functions';
|
|
1
2
|
export declare abstract class UrlUtils {
|
|
2
3
|
/**
|
|
3
4
|
* Determines if a given URL is a relative URL.
|
|
@@ -96,4 +97,12 @@ export declare abstract class UrlUtils {
|
|
|
96
97
|
static addStartingSlash(url: string): string;
|
|
97
98
|
static removeStartingSlash(url: string): string;
|
|
98
99
|
static concat(basePath: string, relativePath: string): string;
|
|
100
|
+
/**
|
|
101
|
+
* Cleans the given pathname by replacing occurrences of multiple consecutive slashes with a single slash.
|
|
102
|
+
*
|
|
103
|
+
* @param {string} pathname - The pathname to be cleaned.
|
|
104
|
+
* @return {string} The cleaned pathname with redundant slashes removed.
|
|
105
|
+
*/
|
|
106
|
+
static cleanPath(pathname: string): string;
|
|
107
|
+
static noTrailingSlash: typeof noTrailingSlash;
|
|
99
108
|
}
|
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.23.
|
|
5
|
+
"version": "18.23.21",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|