@sumaris-net/ngx-components 2.8.1-beta3 → 2.8.1-beta5
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 +7 -0
- package/esm2022/src/app/core/table/row-field.component.mjs +3 -4
- package/esm2022/src/app/core/table/table.module.mjs +4 -7
- package/esm2022/src/app/core/table/table.pipes.mjs +2 -35
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +70 -127
- package/esm2022/src/app/shared/pipes/property.pipes.mjs +54 -26
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +5 -4
- package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +7 -5
- package/fesm2022/sumaris-net.ngx-components.mjs +209 -267
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/table.module.d.ts +1 -1
- package/src/app/core/table/table.pipes.d.ts +0 -8
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/pipes/pipes.module.d.ts +1 -1
- package/src/app/shared/pipes/property.pipes.d.ts +14 -2
- package/src/app/shared/upload-file/upload-file.component.d.ts +1 -0
- package/src/theme/_ngx-components.table.scss +2 -2
package/package.json
CHANGED
|
@@ -8,6 +8,6 @@ import * as i6 from "@ngx-translate/core";
|
|
|
8
8
|
import * as i7 from "../../shared/directives/resizable/resizable.module";
|
|
9
9
|
export declare class AppTableModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppTableModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AppTableModule, [typeof i1.TableSelectColumnsComponent, typeof i2.ActionsColumnComponent, typeof i3.AppRowField, typeof i4.IsAllSelectedPipe, typeof i4.IsNotAllSelectedPipe
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppTableModule, [typeof i1.TableSelectColumnsComponent, typeof i2.ActionsColumnComponent, typeof i3.AppRowField, typeof i4.IsAllSelectedPipe, typeof i4.IsNotAllSelectedPipe], [typeof i5.SharedModule, typeof i6.TranslateModule, typeof i7.ResizableModule], [typeof i6.TranslateModule, typeof i1.TableSelectColumnsComponent, typeof i2.ActionsColumnComponent, typeof i3.AppRowField, typeof i4.IsAllSelectedPipe, typeof i4.IsNotAllSelectedPipe]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<AppTableModule>;
|
|
13
13
|
}
|
|
@@ -3,8 +3,6 @@ import { SelectionModel } from '@angular/cdk/collections';
|
|
|
3
3
|
import { AbstractSelectionModelPipe } from '../../shared/pipes/selection.pipes';
|
|
4
4
|
import { AppTable } from './table.class';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
|
-
import { FormFieldDefinition } from '../../shared/form/field.model';
|
|
7
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export type AppTableRowCountProperty = 'visibleRowCount' | 'totalRowCount';
|
|
10
8
|
export declare abstract class AbstractTableSelectionPipe<R, O, T extends AppTable<any> = AppTable<any>> extends AbstractSelectionModelPipe<any, R, O> {
|
|
@@ -28,9 +26,3 @@ export declare class IsNotAllSelectedPipe extends IsAllSelectedPipe implements P
|
|
|
28
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsNotAllSelectedPipe, never>;
|
|
29
27
|
static ɵpipe: i0.ɵɵPipeDeclaration<IsNotAllSelectedPipe, "isNotAllSelected", false>;
|
|
30
28
|
}
|
|
31
|
-
export declare class DisplayByDefinitionPipe implements PipeTransform {
|
|
32
|
-
protected translate: TranslateService;
|
|
33
|
-
transform(value: any, definition: FormFieldDefinition): string;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DisplayByDefinitionPipe, never>;
|
|
35
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DisplayByDefinitionPipe, "displayByDefinition", false>;
|
|
36
|
-
}
|
|
@@ -16,7 +16,7 @@ export interface InputElement extends FocusableElement {
|
|
|
16
16
|
}
|
|
17
17
|
export declare function isInputElement(object: any): object is InputElement;
|
|
18
18
|
export declare function asInputElement(object: ElementRef): InputElement | undefined;
|
|
19
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
19
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
|
|
20
20
|
export interface CanGainFocusOptions {
|
|
21
21
|
minTabindex?: number;
|
|
22
22
|
maxTabindex?: number;
|
|
@@ -25,6 +25,6 @@ import * as i23 from "@ionic/angular";
|
|
|
25
25
|
import * as i24 from "@ngx-translate/core";
|
|
26
26
|
export declare class SharedPipesModule {
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
|
|
28
|
-
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.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, 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
|
|
28
|
+
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.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.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, 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 i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe], [typeof i22.CommonModule, typeof i23.IonicModule, typeof i24.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.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.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, 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 i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe]>;
|
|
29
29
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
|
|
30
30
|
}
|
|
@@ -11,16 +11,28 @@ export declare class PropertyGetPipe implements PipeTransform {
|
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyGetPipe, never>;
|
|
12
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<PropertyGetPipe, "propertyGet", false>;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
declare abstract class AbstractValueFormatPipe {
|
|
15
15
|
private dateFormat;
|
|
16
16
|
private translate;
|
|
17
17
|
private _i18nYes;
|
|
18
18
|
private _i18nNo;
|
|
19
19
|
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
20
|
-
transform(obj: any, keyOrDefinition: string | FormFieldDefinition): string | Promise<string>;
|
|
21
20
|
get i18nYes(): string;
|
|
22
21
|
get i18nNo(): string;
|
|
22
|
+
protected valueToString(value: any, definition?: FormFieldDefinition): string;
|
|
23
|
+
}
|
|
24
|
+
export declare class PropertyFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
25
|
+
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
26
|
+
transform(obj: any, keyOrDefinition: string | FormFieldDefinition): string | Promise<string>;
|
|
23
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyFormatPipe, never>;
|
|
24
28
|
static ɵpipe: i0.ɵɵPipeDeclaration<PropertyFormatPipe, "propertyFormat", false>;
|
|
25
29
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyFormatPipe>;
|
|
26
30
|
}
|
|
31
|
+
export declare class ValueFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
32
|
+
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
33
|
+
transform(value: any, definition: FormFieldDefinition): string | Promise<string>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueFormatPipe, never>;
|
|
35
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ValueFormatPipe, "valueFormat", false>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ValueFormatPipe>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -14,6 +14,7 @@ export declare class UploadFileComponent {
|
|
|
14
14
|
deleteFn: FileDeleteFn<any>;
|
|
15
15
|
maxParallelUpload: number;
|
|
16
16
|
files: UploadFile<any>[];
|
|
17
|
+
uploading: boolean;
|
|
17
18
|
get processingFiles(): UploadFile<any>[];
|
|
18
19
|
get processedFiles(): UploadFile<any>[];
|
|
19
20
|
get processingFilesCount(): number;
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
--mat-table-row-item-outline-color: var(--ion-border-color);
|
|
26
26
|
--mat-table-row-item-label-text-size: 14px;
|
|
27
27
|
--mat-table-row-item-label-text-tracking: normal;
|
|
28
|
-
--mat-row-height: #{$app-table-row-height};
|
|
29
|
-
--mat-row-max-height: #{$app-table-row-max-height};
|
|
28
|
+
--mat-row-height: #{$app-table-row-height} !important;
|
|
29
|
+
--mat-row-max-height: #{$app-table-row-max-height} !important;
|
|
30
30
|
--mat-cell-horizontal-padding: #{$app-table-cell-horizontal-padding};
|
|
31
31
|
--mat-cell-padding-top: calc(var(--mat-row-height) / 2 - var(--mat-table-row-item-label-text-size, 14px));
|
|
32
32
|
|