UNPKG

carbon-components-angular

Version:
56 lines (53 loc) 8.15 kB
/*! * * Neutrino v0.0.0 | tab-headers.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 "./tab-headers.component"; var styles_TabHeaders = []; var RenderType_TabHeaders = i0.ɵcrt({ encapsulation: 2, styles: styles_TabHeaders, data: {} }); export { RenderType_TabHeaders as RenderType_TabHeaders }; function View_TabHeaders_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, null, null, null, null, null, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.getSelectedTab().heading; _ck(_v, 1, 0, currVal_0); }); } function View_TabHeaders_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(0, null, null, 0))], null, null); } function View_TabHeaders_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(16777216, null, null, 1, null, View_TabHeaders_3)), i0.ɵdid(1, 540672, null, 0, i1.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutlet: [0, "ngTemplateOutlet"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.getSelectedTab().heading; _ck(_v, 1, 0, currVal_0); }, null); } function View_TabHeaders_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, null, null, null, null, null, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "]))], null, function (_ck, _v) { var currVal_0 = _v.parent.context.$implicit.heading; _ck(_v, 1, 0, currVal_0); }); } function View_TabHeaders_7(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(0, null, null, 0))], null, null); } function View_TabHeaders_6(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(16777216, null, null, 1, null, View_TabHeaders_7)), i0.ɵdid(1, 540672, null, 0, i1.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutlet: [0, "ngTemplateOutlet"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var currVal_0 = _v.parent.context.$implicit.heading; _ck(_v, 1, 0, currVal_0); }, null); } function View_TabHeaders_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "li", [["class", "bx--tabs__nav-item"], ["role", "presentation"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.selectTab(_co.tabref, _v.context.$implicit, _v.context.index) !== 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], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(2, { "bx--tabs__nav-item--selected": 0 }), (_l()(), i0.ɵeld(3, 0, null, null, 4, "a", [["class", "bx--tabs__nav-link"], ["draggable", "false"], ["href", "javascript:void(0)"], ["role", "tab"]], [[1, "aria-selected", 0], [1, "tabindex", 0], [1, "aria-controls", 0], [8, "id", 0]], [[null, "focus"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("focus" === en)) { var pd_0 = (_co.onTabFocus(_co.tabref, _v.context.index) !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TabHeaders_5)), 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_TabHeaders_6)), i0.ɵdid(7, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var currVal_0 = "bx--tabs__nav-item"; var currVal_1 = _ck(_v, 2, 0, _v.context.$implicit.active); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_6 = !_v.context.$implicit.headingIsTemplate; _ck(_v, 5, 0, currVal_6); var currVal_7 = _v.context.$implicit.headingIsTemplate; _ck(_v, 7, 0, currVal_7); }, function (_ck, _v) { var currVal_2 = _v.context.$implicit.active; var currVal_3 = (_v.context.$implicit.active ? 0 : (0 - 1)); var currVal_4 = _v.context.$implicit.id; var currVal_5 = i0.ɵinlineInterpolate(1, "", _v.context.$implicit.id, "-header"); _ck(_v, 3, 0, currVal_2, currVal_3, currVal_4, currVal_5); }); } export function View_TabHeaders_0(_l) { return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { headerContainer: 0 }), (_l()(), i0.ɵeld(1, 0, null, null, 13, "nav", [["class", "bx--tabs"], ["role", "navigation"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 7, "div", [["class", "bx--tabs-trigger"], ["tabindex", "0"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.showTabList() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 4, "a", [["class", "bx--tabs-trigger-text"], ["href", "javascript:void(0)"], ["tabindex", "-1"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TabHeaders_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_TabHeaders_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, ":svg:svg", [["height", "5"], ["viewBox", "0 0 10 5"], ["width", "10"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 0, ":svg:path", [["d", "M0 0l5 4.998L10 0z"], ["fill-rule", "evenodd"]], null, null, null, null, null)), (_l()(), i0.ɵeld(10, 0, [[1, 0], ["tabList", 1]], null, 4, "ul", [["class", "bx--tabs__nav"], ["role", "tablist"]], null, null, null, null, null)), i0.ɵdid(11, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(12, { "bx--tabs__nav--hidden": 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TabHeaders_4)), i0.ɵdid(14, 278528, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵeld(15, 0, null, null, 1, "div", [], null, null, null, null, null)), i0.ɵncd(null, 0)], function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.getSelectedTab().headingIsTemplate; _ck(_v, 5, 0, currVal_0); var currVal_1 = _co.getSelectedTab().headingIsTemplate; _ck(_v, 7, 0, currVal_1); var currVal_2 = "bx--tabs__nav"; var currVal_3 = _ck(_v, 12, 0, !_co.tabListVisible); _ck(_v, 11, 0, currVal_2, currVal_3); var currVal_4 = _co.tabs; _ck(_v, 14, 0, currVal_4); }, null); } export function View_TabHeaders_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "ibm-tab-headers", [], null, [[null, "keydown"]], function (_v, en, $event) { var ad = true; if (("keydown" === en)) { var pd_0 = (i0.ɵnov(_v, 1).keyboardInput($event) !== false); ad = (pd_0 && ad); } return ad; }, View_TabHeaders_0, RenderType_TabHeaders)), i0.ɵdid(1, 5292032, null, 1, i2.TabHeaders, [], null, null), i0.ɵqud(603979776, 1, { tabQuery: 1 })], null, null); } var TabHeadersNgFactory = i0.ɵccf("ibm-tab-headers", i2.TabHeaders, View_TabHeaders_Host_0, { tabInput: "tabs", cacheActive: "cacheActive" }, {}, ["ibm-tab"]); export { TabHeadersNgFactory as TabHeadersNgFactory }; //# sourceMappingURL=tab-headers.component.ngfactory.js.map