| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /**
- * @license
- * Copyright Google LLC All Rights Reserved.
- *
- * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://angular.io/license
- */
- import { ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges } from '@angular/core';
- /**
- * Extra CSS classes that can be associated with a calendar cell.
- */
- export declare type MatCalendarCellCssClasses = string | string[] | Set<string> | {
- [key: string]: any;
- };
- /**
- * An internal class that represents the data corresponding to a single calendar cell.
- * @docs-private
- */
- export declare class MatCalendarCell {
- value: number;
- displayValue: string;
- ariaLabel: string;
- enabled: boolean;
- cssClasses?: string | Set<string> | {
- [key: string]: any;
- } | string[] | undefined;
- constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, cssClasses?: string | Set<string> | {
- [key: string]: any;
- } | string[] | undefined);
- }
- /**
- * An internal component used to display calendar data in a table.
- * @docs-private
- */
- export declare class MatCalendarBody implements OnChanges {
- private _elementRef;
- private _ngZone;
- /** The label for the table. (e.g. "Jan 2017"). */
- label: string;
- /** The cells to display in the table. */
- rows: MatCalendarCell[][];
- /** The value in the table that corresponds to today. */
- todayValue: number;
- /** The value in the table that is currently selected. */
- selectedValue: number;
- /** The minimum number of free cells needed to fit the label in the first row. */
- labelMinRequiredCells: number;
- /** The number of columns in the table. */
- numCols: number;
- /** The cell number of the active cell in the table. */
- activeCell: number;
- /**
- * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be
- * maintained even as the table resizes.
- */
- cellAspectRatio: number;
- /** Emits when a new value is selected. */
- readonly selectedValueChange: EventEmitter<number>;
- /** The number of blank cells to put at the beginning for the first row. */
- _firstRowOffset: number;
- /** Padding for the individual date cells. */
- _cellPadding: string;
- /** Width of an individual cell. */
- _cellWidth: string;
- constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
- _cellClicked(cell: MatCalendarCell): void;
- ngOnChanges(changes: SimpleChanges): void;
- _isActiveCell(rowIndex: number, colIndex: number): boolean;
- /** Focuses the active cell after the microtask queue is empty. */
- _focusActiveCell(): void;
- }
|