@ng-matero/extensions 19.4.1 → 20.0.1
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/_index.scss +1 -1
- package/alert/_alert-theme.scss +26 -31
- package/alert/_m2-alert.scss +59 -0
- package/alert/_m3-alert.scss +41 -0
- package/alert/alert.scss +27 -31
- package/alert/index.d.ts +30 -5
- package/button/index.d.ts +31 -5
- package/checkbox-group/index.d.ts +117 -5
- package/colorpicker/_colorpicker-theme.scss +31 -36
- package/{core/tokens/m2/mtx/_colorpicker.scss → colorpicker/_m2-colorpicker.scss} +6 -10
- package/colorpicker/_m3-colorpicker.scss +23 -0
- package/colorpicker/colorpicker-toggle.scss +4 -9
- package/colorpicker/index.d.ts +285 -3
- package/column-resize/index.d.ts +456 -3
- package/core/index.d.ts +147 -5
- package/core/theming/_color-api-backwards-compatibility.scss +8 -15
- package/core/theming/_definition.scss +81 -75
- package/core/theming/_palettes.scss +1036 -0
- package/core/tokens/{m2/_index.scss → _m2-tokens.scss} +22 -22
- package/core/tokens/_m2-utils.scss +108 -0
- package/core/tokens/_m3-system.scss +128 -106
- package/core/tokens/_m3-tokens.scss +36 -282
- package/core/tokens/_m3-utils.scss +48 -0
- package/core/tokens/_token-utils.scss +67 -239
- package/core/tokens/m3/_index.scss +7 -0
- package/core/tokens/m3/_md-sys-color.scss +156 -0
- package/core/tokens/m3/_md-sys-elevation.scss +15 -0
- package/core/tokens/m3/_md-sys-motion.scss +35 -0
- package/core/tokens/m3/_md-sys-shape.scss +21 -0
- package/core/tokens/m3/_md-sys-state.scss +13 -0
- package/core/tokens/m3/_md-sys-typescale.scss +128 -0
- package/core/tokens/m3/_theme.scss +47 -0
- package/datetimepicker/_datetimepicker-theme.scss +29 -39
- package/datetimepicker/_m2-datetimepicker.scss +149 -0
- package/datetimepicker/_m3-datetimepicker.scss +81 -0
- package/datetimepicker/calendar-body.scss +31 -56
- package/datetimepicker/calendar.scss +43 -79
- package/datetimepicker/clock.scss +28 -47
- package/datetimepicker/datetimepicker-content.scss +9 -15
- package/datetimepicker/datetimepicker-toggle.scss +4 -9
- package/datetimepicker/index.d.ts +1208 -3
- package/datetimepicker/time-view.scss +26 -32
- package/dialog/index.d.ts +54 -5
- package/drawer/_drawer-theme.scss +25 -30
- package/{core/tokens/m2/mtx/_drawer.scss → drawer/_m2-drawer.scss} +9 -12
- package/drawer/_m3-drawer.scss +24 -0
- package/drawer/drawer-container.scss +13 -24
- package/drawer/index.d.ts +221 -3
- package/fesm2022/mtxAlert.mjs +7 -7
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +11 -11
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +21 -21
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +232 -103
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +63 -67
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +10 -10
- package/fesm2022/mtxGrid.mjs +78 -77
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +24 -25
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +54 -54
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +10 -10
- package/fesm2022/mtxTooltip.mjs +13 -13
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +24 -34
- package/grid/_m2-grid.scss +66 -0
- package/grid/_m3-grid.scss +35 -0
- package/grid/column-menu.scss +6 -23
- package/grid/column-resize/_column-resize.scss +35 -30
- package/grid/grid.scss +41 -74
- package/grid/index.d.ts +799 -3
- package/index.d.ts +2 -5
- package/loader/_loader-theme.scss +26 -31
- package/{core/tokens/m2/mtx/_loader.scss → loader/_m2-loader.scss} +5 -10
- package/loader/_m3-loader.scss +20 -0
- package/loader/index.d.ts +43 -5
- package/loader/loader.scss +4 -5
- package/package.json +28 -28
- package/photoviewer/index.d.ts +26 -5
- package/{core/tokens/m2/mtx/_popover.scss → popover/_m2-popover.scss} +9 -12
- package/popover/_m3-popover.scss +26 -0
- package/popover/_popover-theme.scss +26 -31
- package/popover/index.d.ts +399 -3
- package/popover/popover.scss +23 -29
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress/_m2-progress.scss +53 -0
- package/progress/_m3-progress.scss +33 -0
- package/progress/_progress-theme.scss +22 -34
- package/progress/index.d.ts +35 -5
- package/progress/progress.scss +28 -43
- package/select/_m2-select.scss +79 -0
- package/select/_m3-select.scss +46 -0
- package/select/_select-theme.scss +27 -37
- package/select/index.d.ts +381 -3
- package/select/select.scss +189 -205
- package/{core/tokens/m2/mtx/_split.scss → split/_m2-split.scss} +6 -9
- package/split/_m3-split.scss +23 -0
- package/split/_split-theme.scss +31 -34
- package/split/index.d.ts +255 -3
- package/split/split.scss +8 -11
- package/tooltip/_m2-tooltip.scss +50 -0
- package/tooltip/_m3-tooltip.scss +28 -0
- package/tooltip/_tooltip-theme.scss +23 -47
- package/tooltip/index.d.ts +345 -3
- package/tooltip/tooltip.scss +11 -15
- package/alert/alert-module.d.ts +0 -8
- package/alert/alert.d.ts +0 -19
- package/alert/public-api.d.ts +0 -2
- package/button/button-loading.d.ts +0 -19
- package/button/button-module.d.ts +0 -10
- package/button/public-api.d.ts +0 -2
- package/checkbox-group/checkbox-group-module.d.ts +0 -11
- package/checkbox-group/checkbox-group.d.ts +0 -86
- package/checkbox-group/interfaces.d.ts +0 -17
- package/checkbox-group/public-api.d.ts +0 -3
- package/colorpicker/colorpicker-animations.d.ts +0 -9
- package/colorpicker/colorpicker-input.d.ts +0 -88
- package/colorpicker/colorpicker-module.d.ts +0 -15
- package/colorpicker/colorpicker-toggle.d.ts +0 -39
- package/colorpicker/colorpicker.d.ts +0 -140
- package/colorpicker/public-api.d.ts +0 -5
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -29
- package/column-resize/column-resize-directives/column-resize.d.ts +0 -29
- package/column-resize/column-resize-directives/constants.d.ts +0 -10
- package/column-resize/column-resize-module.d.ts +0 -12
- package/column-resize/column-resize-notifier.d.ts +0 -48
- package/column-resize/column-resize.d.ts +0 -39
- package/column-resize/column-size-store.d.ts +0 -12
- package/column-resize/event-dispatcher.d.ts +0 -35
- package/column-resize/overlay-handle.d.ts +0 -43
- package/column-resize/polyfill.d.ts +0 -9
- package/column-resize/public-api.d.ts +0 -12
- package/column-resize/resizable.d.ts +0 -63
- package/column-resize/resize-ref.d.ts +0 -17
- package/column-resize/resize-strategy.d.ts +0 -84
- package/column-resize/selectors.d.ts +0 -10
- package/core/datetime/datetime-adapter.d.ts +0 -45
- package/core/datetime/datetime-formats.d.ts +0 -22
- package/core/datetime/datetime.module.d.ts +0 -15
- package/core/datetime/index.d.ts +0 -5
- package/core/datetime/native-datetime-adapter.d.ts +0 -40
- package/core/datetime/native-datetime-formats.d.ts +0 -2
- package/core/pipes/index.d.ts +0 -3
- package/core/pipes/is-template-ref.pipe.d.ts +0 -7
- package/core/pipes/pipes.module.d.ts +0 -9
- package/core/pipes/to-observable.pipe.d.ts +0 -8
- package/core/public-api.d.ts +0 -2
- package/core/theming/_inspection.scss +0 -38
- package/core/theming/_validation.scss +0 -5
- package/core/tokens/_density.scss +0 -49
- package/core/tokens/_format-tokens.scss +0 -5
- package/core/tokens/_token-definition.scss +0 -271
- package/core/tokens/m2/mdc/_plain-tooltip.scss +0 -63
- package/core/tokens/m2/mtx/_alert.scss +0 -62
- package/core/tokens/m2/mtx/_datetimepicker.scss +0 -152
- package/core/tokens/m2/mtx/_grid.scss +0 -69
- package/core/tokens/m2/mtx/_progress.scss +0 -56
- package/core/tokens/m2/mtx/_select.scss +0 -82
- package/core/tokens/m3/definitions/_index.scss +0 -9
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
- package/core/tokens/m3/definitions/_md-ref-palette.scss +0 -100
- package/core/tokens/m3/definitions/_md-ref-typeface.scss +0 -14
- package/core/tokens/m3/definitions/_md-sys-color.scss +0 -126
- package/core/tokens/m3/definitions/_md-sys-elevation.scss +0 -15
- package/core/tokens/m3/definitions/_md-sys-motion.scss +0 -46
- package/core/tokens/m3/definitions/_md-sys-shape.scss +0 -24
- package/core/tokens/m3/definitions/_md-sys-state.scss +0 -13
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +0 -308
- package/core/tokens/m3/index.scss +0 -47
- package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
- package/core/tokens/m3/mtx/_alert.scss +0 -41
- package/core/tokens/m3/mtx/_colorpicker.scss +0 -19
- package/core/tokens/m3/mtx/_datetimepicker.scss +0 -140
- package/core/tokens/m3/mtx/_drawer.scss +0 -22
- package/core/tokens/m3/mtx/_grid.scss +0 -32
- package/core/tokens/m3/mtx/_loader.scss +0 -22
- package/core/tokens/m3/mtx/_popover.scss +0 -25
- package/core/tokens/m3/mtx/_progress.scss +0 -32
- package/core/tokens/m3/mtx/_select.scss +0 -76
- package/core/tokens/m3/mtx/_split.scss +0 -30
- package/datetimepicker/calendar-body.d.ts +0 -66
- package/datetimepicker/calendar.d.ts +0 -157
- package/datetimepicker/clock.d.ts +0 -101
- package/datetimepicker/datetimepicker-actions.d.ts +0 -36
- package/datetimepicker/datetimepicker-animations.d.ts +0 -11
- package/datetimepicker/datetimepicker-errors.d.ts +0 -2
- package/datetimepicker/datetimepicker-filtertype.d.ts +0 -5
- package/datetimepicker/datetimepicker-input.d.ts +0 -105
- package/datetimepicker/datetimepicker-intl.d.ts +0 -53
- package/datetimepicker/datetimepicker-module.d.ts +0 -22
- package/datetimepicker/datetimepicker-toggle.d.ts +0 -42
- package/datetimepicker/datetimepicker-types.d.ts +0 -6
- package/datetimepicker/datetimepicker.d.ts +0 -274
- package/datetimepicker/month-view.d.ts +0 -80
- package/datetimepicker/multi-year-view.d.ts +0 -86
- package/datetimepicker/public-api.d.ts +0 -16
- package/datetimepicker/time-view.d.ts +0 -147
- package/datetimepicker/year-view.d.ts +0 -68
- package/dialog/dialog-config.d.ts +0 -17
- package/dialog/dialog-container.d.ts +0 -11
- package/dialog/dialog-module.d.ts +0 -12
- package/dialog/dialog.d.ts +0 -15
- package/dialog/public-api.d.ts +0 -4
- package/drawer/drawer-animations.d.ts +0 -8
- package/drawer/drawer-config.d.ts +0 -63
- package/drawer/drawer-container.d.ts +0 -35
- package/drawer/drawer-module.d.ts +0 -10
- package/drawer/drawer-ref.d.ts +0 -53
- package/drawer/drawer.d.ts +0 -59
- package/drawer/public-api.d.ts +0 -6
- package/grid/cell.d.ts +0 -32
- package/grid/column-menu.d.ts +0 -39
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/common.d.ts +0 -13
- package/grid/column-resize/column-resize-module.d.ts +0 -17
- package/grid/column-resize/index.d.ts +0 -7
- package/grid/column-resize/overlay-handle.d.ts +0 -32
- package/grid/column-resize/resizable-directives/common.d.ts +0 -19
- package/grid/column-resize/resizable-directives/resizable.d.ts +0 -32
- package/grid/column-resize/resize-strategy.d.ts +0 -20
- package/grid/expansion-toggle.d.ts +0 -17
- package/grid/grid-module.d.ts +0 -31
- package/grid/grid-pipes.d.ts +0 -39
- package/grid/grid-utils.d.ts +0 -33
- package/grid/grid.d.ts +0 -268
- package/grid/interfaces.d.ts +0 -180
- package/grid/public-api.d.ts +0 -17
- package/grid/selectable-cell.d.ts +0 -16
- package/loader/loader-module.d.ts +0 -10
- package/loader/loader.d.ts +0 -30
- package/loader/public-api.d.ts +0 -2
- package/photoviewer/photoviewer-module.d.ts +0 -7
- package/photoviewer/photoviewer.d.ts +0 -17
- package/photoviewer/public-api.d.ts +0 -2
- package/popover/popover-animations.d.ts +0 -11
- package/popover/popover-content.d.ts +0 -43
- package/popover/popover-errors.d.ts +0 -14
- package/popover/popover-interfaces.d.ts +0 -50
- package/popover/popover-module.d.ts +0 -13
- package/popover/popover-target.d.ts +0 -7
- package/popover/popover-trigger.d.ts +0 -132
- package/popover/popover-types.d.ts +0 -10
- package/popover/popover.d.ts +0 -147
- package/popover/public-api.d.ts +0 -8
- package/progress/progress-module.d.ts +0 -8
- package/progress/progress.d.ts +0 -24
- package/progress/public-api.d.ts +0 -2
- package/public-api.d.ts +0 -2
- package/select/option.d.ts +0 -21
- package/select/public-api.d.ts +0 -5
- package/select/select-intl.d.ts +0 -18
- package/select/select-module.d.ts +0 -12
- package/select/select.d.ts +0 -270
- package/select/templates.d.ts +0 -67
- package/split/interfaces.d.ts +0 -52
- package/split/public-api.d.ts +0 -5
- package/split/split-module.d.ts +0 -9
- package/split/split-pane.d.ts +0 -53
- package/split/split.d.ts +0 -133
- package/split/utils.d.ts +0 -13
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip-animations.d.ts +0 -9
- package/tooltip/tooltip-module.d.ts +0 -13
- package/tooltip/tooltip.d.ts +0 -321
|
@@ -1,5 +1,1210 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterContentInit, OnDestroy, OnChanges, EventEmitter, SimpleChanges, ElementRef, AfterViewChecked, InjectionToken, AfterViewInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
5
|
+
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
6
|
+
import * as i3 from '@angular/cdk/a11y';
|
|
7
|
+
import * as i4 from '@angular/cdk/portal';
|
|
8
|
+
import { TemplatePortal, ComponentType, Portal } from '@angular/cdk/portal';
|
|
9
|
+
import * as i5 from '@angular/material/button';
|
|
10
|
+
import { MatButton } from '@angular/material/button';
|
|
11
|
+
import { DatetimeAdapter } from '@ng-matero/extensions/core';
|
|
12
|
+
import { NumberInput } from '@angular/cdk/coercion';
|
|
13
|
+
import { Subject, SubscriptionLike } from 'rxjs';
|
|
14
|
+
import { ThemePalette } from '@angular/material/core';
|
|
15
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
16
|
+
|
|
17
|
+
declare enum MtxDatetimepickerFilterType {
|
|
18
|
+
DATE = 0,
|
|
19
|
+
HOUR = 1,
|
|
20
|
+
MINUTE = 2
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Possible types for datetimepicker. */
|
|
24
|
+
type MtxDatetimepickerType = 'date' | 'time' | 'month' | 'year' | 'datetime';
|
|
25
|
+
/** Possible views for datetimepicker calendar. */
|
|
26
|
+
type MtxCalendarView = 'clock' | 'month' | 'year' | 'multi-year';
|
|
27
|
+
/** Possible types for AM / PM */
|
|
28
|
+
type MtxAMPM = 'AM' | 'PM';
|
|
29
|
+
|
|
30
|
+
declare const CLOCK_RADIUS = 50;
|
|
31
|
+
declare const CLOCK_INNER_RADIUS = 27.5;
|
|
32
|
+
declare const CLOCK_OUTER_RADIUS = 41.25;
|
|
33
|
+
declare const CLOCK_TICK_RADIUS = 7.0833;
|
|
34
|
+
/** Possible views for datetimepicker clock. */
|
|
35
|
+
type MtxClockView = 'hour' | 'minute';
|
|
36
|
+
interface ClockCell {
|
|
37
|
+
value: number;
|
|
38
|
+
displayValue: string;
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
top: number;
|
|
41
|
+
left: number;
|
|
42
|
+
fontSize?: string;
|
|
43
|
+
}
|
|
1
44
|
/**
|
|
2
|
-
*
|
|
45
|
+
* A clock that is used as part of the datetimepicker.
|
|
46
|
+
* @docs-private
|
|
3
47
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
48
|
+
declare class MtxClock<D> implements AfterContentInit, OnDestroy, OnChanges {
|
|
49
|
+
private _elementRef;
|
|
50
|
+
private _adapter;
|
|
51
|
+
private _changeDetectorRef;
|
|
52
|
+
private _document;
|
|
53
|
+
/** A function used to filter which dates are selectable. */
|
|
54
|
+
dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
|
|
55
|
+
/** Step over minutes. */
|
|
56
|
+
interval: number;
|
|
57
|
+
actionButtons: boolean;
|
|
58
|
+
/** Whether the clock uses 12 hour format. */
|
|
59
|
+
twelvehour: boolean;
|
|
60
|
+
/** Whether the time is now in AM or PM. */
|
|
61
|
+
AMPM: MtxAMPM;
|
|
62
|
+
/** Emits when the currently selected date changes. */
|
|
63
|
+
selectedChange: EventEmitter<D>;
|
|
64
|
+
/** Emits when any date is activated. */
|
|
65
|
+
activeDateChange: EventEmitter<D>;
|
|
66
|
+
/** Emits when any date is selected. */
|
|
67
|
+
readonly _userSelection: EventEmitter<void>;
|
|
68
|
+
/** Whether the clock is in hour view. */
|
|
69
|
+
_hourView: boolean;
|
|
70
|
+
_hours: ClockCell[];
|
|
71
|
+
_minutes: ClockCell[];
|
|
72
|
+
_selectedHour: number;
|
|
73
|
+
_selectedMinute: number;
|
|
74
|
+
private _timeChanged;
|
|
75
|
+
/**
|
|
76
|
+
* The date to display in this clock view.
|
|
77
|
+
*/
|
|
78
|
+
get activeDate(): D;
|
|
79
|
+
set activeDate(value: D);
|
|
80
|
+
private _activeDate;
|
|
81
|
+
/** The currently selected date. */
|
|
82
|
+
get selected(): D | null;
|
|
83
|
+
set selected(value: D | null);
|
|
84
|
+
private _selected;
|
|
85
|
+
/** The minimum selectable date. */
|
|
86
|
+
get minDate(): D | null;
|
|
87
|
+
set minDate(value: D | null);
|
|
88
|
+
private _minDate;
|
|
89
|
+
/** The maximum selectable date. */
|
|
90
|
+
get maxDate(): D | null;
|
|
91
|
+
set maxDate(value: D | null);
|
|
92
|
+
private _maxDate;
|
|
93
|
+
/** Whether the clock should be started in hour or minute view. */
|
|
94
|
+
set startView(value: MtxClockView);
|
|
95
|
+
get _hand(): {
|
|
96
|
+
height: string;
|
|
97
|
+
marginTop: string;
|
|
98
|
+
transform: string;
|
|
99
|
+
};
|
|
100
|
+
ngAfterContentInit(): void;
|
|
101
|
+
ngOnDestroy(): void;
|
|
102
|
+
ngOnChanges(): void;
|
|
103
|
+
/** Called when the user has put their pointer down on the clock. */
|
|
104
|
+
private _pointerDown;
|
|
105
|
+
/**
|
|
106
|
+
* Called when the user has moved their pointer after
|
|
107
|
+
* starting to drag. Bound on the document level.
|
|
108
|
+
*/
|
|
109
|
+
private _pointerMove;
|
|
110
|
+
/** Called when the user has lifted their pointer. Bound on the document level. */
|
|
111
|
+
private _pointerUp;
|
|
112
|
+
/** Binds our global move and end events. */
|
|
113
|
+
private _bindGlobalEvents;
|
|
114
|
+
/** Removes any global event listeners that we may have added. */
|
|
115
|
+
private _removeGlobalEvents;
|
|
116
|
+
/** Initializes this clock view. */
|
|
117
|
+
private _init;
|
|
118
|
+
/**
|
|
119
|
+
* Set Time
|
|
120
|
+
* @param event
|
|
121
|
+
*/
|
|
122
|
+
private setTime;
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxClock<any>, never>;
|
|
124
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxClock<any>, "mtx-clock", ["mtxClock"], { "dateFilter": { "alias": "dateFilter"; "required": false; }; "interval": { "alias": "interval"; "required": false; }; "actionButtons": { "alias": "actionButtons"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "AMPM": { "alias": "AMPM"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; }, { "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; "_userSelection": "_userSelection"; }, never, never, true, never>;
|
|
125
|
+
static ngAcceptInputType_twelvehour: unknown;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* An internal class that represents the data corresponding to a single calendar cell.
|
|
130
|
+
* @docs-private
|
|
131
|
+
*/
|
|
132
|
+
declare class MtxCalendarCell {
|
|
133
|
+
value: number;
|
|
134
|
+
displayValue: string;
|
|
135
|
+
ariaLabel: string;
|
|
136
|
+
enabled: boolean;
|
|
137
|
+
isWeekNumber?: boolean | undefined;
|
|
138
|
+
readonly id: number;
|
|
139
|
+
constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, isWeekNumber?: boolean | undefined);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* An internal component used to display calendar data in a table.
|
|
143
|
+
* @docs-private
|
|
144
|
+
*/
|
|
145
|
+
declare class MtxCalendarBody implements OnChanges {
|
|
146
|
+
private _elementRef;
|
|
147
|
+
private _ngZone;
|
|
148
|
+
private _injector;
|
|
149
|
+
/** The label for the table. (e.g. "Jan 2017"). */
|
|
150
|
+
label: string;
|
|
151
|
+
/** The cells to display in the table. */
|
|
152
|
+
rows: MtxCalendarCell[][];
|
|
153
|
+
/**
|
|
154
|
+
* The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be
|
|
155
|
+
* maintained even as the table resizes.
|
|
156
|
+
*/
|
|
157
|
+
cellAspectRatio: number;
|
|
158
|
+
/** The value in the table that corresponds to today. */
|
|
159
|
+
todayValue: number;
|
|
160
|
+
/** The value in the table that is currently selected. */
|
|
161
|
+
selectedValue: number;
|
|
162
|
+
/** The minimum number of free cells needed to fit the label in the first row. */
|
|
163
|
+
labelMinRequiredCells: number;
|
|
164
|
+
/** The number of columns in the table. */
|
|
165
|
+
numCols: number;
|
|
166
|
+
/** Whether to allow selection of disabled cells. */
|
|
167
|
+
allowDisabledSelection: boolean;
|
|
168
|
+
/** The cell number of the active cell in the table. */
|
|
169
|
+
activeCell: number;
|
|
170
|
+
/** Emits when a new value is selected. */
|
|
171
|
+
selectedValueChange: EventEmitter<number>;
|
|
172
|
+
/** The number of blank cells to put at the beginning for the first row. */
|
|
173
|
+
_firstRowOffset: number;
|
|
174
|
+
/** Padding for the individual date cells. */
|
|
175
|
+
_cellPadding: string;
|
|
176
|
+
/** Width of an individual cell. */
|
|
177
|
+
_cellWidth: string;
|
|
178
|
+
_cellClicked(cell: MtxCalendarCell): void;
|
|
179
|
+
_emitActiveDateChange(cell: MtxCalendarCell, event: FocusEvent): void;
|
|
180
|
+
_isActiveCell(rowIndex: number, colIndex: number): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Tracking function for rows based on their identity. Ideally we would use some sort of
|
|
183
|
+
* key on the row, but that would require a breaking change for the `rows` input. We don't
|
|
184
|
+
* use the built-in identity tracking, because it logs warnings.
|
|
185
|
+
*/
|
|
186
|
+
_trackRow: (row: MtxCalendarCell[]) => MtxCalendarCell[];
|
|
187
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
188
|
+
_focusActiveCell(movePreview?: boolean): void;
|
|
189
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendarBody, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendarBody, "[mtx-calendar-body]", ["mtxCalendarBody"], { "label": { "alias": "label"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cellAspectRatio": { "alias": "cellAspectRatio"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "allowDisabledSelection": { "alias": "allowDisabledSelection"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* An internal component used to display a single month in the datetimepicker.
|
|
195
|
+
* @docs-private
|
|
196
|
+
*/
|
|
197
|
+
declare class MtxMonthView<D> implements AfterContentInit {
|
|
198
|
+
_adapter: DatetimeAdapter<D>;
|
|
199
|
+
private _dir;
|
|
200
|
+
private _dateFormats;
|
|
201
|
+
private _intl;
|
|
202
|
+
type: MtxDatetimepickerType;
|
|
203
|
+
/** A function used to filter which dates are selectable. */
|
|
204
|
+
dateFilter: (date: D) => boolean;
|
|
205
|
+
/** Whether to show week numbers */
|
|
206
|
+
showWeekNumbers: boolean;
|
|
207
|
+
/** Emits when a new date is selected. */
|
|
208
|
+
selectedChange: EventEmitter<D>;
|
|
209
|
+
/** Emits when any date is selected. */
|
|
210
|
+
readonly _userSelection: EventEmitter<void>;
|
|
211
|
+
/** Emits when any date is activated. */
|
|
212
|
+
readonly activeDateChange: EventEmitter<D>;
|
|
213
|
+
/** The body of calendar table */
|
|
214
|
+
_mtxCalendarBody: MtxCalendarBody;
|
|
215
|
+
/** Grid of calendar cells representing the dates of the month. */
|
|
216
|
+
_weeks: MtxCalendarCell[][];
|
|
217
|
+
/** The number of blank cells in the first row before the 1st of the month. */
|
|
218
|
+
_firstWeekOffset: number;
|
|
219
|
+
/**
|
|
220
|
+
* The date of the month that the currently selected Date falls on.
|
|
221
|
+
* Null if the currently selected Date is in another month.
|
|
222
|
+
*/
|
|
223
|
+
_selectedDate: number | null;
|
|
224
|
+
/** The date of the month that today falls on. Null if today is in another month. */
|
|
225
|
+
_todayDate: number | null;
|
|
226
|
+
/** The names of the weekdays. */
|
|
227
|
+
_weekdays: {
|
|
228
|
+
long: string;
|
|
229
|
+
narrow: string;
|
|
230
|
+
id: number;
|
|
231
|
+
}[];
|
|
232
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
233
|
+
constructor(...args: unknown[]);
|
|
234
|
+
private _activeDate;
|
|
235
|
+
/**
|
|
236
|
+
* The date to display in this month view (everything other than the month and year is ignored).
|
|
237
|
+
*/
|
|
238
|
+
get activeDate(): D;
|
|
239
|
+
set activeDate(value: D);
|
|
240
|
+
/** The currently selected date. */
|
|
241
|
+
get selected(): D | null;
|
|
242
|
+
set selected(value: D | null);
|
|
243
|
+
private _selected;
|
|
244
|
+
ngAfterContentInit(): void;
|
|
245
|
+
/** Handles when a new date is selected. */
|
|
246
|
+
_dateSelected(date: number): void;
|
|
247
|
+
/** Initializes this month view. */
|
|
248
|
+
private _init;
|
|
249
|
+
/** Initializes the weekdays. */
|
|
250
|
+
private _initWeekdays;
|
|
251
|
+
/** Creates MdCalendarCells for the dates in this month. */
|
|
252
|
+
private _createWeekCells;
|
|
253
|
+
/**
|
|
254
|
+
* Gets the date in this month that the given Date falls on.
|
|
255
|
+
* Returns null if the given Date is in another month.
|
|
256
|
+
*/
|
|
257
|
+
private _getDateInCurrentMonth;
|
|
258
|
+
/** Handles keydown events on the calendar body when calendar is in month view. */
|
|
259
|
+
_handleCalendarBodyKeydown(event: KeyboardEvent): void;
|
|
260
|
+
/** Focuses the active cell after the microtask queue is empty. */
|
|
261
|
+
_focusActiveCell(movePreview?: boolean): void;
|
|
262
|
+
/** Determines whether the user has the RTL layout direction. */
|
|
263
|
+
private _isRtl;
|
|
264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxMonthView<any>, never>;
|
|
265
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxMonthView<any>, "mtx-month-view", ["mtxMonthView"], { "type": { "alias": "type"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectedChange": "selectedChange"; "_userSelection": "_userSelection"; "activeDateChange": "activeDateChange"; }, never, never, true, never>;
|
|
266
|
+
static ngAcceptInputType_showWeekNumbers: unknown;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare const yearsPerPage = 24;
|
|
270
|
+
declare const yearsPerRow = 4;
|
|
271
|
+
/**
|
|
272
|
+
* An internal component used to display multiple years in the datetimepicker.
|
|
273
|
+
* @docs-private
|
|
274
|
+
*/
|
|
275
|
+
declare class MtxMultiYearView<D> implements AfterContentInit {
|
|
276
|
+
_adapter: DatetimeAdapter<D>;
|
|
277
|
+
private _dir;
|
|
278
|
+
private _dateFormats;
|
|
279
|
+
type: MtxDatetimepickerType;
|
|
280
|
+
/** A function used to filter which dates are selectable. */
|
|
281
|
+
dateFilter: (date: D) => boolean;
|
|
282
|
+
/** Emits when a new month is selected. */
|
|
283
|
+
selectedChange: EventEmitter<D>;
|
|
284
|
+
/** Emits when any date is selected. */
|
|
285
|
+
readonly _userSelection: EventEmitter<void>;
|
|
286
|
+
/** Emits when any date is activated. */
|
|
287
|
+
readonly activeDateChange: EventEmitter<D>;
|
|
288
|
+
/** The body of calendar table */
|
|
289
|
+
_mtxCalendarBody: MtxCalendarBody;
|
|
290
|
+
/** Grid of calendar cells representing the years in the range. */
|
|
291
|
+
_years: MtxCalendarCell[][];
|
|
292
|
+
/** The label for this year range (e.g. "2000-2020"). */
|
|
293
|
+
_yearLabel: string;
|
|
294
|
+
/** The year in this range that today falls on. Null if today is in a different range. */
|
|
295
|
+
_todayYear: number;
|
|
296
|
+
/**
|
|
297
|
+
* The year in this range that the selected Date falls on.
|
|
298
|
+
* Null if the selected Date is in a different range.
|
|
299
|
+
*/
|
|
300
|
+
_selectedYear: number | null;
|
|
301
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
302
|
+
constructor(...args: unknown[]);
|
|
303
|
+
/** The date to display in this multi year view */
|
|
304
|
+
get activeDate(): D;
|
|
305
|
+
set activeDate(value: D);
|
|
306
|
+
private _activeDate;
|
|
307
|
+
/** The currently selected date. */
|
|
308
|
+
get selected(): D | null;
|
|
309
|
+
set selected(value: D | null);
|
|
310
|
+
private _selected;
|
|
311
|
+
/** The minimum selectable date. */
|
|
312
|
+
get minDate(): D | null;
|
|
313
|
+
set minDate(value: D | null);
|
|
314
|
+
private _minDate;
|
|
315
|
+
/** The maximum selectable date. */
|
|
316
|
+
get maxDate(): D | null;
|
|
317
|
+
set maxDate(value: D | null);
|
|
318
|
+
private _maxDate;
|
|
319
|
+
ngAfterContentInit(): void;
|
|
320
|
+
/** Handles when a new year is selected. */
|
|
321
|
+
_yearSelected(year: number): void;
|
|
322
|
+
_getActiveCell(): number;
|
|
323
|
+
/** Initializes this year view. */
|
|
324
|
+
private _init;
|
|
325
|
+
/** Creates an MtxCalendarCell for the given year. */
|
|
326
|
+
private _createCellForYear;
|
|
327
|
+
/** Whether the given year is enabled. */
|
|
328
|
+
private _shouldEnableYear;
|
|
329
|
+
/**
|
|
330
|
+
* @param obj The object to check.
|
|
331
|
+
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
332
|
+
*/
|
|
333
|
+
_getValidDateOrNull(obj: any): D | null;
|
|
334
|
+
/** Handles keydown events on the calendar body when calendar is in multi-year view. */
|
|
335
|
+
_handleCalendarBodyKeydown(event: KeyboardEvent): void;
|
|
336
|
+
/** Focuses the active cell after the microtask queue is empty. */
|
|
337
|
+
_focusActiveCell(): void;
|
|
338
|
+
/** Determines whether the user has the RTL layout direction. */
|
|
339
|
+
private _isRtl;
|
|
340
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxMultiYearView<any>, never>;
|
|
341
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxMultiYearView<any>, "mtx-multi-year-view", ["mtxMultiYearView"], { "type": { "alias": "type"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "selectedChange": "selectedChange"; "_userSelection": "_userSelection"; "activeDateChange": "activeDateChange"; }, never, never, true, never>;
|
|
342
|
+
}
|
|
343
|
+
declare function isSameMultiYearView<D>(dateAdapter: DatetimeAdapter<D>, date1: D, date2: D, minDate: D | null, maxDate: D | null): boolean;
|
|
344
|
+
/**
|
|
345
|
+
* When the multi-year view is first opened, the active year will be in view.
|
|
346
|
+
* So we compute how many years are between the active year and the *slot* where our
|
|
347
|
+
* "startingYear" will render when paged into view.
|
|
348
|
+
*/
|
|
349
|
+
declare function getActiveOffset<D>(dateAdapter: DatetimeAdapter<D>, activeDate: D, minDate: D | null, maxDate: D | null): number;
|
|
350
|
+
|
|
351
|
+
declare class MtxDatetimepickerIntl {
|
|
352
|
+
/**
|
|
353
|
+
* Stream to emit from when labels are changed. Use this to notify components when the labels have
|
|
354
|
+
* changed after initialization.
|
|
355
|
+
*/
|
|
356
|
+
readonly changes: Subject<void>;
|
|
357
|
+
/** A label for the calendar popup (used by screen readers). */
|
|
358
|
+
calendarLabel: string;
|
|
359
|
+
/** A label for the button used to open the calendar popup (used by screen readers). */
|
|
360
|
+
openCalendarLabel: string;
|
|
361
|
+
/** Label for the button used to close the calendar popup. */
|
|
362
|
+
closeCalendarLabel: string;
|
|
363
|
+
/** A label for the previous month button (used by screen readers). */
|
|
364
|
+
prevMonthLabel: string;
|
|
365
|
+
/** A label for the next month button (used by screen readers). */
|
|
366
|
+
nextMonthLabel: string;
|
|
367
|
+
/** A label for the previous year button (used by screen readers). */
|
|
368
|
+
prevYearLabel: string;
|
|
369
|
+
/** A label for the next year button (used by screen readers). */
|
|
370
|
+
nextYearLabel: string;
|
|
371
|
+
/** A label for the previous multi-year button (used by screen readers). */
|
|
372
|
+
prevMultiYearLabel: string;
|
|
373
|
+
/** A label for the next multi-year button (used by screen readers). */
|
|
374
|
+
nextMultiYearLabel: string;
|
|
375
|
+
/** A label for the 'switch to month view' button (used by screen readers). */
|
|
376
|
+
switchToMonthViewLabel: string;
|
|
377
|
+
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
378
|
+
switchToYearViewLabel: string;
|
|
379
|
+
/** A label for the 'switch to multi-year view' button (used by screen readers). */
|
|
380
|
+
switchToMultiYearViewLabel: string;
|
|
381
|
+
/** A label for the first date of a range of dates (used by screen readers). */
|
|
382
|
+
startDateLabel: string;
|
|
383
|
+
/** A label for the last date of a range of dates (used by screen readers). */
|
|
384
|
+
endDateLabel: string;
|
|
385
|
+
/** A label for the week numbers (used by screen readers). */
|
|
386
|
+
weekNumberLabel(number: number): string;
|
|
387
|
+
/** Formats a range of years (used for visuals). */
|
|
388
|
+
formatYearRange(start: string, end: string): string;
|
|
389
|
+
/** Formats a label for a range of years (used by screen readers). */
|
|
390
|
+
formatYearRangeLabel(start: string, end: string): string;
|
|
391
|
+
/** A label for the 'switch to clock hour view' button (used by screen readers). */
|
|
392
|
+
switchToClockHourViewLabel: string;
|
|
393
|
+
/** A label for the 'switch to clock minute view' button (used by screen readers). */
|
|
394
|
+
switchToClockMinuteViewLabel: string;
|
|
395
|
+
/** Label used for ok button within the manual time input. */
|
|
396
|
+
okLabel: string;
|
|
397
|
+
/** Label used for cancel button within the manual time input. */
|
|
398
|
+
cancelLabel: string;
|
|
399
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerIntl, never>;
|
|
400
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MtxDatetimepickerIntl>;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
declare class MtxTimeInput implements OnDestroy {
|
|
404
|
+
private element;
|
|
405
|
+
private cdr;
|
|
406
|
+
set timeInterval(value: NumberInput);
|
|
407
|
+
private _interval;
|
|
408
|
+
set timeMin(value: NumberInput);
|
|
409
|
+
private _min;
|
|
410
|
+
set timeMax(value: NumberInput);
|
|
411
|
+
private _max;
|
|
412
|
+
set timeValue(value: NumberInput);
|
|
413
|
+
timeValueChanged: EventEmitter<NumberInput>;
|
|
414
|
+
private _value;
|
|
415
|
+
private keyDownListener;
|
|
416
|
+
private keyPressListener;
|
|
417
|
+
private inputEventListener;
|
|
418
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
419
|
+
constructor(...args: unknown[]);
|
|
420
|
+
get hasFocus(): any;
|
|
421
|
+
get inputElement(): HTMLInputElement;
|
|
422
|
+
get valid(): boolean;
|
|
423
|
+
get invalid(): boolean;
|
|
424
|
+
blur(): void;
|
|
425
|
+
focus(): void;
|
|
426
|
+
/**
|
|
427
|
+
* Write value to inputElement
|
|
428
|
+
* @param value NumberInput
|
|
429
|
+
*/
|
|
430
|
+
writeValue(value: NumberInput): void;
|
|
431
|
+
/**
|
|
432
|
+
* Writes value to placeholder
|
|
433
|
+
* @param value NumberInput
|
|
434
|
+
*/
|
|
435
|
+
writePlaceholder(value: NumberInput): void;
|
|
436
|
+
keyDownHandler(event: KeyboardEvent): void;
|
|
437
|
+
/**
|
|
438
|
+
* Prevent non number inputs in the inputElement with the exception of Enter/BackSpace
|
|
439
|
+
* @param event KeyboardEvent
|
|
440
|
+
*/
|
|
441
|
+
keyPressHandler(event: KeyboardEvent): void;
|
|
442
|
+
inputChangedHandler(): void;
|
|
443
|
+
clampInputValue(): void;
|
|
444
|
+
/**
|
|
445
|
+
* Remove event listeners on destruction
|
|
446
|
+
*/
|
|
447
|
+
ngOnDestroy(): void;
|
|
448
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxTimeInput, never>;
|
|
449
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxTimeInput, "input.mtx-time-input", ["mtxTimeInput"], { "timeInterval": { "alias": "timeInterval"; "required": false; }; "timeMin": { "alias": "timeMin"; "required": false; }; "timeMax": { "alias": "timeMax"; "required": false; }; "timeValue": { "alias": "timeValue"; "required": false; }; }, { "timeValueChanged": "timeValueChanged"; }, never, never, true, never>;
|
|
450
|
+
}
|
|
451
|
+
declare class MtxTimeView<D> implements OnChanges, OnDestroy {
|
|
452
|
+
private _adapter;
|
|
453
|
+
private _changeDetectorRef;
|
|
454
|
+
private _elementRef;
|
|
455
|
+
protected _datetimepickerIntl: MtxDatetimepickerIntl;
|
|
456
|
+
/** Emits when the currently selected date changes. */
|
|
457
|
+
readonly selectedChange: EventEmitter<D>;
|
|
458
|
+
/** Emits when any date changes. */
|
|
459
|
+
readonly activeDateChange: EventEmitter<D>;
|
|
460
|
+
/** Emits when any date is selected. */
|
|
461
|
+
readonly _userSelection: EventEmitter<void>;
|
|
462
|
+
/** Emits when AM/PM button are clicked. */
|
|
463
|
+
readonly ampmChange: EventEmitter<MtxAMPM>;
|
|
464
|
+
/** Emits when AM/PM button are clicked. */
|
|
465
|
+
readonly clockViewChange: EventEmitter<MtxClockView>;
|
|
466
|
+
/** A function used to filter which dates are selectable. */
|
|
467
|
+
dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
|
|
468
|
+
/** Input for action buttons. */
|
|
469
|
+
timeInput: boolean;
|
|
470
|
+
/** Step over minutes. */
|
|
471
|
+
interval: number;
|
|
472
|
+
/** Input for action buttons. */
|
|
473
|
+
actionsPortal: TemplatePortal | null;
|
|
474
|
+
/** Prevent user to select same date time */
|
|
475
|
+
preventSameDateTimeSelection: boolean;
|
|
476
|
+
/** Whether the time input should be auto-focused after view init. */
|
|
477
|
+
autoFocus: boolean;
|
|
478
|
+
protected hourInputElement: ElementRef<HTMLInputElement> | undefined;
|
|
479
|
+
set hourInputDirective(input: MtxTimeInput);
|
|
480
|
+
protected _hourInputDirective: MtxTimeInput | undefined;
|
|
481
|
+
protected minuteInputElement: ElementRef<HTMLInputElement> | undefined;
|
|
482
|
+
set minuteInputDirective(input: MtxTimeInput);
|
|
483
|
+
protected _minuteInputDirective: MtxTimeInput | undefined;
|
|
484
|
+
datetimepickerIntlChangesSubscription: SubscriptionLike;
|
|
485
|
+
/** Whether the clock uses 12 hour format. */
|
|
486
|
+
twelvehour: boolean;
|
|
487
|
+
/** Whether the time is now in AM or PM. */
|
|
488
|
+
AMPM: MtxAMPM;
|
|
489
|
+
/** The date to display in this clock view. */
|
|
490
|
+
get activeDate(): D;
|
|
491
|
+
set activeDate(value: D);
|
|
492
|
+
private _activeDate;
|
|
493
|
+
/** The currently selected date. */
|
|
494
|
+
get selected(): D | null;
|
|
495
|
+
set selected(value: D | null);
|
|
496
|
+
private _selected;
|
|
497
|
+
/** The minimum selectable date. */
|
|
498
|
+
get minDate(): D | null;
|
|
499
|
+
set minDate(value: D | null);
|
|
500
|
+
private _minDate;
|
|
501
|
+
/** The maximum selectable date. */
|
|
502
|
+
get maxDate(): D | null;
|
|
503
|
+
set maxDate(value: D | null);
|
|
504
|
+
private _maxDate;
|
|
505
|
+
/** Whether the clock should be started in hour or minute view. */
|
|
506
|
+
get clockView(): MtxClockView;
|
|
507
|
+
set clockView(value: MtxClockView);
|
|
508
|
+
/** Whether the clock is in hour view. */
|
|
509
|
+
private _clockView;
|
|
510
|
+
get isHourView(): boolean;
|
|
511
|
+
get isMinuteView(): boolean;
|
|
512
|
+
get hour(): string;
|
|
513
|
+
get minute(): string;
|
|
514
|
+
prefixWithZero(value: number): string;
|
|
515
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
516
|
+
constructor(...args: unknown[]);
|
|
517
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
518
|
+
ngOnDestroy(): void;
|
|
519
|
+
/** Handles keydown events on the calendar body when calendar is in clock view. */
|
|
520
|
+
_handleCalendarBodyKeydown(event: KeyboardEvent): void;
|
|
521
|
+
_focusInputElement(): void;
|
|
522
|
+
_handleHourInputChange(value: NumberInput): void;
|
|
523
|
+
_updateHourForAmPm(value: number): number;
|
|
524
|
+
_handleMinuteInputChange(value: NumberInput): void;
|
|
525
|
+
_handleFocus(clockView: MtxClockView): void;
|
|
526
|
+
_dialTimeSelected(date: D): void;
|
|
527
|
+
_timeSelected(date: D): void;
|
|
528
|
+
_onActiveDateChange(date: D): void;
|
|
529
|
+
_handleSelection(): void;
|
|
530
|
+
_handleOk(): void;
|
|
531
|
+
_handleCancel(): void;
|
|
532
|
+
/** Focuses the active cell after the microtask queue is empty. */
|
|
533
|
+
_focusActiveCell(): void;
|
|
534
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxTimeView<any>, never>;
|
|
535
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxTimeView<any>, "mtx-time-view", ["mtxTime"], { "dateFilter": { "alias": "dateFilter"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "interval": { "alias": "interval"; "required": false; }; "actionsPortal": { "alias": "actionsPortal"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "AMPM": { "alias": "AMPM"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "clockView": { "alias": "clockView"; "required": false; }; }, { "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; "_userSelection": "_userSelection"; "ampmChange": "ampmChange"; "clockViewChange": "clockViewChange"; }, never, never, true, never>;
|
|
536
|
+
static ngAcceptInputType_timeInput: unknown;
|
|
537
|
+
static ngAcceptInputType_preventSameDateTimeSelection: unknown;
|
|
538
|
+
static ngAcceptInputType_autoFocus: unknown;
|
|
539
|
+
static ngAcceptInputType_twelvehour: unknown;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* An internal component used to display a single year in the datetimepicker.
|
|
544
|
+
* @docs-private
|
|
545
|
+
*/
|
|
546
|
+
declare class MtxYearView<D> implements AfterContentInit {
|
|
547
|
+
_adapter: DatetimeAdapter<D>;
|
|
548
|
+
private _dir;
|
|
549
|
+
private _dateFormats;
|
|
550
|
+
type: MtxDatetimepickerType;
|
|
551
|
+
/** A function used to filter which dates are selectable. */
|
|
552
|
+
dateFilter: (date: D) => boolean;
|
|
553
|
+
/** Emits when a new month is selected. */
|
|
554
|
+
selectedChange: EventEmitter<D>;
|
|
555
|
+
/** Emits when any date is selected. */
|
|
556
|
+
readonly _userSelection: EventEmitter<void>;
|
|
557
|
+
/** Emits when any date is activated. */
|
|
558
|
+
readonly activeDateChange: EventEmitter<D>;
|
|
559
|
+
/** The body of calendar table */
|
|
560
|
+
_mtxCalendarBody: MtxCalendarBody;
|
|
561
|
+
/** Grid of calendar cells representing the months of the year. */
|
|
562
|
+
_months: MtxCalendarCell[][];
|
|
563
|
+
/** The label for this year (e.g. "2017"). */
|
|
564
|
+
_yearLabel: string;
|
|
565
|
+
/** The month in this year that today falls on. Null if today is in a different year. */
|
|
566
|
+
_todayMonth: number | null;
|
|
567
|
+
/**
|
|
568
|
+
* The month in this year that the selected Date falls on.
|
|
569
|
+
* Null if the selected Date is in a different year.
|
|
570
|
+
*/
|
|
571
|
+
_selectedMonth: number | null;
|
|
572
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
573
|
+
constructor(...args: unknown[]);
|
|
574
|
+
/** The date to display in this year view (everything other than the year is ignored). */
|
|
575
|
+
get activeDate(): D;
|
|
576
|
+
set activeDate(value: D);
|
|
577
|
+
private _activeDate;
|
|
578
|
+
/** The currently selected date. */
|
|
579
|
+
get selected(): D | null;
|
|
580
|
+
set selected(value: D | null);
|
|
581
|
+
private _selected;
|
|
582
|
+
ngAfterContentInit(): void;
|
|
583
|
+
/** Handles when a new month is selected. */
|
|
584
|
+
_monthSelected(month: number): void;
|
|
585
|
+
/** Initializes this month view. */
|
|
586
|
+
private _init;
|
|
587
|
+
/**
|
|
588
|
+
* Gets the month in this year that the given Date falls on.
|
|
589
|
+
* Returns null if the given Date is in another year.
|
|
590
|
+
*/
|
|
591
|
+
private _getMonthInCurrentYear;
|
|
592
|
+
/** Creates an MdCalendarCell for the given month. */
|
|
593
|
+
private _createCellForMonth;
|
|
594
|
+
/** Whether the given month is enabled. */
|
|
595
|
+
private _isMonthEnabled;
|
|
596
|
+
/** Handles keydown events on the calendar body when calendar is in year view. */
|
|
597
|
+
_handleCalendarBodyKeydown(event: KeyboardEvent): void;
|
|
598
|
+
/** Focuses the active cell after the microtask queue is empty. */
|
|
599
|
+
_focusActiveCell(): void;
|
|
600
|
+
/** Determines whether the user has the RTL layout direction. */
|
|
601
|
+
private _isRtl;
|
|
602
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxYearView<any>, never>;
|
|
603
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxYearView<any>, "mtx-year-view", ["mtxYearView"], { "type": { "alias": "type"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectedChange": "selectedChange"; "_userSelection": "_userSelection"; "activeDateChange": "activeDateChange"; }, never, never, true, never>;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* A calendar that is used as part of the datetimepicker.
|
|
608
|
+
* @docs-private
|
|
609
|
+
*/
|
|
610
|
+
declare class MtxCalendar<D> implements AfterViewChecked, AfterContentInit, OnDestroy {
|
|
611
|
+
private _intl;
|
|
612
|
+
private _changeDetectorRef;
|
|
613
|
+
private _ngZone;
|
|
614
|
+
private _adapter;
|
|
615
|
+
private _dateFormats;
|
|
616
|
+
/** Whether to show multi-year view. */
|
|
617
|
+
multiYearSelector: boolean;
|
|
618
|
+
/** Whether the clock uses 12 hour format. */
|
|
619
|
+
twelvehour: boolean;
|
|
620
|
+
/** Whether to show week numbers in month view */
|
|
621
|
+
showWeekNumbers: boolean;
|
|
622
|
+
/** Whether the calendar should be started in month or year view. */
|
|
623
|
+
startView: MtxCalendarView;
|
|
624
|
+
/** Step over minutes. */
|
|
625
|
+
timeInterval: number;
|
|
626
|
+
/** A function used to filter which dates are selectable. */
|
|
627
|
+
dateFilter: (date: D, type: MtxDatetimepickerFilterType) => boolean;
|
|
628
|
+
/** Prevent user to select same date time */
|
|
629
|
+
preventSameDateTimeSelection: boolean;
|
|
630
|
+
/** Input for custom header component */
|
|
631
|
+
headerComponent?: ComponentType<any>;
|
|
632
|
+
/** Input for action buttons. */
|
|
633
|
+
actionsPortal: TemplatePortal | null;
|
|
634
|
+
/** Emits when the currently selected date changes. */
|
|
635
|
+
selectedChange: EventEmitter<D>;
|
|
636
|
+
/** Emits when the view has been changed. */
|
|
637
|
+
viewChanged: EventEmitter<MtxCalendarView>;
|
|
638
|
+
_userSelection: EventEmitter<void>;
|
|
639
|
+
/** Reference to the current month view component. */
|
|
640
|
+
monthView: MtxMonthView<D>;
|
|
641
|
+
/** Reference to the current year view component. */
|
|
642
|
+
yearView: MtxYearView<D>;
|
|
643
|
+
/** Reference to the current multi-year view component. */
|
|
644
|
+
multiYearView: MtxMultiYearView<D>;
|
|
645
|
+
/** Reference to the current time view component. */
|
|
646
|
+
timeView: MtxTimeView<D>;
|
|
647
|
+
_AMPM: MtxAMPM;
|
|
648
|
+
_clockView: MtxClockView;
|
|
649
|
+
/** A portal containing the header component. */
|
|
650
|
+
_calendarHeaderPortal: Portal<any>;
|
|
651
|
+
private _intlChanges;
|
|
652
|
+
private _clampedActiveDate;
|
|
653
|
+
/**
|
|
654
|
+
* Used for scheduling that focus should be moved to the active cell on the next tick.
|
|
655
|
+
* We need to schedule it, rather than do it immediately, because we have to wait
|
|
656
|
+
* for Angular to re-evaluate the view children.
|
|
657
|
+
*/
|
|
658
|
+
private _moveFocusOnNextTick;
|
|
659
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
660
|
+
constructor(...args: unknown[]);
|
|
661
|
+
/** The display type of datetimepicker. */
|
|
662
|
+
get type(): MtxDatetimepickerType;
|
|
663
|
+
set type(value: MtxDatetimepickerType);
|
|
664
|
+
private _type;
|
|
665
|
+
/** A date representing the period (month or year) to start the calendar in. */
|
|
666
|
+
get startAt(): D | null;
|
|
667
|
+
set startAt(value: D | null);
|
|
668
|
+
private _startAt;
|
|
669
|
+
/**
|
|
670
|
+
* Whether the calendar is in time mode. In time mode the calendar clock gets time input
|
|
671
|
+
* elements rather then just clock. When `touchUi` is enabled this will be disabled.
|
|
672
|
+
*/
|
|
673
|
+
timeInput: boolean;
|
|
674
|
+
/** Whether the time input should be auto-focused after view init. */
|
|
675
|
+
timeInputAutoFocus: boolean;
|
|
676
|
+
/** The currently selected date. */
|
|
677
|
+
get selected(): D | null;
|
|
678
|
+
set selected(value: D | null);
|
|
679
|
+
private _selected;
|
|
680
|
+
/** The minimum selectable date. */
|
|
681
|
+
get minDate(): D | null;
|
|
682
|
+
set minDate(value: D | null);
|
|
683
|
+
private _minDate;
|
|
684
|
+
/** The maximum selectable date. */
|
|
685
|
+
get maxDate(): D | null;
|
|
686
|
+
set maxDate(value: D | null);
|
|
687
|
+
private _maxDate;
|
|
688
|
+
/**
|
|
689
|
+
* The current active date. This determines which time period is shown and which date is
|
|
690
|
+
* highlighted when using keyboard navigation.
|
|
691
|
+
*/
|
|
692
|
+
get _activeDate(): D;
|
|
693
|
+
set _activeDate(value: D);
|
|
694
|
+
/** Whether the calendar is in month view. */
|
|
695
|
+
get currentView(): MtxCalendarView;
|
|
696
|
+
set currentView(value: MtxCalendarView);
|
|
697
|
+
private _currentView;
|
|
698
|
+
get _yearPeriodText(): string;
|
|
699
|
+
get _yearButtonText(): string;
|
|
700
|
+
get _yearButtonLabel(): string;
|
|
701
|
+
get _dateButtonText(): string;
|
|
702
|
+
get _dateButtonLabel(): string;
|
|
703
|
+
get _hoursButtonText(): string;
|
|
704
|
+
get _hourButtonLabel(): string;
|
|
705
|
+
get _minutesButtonText(): string;
|
|
706
|
+
get _minuteButtonLabel(): string;
|
|
707
|
+
get _prevButtonLabel(): string;
|
|
708
|
+
get _nextButtonLabel(): string;
|
|
709
|
+
/** Date filter for the month and year views. */
|
|
710
|
+
_dateFilterForViews: (date: D) => boolean;
|
|
711
|
+
_userSelected(): void;
|
|
712
|
+
ngAfterContentInit(): void;
|
|
713
|
+
ngAfterViewChecked(): void;
|
|
714
|
+
ngOnDestroy(): void;
|
|
715
|
+
/** Handles date selection in the month view. */
|
|
716
|
+
_dateSelected(date: D): void;
|
|
717
|
+
/** Handles month selection in the year view. */
|
|
718
|
+
_monthSelected(month: D): void;
|
|
719
|
+
/** Handles year selection in the multi year view. */
|
|
720
|
+
_yearSelected(year: D): void;
|
|
721
|
+
_timeSelected(date: D): void;
|
|
722
|
+
_onActiveDateChange(date: D): void;
|
|
723
|
+
_selectAMPM(date: D): void;
|
|
724
|
+
_ampmClicked(source: MtxAMPM): void;
|
|
725
|
+
_yearClicked(): void;
|
|
726
|
+
_dateClicked(): void;
|
|
727
|
+
_hoursClicked(): void;
|
|
728
|
+
_minutesClicked(): void;
|
|
729
|
+
/** Handles user clicks on the previous button. */
|
|
730
|
+
_previousClicked(): void;
|
|
731
|
+
/** Handles user clicks on the next button. */
|
|
732
|
+
_nextClicked(): void;
|
|
733
|
+
/** Whether the previous period button is enabled. */
|
|
734
|
+
_previousEnabled(): boolean;
|
|
735
|
+
/** Whether the next period button is enabled. */
|
|
736
|
+
_nextEnabled(): boolean;
|
|
737
|
+
/** Whether the two dates represent the same view in the current view mode (month or year). */
|
|
738
|
+
private _isSameView;
|
|
739
|
+
private _2digit;
|
|
740
|
+
/** Returns the component instance that corresponds to the current calendar view. */
|
|
741
|
+
private _getCurrentViewComponent;
|
|
742
|
+
/** Focuses the active date. */
|
|
743
|
+
focusActiveCell(): void;
|
|
744
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendar<any>, never>;
|
|
745
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendar<any>, "mtx-calendar", ["mtxCalendar"], { "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "headerComponent": { "alias": "headerComponent"; "required": false; }; "actionsPortal": { "alias": "actionsPortal"; "required": false; }; "type": { "alias": "type"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "timeInputAutoFocus": { "alias": "timeInputAutoFocus"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "selectedChange": "selectedChange"; "viewChanged": "viewChanged"; "_userSelection": "_userSelection"; }, never, never, true, never>;
|
|
746
|
+
static ngAcceptInputType_multiYearSelector: unknown;
|
|
747
|
+
static ngAcceptInputType_twelvehour: unknown;
|
|
748
|
+
static ngAcceptInputType_showWeekNumbers: unknown;
|
|
749
|
+
static ngAcceptInputType_preventSameDateTimeSelection: unknown;
|
|
750
|
+
static ngAcceptInputType_timeInput: unknown;
|
|
751
|
+
static ngAcceptInputType_timeInputAutoFocus: unknown;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
declare const MAT_DATETIMEPICKER_VALUE_ACCESSOR: any;
|
|
755
|
+
declare const MAT_DATETIMEPICKER_VALIDATORS: any;
|
|
756
|
+
/**
|
|
757
|
+
* An event used for datetimepicker input and change events. We don't always have access to a native
|
|
758
|
+
* input or change event because the event may have been triggered by the user clicking on the
|
|
759
|
+
* calendar popup. For consistency, we always use MtxDatetimepickerInputEvent instead.
|
|
760
|
+
*/
|
|
761
|
+
declare class MtxDatetimepickerInputEvent<D> {
|
|
762
|
+
target: MtxDatetimepickerInput<D>;
|
|
763
|
+
targetElement: HTMLElement;
|
|
764
|
+
/** The new value for the target datetimepicker input. */
|
|
765
|
+
value: D | null;
|
|
766
|
+
constructor(target: MtxDatetimepickerInput<D>, targetElement: HTMLElement);
|
|
767
|
+
}
|
|
768
|
+
/** Directive used to connect an input to a MtxDatetimepicker. */
|
|
769
|
+
declare class MtxDatetimepickerInput<D> implements AfterContentInit, ControlValueAccessor, OnDestroy, Validator {
|
|
770
|
+
private _elementRef;
|
|
771
|
+
private _dateAdapter;
|
|
772
|
+
private _dateFormats;
|
|
773
|
+
private _formField;
|
|
774
|
+
_datetimepicker: MtxDatetimepicker<D>;
|
|
775
|
+
_dateFilter: (date: D | null, type: MtxDatetimepickerFilterType) => boolean;
|
|
776
|
+
/** Emits when a `change` event is fired on this `<input>`. */
|
|
777
|
+
dateChange: EventEmitter<MtxDatetimepickerInputEvent<D>>;
|
|
778
|
+
/** Emits when an `input` event is fired on this `<input>`. */
|
|
779
|
+
dateInput: EventEmitter<MtxDatetimepickerInputEvent<D>>;
|
|
780
|
+
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
781
|
+
_valueChange: EventEmitter<D | null>;
|
|
782
|
+
/** Emits when the disabled state has changed */
|
|
783
|
+
_disabledChange: EventEmitter<boolean>;
|
|
784
|
+
private _datetimepickerSubscription;
|
|
785
|
+
private _localeSubscription;
|
|
786
|
+
/** Whether the last value set on the input was valid. */
|
|
787
|
+
private _lastValueValid;
|
|
788
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
789
|
+
constructor(...args: unknown[]);
|
|
790
|
+
/** The datetimepicker that this input is associated with. */
|
|
791
|
+
set mtxDatetimepicker(value: MtxDatetimepicker<D>);
|
|
792
|
+
set mtxDatetimepickerFilter(filter: (date: D | null, type: MtxDatetimepickerFilterType) => boolean);
|
|
793
|
+
/** The value of the input. */
|
|
794
|
+
get value(): D | null;
|
|
795
|
+
set value(value: D | null);
|
|
796
|
+
private _value;
|
|
797
|
+
/** The minimum valid date. */
|
|
798
|
+
get min(): D | null;
|
|
799
|
+
set min(value: D | null);
|
|
800
|
+
private _min;
|
|
801
|
+
/** The maximum valid date. */
|
|
802
|
+
get max(): D | null;
|
|
803
|
+
set max(value: D | null);
|
|
804
|
+
private _max;
|
|
805
|
+
/** Whether the datetimepicker-input is disabled. */
|
|
806
|
+
get disabled(): boolean;
|
|
807
|
+
set disabled(value: boolean);
|
|
808
|
+
private _disabled;
|
|
809
|
+
_onTouched: () => void;
|
|
810
|
+
ngAfterContentInit(): void;
|
|
811
|
+
ngOnDestroy(): void;
|
|
812
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
813
|
+
validate(c: AbstractControl): ValidationErrors | null;
|
|
814
|
+
/**
|
|
815
|
+
* Gets the element that the datetimepicker popup should be connected to.
|
|
816
|
+
* @return The element to connect the popup to.
|
|
817
|
+
*/
|
|
818
|
+
getConnectedOverlayOrigin(): ElementRef;
|
|
819
|
+
/** Gets the ID of an element that should be used a description for the calendar overlay. */
|
|
820
|
+
getOverlayLabelId(): string | null;
|
|
821
|
+
writeValue(value: D): void;
|
|
822
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
823
|
+
registerOnTouched(fn: () => void): void;
|
|
824
|
+
setDisabledState(disabled: boolean): void;
|
|
825
|
+
_onKeydown(event: KeyboardEvent): void;
|
|
826
|
+
_onInput(value: string): void;
|
|
827
|
+
_onChange(): void;
|
|
828
|
+
/** Handles blur events on the input. */
|
|
829
|
+
_onBlur(): void;
|
|
830
|
+
private registerDatetimepicker;
|
|
831
|
+
private getDisplayFormat;
|
|
832
|
+
private getParseFormat;
|
|
833
|
+
private _cvaOnChange;
|
|
834
|
+
private _validatorOnChange;
|
|
835
|
+
/** The form control validator for whether the input parses. */
|
|
836
|
+
private _parseValidator;
|
|
837
|
+
/** The form control validator for the min date. */
|
|
838
|
+
private _minValidator;
|
|
839
|
+
/** The form control validator for the max date. */
|
|
840
|
+
private _maxValidator;
|
|
841
|
+
/** The form control validator for the date filter. */
|
|
842
|
+
private _filterValidator;
|
|
843
|
+
/** The combined form control validator for this input. */
|
|
844
|
+
private _validator;
|
|
845
|
+
/** Formats a value and sets it on the input element. */
|
|
846
|
+
private _formatValue;
|
|
847
|
+
/** Returns the palette used by the input's form field, if any. */
|
|
848
|
+
getThemePalette(): ThemePalette;
|
|
849
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerInput<any>, never>;
|
|
850
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerInput<any>, "input[mtxDatetimepicker]", ["mtxDatetimepickerInput"], { "mtxDatetimepicker": { "alias": "mtxDatetimepicker"; "required": false; }; "mtxDatetimepickerFilter": { "alias": "mtxDatetimepickerFilter"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "dateChange": "dateChange"; "dateInput": "dateInput"; }, never, never, true, never>;
|
|
851
|
+
static ngAcceptInputType_disabled: unknown;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/** Possible modes for datetimepicker dropdown display. */
|
|
855
|
+
type MtxDatetimepickerMode = 'auto' | 'portrait' | 'landscape';
|
|
856
|
+
/** Possible positions for the datetimepicker dropdown along the X axis. */
|
|
857
|
+
type DatetimepickerDropdownPositionX = 'start' | 'end';
|
|
858
|
+
/** Possible positions for the datetimepicker dropdown along the Y axis. */
|
|
859
|
+
type DatetimepickerDropdownPositionY = 'above' | 'below';
|
|
860
|
+
/** Injection token that determines the scroll handling while the calendar is open. */
|
|
861
|
+
declare const MTX_DATETIMEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
862
|
+
/**
|
|
863
|
+
* @docs-private
|
|
864
|
+
* @deprecated No longer used, will be removed.
|
|
865
|
+
* @breaking-change 21.0.0
|
|
866
|
+
*/
|
|
867
|
+
declare function MTX_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
868
|
+
/**
|
|
869
|
+
* @docs-private
|
|
870
|
+
* @deprecated No longer used, will be removed.
|
|
871
|
+
* @breaking-change 21.0.0
|
|
872
|
+
*/
|
|
873
|
+
declare const MTX_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
874
|
+
provide: InjectionToken<() => ScrollStrategy>;
|
|
875
|
+
deps: (typeof Overlay)[];
|
|
876
|
+
useFactory: typeof MTX_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY;
|
|
877
|
+
};
|
|
878
|
+
interface MtxDatetimepickerDefaultOptions {
|
|
879
|
+
mode?: MtxDatetimepickerMode;
|
|
880
|
+
type?: MtxDatetimepickerType;
|
|
881
|
+
startView?: MtxCalendarView;
|
|
882
|
+
multiYearSelector?: boolean;
|
|
883
|
+
showWeekNumbers?: boolean;
|
|
884
|
+
twelvehour?: boolean;
|
|
885
|
+
timeInterval?: number;
|
|
886
|
+
timeInput?: boolean;
|
|
887
|
+
timeInputAutoFocus?: boolean;
|
|
888
|
+
color?: ThemePalette;
|
|
889
|
+
touchUi?: boolean;
|
|
890
|
+
panelClass?: string | string[];
|
|
891
|
+
calendarHeaderComponent?: ComponentType<any>;
|
|
892
|
+
}
|
|
893
|
+
/** Injection token that can be used to specify default datetimepicker options. */
|
|
894
|
+
declare const MTX_DATETIMEPICKER_DEFAULT_OPTIONS: InjectionToken<MtxDatetimepickerDefaultOptions>;
|
|
895
|
+
/**
|
|
896
|
+
* Component used as the content for the datetimepicker dialog and popup. We use this instead of
|
|
897
|
+
* using MtxCalendar directly as the content so we can control the initial focus. This also gives us
|
|
898
|
+
* a place to put additional features of the popup that are not part of the calendar itself in the
|
|
899
|
+
* future. (e.g. confirmation buttons).
|
|
900
|
+
* @docs-private
|
|
901
|
+
*/
|
|
902
|
+
declare class MtxDatetimepickerContent<D> implements AfterViewInit, OnDestroy {
|
|
903
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
904
|
+
protected _animationsDisabled: boolean;
|
|
905
|
+
private _changeDetectorRef;
|
|
906
|
+
private _ngZone;
|
|
907
|
+
private _stateChanges;
|
|
908
|
+
private _eventCleanups;
|
|
909
|
+
private _animationFallback;
|
|
910
|
+
_calendar: MtxCalendar<D>;
|
|
911
|
+
color: ThemePalette;
|
|
912
|
+
datetimepicker: MtxDatetimepicker<D>;
|
|
913
|
+
/** Whether the datetimepicker is above or below the input. */
|
|
914
|
+
_isAbove: boolean;
|
|
915
|
+
/** Emits when an animation has finished. */
|
|
916
|
+
readonly _animationDone: Subject<void>;
|
|
917
|
+
/** Whether there is an in-progress animation. */
|
|
918
|
+
_isAnimating: boolean;
|
|
919
|
+
/** Id of the label for the `role="dialog"` element. */
|
|
920
|
+
_dialogLabelId: string | null;
|
|
921
|
+
/** Portal with projected action buttons. */
|
|
922
|
+
_actionsPortal: TemplatePortal | null;
|
|
923
|
+
/** The display type of datetimepicker. */
|
|
924
|
+
type: MtxDatetimepickerType;
|
|
925
|
+
/** The view of the calendar. */
|
|
926
|
+
view: MtxCalendarView;
|
|
927
|
+
/** Text for the close button. */
|
|
928
|
+
_closeButtonText: string;
|
|
929
|
+
/** Whether the close button currently has focus. */
|
|
930
|
+
_closeButtonFocused: boolean;
|
|
931
|
+
_viewChanged(view: MtxCalendarView): void;
|
|
932
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
933
|
+
constructor(...args: unknown[]);
|
|
934
|
+
ngAfterViewInit(): void;
|
|
935
|
+
ngOnDestroy(): void;
|
|
936
|
+
_startExitAnimation(): void;
|
|
937
|
+
private _handleAnimationEvent;
|
|
938
|
+
_handleUserSelection(): void;
|
|
939
|
+
/**
|
|
940
|
+
* Assigns a new portal containing the datetimepicker actions.
|
|
941
|
+
* @param portal Portal with the actions to be assigned.
|
|
942
|
+
* @param forceRerender Whether a re-render of the portal should be triggered.
|
|
943
|
+
*/
|
|
944
|
+
_assignActions(portal: TemplatePortal<any> | null, forceRerender: boolean): void;
|
|
945
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerContent<any>, never>;
|
|
946
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxDatetimepickerContent<any>, "mtx-datetimepicker-content", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
947
|
+
}
|
|
948
|
+
declare class MtxDatetimepicker<D> implements OnDestroy {
|
|
949
|
+
private _overlay;
|
|
950
|
+
private _viewContainerRef;
|
|
951
|
+
private _scrollStrategy;
|
|
952
|
+
private _dateAdapter;
|
|
953
|
+
private _dir;
|
|
954
|
+
private _defaultOptions;
|
|
955
|
+
private _document;
|
|
956
|
+
private _injector;
|
|
957
|
+
/** Whether to show multi-year view. */
|
|
958
|
+
multiYearSelector: boolean;
|
|
959
|
+
/** Whether the clock uses 12 hour format. */
|
|
960
|
+
twelvehour: boolean;
|
|
961
|
+
/** Whether to show week numbers in month view */
|
|
962
|
+
showWeekNumbers: boolean;
|
|
963
|
+
/** The view that the calendar should start in. */
|
|
964
|
+
startView: MtxCalendarView;
|
|
965
|
+
/** The display mode of datetimepicker. */
|
|
966
|
+
mode: MtxDatetimepickerMode;
|
|
967
|
+
/** Step over minutes. */
|
|
968
|
+
timeInterval: number;
|
|
969
|
+
/** Prevent user to select same date time */
|
|
970
|
+
preventSameDateTimeSelection: boolean;
|
|
971
|
+
/** Input for a custom header component */
|
|
972
|
+
calendarHeaderComponent?: ComponentType<any>;
|
|
973
|
+
/**
|
|
974
|
+
* Emits new selected date when selected date changes.
|
|
975
|
+
* @deprecated Switch to the `dateChange` and `dateInput` binding on the input element.
|
|
976
|
+
*/
|
|
977
|
+
selectedChanged: EventEmitter<D>;
|
|
978
|
+
/** Emits when the datetimepicker has been opened. */
|
|
979
|
+
openedStream: EventEmitter<void>;
|
|
980
|
+
/** Emits when the datetimepicker has been closed. */
|
|
981
|
+
closedStream: EventEmitter<void>;
|
|
982
|
+
/** Emits when the view has been changed. */
|
|
983
|
+
viewChanged: EventEmitter<MtxCalendarView>;
|
|
984
|
+
/** Classes to be passed to the date picker panel. */
|
|
985
|
+
get panelClass(): string | string[];
|
|
986
|
+
set panelClass(value: string | string[]);
|
|
987
|
+
private _panelClass;
|
|
988
|
+
/** Whether the calendar is open. */
|
|
989
|
+
get opened(): boolean;
|
|
990
|
+
set opened(value: boolean);
|
|
991
|
+
private _opened;
|
|
992
|
+
/** The id for the datetimepicker calendar. */
|
|
993
|
+
id: string;
|
|
994
|
+
/** Color palette to use on the datetimepicker's calendar. */
|
|
995
|
+
get color(): ThemePalette;
|
|
996
|
+
set color(value: ThemePalette);
|
|
997
|
+
private _color;
|
|
998
|
+
/** The input element this datetimepicker is associated with. */
|
|
999
|
+
datetimepickerInput: MtxDatetimepickerInput<D>;
|
|
1000
|
+
/** Emits when the datetimepicker is disabled. */
|
|
1001
|
+
_disabledChange: Subject<boolean>;
|
|
1002
|
+
private _validSelected;
|
|
1003
|
+
/** A reference to the overlay into which we've rendered the calendar. */
|
|
1004
|
+
private _overlayRef;
|
|
1005
|
+
/** Reference to the component instance rendered in the overlay. */
|
|
1006
|
+
private _componentRef;
|
|
1007
|
+
/** The element that was focused before the datetimepicker was opened. */
|
|
1008
|
+
private _focusedElementBeforeOpen;
|
|
1009
|
+
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
1010
|
+
private _backdropHarnessClass;
|
|
1011
|
+
private _inputStateChanges;
|
|
1012
|
+
/** Portal with projected action buttons. */
|
|
1013
|
+
_actionsPortal: TemplatePortal | null;
|
|
1014
|
+
/** Previous selected value. */
|
|
1015
|
+
oldValue: D | null;
|
|
1016
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1017
|
+
constructor(...args: unknown[]);
|
|
1018
|
+
/** The date to open the calendar to initially. */
|
|
1019
|
+
get startAt(): D | null;
|
|
1020
|
+
set startAt(date: D | null);
|
|
1021
|
+
private _startAt;
|
|
1022
|
+
/** The display type of datetimepicker. */
|
|
1023
|
+
get type(): MtxDatetimepickerType;
|
|
1024
|
+
set type(value: MtxDatetimepickerType);
|
|
1025
|
+
private _type;
|
|
1026
|
+
/**
|
|
1027
|
+
* Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather
|
|
1028
|
+
* than a popup and elements have more padding to allow for bigger touch targets.
|
|
1029
|
+
*/
|
|
1030
|
+
touchUi: boolean;
|
|
1031
|
+
/**
|
|
1032
|
+
* Whether the calendar is in time mode. In time mode the calendar clock gets time input
|
|
1033
|
+
* elements rather then just clock. When `touchUi` is enabled this will be disabled.
|
|
1034
|
+
*/
|
|
1035
|
+
timeInput: boolean;
|
|
1036
|
+
/** Whether the time input should be auto-focused after view init. */
|
|
1037
|
+
timeInputAutoFocus: boolean;
|
|
1038
|
+
/** Whether the datetimepicker pop-up should be disabled. */
|
|
1039
|
+
get disabled(): boolean;
|
|
1040
|
+
set disabled(value: boolean);
|
|
1041
|
+
private _disabled;
|
|
1042
|
+
/** Preferred position of the datetimepicker in the X axis. */
|
|
1043
|
+
xPosition: DatetimepickerDropdownPositionX;
|
|
1044
|
+
/** Preferred position of the datetimepicker in the Y axis. */
|
|
1045
|
+
yPosition: DatetimepickerDropdownPositionY;
|
|
1046
|
+
/**
|
|
1047
|
+
* Whether to restore focus to the previously-focused element when the panel is closed.
|
|
1048
|
+
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
1049
|
+
* you provide your own equivalent, if you decide to turn it off.
|
|
1050
|
+
*/
|
|
1051
|
+
restoreFocus: boolean;
|
|
1052
|
+
/** The currently selected date. */
|
|
1053
|
+
get _selected(): D | null;
|
|
1054
|
+
set _selected(value: D | null);
|
|
1055
|
+
/** The minimum selectable date. */
|
|
1056
|
+
get _minDate(): D | null;
|
|
1057
|
+
/** The maximum selectable date. */
|
|
1058
|
+
get _maxDate(): D | null;
|
|
1059
|
+
get _dateFilter(): (date: D | null, type: MtxDatetimepickerFilterType) => boolean;
|
|
1060
|
+
_viewChanged(view: MtxCalendarView): void;
|
|
1061
|
+
ngOnDestroy(): void;
|
|
1062
|
+
/** Selects the given date */
|
|
1063
|
+
_select(date: D): void;
|
|
1064
|
+
_selectManually(): void;
|
|
1065
|
+
_clearSelected(): void;
|
|
1066
|
+
/**
|
|
1067
|
+
* Register an input with this datetimepicker.
|
|
1068
|
+
* @param input The datetimepicker input to register with this datetimepicker.
|
|
1069
|
+
*/
|
|
1070
|
+
_registerInput(input: MtxDatetimepickerInput<D>): void;
|
|
1071
|
+
/** Open the calendar. */
|
|
1072
|
+
open(): void;
|
|
1073
|
+
/** Close the calendar. */
|
|
1074
|
+
close(): void;
|
|
1075
|
+
/**
|
|
1076
|
+
* Forwards relevant values from the datetimepicker to the
|
|
1077
|
+
* datetimepicker content inside the overlay.
|
|
1078
|
+
*/
|
|
1079
|
+
protected _forwardContentValues(instance: MtxDatetimepickerContent<D>): void;
|
|
1080
|
+
/** Opens the overlay with the calendar. */
|
|
1081
|
+
private _openOverlay;
|
|
1082
|
+
/** Destroys the current overlay. */
|
|
1083
|
+
private _destroyOverlay;
|
|
1084
|
+
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
1085
|
+
private _getDialogStrategy;
|
|
1086
|
+
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
1087
|
+
private _getDropdownStrategy;
|
|
1088
|
+
/**
|
|
1089
|
+
* Sets the positions of the datetimepicker in dropdown mode based on the current configuration.
|
|
1090
|
+
*/
|
|
1091
|
+
private _setConnectedPositions;
|
|
1092
|
+
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
1093
|
+
private _getCloseStream;
|
|
1094
|
+
/**
|
|
1095
|
+
* Registers a portal containing action buttons with the datetimepicker.
|
|
1096
|
+
* @param portal Portal to be registered.
|
|
1097
|
+
*/
|
|
1098
|
+
registerActions(portal: TemplatePortal): void;
|
|
1099
|
+
/**
|
|
1100
|
+
* Removes a portal containing action buttons from the datetimepicker.
|
|
1101
|
+
* @param portal Portal to be removed.
|
|
1102
|
+
*/
|
|
1103
|
+
removeActions(portal: TemplatePortal): void;
|
|
1104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepicker<any>, never>;
|
|
1105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxDatetimepicker<any>, "mtx-datetimepicker", ["mtxDatetimepicker"], { "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "calendarHeaderComponent": { "alias": "calendarHeaderComponent"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "color": { "alias": "color"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "type": { "alias": "type"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "timeInputAutoFocus": { "alias": "timeInputAutoFocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; }, { "selectedChanged": "selectedChanged"; "openedStream": "opened"; "closedStream": "closed"; "viewChanged": "viewChanged"; }, never, never, true, never>;
|
|
1106
|
+
static ngAcceptInputType_multiYearSelector: unknown;
|
|
1107
|
+
static ngAcceptInputType_twelvehour: unknown;
|
|
1108
|
+
static ngAcceptInputType_showWeekNumbers: unknown;
|
|
1109
|
+
static ngAcceptInputType_timeInterval: unknown;
|
|
1110
|
+
static ngAcceptInputType_preventSameDateTimeSelection: unknown;
|
|
1111
|
+
static ngAcceptInputType_opened: unknown;
|
|
1112
|
+
static ngAcceptInputType_touchUi: unknown;
|
|
1113
|
+
static ngAcceptInputType_timeInput: unknown;
|
|
1114
|
+
static ngAcceptInputType_timeInputAutoFocus: unknown;
|
|
1115
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1116
|
+
static ngAcceptInputType_restoreFocus: unknown;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/** Can be used to override the icon of a `mtxDatetimepickerToggle`. */
|
|
1120
|
+
declare class MtxDatetimepickerToggleIcon {
|
|
1121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerToggleIcon, never>;
|
|
1122
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerToggleIcon, "[mtxDatetimepickerToggleIcon]", never, {}, {}, never, never, true, never>;
|
|
1123
|
+
}
|
|
1124
|
+
declare class MtxDatetimepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
|
|
1125
|
+
_intl: MtxDatetimepickerIntl;
|
|
1126
|
+
private _changeDetectorRef;
|
|
1127
|
+
private _stateChanges;
|
|
1128
|
+
/** Datetimepicker instance that the button will toggle. */
|
|
1129
|
+
datetimepicker: MtxDatetimepicker<D>;
|
|
1130
|
+
/** Tabindex for the toggle. */
|
|
1131
|
+
tabIndex: number | null;
|
|
1132
|
+
/** Screen-reader label for the button. */
|
|
1133
|
+
ariaLabel?: string;
|
|
1134
|
+
/** Whether the toggle button is disabled. */
|
|
1135
|
+
get disabled(): boolean;
|
|
1136
|
+
set disabled(value: boolean);
|
|
1137
|
+
private _disabled;
|
|
1138
|
+
/** Whether ripples on the toggle should be disabled. */
|
|
1139
|
+
disableRipple: boolean;
|
|
1140
|
+
/** Custom icon set by the consumer. */
|
|
1141
|
+
_customIcon: MtxDatetimepickerToggleIcon;
|
|
1142
|
+
/** Underlying button element. */
|
|
1143
|
+
_button: MatButton;
|
|
1144
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1145
|
+
constructor(...args: unknown[]);
|
|
1146
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1147
|
+
ngOnDestroy(): void;
|
|
1148
|
+
ngAfterContentInit(): void;
|
|
1149
|
+
_open(event: Event): void;
|
|
1150
|
+
private _watchStateChanges;
|
|
1151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerToggle<any>, never>;
|
|
1152
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxDatetimepickerToggle<any>, "mtx-datetimepicker-toggle", ["mtxDatetimepickerToggle"], { "datetimepicker": { "alias": "for"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, ["_customIcon"], ["[mtxDatetimepickerToggleIcon]"], true, never>;
|
|
1153
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1154
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
declare class MtxDatetimepickerApply<D> {
|
|
1158
|
+
_datetimepicker: MtxDatetimepicker<D>;
|
|
1159
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1160
|
+
constructor(...args: unknown[]);
|
|
1161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerApply<any>, never>;
|
|
1162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerApply<any>, "[mtxDatetimepickerApply]", never, {}, {}, never, never, true, never>;
|
|
1163
|
+
}
|
|
1164
|
+
declare class MtxDatetimepickerCancel<D> {
|
|
1165
|
+
_datetimepicker: MtxDatetimepicker<D>;
|
|
1166
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1167
|
+
constructor(...args: unknown[]);
|
|
1168
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerCancel<any>, never>;
|
|
1169
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerCancel<any>, "[mtxDatetimepickerCancel]", never, {}, {}, never, never, true, never>;
|
|
1170
|
+
}
|
|
1171
|
+
declare class MtxDatetimepickerClear<D> {
|
|
1172
|
+
_datetimepicker: MtxDatetimepicker<D>;
|
|
1173
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1174
|
+
constructor(...args: unknown[]);
|
|
1175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerClear<any>, never>;
|
|
1176
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerClear<any>, "[mtxDatetimepickerClear]", never, {}, {}, never, never, true, never>;
|
|
1177
|
+
}
|
|
1178
|
+
declare class MtxDatetimepickerActions<D> implements AfterViewInit, OnDestroy {
|
|
1179
|
+
private _datetimepicker;
|
|
1180
|
+
private _viewContainerRef;
|
|
1181
|
+
_template: TemplateRef<unknown>;
|
|
1182
|
+
private _portal;
|
|
1183
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1184
|
+
constructor(...args: unknown[]);
|
|
1185
|
+
ngAfterViewInit(): void;
|
|
1186
|
+
ngOnDestroy(): void;
|
|
1187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerActions<any>, never>;
|
|
1188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxDatetimepickerActions<any>, "mtx-datetimepicker-actions", never, {}, {}, never, ["*"], true, never>;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
declare class MtxDatetimepickerModule {
|
|
1192
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerModule, never>;
|
|
1193
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxDatetimepickerModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.A11yModule, typeof i4.PortalModule, typeof i5.MatButtonModule, typeof MtxCalendar, typeof MtxCalendarBody, typeof MtxClock, typeof MtxTimeView, typeof MtxTimeInput, typeof MtxDatetimepicker, typeof MtxDatetimepickerToggle, typeof MtxDatetimepickerToggleIcon, typeof MtxDatetimepickerInput, typeof MtxDatetimepickerContent, typeof MtxMonthView, typeof MtxYearView, typeof MtxMultiYearView, typeof MtxDatetimepickerApply, typeof MtxDatetimepickerCancel, typeof MtxDatetimepickerClear, typeof MtxDatetimepickerActions], [typeof MtxCalendar, typeof MtxCalendarBody, typeof MtxClock, typeof MtxTimeView, typeof MtxDatetimepicker, typeof MtxDatetimepickerToggle, typeof MtxDatetimepickerToggleIcon, typeof MtxDatetimepickerInput, typeof MtxDatetimepickerContent, typeof MtxMonthView, typeof MtxYearView, typeof MtxMultiYearView, typeof MtxDatetimepickerApply, typeof MtxDatetimepickerCancel, typeof MtxDatetimepickerClear, typeof MtxDatetimepickerActions]>;
|
|
1194
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MtxDatetimepickerModule>;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Animations used by the Material datetimepicker.
|
|
1199
|
+
* @docs-private
|
|
1200
|
+
* @deprecated No longer used, will be removed.
|
|
1201
|
+
* @breaking-change 21.0.0
|
|
1202
|
+
*/
|
|
1203
|
+
declare const mtxDatetimepickerAnimations: {
|
|
1204
|
+
readonly transformPanel: any;
|
|
1205
|
+
readonly fadeInCalendar: any;
|
|
1206
|
+
readonly slideCalendar: any;
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
export { CLOCK_INNER_RADIUS, CLOCK_OUTER_RADIUS, CLOCK_RADIUS, CLOCK_TICK_RADIUS, MAT_DATETIMEPICKER_VALIDATORS, MAT_DATETIMEPICKER_VALUE_ACCESSOR, MTX_DATETIMEPICKER_DEFAULT_OPTIONS, MTX_DATETIMEPICKER_SCROLL_STRATEGY, MTX_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY, MTX_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MtxCalendar, MtxCalendarBody, MtxCalendarCell, MtxClock, MtxDatetimepicker, MtxDatetimepickerActions, MtxDatetimepickerApply, MtxDatetimepickerCancel, MtxDatetimepickerClear, MtxDatetimepickerContent, MtxDatetimepickerFilterType, MtxDatetimepickerInput, MtxDatetimepickerInputEvent, MtxDatetimepickerIntl, MtxDatetimepickerModule, MtxDatetimepickerToggle, MtxDatetimepickerToggleIcon, MtxMonthView, MtxMultiYearView, MtxTimeInput, MtxTimeView, MtxYearView, getActiveOffset, isSameMultiYearView, mtxDatetimepickerAnimations, yearsPerPage, yearsPerRow };
|
|
1210
|
+
export type { ClockCell, DatetimepickerDropdownPositionX, DatetimepickerDropdownPositionY, MtxAMPM, MtxCalendarView, MtxClockView, MtxDatetimepickerDefaultOptions, MtxDatetimepickerMode, MtxDatetimepickerType };
|