carbon-components-angular
Version:
Next generation components
57 lines (54 loc) • 6.49 kB
JavaScript
/*!
*
* Neutrino v0.0.0 | alert-modal.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 "../button/button.directive";
import * as i2 from "./modal-footer.component.ngfactory";
import * as i3 from "./modal-footer.component";
import * as i4 from "@angular/common";
import * as i5 from "./modal.component.ngfactory";
import * as i6 from "./modal.component";
import * as i7 from "./modal.service";
import * as i8 from "./modal-header.component.ngfactory";
import * as i9 from "./modal-header.component";
import * as i10 from "../i18n/i18n.service";
import * as i11 from "./alert-modal.component";
var styles_AlertModal = [];
var RenderType_AlertModal = i0.ɵcrt({ encapsulation: 2, styles: styles_AlertModal, data: {} });
export { RenderType_AlertModal as RenderType_AlertModal };
function View_AlertModal_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, null, null, null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "button", [], [[8, "id", 0], [1, "modal-primary-focus", 0], [2, "bx--btn", null], [2, "bx--btn--primary", null], [2, "bx--btn--secondary", null], [2, "bx--btn--tertiary", null], [2, "bx--btn--ghost", null], [2, "bx--btn--danger", null], [2, "bx--btn--danger--primary", null], [2, "bx--btn--sm", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
var pd_0 = (_co.buttonClicked(_v.context.index) !== false);
ad = (pd_0 && ad);
} return ad; }, null, null)), i0.ɵdid(2, 81920, null, 0, i1.Button, [], { ibmButton: [0, "ibmButton"] }, null), (_l()(), i0.ɵted(3, null, [" ", " "]))], function (_ck, _v) { var currVal_10 = i0.ɵinlineInterpolate(1, "", _v.context.$implicit.type, ""); _ck(_v, 2, 0, currVal_10); }, function (_ck, _v) { var currVal_0 = _v.context.$implicit.id; var currVal_1 = ((_v.context.$implicit.type.indexOf("primary") !== (0 - 1)) ? "" : null); var currVal_2 = i0.ɵnov(_v, 2).baseClass; var currVal_3 = i0.ɵnov(_v, 2).primary; var currVal_4 = i0.ɵnov(_v, 2).secondary; var currVal_5 = i0.ɵnov(_v, 2).tertiary; var currVal_6 = i0.ɵnov(_v, 2).ghost; var currVal_7 = i0.ɵnov(_v, 2).danger; var currVal_8 = i0.ɵnov(_v, 2).dangerPrimary; var currVal_9 = i0.ɵnov(_v, 2).smallSize; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9); var currVal_11 = _v.context.$implicit.text; _ck(_v, 3, 0, currVal_11); }); }
function View_AlertModal_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "ibm-modal-footer", [], null, null, null, i2.View_ModalFooter_0, i2.RenderType_ModalFooter)), i0.ɵdid(1, 49152, null, 0, i3.ModalFooter, [], null, null), (_l()(), i0.ɵand(16777216, null, 0, 1, null, View_AlertModal_2)), i0.ɵdid(3, 278528, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.buttons; _ck(_v, 3, 0, currVal_0); }, null); }
export function View_AlertModal_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 11, "ibm-modal", [], null, [[null, "keydown"]], function (_v, en, $event) { var ad = true; if (("keydown" === en)) {
var pd_0 = (i0.ɵnov(_v, 1).handleKeyboardEvent($event) !== false);
ad = (pd_0 && ad);
} return ad; }, i5.View_Modal_0, i5.RenderType_Modal)), i0.ɵdid(1, 4440064, null, 0, i6.Modal, [i7.ModalService], { theme: [0, "theme"], modalLabel: [1, "modalLabel"] }, null), (_l()(), i0.ɵeld(2, 0, null, 0, 5, "ibm-modal-header", [], null, [[null, "closeSelect"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("closeSelect" === en)) {
var pd_0 = (_co.closeModal() !== false);
ad = (pd_0 && ad);
} return ad; }, i8.View_ModalHeader_0, i8.RenderType_ModalHeader)), i0.ɵdid(3, 49152, null, 0, i9.ModalHeader, [i10.I18n], null, { closeSelect: "closeSelect" }), (_l()(), i0.ɵeld(4, 0, null, 0, 1, "p", [["class", "bx--modal-header__label bx--type-delta"]], null, null, null, null, null)), (_l()(), i0.ɵted(5, null, ["", ""])), (_l()(), i0.ɵeld(6, 0, null, 0, 1, "p", [["class", "bx--modal-header__heading bx--type-beta"]], null, null, null, null, null)), (_l()(), i0.ɵted(7, null, ["", ""])), (_l()(), i0.ɵeld(8, 0, null, 0, 1, "div", [["class", "bx--modal-content"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 0, "p", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, 0, 1, null, View_AlertModal_1)), i0.ɵdid(11, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.modalType; var currVal_1 = _co.modalTitle; _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_5 = (_co.buttons.length > 0); _ck(_v, 11, 0, currVal_5); }, function (_ck, _v) { var _co = _v.component; var currVal_2 = _co.modalLabel; _ck(_v, 5, 0, currVal_2); var currVal_3 = _co.modalTitle; _ck(_v, 7, 0, currVal_3); var currVal_4 = _co.modalContent; _ck(_v, 9, 0, currVal_4); }); }
export function View_AlertModal_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-alert-modal", [], null, null, null, View_AlertModal_0, RenderType_AlertModal)), i0.ɵdid(1, 49152, null, 0, i11.AlertModal, ["modalType", "modalLabel", "modalTitle", "modalContent", "buttons"], null, null)], null, null); }
var AlertModalNgFactory = i0.ɵccf("ibm-alert-modal", i11.AlertModal, View_AlertModal_Host_0, {}, { close: "close" }, []);
export { AlertModalNgFactory as AlertModalNgFactory };
//# sourceMappingURL=alert-modal.component.ngfactory.js.map