blob: 9b1955fcf601413b15afb3e6a14bed124732e1ac [file] [log] [blame]
{"remainingRequest":"/Users/jaslan/Development/nifi-fds/angular-url-loader.js!/Users/jaslan/Development/nifi-fds/node_modules/babel-loader/lib/index.js??ref--5-2!/Users/jaslan/Development/nifi-fds/platform/core/snackbars/coaster/coaster.component.js","dependencies":[{"path":"/Users/jaslan/Development/nifi-fds/platform/core/snackbars/coaster/coaster.component.js","mtime":1562689731044},{"path":"/Users/jaslan/Development/nifi-fds/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/jaslan/Development/nifi-fds/angular-url-loader.js","mtime":1562689731025},{"path":"/Users/jaslan/Development/nifi-fds/node_modules/babel-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { Component } from '@angular/core';\nimport $ from 'jquery';\n/**\n * FdsCoasterComponent constructor.\n *\n * @constructor\n */\n\nfunction FdsCoasterComponent() {\n this.title = '';\n this.message = '';\n this.icon = '';\n this.color = '';\n this.snackBarRef = undefined;\n this.viewContainerRef = undefined;\n}\n\nFdsCoasterComponent.prototype = {\n constructor: FdsCoasterComponent,\n\n /**\n * Initialize the component.\n */\n ngAfterViewChecked: function ngAfterViewChecked() {\n $('.fds-snackbar-wrapper').css('border-color', this.color);\n $('.fds-snackbar-title').css('color', this.color);\n $('.fds-coaster-icon').css('color', this.color);\n\n if (this.icon) {\n $('.fds-snackbar-wrapper').css('padding', '15px 15px 15px 45px');\n } else {\n $('.fds-snackbar-wrapper').css('padding', '15px 15px 15px 15px');\n }\n },\n\n /**\n * Close the snackbar and send a cancel response to any subscribers.\n */\n cancel: function cancel() {\n this.snackBarRef.dismiss(false);\n }\n};\nFdsCoasterComponent.annotations = [new Component({\n selector: 'fds-coaster',\n template: require('./coaster.component.html')})];\nFdsCoasterComponent.parameters = [];\nexport { FdsCoasterComponent };"]}