@sumaris-net/ngx-components 18.7.3 → 18.7.4-rc2
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/esm2022/src/app/shared/functions.mjs +6 -3
- package/esm2022/src/app/shared/pipes/math.pipes.mjs +19 -1
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +5 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +26 -3
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +2 -1
- package/src/app/shared/pipes/math.pipes.d.ts +6 -0
- package/src/app/shared/pipes/pipes.module.d.ts +1 -1
package/package.json
CHANGED
|
@@ -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
|
|
@@ -18,3 +18,9 @@ export declare class OddPipe implements PipeTransform {
|
|
|
18
18
|
static ɵpipe: i0.ɵɵPipeDeclaration<OddPipe, "odd", false>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<OddPipe>;
|
|
20
20
|
}
|
|
21
|
+
export declare class RoundPipe implements PipeTransform {
|
|
22
|
+
transform(val: number, nbDecimal?: number): any;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoundPipe, never>;
|
|
24
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RoundPipe, "round", false>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoundPipe>;
|
|
26
|
+
}
|
|
@@ -29,6 +29,6 @@ import * as i27 from "@ionic/angular";
|
|
|
29
29
|
import * as i28 from "@ngx-translate/core";
|
|
30
30
|
export declare class SharedPipesModule {
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
|
|
32
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, 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.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncTextPipe, typeof i13.TruncHtmlPipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.SafeStylePipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe, typeof i25.FirstTruePipe, typeof i25.FirstFalsePipe, typeof i25.FirstPipe], [typeof i26.CommonModule, typeof i27.IonicModule, typeof i28.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, 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.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncTextPipe, typeof i13.TruncHtmlPipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.SafeStylePipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe, typeof i25.FirstTruePipe, typeof i25.FirstFalsePipe, typeof i25.FirstPipe]>;
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, 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 i10.RoundPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncTextPipe, typeof i13.TruncHtmlPipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.SafeStylePipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe, typeof i25.FirstTruePipe, typeof i25.FirstFalsePipe, typeof i25.FirstPipe], [typeof i26.CommonModule, typeof i27.IonicModule, typeof i28.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, 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 i10.RoundPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncTextPipe, typeof i13.TruncHtmlPipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.SafeStylePipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe, typeof i25.FirstTruePipe, typeof i25.FirstFalsePipe, typeof i25.FirstPipe]>;
|
|
33
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
|
|
34
34
|
}
|