@sumaris-net/ngx-components 2.4.99 → 2.4.101
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/shared/pipes/arrays.pipe.mjs +23 -17
- package/fesm2015/sumaris-net.ngx-components.mjs +22 -16
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +22 -16
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/pipes/arrays.pipe.d.ts +9 -9
- package/src/theme/_ionic.globals.scss +2 -0
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NotEmptyArrayPipe implements PipeTransform {
|
|
4
|
-
transform(val:
|
|
4
|
+
transform<T = any>(val: unknown | T[]): boolean;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotEmptyArrayPipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<NotEmptyArrayPipe, "isNotEmptyArray", false>;
|
|
7
7
|
}
|
|
8
8
|
export declare class EmptyArrayPipe implements PipeTransform {
|
|
9
|
-
transform(val:
|
|
9
|
+
transform<T = any>(val: unknown | T[]): boolean;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyArrayPipe, never>;
|
|
11
11
|
static ɵpipe: i0.ɵɵPipeDeclaration<EmptyArrayPipe, "isEmptyArray", false>;
|
|
12
12
|
}
|
|
13
13
|
export declare class ArrayLengthPipe implements PipeTransform {
|
|
14
|
-
transform(val:
|
|
14
|
+
transform<T = any>(val: unknown | T[], args?: {
|
|
15
15
|
greaterThan?: number;
|
|
16
16
|
equals?: number;
|
|
17
17
|
lessThan?: number;
|
|
@@ -20,17 +20,17 @@ export declare class ArrayLengthPipe implements PipeTransform {
|
|
|
20
20
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayLengthPipe, "isArrayLength", false>;
|
|
21
21
|
}
|
|
22
22
|
export declare class ArrayFirstPipe implements PipeTransform {
|
|
23
|
-
transform<T>(val: T[]): T |
|
|
23
|
+
transform<T = any>(val: unknown | T[]): T | null;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFirstPipe, never>;
|
|
25
25
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayFirstPipe, "arrayFirst", false>;
|
|
26
26
|
}
|
|
27
27
|
export declare class ArrayPluckPipe implements PipeTransform {
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @param
|
|
30
|
+
* @param val
|
|
31
31
|
* @param opts property to get, or options
|
|
32
32
|
*/
|
|
33
|
-
transform<T>(
|
|
33
|
+
transform<T = any>(val: unknown | T[], opts: string | string[] | {
|
|
34
34
|
property: string | string[];
|
|
35
35
|
omitNil?: boolean;
|
|
36
36
|
}): any[];
|
|
@@ -38,17 +38,17 @@ export declare class ArrayPluckPipe implements PipeTransform {
|
|
|
38
38
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayPluckPipe, "arrayPluck", false>;
|
|
39
39
|
}
|
|
40
40
|
export declare class ArrayIncludesPipe implements PipeTransform {
|
|
41
|
-
transform<T>(val: T[],
|
|
41
|
+
transform<T = any>(val: unknown | T[], searchElement: T, fromIndex?: number): boolean;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayIncludesPipe, never>;
|
|
43
43
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayIncludesPipe, "arrayIncludes", false>;
|
|
44
44
|
}
|
|
45
45
|
export declare class ArrayFilterPipe implements PipeTransform {
|
|
46
|
-
transform<T>(val: T[], filterFn: (T: any) => boolean): T[];
|
|
46
|
+
transform<T = any>(val: unknown | T[], filterFn: (T: any) => boolean): T[] | null;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFilterPipe, never>;
|
|
48
48
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayFilterPipe, "arrayFilter", false>;
|
|
49
49
|
}
|
|
50
50
|
export declare class ArrayJoinPipe implements PipeTransform {
|
|
51
|
-
transform<T>(val: T[], separator: string): string;
|
|
51
|
+
transform<T = any>(val: unknown | T[], separator: string): string;
|
|
52
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayJoinPipe, never>;
|
|
53
53
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayJoinPipe, "arrayJoin", false>;
|
|
54
54
|
}
|
|
@@ -117,6 +117,8 @@ $colors: (
|
|
|
117
117
|
danger: (base: $danger, contrast: #fff, shade: get-color-shade($danger), tint: get-color-tint($danger)),
|
|
118
118
|
/* danger100 */
|
|
119
119
|
danger100: (base: $danger100, contrast: #fff, shade: get-color-shade($danger100), tint: get-color-tint($danger100)),
|
|
120
|
+
/* danger900 */
|
|
121
|
+
danger900: (base: $danger900, contrast: #fff, shade: get-color-shade($danger900), tint: get-color-tint($danger900)),
|
|
120
122
|
/* light */
|
|
121
123
|
light: (base: $light, contrast: $dark, shade: get-color-shade($light), tint: get-color-tint($light)),
|
|
122
124
|
/* medium */
|