carbon-components-angular
Version:
Next generation components
73 lines (70 loc) • 9.14 kB
JavaScript
/*!
*
* Neutrino v0.0.0 | pill-input.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 "./pill.component.ngfactory";
import * as i2 from "./pill.component";
import * as i3 from "@angular/common";
import * as i4 from "./pill-input.component";
var styles_PillInput = [];
var RenderType_PillInput = i0.ɵcrt({ encapsulation: 2, styles: styles_PillInput, data: {} });
export { RenderType_PillInput as RenderType_PillInput };
function View_PillInput_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [["class", "input_placeholder"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.placeholder; _ck(_v, 1, 0, currVal_0); }); }
function View_PillInput_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, [[4, 0], ["pillInput", 1]], null, 0, "div", [["class", "input"], ["contenteditable", ""]], null, [[null, "keydown"], [null, "keyup"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("keydown" === en)) {
var pd_0 = (_co.onKeydown($event) !== false);
ad = (pd_0 && ad);
} if (("keyup" === en)) {
var pd_1 = (_co.onKeyup($event) !== false);
ad = (pd_1 && ad);
} return ad; }, null, null))], null, null); }
function View_PillInput_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["style", "display: flex"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "ibm-pill", [], [[1, "class", 0]], null, null, i1.View_Pill_0, i1.RenderType_Pill)), i0.ɵdid(2, 49152, [[5, 4]], 0, i2.Pill, [], { item: [0, "item"] }, null), (_l()(), i0.ɵted(3, 0, [" ", " "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_PillInput_4)), i0.ɵdid(5, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var currVal_1 = _v.context.$implicit; _ck(_v, 2, 0, currVal_1); var currVal_3 = !_v.context.last; _ck(_v, 5, 0, currVal_3); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).attrClass; _ck(_v, 1, 0, currVal_0); var currVal_2 = _v.context.$implicit.content; _ck(_v, 3, 0, currVal_2); }); }
function View_PillInput_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "button", [["class", "btn--link"], ["href", ""]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
var pd_0 = (_co.showMore($event) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵted(1, null, ["", " more"]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.numberMore; _ck(_v, 1, 0, currVal_0); }); }
function View_PillInput_6(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "button", [["class", "btn--link"], ["href", ""]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
var pd_0 = (_co.showMore($event) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵted(-1, null, ["Hide"]))], null, null); }
function View_PillInput_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, [[2, 0], ["inputWrapper", 1]], null, 14, "div", [["class", "pill_input_wrapper"], ["role", "textbox"], ["style", "overflow: hidden;"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
var pd_0 = (_co.focusInput($event) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), i0.ɵdid(1, 278528, null, 0, i3.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(2, { "expand-overflow": 0, focus: 1, disabled: 2 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_PillInput_2)), i0.ɵdid(4, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(5, 0, [[1, 0], ["pillWrapper", 1]], null, 5, "div", [], null, null, null, null, null)), i0.ɵdid(6, 278528, null, 0, i3.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(7, { "input_pills--column": 0, "input_pills": 1 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_PillInput_3)), i0.ɵdid(9, 278528, null, 0, i3.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵeld(10, 0, [[4, 0], ["pillInput", 1]], null, 0, "div", [["class", "input"], ["contenteditable", ""]], null, [[null, "keydown"], [null, "keyup"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("keydown" === en)) {
var pd_0 = (_co.onKeydown($event) !== false);
ad = (pd_0 && ad);
} if (("keyup" === en)) {
var pd_1 = (_co.onKeyup($event) !== false);
ad = (pd_1 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_PillInput_5)), i0.ɵdid(12, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_PillInput_6)), i0.ɵdid(14, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = "pill_input_wrapper"; var currVal_1 = _ck(_v, 2, 0, _co.expanded, _co.focusActive, _co.disabled); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_2 = _co.showPlaceholder; _ck(_v, 4, 0, currVal_2); var currVal_3 = _ck(_v, 7, 0, (_co.pillDirection === "column"), (_co.pillDirection === "row")); _ck(_v, 6, 0, currVal_3); var currVal_4 = _co.pills; _ck(_v, 9, 0, currVal_4); var currVal_5 = (!_co.expanded && (_co.numberMore > 0)); _ck(_v, 12, 0, currVal_5); var currVal_6 = (_co.expanded && (_co.numberMore > 0)); _ck(_v, 14, 0, currVal_6); }, null); }
function View_PillInput_7(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, [[3, 0], ["singleInput", 1]], null, 0, "input", [["type", "text"]], [[8, "disabled", 0], [8, "placeholder", 0]], [[null, "keydown"], [null, "keyup"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("keydown" === en)) {
var pd_0 = (_co.onKeydown($event) !== false);
ad = (pd_0 && ad);
} if (("keyup" === en)) {
var pd_1 = (_co.onKeyup($event) !== false);
ad = (pd_1 && ad);
} return ad; }, null, null))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.disabled; var currVal_1 = _co.placeholder; _ck(_v, 0, 0, currVal_0, currVal_1); }); }
export function View_PillInput_0(_l) { return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { pillWrapper: 0 }), i0.ɵqud(671088640, 2, { inputWrapper: 0 }), i0.ɵqud(671088640, 3, { singleInput: 0 }), i0.ɵqud(671088640, 4, { pillInputs: 1 }), i0.ɵqud(671088640, 5, { pillInstances: 1 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_PillInput_1)), i0.ɵdid(6, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_PillInput_7)), i0.ɵdid(8, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.type === "multi"); _ck(_v, 6, 0, currVal_0); var currVal_1 = (_co.type === "single"); _ck(_v, 8, 0, currVal_1); }, null); }
export function View_PillInput_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-pill-input", [], [[4, "width", "%"]], null, null, View_PillInput_0, RenderType_PillInput)), i0.ɵdid(1, 4767744, null, 0, i4.PillInput, [i0.ElementRef], null, null)], null, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).width; _ck(_v, 0, 0, currVal_0); }); }
var PillInputNgFactory = i0.ɵccf("ibm-pill-input", i4.PillInput, View_PillInput_Host_0, { pills: "pills", placeholder: "placeholder", displayValue: "displayValue", type: "type", size: "size", disabled: "disabled", pillDirection: "pillDirection" }, { updatePills: "updatePills", search: "search", submit: "submit", focus: "focus", blur: "blur" }, []);
export { PillInputNgFactory as PillInputNgFactory };
//# sourceMappingURL=pill-input.component.ngfactory.js.map