UNPKG

carbon-components-angular

Version:
56 lines (53 loc) 9.57 kB
/*! * * Neutrino v0.0.0 | code-snippet.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 "./code-snippet.component"; import * as i3 from "../i18n/i18n.service"; var styles_CodeSnippet = []; var RenderType_CodeSnippet = i0.ɵcrt({ encapsulation: 2, styles: styles_CodeSnippet, data: {} }); export { RenderType_CodeSnippet as RenderType_CodeSnippet }; function View_CodeSnippet_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, null, null, null, null, null, null, null))], null, null); } function View_CodeSnippet_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, null, null, null, null, null, null, null))], null, null); } function View_CodeSnippet_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, null, null, null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CodeSnippet_2)), i0.ɵdid(2, 540672, null, 0, i1.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutlet: [0, "ngTemplateOutlet"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CodeSnippet_3)), i0.ɵdid(4, 540672, null, 0, i1.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutlet: [0, "ngTemplateOutlet"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var currVal_0 = i0.ɵnov(_v.parent, 4); _ck(_v, 2, 0, currVal_0); var currVal_1 = i0.ɵnov(_v.parent, 5); _ck(_v, 4, 0, currVal_1); }, null); } function View_CodeSnippet_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, null, null, null, null, null, null, null))], null, null); } function View_CodeSnippet_6(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, null, null, null, null, null, null, null))], null, null); } function View_CodeSnippet_7(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "button", [["class", "bx--btn bx--btn--ghost bx--btn--sm bx--snippet-btn--expand"], ["type", "button"]], null, [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.toggleSnippetExpansion() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [["class", "bx--snippet-btn--text"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 3, ":svg:svg", [["class", "bx--icon-chevron--down"], ["height", "7"], ["viewBox", "0 0 12 7"], ["width", "12"]], [[1, "aria-label", 0]], null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, ":svg:title", [], null, null, null, null, null)), (_l()(), i0.ɵted(5, null, ["", ""])), (_l()(), i0.ɵeld(6, 0, null, null, 0, ":svg:path", [["d", "M6.002 5.55L11.27 0l.726.685L6.003 7 0 .685.726 0z"], ["fill-rule", "nonzero"]], null, null, null, null, null))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.expanded ? _co.translations.SHOW_LESS : _co.translations.SHOW_MORE); _ck(_v, 2, 0, currVal_0); var currVal_1 = _co.translations.SHOW_MORE_ICON; _ck(_v, 3, 0, currVal_1); var currVal_2 = _co.translations.SHOW_MORE_ICON; _ck(_v, 5, 0, currVal_2); }); } function View_CodeSnippet_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "div", [["class", "bx--snippet-container"]], [[1, "aria-label", 0]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "pre", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CodeSnippet_5)), i0.ɵdid(3, 540672, null, 0, i1.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutlet: [0, "ngTemplateOutlet"] }, null), (_l()(), i0.ɵeld(4, 0, null, null, 5, "button", [["class", "bx--snippet-button"], ["tabindex", "0"]], [[1, "aria-label", 0]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) { var pd_0 = (_co.onCopyButtonClicked() !== false); ad = (pd_0 && ad); } return ad; }, null, null)), (_l()(), i0.ɵeld(5, 0, null, null, 2, ":svg:svg", [["class", "bx--snippet__icon"], ["height", "16"], ["viewBox", "0 0 16 16"], ["width", "16"], ["xmlns", "http://www.w3.org/2000/svg"]], null, null, null, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, ":svg:path", [["d", "M1 10H0V2C0 .9.9 0 2 0h8v1H2c-.6 0-1 .5-1 1v8z"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 0, ":svg:path", [["d", "M11 4.2V8h3.8L11 4.2zM15 9h-4c-.6 0-1-.4-1-1V4H4.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h10c.3 0\n\t\t\t\t\t\t.5-.2.5-.5V9zm-4-6c.1 0 .3.1.4.1l4.5 4.5c0 .1.1.3.1.4v6.5c0 .8-.7 1.5-1.5 1.5h-10c-.8\n\t\t\t\t\t\t0-1.5-.7-1.5-1.5v-10C3 3.7 3.7 3 4.5 3H11z"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CodeSnippet_6)), i0.ɵdid(9, 540672, null, 0, i1.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutlet: [0, "ngTemplateOutlet"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CodeSnippet_7)), i0.ɵdid(11, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var _co = _v.component; var currVal_1 = i0.ɵnov(_v.parent, 4); _ck(_v, 3, 0, currVal_1); var currVal_3 = i0.ɵnov(_v.parent, 5); _ck(_v, 9, 0, currVal_3); var currVal_4 = ((_co.display === "multi") && _co.shouldShowExpandButton); _ck(_v, 11, 0, currVal_4); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.translations.CODE_SNIPPET_TEXT; _ck(_v, 0, 0, currVal_0); var currVal_2 = _co.translations.COPY_CODE; _ck(_v, 4, 0, currVal_2); }); } function View_CodeSnippet_8(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, [[1, 0], ["code", 1]], null, 1, "code", [], null, null, null, null, null)), i0.ɵncd(null, 0)], null, null); } function View_CodeSnippet_9(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [["class", "bx--btn--copy__feedback"]], [[1, "data-feedback", 0]], null, null, null, null)), i0.ɵdid(1, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵpod(2, { "bx--btn--copy__feedback--displayed": 0 })], function (_ck, _v) { var _co = _v.component; var currVal_1 = "bx--btn--copy__feedback"; var currVal_2 = _ck(_v, 2, 0, _co.showFeedback); _ck(_v, 1, 0, currVal_1, currVal_2); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.feedbackText; _ck(_v, 0, 0, currVal_0); }); } export function View_CodeSnippet_0(_l) { return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { code: 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_CodeSnippet_1)), i0.ɵdid(2, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"], ngIfElse: [1, "ngIfElse"] }, null), (_l()(), i0.ɵand(0, [["notInline", 2]], null, 0, null, View_CodeSnippet_4)), (_l()(), i0.ɵand(0, [["codeTemplate", 2]], null, 0, null, View_CodeSnippet_8)), (_l()(), i0.ɵand(0, [["feedbackTemplate", 2]], null, 0, null, View_CodeSnippet_9))], function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.display === "inline"); var currVal_1 = i0.ɵnov(_v, 3); _ck(_v, 2, 0, currVal_0, currVal_1); }, null); } export function View_CodeSnippet_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-code-snippet", [], [[2, "bx--snippet--expand", null], [2, "bx--snippet", null], [2, "bx--snippet--single", null], [2, "bx--snippet--multi", null], [2, "bx--snippet--inline", null], [2, "bx--btn--copy", null], [4, "display", null], [1, "type", 0]], [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) { var pd_0 = (i0.ɵnov(_v, 1).hostClick() !== false); ad = (pd_0 && ad); } return ad; }, View_CodeSnippet_0, RenderType_CodeSnippet)), i0.ɵdid(1, 49152, null, 0, i2.CodeSnippet, [i3.I18n], null, null)], null, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).expanded; var currVal_1 = i0.ɵnov(_v, 1).snippetClass; var currVal_2 = i0.ɵnov(_v, 1).snippetSingleClass; var currVal_3 = i0.ɵnov(_v, 1).snippetMultiClass; var currVal_4 = i0.ɵnov(_v, 1).snippetInlineClass; var currVal_5 = i0.ɵnov(_v, 1).btnCopyClass; var currVal_6 = i0.ɵnov(_v, 1).displayStyle; var currVal_7 = i0.ɵnov(_v, 1).attrType; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7); }); } var CodeSnippetNgFactory = i0.ɵccf("ibm-code-snippet", i2.CodeSnippet, View_CodeSnippet_Host_0, { display: "display", translations: "translations", feedbackText: "feedbackText", feedbackTimeout: "feedbackTimeout", expanded: "expanded" }, {}, ["*"]); export { CodeSnippetNgFactory as CodeSnippetNgFactory }; //# sourceMappingURL=code-snippet.component.ngfactory.js.map