@sumaris-net/ngx-components 18.7.4-rc1 → 18.7.4-rc3
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 +10 -0
- package/esm2022/src/app/admin/users/users.mjs +4 -4
- package/esm2022/src/app/core/account/token.table.mjs +1 -1
- package/esm2022/src/app/core/form/properties/properties.table.mjs +3 -3
- package/esm2022/src/app/core/table/column/actions-column.component.mjs +9 -6
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +3 -3
- package/esm2022/src/app/shared/functions.mjs +6 -3
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +6 -4
- package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +4 -4
- package/esm2022/src/app/shared/pipes/math.pipes.mjs +3 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +30 -22
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/column/actions-column.component.d.ts +5 -2
- package/src/app/shared/functions.d.ts +2 -1
- package/src/app/shared/material/duration/material.duration.d.ts +1 -0
- package/src/app/shared/pipes/math.pipes.d.ts +1 -1
- package/src/assets/i18n/en-US.json +3 -5
- package/src/assets/i18n/en.json +3 -5
- package/src/assets/i18n/fr.json +3 -5
package/package.json
CHANGED
|
@@ -20,7 +20,10 @@ export declare class ActionsColumnComponent<T extends TableElement<any> | AsyncT
|
|
|
20
20
|
dirtyIcon: boolean | string;
|
|
21
21
|
optionsTitle: string;
|
|
22
22
|
classList: string;
|
|
23
|
-
|
|
23
|
+
cellTemplateAfter: TemplateRef<{
|
|
24
|
+
$implicit: T;
|
|
25
|
+
}>;
|
|
26
|
+
cellTemplateBefore: TemplateRef<{
|
|
24
27
|
$implicit: T;
|
|
25
28
|
}>;
|
|
26
29
|
optionsClick: EventEmitter<Event>;
|
|
@@ -48,7 +51,7 @@ export declare class ActionsColumnComponent<T extends TableElement<any> | AsyncT
|
|
|
48
51
|
ngOnInit(): void;
|
|
49
52
|
ngOnDestroy(): void;
|
|
50
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsColumnComponent<any>, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsColumnComponent<any>, "app-actions-column", never, { "matColumnDef": { "alias": "matColumnDef"; "required": false; }; "style": { "alias": "style"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; "canCancel": { "alias": "canCancel"; "required": false; }; "canConfirm": { "alias": "canConfirm"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "canBackward": { "alias": "canBackward"; "required": false; }; "canForward": { "alias": "canForward"; "required": false; }; "canConfirmAndAdd": { "alias": "canConfirmAndAdd"; "required": false; }; "dirtyIcon": { "alias": "dirtyIcon"; "required": false; }; "optionsTitle": { "alias": "optionsTitle"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsColumnComponent<any>, "app-actions-column", never, { "matColumnDef": { "alias": "matColumnDef"; "required": false; }; "style": { "alias": "style"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; "canCancel": { "alias": "canCancel"; "required": false; }; "canConfirm": { "alias": "canConfirm"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "canBackward": { "alias": "canBackward"; "required": false; }; "canForward": { "alias": "canForward"; "required": false; }; "canConfirmAndAdd": { "alias": "canConfirmAndAdd"; "required": false; }; "dirtyIcon": { "alias": "dirtyIcon"; "required": false; }; "optionsTitle": { "alias": "optionsTitle"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "cellTemplateAfter": { "alias": "cellTemplateAfter"; "required": false; }; "cellTemplateBefore": { "alias": "cellTemplateBefore"; "required": false; }; }, { "optionsClick": "optionsClick"; "cancelOrDeleteClick": "cancelOrDeleteClick"; "confirmEditCreateClick": "confirmEditCreateClick"; "confirmAndAddClick": "confirmAndAddClick"; "backward": "backward"; "forward": "forward"; }, never, ["[matHeader]", "[matFooter]", "[matHeader]", "[matFooter]"], false, never>;
|
|
52
55
|
static ngAcceptInputType_stickyEnd: unknown;
|
|
53
56
|
static ngAcceptInputType_canCancel: unknown;
|
|
54
57
|
static ngAcceptInputType_canConfirm: unknown;
|
|
@@ -92,9 +92,10 @@ export declare function isPromise<T>(value: T | Promise<T>): value is Promise<T>
|
|
|
92
92
|
* Rounds a numeric value to two decimal places.
|
|
93
93
|
*
|
|
94
94
|
* @param {number | undefined | null} value - The value to be rounded. Can be a number, undefined, or null.
|
|
95
|
+
* @param nbDecimal the number of decimal (default: 2)
|
|
95
96
|
* @return {number} The rounded value with two decimal places if the input value is a valid number; otherwise, returns the input value.
|
|
96
97
|
*/
|
|
97
|
-
export declare function round(value: number | undefined | null): number;
|
|
98
|
+
export declare function round(value: number | undefined | null, nbDecimal?: number): number;
|
|
98
99
|
export declare function equalsOrNil(value1: any, value2: any): boolean;
|
|
99
100
|
/**
|
|
100
101
|
* remove elements from an array
|
|
@@ -22,6 +22,7 @@ export declare class MatDuration implements OnInit, OnDestroy, ControlValueAcces
|
|
|
22
22
|
private _tabindex;
|
|
23
23
|
private _value;
|
|
24
24
|
textControl: UntypedFormControl;
|
|
25
|
+
maskitoPlaceholder: string;
|
|
25
26
|
readonly durationMask: (string | RegExp)[];
|
|
26
27
|
disabled: boolean;
|
|
27
28
|
formControl: UntypedFormControl;
|
|
@@ -19,7 +19,7 @@ export declare class OddPipe implements PipeTransform {
|
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<OddPipe>;
|
|
20
20
|
}
|
|
21
21
|
export declare class RoundPipe implements PipeTransform {
|
|
22
|
-
transform(val: number): any;
|
|
22
|
+
transform(val: number, nbDecimal?: number): any;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<RoundPipe, never>;
|
|
24
24
|
static ɵpipe: i0.ɵɵPipeDeclaration<RoundPipe, "round", false>;
|
|
25
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<RoundPipe>;
|
|
@@ -459,11 +459,9 @@
|
|
|
459
459
|
"PASSWORD": "Password",
|
|
460
460
|
"FIRST_NAME": "First name",
|
|
461
461
|
"LAST_NAME": "Last name",
|
|
462
|
-
"DEPARTMENT":
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
"NAME": "Organization name"
|
|
466
|
-
},
|
|
462
|
+
"DEPARTMENT": "Organization",
|
|
463
|
+
"DEPARTMENT_LABEL": "Organization code",
|
|
464
|
+
"DEPARTMENT_NAME": "Organization name",
|
|
467
465
|
"STATUS": "State",
|
|
468
466
|
"PUBKEY": "Public key",
|
|
469
467
|
"CREATION_DATE": "Creation date",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -459,11 +459,9 @@
|
|
|
459
459
|
"PASSWORD": "Password",
|
|
460
460
|
"FIRST_NAME": "First name",
|
|
461
461
|
"LAST_NAME": "Last name",
|
|
462
|
-
"DEPARTMENT":
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
"NAME": "Organization name"
|
|
466
|
-
},
|
|
462
|
+
"DEPARTMENT": "Organization",
|
|
463
|
+
"DEPARTMENT_LABEL": "Organization code",
|
|
464
|
+
"DEPARTMENT_NAME": "Organization name",
|
|
467
465
|
"STATUS": "State",
|
|
468
466
|
"PUBKEY": "Public key",
|
|
469
467
|
"CREATION_DATE": "Creation date",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -459,11 +459,9 @@
|
|
|
459
459
|
"PASSWORD": "Mot de passe",
|
|
460
460
|
"FIRST_NAME": "Prénom",
|
|
461
461
|
"LAST_NAME": "Nom",
|
|
462
|
-
"DEPARTMENT":
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
"NAME": "Libellé organisme"
|
|
466
|
-
},
|
|
462
|
+
"DEPARTMENT": "Organisme",
|
|
463
|
+
"DEPARTMENT_LABEL": "Code organisme",
|
|
464
|
+
"DEPARTMENT_NAME": "Libellé organisme",
|
|
467
465
|
"STATUS": "Etat",
|
|
468
466
|
"PUBKEY": "Clé publique",
|
|
469
467
|
"CREATION_DATE": "Date création",
|