@sumaris-net/ngx-components 1.19.15 → 1.19.18
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/sumaris-net.ngx-components.umd.js +112 -74
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +9 -0
- package/esm2015/src/app/core/account/account.js +19 -6
- package/esm2015/src/app/core/services/account.service.js +2 -2
- package/esm2015/src/app/core/services/platform.service.js +13 -3
- package/esm2015/src/app/core/services/storage/entities-storage.service.js +28 -27
- package/esm2015/src/app/shared/form/field.component.js +2 -2
- package/esm2015/src/app/shared/material/swipe/material.swipe.js +5 -5
- package/esm2015/src/app/shared/platforms.js +2 -1
- package/esm2015/src/app/shared/validator/validators.js +8 -3
- package/fesm2015/sumaris-net.ngx-components.js +70 -40
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/platform.service.d.ts +1 -0
- package/src/app/core/services/storage/entities-storage.service.d.ts +5 -5
- package/src/app/shared/material/swipe/material.swipe.d.ts +2 -2
- package/src/app/shared/validator/validators.d.ts +6 -1
- package/src/assets/i18n/en-US.json +2 -1
- package/src/assets/i18n/en.json +2 -1
- package/src/assets/i18n/fr.json +5 -2
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -75,6 +75,7 @@ export declare class PlatformService extends StartableService {
|
|
|
75
75
|
filename?: string;
|
|
76
76
|
} & Partial<DownloadRequest>): Observable<string>;
|
|
77
77
|
openFile(filePath: string, fileMimeType: string): Promise<any>;
|
|
78
|
+
protected configureHtmlClassList(mobile: boolean, win?: any): void;
|
|
78
79
|
protected configureCordovaPlugins(): void;
|
|
79
80
|
protected configureTranslate(): void;
|
|
80
81
|
protected configureCache(online?: boolean): void;
|
|
@@ -20,8 +20,8 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
20
20
|
private progressBarService;
|
|
21
21
|
private storage;
|
|
22
22
|
protected environment: Environment;
|
|
23
|
-
static TRASH_PREFIX
|
|
24
|
-
static REMOTE_PREFIX
|
|
23
|
+
static readonly TRASH_PREFIX = "Trash#";
|
|
24
|
+
static readonly REMOTE_PREFIX = "Remote#";
|
|
25
25
|
private readonly _typePolicies;
|
|
26
26
|
private readonly _saveTimerPeriod;
|
|
27
27
|
private _$save;
|
|
@@ -29,6 +29,8 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
29
29
|
private _saving;
|
|
30
30
|
get dirty(): boolean;
|
|
31
31
|
constructor(platform: Platform, progressBarService: ProgressBarService, storage: Storage, environment: Environment, typePolicies: EntitiesStorageTypePolicies);
|
|
32
|
+
ngOnStart(): Promise<EntityStorageMap>;
|
|
33
|
+
protected ngOnStop(): Promise<void>;
|
|
32
34
|
watchAll<T extends Entity<T>>(entityName: string, variables: {
|
|
33
35
|
offset?: number;
|
|
34
36
|
size?: number;
|
|
@@ -91,8 +93,6 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
91
93
|
persist(opts?: {
|
|
92
94
|
skipIfPristine: boolean;
|
|
93
95
|
}): Promise<void>;
|
|
94
|
-
ngOnStart(): Promise<EntityStorageMap>;
|
|
95
|
-
protected ngOnStop(): Promise<void>;
|
|
96
96
|
protected getEntityStore<T extends IEntity<T, ID>, ID = number>(name: string, opts?: {
|
|
97
97
|
create?: boolean;
|
|
98
98
|
}): EntityStore<T, ID>;
|
|
@@ -100,6 +100,6 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
100
100
|
protected restoreLocally(): Promise<void>;
|
|
101
101
|
protected storeLocally(opts?: {
|
|
102
102
|
skipIfPristine: boolean;
|
|
103
|
-
}): Promise<
|
|
103
|
+
}): Promise<void>;
|
|
104
104
|
}
|
|
105
105
|
export {};
|
|
@@ -44,8 +44,8 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
44
44
|
get items(): Observable<any[]> | any[];
|
|
45
45
|
get itemCount(): number;
|
|
46
46
|
onClick: EventEmitter<MouseEvent>;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
blurred: EventEmitter<FocusEvent>;
|
|
48
|
+
focused: EventEmitter<FocusEvent>;
|
|
49
49
|
fakeInput: ElementRef;
|
|
50
50
|
slides: IonSlides;
|
|
51
51
|
prevButton: MatButton;
|
|
@@ -18,6 +18,7 @@ export declare class SharedValidators {
|
|
|
18
18
|
dateMinDuration: string;
|
|
19
19
|
dateMaxDuration: string;
|
|
20
20
|
maxDecimals: string;
|
|
21
|
+
double: string;
|
|
21
22
|
integer: string;
|
|
22
23
|
email: string;
|
|
23
24
|
latitude: string;
|
|
@@ -33,7 +34,11 @@ export declare class SharedValidators {
|
|
|
33
34
|
static empty(control: FormControl): ValidationErrors | null;
|
|
34
35
|
static pubkey(control: FormControl): ValidationErrors | null;
|
|
35
36
|
static integer(control: FormControl): ValidationErrors | null;
|
|
36
|
-
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated use decimal
|
|
39
|
+
*/
|
|
40
|
+
static double: typeof SharedValidators.decimal;
|
|
41
|
+
static decimal(opts?: {
|
|
37
42
|
maxDecimals?: number;
|
|
38
43
|
}): ValidatorFn;
|
|
39
44
|
static validDate(control: FormControl): ValidationErrors | null;
|
|
@@ -444,8 +444,9 @@
|
|
|
444
444
|
"FIELD_MAX": "Maximum value: {{max}}",
|
|
445
445
|
"FIELD_MAX_COMPACT": "Max value={{max}}",
|
|
446
446
|
"FIELD_MAXIMUM_DECIMALS": "Too many decimals ({{maxDecimals}} max)",
|
|
447
|
-
"FIELD_MAXIMUM_DECIMALS_COMPACT": "Nb decimals > {{
|
|
447
|
+
"FIELD_MAXIMUM_DECIMALS_COMPACT": "Nb decimals > {{maxDecimals}}",
|
|
448
448
|
"FIELD_INVALID": "Invalid value",
|
|
449
|
+
"FIELD_NOT_VALID_DECIMAL": "Expected decimal value",
|
|
449
450
|
"FIELD_NOT_VALID_INTEGER": "Expected integer value",
|
|
450
451
|
"FIELD_NOT_VALID_EMAIL": "Invalid email address",
|
|
451
452
|
"FIELD_NOT_VALID_DATE": "Invalid date",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -444,8 +444,9 @@
|
|
|
444
444
|
"FIELD_MAX": "Maximum value: {{max}}",
|
|
445
445
|
"FIELD_MAX_COMPACT": "Max value={{max}}",
|
|
446
446
|
"FIELD_MAXIMUM_DECIMALS": "Too many decimals ({{maxDecimals}} max)",
|
|
447
|
-
"FIELD_MAXIMUM_DECIMALS_COMPACT": "Nb decimals > {{
|
|
447
|
+
"FIELD_MAXIMUM_DECIMALS_COMPACT": "Nb decimals > {{maxDecimals}}",
|
|
448
448
|
"FIELD_INVALID": "Invalid value",
|
|
449
|
+
"FIELD_NOT_VALID_DECIMAL": "Expected decimal value",
|
|
449
450
|
"FIELD_NOT_VALID_INTEGER": "Expected integer value",
|
|
450
451
|
"FIELD_NOT_VALID_EMAIL": "Invalid email address",
|
|
451
452
|
"FIELD_NOT_VALID_DATE": "Invalid date",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -256,6 +256,8 @@
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
"REFERENTIAL": {
|
|
259
|
+
"LABEL": "Code",
|
|
260
|
+
"NAME": "Libellé",
|
|
259
261
|
"STATUS_ENUM": {
|
|
260
262
|
"ENABLE": "Actif à la saisie",
|
|
261
263
|
"DISABLE": "Inactif à la saisie",
|
|
@@ -444,9 +446,10 @@
|
|
|
444
446
|
"FIELD_MIN_COMPACT": "Min {{min}}",
|
|
445
447
|
"FIELD_MAX": "Valeur maximale autorisée: {{max}}",
|
|
446
448
|
"FIELD_MAX_COMPACT": "Max {{max}}",
|
|
447
|
-
"FIELD_MAXIMUM_DECIMALS": "Trop de décimales (max: {{
|
|
448
|
-
"FIELD_MAXIMUM_DECIMALS_COMPACT": "Nb décimale > {{
|
|
449
|
+
"FIELD_MAXIMUM_DECIMALS": "Trop de décimales (max: {{maxDecimals}})",
|
|
450
|
+
"FIELD_MAXIMUM_DECIMALS_COMPACT": "Nb décimale > {{maxDecimals}}",
|
|
449
451
|
"FIELD_INVALID": "Valeur non valide",
|
|
452
|
+
"FIELD_NOT_VALID_DECIMAL": "Valeur décimale attendue",
|
|
450
453
|
"FIELD_NOT_VALID_INTEGER": "Valeur entière attendue",
|
|
451
454
|
"FIELD_NOT_VALID_EMAIL": "Adresse email invalide",
|
|
452
455
|
"FIELD_NOT_VALID_DATE": "Date invalide",
|