@sumaris-net/ngx-components 2.4.17 → 2.4.18

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.17",
4
+ "version": "2.4.18",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -58,7 +58,7 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
58
58
  focus(): void;
59
59
  clear(): void;
60
60
  protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
61
- protected _openDatePickerIfMobile(event: Event): Promise<boolean>;
61
+ protected _openDatePickerIfMobile(event: Event): void;
62
62
  protected _checkIfTouched(opts?: {
63
63
  emitEvent?: boolean;
64
64
  }): void;
@@ -57,11 +57,11 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
57
57
  focus(): void;
58
58
  clear(): void;
59
59
  protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
60
+ protected _openDatePickerIfMobile(event: Event): void;
60
61
  protected _checkIfTouched(opts?: {
61
62
  emitEvent?: boolean;
62
63
  }): void;
63
- protected _openDatePickerIfMobile(event: Event): Promise<void>;
64
- protected _closeDatePicker(eventData: any): void;
64
+ protected _closeDatePicker(value: Moment): void;
65
65
  protected _preventEvent(event: Event): void;
66
66
  private updatePattern;
67
67
  private onFormChange;
@@ -254,6 +254,17 @@ mat-date-time-field {
254
254
  }
255
255
  }
256
256
 
257
+ // --- mat-date-short-field
258
+ mat-calendar.mat-date-short-panel {
259
+ // Hide some buttons (e.g. to change the period)
260
+ // and the month view
261
+ .mat-calendar-period-button,
262
+ mat-year-view {
263
+ visibility: hidden;
264
+ display: none;
265
+ }
266
+ }
267
+
257
268
  @media screen and (min-width: $screen-sm) {
258
269
  form.form-container {
259
270
  ion-grid {