(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@carbon/icon-helpers')) :
    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@carbon/icon-helpers'], factory) :
    (factory((global.CarbonIconsAngular = {}),global.ng.Core,global.CarbonIconHelpers));
}(this, (function (exports,core,iconHelpers) { 'use strict';

    var TextFill20 = /** @class */ (function () {
        function TextFill20(elementRef) {
            this.elementRef = elementRef;
        }
        TextFill20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                viewBox: "0 0 32 32",
                title: this.title,
                "aria-label": this.ariaLabel,
                "aria-labelledby": this.ariaLabelledby,
                "aria-hidden": this.ariaHidden,
                focusable: this.focusable
            });
            var attrKeys = Object.keys(attributes);
            for (var i = 0; i < attrKeys.length; i++) {
                var key = attrKeys[i];
                var value = attributes[key];
                if (key === "title") {
                    continue;
                }
                if (value) {
                    svg.setAttribute(key, value);
                }
            }
            if (attributes.title) {
                var title = document.createElement("title");
                title.textContent = attributes.title;
                TextFill20.titleIdCounter++;
                title.setAttribute("id", "text-fill20-" + TextFill20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "text-fill20-" + TextFill20.titleIdCounter);
            }
        };
        TextFill20.titleIdCounter = 0;
        TextFill20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-text-fill20",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"transform: translate3d(0, 0, 0);\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M4 26h24v4H4z\"></path><path d=\"M26 14.54a1 1 0 0 0-.25-.69l-8.58-9.52A1.09 1.09 0 0 0 17 4.2V2h-2v3L4.32 14.74a1 1 0 0 0-.06 1.41l8.57 9.52a1 1 0 0 0 .69.33h.05a1 1 0 0 0 .68-.26L24 16.8V21a1 1 0 0 0 2 0v-6.46zm-12.35 9l-7.23-8L15 7.67V12h2V7.13l6.59 7.33z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        TextFill20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TextFill20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TextFill20;
    }());
    var TextFill20Module = /** @class */ (function () {
        function TextFill20Module() {
        }
        TextFill20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TextFill20
                        ],
                        exports: [
                            TextFill20
                        ]
                    },] },
        ];
        return TextFill20Module;
    }());

    exports.TextFill20 = TextFill20;
    exports.TextFill20Module = TextFill20Module;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
