UNPKG

carbon-components-angular

Version:
53 lines (50 loc) 6.32 kB
/*! * * Neutrino v0.0.0 | calendar-header.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"; var styles_CalendarHeader = []; var RenderType_CalendarHeader = i0.ɵcrt({ encapsulation: 2, styles: styles_CalendarHeader, data: {} }); export { RenderType_CalendarHeader as RenderType_CalendarHeader }; function View_CalendarHeader_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "li", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", " - ", ""]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.getYear() - 5); var currVal_1 = _co.getYear(); _ck(_v, 1, 0, currVal_0, currVal_1); }); } function View_CalendarHeader_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "li", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.getYear(); _ck(_v, 1, 0, currVal_0); }); } function View_CalendarHeader_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "li", [["class", "month_view-month"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.getMonth(_v.context.$implicit); _ck(_v, 1, 0, currVal_0); }); } function View_CalendarHeader_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "nav", [["aria-label", "month-pagination"], ["class", "pagination month"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 6, "ul", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "li", [["class", "pagination_chevron"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 0, "a", [["aria-label", "Previous page"], ["title", "Previous page"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.previousMonth() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarHeader_4)), i0.ɵdid(5, 278528, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵeld(6, 0, null, null, 1, "li", [["class", "pagination_chevron"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 0, "a", [["aria-label", "Next page"], ["title", "Next page"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.nextMonth() !== false); ad = (pd_0 && ad); } return ad; }, null, null))], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.range(_co.monthCount); _ck(_v, 5, 0, currVal_0); }, null); } export function View_CalendarHeader_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 9, "nav", [["aria-label", "year-pagination"], ["class", "pagination"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "ul", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "li", [["class", "pagination_chevron"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 0, "a", [["aria-label", "Previous page"], ["title", "Previous page"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.previousYear() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarHeader_1)), i0.ɵdid(5, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarHeader_2)), i0.ɵdid(7, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(8, 0, null, null, 1, "li", [["class", "pagination_chevron"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 0, "a", [["aria-label", "Next page"], ["title", "Next page"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.nextYear() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CalendarHeader_3)), i0.ɵdid(11, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.header === "yearOnlyRange"); _ck(_v, 5, 0, currVal_0); var currVal_1 = (_co.header !== "yearOnlyRange"); _ck(_v, 7, 0, currVal_1); var currVal_2 = ((_co.header !== "yearOnly") && (_co.header !== "yearOnlyRange")); _ck(_v, 11, 0, currVal_2); }, null); } export function View_CalendarHeader_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-calendar-header", [], null, null, null, View_CalendarHeader_0, RenderType_CalendarHeader)), i0.ɵdid(1, 49152, null, 0, i2.CalendarHeader, [], null, null)], null, null); } var CalendarHeaderNgFactory = i0.ɵccf("ibm-calendar-header", i2.CalendarHeader, View_CalendarHeader_Host_0, { currentView: "currentView", header: "header", monthCount: "monthCount" }, {}, []); export { CalendarHeaderNgFactory as CalendarHeaderNgFactory }; //# sourceMappingURL=calendar-header.component.ngfactory.js.map