@sumaris-net/ngx-components 18.15.0 → 18.15.3

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": "18.15.0",
4
+ "version": "18.15.3",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -17,8 +17,9 @@ import * as i15 from "@maskito/angular";
17
17
  import * as i16 from "@ngx-translate/core";
18
18
  import * as i17 from "../../directives/directives.module";
19
19
  import * as i18 from "ngx-mat-timepicker";
20
+ import * as i19 from "@angular/material/autocomplete";
20
21
  export declare class SharedMatDateTimeModule {
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatDateTimeModule, never>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatDateTimeModule, [typeof i1.MatDate, typeof i2.MatDateTime, typeof i3.MatDateShort], [typeof i4.CommonModule, typeof i5.IonicModule, typeof i6.ReactiveFormsModule, typeof i7.SharedPipesModule, typeof i8.MatCommonModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatDatepickerModule, typeof i14.MatMomentDateModule, typeof i15.MaskitoDirective, typeof i16.TranslateModule, typeof i17.SharedDirectivesModule, typeof i18.NgxMatTimepickerModule], [typeof i11.MatIconModule, typeof i1.MatDate, typeof i2.MatDateTime, typeof i3.MatDateShort]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatDateTimeModule, [typeof i1.MatDate, typeof i2.MatDateTime, typeof i3.MatDateShort], [typeof i4.CommonModule, typeof i5.IonicModule, typeof i6.ReactiveFormsModule, typeof i7.SharedPipesModule, typeof i8.MatCommonModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatDatepickerModule, typeof i14.MatMomentDateModule, typeof i15.MaskitoDirective, typeof i16.TranslateModule, typeof i17.SharedDirectivesModule, typeof i18.NgxMatTimepickerModule, typeof i19.MatAutocompleteTrigger], [typeof i11.MatIconModule, typeof i1.MatDate, typeof i2.MatDateTime, typeof i3.MatDateShort]>;
23
24
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatDateTimeModule>;
24
25
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, Renderer2 } from '@angular/core';
2
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';
@@ -17,6 +17,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
17
17
  private dateAdapter;
18
18
  private translate;
19
19
  private formBuilder;
20
+ private renderer;
20
21
  private cd;
21
22
  private formGroupDir;
22
23
  private _onChangeCallback;
@@ -25,6 +26,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
25
26
  private _controlSubscription;
26
27
  private _writing;
27
28
  private _disabling;
29
+ private _focused;
28
30
  private _tabindex;
29
31
  private _readonly;
30
32
  private _controlName;
@@ -44,6 +46,8 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
44
46
  protected maskitoTimeOptions: MaskitoOptions;
45
47
  protected datePlaceholder: string;
46
48
  protected timePlaceholder: string;
49
+ protected timePickerReady: boolean;
50
+ logPrefix: string;
47
51
  placeholder: string;
48
52
  floatLabel: AppFloatLabelType;
49
53
  mobile: boolean;
@@ -53,6 +57,9 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
53
57
  startDate: Moment | null;
54
58
  datePickerFilter: DateFilterFn<Moment>;
55
59
  allowNoTime: boolean;
60
+ dottedMinutesInGap: boolean;
61
+ timeHoursOnly: boolean;
62
+ debug: boolean;
56
63
  set appearance(value: MatFormFieldAppearance);
57
64
  get appearance(): MatFormFieldAppearance;
58
65
  set subscriptSizing(value: SubscriptSizing);
@@ -73,7 +80,11 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
73
80
  datePicker: MatDatepicker<Moment>;
74
81
  timePicker: NgxTimePicker;
75
82
  _matInputs: QueryList<ElementRef>;
76
- constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
83
+ focused: EventEmitter<FocusEvent>;
84
+ blurred: EventEmitter<FocusEvent>;
85
+ keydownEscape: EventEmitter<Event>;
86
+ keyupEnter: EventEmitter<Event>;
87
+ constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, renderer: Renderer2, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
77
88
  ngOnInit(): void;
78
89
  ngAfterViewInit(): void;
79
90
  ngOnDestroy(): void;
@@ -82,17 +93,20 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
82
93
  registerOnTouched(fn: any): void;
83
94
  setDisabledState(isDisabled: boolean): void;
84
95
  openDatePicker(event?: Event, datePicker?: MatDatepicker<any>): void;
85
- openTimePicker(event?: Event): void;
96
+ openTimePicker(event?: Event, timePicker?: NgxTimePicker): void;
97
+ private fixTimePickerPosition;
86
98
  focus(): void;
87
99
  clear(event?: Event): void;
88
100
  protected _setFormControlName(controlName: string): void;
89
101
  protected _setFormControl(control: UntypedFormControl): void;
90
102
  protected _updateControlValidators(control: UntypedFormControl, required: boolean): void;
91
103
  protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
92
- protected _onTimePickerChange(timeStr: string): void;
104
+ protected _onTimePickerChanged(timeStr: string): void;
93
105
  protected _openDatePickerIfMobile(event?: Event, datePicker?: MatDatepicker<any>): void;
94
106
  protected _openTimePickerIfMobile(event?: Event): void;
95
- protected _onBlur(): void;
107
+ filterInputTextFocusEvent(event: FocusEvent): boolean;
108
+ protected filterInputTextBlurEvent(event: FocusEvent): void;
109
+ protected _onBlur(event: FocusEvent): void;
96
110
  protected _checkIfTouched(): void;
97
111
  protected _preventEvent(event?: Event): void;
98
112
  private updateTranslations;
@@ -105,12 +119,15 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
105
119
  private markAsTouched;
106
120
  private markAsDirty;
107
121
  private markForCheck;
108
- static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, { optional: true; }, null]>;
109
- 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>;
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, null, { optional: true; }, null]>;
123
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "logPrefix": { "alias": "logPrefix"; "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; }; "startDate": { "alias": "startDate"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "allowNoTime": { "alias": "allowNoTime"; "required": false; }; "dottedMinutesInGap": { "alias": "dottedMinutesInGap"; "required": false; }; "timeHoursOnly": { "alias": "timeHoursOnly"; "required": false; }; "debug": { "alias": "debug"; "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; }; }, { "focused": "focus"; "blurred": "blur"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
110
124
  static ngAcceptInputType_mobile: unknown;
111
125
  static ngAcceptInputType_compact: unknown;
112
126
  static ngAcceptInputType_autofocus: unknown;
113
127
  static ngAcceptInputType_clearable: unknown;
114
128
  static ngAcceptInputType_allowNoTime: unknown;
129
+ static ngAcceptInputType_dottedMinutesInGap: unknown;
130
+ static ngAcceptInputType_timeHoursOnly: unknown;
131
+ static ngAcceptInputType_debug: unknown;
115
132
  }
116
133
  export {};
@@ -14,6 +14,7 @@ export declare class DateTimeTestPage implements OnInit {
14
14
  memoryHide: boolean;
15
15
  memoryMobile: boolean;
16
16
  memoryTimer: Subscription;
17
+ tempFocus: boolean;
17
18
  form: UntypedFormGroup;
18
19
  mode: 'mobile' | 'desktop' | 'memory' | 'temp';
19
20
  appearance: MatFormFieldAppearance;
@@ -48,7 +48,7 @@ export declare class ArrayIncludesPipe implements PipeTransform {
48
48
  static ɵpipe: i0.ɵɵPipeDeclaration<ArrayIncludesPipe, "arrayIncludes", false>;
49
49
  }
50
50
  export declare class ArrayFilterPipe implements PipeTransform {
51
- transform<T = any>(val: unknown | T[], filterFn: (T: any) => boolean, ...otherArguments: any[]): T[] | null;
51
+ transform<T = any>(val: unknown | T[], filterFn: (T: any, ...args: any[]) => boolean, ...otherArguments: any[]): T[] | null;
52
52
  static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFilterPipe, never>;
53
53
  static ɵpipe: i0.ɵɵPipeDeclaration<ArrayFilterPipe, "arrayFilter", false>;
54
54
  }
@@ -19,9 +19,6 @@ export declare class FirstPipe implements PipeTransform {
19
19
  }
20
20
  export declare class MapPipe implements PipeTransform {
21
21
  transform<T, R>(value: Observable<T>, mapFn: (value: T, ...args: any[]) => R, ...otherArguments: any[]): Observable<R>;
22
- /**
23
- * @deprecated Use `mapTo` when input is not an observable
24
- */
25
22
  transform<T, R>(value: T, mapFn: (value: T, ...args: any[]) => R, ...otherArguments: any[]): R;
26
23
  static ɵfac: i0.ɵɵFactoryDeclaration<MapPipe, never>;
27
24
  static ɵpipe: i0.ɵɵPipeDeclaration<MapPipe, "map", false>;
@@ -68,6 +68,7 @@
68
68
  "DATE_TIME_PATTERN": "MM/DD/YYYY HH:mm",
69
69
  "DATE_TIME_SECONDS_PATTERN": "MM/DD/YYYY HH:mm:ss",
70
70
  "TIME_PATTERN": "HH:mm",
71
+ "HOUR_PATTERN": "HH:00",
71
72
  "DATE_FILE_PATTERN": "YYYY-MM-DD",
72
73
  "DATE_SHORT_PATTERN": "DD/MM/YY",
73
74
  "DATE_MONTH_YEAR_PATTERN": "MM/YYYY",
@@ -68,6 +68,7 @@
68
68
  "DATE_TIME_PATTERN": "DD/MM/YYYY HH:mm",
69
69
  "DATE_TIME_SECONDS_PATTERN": "DD/MM/YYYY HH:mm:ss",
70
70
  "TIME_PATTERN": "HH:mm",
71
+ "HOUR_PATTERN": "HH:00",
71
72
  "DATE_FILE_PATTERN": "YYYY-MM-DD",
72
73
  "DATE_SHORT_PATTERN": "DD/MM/YY",
73
74
  "DATE_MONTH_YEAR_PATTERN": "MM/YYYY",
@@ -68,6 +68,7 @@
68
68
  "DATE_TIME_PATTERN": "DD/MM/YYYY HH:mm",
69
69
  "DATE_TIME_SECONDS_PATTERN": "DD/MM/YYYY HH:mm:ss",
70
70
  "TIME_PATTERN": "HH:mm",
71
+ "HOUR_PATTERN": "HH:00",
71
72
  "DATE_FILE_PATTERN": "YYYY-MM-DD",
72
73
  "DATE_SHORT_PATTERN": "DD/MM/YY",
73
74
  "DATE_MONTH_YEAR_PATTERN": "MM/YYYY",
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.15.0",
5
+ "version": "18.15.3",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{