carbon-components-angular
Version:
Next generation components
41 lines (38 loc) • 3.87 kB
JavaScript
/*!
*
* Neutrino v0.0.0 | toast.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 "./banner.service";
import * as i2 from "./toast.component";
import * as i3 from "../i18n/i18n.service";
var styles_Toast = [];
var RenderType_Toast = i0.ɵcrt({ encapsulation: 2, styles: styles_Toast, data: {} });
export { RenderType_Toast as RenderType_Toast };
export function View_Toast_0(_l) { return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { banner: 0 }), (_l()(), i0.ɵeld(1, 0, [[1, 0], ["banner", 1]], null, 7, "div", [["role", "alert"]], [[8, "className", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 3, "div", [["class", "bx--toast-notification__details"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 0, "h3", [["class", "bx--toast-notification__title"]], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "p", [["class", "bx--toast-notification__subtitle"]], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(5, 0, null, null, 0, "p", [["class", "bx--toast-notification__caption"]], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 2, "button", [["class", "bx--toast-notification__close-button"], ["type", "button"]], [[1, "aria-label", 0]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
var pd_0 = (_co.onClose() !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 1, ":svg:svg", [["class", "bx--toast-notification-icon"], ["height", "10"], ["viewBox", "0 0 10 10"], ["width", "10"], ["xmlns", "http://www.w3.org/2000/svg"]], null, null, null, null, null)), (_l()(), i0.ɵeld(8, 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"], ["fill-rule", "nonzero"]], null, null, null, null, null))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = i0.ɵinlineInterpolate(1, "bx--toast-notification bx--toast-notification--", _co.bannerObj["type"], ""); _ck(_v, 1, 0, currVal_0); var currVal_1 = _co.bannerObj.title; _ck(_v, 3, 0, currVal_1); var currVal_2 = _co.bannerObj.subtitle; _ck(_v, 4, 0, currVal_2); var currVal_3 = _co.bannerObj.caption; _ck(_v, 5, 0, currVal_3); var currVal_4 = _co.bannerObj.closeLabel; _ck(_v, 6, 0, currVal_4); }); }
export function View_Toast_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "ibm-toast", [], null, null, null, View_Toast_0, RenderType_Toast)), i0.ɵprd(131584, null, i1.BannerService, i1.BannerService, [i0.Injector, i0.ComponentFactoryResolver, i0.ApplicationRef]), i0.ɵdid(2, 114688, null, 0, i2.Toast, [i1.BannerService, i3.I18n], null, null)], function (_ck, _v) { _ck(_v, 2, 0); }, null); }
var ToastNgFactory = i0.ɵccf("ibm-toast", i2.Toast, View_Toast_Host_0, { bannerObj: "bannerObj" }, { close: "close" }, []);
export { ToastNgFactory as ToastNgFactory };
//# sourceMappingURL=toast.component.ngfactory.js.map