UNPKG

ng5-simple-select

Version:
23 lines 3.64 kB
/** * @fileoverview This file is generated by the Angular template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride} * tslint:disable */ import * as i0 from "@angular/core"; import * as i1 from "@angular/forms"; import * as i2 from "./ng-simple-select.component"; var styles_NgSimpleSelectComponent = [".ng-simple-select[_ngcontent-%COMP%] { position: relative; box-sizing: border-box; height: 30px; } .ng-simple-select_input[_ngcontent-%COMP%] { height: 30px; width: 100%; border: 1px solid darkgray; display: inline-block; position: relative; padding: 1px 20px 1px 5px; cursor: default; } .ng-simple-select_input[_ngcontent-%COMP%]::after { content: ''; display: inline-block; width: 0; height: 0; position: absolute; top: 12px; right: 5px; border: 5px solid transparent; border-top-color: black; } .ng-simple-select_input[_ngcontent-%COMP%]:hover { border-color: #909090; } .ng-simple-select_dropdown[_ngcontent-%COMP%] { background-color: white; z-index: 1; border: 1px solid darkgray; display: block; position: absolute; top: 30px; width: 100%; }"]; var RenderType_NgSimpleSelectComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_NgSimpleSelectComponent, data: {} }); export { RenderType_NgSimpleSelectComponent as RenderType_NgSimpleSelectComponent }; export function View_NgSimpleSelectComponent_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 9, "div", [["class", "ng-simple-select"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [" "])), (_l()(), i0.ɵeld(2, 0, null, null, 1, "div", [["class", "ng-simple-select_input"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.toggleDropdown() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵted(3, null, [" ", " ", " "])), (_l()(), i0.ɵted(-1, null, [" "])), (_l()(), i0.ɵeld(5, 0, null, null, 3, "div", [["class", "ng-simple-select_dropdown"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, [" "])), i0.ɵncd(null, 0), (_l()(), i0.ɵted(-1, null, [" "])), (_l()(), i0.ɵted(-1, null, [" "])), (_l()(), i0.ɵted(-1, null, [" "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.displayValue ? _co.displayValue : _co.value); var currVal_1 = ((!_co.displayValue && !_co.value) ? _co.placeholder : ""); _ck(_v, 3, 0, currVal_0, currVal_1); var currVal_2 = !_co.showDropdown; _ck(_v, 5, 0, currVal_2); }); } export function View_NgSimpleSelectComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "ng-simple-select", [], null, [["document", "click"]], function (_v, en, $event) { var ad = true; if (("document:click" === en)) { var pd_0 = (i0.ɵnov(_v, 2).onDocClick($event) !== false); ad = (pd_0 && ad); } return ad; }, View_NgSimpleSelectComponent_0, RenderType_NgSimpleSelectComponent)), i0.ɵprd(5120, null, i1.NG_VALUE_ACCESSOR, function (p0_0) { return [p0_0]; }, [i2.NgSimpleSelectComponent]), i0.ɵdid(2, 1818624, null, 1, i2.NgSimpleSelectComponent, [i0.ElementRef], null, null), i0.ɵqud(603979776, 1, { options: 1 })], function (_ck, _v) { _ck(_v, 2, 0); }, null); } var NgSimpleSelectComponentNgFactory = i0.ɵccf("ng-simple-select", i2.NgSimpleSelectComponent, View_NgSimpleSelectComponent_Host_0, { displayValue: "displayValue", placeholder: "placeholder" }, { change: "change" }, ["*"]); export { NgSimpleSelectComponentNgFactory as NgSimpleSelectComponentNgFactory }; //# sourceMappingURL=ng-simple-select.component.ngfactory.js.map