@sumaris-net/ngx-components 2.0.0-rc34 → 2.0.0-rc36
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/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +2 -2
- package/esm2020/src/app/core/form/entity/entity-metadata.component.mjs +1 -1
- package/esm2020/src/app/core/form/form.class.mjs +1 -1
- package/esm2020/src/app/core/form/properties/property.validator.mjs +1 -1
- package/esm2020/src/app/core/graphql/graphql.service.mjs +2 -1
- package/esm2020/src/app/core/home/home.module.mjs +1 -1
- package/esm2020/src/app/core/peer/select-peer.modal.mjs +1 -1
- package/esm2020/src/app/core/services/account.service.mjs +3 -3
- package/esm2020/src/app/core/services/base-graphql-service.class.mjs +1 -1
- package/esm2020/src/app/core/services/network.service.mjs +2 -2
- package/esm2020/src/app/core/services/storage/entity-store.class.mjs +4 -4
- package/esm2020/src/app/core/table/table.class.mjs +6 -3
- package/esm2020/src/app/core/table/testing/table.testing.mjs +3 -3
- package/esm2020/src/app/shared/constants.mjs +4 -2
- package/esm2020/src/app/shared/dates.mjs +2 -1
- package/esm2020/src/app/shared/image/image.module.mjs +1 -1
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +4 -3
- package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +2 -2
- package/esm2020/src/app/shared/material/chips/material.chips.mjs +2 -2
- package/esm2020/src/app/shared/pipes/colors.pipe.mjs +1 -1
- package/esm2020/src/app/shared/pipes/pipes.module.mjs +10 -2
- package/esm2020/src/app/shared/pipes/string.pipes.mjs +28 -2
- package/esm2020/src/app/shared/toast/toasts.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +59 -17
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +59 -17
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/account.service.d.ts +3 -3
- package/src/app/shared/constants.d.ts +1 -1
- package/src/app/shared/pipes/pipes.module.d.ts +1 -1
- package/src/app/shared/pipes/string.pipes.d.ts +10 -0
- package/src/theme/_ngx-components.scss +14 -1
- 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
|
@@ -3,7 +3,7 @@ import { Department } from './model/department.model';
|
|
|
3
3
|
import { Account } from './model/account.model';
|
|
4
4
|
import { Person, UserProfileLabel } from './model/person.model';
|
|
5
5
|
import { LocalSettings, UsageMode, UserSettings } from './model/settings.model';
|
|
6
|
-
import { Observable, Subject, Subscription } from 'rxjs';
|
|
6
|
+
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
7
7
|
import { FetchPolicy } from '@apollo/client/core';
|
|
8
8
|
import { Storage } from '@ionic/storage-angular';
|
|
9
9
|
import { BaseGraphqlService } from './base-graphql-service.class';
|
|
@@ -55,8 +55,8 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
55
55
|
onLogin: Subject<Account>;
|
|
56
56
|
onLogout: Subject<void>;
|
|
57
57
|
onChange: Subject<Account>;
|
|
58
|
-
onAuthTokenChange:
|
|
59
|
-
onAuthBasicChange:
|
|
58
|
+
onAuthTokenChange: BehaviorSubject<string>;
|
|
59
|
+
onAuthBasicChange: BehaviorSubject<string>;
|
|
60
60
|
private _listenChangesSubscription;
|
|
61
61
|
private readonly _enableListenChanges;
|
|
62
62
|
private readonly _listenIntervalInSeconds;
|
|
@@ -3,5 +3,5 @@ export declare const DATE_PATTERN = "YYYY-MM-DD";
|
|
|
3
3
|
export declare const DEFAULT_PLACEHOLDER_CHAR = "_";
|
|
4
4
|
export declare const PUBKEY_REGEXP: RegExp;
|
|
5
5
|
export declare const SPACE_PLACEHOLDER_CHAR = "\u2000";
|
|
6
|
-
export declare const ZERO_PLACEHOLDER_CHAR = "\
|
|
6
|
+
export declare const ZERO_PLACEHOLDER_CHAR = "\uFEFF";
|
|
7
7
|
export declare const KEYBOARD_HIDE_DELAY_MS = 250;
|
|
@@ -21,6 +21,6 @@ import * as i19 from "@ionic/angular";
|
|
|
21
21
|
import * as i20 from "@ngx-translate/core";
|
|
22
22
|
export declare class SharedPipesModule {
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i1.PropertyFormatPipe, typeof i17.MatColorPipe], [typeof i18.CommonModule, typeof i19.IonicModule, typeof i20.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i5.DateFromNowPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe]>;
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i1.PropertyFormatPipe, typeof i17.MatColorPipe], [typeof i18.CommonModule, typeof i19.IonicModule, typeof i20.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i5.DateFromNowPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe]>;
|
|
25
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
|
|
26
26
|
}
|
|
@@ -10,6 +10,16 @@ export declare class IsNilOrBlankPipe implements PipeTransform {
|
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsNilOrBlankPipe, never>;
|
|
11
11
|
static ɵpipe: i0.ɵɵPipeDeclaration<IsNilOrBlankPipe, "isNilOrBlank", false>;
|
|
12
12
|
}
|
|
13
|
+
export declare class IsNotNilOrNaNPipe implements PipeTransform {
|
|
14
|
+
transform(value: number): boolean;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsNotNilOrNaNPipe, never>;
|
|
16
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsNotNilOrNaNPipe, "isNotNilOrNaN", false>;
|
|
17
|
+
}
|
|
18
|
+
export declare class IsNotNilPipe implements PipeTransform {
|
|
19
|
+
transform(value: any): boolean;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsNotNilPipe, never>;
|
|
21
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsNotNilPipe, "isNotNil", false>;
|
|
22
|
+
}
|
|
13
23
|
export declare class ToStringPipe implements PipeTransform {
|
|
14
24
|
transform(value: number): string;
|
|
15
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToStringPipe, never>;
|
|
@@ -260,15 +260,23 @@ mat-date-time-field {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
// --- mat-autocomplete and mat-select panel
|
|
263
|
+
// When simple text option, add a padding
|
|
263
264
|
mat-option {
|
|
264
265
|
.mat-option-text:not(:has(ion-row)) {
|
|
265
266
|
padding: 0 16px;
|
|
266
267
|
}
|
|
267
|
-
|
|
268
|
+
.mat-option-text:has(ion-searchbar) {
|
|
269
|
+
padding: 0 !important;
|
|
270
|
+
}
|
|
268
271
|
ion-row,
|
|
269
272
|
.mat-option-text:has(ion-row) {
|
|
270
273
|
padding: 0;
|
|
271
274
|
}
|
|
275
|
+
mat-autocomplete-footer {
|
|
276
|
+
.mat-option-text {
|
|
277
|
+
padding: 0 !important;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
272
280
|
}
|
|
273
281
|
|
|
274
282
|
mat-option:not(:last-of-type) {
|
|
@@ -305,6 +313,11 @@ mat-option:not(:last-of-type) {
|
|
|
305
313
|
.mat-autocomplete-panel-xlarge-size.mat-autocomplete-panel {
|
|
306
314
|
--min-width: 450px;
|
|
307
315
|
}
|
|
316
|
+
.mat-select-panel.min-width-80vw,
|
|
317
|
+
.min-width-80vw .mat-autocomplete-panel,
|
|
318
|
+
.min-width-80vw.mat-autocomplete-panel {
|
|
319
|
+
--min-width: 80vw;
|
|
320
|
+
}
|
|
308
321
|
|
|
309
322
|
.mat-autocomplete-panel-center .mat-autocomplete-panel,
|
|
310
323
|
.mat-autocomplete-panel-center.mat-autocomplete-panel {
|
|
@@ -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
|