@sumaris-net/ngx-components 2.12.4-beta1 → 2.12.4

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.
Files changed (33) hide show
  1. package/doc/changelog.md +6 -0
  2. package/esm2022/src/app/core/account/new-token.modal.mjs +1 -1
  3. package/esm2022/src/app/core/table/actions-column.component.mjs +3 -3
  4. package/esm2022/src/app/core/table/table.class.mjs +30 -9
  5. package/esm2022/src/app/core/table/testing/table.testing.mjs +3 -3
  6. package/esm2022/src/app/shared/form/field.component.mjs +1 -1
  7. package/esm2022/src/app/shared/functions.mjs +4 -1
  8. package/esm2022/src/app/shared/material/badge/badge.directive.mjs +42 -29
  9. package/esm2022/src/app/shared/material/badge/badge.test.mjs +3 -3
  10. package/esm2022/src/app/shared/material/datetime/material.date.mjs +100 -93
  11. package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +68 -63
  12. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +164 -131
  13. package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +3 -3
  14. package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +1 -1
  15. package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +3 -3
  16. package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +7 -9
  17. package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +25 -19
  18. package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +3 -3
  19. package/esm2022/src/app/shared/material/testing/common.test.mjs +1 -1
  20. package/esm2022/src/app/shared/pipes/maskito.pipe.mjs +3 -2
  21. package/fesm2022/sumaris-net.ngx-components.mjs +444 -357
  22. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  23. package/package.json +1 -1
  24. package/src/app/core/table/table.class.d.ts +2 -2
  25. package/src/app/shared/functions.d.ts +1 -0
  26. package/src/app/shared/material/badge/badge.directive.d.ts +10 -4
  27. package/src/app/shared/material/datetime/material.date.d.ts +20 -15
  28. package/src/app/shared/material/datetime/material.dateshort.d.ts +17 -13
  29. package/src/app/shared/material/datetime/material.datetime.d.ts +13 -7
  30. package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +1 -1
  31. package/src/app/shared/material/latlong/material.latlong.d.ts +10 -11
  32. package/src/app/shared/material/latlong/testing/latlong.test.d.ts +1 -1
  33. package/src/assets/manifest.json +1 -1
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.12.4-beta1",
4
+ "version": "2.12.4",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -211,7 +211,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
211
211
  permanentSelectionChangedPrevented?: boolean;
212
212
  }): void;
213
213
  confirmAndAdd(event?: Event, row?: TableElement<T>): Promise<boolean>;
214
- confirmAndBackward(event?: Event, row?: TableElement<T>): boolean;
214
+ confirmAndBackward(event?: Event, row?: TableElement<T>): boolean | Promise<boolean>;
215
215
  confirmAndForward(event?: Event, row?: TableElement<T>): boolean | Promise<boolean>;
216
216
  /**
217
217
  * Confirm the creation of the given row, or if not specified the currently edited row
@@ -271,7 +271,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
271
271
  * @param data
272
272
  */
273
273
  selectRowByData(data: T): Promise<boolean>;
274
- toggleSelectRow(event: Event, row: TableElement<T>): void;
274
+ toggleSelectRow(event: Event | undefined, row: TableElement<T>): void;
275
275
  clickRow(event: Event | undefined, row: TableElement<T>): boolean;
276
276
  moveRow(id: number, direction: number): void;
277
277
  ready(opts?: WaitForOptions): Promise<void>;
@@ -25,6 +25,7 @@ export declare function arraySize<T>(obj: T[] | null | undefined): number;
25
25
  */
26
26
  export declare function arrayDistinct<T = any>(values: T[], propertiesOrKeyFn?: string | string[] | ((obj: T) => string)): T[];
27
27
  export declare function nullIfUndefined<T>(obj: T | null | undefined): T | null;
28
+ export declare function nullIfNilOrBlank<T>(obj: T | null | undefined): T | null;
28
29
  export declare function undefinedIfNull<T>(obj: T | null | undefined): T | undefined;
29
30
  export declare function trimEmptyToNull<T>(str: string | null | undefined): string | null;
30
31
  export declare function toBoolean(obj: boolean | null | undefined | string, defaultValue?: boolean): boolean;
@@ -1,11 +1,11 @@
1
- import { AfterViewInit, ElementRef, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
2
- import { MatBadge, MatBadgePosition } from '@angular/material/badge';
1
+ import { AfterViewInit, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
+ import { MatBadge, MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
3
3
  import { AppColors } from '../../types';
4
4
  import { AriaDescriber } from '@angular/cdk/a11y';
5
5
  import { BooleanInput } from '@angular/cdk/coercion';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare type MatBadgeFill = 'clear' | 'solid';
8
- export declare class BadgeDirective extends MatBadge implements AfterViewInit, OnChanges, OnDestroy {
8
+ export declare class BadgeDirective extends MatBadge implements AfterViewInit, OnChanges, OnDestroy, OnInit {
9
9
  protected el: ElementRef<HTMLElement>;
10
10
  true: any;
11
11
  get isOverlapHost(): boolean;
@@ -18,6 +18,12 @@ export declare class BadgeDirective extends MatBadge implements AfterViewInit, O
18
18
  get isLargeHost(): boolean;
19
19
  get isHiddenHost(): boolean;
20
20
  get isDisabledHost(): boolean;
21
+ set appBadge(value: string | number);
22
+ get appBadge(): string | number;
23
+ set appBadgeDisabled(value: boolean);
24
+ get appBadgeDisabled(): boolean;
25
+ set appBadgeSize(value: MatBadgeSize);
26
+ get appBadgeSize(): MatBadgeSize;
21
27
  appBadgeColor: AppColors;
22
28
  appBadgeFill: MatBadgeFill;
23
29
  appBadgeMatIcon: string;
@@ -33,5 +39,5 @@ export declare class BadgeDirective extends MatBadge implements AfterViewInit, O
33
39
  ngOnDestroy(): void;
34
40
  private updateView;
35
41
  static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, [null, null, null, null, { optional: true; }]>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "content": { "alias": "appBadge"; "required": false; }; "disabled": { "alias": "appBadgeDisabled"; "required": false; }; "color": { "alias": "appBadgeColor"; "required": false; }; "size": { "alias": "appBadgeSize"; "required": false; }; "fill": { "alias": "appBadgeFill"; "required": false; }; "hidden": { "alias": "appBadgeHidden"; "required": false; }; "overlap": { "alias": "appBadgeOverlap"; "required": false; }; "position": { "alias": "appBadgePosition"; "required": false; }; "appBadgeColor": { "alias": "appBadgeColor"; "required": false; }; "appBadgeFill": { "alias": "appBadgeFill"; "required": false; }; "appBadgeMatIcon": { "alias": "appBadgeMatIcon"; "required": false; }; "appBadgeIcon": { "alias": "appBadgeIcon"; "required": false; }; "appBadgeHidden": { "alias": "appBadgeHidden"; "required": false; }; "appBadgeOverlap": { "alias": "appBadgeOverlap"; "required": false; }; "appBadgePosition": { "alias": "appBadgePosition"; "required": false; }; }, {}, never, never, false, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "appBadge": { "alias": "appBadge"; "required": false; }; "appBadgeDisabled": { "alias": "appBadgeDisabled"; "required": false; }; "appBadgeSize": { "alias": "appBadgeSize"; "required": false; }; "appBadgeColor": { "alias": "appBadgeColor"; "required": false; }; "appBadgeFill": { "alias": "appBadgeFill"; "required": false; }; "appBadgeMatIcon": { "alias": "appBadgeMatIcon"; "required": false; }; "appBadgeIcon": { "alias": "appBadgeIcon"; "required": false; }; "appBadgeHidden": { "alias": "appBadgeHidden"; "required": false; }; "appBadgeOverlap": { "alias": "appBadgeOverlap"; "required": false; }; "appBadgePosition": { "alias": "appBadgePosition"; "required": false; }; }, {}, never, never, false, never>;
37
43
  }
@@ -26,21 +26,21 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
26
26
  private _subscriptSizing;
27
27
  private readonly _defaultAppearance;
28
28
  private readonly _defaultSubscriptSizing;
29
- textControl: UntypedFormControl;
30
- datePattern: string;
31
- locale: string;
32
- maskitoOptions: MaskitoOptions;
33
- datePlaceholder: string;
34
- mobile: boolean;
29
+ protected textControl: UntypedFormControl;
30
+ protected datePattern: string;
31
+ protected locale: string;
32
+ protected maskitoOptions: MaskitoOptions;
33
+ protected datePlaceholder: string;
35
34
  formControl: UntypedFormControl;
36
35
  formControlName: string;
37
36
  placeholder: string;
38
37
  floatLabel: AppFloatLabelType;
39
- required: boolean;
38
+ mobile: boolean;
40
39
  compact: boolean;
41
40
  autofocus: boolean;
42
- startDate: Moment | null;
43
41
  clearable: boolean;
42
+ required: boolean;
43
+ startDate: Moment | null;
44
44
  timezone: string;
45
45
  datePickerFilter: DateFilterFn<Moment>;
46
46
  set appearance(value: MatFormFieldAppearance);
@@ -65,21 +65,26 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
65
65
  setDisabledState(isDisabled: boolean): void;
66
66
  openDatePicker(): void;
67
67
  focus(): void;
68
- clear(event: UIEvent): void;
68
+ clear(event: Event): void;
69
69
  protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
70
70
  protected _openDatePickerIfMobile(event: Event): void;
71
71
  protected _onBlur(): void;
72
- protected _checkIfTouched(opts?: {
73
- emitEvent?: boolean;
74
- }): void;
75
- protected _preventEvent(event: Event): void;
72
+ protected _checkIfTouched(): void;
73
+ protected _preventEvent(event?: Event): void;
74
+ private updateTranslations;
76
75
  private updatePattern;
76
+ private updateMaskOptions;
77
77
  private onFormChange;
78
+ private emitChange;
78
79
  private updateTabIndex;
79
80
  private markAsTouched;
80
81
  private markAsDirty;
81
82
  private markForCheck;
82
- private updateMaskOptions;
83
83
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDate, [null, null, null, null, { optional: true; }, null]>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDate, "mat-date-field", never, { "mobile": { "alias": "mobile"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDate, "mat-date-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "required": { "alias": "required"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
85
+ static ngAcceptInputType_mobile: unknown;
86
+ static ngAcceptInputType_compact: unknown;
87
+ static ngAcceptInputType_autofocus: unknown;
88
+ static ngAcceptInputType_clearable: unknown;
89
+ static ngAcceptInputType_required: unknown;
85
90
  }
@@ -26,21 +26,21 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
26
26
  private _subscriptSizing;
27
27
  private readonly _defaultAppearance;
28
28
  private readonly _defaultSubscriptSizing;
29
- textControl: UntypedFormControl;
30
- datePattern: string;
31
- locale: string;
32
- maskitoOptions: MaskitoOptions;
33
- yearPlaceholder: string;
34
- mobile: boolean;
29
+ protected textControl: UntypedFormControl;
30
+ protected yearPattern: string;
31
+ protected yearPlaceholder: string;
32
+ protected locale: string;
33
+ protected maskitoOptions: MaskitoOptions;
35
34
  formControl: UntypedFormControl;
36
35
  formControlName: string;
37
36
  placeholder: string;
38
37
  floatLabel: AppFloatLabelType;
39
- required: boolean;
38
+ mobile: boolean;
40
39
  compact: boolean;
41
40
  autofocus: boolean;
42
- startDate: Moment | null;
43
41
  clearable: boolean;
42
+ required: boolean;
43
+ startDate: Moment | null;
44
44
  datePickerFilter: DateFilterFn<Moment>;
45
45
  set appearance(value: MatFormFieldAppearance);
46
46
  get appearance(): MatFormFieldAppearance;
@@ -67,19 +67,23 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
67
67
  clear(event?: Event): void;
68
68
  protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
69
69
  protected _openDatePickerIfMobile(event: Event): void;
70
- protected _checkIfTouched(opts?: {
71
- emitEvent?: boolean;
72
- }): void;
70
+ protected _checkIfTouched(): void;
73
71
  protected _closeDatePicker(value: Moment): void;
74
72
  protected _preventEvent(event: Event): void;
73
+ private updateTranslations;
75
74
  private updatePattern;
75
+ private updateMaskOptions;
76
76
  private onFormChange;
77
77
  private waitKeyboardHide;
78
78
  private updateTabIndex;
79
79
  private markAsTouched;
80
80
  private markAsDirty;
81
81
  private markForCheck;
82
- private updateMaskOptions;
83
82
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDateShort, [null, null, null, null, { optional: true; }, null]>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDateShort, "mat-date-short-field", never, { "mobile": { "alias": "mobile"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDateShort, "mat-date-short-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "required": { "alias": "required"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
84
+ static ngAcceptInputType_mobile: unknown;
85
+ static ngAcceptInputType_compact: unknown;
86
+ static ngAcceptInputType_autofocus: unknown;
87
+ static ngAcceptInputType_clearable: unknown;
88
+ static ngAcceptInputType_required: unknown;
85
89
  }
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
2
- import { MatError, MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
2
+ import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
3
3
  import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
5
  import { Moment } from 'moment';
@@ -55,9 +55,10 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
55
55
  mobile: boolean;
56
56
  compact: boolean;
57
57
  autofocus: boolean;
58
- startDate: Moment | null;
59
58
  clearable: boolean;
59
+ startDate: Moment | null;
60
60
  datePickerFilter: DateFilterFn<Moment>;
61
+ allowNoTime: boolean;
61
62
  set appearance(value: MatFormFieldAppearance);
62
63
  get appearance(): MatFormFieldAppearance;
63
64
  set subscriptSizing(value: SubscriptSizing);
@@ -76,8 +77,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
76
77
  get disabled(): boolean;
77
78
  datePicker: MatDatepicker<Moment>;
78
79
  timePicker: NgxTimePicker;
79
- matInputs: QueryList<ElementRef>;
80
- matError: MatError;
80
+ _matInputs: QueryList<ElementRef>;
81
81
  constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
82
82
  ngOnInit(): void;
83
83
  ngAfterViewInit(): void;
@@ -101,15 +101,21 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
101
101
  protected _checkIfTouched(): void;
102
102
  protected _preventEvent(event?: Event): void;
103
103
  private updateTranslations;
104
+ private updateDisplayPattern;
105
+ private updateDateMaskOptions;
106
+ private updateTimeMaskOptions;
104
107
  private onFormChange;
105
108
  private emitChange;
106
109
  private updateTabIndex;
107
110
  private markAsTouched;
108
111
  private markAsDirty;
109
112
  private markForCheck;
110
- private updateDateMaskOptions;
111
- private updateTimeMaskOptions;
112
113
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, { optional: true; }, null]>;
113
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, ["matError"], ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "allowNoTime": { "alias": "allowNoTime"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
115
+ static ngAcceptInputType_mobile: unknown;
116
+ static ngAcceptInputType_compact: unknown;
117
+ static ngAcceptInputType_autofocus: unknown;
118
+ static ngAcceptInputType_clearable: unknown;
119
+ static ngAcceptInputType_allowNoTime: unknown;
114
120
  }
115
121
  export {};
@@ -23,7 +23,7 @@ export declare class DateTimeTestPage implements OnInit {
23
23
  toggleMode(value: any): void;
24
24
  toggleAppearance(event: MatCheckboxChange): void;
25
25
  loadData(): Promise<void>;
26
- doSubmit(event: any): void;
26
+ doSubmit(event?: Event): void;
27
27
  log(message: string): void;
28
28
  clearLogPanel(): void;
29
29
  startMemoryTimer(): void;
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
3
3
  import { LatLongFormatFn, LatLongFormatOptions, LatLongPattern } from './latlong.utils';
4
- import { MatError, MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
4
+ import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
5
5
  import { AppFloatLabelType } from '../../form/field.model';
6
6
  import { MaskitoMask } from '@maskito/core';
7
7
  import * as i0 from "@angular/core";
@@ -19,13 +19,13 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
19
19
  private _subscriptSizing;
20
20
  private readonly _defaultAppearance;
21
21
  private readonly _defaultSubscriptSizing;
22
- _readonly: boolean;
23
- _formatFn: LatLongFormatFn;
24
- textFormControl: UntypedFormControl;
25
- signFormControl: UntypedFormControl;
26
- mask: MaskitoMask;
27
- inputPlaceholder: string;
28
- showSignControl: boolean;
22
+ protected _readonly: boolean;
23
+ protected _formatFn: LatLongFormatFn;
24
+ protected textFormControl: UntypedFormControl;
25
+ protected signFormControl: UntypedFormControl;
26
+ protected mask: MaskitoMask;
27
+ protected inputPlaceholder: string;
28
+ protected showSignControl: boolean;
29
29
  get disabled(): any;
30
30
  formControl: UntypedFormControl;
31
31
  formControlName: string;
@@ -35,7 +35,7 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
35
35
  floatLabel: AppFloatLabelType;
36
36
  placeholder: string;
37
37
  tabindex: number;
38
- defaultSign: '-' | '+' | '+ ' | '- ';
38
+ defaultSign: '-' | '+';
39
39
  maxDecimals: number;
40
40
  placeholderChar: string;
41
41
  autofocus: boolean;
@@ -48,7 +48,6 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
48
48
  onBlur: EventEmitter<FocusEvent>;
49
49
  onFocus: EventEmitter<FocusEvent>;
50
50
  inputElement: ElementRef;
51
- matError: MatError;
52
51
  constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
53
52
  ngOnInit(): void;
54
53
  ngOnDestroy(): void;
@@ -71,5 +70,5 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
71
70
  private checkIfTouched;
72
71
  private markForCheck;
73
72
  static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField, [null, null, { optional: true; }, null]>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, ["matError"], ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
75
74
  }
@@ -9,7 +9,7 @@ export declare class LatLongTestPage implements OnInit {
9
9
  protected platform: PlatformService;
10
10
  form: UntypedFormGroup;
11
11
  geoPositionMessage: string;
12
- mode: string;
12
+ mode: 'desktop' | 'temp';
13
13
  appearance: MatFormFieldAppearance;
14
14
  constructor(formBuilder: UntypedFormBuilder, platform: PlatformService);
15
15
  ngOnInit(): void;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.12.3-rc1",
5
+ "version": "2.12.4",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{