@sumaris-net/ngx-components 2.4.101 → 2.4.103

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.4.101",
4
+ "version": "2.4.103",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -83,6 +83,7 @@ export * from './src/app/shared/pipes/translate-context.pipe';
83
83
  export * from './src/app/shared/pipes/ng-init.pipe';
84
84
  export * from './src/app/shared/pipes/form.pipes';
85
85
  export * from './src/app/shared/pipes/colors.pipe';
86
+ export * from './src/app/shared/pipes/types.pipes';
86
87
  export * from './src/app/shared/audio/audio';
87
88
  export * from './src/app/shared/file/file.service';
88
89
  export * from './src/app/shared/image/image.service';
@@ -16,11 +16,12 @@ import * as i14 from "./translate-context.pipe";
16
16
  import * as i15 from "./ng-init.pipe";
17
17
  import * as i16 from "./form.pipes";
18
18
  import * as i17 from "./colors.pipe";
19
- import * as i18 from "@angular/common";
20
- import * as i19 from "@ionic/angular";
21
- import * as i20 from "@ngx-translate/core";
19
+ import * as i18 from "./types.pipes";
20
+ import * as i19 from "@angular/common";
21
+ import * as i20 from "@ionic/angular";
22
+ import * as i21 from "@ngx-translate/core";
22
23
  export declare class SharedPipesModule {
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, 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.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i1.PropertyFormatPipe, typeof i17.MatColorPipe], [typeof i18.CommonModule, typeof i19.IonicModule, typeof i20.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i5.DateFromNowPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, 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.ArrayPluckPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, 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.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i1.PropertyFormatPipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe], [typeof i19.CommonModule, typeof i20.IonicModule, typeof i21.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i5.DateFromNowPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, 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.ArrayPluckPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe]>;
25
26
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
26
27
  }
@@ -0,0 +1,18 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AsAnyPipe implements PipeTransform {
5
+ transform<T = any>(value: unknown | any): T | null;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsAnyPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsAnyPipe, "asAny", false>;
8
+ }
9
+ export declare class AsArrayPipe implements PipeTransform {
10
+ transform<T = any>(value: unknown): T[] | null;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsArrayPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsArrayPipe, "asArray", false>;
13
+ }
14
+ export declare class AsObservablePipe implements PipeTransform {
15
+ transform<T = any>(value: unknown): Observable<T> | null;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsObservablePipe, never>;
17
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsObservablePipe, "asObservable", false>;
18
+ }
@@ -627,12 +627,22 @@ ion-list {
627
627
  }
628
628
  }
629
629
 
630
-
631
630
  .mat-header-row {
632
631
  height: var(--app-table-header-height, 52px);
633
632
  border-bottom: 1px solid #{$app-table-border-color};
634
633
  }
635
634
 
635
+ // Auto hide sort header, when the column is not sorted
636
+ // (useful to minimize the column width - e.g. on mobile device)
637
+ &.mat-table-hide-sort-arrow {
638
+ .mat-sort-header-arrow {
639
+ transition: none !important;
640
+ }
641
+ .mat-sort-header-arrow:not([style*="opacity: 1"]) {
642
+ display: none;
643
+ }
644
+ }
645
+
636
646
  .mat-header-row,
637
647
  .mat-row,
638
648
  .mat-footer-row {
@@ -865,6 +875,7 @@ ion-list {
865
875
  &.compact .mat-row,
866
876
  .mat-row.mat-row-small {
867
877
  min-height: inherit;
878
+ --mat-row-height: 33px;
868
879
  --mat-row-max-height: 33px;
869
880
  }
870
881
  .mat-row.mat-row-small .mat-cell,
@@ -945,8 +956,7 @@ ion-list {
945
956
  &.compact {
946
957
 
947
958
  .mat-row {
948
-
949
- height: 33px;
959
+ --mat-row-height: 33px;
950
960
 
951
961
  ion-label {
952
962
  display: inline-block;