"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/datepicker/calendar-body.ts" between
material2-7.3.2.tar.gz and material2-7.3.3.tar.gz

About: material2 offers Material Design components for Angular.

calendar-body.ts  (material2-7.3.2):calendar-body.ts  (material2-7.3.3)
skipping to change at line 107 skipping to change at line 107
constructor(private _elementRef: ElementRef<HTMLElement>, private _ngZone: NgZ one) { } constructor(private _elementRef: ElementRef<HTMLElement>, private _ngZone: NgZ one) { }
_cellClicked(cell: MatCalendarCell): void { _cellClicked(cell: MatCalendarCell): void {
if (cell.enabled) { if (cell.enabled) {
this.selectedValueChange.emit(cell.value); this.selectedValueChange.emit(cell.value);
} }
} }
ngOnChanges(changes: SimpleChanges) { ngOnChanges(changes: SimpleChanges) {
const columnChanges = changes.numCols; const columnChanges = changes['numCols'];
const {rows, numCols} = this; const {rows, numCols} = this;
if (changes.rows || columnChanges) { if (changes['rows'] || columnChanges) {
this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - r ows[0].length : 0; this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - r ows[0].length : 0;
} }
if (changes.cellAspectRatio || columnChanges || !this._cellPadding) { if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {
this._cellPadding = `${50 * this.cellAspectRatio / numCols}%`; this._cellPadding = `${50 * this.cellAspectRatio / numCols}%`;
} }
if (columnChanges || !this._cellWidth) { if (columnChanges || !this._cellWidth) {
this._cellWidth = `${100 / numCols}%`; this._cellWidth = `${100 / numCols}%`;
} }
} }
_isActiveCell(rowIndex: number, colIndex: number): boolean { _isActiveCell(rowIndex: number, colIndex: number): boolean {
let cellNumber = rowIndex * this.numCols + colIndex; let cellNumber = rowIndex * this.numCols + colIndex;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)