@sumaris-net/ngx-components 1.19.0 → 1.19.3
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 +95 -34
- 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/auth/form/form-auth.js +26 -20
- package/esm2015/src/app/core/form/form.class.js +27 -7
- package/esm2015/src/app/core/services/base-entity-service.class.js +6 -6
- package/esm2015/src/app/core/services/model/referential.model.js +1 -1
- package/esm2015/src/app/shared/platforms.js +20 -4
- package/fesm2015/sumaris-net.ngx-components.js +74 -32
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/auth/form/form-auth.d.ts +1 -1
- package/src/app/core/form/form.class.d.ts +8 -1
- package/src/app/core/services/model/referential.model.d.ts +7 -7
- package/src/app/shared/platforms.d.ts +1 -1
- package/src/assets/i18n/en-US.json +21 -2
- package/src/assets/i18n/en.json +19 -1
- package/src/assets/i18n/fr.json +2 -2
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ export declare class AuthForm extends AppForm<AuthData> implements OnInit {
|
|
|
27
27
|
constructor(injector: Injector, platform: PlatformService, formBuilder: FormBuilder, settings: LocalSettingsService, configService: ConfigService, modalCtrl: ModalController, network: NetworkService, cd: ChangeDetectorRef, environment: any);
|
|
28
28
|
ngOnInit(): void;
|
|
29
29
|
cancel(): void;
|
|
30
|
-
doSubmit(event?: UIEvent): void
|
|
30
|
+
doSubmit(event?: UIEvent): Promise<void>;
|
|
31
31
|
register(): void;
|
|
32
32
|
protected markForCheck(): void;
|
|
33
33
|
}
|
|
@@ -60,7 +60,14 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
60
60
|
ngOnInit(): void;
|
|
61
61
|
ngOnDestroy(): void;
|
|
62
62
|
cancel(): void;
|
|
63
|
-
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @param event
|
|
66
|
+
* @param opts allow to skip validation check, using {checkValid: false}
|
|
67
|
+
*/
|
|
68
|
+
doSubmit(event: any, opts?: {
|
|
69
|
+
checkValid?: boolean;
|
|
70
|
+
}): Promise<void>;
|
|
64
71
|
setForm(form: FormGroup): void;
|
|
65
72
|
setValue(data: T, opts?: {
|
|
66
73
|
emitEvent?: boolean;
|
|
@@ -9,6 +9,13 @@ export declare interface IStatus {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const StatusList: Readonly<IStatus[]>;
|
|
11
11
|
export declare const StatusById: Readonly<import("../../../shared/types").KeyValueType<IStatus>>;
|
|
12
|
+
export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any, any>, ID = number> extends IEntity<T, ID> {
|
|
13
|
+
label: string;
|
|
14
|
+
name: string;
|
|
15
|
+
levelId?: number;
|
|
16
|
+
statusId: number;
|
|
17
|
+
entityName: string;
|
|
18
|
+
}
|
|
12
19
|
export declare abstract class BaseReferential<T extends BaseReferential<T, ID, AO>, ID = number, AO extends ReferentialAsObjectOptions = ReferentialAsObjectOptions, FO = any> extends Entity<T, ID, AO, FO> implements IReferentialRef<T, ID> {
|
|
13
20
|
label: string;
|
|
14
21
|
name: string;
|
|
@@ -35,13 +42,6 @@ export declare class ReferentialUtils {
|
|
|
35
42
|
static isEmpty<T extends BaseReferential<any> | ReferentialRef>(obj: T | any): boolean;
|
|
36
43
|
static equals<T extends BaseReferential<any> | ReferentialRef>(o1: T | any, o2: T | any): boolean;
|
|
37
44
|
}
|
|
38
|
-
export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any, any>, ID = number> extends IEntity<T, ID> {
|
|
39
|
-
label: string;
|
|
40
|
-
name: string;
|
|
41
|
-
levelId?: number;
|
|
42
|
-
statusId: number;
|
|
43
|
-
entityName: string;
|
|
44
|
-
}
|
|
45
45
|
export interface ReferentialAsObjectOptions extends EntityAsObjectOptions {
|
|
46
46
|
keepEntityName?: boolean;
|
|
47
47
|
}
|
|
@@ -2,7 +2,7 @@ export declare const matchMedia: (win: Window, query: string) => boolean;
|
|
|
2
2
|
export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
|
|
3
3
|
export declare const isWindows: (win?: Window) => boolean;
|
|
4
4
|
export declare const isTouchUi: (win?: Window) => boolean;
|
|
5
|
-
export declare const isMobile: (win: Window) => boolean;
|
|
6
5
|
export declare const isIOS: (win: Window) => boolean;
|
|
7
6
|
export declare const isAndroid: (win: Window) => boolean;
|
|
8
7
|
export declare const isCordova: (win: any) => boolean;
|
|
8
|
+
export declare const isMobile: (win: Window) => any;
|
|
@@ -396,12 +396,31 @@
|
|
|
396
396
|
},
|
|
397
397
|
"TYPE_ENUM": {
|
|
398
398
|
"DEBUG_DATA": "Debug data",
|
|
399
|
-
"INBOX_MESSAGE": "Inbox message"
|
|
399
|
+
"INBOX_MESSAGE": "Inbox message",
|
|
400
|
+
"FEED": "Feed"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"MESSAGE": {
|
|
404
|
+
"TYPE": "Message type",
|
|
405
|
+
"RECIPIENTS": "Recipients",
|
|
406
|
+
"SUBJECT": "Object",
|
|
407
|
+
"BODY_HELP": "Your message...",
|
|
408
|
+
"NEW": {
|
|
409
|
+
"TITLE": "New message"
|
|
410
|
+
},
|
|
411
|
+
"TYPE_ENUM": {
|
|
412
|
+
"INBOX_MESSAGE": "Internal message",
|
|
413
|
+
"EMAIL": "Email",
|
|
414
|
+
"FEED": "Feed"
|
|
400
415
|
}
|
|
401
416
|
},
|
|
402
417
|
"ERROR": {
|
|
403
418
|
"LOAD_USER_EVENTS_ERROR": "Error while loading notifications",
|
|
404
|
-
"SAVE_USER_EVENT_ERROR": "Error while saving user
|
|
419
|
+
"SAVE_USER_EVENT_ERROR": "Error while saving user notification",
|
|
420
|
+
"SEND_MESSAGE_ERROR": "Error while sending message"
|
|
421
|
+
},
|
|
422
|
+
"INFO": {
|
|
423
|
+
"MESSAGE_SENT": "Message <b>sent</b>"
|
|
405
424
|
}
|
|
406
425
|
},
|
|
407
426
|
"FILE": {
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -400,9 +400,27 @@
|
|
|
400
400
|
"FEED": "Feed"
|
|
401
401
|
}
|
|
402
402
|
},
|
|
403
|
+
"MESSAGE": {
|
|
404
|
+
"TYPE": "Message type",
|
|
405
|
+
"RECIPIENTS": "Recipients",
|
|
406
|
+
"SUBJECT": "Object",
|
|
407
|
+
"BODY_HELP": "Your message...",
|
|
408
|
+
"NEW": {
|
|
409
|
+
"TITLE": "New message"
|
|
410
|
+
},
|
|
411
|
+
"TYPE_ENUM": {
|
|
412
|
+
"INBOX_MESSAGE": "Internal message",
|
|
413
|
+
"EMAIL": "Email",
|
|
414
|
+
"FEED": "Feed"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
403
417
|
"ERROR": {
|
|
404
418
|
"LOAD_USER_EVENTS_ERROR": "Error while loading notifications",
|
|
405
|
-
"SAVE_USER_EVENT_ERROR": "Error while saving user
|
|
419
|
+
"SAVE_USER_EVENT_ERROR": "Error while saving user notification",
|
|
420
|
+
"SEND_MESSAGE_ERROR": "Error while sending message"
|
|
421
|
+
},
|
|
422
|
+
"INFO": {
|
|
423
|
+
"MESSAGE_SENT": "Message <b>sent</b>"
|
|
406
424
|
}
|
|
407
425
|
},
|
|
408
426
|
"FILE": {
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
},
|
|
176
176
|
"TESTING": "Mode développeur ?",
|
|
177
177
|
"ENTITY_TRASH": "Activer la corbeille du pod ?",
|
|
178
|
-
"UPDATE_TECHNICAL_TABLES": "
|
|
178
|
+
"UPDATE_TECHNICAL_TABLES": "Pod > Tables techniques : mise à jour auto ?",
|
|
179
179
|
"ANALYTIC_REFERENCES_ENABLE": "Stratégie > Références analytiques : Activer ?",
|
|
180
180
|
"AUTH_TOKEN_TYPE_PLACEHOLDER": "Securité > Type d'authentification",
|
|
181
181
|
"AUTH_TOKEN_TYPE": {
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
"SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message"
|
|
422
422
|
},
|
|
423
423
|
"INFO": {
|
|
424
|
-
"MESSAGE_SENT": "Message
|
|
424
|
+
"MESSAGE_SENT": "Message <b>envoyé</b>"
|
|
425
425
|
}
|
|
426
426
|
},
|
|
427
427
|
"FILE": {
|