carbon-components-angular
Version:
Next generation components
49 lines (46 loc) • 5.91 kB
JavaScript
/*!
*
* Neutrino v0.0.0 | dropdown.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 "./dropdown.component";
import * as i4 from "../i18n/i18n.service";
var styles_Dropdown = [];
var RenderType_Dropdown = i0.ɵcrt({ encapsulation: 2, styles: styles_Dropdown, data: {} });
export { RenderType_Dropdown as RenderType_Dropdown };
function View_Dropdown_1(_l) { return i0.ɵvid(0, [i0.ɵncd(null, 0), (_l()(), i0.ɵand(0, null, null, 0))], null, null); }
export function View_Dropdown_0(_l) { return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { dropdownButton: 0 }), i0.ɵqud(402653184, 2, { dropdownMenu: 0 }), (_l()(), i0.ɵeld(2, 0, null, null, 18, "div", [["class", "bx--list-box"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, [[1, 0], ["dropdownButton", 1]], null, 12, "button", [["class", "bx--list-box__field"], ["type", "button"]], [[1, "aria-expanded", 0], [1, "aria-disabled", 0], [8, "disabled", 0]], [[null, "click"], [null, "blur"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
var pd_0 = (_co.toggleMenu() !== false);
ad = (pd_0 && ad);
} if (("blur" === en)) {
var pd_1 = (_co.onBlur() !== false);
ad = (pd_1 && ad);
} return ad; }, null, null)), i0.ɵdid(4, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(5, { "a": 0 }), (_l()(), i0.ɵeld(6, 0, null, null, 2, "span", [["class", "bx--list-box__label"]], null, null, null, null, null)), (_l()(), i0.ɵted(7, null, ["", ""])), i0.ɵpid(131072, i1.AsyncPipe, [i0.ChangeDetectorRef]), (_l()(), i0.ɵeld(9, 0, null, null, 6, "div", [["class", "bx--list-box__menu-icon"]], null, null, null, null, null)), i0.ɵdid(10, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(11, { "bx--list-box__menu-icon--open": 0 }), (_l()(), i0.ɵeld(12, 0, null, null, 3, ":svg:svg", [["alt", "Open menu"], ["fill-rule", "evenodd"], ["height", "5"], ["role", "img"], ["viewBox", "0 0 10 5"], ["width", "10"]], [[1, "aria-label", 0]], null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 1, ":svg:title", [], null, null, null, null, null)), (_l()(), i0.ɵted(14, null, ["", ""])), (_l()(), i0.ɵeld(15, 0, null, null, 0, ":svg:path", [["d", "M0 0l5 4.998L10 0z"]], null, null, null, null, null)), (_l()(), i0.ɵeld(16, 0, [[2, 0], ["dropdownMenu", 1]], null, 4, "div", [], null, null, null, null, null)), i0.ɵdid(17, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(18, { "drop-up": 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_Dropdown_1)), i0.ɵdid(20, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_3 = "bx--list-box__field"; var currVal_4 = _ck(_v, 5, 0, !_co.menuIsClosed); _ck(_v, 4, 0, currVal_3, currVal_4); var currVal_6 = "bx--list-box__menu-icon"; var currVal_7 = _ck(_v, 11, 0, !_co.menuIsClosed); _ck(_v, 10, 0, currVal_6, currVal_7); var currVal_10 = _ck(_v, 18, 0, _co.dropUp); _ck(_v, 17, 0, currVal_10); var currVal_11 = !_co.menuIsClosed; _ck(_v, 20, 0, currVal_11); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.menuIsClosed; var currVal_1 = _co.disabled; var currVal_2 = _co.disabled; _ck(_v, 3, 0, currVal_0, currVal_1, currVal_2); var currVal_5 = i0.ɵunv(_v, 7, 0, i0.ɵnov(_v, 8).transform(_co.getDisplayValue())); _ck(_v, 7, 0, currVal_5); var currVal_8 = _co.menuButtonLabel; _ck(_v, 12, 0, currVal_8); var currVal_9 = _co.menuButtonLabel; _ck(_v, 14, 0, currVal_9); }); }
export function View_Dropdown_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "ibm-dropdown", [], null, [[null, "keydown"]], function (_v, en, $event) { var ad = true; if (("keydown" === en)) {
var pd_0 = (i0.ɵnov(_v, 2).onKeyDown($event) !== false);
ad = (pd_0 && ad);
} return ad; }, View_Dropdown_0, RenderType_Dropdown)), i0.ɵprd(5120, null, i2.NG_VALUE_ACCESSOR, function (p0_0) { return [p0_0]; }, [i3.Dropdown]), i0.ɵdid(2, 1294336, null, 1, i3.Dropdown, [i0.ElementRef, i4.I18n], null, null), i0.ɵqud(335544320, 1, { view: 0 })], function (_ck, _v) { _ck(_v, 2, 0); }, null); }
var DropdownNgFactory = i0.ɵccf("ibm-dropdown", i3.Dropdown, View_Dropdown_Host_0, { placeholder: "placeholder", displayValue: "displayValue", size: "size", type: "type", disabled: "disabled", appendToBody: "appendToBody", appendInline: "appendInline", scrollableContainer: "scrollableContainer", value: "value", menuButtonLabel: "menuButtonLabel", selectedLabel: "selectedLabel" }, { selected: "selected", onClose: "onClose", close: "close" }, ["*"]);
export { DropdownNgFactory as DropdownNgFactory };
//# sourceMappingURL=dropdown.component.ngfactory.js.map