@sumaris-net/ngx-components 2.2.2 → 2.2.4
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/esm2020/public_api.mjs +3 -1
- package/esm2020/src/app/core/form/form.utils.mjs +1 -2
- package/esm2020/src/app/core/services/platform.service.mjs +6 -4
- package/esm2020/src/app/core/table/table.class.mjs +3 -3
- package/esm2020/src/app/shared/dates.mjs +2 -2
- package/esm2020/src/app/shared/file/json.utils.mjs +33 -0
- package/esm2020/src/app/shared/geolocation/geolocation.utils.mjs +41 -0
- package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +44 -16
- package/fesm2015/sumaris-net.ngx-components.mjs +113 -18
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +114 -15
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/resources/README.md +5 -6
- package/src/app/core/form/form.utils.d.ts +0 -1
- package/src/app/core/table/table.class.d.ts +3 -1
- package/src/app/shared/file/json.utils.d.ts +11 -0
- package/src/app/shared/geolocation/geolocation.utils.d.ts +11 -0
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +5 -2
- package/plugins/clovelced-plugin-audiomanagement/README.md +0 -66
- package/plugins/cordova-plugin-camera/README.md +0 -703
- package/plugins/cordova-plugin-device/README.md +0 -309
- package/plugins/cordova-plugin-file/README.md +0 -848
- package/plugins/cordova-plugin-file-transfer/README.md +0 -598
- package/plugins/cordova-plugin-file-transfer/doc/de/README.md +0 -311
- package/plugins/cordova-plugin-file-transfer/doc/es/README.md +0 -311
- package/plugins/cordova-plugin-file-transfer/doc/fr/README.md +0 -270
- package/plugins/cordova-plugin-file-transfer/doc/it/README.md +0 -311
- package/plugins/cordova-plugin-file-transfer/doc/ja/README.md +0 -311
- package/plugins/cordova-plugin-file-transfer/doc/ko/README.md +0 -311
- package/plugins/cordova-plugin-file-transfer/doc/pl/README.md +0 -311
- package/plugins/cordova-plugin-file-transfer/doc/zh/README.md +0 -311
- package/plugins/cordova-plugin-ionic-keyboard/README.md +0 -220
- package/plugins/cordova-plugin-ionic-webview/README.md +0 -181
- package/plugins/cordova-plugin-media-capture/README.md +0 -626
- package/plugins/cordova-plugin-splashscreen/README.md +0 -387
- package/plugins/cordova-plugin-statusbar/README.md +0 -341
- package/plugins/cordova-plugin-telerik-imagepicker/README.md +0 -155
- package/plugins/cordova-plugin-whitelist/README.md +0 -185
- package/plugins/cordova-sqlite-storage/README.md +0 -1848
- package/plugins/integrator-cordova-plugin-downloader/README.md +0 -49
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -97,9 +97,11 @@ export * from './src/app/shared/observables';
|
|
|
97
97
|
export * from './src/app/shared/events';
|
|
98
98
|
export * from './src/app/shared/alerts';
|
|
99
99
|
export * from './src/app/shared/platforms';
|
|
100
|
+
export * from './src/app/shared/geolocation/geolocation.utils';
|
|
100
101
|
export * from './src/app/shared/file/file.utils';
|
|
101
102
|
export * from './src/app/shared/file/csv.utils';
|
|
102
103
|
export * from './src/app/shared/file/images.utils';
|
|
104
|
+
export * from './src/app/shared/file/json.utils';
|
|
103
105
|
export * from './src/app/shared/file/uri.utils';
|
|
104
106
|
export * from './src/app/shared/hotkeys/shared-hotkeys.module';
|
|
105
107
|
export * from './src/app/shared/hotkeys/hotkeys.service';
|
package/resources/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
`ionic cordova resources` to generate custom icons and splash screens for your
|
|
3
|
-
app. See `ionic cordova resources --help` for details.
|
|
1
|
+
## How-to generate App Icon and Splash Screen Images
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
- Create 1024x1024px icon at resources/icon.png
|
|
4
|
+
- Create 2732x2732px splash at resources/splash.png
|
|
5
|
+
- Run `npm run resources`
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/
|
|
7
|
+
> see https://dalezak.medium.com/generate-app-icon-and-splash-screen-images-for-ionic-framework-using-capacitor-e1f8c6ef0fd4
|
|
@@ -264,7 +264,9 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
264
264
|
isAllSelected(): boolean;
|
|
265
265
|
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
266
266
|
masterToggle(): Promise<void>;
|
|
267
|
-
deleteSelection(event: Event
|
|
267
|
+
deleteSelection(event: Event, opts?: {
|
|
268
|
+
interactive?: boolean;
|
|
269
|
+
}): Promise<number>;
|
|
268
270
|
/**
|
|
269
271
|
*
|
|
270
272
|
* @param event
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlatformService } from '../../core/services/platform.service';
|
|
2
|
+
export declare class IPosition {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class GeolocationUtils {
|
|
7
|
+
/**
|
|
8
|
+
* Get the position by geo loc sensor
|
|
9
|
+
*/
|
|
10
|
+
static getCurrentPosition(platform: PlatformService, options?: PositionOptions): Promise<IPosition>;
|
|
11
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { PlatformService } from '../../../../core/services/platform.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LatLongTestPage implements OnInit {
|
|
5
6
|
protected formBuilder: UntypedFormBuilder;
|
|
7
|
+
protected platform: PlatformService;
|
|
6
8
|
form: UntypedFormGroup;
|
|
7
|
-
|
|
9
|
+
geoPositionMessage: string;
|
|
10
|
+
constructor(formBuilder: UntypedFormBuilder, platform: PlatformService);
|
|
8
11
|
ngOnInit(): void;
|
|
9
12
|
loadData(): Promise<void>;
|
|
10
13
|
doSubmit(event: any): void;
|
|
11
|
-
geoPosition(event: Event):
|
|
14
|
+
geoPosition(event: Event, controlName?: string): Promise<void>;
|
|
12
15
|
stringify: {
|
|
13
16
|
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
14
17
|
(value: any, replacer?: (string | number)[], space?: string | number): string;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# cordova-plugin-audiomanagement
|
|
2
|
-
A plugin to manage audio mode and volume
|
|
3
|
-
|
|
4
|
-
## Installation
|
|
5
|
-
`cordova plugin add clovelced-plugin-audiomanagement`
|
|
6
|
-
|
|
7
|
-
## Supported Platforms
|
|
8
|
-
|
|
9
|
-
- Android
|
|
10
|
-
|
|
11
|
-
## AUDIO MODE
|
|
12
|
-
- Define the audio mode
|
|
13
|
-
```javascript
|
|
14
|
-
AudioManagement.setAudioMode(audioMode, onSuccess, onError);
|
|
15
|
-
|
|
16
|
-
// Example
|
|
17
|
-
AudioManagement.setAudioMode(AudioManagement.AudioMode.NORMAL, function(){}, function(){});
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
- Get the current audio mode
|
|
21
|
-
```javascript
|
|
22
|
-
AudioManagement.getAudioMode(onSuccess, onError);
|
|
23
|
-
|
|
24
|
-
AudioManagement.getAudioMode(function(result){
|
|
25
|
-
console.log('Mode' + result.audioMode); // will show '2'
|
|
26
|
-
console.log('Label' + result.label); // will show 'Normal'
|
|
27
|
-
}, onError);
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### The audio mode
|
|
31
|
-
- `AudioManagement.AudioMode.SILENT` = 0
|
|
32
|
-
- `AudioManagement.AudioMode.VIBRATE` = 1
|
|
33
|
-
- `AudioManagement.AudioMode.NORMAL` = 2
|
|
34
|
-
|
|
35
|
-
## VOLUME
|
|
36
|
-
- Set the volume
|
|
37
|
-
```javascript
|
|
38
|
-
AudioManagement.setVolume(type, volume, onSuccess, onError);
|
|
39
|
-
|
|
40
|
-
// Example
|
|
41
|
-
AudioManagement.setVolume(AudioManagement.VolumeType.RING, 10, function(){}, function(){});
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
- Get the volume of a stream
|
|
45
|
-
```javascript
|
|
46
|
-
AudioManagement.getVolume(type, onSuccess, onError);
|
|
47
|
-
|
|
48
|
-
AudioManagement.getVolume(AudioManagement.VolumeType.RING, function(result){
|
|
49
|
-
console.log('Volume' + result.volume); // will show '12'
|
|
50
|
-
}, onError);
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
- Get the max volume of a stream
|
|
54
|
-
```javascript
|
|
55
|
-
AudioManagement.getMaxVolume(type, onSuccess, onError);
|
|
56
|
-
|
|
57
|
-
AudioManagement.getMaxVolume(AudioManagement.VolumeType.RING, function(result){
|
|
58
|
-
console.log('Max volume' + result.maxVolume); // will show '15'
|
|
59
|
-
}, onError);
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### The volume type
|
|
63
|
-
- `AudioManagement.VolumeType.RING` = 0
|
|
64
|
-
- `AudioManagement.VolumeType.MUSIC` = 1
|
|
65
|
-
- `AudioManagement.VolumeType.NOTIFICATION` = 2
|
|
66
|
-
- `AudioManagement.VolumeType.SYSTEM` = 3
|