/*!
 *
 * carbon-angular v0.0.5 | tag-filter.component.js
 *
 * Copyright 2014, 2019 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.
 */


var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import { Component, Output, EventEmitter, HostBinding } from "@angular/core";
import { Tag } from "./tag.component";
var TagFilter = /** @class */ (function (_super) {
    __extends(TagFilter, _super);
    function TagFilter() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        /**
         * Function for close/delete the tag
         */
        _this.close = new EventEmitter();
        return _this;
    }
    Object.defineProperty(TagFilter.prototype, "attrClass", {
        get: function () {
            return "bx--tag bx--tag--filter bx--tag--" + this.type + " " + this.class;
        },
        enumerable: true,
        configurable: true
    });
    TagFilter.decorators = [
        { type: Component, args: [{
                    selector: "ibm-tag-filter",
                    template: "\n\t\t<ng-content></ng-content>\n\t\t<svg\n\t\t\t(click)=\"close.emit()\"\n\t\t\tfocusable=\"false\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\tstyle=\"will-change: transform;\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\taria-label=\"Clear filter\"\n\t\t\twidth=\"16\"\n\t\t\theight=\"16\"\n\t\t\tviewBox=\"0 0 16 16\"\n\t\t\trole=\"img\">\n\t\t\t<path d=\"M12 4.7l-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z\"></path>\n\t\t</svg>\n\t"
                },] },
    ];
    TagFilter.propDecorators = {
        close: [{ type: Output }],
        attrClass: [{ type: HostBinding, args: ["attr.class",] }]
    };
    return TagFilter;
}(Tag));
export { TagFilter };
//# sourceMappingURL=tag-filter.component.js.map