@sumaris-net/ngx-components 0.23.2-beta → 0.24.2
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/bundles/ngx-sumaris-components.umd.js +328 -280
- package/bundles/ngx-sumaris-components.umd.js.map +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js +2 -2
- package/bundles/ngx-sumaris-components.umd.min.js.map +1 -1
- package/esm2015/src/app/admin/services/filter/person.filter.js +4 -2
- package/esm2015/src/app/admin/services/person.service.js +4 -3
- package/esm2015/src/app/admin/users/list/users.js +1 -1
- package/esm2015/src/app/core/install/install-upgrade-card.component.js +20 -14
- package/esm2015/src/app/core/services/platform.service.js +28 -8
- package/esm2015/src/app/shared/functions.js +6 -11
- package/esm2015/src/app/shared/material/boolean/material.boolean.js +1 -1
- package/fesm2015/ngx-sumaris-components.js +325 -286
- package/fesm2015/ngx-sumaris-components.js.map +1 -1
- package/ngx-sumaris-components.metadata.json +1 -1
- package/package.json +1 -1
- package/src/app/admin/services/filter/person.filter.d.ts +1 -0
- package/src/app/admin/services/person.service.d.ts +1 -1
- package/src/app/core/install/install-upgrade-card.component.d.ts +8 -5
- package/src/app/core/services/platform.service.d.ts +10 -1
- package/src/app/shared/functions.d.ts +1 -1
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ export declare class PersonFilter extends EntityFilter<PersonFilter, Person> {
|
|
|
13
13
|
userProfiles: string[];
|
|
14
14
|
excludedIds: number[];
|
|
15
15
|
searchAttribute: string;
|
|
16
|
+
searchAttributes: string[];
|
|
16
17
|
constructor();
|
|
17
18
|
fromObject(source: any, opts?: EntityAsObjectOptions): void;
|
|
18
19
|
asObject(opts?: EntityAsObjectOptions): StoreObject;
|
|
@@ -32,7 +32,7 @@ export declare class PersonService extends BaseEntityService<Person, PersonFilte
|
|
|
32
32
|
withTotal?: boolean;
|
|
33
33
|
toEntity?: boolean;
|
|
34
34
|
}): Promise<LoadResult<Person>>;
|
|
35
|
-
suggest(value: any, filter?: PersonFilter): Promise<LoadResult<Person>>;
|
|
35
|
+
suggest(value: any, filter?: PersonFilter, sortBy?: string, sortDirection?: SortDirection): Promise<LoadResult<Person>>;
|
|
36
36
|
executeImport(progression: BehaviorSubject<number>, opts?: {
|
|
37
37
|
maxProgression?: number;
|
|
38
38
|
}): Promise<void>;
|
|
@@ -9,6 +9,8 @@ export declare interface InstallAppLink {
|
|
|
9
9
|
platform?: 'android' | 'ios';
|
|
10
10
|
version?: string;
|
|
11
11
|
downloadFilename?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
mimeType?: string;
|
|
12
14
|
}
|
|
13
15
|
export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
14
16
|
private modalCtrl;
|
|
@@ -26,23 +28,24 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
|
26
28
|
updateLinks: InstallAppLink[];
|
|
27
29
|
offline: boolean;
|
|
28
30
|
upgradeVersion: string;
|
|
31
|
+
isAndroidCordova: boolean;
|
|
29
32
|
isLogin: boolean;
|
|
30
33
|
showUpgradeWarning: boolean;
|
|
31
34
|
showOfflineWarning: boolean;
|
|
32
35
|
showInstallButton: boolean;
|
|
33
36
|
set showUpdateOfflineFeature(value: boolean);
|
|
34
37
|
get showUpdateOfflineFeature(): boolean;
|
|
35
|
-
onUpdateOfflineModeClick: EventEmitter<UIEvent>;
|
|
36
38
|
constructor(modalCtrl: ModalController, configService: ConfigService, platform: PlatformService, cd: ChangeDetectorRef, network: NetworkService, environment: any);
|
|
39
|
+
onUpdateOfflineModeClick: EventEmitter<UIEvent>;
|
|
37
40
|
ngOnInit(): Promise<void>;
|
|
38
41
|
ngOnDestroy(): void;
|
|
39
|
-
|
|
42
|
+
downloadLink(event: UIEvent, link: InstallAppLink): void;
|
|
40
43
|
tryOnline(): void;
|
|
41
44
|
getPlatformName(platform: 'android' | 'ios'): "" | "Android" | "iOS";
|
|
42
|
-
|
|
45
|
+
asLink(value: any): InstallAppLink;
|
|
43
46
|
private getCompatibleInstallLinks;
|
|
44
47
|
private getCompatibleUpgradeLinks;
|
|
45
48
|
private getAllInstallLinks;
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
private getFilename;
|
|
50
|
+
private markForCheck;
|
|
48
51
|
}
|
|
@@ -17,6 +17,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
17
17
|
import { AccountService } from './account.service';
|
|
18
18
|
import { ConfigService } from './config.service';
|
|
19
19
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
20
|
+
import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
|
|
20
21
|
export declare class PlatformService {
|
|
21
22
|
private platform;
|
|
22
23
|
private cdkPlatform;
|
|
@@ -36,20 +37,24 @@ export declare class PlatformService {
|
|
|
36
37
|
private keyboard;
|
|
37
38
|
private splashScreen;
|
|
38
39
|
private browser;
|
|
40
|
+
private downloader;
|
|
39
41
|
private readonly _debug;
|
|
40
42
|
private _started;
|
|
41
43
|
private _startPromise;
|
|
42
44
|
private _mobile;
|
|
45
|
+
private _cordova;
|
|
46
|
+
private _android;
|
|
43
47
|
touchUi: boolean;
|
|
44
48
|
get started(): boolean;
|
|
45
49
|
get mobile(): boolean;
|
|
46
|
-
constructor(platform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, storage: Storage, audioProvider: AudioProvider, environment: any, statusBar: StatusBar, keyboard: Keyboard, splashScreen: SplashScreen, browser: InAppBrowser);
|
|
50
|
+
constructor(platform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, storage: Storage, audioProvider: AudioProvider, environment: any, statusBar: StatusBar, keyboard: Keyboard, splashScreen: SplashScreen, browser: InAppBrowser, downloader: Downloader);
|
|
47
51
|
is(platformName: Platforms): boolean;
|
|
48
52
|
/**
|
|
49
53
|
* Say if opened has been opened from a web browser (and NOT inside an Android or iOs App).
|
|
50
54
|
* This is used to known if there is cordova features
|
|
51
55
|
*/
|
|
52
56
|
isWebOrDesktop(): boolean;
|
|
57
|
+
isAndroidCordova(): boolean;
|
|
53
58
|
width(): number;
|
|
54
59
|
height(): number;
|
|
55
60
|
start(): Promise<void>;
|
|
@@ -63,6 +68,10 @@ export declare class PlatformService {
|
|
|
63
68
|
checkPeriod: number;
|
|
64
69
|
}): Promise<any>;
|
|
65
70
|
open(url: string, target?: string, features?: string, replace?: boolean): void;
|
|
71
|
+
download(request: {
|
|
72
|
+
uri: string;
|
|
73
|
+
filename?: string;
|
|
74
|
+
} & Partial<DownloadRequest>): void;
|
|
66
75
|
protected configureCordovaPlugins(mobile: boolean): void;
|
|
67
76
|
protected configureTranslate(): void;
|
|
68
77
|
protected configureCache(online?: boolean): void;
|
|
@@ -59,7 +59,7 @@ export declare function joinProperties<T = any, K extends keyof T = any>(obj: T,
|
|
|
59
59
|
export declare function propertyPathComparator<T = any>(path: string): (a: T, b: T) => number;
|
|
60
60
|
export declare function propertyComparator<T = any, K extends keyof T = any>(key: K, defaultValue?: any): (a: T, b: T) => number;
|
|
61
61
|
export declare function propertiesPathComparator<T = any>(keys: string[], defaultValues?: any[]): (a: T, b: T) => number;
|
|
62
|
-
export declare function sort<T>(array: T[], attribute: string): T[];
|
|
62
|
+
export declare function sort<T>(array: T[], attribute: string, opts?: Intl.CollatorOptions): T[];
|
|
63
63
|
export declare function isInt(value: string): boolean;
|
|
64
64
|
export declare function isNumber(value: string): boolean;
|
|
65
65
|
export declare function isNumberRange(value: string): boolean;
|