@sumaris-net/ngx-components 18.23.20 → 18.23.22

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.20",
4
+ "version": "18.23.22",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -7,12 +7,12 @@ import { AbstractControl, UntypedFormBuilder, UntypedFormGroup } from '@angular/
7
7
  import { AppTable } from '../../core/table/table.class';
8
8
  import { ValidatorService } from '@e-is/ngx-material-table';
9
9
  import { FormFieldDefinition, FormFieldDefinitionUtils } from '../../shared/form/field.model';
10
+ import { Environment } from '../../../environments/environment.class';
10
11
  import { PersonFilter } from './person.filter';
11
12
  import { ConfigService } from '../../core/services/config.service';
12
13
  import { MatExpansionPanel } from '@angular/material/expansion';
13
14
  import { MessageService } from '../../social/message/message.service';
14
15
  import { MenuService } from '../../core/menu/menu.service';
15
- import { ModalController } from '@ionic/angular';
16
16
  import * as i0 from "@angular/core";
17
17
  export declare class UsersPage extends AppTable<Person, PersonFilter> implements OnInit {
18
18
  protected accountService: AccountService;
@@ -21,7 +21,6 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
21
21
  protected dataService: IPersonService;
22
22
  protected messageService: MessageService;
23
23
  protected menuService: MenuService;
24
- protected modalCtrl: ModalController;
25
24
  readonly canDebug: boolean;
26
25
  readonly filterForm: UntypedFormGroup;
27
26
  readonly profiles: import("../../core/services/model/person.model").UserProfileLabel[];
@@ -57,7 +56,7 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
57
56
  showFooter: boolean;
58
57
  showToolbar: boolean;
59
58
  showPaginator: boolean;
60
- constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, validatorService: ValidatorService, configService: ConfigService, dataService: IPersonService, messageService: MessageService, menuService: MenuService, modalCtrl: ModalController, environment: any);
59
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, validatorService: ValidatorService, configService: ConfigService, dataService: IPersonService, messageService: MessageService, menuService: MenuService, environment: Environment);
61
60
  filterExpansionPanel: MatExpansionPanel;
62
61
  get firstUserColumn(): string;
63
62
  ngOnInit(): Promise<void>;
@@ -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
  }
@@ -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.20",
5
+ "version": "18.23.22",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{