@ngx-mce/datetime-picker 21.1.1 → 21.2.0-next.2
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/README.md +240 -240
- package/fesm2022/ngx-mce-datetime-picker.mjs +1151 -928
- package/fesm2022/ngx-mce-datetime-picker.mjs.map +1 -1
- package/package.json +17 -22
- package/types/ngx-mce-datetime-picker.d.ts +126 -122
- package/LICENSE +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnDestroy, AfterViewChecked, ElementRef, NgZone,
|
|
2
|
+
import { OnDestroy, AfterViewChecked, ElementRef, NgZone, FactoryProvider, InjectionToken, AfterContentInit, OnChanges, ChangeDetectorRef, SimpleChanges, AfterViewInit, OnInit, DoCheck, Injector, EventEmitter, ViewContainerRef, TemplateRef, InputSignal } from '@angular/core';
|
|
3
3
|
import { ComponentType, Portal, TemplatePortal } from '@angular/cdk/portal';
|
|
4
4
|
import { DateAdapter, MatDateFormats, ThemePalette, ErrorStateMatcher } from '@angular/material/core';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
@@ -9,8 +9,7 @@ import { BooleanInput } from '@angular/cdk/coercion';
|
|
|
9
9
|
import * as _angular_forms from '@angular/forms';
|
|
10
10
|
import { ControlValueAccessor, Validator, ValidatorFn, AbstractControl, ValidationErrors, NgForm, FormGroupDirective, NgControl, ControlContainer, FormControl } from '@angular/forms';
|
|
11
11
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
12
|
-
import {
|
|
13
|
-
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
12
|
+
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
14
13
|
import { MatButton } from '@angular/material/button';
|
|
15
14
|
import { MatCalendarView, MatCalendar } from '@angular/material/datepicker';
|
|
16
15
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
@@ -32,13 +31,13 @@ declare class NgxMatCalendarCell<D = any> {
|
|
|
32
31
|
enabled: boolean;
|
|
33
32
|
cssClasses: NgxMatCalendarCellCssClasses;
|
|
34
33
|
compareValue: number;
|
|
35
|
-
rawValue?: D;
|
|
36
|
-
constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, cssClasses?: NgxMatCalendarCellCssClasses, compareValue?: number, rawValue?: D);
|
|
34
|
+
rawValue?: D | undefined;
|
|
35
|
+
constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, cssClasses?: NgxMatCalendarCellCssClasses, compareValue?: number, rawValue?: D | undefined);
|
|
37
36
|
}
|
|
38
37
|
/** Event emitted when a date inside the calendar is triggered as a result of a user action. */
|
|
39
38
|
interface NgxMatCalendarUserEvent<D> {
|
|
40
39
|
value: D;
|
|
41
|
-
event: Event;
|
|
40
|
+
event: Event | null;
|
|
42
41
|
}
|
|
43
42
|
declare class NgxMatCalendarBody<D = any> implements OnDestroy, AfterViewChecked {
|
|
44
43
|
private _elementRef;
|
|
@@ -54,17 +53,17 @@ declare class NgxMatCalendarBody<D = any> implements OnDestroy, AfterViewChecked
|
|
|
54
53
|
*/
|
|
55
54
|
private _focusActiveCellAfterViewChecked;
|
|
56
55
|
/** The label for the table. (e.g. "Jan 2017"). */
|
|
57
|
-
label: _angular_core.InputSignal<string>;
|
|
56
|
+
label: _angular_core.InputSignal<string | undefined>;
|
|
58
57
|
/** The cells to display in the table. */
|
|
59
|
-
rows: _angular_core.InputSignal<NgxMatCalendarCell<any>[][]>;
|
|
58
|
+
rows: _angular_core.InputSignal<NgxMatCalendarCell<any>[][] | null | undefined>;
|
|
60
59
|
/** The value in the table that corresponds to today. */
|
|
61
|
-
todayValue: _angular_core.InputSignal<number>;
|
|
60
|
+
todayValue: _angular_core.InputSignal<number | undefined>;
|
|
62
61
|
/** Start value of the selected date range. */
|
|
63
|
-
startValue: _angular_core.InputSignal<number>;
|
|
62
|
+
startValue: _angular_core.InputSignal<number | undefined>;
|
|
64
63
|
/** End value of the selected date range. */
|
|
65
|
-
endValue: _angular_core.InputSignal<number>;
|
|
64
|
+
endValue: _angular_core.InputSignal<number | undefined>;
|
|
66
65
|
/** The minimum number of free cells needed to fit the label in the first row. */
|
|
67
|
-
labelMinRequiredCells: _angular_core.InputSignal<number>;
|
|
66
|
+
labelMinRequiredCells: _angular_core.InputSignal<number | undefined>;
|
|
68
67
|
/** The number of columns in the table. */
|
|
69
68
|
numCols: _angular_core.InputSignal<number>;
|
|
70
69
|
/** The cell number of the active cell in the table. */
|
|
@@ -78,26 +77,26 @@ declare class NgxMatCalendarBody<D = any> implements OnDestroy, AfterViewChecked
|
|
|
78
77
|
*/
|
|
79
78
|
cellAspectRatio: _angular_core.InputSignal<number>;
|
|
80
79
|
/** Start of the comparison range. */
|
|
81
|
-
comparisonStart: _angular_core.InputSignal<number>;
|
|
80
|
+
comparisonStart: _angular_core.InputSignal<number | null | undefined>;
|
|
82
81
|
/** End of the comparison range. */
|
|
83
|
-
comparisonEnd: _angular_core.InputSignal<number>;
|
|
82
|
+
comparisonEnd: _angular_core.InputSignal<number | null | undefined>;
|
|
84
83
|
/** Start of the preview range. */
|
|
85
|
-
previewStart: _angular_core.InputSignal<number>;
|
|
84
|
+
previewStart: _angular_core.InputSignal<number | null>;
|
|
86
85
|
/** End of the preview range. */
|
|
87
|
-
previewEnd: _angular_core.InputSignal<number>;
|
|
86
|
+
previewEnd: _angular_core.InputSignal<number | null>;
|
|
88
87
|
/** ARIA Accessible name of the `<input matStartDate/>` */
|
|
89
|
-
startDateAccessibleName: _angular_core.InputSignal<string>;
|
|
88
|
+
startDateAccessibleName: _angular_core.InputSignal<string | null | undefined>;
|
|
90
89
|
/** ARIA Accessible name of the `<input matEndDate/>` */
|
|
91
|
-
endDateAccessibleName: _angular_core.InputSignal<string>;
|
|
90
|
+
endDateAccessibleName: _angular_core.InputSignal<string | null | undefined>;
|
|
92
91
|
/** Emits when a new value is selected. */
|
|
93
92
|
readonly selectedValueChange: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<number>>;
|
|
94
93
|
/** Emits when the preview has changed as a result of a user action. */
|
|
95
|
-
readonly previewChange: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<NgxMatCalendarCell<any
|
|
94
|
+
readonly previewChange: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<NgxMatCalendarCell<any> | null>>;
|
|
96
95
|
readonly activeDateChange: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<number>>;
|
|
97
96
|
/** Emits the date at the possible start of a drag event. */
|
|
98
97
|
readonly dragStarted: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D>>;
|
|
99
98
|
/** Emits the date at the conclusion of a drag, or null if mouse was not released on a date. */
|
|
100
|
-
readonly dragEnded: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D>>;
|
|
99
|
+
readonly dragEnded: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D | null>>;
|
|
101
100
|
/** The number of blank cells to put at the beginning for the first row. */
|
|
102
101
|
_firstRowOffset: _angular_core.Signal<number>;
|
|
103
102
|
/** Padding for the individual date cells. */
|
|
@@ -199,11 +198,11 @@ type NgxExtractDateTypeFromSelection<T> = T extends NgxDateRange<infer D> ? D :
|
|
|
199
198
|
*/
|
|
200
199
|
interface NgxDateSelectionModelChange<S> {
|
|
201
200
|
/** New value for the selection. */
|
|
202
|
-
selection: S;
|
|
201
|
+
selection: S | null;
|
|
203
202
|
/** Object that triggered the change. */
|
|
204
203
|
source: unknown;
|
|
205
204
|
/** Previous value */
|
|
206
|
-
oldValue?: S;
|
|
205
|
+
oldValue?: S | null;
|
|
207
206
|
}
|
|
208
207
|
/**
|
|
209
208
|
* A selection model containing a date selection.
|
|
@@ -224,7 +223,7 @@ declare abstract class NgxMatDateSelectionModel<S, D = NgxExtractDateTypeFromSel
|
|
|
224
223
|
* @param value New selection that should be assigned.
|
|
225
224
|
* @param source Object that triggered the selection change.
|
|
226
225
|
*/
|
|
227
|
-
updateSelection(value: S, source: unknown): void;
|
|
226
|
+
updateSelection(value: S | null, source: unknown): void;
|
|
228
227
|
ngOnDestroy(): void;
|
|
229
228
|
protected _isValidDateInstance(date: D): boolean;
|
|
230
229
|
/** Adds a date to the current selection. */
|
|
@@ -329,7 +328,7 @@ declare class DefaultNgxMatCalendarRangeStrategy<D> implements NgxMatDateRangeSe
|
|
|
329
328
|
constructor(_dateAdapter: DateAdapter<D>);
|
|
330
329
|
selectionFinished(date: D, currentRange: NgxDateRange<D>): NgxDateRange<D>;
|
|
331
330
|
createPreview(activeDate: D | null, currentRange: NgxDateRange<D>): NgxDateRange<D>;
|
|
332
|
-
createDrag(dragOrigin: D, originalRange: NgxDateRange<D>, newDate: D): NgxDateRange<D
|
|
331
|
+
createDrag(dragOrigin: D, originalRange: NgxDateRange<D>, newDate: D): NgxDateRange<D> | null;
|
|
333
332
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DefaultNgxMatCalendarRangeStrategy<any>, never>;
|
|
334
333
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DefaultNgxMatCalendarRangeStrategy<any>>;
|
|
335
334
|
}
|
|
@@ -369,38 +368,38 @@ declare class NgxMatMonthView<D> implements AfterContentInit, OnChanges, OnDestr
|
|
|
369
368
|
set maxDate(value: D | null);
|
|
370
369
|
private _maxDate;
|
|
371
370
|
/** Function used to filter which dates are selectable. */
|
|
372
|
-
dateFilter: _angular_core.InputSignal<(date: D) => boolean>;
|
|
371
|
+
dateFilter: _angular_core.InputSignal<((date: D) => boolean) | undefined>;
|
|
373
372
|
/** Function that can be used to add custom CSS classes to dates. */
|
|
374
|
-
dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D
|
|
373
|
+
dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D> | undefined>;
|
|
375
374
|
/** Start of the comparison range. */
|
|
376
|
-
comparisonStart: _angular_core.InputSignal<D>;
|
|
375
|
+
comparisonStart: _angular_core.InputSignal<D | null | undefined>;
|
|
377
376
|
/** End of the comparison range. */
|
|
378
|
-
comparisonEnd: _angular_core.InputSignal<D>;
|
|
377
|
+
comparisonEnd: _angular_core.InputSignal<D | null | undefined>;
|
|
379
378
|
/** ARIA Accessible name of the `<input matStartDate/>` */
|
|
380
|
-
startDateAccessibleName: _angular_core.InputSignal<string>;
|
|
379
|
+
startDateAccessibleName: _angular_core.InputSignal<string | null | undefined>;
|
|
381
380
|
/** ARIA Accessible name of the `<input matEndDate/>` */
|
|
382
|
-
endDateAccessibleName: _angular_core.InputSignal<string>;
|
|
381
|
+
endDateAccessibleName: _angular_core.InputSignal<string | null | undefined>;
|
|
383
382
|
/** Origin of active drag, or null when dragging is not active. */
|
|
384
|
-
activeDrag: _angular_core.InputSignal<NgxMatCalendarUserEvent<D
|
|
383
|
+
activeDrag: _angular_core.InputSignal<NgxMatCalendarUserEvent<D> | null>;
|
|
385
384
|
/** Emits when a new date is selected. */
|
|
386
|
-
readonly selectedChange: _angular_core.OutputEmitterRef<D>;
|
|
385
|
+
readonly selectedChange: _angular_core.OutputEmitterRef<D | null>;
|
|
387
386
|
/** Emits when any date is selected. */
|
|
388
|
-
readonly _userSelection: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D>>;
|
|
387
|
+
readonly _userSelection: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D | null>>;
|
|
389
388
|
/** Emits when the user initiates a date range drag via mouse or touch. */
|
|
390
389
|
readonly dragStarted: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D>>;
|
|
391
390
|
/**
|
|
392
391
|
* Emits when the user completes or cancels a date range drag.
|
|
393
392
|
* Emits null when the drag was canceled or the newly selected date range if completed.
|
|
394
393
|
*/
|
|
395
|
-
readonly dragEnded: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<NgxDateRange<D
|
|
394
|
+
readonly dragEnded: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<NgxDateRange<D> | null>>;
|
|
396
395
|
/** Emits when any date is activated. */
|
|
397
396
|
readonly activeDateChange: _angular_core.OutputEmitterRef<D>;
|
|
398
397
|
/** The body of calendar table */
|
|
399
|
-
_matCalendarBody: _angular_core.Signal<NgxMatCalendarBody<any
|
|
398
|
+
_matCalendarBody: _angular_core.Signal<NgxMatCalendarBody<any> | undefined>;
|
|
400
399
|
/** The label for this month (e.g. "January 2017"). */
|
|
401
400
|
_monthLabel: string;
|
|
402
401
|
/** Grid of calendar cells representing the dates of the month. */
|
|
403
|
-
_weeks: NgxMatCalendarCell[][];
|
|
402
|
+
_weeks: NgxMatCalendarCell[][] | null;
|
|
404
403
|
/** The number of blank cells in the first row before the 1st of the month. */
|
|
405
404
|
_firstWeekOffset: number;
|
|
406
405
|
/** Start value of the currently-shown date range. */
|
|
@@ -423,8 +422,8 @@ declare class NgxMatMonthView<D> implements AfterContentInit, OnChanges, OnDestr
|
|
|
423
422
|
_weekdays: {
|
|
424
423
|
long: string;
|
|
425
424
|
narrow: string;
|
|
426
|
-
}[];
|
|
427
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _dateFormats: MatDateFormats, _dateAdapter: DateAdapter<D>, _dir?: Directionality, _rangeStrategy?: NgxMatDateRangeSelectionStrategy<D>);
|
|
425
|
+
}[] | null;
|
|
426
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _dateFormats: MatDateFormats, _dateAdapter: DateAdapter<D>, _dir?: Directionality | undefined, _rangeStrategy?: NgxMatDateRangeSelectionStrategy<D> | undefined);
|
|
428
427
|
ngAfterContentInit(): void;
|
|
429
428
|
ngOnChanges(changes: SimpleChanges): void;
|
|
430
429
|
ngOnDestroy(): void;
|
|
@@ -520,9 +519,9 @@ declare class NgxMatMultiYearView<D> implements AfterContentInit, OnDestroy {
|
|
|
520
519
|
set maxDate(value: D | null);
|
|
521
520
|
private _maxDate;
|
|
522
521
|
/** A function used to filter which dates are selectable. */
|
|
523
|
-
dateFilter: _angular_core.InputSignal<(date: D) => boolean>;
|
|
522
|
+
dateFilter: _angular_core.InputSignal<((date: D) => boolean) | undefined>;
|
|
524
523
|
/** Function that can be used to add custom CSS classes to date cells. */
|
|
525
|
-
dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D
|
|
524
|
+
dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D> | undefined>;
|
|
526
525
|
/** Emits when a new year is selected. */
|
|
527
526
|
readonly selectedChange: _angular_core.OutputEmitterRef<D>;
|
|
528
527
|
/** Emits the selected year. This doesn't imply a change on the selected date */
|
|
@@ -530,14 +529,14 @@ declare class NgxMatMultiYearView<D> implements AfterContentInit, OnDestroy {
|
|
|
530
529
|
/** Emits when any date is activated. */
|
|
531
530
|
readonly activeDateChange: _angular_core.OutputEmitterRef<D>;
|
|
532
531
|
/** The body of calendar table */
|
|
533
|
-
_matCalendarBody: _angular_core.Signal<NgxMatCalendarBody<any
|
|
532
|
+
_matCalendarBody: _angular_core.Signal<NgxMatCalendarBody<any> | undefined>;
|
|
534
533
|
/** Grid of calendar cells representing the currently displayed years. */
|
|
535
|
-
_years: NgxMatCalendarCell[][];
|
|
534
|
+
_years: NgxMatCalendarCell[][] | null;
|
|
536
535
|
/** The year that today falls on. */
|
|
537
536
|
_todayYear: number;
|
|
538
537
|
/** The year of the selected date. Null if the selected date is null. */
|
|
539
538
|
_selectedYear: number | null;
|
|
540
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _dateAdapter: DateAdapter<D>, _dir?: Directionality);
|
|
539
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _dateAdapter: DateAdapter<D>, _dir?: Directionality | undefined);
|
|
541
540
|
ngAfterContentInit(): void;
|
|
542
541
|
ngOnDestroy(): void;
|
|
543
542
|
/** Initializes this multi-year view. */
|
|
@@ -617,9 +616,9 @@ declare class NgxMatYearView<D> implements AfterContentInit, OnDestroy {
|
|
|
617
616
|
set maxDate(value: D | null);
|
|
618
617
|
private _maxDate;
|
|
619
618
|
/** A function used to filter which dates are selectable. */
|
|
620
|
-
dateFilter: _angular_core.InputSignal<(date: D) => boolean>;
|
|
619
|
+
dateFilter: _angular_core.InputSignal<((date: D) => boolean) | undefined>;
|
|
621
620
|
/** Function that can be used to add custom CSS classes to date cells. */
|
|
622
|
-
dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D
|
|
621
|
+
dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D> | undefined>;
|
|
623
622
|
/** Emits when a new month is selected. */
|
|
624
623
|
readonly selectedChange: _angular_core.OutputEmitterRef<D>;
|
|
625
624
|
/** Emits the selected month. This doesn't imply a change on the selected date */
|
|
@@ -627,9 +626,9 @@ declare class NgxMatYearView<D> implements AfterContentInit, OnDestroy {
|
|
|
627
626
|
/** Emits when any date is activated. */
|
|
628
627
|
readonly activeDateChange: _angular_core.OutputEmitterRef<D>;
|
|
629
628
|
/** The body of calendar table */
|
|
630
|
-
_matCalendarBody: _angular_core.Signal<NgxMatCalendarBody<any
|
|
629
|
+
_matCalendarBody: _angular_core.Signal<NgxMatCalendarBody<any> | undefined>;
|
|
631
630
|
/** Grid of calendar cells representing the months of the year. */
|
|
632
|
-
_months: NgxMatCalendarCell[][];
|
|
631
|
+
_months: NgxMatCalendarCell[][] | null;
|
|
633
632
|
/** The label for this year (e.g. "2017"). */
|
|
634
633
|
_yearLabel: string;
|
|
635
634
|
/** The month in this year that today falls on. Null if today is in a different year. */
|
|
@@ -639,7 +638,7 @@ declare class NgxMatYearView<D> implements AfterContentInit, OnDestroy {
|
|
|
639
638
|
* Null if the selected Date is in a different year.
|
|
640
639
|
*/
|
|
641
640
|
_selectedMonth: number | null;
|
|
642
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _dateFormats: MatDateFormats, _dateAdapter: DateAdapter<D>, _dir?: Directionality);
|
|
641
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _dateFormats: MatDateFormats, _dateAdapter: DateAdapter<D>, _dir?: Directionality | undefined);
|
|
643
642
|
ngAfterContentInit(): void;
|
|
644
643
|
ngOnDestroy(): void;
|
|
645
644
|
/** Handles when a new month is selected. */
|
|
@@ -748,9 +747,9 @@ declare class NgxMatCalendar<D> implements AfterContentInit, AfterViewChecked, O
|
|
|
748
747
|
private _dateFormats;
|
|
749
748
|
private _changeDetectorRef;
|
|
750
749
|
/** An input indicating the type of the header component, if set. */
|
|
751
|
-
headerComponent: _angular_core.InputSignal<ComponentType<any
|
|
750
|
+
headerComponent: _angular_core.InputSignal<ComponentType<any> | undefined>;
|
|
752
751
|
/** A portal containing the header component type for this calendar. */
|
|
753
|
-
_calendarHeaderPortal: Portal<any
|
|
752
|
+
_calendarHeaderPortal: Portal<any> | null;
|
|
754
753
|
private _intlChanges;
|
|
755
754
|
/**
|
|
756
755
|
* Used for scheduling that focus should be moved to the active cell on the next tick.
|
|
@@ -777,20 +776,20 @@ declare class NgxMatCalendar<D> implements AfterContentInit, AfterViewChecked, O
|
|
|
777
776
|
set maxDate(value: D | null);
|
|
778
777
|
private _maxDate;
|
|
779
778
|
/** Function used to filter which dates are selectable. */
|
|
780
|
-
readonly dateFilter: _angular_core.InputSignal<(date: D) => boolean>;
|
|
779
|
+
readonly dateFilter: _angular_core.InputSignal<((date: D) => boolean) | undefined>;
|
|
781
780
|
/** Function that can be used to add custom CSS classes to dates. */
|
|
782
|
-
readonly dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D
|
|
781
|
+
readonly dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D> | undefined>;
|
|
783
782
|
/** Start of the comparison range. */
|
|
784
|
-
readonly comparisonStart: _angular_core.InputSignal<D>;
|
|
783
|
+
readonly comparisonStart: _angular_core.InputSignal<D | null | undefined>;
|
|
785
784
|
/** End of the comparison range. */
|
|
786
|
-
readonly comparisonEnd: _angular_core.InputSignal<D>;
|
|
785
|
+
readonly comparisonEnd: _angular_core.InputSignal<D | null | undefined>;
|
|
787
786
|
/** ARIA Accessible name of the `<input matStartDate/>` */
|
|
788
|
-
readonly startDateAccessibleName: _angular_core.InputSignal<string>;
|
|
787
|
+
readonly startDateAccessibleName: _angular_core.InputSignal<string | null | undefined>;
|
|
789
788
|
/** ARIA Accessible name of the `<input matEndDate/>` */
|
|
790
|
-
readonly endDateAccessibleName: _angular_core.InputSignal<string>;
|
|
789
|
+
readonly endDateAccessibleName: _angular_core.InputSignal<string | null | undefined>;
|
|
791
790
|
readonly currentView: _angular_core.WritableSignal<NgxMatCalendarView>;
|
|
792
791
|
/** Emits when the currently selected date changes. */
|
|
793
|
-
readonly selectedChange: _angular_core.OutputEmitterRef<D>;
|
|
792
|
+
readonly selectedChange: _angular_core.OutputEmitterRef<D | null>;
|
|
794
793
|
/**
|
|
795
794
|
* Emits the year chosen in multiyear view.
|
|
796
795
|
* This doesn't imply a change on the selected date.
|
|
@@ -806,20 +805,20 @@ declare class NgxMatCalendar<D> implements AfterContentInit, AfterViewChecked, O
|
|
|
806
805
|
*/
|
|
807
806
|
readonly viewChanged: _angular_core.OutputRef<NgxMatCalendarView>;
|
|
808
807
|
/** Emits when any date is selected. */
|
|
809
|
-
readonly _userSelection: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D>>;
|
|
808
|
+
readonly _userSelection: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<D | null>>;
|
|
810
809
|
/** Emits a new date range value when the user completes a drag drop operation. */
|
|
811
810
|
readonly _userDragDrop: _angular_core.OutputEmitterRef<NgxMatCalendarUserEvent<NgxDateRange<D>>>;
|
|
812
811
|
/** Reference to the current month view component. */
|
|
813
|
-
readonly monthView: _angular_core.Signal<NgxMatMonthView<D
|
|
812
|
+
readonly monthView: _angular_core.Signal<NgxMatMonthView<D> | undefined>;
|
|
814
813
|
/** Reference to the current year view component. */
|
|
815
|
-
readonly yearView: _angular_core.Signal<NgxMatYearView<D
|
|
814
|
+
readonly yearView: _angular_core.Signal<NgxMatYearView<D> | undefined>;
|
|
816
815
|
/** Reference to the current multi-year view component. */
|
|
817
|
-
readonly multiYearView: _angular_core.Signal<NgxMatMultiYearView<D
|
|
816
|
+
readonly multiYearView: _angular_core.Signal<NgxMatMultiYearView<D> | undefined>;
|
|
818
817
|
/**
|
|
819
818
|
* The current active date. This determines which time period is shown and which date is
|
|
820
819
|
* highlighted when using keyboard navigation.
|
|
821
820
|
*/
|
|
822
|
-
get activeDate(): D;
|
|
821
|
+
get activeDate(): D | null;
|
|
823
822
|
set activeDate(value: D);
|
|
824
823
|
private _clampedActiveDate;
|
|
825
824
|
/** Origin of active drag, or null when dragging is not active. */
|
|
@@ -946,7 +945,7 @@ declare abstract class NgxMatDatepickerInputBase<S, D = NgxExtractDateTypeFromSe
|
|
|
946
945
|
/** Assigns a value to the input's model. */
|
|
947
946
|
protected abstract _assignValueToModel(model: D | null): void;
|
|
948
947
|
/** Converts a value from the model into a native value for the input. */
|
|
949
|
-
protected abstract _getValueFromModel(modelValue: S): D | null;
|
|
948
|
+
protected abstract _getValueFromModel(modelValue: S | null): D | null;
|
|
950
949
|
/** Combined form control validator for this input. */
|
|
951
950
|
protected abstract _validator: ValidatorFn | null;
|
|
952
951
|
/** Predicate that determines whether the input should handle a particular change event. */
|
|
@@ -966,7 +965,7 @@ declare abstract class NgxMatDatepickerInputBase<S, D = NgxExtractDateTypeFromSe
|
|
|
966
965
|
registerOnTouched(fn: () => void): void;
|
|
967
966
|
setDisabledState(isDisabled: boolean): void;
|
|
968
967
|
_onKeydown(event: KeyboardEvent): void;
|
|
969
|
-
_onInput(
|
|
968
|
+
_onInput(event: Event): void;
|
|
970
969
|
_onChange(): void;
|
|
971
970
|
/** Handles blur events on the input. */
|
|
972
971
|
_onBlur(): void;
|
|
@@ -1020,17 +1019,17 @@ declare abstract class NgxMatDateRangeInputPartBase<D> extends NgxMatDatepickerI
|
|
|
1020
1019
|
private _injector;
|
|
1021
1020
|
_parentForm: NgForm;
|
|
1022
1021
|
_parentFormGroup: FormGroupDirective;
|
|
1023
|
-
errorStateMatcher: ErrorStateMatcher;
|
|
1022
|
+
errorStateMatcher: ErrorStateMatcher | null;
|
|
1024
1023
|
/**
|
|
1025
1024
|
* Form control bound to this input part.
|
|
1026
1025
|
* @docs-private
|
|
1027
1026
|
*/
|
|
1028
|
-
ngControl: NgControl;
|
|
1027
|
+
ngControl: NgControl | null;
|
|
1029
1028
|
errorState: boolean;
|
|
1030
1029
|
protected abstract _validator: ValidatorFn | null;
|
|
1031
1030
|
protected abstract _assignValueToModel(value: D | null): void;
|
|
1032
1031
|
protected abstract _getValueFromModel(modelValue: NgxDateRange<D>): D | null;
|
|
1033
|
-
protected readonly _dir: Directionality;
|
|
1032
|
+
protected readonly _dir: Directionality | null;
|
|
1034
1033
|
constructor(_rangeInput: NgxMatDateRangeInputParent<D>, _elementRef: ElementRef<HTMLInputElement>, _defaultErrorStateMatcher: ErrorStateMatcher, _injector: Injector, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, dateAdapter: DateAdapter<D>, dateFormats: MatDateFormats);
|
|
1035
1034
|
ngOnInit(): void;
|
|
1036
1035
|
ngDoCheck(): void;
|
|
@@ -1044,13 +1043,13 @@ declare abstract class NgxMatDateRangeInputPartBase<D> extends NgxMatDatepickerI
|
|
|
1044
1043
|
/** Gets the value that should be used when mirroring the input's size. */
|
|
1045
1044
|
getMirrorValue(): string;
|
|
1046
1045
|
/** Handles `input` events on the input element. */
|
|
1047
|
-
_onInput(
|
|
1046
|
+
_onInput(event: Event): void;
|
|
1048
1047
|
/** Opens the datepicker associated with the input. */
|
|
1049
1048
|
protected _openPopup(): void;
|
|
1050
1049
|
/** Gets the minimum date from the range input. */
|
|
1051
|
-
_getMinDate(): D;
|
|
1050
|
+
_getMinDate(): D | null;
|
|
1052
1051
|
/** Gets the maximum date from the range input. */
|
|
1053
|
-
_getMaxDate(): D;
|
|
1052
|
+
_getMaxDate(): D | null;
|
|
1054
1053
|
/** Gets the date filter function from the range input. */
|
|
1055
1054
|
protected _getDateFilter(): NgxDateFilterFn<D>;
|
|
1056
1055
|
protected _parentDisabled(): boolean;
|
|
@@ -1066,8 +1065,8 @@ declare class NgxMatStartDate<D> extends NgxMatDateRangeInputPartBase<D> {
|
|
|
1066
1065
|
/** Validator that checks that the start date isn't after the end date. */
|
|
1067
1066
|
private _startValidator;
|
|
1068
1067
|
constructor(rangeInput: NgxMatDateRangeInputParent<D>, elementRef: ElementRef<HTMLInputElement>, defaultErrorStateMatcher: ErrorStateMatcher, injector: Injector, parentForm: NgForm, parentFormGroup: FormGroupDirective, dateAdapter: DateAdapter<D>, dateFormats: MatDateFormats);
|
|
1069
|
-
protected _validator: ValidatorFn;
|
|
1070
|
-
protected _getValueFromModel(modelValue: NgxDateRange<D>): D;
|
|
1068
|
+
protected _validator: ValidatorFn | null;
|
|
1069
|
+
protected _getValueFromModel(modelValue: NgxDateRange<D> | null): D | null;
|
|
1071
1070
|
protected _shouldHandleChangeEvent(change: NgxDateSelectionModelChange<NgxDateRange<D>>): boolean;
|
|
1072
1071
|
protected _assignValueToModel(value: D | null): void;
|
|
1073
1072
|
protected _formatValue(value: D | null): void;
|
|
@@ -1080,8 +1079,8 @@ declare class NgxMatEndDate<D> extends NgxMatDateRangeInputPartBase<D> {
|
|
|
1080
1079
|
/** Validator that checks that the end date isn't before the start date. */
|
|
1081
1080
|
private _endValidator;
|
|
1082
1081
|
constructor(rangeInput: NgxMatDateRangeInputParent<D>, elementRef: ElementRef<HTMLInputElement>, defaultErrorStateMatcher: ErrorStateMatcher, injector: Injector, parentForm: NgForm, parentFormGroup: FormGroupDirective, dateAdapter: DateAdapter<D>, dateFormats: MatDateFormats);
|
|
1083
|
-
protected _validator: ValidatorFn;
|
|
1084
|
-
protected _getValueFromModel(modelValue: NgxDateRange<D>): D;
|
|
1082
|
+
protected _validator: ValidatorFn | null;
|
|
1083
|
+
protected _getValueFromModel(modelValue: NgxDateRange<D> | null): D | null;
|
|
1085
1084
|
protected _shouldHandleChangeEvent(change: NgxDateSelectionModelChange<NgxDateRange<D>>): boolean;
|
|
1086
1085
|
protected _assignValueToModel(value: D | null): void;
|
|
1087
1086
|
_onKeydown(event: KeyboardEvent): void;
|
|
@@ -1120,7 +1119,7 @@ declare class NgxMatDatepickerContent<S, D = NgxExtractDateTypeFromSelection<S>>
|
|
|
1120
1119
|
/** Reference to the internal calendar component. */
|
|
1121
1120
|
_calendar: _angular_core.Signal<NgxMatCalendar<D>>;
|
|
1122
1121
|
/** Reference to the datepicker that created the overlay. */
|
|
1123
|
-
datepicker: NgxMatDatepickerBase<any, S, D
|
|
1122
|
+
datepicker: NgxMatDatepickerBase<any, S, D> | null;
|
|
1124
1123
|
/** Start of the comparison range. */
|
|
1125
1124
|
comparisonStart: D | null;
|
|
1126
1125
|
/** End of the comparison range. */
|
|
@@ -1132,7 +1131,8 @@ declare class NgxMatDatepickerContent<S, D = NgxExtractDateTypeFromSelection<S>>
|
|
|
1132
1131
|
/** Whether the datepicker is above or below the input. */
|
|
1133
1132
|
_isAbove: boolean;
|
|
1134
1133
|
/** Current state of the animation. */
|
|
1135
|
-
|
|
1134
|
+
_isLeaving: boolean;
|
|
1135
|
+
_panelEnterClass: 'enter-dropdown' | 'enter-dialog' | null;
|
|
1136
1136
|
/** Emits when an animation has finished. */
|
|
1137
1137
|
readonly _animationDone: Subject<void>;
|
|
1138
1138
|
/** Whether there is an in-progress animation. */
|
|
@@ -1149,6 +1149,9 @@ declare class NgxMatDatepickerContent<S, D = NgxExtractDateTypeFromSelection<S>>
|
|
|
1149
1149
|
get isPrimary(): boolean;
|
|
1150
1150
|
get isAccent(): boolean;
|
|
1151
1151
|
get isWarn(): boolean;
|
|
1152
|
+
get isEnterDropdown(): boolean;
|
|
1153
|
+
get isEnterDialog(): boolean;
|
|
1154
|
+
get isLeavingClass(): boolean;
|
|
1152
1155
|
get isViewMonth(): boolean;
|
|
1153
1156
|
_modelTime: D | null;
|
|
1154
1157
|
constructor(_changeDetectorRef: ChangeDetectorRef, _globalModel: NgxMatDateSelectionModel<S, D>, _dateAdapter: DateAdapter<D>, _rangeSelectionStrategy: NgxMatDateRangeSelectionStrategy<D>, intl: NgxMatDatepickerIntl);
|
|
@@ -1160,7 +1163,7 @@ declare class NgxMatDatepickerContent<S, D = NgxExtractDateTypeFromSelection<S>>
|
|
|
1160
1163
|
private _updateUserSelectionWithCalendarUserEvent;
|
|
1161
1164
|
_handleUserDragDrop(event: NgxMatCalendarUserEvent<NgxDateRange<D>>): void;
|
|
1162
1165
|
_startExitAnimation(): void;
|
|
1163
|
-
|
|
1166
|
+
_onAnimationEnd(event: AnimationEvent): void;
|
|
1164
1167
|
_getSelected(): D | NgxDateRange<D> | null;
|
|
1165
1168
|
/** Applies the current pending selection to the global model. */
|
|
1166
1169
|
_applyPendingSelection(): void;
|
|
@@ -1223,7 +1226,7 @@ declare abstract class NgxMatDatepickerBase<C extends NgxMatDatepickerControl<D>
|
|
|
1223
1226
|
private _inputStateChanges;
|
|
1224
1227
|
private _document;
|
|
1225
1228
|
/** An input indicating the type of the custom header component for the calendar, if set. */
|
|
1226
|
-
calendarHeaderComponent: _angular_core.InputSignal<ComponentType<any
|
|
1229
|
+
calendarHeaderComponent: _angular_core.InputSignal<ComponentType<any> | undefined>;
|
|
1227
1230
|
/** The date to open the calendar to initially. */
|
|
1228
1231
|
get startAt(): D | null;
|
|
1229
1232
|
set startAt(value: D | null);
|
|
@@ -1275,7 +1278,7 @@ declare abstract class NgxMatDatepickerBase<C extends NgxMatDatepickerControl<D>
|
|
|
1275
1278
|
*/
|
|
1276
1279
|
readonly viewChanged: _angular_core.OutputEmitterRef<NgxMatCalendarView>;
|
|
1277
1280
|
/** Function that can be used to add custom CSS classes to dates. */
|
|
1278
|
-
readonly dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D
|
|
1281
|
+
readonly dateClass: _angular_core.InputSignal<NgxMatCalendarCellClassFunction<D> | undefined>;
|
|
1279
1282
|
/** Emits when the datepicker has been opened. */
|
|
1280
1283
|
readonly openedStream: EventEmitter<void>;
|
|
1281
1284
|
/** Emits when the datepicker has been closed. */
|
|
@@ -1284,7 +1287,7 @@ declare abstract class NgxMatDatepickerBase<C extends NgxMatDatepickerControl<D>
|
|
|
1284
1287
|
* Classes to be passed to the date picker panel.
|
|
1285
1288
|
* Supports string and string array values, similar to `ngClass`.
|
|
1286
1289
|
*/
|
|
1287
|
-
get panelClass(): string | string[];
|
|
1290
|
+
get panelClass(): string | string[] | null;
|
|
1288
1291
|
set panelClass(value: string | string[]);
|
|
1289
1292
|
private _panelClass;
|
|
1290
1293
|
/** Whether the calendar is open. */
|
|
@@ -1320,9 +1323,9 @@ declare abstract class NgxMatDatepickerBase<C extends NgxMatDatepickerControl<D>
|
|
|
1320
1323
|
set disableMinute(value: boolean);
|
|
1321
1324
|
_disableMinute: boolean;
|
|
1322
1325
|
/** Step second */
|
|
1323
|
-
get defaultTime(): number[];
|
|
1326
|
+
get defaultTime(): number[] | null;
|
|
1324
1327
|
set defaultTime(value: number[]);
|
|
1325
|
-
_defaultTime: number[];
|
|
1328
|
+
_defaultTime: number[] | null;
|
|
1326
1329
|
/** The id for the datepicker calendar. */
|
|
1327
1330
|
id: string;
|
|
1328
1331
|
/** The minimum selectable date. */
|
|
@@ -1420,7 +1423,7 @@ declare class NgxMatDateRangeInput<D> implements MatFormFieldControl<NgxDateRang
|
|
|
1420
1423
|
private _formField?;
|
|
1421
1424
|
private _closedSubscription;
|
|
1422
1425
|
/** Current value of the range input. */
|
|
1423
|
-
get value(): NgxDateRange<D
|
|
1426
|
+
get value(): NgxDateRange<D> | null;
|
|
1424
1427
|
/** Unique ID for the group. */
|
|
1425
1428
|
id: string;
|
|
1426
1429
|
/** Whether the control is focused. */
|
|
@@ -1483,7 +1486,7 @@ declare class NgxMatDateRangeInput<D> implements MatFormFieldControl<NgxDateRang
|
|
|
1483
1486
|
ngControl: NgControl | null;
|
|
1484
1487
|
/** Emits when the input's state has changed. */
|
|
1485
1488
|
readonly stateChanges: Subject<void>;
|
|
1486
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, control: ControlContainer, _dateAdapter: DateAdapter<D>, _formField?: _NgxMatFormFieldPartial);
|
|
1489
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, control: ControlContainer, _dateAdapter: DateAdapter<D>, _formField?: _NgxMatFormFieldPartial | undefined);
|
|
1487
1490
|
/**
|
|
1488
1491
|
* Implemented as a part of `MatFormFieldControl`.
|
|
1489
1492
|
* @docs-private
|
|
@@ -1514,9 +1517,9 @@ declare class NgxMatDateRangeInput<D> implements MatFormFieldControl<NgxDateRang
|
|
|
1514
1517
|
/** Opens the date range picker associated with the input. */
|
|
1515
1518
|
_openDatepicker(): void;
|
|
1516
1519
|
/** Whether the separate text should be hidden. */
|
|
1517
|
-
_shouldHideSeparator(): boolean;
|
|
1520
|
+
_shouldHideSeparator(): boolean | "" | null;
|
|
1518
1521
|
/** Gets the value for the `aria-labelledby` attribute of the inputs. */
|
|
1519
|
-
_getAriaLabelledby(): string;
|
|
1522
|
+
_getAriaLabelledby(): string | null;
|
|
1520
1523
|
_getStartDateAccessibleName(): string;
|
|
1521
1524
|
_getEndDateAccessibleName(): string;
|
|
1522
1525
|
/** Updates the focused state of the range input. */
|
|
@@ -1568,7 +1571,7 @@ declare class NgxMatDatepickerCancel {
|
|
|
1568
1571
|
declare class NgxMatDatepickerActions implements AfterViewInit, OnDestroy {
|
|
1569
1572
|
private _datepicker;
|
|
1570
1573
|
private _viewContainerRef;
|
|
1571
|
-
_template: _angular_core.Signal<TemplateRef<unknown
|
|
1574
|
+
_template: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
1572
1575
|
private _portal;
|
|
1573
1576
|
constructor(_datepicker: NgxMatDatepickerBase<NgxMatDatepickerControl<any>, unknown>, _viewContainerRef: ViewContainerRef);
|
|
1574
1577
|
ngAfterViewInit(): void;
|
|
@@ -1595,7 +1598,7 @@ declare class NgxMatDatepickerInput<D> extends NgxMatDatepickerInputBase<D | nul
|
|
|
1595
1598
|
private _closedSubscription;
|
|
1596
1599
|
/** The datepicker that this input is associated with. */
|
|
1597
1600
|
set ngxMatDatetimePicker(datepicker: NgxMatDatepickerPanel<NgxMatDatepickerControl<D>, D | null, D>);
|
|
1598
|
-
_datepicker: NgxMatDatepickerPanel<NgxMatDatepickerControl<D>, D | null, D
|
|
1601
|
+
_datepicker: NgxMatDatepickerPanel<NgxMatDatepickerControl<D>, D | null, D> | null;
|
|
1599
1602
|
/** The minimum valid date. */
|
|
1600
1603
|
get min(): D | null;
|
|
1601
1604
|
set min(value: D | null);
|
|
@@ -1610,7 +1613,7 @@ declare class NgxMatDatepickerInput<D> extends NgxMatDatepickerInputBase<D | nul
|
|
|
1610
1613
|
private _dateFilter;
|
|
1611
1614
|
/** The combined form control validator for this input. */
|
|
1612
1615
|
protected _validator: ValidatorFn | null;
|
|
1613
|
-
constructor(elementRef: ElementRef<HTMLInputElement>, dateAdapter: DateAdapter<D>, dateFormats: MatDateFormats, _formField?: _NgxMatFormFieldPartial);
|
|
1616
|
+
constructor(elementRef: ElementRef<HTMLInputElement>, dateAdapter: DateAdapter<D>, dateFormats: MatDateFormats, _formField?: _NgxMatFormFieldPartial | undefined);
|
|
1614
1617
|
/**
|
|
1615
1618
|
* Gets the element that the datepicker popup should be connected to.
|
|
1616
1619
|
* @return The element to connect the popup to.
|
|
@@ -1628,11 +1631,11 @@ declare class NgxMatDatepickerInput<D> extends NgxMatDatepickerInputBase<D | nul
|
|
|
1628
1631
|
protected _getValueFromModel(modelValue: D | null): D | null;
|
|
1629
1632
|
protected _assignValueToModel(value: D | null): void;
|
|
1630
1633
|
/** Gets the input's minimum date. */
|
|
1631
|
-
_getMinDate(): D;
|
|
1634
|
+
_getMinDate(): D | null;
|
|
1632
1635
|
/** Gets the input's maximum date. */
|
|
1633
|
-
_getMaxDate(): D;
|
|
1636
|
+
_getMaxDate(): D | null;
|
|
1634
1637
|
/** Gets the input's date filtering function. */
|
|
1635
|
-
protected _getDateFilter(): NgxDateFilterFn<D>;
|
|
1638
|
+
protected _getDateFilter(): NgxDateFilterFn<D | null>;
|
|
1636
1639
|
protected _shouldHandleChangeEvent(event: NgxDateSelectionModelChange<D>): boolean;
|
|
1637
1640
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxMatDatepickerInput<any>, [null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1638
1641
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxMatDatepickerInput<any>, "input[ngxMatDatetimePicker]", ["ngxMatDatepickerInput"], { "ngxMatDatetimePicker": { "alias": "ngxMatDatetimePicker"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "dateFilter": { "alias": "matDatepickerFilter"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -1648,19 +1651,19 @@ declare class NgxMatDatepickerToggle<D> implements AfterContentInit, OnDestroy {
|
|
|
1648
1651
|
private _changeDetectorRef;
|
|
1649
1652
|
private _stateChanges;
|
|
1650
1653
|
/** Datepicker instance that the button will toggle. */
|
|
1651
|
-
readonly datepicker: _angular_core.InputSignal<NgxMatDatepickerPanel<NgxMatDatepickerControl<any>, D, NgxExtractDateTypeFromSelection<D
|
|
1654
|
+
readonly datepicker: _angular_core.InputSignal<NgxMatDatepickerPanel<NgxMatDatepickerControl<any>, D, NgxExtractDateTypeFromSelection<D>> | undefined>;
|
|
1652
1655
|
/** Tabindex for the toggle. */
|
|
1653
1656
|
tabIndex: number | null;
|
|
1654
1657
|
/** Screen-reader label for the button. */
|
|
1655
|
-
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
1658
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
1656
1659
|
/** Whether the toggle button is disabled. */
|
|
1657
1660
|
get disabled(): boolean;
|
|
1658
1661
|
set disabled(value: BooleanInput);
|
|
1659
1662
|
private _disabled;
|
|
1660
1663
|
/** Whether ripples on the toggle should be disabled. */
|
|
1661
|
-
disableRipple: _angular_core.InputSignal<boolean>;
|
|
1664
|
+
disableRipple: _angular_core.InputSignal<boolean | undefined>;
|
|
1662
1665
|
/** Underlying button element. */
|
|
1663
|
-
_button: _angular_core.Signal<MatButton>;
|
|
1666
|
+
_button: _angular_core.Signal<MatButton | undefined>;
|
|
1664
1667
|
constructor(_intl: NgxMatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef, defaultTabIndex: string);
|
|
1665
1668
|
ngOnDestroy(): void;
|
|
1666
1669
|
ngAfterContentInit(): void;
|
|
@@ -1677,27 +1680,27 @@ declare enum MERIDIANS {
|
|
|
1677
1680
|
declare class NgxMatTimepickerComponent<D> implements ControlValueAccessor {
|
|
1678
1681
|
private readonly formBuilder;
|
|
1679
1682
|
private readonly _dateAdapter;
|
|
1680
|
-
readonly disabled:
|
|
1681
|
-
readonly showSpinners:
|
|
1682
|
-
readonly stepHour:
|
|
1683
|
-
readonly stepMinute:
|
|
1684
|
-
readonly stepSecond:
|
|
1685
|
-
readonly showSeconds:
|
|
1686
|
-
readonly disableMinute:
|
|
1687
|
-
readonly enableMeridian:
|
|
1688
|
-
readonly defaultTime:
|
|
1689
|
-
readonly color:
|
|
1683
|
+
readonly disabled: InputSignal<boolean>;
|
|
1684
|
+
readonly showSpinners: InputSignal<boolean>;
|
|
1685
|
+
readonly stepHour: InputSignal<number>;
|
|
1686
|
+
readonly stepMinute: InputSignal<number>;
|
|
1687
|
+
readonly stepSecond: InputSignal<number>;
|
|
1688
|
+
readonly showSeconds: InputSignal<boolean>;
|
|
1689
|
+
readonly disableMinute: InputSignal<boolean>;
|
|
1690
|
+
readonly enableMeridian: InputSignal<boolean>;
|
|
1691
|
+
readonly defaultTime: InputSignal<[number, number, number] | undefined>;
|
|
1692
|
+
readonly color: InputSignal<ThemePalette>;
|
|
1690
1693
|
readonly pattern: RegExp;
|
|
1691
|
-
readonly meridianInput:
|
|
1694
|
+
readonly meridianInput: InputSignal<MERIDIANS>;
|
|
1692
1695
|
readonly meridian: _angular_core.WritableSignal<MERIDIANS>;
|
|
1693
1696
|
readonly form: _angular_forms.FormGroup<{
|
|
1694
|
-
hour: FormControl<string>;
|
|
1695
|
-
minute: FormControl<string>;
|
|
1696
|
-
second: FormControl<string>;
|
|
1697
|
+
hour: FormControl<string | null>;
|
|
1698
|
+
minute: FormControl<string | null>;
|
|
1699
|
+
second: FormControl<string | null>;
|
|
1697
1700
|
}>;
|
|
1698
1701
|
private _onChange;
|
|
1699
1702
|
private _onTouched;
|
|
1700
|
-
readonly value: _angular_core.ModelSignal<D>;
|
|
1703
|
+
readonly value: _angular_core.ModelSignal<D | undefined>;
|
|
1701
1704
|
/** Hour */
|
|
1702
1705
|
private get hour();
|
|
1703
1706
|
private get minute();
|
|
@@ -1713,6 +1716,7 @@ declare class NgxMatTimepickerComponent<D> implements ControlValueAccessor {
|
|
|
1713
1716
|
private _updateHourMinuteSecond;
|
|
1714
1717
|
/** Update model */
|
|
1715
1718
|
private _updateModel;
|
|
1719
|
+
private castKey;
|
|
1716
1720
|
/**
|
|
1717
1721
|
* Get next value by property
|
|
1718
1722
|
*/
|
|
@@ -1727,7 +1731,7 @@ declare class NgxMatTimepickerComponent<D> implements ControlValueAccessor {
|
|
|
1727
1731
|
|
|
1728
1732
|
interface NgxMatDatetimePickerContentData<D> {
|
|
1729
1733
|
datepicker: any;
|
|
1730
|
-
color?:
|
|
1734
|
+
color?: ThemePalette;
|
|
1731
1735
|
touchUi?: boolean;
|
|
1732
1736
|
hideTime?: boolean;
|
|
1733
1737
|
showSpinners?: boolean;
|
|
@@ -1752,8 +1756,8 @@ declare class NgxMatDatetimePickerContentV2<D> implements OnInit, OnDestroy {
|
|
|
1752
1756
|
readonly data: NgxMatDatetimePickerContentData<D>;
|
|
1753
1757
|
private readonly _dateAdapter;
|
|
1754
1758
|
private readonly _destroyed;
|
|
1755
|
-
readonly selectedDate: _angular_core.WritableSignal<D>;
|
|
1756
|
-
readonly selectedDateTime: _angular_core.WritableSignal<D>;
|
|
1759
|
+
readonly selectedDate: _angular_core.WritableSignal<D | null>;
|
|
1760
|
+
readonly selectedDateTime: _angular_core.WritableSignal<D | null>;
|
|
1757
1761
|
constructor();
|
|
1758
1762
|
ngOnInit(): void;
|
|
1759
1763
|
ngOnDestroy(): void;
|
|
@@ -1778,7 +1782,7 @@ declare class NgxMatDatetimePickerV2<D> implements OnDestroy {
|
|
|
1778
1782
|
/** The id for the datepicker. */
|
|
1779
1783
|
readonly id: string;
|
|
1780
1784
|
/** The input element this datepicker is associated with. */
|
|
1781
|
-
datepickerInput: NgxMatDatepickerControl<D
|
|
1785
|
+
datepickerInput: NgxMatDatepickerControl<D> | null;
|
|
1782
1786
|
/** Emits when the datepicker is disabled. */
|
|
1783
1787
|
readonly stateChanges: Subject<void>;
|
|
1784
1788
|
/** Emits when the datepicker has been opened. */
|
|
@@ -1797,8 +1801,8 @@ declare class NgxMatDatetimePickerV2<D> implements OnDestroy {
|
|
|
1797
1801
|
readonly stepSecond: _angular_core.InputSignal<number>;
|
|
1798
1802
|
readonly enableMeridian: _angular_core.InputSignal<boolean>;
|
|
1799
1803
|
readonly disableMinute: _angular_core.InputSignal<boolean>;
|
|
1800
|
-
readonly defaultTime: _angular_core.InputSignal<number[]>;
|
|
1801
|
-
readonly startAt: _angular_core.InputSignal<D>;
|
|
1804
|
+
readonly defaultTime: _angular_core.InputSignal<number[] | undefined>;
|
|
1805
|
+
readonly startAt: _angular_core.InputSignal<D | null>;
|
|
1802
1806
|
readonly panelClass: _angular_core.InputSignal<string | string[]>;
|
|
1803
1807
|
private readonly _opened;
|
|
1804
1808
|
readonly opened: _angular_core.Signal<boolean>;
|
|
@@ -1827,12 +1831,12 @@ declare class NgxMatDatetimePickerV2<D> implements OnDestroy {
|
|
|
1827
1831
|
declare const NGX_MAT_DATETIME_PICKER_VALUE_ACCESSOR: any;
|
|
1828
1832
|
declare const NGX_MAT_DATETIME_PICKER_VALIDATORS: any;
|
|
1829
1833
|
declare class NgxMatDatetimePickerInputV2<D> implements MatFormFieldControl<D>, ControlValueAccessor, OnDestroy, OnInit, Validator, NgxMatDatepickerControl<D> {
|
|
1830
|
-
readonly _dateAdapter: DateAdapter<any, any
|
|
1834
|
+
readonly _dateAdapter: DateAdapter<any, any> | null;
|
|
1831
1835
|
private readonly _elementRef;
|
|
1832
1836
|
private readonly _dateFormats;
|
|
1833
1837
|
private readonly _formField;
|
|
1834
1838
|
ngControl: NgControl | null;
|
|
1835
|
-
ngxMatDatetimePicker: NgxMatDatetimePickerV2<D
|
|
1839
|
+
ngxMatDatetimePicker: NgxMatDatetimePickerV2<D> | null;
|
|
1836
1840
|
/** The value of the input. */
|
|
1837
1841
|
get value(): D | null;
|
|
1838
1842
|
set value(value: D | null);
|
|
@@ -1846,8 +1850,8 @@ declare class NgxMatDatetimePickerInputV2<D> implements MatFormFieldControl<D>,
|
|
|
1846
1850
|
set max(value: D | null);
|
|
1847
1851
|
private readonly _max;
|
|
1848
1852
|
/** Function that can be used to filter out dates within the datepicker. */
|
|
1849
|
-
get dateFilter(): (date: D) => boolean;
|
|
1850
|
-
set dateFilter(value: (date: D) => boolean);
|
|
1853
|
+
get dateFilter(): (date: D | null) => boolean;
|
|
1854
|
+
set dateFilter(value: (date: D | null) => boolean);
|
|
1851
1855
|
private readonly _dateFilter;
|
|
1852
1856
|
/** Whether the datepicker-input is disabled. */
|
|
1853
1857
|
get disabled(): boolean;
|
|
@@ -1904,7 +1908,7 @@ declare class NgxMatDatetimePickerInputV2<D> implements MatFormFieldControl<D>,
|
|
|
1904
1908
|
registerOnTouched(fn: () => void): void;
|
|
1905
1909
|
setDisabledState(isDisabled: boolean): void;
|
|
1906
1910
|
_onKeydown(event: KeyboardEvent): void;
|
|
1907
|
-
_onInput(
|
|
1911
|
+
_onInput(event: Event): void;
|
|
1908
1912
|
_onChange(): void;
|
|
1909
1913
|
_onBlur(): void;
|
|
1910
1914
|
_onClick(event: MouseEvent): void;
|