UNPKG

carbon-components-angular

Version:
46 lines (43 loc) 6.26 kB
/*! * * Neutrino v0.0.0 | calendar-month.component.ngfactory.js * * Copyright 2014, 2018 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @fileoverview This file was generated by the Angular template compiler. Do not edit. * * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} * tslint:disable */ import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "../calendar-header.component.ngfactory"; import * as i3 from "../calendar-header.component"; import * as i4 from "./calendar-month.component"; var styles_CalendarMonth = []; var RenderType_CalendarMonth = i0.ɵcrt({ encapsulation: 2, styles: styles_CalendarMonth, data: {} }); export { RenderType_CalendarMonth as RenderType_CalendarMonth }; function View_CalendarMonth_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "th", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "div", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) { var currVal_0 = _v.context.$implicit; _ck(_v, 2, 0, currVal_0); }); } function View_CalendarMonth_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "td", [], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.selectDay(_v.context.$implicit, _v.parent.parent.context.$implicit) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), i0.ɵdid(1, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(2, { "today": 0, "empty": 1, "selected": 2, "range": 3, "disabled": 4 }), (_l()(), i0.ɵeld(3, 0, null, null, 2, "div", [], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, "p", [], null, null, null, null, null)), (_l()(), i0.ɵted(5, null, [" ", " "]))], function (_ck, _v) { var _co = _v.component; var currVal_0 = _ck(_v, 2, 0, _co.isCurrentDay(_v.context.$implicit, _v.parent.parent.context.$implicit), !_v.context.$implicit, ((_co.isSelected(_co.model.startDate, _v.parent.parent.context.$implicit) && (_v.context.$implicit == _co.model.startDate.getDate())) || (_co.isSelected(_co.model.endDate, _v.parent.parent.context.$implicit) && (_v.context.$implicit == _co.model.endDate.getDate()))), _co.inRange(_v.context.$implicit, _v.parent.parent.context.$implicit), _co.isDisabled(_v.context.$implicit, _v.parent.parent.context.$implicit)); _ck(_v, 1, 0, currVal_0); }, function (_ck, _v) { var currVal_1 = _v.context.$implicit; _ck(_v, 5, 0, currVal_1); }); } function View_CalendarMonth_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "tr", [["class", "grid_row--month"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarMonth_4)), i0.ɵdid(2, 278528, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var currVal_0 = _v.context.$implicit; _ck(_v, 2, 0, currVal_0); }, null); } function View_CalendarMonth_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [["class", "calendar_month-container"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 6, "table", [["class", "calendar_grid calendar_month"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 5, "tbody", [], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 2, "tr", [["class", "grid_row_header--month"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarMonth_2)), i0.ɵdid(5, 278528, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarMonth_3)), i0.ɵdid(7, 278528, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.model.daysOfWeek; _ck(_v, 5, 0, currVal_0); var currVal_1 = _co.daysOfMonth(_v.context.$implicit); _ck(_v, 7, 0, currVal_1); }, null); } export function View_CalendarMonth_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "calendar-view"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "ibm-calendar-header", [], null, null, null, i2.View_CalendarHeader_0, i2.RenderType_CalendarHeader)), i0.ɵdid(2, 49152, null, 0, i3.CalendarHeader, [], { currentView: [0, "currentView"], monthCount: [1, "monthCount"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarMonth_1)), i0.ɵdid(4, 278528, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.currentView; var currVal_1 = _co.monthCount; _ck(_v, 2, 0, currVal_0, currVal_1); var currVal_2 = _co.range(_co.monthCount); _ck(_v, 4, 0, currVal_2); }, null); } export function View_CalendarMonth_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-calendar-month-view", [], null, null, null, View_CalendarMonth_0, RenderType_CalendarMonth)), i0.ɵdid(1, 114688, null, 0, i4.CalendarMonth, [], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); } var CalendarMonthNgFactory = i0.ɵccf("ibm-calendar-month-view", i4.CalendarMonth, View_CalendarMonth_Host_0, { model: "model", monthCount: "monthCount" }, {}, []); export { CalendarMonthNgFactory as CalendarMonthNgFactory }; //# sourceMappingURL=calendar-month.component.ngfactory.js.map