@ng-matero/extensions 14.6.3 → 14.6.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.
@@ -160,11 +160,13 @@ $clock-font-size: 14px !default;
160
160
  .mtx-time-ampm {
161
161
  .mtx-time-am,
162
162
  .mtx-time-pm {
163
- color: theming.get-color-from-palette($foreground, text);
163
+ color: theming.get-color-from-palette($foreground, text, .75);
164
164
  border-color: theming.get-color-from-palette($foreground, hint-text);
165
165
 
166
166
  &.mtx-time-ampm-active {
167
+ color: theming.get-color-from-palette($foreground, text);
167
168
  background-color: theming.get-color-from-palette($accent, .2);
169
+ font-weight: 500;
168
170
  }
169
171
  }
170
172
  }
@@ -52,9 +52,8 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
52
52
  set startAt(value: D | null);
53
53
  private _startAt;
54
54
  /**
55
- * Whether the calendar is in time mode. In time mode the calendar clock gets time input elements rather then just clock
56
- *
57
- * When touchUi is enabled this will be disabled
55
+ * Whether the calendar is in time mode. In time mode the calendar clock gets time input elements
56
+ * rather then just clock. When touchUi is enabled this will be disabled
58
57
  */
59
58
  get timeInput(): boolean;
60
59
  set timeInput(value: boolean);
@@ -12,13 +12,15 @@ $calendar-prev-next-icon-margin: 15.5px;
12
12
  $calendar-prev-icon-transform: translateX(2px) rotate(-45deg);
13
13
  $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
14
14
 
15
+ $landscape-calendar-header-width: 144px;
16
+
15
17
  @mixin landscape-calendar-header {
16
18
  .mtx-calendar {
17
19
  display: flex;
18
20
 
19
21
  .mtx-calendar-header {
20
- width: 150px;
21
- min-width: 150px;
22
+ width: $landscape-calendar-header-width;
23
+ min-width: $landscape-calendar-header-width;
22
24
  padding: 16px 8px;
23
25
  border-radius: 4px 0 0 4px;
24
26
 
@@ -159,6 +161,7 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
159
161
 
160
162
  .mtx-calendar-controls {
161
163
  display: flex;
164
+ align-items: center;
162
165
  justify-content: space-between;
163
166
  margin: 0 $calendar-controls-side-margin;
164
167
 
@@ -1,7 +1,8 @@
1
1
  import { BooleanInput } from '@angular/cdk/coercion';
2
- import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
3
3
  import { DatetimeAdapter } from '@ng-matero/extensions/core';
4
4
  import { MtxDatetimepickerFilterType } from './datetimepicker-filtertype';
5
+ import { MtxAMPM } from './datetimepicker-types';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare const CLOCK_RADIUS = 50;
7
8
  export declare const CLOCK_INNER_RADIUS = 27.5;
@@ -13,7 +14,7 @@ export declare type MtxClockView = 'hour' | 'minute';
13
14
  * A clock that is used as part of the datetimepicker.
14
15
  * @docs-private
15
16
  */
16
- export declare class MtxClock<D> implements AfterContentInit, OnDestroy {
17
+ export declare class MtxClock<D> implements AfterContentInit, OnDestroy, OnChanges {
17
18
  private _elementRef;
18
19
  private _adapter;
19
20
  private _changeDetectorRef;
@@ -24,6 +25,8 @@ export declare class MtxClock<D> implements AfterContentInit, OnDestroy {
24
25
  interval: number;
25
26
  /** Whether the clock uses 12 hour format. */
26
27
  twelvehour: boolean;
28
+ /** Whether the time is now in AM or PM. */
29
+ AMPM: MtxAMPM;
27
30
  /** Emits when the currently selected date changes. */
28
31
  selectedChange: EventEmitter<D>;
29
32
  /** Emits when any date is activated. */
@@ -65,6 +68,7 @@ export declare class MtxClock<D> implements AfterContentInit, OnDestroy {
65
68
  };
66
69
  ngAfterContentInit(): void;
67
70
  ngOnDestroy(): void;
71
+ ngOnChanges(): void;
68
72
  /** Called when the user has put their pointer down on the clock. */
69
73
  private _pointerDown;
70
74
  /**
@@ -87,5 +91,5 @@ export declare class MtxClock<D> implements AfterContentInit, OnDestroy {
87
91
  private setTime;
88
92
  static ngAcceptInputType_twelvehour: BooleanInput;
89
93
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxClock<any>, never>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxClock<any>, "mtx-clock", ["mtxClock"], { "dateFilter": "dateFilter"; "interval": "interval"; "twelvehour": "twelvehour"; "activeDate": "activeDate"; "selected": "selected"; "minDate": "minDate"; "maxDate": "maxDate"; "startView": "startView"; }, { "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; "_userSelection": "_userSelection"; }, never, never, false>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxClock<any>, "mtx-clock", ["mtxClock"], { "dateFilter": "dateFilter"; "interval": "interval"; "twelvehour": "twelvehour"; "AMPM": "AMPM"; "activeDate": "activeDate"; "selected": "selected"; "minDate": "minDate"; "maxDate": "maxDate"; "startView": "startView"; }, { "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; "_userSelection": "_userSelection"; }, never, never, false>;
91
95
  }
@@ -2,10 +2,10 @@ $calendar-padding: 8px;
2
2
  $non-touch-calendar-cell-size: 40px;
3
3
  $non-touch-calendar-portrait-width: $non-touch-calendar-cell-size * 7 + $calendar-padding * 2;
4
4
  $non-touch-calendar-portrait-height: 424px;
5
- $non-touch-calendar-landscape-width: 446px;
5
+ $non-touch-calendar-landscape-width: 432px;
6
6
  $non-touch-calendar-landscape-height: 328px;
7
7
  $non-touch-calendar-with-time-input-portrait-height: 490px;
8
- $non-touch-calendar-with-time-input-landscape-height: 412px;
8
+ $non-touch-calendar-with-time-input-landscape-height: 404px;
9
9
 
10
10
  // Ideally the calendar would have a constant aspect ratio, no matter its size, and we would base
11
11
  // these measurements off the aspect ratio. Unfortunately, the aspect ratio does change a little as
@@ -62,6 +62,7 @@ $time-ampm-width: 40px;
62
62
  line-height: normal;
63
63
  border-width: 1px;
64
64
  border-style: solid;
65
+ font-weight: 400;
65
66
  }
66
67
 
67
68
  .mtx-time-am {