UNPKG

carbon-components-angular

Version:
52 lines (49 loc) 6.62 kB
/*! * * Neutrino v0.0.0 | combobox.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 "@angular/forms"; import * as i3 from "./combobox.component"; var styles_ComboBox = []; var RenderType_ComboBox = i0.ɵcrt({ encapsulation: 2, styles: styles_ComboBox, data: {} }); export { RenderType_ComboBox as RenderType_ComboBox }; function View_ComboBox_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["class", "bx--list-box__selection bx--list-box__selection--multi"], ["role", "button"], ["tabindex", "0"], ["title", "Clear all selected items"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.clearSelected() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "])), (_l()(), i0.ɵeld(2, 0, null, null, 3, ":svg:svg", [["alt", "Clear all selected items"], ["aria-label", "Clear all selected items"], ["fill-rule", "evenodd"], ["focusable", "false"], ["height", "10"], ["role", "img"], ["viewBox", "0 0 10 10"], ["width", "10"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, ":svg:title", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Clear all selected items"])), (_l()(), i0.ɵeld(5, 0, null, null, 0, ":svg:path", [["d", "M6.32 5L10 8.68 8.68 10 5 6.32 1.32 10 0 8.68 3.68 5 0 1.32 1.32 0 5 3.68 8.68 0 10 1.32 6.32 5z"]], null, null, null, null, null))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.pills.length; _ck(_v, 1, 0, currVal_0); }); } function View_ComboBox_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, [[1, 0], ["dropdownMenu", 1]], null, 1, "div", [], null, null, null, null, null)), i0.ɵncd(null, 0)], null, null); } export function View_ComboBox_0(_l) { return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { dropdownMenu: 0 }), (_l()(), i0.ɵeld(1, 0, null, null, 10, "div", [["aria-haspopup", "true"], ["aria-label", "close menu"], ["class", "bx--list-box__field"], ["role", "button"], ["tabindex", "0"], ["type", "button"]], [[1, "aria-expanded", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ComboBox_1)), i0.ɵdid(3, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(4, 0, null, null, 0, "input", [["aria-label", "ListBox input field"], ["autocomplete", "off"], ["class", "bx--text-input"]], [[8, "disabled", 0], [8, "value", 0], [8, "placeholder", 0]], [[null, "click"], [null, "keyup"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.toggleDropdown() !== false); ad = (pd_0 && ad); } if (("keyup" === en)) { var pd_1 = (_co.onSearch($event.target.value) !== false); ad = (pd_1 && ad); } return ad; }, null, null)), (_l()(), i0.ɵeld(5, 0, null, null, 6, "div", [["class", "bx--list-box__menu-icon"]], null, null, null, null, null)), i0.ɵdid(6, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(7, { "bx--list-box__menu-icon--open": 0 }), (_l()(), i0.ɵeld(8, 0, null, null, 3, ":svg:svg", [["alt", "Close menu"], ["aria-label", "Close menu"], ["fill-rule", "evenodd"], ["height", "5"], ["role", "img"], ["viewBox", "0 0 10 5"], ["width", "10"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 1, ":svg:title", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Close menu"])), (_l()(), i0.ɵeld(11, 0, null, null, 0, ":svg:path", [["d", "M0 0l5 4.998L10 0z"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ComboBox_2)), i0.ɵdid(13, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = ((_co.type === "multi") && (_co.pills.length > 0)); _ck(_v, 3, 0, currVal_1); var currVal_5 = "bx--list-box__menu-icon"; var currVal_6 = _ck(_v, 7, 0, _co.open); _ck(_v, 6, 0, currVal_5, currVal_6); var currVal_7 = _co.open; _ck(_v, 13, 0, currVal_7); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.open; _ck(_v, 1, 0, currVal_0); var currVal_2 = _co.disabled; var currVal_3 = _co.selectedValue; var currVal_4 = _co.placeholder; _ck(_v, 4, 0, currVal_2, currVal_3, currVal_4); }); } export function View_ComboBox_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "ibm-combo-box", [], [[1, "aria-disabled", 0], [8, "className", 0], [1, "role", 0], [4, "display", null]], [[null, "keydown"]], function (_v, en, $event) { var ad = true; if (("keydown" === en)) { var pd_0 = (i0.ɵnov(_v, 2).hostkeys($event) !== false); ad = (pd_0 && ad); } return ad; }, View_ComboBox_0, RenderType_ComboBox)), i0.ɵprd(5120, null, i2.NG_VALUE_ACCESSOR, function (p0_0) { return [p0_0]; }, [i3.ComboBox]), i0.ɵdid(2, 5881856, null, 1, i3.ComboBox, [i0.ElementRef], null, null), i0.ɵqud(335544320, 1, { view: 0 })], function (_ck, _v) { _ck(_v, 2, 0); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).disabled; var currVal_1 = i0.ɵnov(_v, 2).class; var currVal_2 = i0.ɵnov(_v, 2).role; var currVal_3 = i0.ɵnov(_v, 2).display; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3); }); } var ComboBoxNgFactory = i0.ɵccf("ibm-combo-box", i3.ComboBox, View_ComboBox_Host_0, { items: "items", placeholder: "placeholder", type: "type", size: "size", disabled: "disabled" }, { selected: "selected", submit: "submit", close: "close" }, ["*"]); export { ComboBoxNgFactory as ComboBoxNgFactory }; //# sourceMappingURL=combobox.component.ngfactory.js.map